@udixio/ui-react 2.9.16 → 2.9.18

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
@@ -1,12 +1,12 @@
1
1
  var Wt = Object.defineProperty;
2
2
  var At = (e, t, n) => t in e ? Wt(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
3
3
  var B = (e, t, n) => At(e, typeof t != "symbol" ? t + "" : t, n);
4
- import { jsx as d, jsxs as K, Fragment as me } from "react/jsx-runtime";
5
- import Q, { useState as V, useEffect as _, useMemo as we, useRef as j, useLayoutEffect as $e, useId as Me, useCallback as pe, isValidElement as ke, cloneElement as Re, createContext as Ft, useContext as Ze, Children as Bt, Fragment as Pt } from "react";
6
- import { AnimatePresence as he, motion as ne, useScroll as Ht, useMotionValueEvent as Ve, animate as Ot } from "motion/react";
7
- import { clsx as Qe } from "clsx";
4
+ import { jsx as d, jsxs as K, Fragment as ye } from "react/jsx-runtime";
5
+ import Q, { useState as V, useEffect as _, useMemo as be, useRef as j, useLayoutEffect as $e, useId as Ee, useCallback as me, isValidElement as Ie, cloneElement as Re, createContext as Ft, useContext as Qe, Children as Bt, Fragment as Ht } from "react";
6
+ import { AnimatePresence as pe, motion as ne, useScroll as Pt, useMotionValueEvent as Ye, animate as Ot } from "motion/react";
7
+ import { clsx as et } from "clsx";
8
8
  import { extendTailwindMerge as zt } from "tailwind-merge";
9
- import { createPortal as et } from "react-dom";
9
+ import { createPortal as He } from "react-dom";
10
10
  import { loader as Tt, defineConfig as Vt, FontPlugin as Yt, Variants as _t } from "@udixio/theme";
11
11
  import { TailwindPlugin as tt } from "@udixio/tailwind";
12
12
  import Xt from "react-textarea-autosize";
@@ -66,7 +66,7 @@ const qt = ({
66
66
  background: `radial-gradient(ellipse at var(--x) var(--y), ${f} var(--r), transparent calc(var(--r) * 2))`,
67
67
  pointerEvents: "none"
68
68
  };
69
- return /* @__PURE__ */ d(he, { mode: "wait", children: (c || !c && !s) && /* @__PURE__ */ d(
69
+ return /* @__PURE__ */ d(pe, { mode: "wait", children: (c || !c && !s) && /* @__PURE__ */ d(
70
70
  ne.div,
71
71
  {
72
72
  style: p,
@@ -103,7 +103,7 @@ const qt = ({
103
103
  font: ["font"]
104
104
  }
105
105
  }
106
- }), y = (...e) => nt(Qe(e)), Ut = (...e) => nt(Qe(e));
106
+ }), y = (...e) => nt(et(e)), Ut = (...e) => nt(et(e));
107
107
  function jt(e) {
108
108
  return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "").replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
109
109
  }
@@ -131,7 +131,7 @@ const Pe = (e) => {
131
131
  classNameList: [n.className, t],
132
132
  default: e,
133
133
  states: n
134
- }), re = (e, t) => (n) => we(
134
+ }), re = (e, t) => (n) => be(
135
135
  () => Pe({
136
136
  classNameList: [n.className, t],
137
137
  default: e,
@@ -140,7 +140,7 @@ const Pe = (e) => {
140
140
  [n]
141
141
  );
142
142
  function Sr(e, t, n) {
143
- return we(
143
+ return be(
144
144
  () => Pe({
145
145
  classNameList: [n == null ? void 0 : n.className, t],
146
146
  default: e,
@@ -211,10 +211,10 @@ const Jt = ({
211
211
  _(() => {
212
212
  if (!o.current) return;
213
213
  const k = new ResizeObserver((N) => {
214
- for (const W of N)
215
- W.target === o.current && f({
216
- width: W.contentRect.width,
217
- height: W.contentRect.height
214
+ for (const A of N)
215
+ A.target === o.current && f({
216
+ width: A.contentRect.width,
217
+ height: A.contentRect.height
218
218
  // On observe aussi la hauteur maintenant
219
219
  });
220
220
  });
@@ -235,7 +235,7 @@ const Jt = ({
235
235
  height: k.clientHeight
236
236
  // Correction ici pour retourner la bonne hauteur
237
237
  } : null;
238
- }, { scrollYProgress: M, scrollXProgress: b } = Ht({
238
+ }, { scrollYProgress: M, scrollXProgress: b } = Pt({
239
239
  container: o
240
240
  }), g = j(null);
241
241
  g.current || (g.current = Gt(
@@ -262,29 +262,29 @@ const Jt = ({
262
262
  }, [m]), _(() => {
263
263
  const k = o.current, N = u.current;
264
264
  if (!k || !N || typeof i != "number") return;
265
- const W = (H, X, q) => Math.min(q, Math.max(X, H));
265
+ const A = (P, X, q) => Math.min(q, Math.max(X, P));
266
266
  if (t === "horizontal") {
267
- const H = Math.max(0, (n ?? N.scrollWidth) - k.clientWidth);
268
- k.scrollLeft = W(i * H, 0, H);
267
+ const P = Math.max(0, (n ?? N.scrollWidth) - k.clientWidth);
268
+ k.scrollLeft = A(i * P, 0, P);
269
269
  } else {
270
- const H = Math.max(0, (n ?? N.scrollHeight) - k.clientHeight);
271
- k.scrollTop = W(i * H, 0, H);
270
+ const P = Math.max(0, (n ?? N.scrollHeight) - k.clientHeight);
271
+ k.scrollTop = A(i * P, 0, P);
272
272
  }
273
- }, [i, t, n]), Ve(b, "change", (k) => {
273
+ }, [i, t, n]), Ye(b, "change", (k) => {
274
274
  O(k, "x");
275
- }), Ve(M, "change", (k) => {
275
+ }), Ye(M, "change", (k) => {
276
276
  O(k, "y");
277
277
  });
278
- const [A, v] = V(!1);
278
+ const [R, v] = V(!1);
279
279
  $e(() => {
280
- A || !h.current || !p.current || !s || (s({
280
+ R || !h.current || !p.current || !s || (s({
281
281
  scrollProgress: 0,
282
282
  scroll: 0,
283
283
  scrollTotal: t == "vertical" ? p.current.height : p.current.width,
284
284
  scrollVisible: t == "vertical" ? h.current.height : h.current.width
285
285
  }), v(!0));
286
286
  }, [h, p, s]), p.current = x(), h.current = w();
287
- const [S, R] = V(!1), I = Kt({
287
+ const [S, $] = V(!1), I = Kt({
288
288
  isDragging: S,
289
289
  children: e,
290
290
  className: r,
@@ -297,17 +297,17 @@ const Jt = ({
297
297
  if (!c) return;
298
298
  const N = o.current;
299
299
  if (!N || F == null) return;
300
- const H = (k.pageX - N.offsetLeft - F) * 1.5;
301
- N.scrollLeft = Y - H;
302
- }, P = (k) => {
300
+ const P = (k.pageX - N.offsetLeft - F) * 1.5;
301
+ N.scrollLeft = Y - P;
302
+ }, H = (k) => {
303
303
  const N = o.current;
304
- N && (R(!0), E(k.pageX - N.offsetLeft), z(N.scrollLeft));
304
+ N && ($(!0), E(k.pageX - N.offsetLeft), z(N.scrollLeft));
305
305
  }, C = (k) => {
306
306
  S && (k.preventDefault(), te(k));
307
307
  }, D = () => {
308
- R(!1);
308
+ $(!1);
309
309
  }, T = () => {
310
- R(!1);
310
+ $(!1);
311
311
  }, J = (k) => {
312
312
  k.preventDefault();
313
313
  }, Z = j(null);
@@ -316,38 +316,38 @@ const Jt = ({
316
316
  }, []), _(() => {
317
317
  const k = o.current;
318
318
  if (!k) return;
319
- const N = (W) => {
320
- var ee, $, U, ie;
321
- const H = W.detail, X = o.current;
322
- if (!X || !H) return;
323
- const q = H.orientation ?? t;
324
- if (typeof H.progress == "number")
319
+ const N = (A) => {
320
+ var ee, W, U, ie;
321
+ const P = A.detail, X = o.current;
322
+ if (!X || !P) return;
323
+ const q = P.orientation ?? t;
324
+ if (typeof P.progress == "number")
325
325
  if (q === "horizontal") {
326
326
  const de = Math.max(
327
327
  0,
328
328
  (((ee = p.current) == null ? void 0 : ee.width) ?? 0) - X.clientWidth
329
329
  );
330
- X.scrollLeft = Math.min(de, Math.max(0, H.progress * de));
330
+ X.scrollLeft = Math.min(de, Math.max(0, P.progress * de));
331
331
  } else {
332
332
  const de = Math.max(
333
333
  0,
334
- ((($ = p.current) == null ? void 0 : $.height) ?? 0) - X.clientHeight
334
+ (((W = p.current) == null ? void 0 : W.height) ?? 0) - X.clientHeight
335
335
  );
336
- X.scrollTop = Math.min(de, Math.max(0, H.progress * de));
336
+ X.scrollTop = Math.min(de, Math.max(0, P.progress * de));
337
337
  }
338
- else if (typeof H.scroll == "number")
338
+ else if (typeof P.scroll == "number")
339
339
  if (q === "horizontal") {
340
340
  const de = Math.max(
341
341
  0,
342
342
  (((U = p.current) == null ? void 0 : U.width) ?? 0) - X.clientWidth
343
343
  );
344
- X.scrollLeft = Math.min(de, Math.max(0, H.scroll));
344
+ X.scrollLeft = Math.min(de, Math.max(0, P.scroll));
345
345
  } else {
346
346
  const de = Math.max(
347
347
  0,
348
348
  (((ie = p.current) == null ? void 0 : ie.height) ?? 0) - X.clientHeight
349
349
  );
350
- X.scrollTop = Math.min(de, Math.max(0, H.scroll));
350
+ X.scrollTop = Math.min(de, Math.max(0, P.scroll));
351
351
  }
352
352
  };
353
353
  return k.addEventListener("udx:customScroll:set", N), () => {
@@ -358,14 +358,14 @@ const Jt = ({
358
358
  {
359
359
  className: I.customScroll,
360
360
  ref: o,
361
- onMouseDown: P,
361
+ onMouseDown: H,
362
362
  onMouseMove: C,
363
363
  onMouseUp: D,
364
364
  onMouseLeave: T,
365
365
  onDragStart: J,
366
366
  onScroll: (k) => {
367
- S || (E(null), R(!0), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
368
- R(!1);
367
+ S || (E(null), $(!0), Z.current && clearTimeout(Z.current), Z.current = setTimeout(() => {
368
+ $(!1);
369
369
  }, 1e3));
370
370
  },
371
371
  children: [
@@ -378,7 +378,7 @@ const Jt = ({
378
378
  children: e
379
379
  }
380
380
  ),
381
- h.current && p.current && /* @__PURE__ */ K(me, { children: [
381
+ h.current && p.current && /* @__PURE__ */ K(ye, { children: [
382
382
  t === "vertical" && p.current.height > h.current.height && /* @__PURE__ */ d(
383
383
  ne.div,
384
384
  {
@@ -545,7 +545,7 @@ var sn = class {
545
545
  destroy() {
546
546
  this.events = {};
547
547
  }
548
- }, Ye = 100 / 6, xe = { passive: !1 }, on = class {
548
+ }, _e = 100 / 6, Se = { passive: !1 }, on = class {
549
549
  constructor(e, t = { wheelMultiplier: 1, touchMultiplier: 1 }) {
550
550
  B(this, "touchStart", {
551
551
  x: 0,
@@ -598,7 +598,7 @@ var sn = class {
598
598
  /** Event handler for 'wheel' event */
599
599
  B(this, "onWheel", (e) => {
600
600
  let { deltaX: t, deltaY: n, deltaMode: s } = e;
601
- const r = s === 1 ? Ye : s === 2 ? this.window.width : 1, c = s === 1 ? Ye : s === 2 ? this.window.height : 1;
601
+ const r = s === 1 ? _e : s === 2 ? this.window.width : 1, c = s === 1 ? _e : s === 2 ? this.window.height : 1;
602
602
  t *= r, n *= c, t *= this.options.wheelMultiplier, n *= this.options.wheelMultiplier, this.emitter.emit("scroll", { deltaX: t, deltaY: n, event: e });
603
603
  });
604
604
  B(this, "onWindowResize", () => {
@@ -607,15 +607,15 @@ var sn = class {
607
607
  height: window.innerHeight
608
608
  };
609
609
  });
610
- this.element = e, this.options = t, window.addEventListener("resize", this.onWindowResize, !1), this.onWindowResize(), this.element.addEventListener("wheel", this.onWheel, xe), this.element.addEventListener(
610
+ this.element = e, this.options = t, window.addEventListener("resize", this.onWindowResize, !1), this.onWindowResize(), this.element.addEventListener("wheel", this.onWheel, Se), this.element.addEventListener(
611
611
  "touchstart",
612
612
  this.onTouchStart,
613
- xe
613
+ Se
614
614
  ), this.element.addEventListener(
615
615
  "touchmove",
616
616
  this.onTouchMove,
617
- xe
618
- ), this.element.addEventListener("touchend", this.onTouchEnd, xe);
617
+ Se
618
+ ), this.element.addEventListener("touchend", this.onTouchEnd, Se);
619
619
  }
620
620
  /**
621
621
  * Add an event listener for the given event and callback
@@ -628,21 +628,21 @@ var sn = class {
628
628
  }
629
629
  /** Remove all event listeners and clean up */
630
630
  destroy() {
631
- this.emitter.destroy(), window.removeEventListener("resize", this.onWindowResize, !1), this.element.removeEventListener("wheel", this.onWheel, xe), this.element.removeEventListener(
631
+ this.emitter.destroy(), window.removeEventListener("resize", this.onWindowResize, !1), this.element.removeEventListener("wheel", this.onWheel, Se), this.element.removeEventListener(
632
632
  "touchstart",
633
633
  this.onTouchStart,
634
- xe
634
+ Se
635
635
  ), this.element.removeEventListener(
636
636
  "touchmove",
637
637
  this.onTouchMove,
638
- xe
638
+ Se
639
639
  ), this.element.removeEventListener(
640
640
  "touchend",
641
641
  this.onTouchEnd,
642
- xe
642
+ Se
643
643
  );
644
644
  }
645
- }, _e = (e) => Math.min(1, 1.001 - Math.pow(2, -10 * e)), ln = class {
645
+ }, Xe = (e) => Math.min(1, 1.001 - Math.pow(2, -10 * e)), ln = class {
646
646
  constructor({
647
647
  wrapper: e = window,
648
648
  content: t = document.documentElement,
@@ -668,12 +668,12 @@ var sn = class {
668
668
  overscroll: b = !0,
669
669
  autoRaf: g = !1,
670
670
  anchors: O = !1,
671
- autoToggle: A = !1,
671
+ autoToggle: R = !1,
672
672
  // https://caniuse.com/?search=transition-behavior
673
673
  allowNestedScroll: v = !1,
674
674
  // @ts-ignore: this will be deprecated in the future
675
675
  __experimental__naiveDimensions: S = !1,
676
- naiveDimensions: R = S,
676
+ naiveDimensions: $ = S,
677
677
  stopInertiaOnNavigate: I = !1
678
678
  } = {}) {
679
679
  B(this, "_isScrolling", !1);
@@ -848,7 +848,7 @@ var sn = class {
848
848
  const t = e - (this.time || e);
849
849
  this.time = e, this.animate.advance(t * 1e-3), this.options.autoRaf && (this._rafId = requestAnimationFrame(this.raf));
850
850
  });
851
- window.lenisVersion = Zt, (!e || e === document.documentElement) && (e = window), typeof i == "number" && typeof l != "function" ? l = _e : typeof l == "function" && typeof i != "number" && (i = 1), this.options = {
851
+ window.lenisVersion = Zt, (!e || e === document.documentElement) && (e = window), typeof i == "number" && typeof l != "function" ? l = Xe : typeof l == "function" && typeof i != "number" && (i = 1), this.options = {
852
852
  wrapper: e,
853
853
  content: t,
854
854
  eventsTarget: n,
@@ -870,9 +870,9 @@ var sn = class {
870
870
  overscroll: b,
871
871
  autoRaf: g,
872
872
  anchors: O,
873
- autoToggle: A,
873
+ autoToggle: R,
874
874
  allowNestedScroll: v,
875
- naiveDimensions: R,
875
+ naiveDimensions: $,
876
876
  stopInertiaOnNavigate: I
877
877
  }, this.dimensions = new sn(e, t, { autoResize: x }), this.updateClassName(), this.targetScroll = this.animatedScroll = this.actualScroll, this.options.wrapper.addEventListener("scroll", this.onNativeScroll, !1), this.options.wrapper.addEventListener("scrollend", this.onScrollEnd, {
878
878
  capture: !0
@@ -1039,7 +1039,7 @@ var sn = class {
1039
1039
  });
1040
1040
  return;
1041
1041
  }
1042
- r || (this.targetScroll = e), typeof a == "number" && typeof i != "function" ? i = _e : typeof i == "function" && typeof a != "number" && (a = 1), this.animate.fromTo(this.animatedScroll, e, {
1042
+ r || (this.targetScroll = e), typeof a == "number" && typeof i != "function" ? i = Xe : typeof i == "function" && typeof a != "number" && (a = 1), this.animate.fromTo(this.animatedScroll, e, {
1043
1043
  duration: a,
1044
1044
  easing: i,
1045
1045
  lerp: c,
@@ -1066,9 +1066,9 @@ var sn = class {
1066
1066
  const p = this.options.gestureOrientation;
1067
1067
  if (s - (r.time ?? 0) > 2e3) {
1068
1068
  r.time = Date.now();
1069
- const A = window.getComputedStyle(e);
1070
- r.computedStyle = A;
1071
- const v = A.overflowX, S = A.overflowY;
1069
+ const R = window.getComputedStyle(e);
1070
+ r.computedStyle = R;
1071
+ const v = R.overflowX, S = R.overflowY;
1072
1072
  if (c = ["auto", "overlay", "scroll"].includes(v), a = ["auto", "overlay", "scroll"].includes(S), r.hasOverflowX = c, r.hasOverflowY = a, !c && !a || p === "vertical" && !a || p === "horizontal" && !c) return !1;
1073
1073
  o = e.scrollWidth, u = e.scrollHeight, m = e.clientWidth, f = e.clientHeight, i = o > m, l = u > f, r.isScrollableX = i, r.isScrollableY = l, r.scrollWidth = o, r.scrollHeight = u, r.clientWidth = m, r.clientHeight = f;
1074
1074
  } else
@@ -1081,8 +1081,8 @@ var sn = class {
1081
1081
  else if (p === "vertical")
1082
1082
  h = "y";
1083
1083
  else {
1084
- const A = t !== 0, v = n !== 0;
1085
- A && c && i && (h = "x"), v && a && l && (h = "y");
1084
+ const R = t !== 0, v = n !== 0;
1085
+ R && c && i && (h = "x"), v && a && l && (h = "y");
1086
1086
  }
1087
1087
  if (!h) return !1;
1088
1088
  let x, w, M, b, g;
@@ -1207,8 +1207,8 @@ const Nr = ({
1207
1207
  var m;
1208
1208
  i.current !== null && cancelAnimationFrame(i.current), (m = a.current) == null || m.destroy(), a.current = null;
1209
1209
  };
1210
- }, [e, t, n, s, r]), c ? /* @__PURE__ */ d(me, { children: c }) : null;
1211
- }, Se = ({
1210
+ }, [e, t, n, s, r]), c ? /* @__PURE__ */ d(ye, { children: c }) : null;
1211
+ }, Ne = ({
1212
1212
  style: e,
1213
1213
  colorName: t,
1214
1214
  stateClassName: n = "state-ripple-group",
@@ -1282,7 +1282,7 @@ const Nr = ({
1282
1282
  var i;
1283
1283
  window.removeEventListener("scroll", c, !0), window.removeEventListener("resize", c), (i = r.current) == null || i.disconnect();
1284
1284
  };
1285
- }, [e]), n ? et(/* @__PURE__ */ d("div", { style: n, children: t }), document.body) : null;
1285
+ }, [e]), n ? He(/* @__PURE__ */ d("div", { style: n, children: t }), document.body) : null;
1286
1286
  };
1287
1287
  function dn(e) {
1288
1288
  return /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$/.test(e);
@@ -1350,20 +1350,20 @@ function fn() {
1350
1350
  function hn() {
1351
1351
  return typeof window > "u" || !("matchMedia" in window) ? !1 : window.matchMedia("(prefers-reduced-motion: reduce)").matches;
1352
1352
  }
1353
- function He(e) {
1353
+ function Oe(e) {
1354
1354
  if (!(e instanceof HTMLElement)) return !1;
1355
1355
  const t = e.classList;
1356
1356
  return Array.from(t).some(
1357
1357
  (n) => n.startsWith("anim-") && n.includes("scroll")
1358
1358
  );
1359
1359
  }
1360
- function Xe(e) {
1360
+ function qe(e) {
1361
1361
  if (!(e instanceof HTMLElement)) return !1;
1362
1362
  const t = e.classList;
1363
1363
  return Array.from(t).some((n) => n.startsWith("anim-"));
1364
1364
  }
1365
1365
  function We(e, t) {
1366
- if (!He(e)) return;
1366
+ if (!Oe(e)) return;
1367
1367
  if (e.hasAttribute(`data-${t}-scroll`)) {
1368
1368
  const a = (e.getAttribute(`data-${t}-scroll`) || "").trim().toLowerCase(), i = a === "x" || a === "inline" ? "inline" : a === "y" || a === "block" ? "block" : "auto";
1369
1369
  e.classList.contains(`${t}-timeline`) || e.classList.contains(`${t}-timeline-inline`) || e.classList.contains(`${t}-timeline-block`) || e.classList.contains(`${t}-timeline-x`) || e.classList.contains(`${t}-timeline-y`) || (i === "inline" ? e.classList.add(`${t}-timeline-inline`) : i === "block" ? e.classList.add(`${t}-timeline-block`) : e.classList.add(`${t}-scroll`));
@@ -1380,7 +1380,7 @@ function Ae(e = document, t) {
1380
1380
  e.querySelectorAll(
1381
1381
  `[class*="${t}-"][class*="-scroll"]`
1382
1382
  )
1383
- ).filter((s) => He(s));
1383
+ ).filter((s) => Oe(s));
1384
1384
  }
1385
1385
  function pn(e = document, t) {
1386
1386
  const n = Array.from(
@@ -1404,7 +1404,7 @@ function pn(e = document, t) {
1404
1404
  const c = r.classList;
1405
1405
  return c.contains(`${t}-in`) || c.contains(`${t}-out`) || Array.from(c).some(
1406
1406
  (l) => l.startsWith(`${t}-`) && !l.includes("scroll") && !s.has(l)
1407
- ) ? !0 : !He(r);
1407
+ ) ? !0 : !Oe(r);
1408
1408
  });
1409
1409
  }
1410
1410
  function mn(e, t) {
@@ -1412,17 +1412,17 @@ function mn(e, t) {
1412
1412
  (n) => n.startsWith(t) && n.includes("-out")
1413
1413
  );
1414
1414
  }
1415
- function qe(e, t, n) {
1415
+ function Ue(e, t, n) {
1416
1416
  e.setAttribute(`data-${t}-run`, ""), e.setAttribute(`data-${t}-${n}-run`, "");
1417
1417
  }
1418
- function Ue(e, t, n) {
1418
+ function je(e, t, n) {
1419
1419
  const s = e.style.animationName;
1420
1420
  e.style.animationName = "none", e.removeAttribute(`data-${t}-run`), n ? e.removeAttribute(`data-${t}-${n}-run`) : (e.removeAttribute(`data-${t}-in-run`), e.removeAttribute(`data-${t}-out-run`)), e.offsetWidth, e.style.animationName = s;
1421
1421
  }
1422
- const yn = [0, 0.2], je = /* @__PURE__ */ new WeakSet();
1423
- function Ke(e, t) {
1424
- if (je.has(e)) return;
1425
- je.add(e);
1422
+ const yn = [0, 0.2], Ke = /* @__PURE__ */ new WeakSet();
1423
+ function Ge(e, t) {
1424
+ if (Ke.has(e)) return;
1425
+ Ke.add(e);
1426
1426
  const n = (r) => {
1427
1427
  r.target === e && (e.hasAttribute(`data-${t}-in-run`) || e.hasAttribute(`data-${t}-out-run`)) && e.setAttribute(`data-${t}-animating`, "");
1428
1428
  }, s = (r) => {
@@ -1446,16 +1446,16 @@ function ot(e = {}) {
1446
1446
  (p) => {
1447
1447
  for (const h of p) {
1448
1448
  const x = h.target;
1449
- if (!Xe(x) || x.hasAttribute(`data-${t}-animating`)) continue;
1449
+ if (!qe(x) || x.hasAttribute(`data-${t}-animating`)) continue;
1450
1450
  const w = mn(x.classList, t);
1451
- h.isIntersecting ? (w && Ue(x, t, "out"), qe(x, t, "in"), n && l.unobserve(x)) : n || (a || Ue(x, t, "in"), w && qe(x, t, "out"));
1451
+ h.isIntersecting ? (w && je(x, t, "out"), Ue(x, t, "in"), n && l.unobserve(x)) : n || (a || je(x, t, "in"), w && Ue(x, t, "out"));
1452
1452
  }
1453
1453
  },
1454
1454
  { threshold: yn }
1455
1455
  ), o = (p) => {
1456
1456
  const h = pn(p || document, t);
1457
1457
  for (const x of h)
1458
- r.has(x) || (r.add(x), l.observe(x), Ke(x, t));
1458
+ r.has(x) || (r.add(x), l.observe(x), Ge(x, t));
1459
1459
  };
1460
1460
  o();
1461
1461
  let u, m = null, f = null;
@@ -1470,7 +1470,7 @@ function ot(e = {}) {
1470
1470
  for (const x of h)
1471
1471
  if (x.type === "attributes") {
1472
1472
  const w = x.target;
1473
- w instanceof HTMLElement && (We(w, t), Xe(w) && (r.has(w) || (r.add(w), l.observe(w), Ke(w, t))));
1473
+ w instanceof HTMLElement && (We(w, t), qe(w) && (r.has(w) || (r.add(w), l.observe(w), Ge(w, t))));
1474
1474
  } else if (x.type === "childList" && x.addedNodes && x.addedNodes.length) {
1475
1475
  for (const w of Array.from(x.addedNodes))
1476
1476
  if (w instanceof HTMLElement) {
@@ -1512,7 +1512,7 @@ const kr = ot, Ir = ot, it = ({
1512
1512
  children: n,
1513
1513
  style: s
1514
1514
  }) => {
1515
- const c = `--anchor-${Me().replace(/:/g, "")}`, [a, i] = V(!1);
1515
+ const c = `--anchor-${Ee().replace(/:/g, "")}`, [a, i] = V(!1);
1516
1516
  if ($e(() => {
1517
1517
  typeof CSS < "u" && CSS.supports("anchor-name", "--a") && i(!0);
1518
1518
  }, []), $e(() => {
@@ -1541,7 +1541,10 @@ const kr = ot, Ir = ot, it = ({
1541
1541
  positionTryFallbacks: "flip-block, flip-inline",
1542
1542
  ...s
1543
1543
  };
1544
- return /* @__PURE__ */ d("div", { style: u, children: n });
1544
+ return He(
1545
+ /* @__PURE__ */ d("div", { style: u, children: n }),
1546
+ document.body
1547
+ );
1545
1548
  }
1546
1549
  const l = {
1547
1550
  position: "absolute",
@@ -2039,7 +2042,7 @@ const kr = ot, Ir = ot, it = ({
2039
2042
  ],
2040
2043
  !!t && "text-on-surface/[0.38]"
2041
2044
  )
2042
- }), Pr = oe(
2045
+ }), Hr = oe(
2043
2046
  "iconButton",
2044
2047
  vt
2045
2048
  ), Mn = re(
@@ -2074,7 +2077,7 @@ const kr = ot, Ir = ot, it = ({
2074
2077
  "max-h-full": t
2075
2078
  }
2076
2079
  )
2077
- }), Hr = oe(
2080
+ }), Pr = oe(
2078
2081
  "progressIndicator",
2079
2082
  gt
2080
2083
  ), En = re(
@@ -2383,7 +2386,7 @@ const kr = ot, Ir = ot, it = ({
2383
2386
  }), Ur = oe(
2384
2387
  "textField",
2385
2388
  Mt
2386
- ), Pn = re(
2389
+ ), Hn = re(
2387
2390
  "textField",
2388
2391
  Mt
2389
2392
  ), Et = ({
@@ -2417,10 +2420,10 @@ const kr = ot, Ir = ot, it = ({
2417
2420
  }), jr = oe(
2418
2421
  "toolTip",
2419
2422
  Et
2420
- ), Hn = re(
2423
+ ), Pn = re(
2421
2424
  "toolTip",
2422
2425
  Et
2423
- ), fe = ({
2426
+ ), he = ({
2424
2427
  icon: e,
2425
2428
  colors: t = [],
2426
2429
  className: n,
@@ -2531,7 +2534,7 @@ const kr = ot, Ir = ot, it = ({
2531
2534
  transitionDuration: n,
2532
2535
  isVisible: m
2533
2536
  });
2534
- return /* @__PURE__ */ K(me, { children: [
2537
+ return /* @__PURE__ */ K(ye, { children: [
2535
2538
  (e === "linear-determinate" || e == "linear-indeterminate") && /* @__PURE__ */ K("div", { className: p.progressIndicator, ...r, children: [
2536
2539
  /* @__PURE__ */ d(
2537
2540
  "div",
@@ -2621,7 +2624,7 @@ function zn(e) {
2621
2624
  };
2622
2625
  return e && e in t ? t[e] : e || "filled";
2623
2626
  }
2624
- const Ne = ({
2627
+ const Le = ({
2625
2628
  variant: e = "filled",
2626
2629
  disabled: t = !1,
2627
2630
  icon: n,
@@ -2647,11 +2650,11 @@ const Ne = ({
2647
2650
  "Button component requires either a label prop or children content"
2648
2651
  );
2649
2652
  e = zn(e);
2650
- const g = s ? "a" : "button", O = j(null), A = p || O, [v, S] = Q.useState(f);
2653
+ const g = s ? "a" : "button", O = j(null), R = p || O, [v, S] = Q.useState(f);
2651
2654
  _(() => {
2652
2655
  S(f);
2653
2656
  }, [f]), w = { duration: 0.3, ...w };
2654
- const R = (E) => {
2657
+ const $ = (E) => {
2655
2658
  t && E.preventDefault(), m ? (S(!v), m(!v)) : u && u(E);
2656
2659
  }, I = vn({
2657
2660
  allowShapeTransformation: x,
@@ -2671,22 +2674,22 @@ const Ne = ({
2671
2674
  activated: v,
2672
2675
  label: r,
2673
2676
  children: r
2674
- }), F = n ? /* @__PURE__ */ d(fe, { icon: n, className: I.icon }) : /* @__PURE__ */ d(me, {});
2677
+ }), F = n ? /* @__PURE__ */ d(he, { icon: n, className: I.icon }) : /* @__PURE__ */ d(ye, {});
2675
2678
  return /* @__PURE__ */ K(
2676
2679
  g,
2677
2680
  {
2678
- ref: A,
2681
+ ref: R,
2679
2682
  href: s,
2680
2683
  className: I.button,
2681
2684
  ...b,
2682
- onClick: R,
2685
+ onClick: $,
2683
2686
  disabled: t,
2684
2687
  "aria-pressed": m ? v : void 0,
2685
2688
  style: { transition: w.duration + "s" },
2686
2689
  children: [
2687
2690
  /* @__PURE__ */ d("div", { className: I.touchTarget }),
2688
2691
  /* @__PURE__ */ d(
2689
- Se,
2692
+ Ne,
2690
2693
  {
2691
2694
  style: { transition: w.duration + "s" },
2692
2695
  className: I.stateLayer,
@@ -2771,7 +2774,7 @@ const Ne = ({
2771
2774
  }), i = j(null);
2772
2775
  return /* @__PURE__ */ K("div", { ...c, ref: r || i, className: a.card, children: [
2773
2776
  s && /* @__PURE__ */ d(
2774
- Se,
2777
+ Ne,
2775
2778
  {
2776
2779
  className: a.stateLayer,
2777
2780
  colorName: "on-surface",
@@ -2780,7 +2783,7 @@ const Ne = ({
2780
2783
  ),
2781
2784
  n
2782
2785
  ] });
2783
- }, Le = (e, t, n = [0, 1]) => {
2786
+ }, ke = (e, t, n = [0, 1]) => {
2784
2787
  const [s, r] = t, [c, a] = n, l = (Math.max(s, Math.min(e, r)) - s) / (r - s);
2785
2788
  return c + l * (a - c);
2786
2789
  }, Tn = ({
@@ -2847,36 +2850,36 @@ const Ne = ({
2847
2850
  onMetricsChange: o
2848
2851
  }), b = Q.Children.toArray(n).filter(
2849
2852
  (N) => Q.isValidElement(N) && N.type === Tn
2850
- ), g = j(null), [O, A] = V(
2853
+ ), g = j(null), [O, R] = V(
2851
2854
  {}
2852
- ), [v, S] = V(null), R = j(0), I = j(null), F = () => {
2853
- var be, ce;
2855
+ ), [v, S] = V(null), $ = j(0), I = j(null), F = () => {
2856
+ var xe, ce;
2854
2857
  if (!g.current || !h.current || (v == null ? void 0 : v.scrollProgress) === void 0)
2855
2858
  return [];
2856
- const N = (v == null ? void 0 : v.scrollVisible) ?? ((be = h.current) == null ? void 0 : be.clientWidth) ?? 0;
2857
- function W(G, ae) {
2858
- return G.map((le, ge) => {
2859
- const Ee = (le - ae) / Math.abs(G[1] - G[0]);
2859
+ const N = (v == null ? void 0 : v.scrollVisible) ?? ((xe = h.current) == null ? void 0 : xe.clientWidth) ?? 0;
2860
+ function A(G, ae) {
2861
+ return G.map((le, we) => {
2862
+ const Ce = (le - ae) / Math.abs(G[1] - G[0]);
2860
2863
  return {
2861
2864
  itemScrollXCenter: le,
2862
- relativeIndex: Ee,
2863
- index: ge,
2865
+ relativeIndex: Ce,
2866
+ index: we,
2864
2867
  width: 0
2865
2868
  };
2866
2869
  });
2867
2870
  }
2868
- const H = b.map((G, ae) => {
2871
+ const P = b.map((G, ae) => {
2869
2872
  if (!E[ae].current || !g.current) return 0;
2870
- const ge = ae / (b.length - 1);
2871
- return Le(ge, [0, 1], [0, 1]);
2872
- }), X = W(
2873
- H,
2873
+ const we = ae / (b.length - 1);
2874
+ return ke(we, [0, 1], [0, 1]);
2875
+ }), X = A(
2876
+ P,
2874
2877
  (v == null ? void 0 : v.scrollProgress) ?? 0
2875
2878
  ).sort((G, ae) => G.index - ae.index);
2876
2879
  let q = (((ce = h.current) == null ? void 0 : ce.clientWidth) ?? N) + i + a[0] + i;
2877
2880
  const ee = X.sort((G, ae) => Math.abs(G.relativeIndex) - Math.abs(ae.relativeIndex)).map((G, ae) => {
2878
2881
  if (!(q <= 0)) {
2879
- if (ae == 0 && z(G.index), G.width = Le(
2882
+ if (ae == 0 && z(G.index), G.width = ke(
2880
2883
  q - i,
2881
2884
  [a[0], a[1]],
2882
2885
  [a[0], a[1]]
@@ -2889,25 +2892,25 @@ const Ne = ({
2889
2892
  }
2890
2893
  return G;
2891
2894
  }
2892
- }).filter(Boolean), $ = ee.reverse(), U = [...ee].sort(
2895
+ }).filter(Boolean), W = ee.reverse(), U = [...ee].sort(
2893
2896
  (G, ae) => Math.abs(G.index) - Math.abs(ae.index)
2894
2897
  );
2895
- $.forEach((G, ae) => {
2896
- const le = $[ae + 1];
2898
+ W.forEach((G, ae) => {
2899
+ const le = W[ae + 1];
2897
2900
  if (!le) return;
2898
- const ge = 1 - (Math.abs(G.relativeIndex) - Math.abs(le == null ? void 0 : le.relativeIndex)), Ee = Le(
2899
- ge,
2901
+ const we = 1 - (Math.abs(G.relativeIndex) - Math.abs(le == null ? void 0 : le.relativeIndex)), Ce = ke(
2902
+ we,
2900
2903
  [0, 2],
2901
2904
  [G.width + q, le.width]
2902
2905
  );
2903
- q += G.width, G.width = Ee, q -= G.width;
2906
+ q += G.width, G.width = Ce, q -= G.width;
2904
2907
  });
2905
- const ie = ee.length / 2, de = Le(
2908
+ const ie = ee.length / 2, de = ke(
2906
2909
  Math.abs(U[0].relativeIndex),
2907
2910
  [U[0].index == 0 ? 0 : ie - 1, ie],
2908
2911
  [0, 1]
2909
- ), ye = Le(de, [0, 1], [0, 1]) * -(a[0] + i);
2910
- return w(ye), Object.fromEntries(
2912
+ ), ve = ke(de, [0, 1], [0, 1]) * -(a[0] + i);
2913
+ return w(ve), Object.fromEntries(
2911
2914
  ee.map((G) => [G.index, G.width])
2912
2915
  );
2913
2916
  }, E = j([]).current, [Y, z] = V(0);
@@ -2916,55 +2919,55 @@ const Ne = ({
2916
2919
  }, [Y]), _(() => {
2917
2920
  typeof u == "number" && b.length > 0 && u !== Y && C(u);
2918
2921
  }, [u, b.length]), _(() => {
2919
- P(Y);
2920
- }, [Y]), E.length !== b.length && b.forEach((N, W) => {
2921
- E[W] || (E[W] = Q.createRef());
2922
+ H(Y);
2923
+ }, [Y]), E.length !== b.length && b.forEach((N, A) => {
2924
+ E[A] || (E[A] = Q.createRef());
2922
2925
  });
2923
- const [te, P] = V(0), C = (N, W = {}) => {
2926
+ const [te, H] = V(0), C = (N, A = {}) => {
2924
2927
  if (!b.length) return 0;
2925
- const H = E[N];
2926
- if (!H || !H.current || !g.current) return 0;
2927
- const X = Le(
2928
+ const P = E[N];
2929
+ if (!P || !P.current || !g.current) return 0;
2930
+ const X = ke(
2928
2931
  N / Math.max(1, b.length - 1),
2929
2932
  [0, 1],
2930
2933
  [0, 1]
2931
2934
  );
2932
- return P(N), g.current.dispatchEvent(
2935
+ return H(N), g.current.dispatchEvent(
2933
2936
  new CustomEvent("udx:customScroll:set", {
2934
2937
  bubbles: !0,
2935
2938
  detail: {
2936
2939
  progress: X,
2937
2940
  orientation: "horizontal",
2938
- animate: W.animate !== !1
2941
+ animate: A.animate !== !1
2939
2942
  }
2940
2943
  })
2941
2944
  ), X;
2942
- }, D = b.map((N, W) => {
2945
+ }, D = b.map((N, A) => {
2943
2946
  var ee;
2944
- const H = (ee = N.props) == null ? void 0 : ee.onClick, X = ($) => {
2945
- H == null || H($);
2946
- }, q = () => P(W);
2947
+ const P = (ee = N.props) == null ? void 0 : ee.onClick, X = (W) => {
2948
+ P == null || P(W);
2949
+ }, q = () => H(A);
2947
2950
  return Q.cloneElement(
2948
2951
  N,
2949
2952
  {
2950
- width: O[W],
2953
+ width: O[A],
2951
2954
  outputRange: a,
2952
- ref: E[W],
2953
- key: W,
2954
- index: W,
2955
+ ref: E[A],
2956
+ key: A,
2957
+ index: A,
2955
2958
  role: "option",
2956
- "aria-selected": Y === W,
2957
- tabIndex: Y === W ? 0 : -1,
2959
+ "aria-selected": Y === A,
2960
+ tabIndex: Y === A ? 0 : -1,
2958
2961
  onClick: X,
2959
2962
  onFocus: q
2960
2963
  }
2961
2964
  );
2962
2965
  }), T = (N) => {
2963
- var W;
2966
+ var A;
2964
2967
  if (N.scrollTotal > 0) {
2965
- (W = I.current) == null || W.stop();
2966
- const H = R.current ?? 0, X = N.scrollProgress ?? 0;
2967
- I.current = Ot(H, X, {
2968
+ (A = I.current) == null || A.stop();
2969
+ const P = $.current ?? 0, X = N.scrollProgress ?? 0;
2970
+ I.current = Ot(P, X, {
2968
2971
  // Spring tuning to add a bit of inertia and smoothness
2969
2972
  type: "spring",
2970
2973
  stiffness: 260,
@@ -2972,14 +2975,14 @@ const Ne = ({
2972
2975
  mass: 0.6,
2973
2976
  restDelta: 5e-4,
2974
2977
  onUpdate: (q) => {
2975
- R.current = q, S({ ...N, scrollProgress: q });
2978
+ $.current = q, S({ ...N, scrollProgress: q });
2976
2979
  }
2977
2980
  });
2978
2981
  }
2979
2982
  };
2980
2983
  _(() => {
2981
2984
  const N = F();
2982
- A(N);
2985
+ R(N);
2983
2986
  }, [v]);
2984
2987
  const J = j(o);
2985
2988
  _(() => {
@@ -2990,33 +2993,33 @@ const Ne = ({
2990
2993
  var ae;
2991
2994
  const N = J.current;
2992
2995
  if (!N || !(h != null && h.current)) return;
2993
- const W = b.length;
2994
- if (W <= 0) return;
2995
- const H = ((ae = h.current) == null ? void 0 : ae.clientWidth) ?? 0, X = a[1], q = R.current ?? (v == null ? void 0 : v.scrollProgress) ?? 0, ee = (H + i) / (X + i), $ = Math.max(1, Math.floor(ee)), U = Math.max(1, Math.round($ * (2 / 3))), ie = Math.min(
2996
+ const A = b.length;
2997
+ if (A <= 0) return;
2998
+ const P = ((ae = h.current) == null ? void 0 : ae.clientWidth) ?? 0, X = a[1], q = $.current ?? (v == null ? void 0 : v.scrollProgress) ?? 0, ee = (P + i) / (X + i), W = Math.max(1, Math.floor(ee)), U = Math.max(1, Math.round(W * (2 / 3))), ie = Math.min(
2996
2999
  Math.max(0, Y),
2997
- Math.max(0, W - 1)
2998
- ), de = ie > 0, ye = ie < W - 1, be = {
2999
- total: W,
3000
+ Math.max(0, A - 1)
3001
+ ), de = ie > 0, ve = ie < A - 1, xe = {
3002
+ total: A,
3000
3003
  selectedIndex: ie,
3001
3004
  visibleApprox: ee,
3002
- visibleFull: $,
3005
+ visibleFull: W,
3003
3006
  stepHalf: U,
3004
3007
  canPrev: de,
3005
- canNext: ye,
3008
+ canNext: ve,
3006
3009
  scrollProgress: q,
3007
- viewportWidth: H,
3010
+ viewportWidth: P,
3008
3011
  itemMaxWidth: X,
3009
3012
  gap: i
3010
3013
  }, ce = Z.current;
3011
3014
  let G = !ce;
3012
3015
  if (!G) {
3013
- for (const le in be)
3014
- if (be[le] !== ce[le]) {
3016
+ for (const le in xe)
3017
+ if (xe[le] !== ce[le]) {
3015
3018
  G = !0;
3016
3019
  break;
3017
3020
  }
3018
3021
  }
3019
- G && (Z.current = be, N(be));
3022
+ G && (Z.current = xe, N(xe));
3020
3023
  }, [h, b.length, Y, v, i, a]), _(() => () => {
3021
3024
  var N;
3022
3025
  (N = I.current) == null || N.stop();
@@ -3025,18 +3028,18 @@ const Ne = ({
3025
3028
  $e(() => {
3026
3029
  let N = a[1];
3027
3030
  v && N > v.scrollVisible && (N = v.scrollVisible);
3028
- const W = (N + i) * D.length / m;
3029
- L(W);
3031
+ const A = (N + i) * D.length / m;
3032
+ L(A);
3030
3033
  }, [h, E, v]);
3031
3034
  const k = (N) => {
3032
3035
  if (!b.length) return;
3033
- const W = te ?? Y;
3036
+ const A = te ?? Y;
3034
3037
  switch (N.key) {
3035
3038
  case "ArrowLeft":
3036
- N.preventDefault(), C(Math.max(0, W - 1));
3039
+ N.preventDefault(), C(Math.max(0, A - 1));
3037
3040
  break;
3038
3041
  case "ArrowRight":
3039
- N.preventDefault(), C(Math.min(b.length - 1, W + 1));
3042
+ N.preventDefault(), C(Math.min(b.length - 1, A + 1));
3040
3043
  break;
3041
3044
  case "Home":
3042
3045
  N.preventDefault(), C(0);
@@ -3046,21 +3049,21 @@ const Ne = ({
3046
3049
  break;
3047
3050
  case "Enter":
3048
3051
  case " ":
3049
- N.preventDefault(), C(W);
3052
+ N.preventDefault(), C(A);
3050
3053
  break;
3051
3054
  }
3052
3055
  };
3053
3056
  return _(() => {
3054
3057
  const N = h.current;
3055
3058
  if (!N) return;
3056
- const W = (H) => {
3057
- const X = H.detail;
3059
+ const A = (P) => {
3060
+ const X = P.detail;
3058
3061
  X && typeof X.index == "number" && C(X.index);
3059
3062
  };
3060
- return N.addEventListener("udx:carousel:centerIndex", W), () => {
3063
+ return N.addEventListener("udx:carousel:centerIndex", A), () => {
3061
3064
  N.removeEventListener(
3062
3065
  "udx:carousel:centerIndex",
3063
- W
3066
+ A
3064
3067
  );
3065
3068
  };
3066
3069
  }, [h, b.length]), /* @__PURE__ */ d(
@@ -3153,13 +3156,13 @@ const Jr = ({
3153
3156
  className: u,
3154
3157
  ...m
3155
3158
  }) => {
3156
- const f = Me(), p = a || f, h = e !== void 0, [x, w] = V(
3159
+ const f = Ee(), p = a || f, h = e !== void 0, [x, w] = V(
3157
3160
  t ?? !1
3158
3161
  ), M = h ? e : x, [b, g] = V(!1), O = Q.useRef(null);
3159
3162
  _(() => {
3160
3163
  O.current && (O.current.indeterminate = n);
3161
3164
  }, [n]);
3162
- const A = (S) => {
3165
+ const R = (S) => {
3163
3166
  s || (h || w(S.target.checked), c && c(S));
3164
3167
  }, v = xn({
3165
3168
  isChecked: !!M,
@@ -3176,7 +3179,7 @@ const Jr = ({
3176
3179
  className: y(v.checkbox, u, "group/checkbox"),
3177
3180
  style: o,
3178
3181
  children: /* @__PURE__ */ K(
3179
- Se,
3182
+ Ne,
3180
3183
  {
3181
3184
  stateClassName: v.stateLayer,
3182
3185
  colorName: M || n ? "primary" : "on-surface",
@@ -3191,7 +3194,7 @@ const Jr = ({
3191
3194
  value: l,
3192
3195
  checked: M,
3193
3196
  disabled: s,
3194
- onChange: A,
3197
+ onChange: R,
3195
3198
  onFocus: () => g(!0),
3196
3199
  onBlur: () => g(!1),
3197
3200
  className: v.input,
@@ -3199,7 +3202,7 @@ const Jr = ({
3199
3202
  }
3200
3203
  ),
3201
3204
  /* @__PURE__ */ d("div", { className: v.box }),
3202
- /* @__PURE__ */ d(he, { children: (M || n) && /* @__PURE__ */ d(
3205
+ /* @__PURE__ */ d(pe, { children: (M || n) && /* @__PURE__ */ d(
3203
3206
  ne.div,
3204
3207
  {
3205
3208
  initial: { opacity: 0, scale: 0.5 },
@@ -3208,7 +3211,7 @@ const Jr = ({
3208
3211
  transition: { duration: 0.15 },
3209
3212
  className: v.icon,
3210
3213
  children: /* @__PURE__ */ d(
3211
- fe,
3214
+ he,
3212
3215
  {
3213
3216
  icon: n ? Vn : Ct,
3214
3217
  className: "size-3.5"
@@ -3221,7 +3224,7 @@ const Jr = ({
3221
3224
  )
3222
3225
  }
3223
3226
  );
3224
- }, Ge = ({
3227
+ }, Je = ({
3225
3228
  variant: e = "outlined",
3226
3229
  disabled: t = !1,
3227
3230
  icon: n,
@@ -3247,33 +3250,33 @@ const Jr = ({
3247
3250
  throw new Error(
3248
3251
  "Chip component requires either a label prop or children content"
3249
3252
  );
3250
- const O = s ? "a" : "button", A = j(null), v = o || A, [S, R] = Q.useState(l), [I, F] = Q.useState(!1), [E, Y] = V(b && m), [z, te] = Q.useState(!1), [P, C] = Q.useState(
3253
+ const O = s ? "a" : "button", R = j(null), v = o || R, [S, $] = Q.useState(l), [I, F] = Q.useState(!1), [E, Y] = V(b && m), [z, te] = Q.useState(!1), [H, C] = Q.useState(
3251
3254
  typeof r == "string" ? r : ""
3252
3255
  ), D = Q.useRef(null);
3253
3256
  _(() => {
3254
- R(l);
3257
+ $(l);
3255
3258
  }, [l]), _(() => {
3256
3259
  if (b && Y(b), m && I) {
3257
- const $ = setTimeout(() => {
3260
+ const W = setTimeout(() => {
3258
3261
  g != null && g.draggable && z || Y(!0);
3259
3262
  }, 1e3);
3260
- return () => clearTimeout($);
3263
+ return () => clearTimeout(W);
3261
3264
  } else I || Y(!1);
3262
- }, [I, m, z, g, P]), _(() => {
3265
+ }, [I, m, z, g, H]), _(() => {
3263
3266
  if (E) {
3264
3267
  C(typeof r == "string" ? r : "");
3265
- const $ = q.current || D.current;
3266
- if ($) {
3267
- $.focus();
3268
+ const W = q.current || D.current;
3269
+ if (W) {
3270
+ W.focus();
3268
3271
  const U = document.createRange();
3269
- U.selectNodeContents($), U.collapse(!1);
3272
+ U.selectNodeContents(W), U.collapse(!1);
3270
3273
  const ie = window.getSelection();
3271
3274
  ie == null || ie.removeAllRanges(), ie == null || ie.addRange(U);
3272
3275
  }
3273
3276
  }
3274
3277
  }, [E]), w = { duration: 0.3, ...w };
3275
- const T = ($) => {
3276
- t && $.preventDefault(), i ? (R(!S), i(!S)) : a && a($);
3278
+ const T = (W) => {
3279
+ t && W.preventDefault(), i ? ($(!S), i(!S)) : a && a(W);
3277
3280
  }, J = !!i || !!u || !!a || !!s || !!m;
3278
3281
  l && (n = Ct);
3279
3282
  const {
@@ -3282,8 +3285,8 @@ const Jr = ({
3282
3285
  onKeyDown: L,
3283
3286
  onDragStart: k,
3284
3287
  onDragEnd: N,
3285
- onDoubleClick: W,
3286
- ...H
3288
+ onDoubleClick: A,
3289
+ ...P
3287
3290
  } = g ?? {}, X = Sn({
3288
3291
  href: s,
3289
3292
  disabled: t,
@@ -3302,12 +3305,12 @@ const Jr = ({
3302
3305
  onEditCommit: p,
3303
3306
  isEditing: E
3304
3307
  }), q = j(null), ee = () => {
3305
- const $ = (P ?? "").trim();
3306
- if (!$) {
3308
+ const W = (H ?? "").trim();
3309
+ if (!W) {
3307
3310
  u && u();
3308
3311
  return;
3309
3312
  }
3310
- p == null || p($);
3313
+ p == null || p(W);
3311
3314
  };
3312
3315
  return /* @__PURE__ */ K(
3313
3316
  O,
@@ -3316,52 +3319,52 @@ const Jr = ({
3316
3319
  ref: v,
3317
3320
  href: s,
3318
3321
  className: X.chip,
3319
- ...H,
3320
- onClick: ($) => {
3321
- E || T($);
3322
+ ...P,
3323
+ onClick: (W) => {
3324
+ E || T(W);
3322
3325
  },
3323
3326
  draggable: !t && !!(g != null && g.draggable),
3324
- onDragStart: ($) => {
3325
- !t && (g != null && g.draggable) && te(!0), k == null || k($);
3327
+ onDragStart: (W) => {
3328
+ !t && (g != null && g.draggable) && te(!0), k == null || k(W);
3326
3329
  },
3327
- onDragEnd: ($) => {
3328
- g != null && g.draggable && te(!1), N == null || N($);
3330
+ onDragEnd: (W) => {
3331
+ g != null && g.draggable && te(!1), N == null || N(W);
3329
3332
  },
3330
- onDoubleClick: ($) => {
3331
- !t && m && !E && (f == null || f(), $.preventDefault(), $.stopPropagation()), W == null || W($);
3333
+ onDoubleClick: (W) => {
3334
+ !t && m && !E && (f == null || f(), W.preventDefault(), W.stopPropagation()), A == null || A(W);
3332
3335
  },
3333
- onFocus: ($) => {
3334
- J && F(!0), Z == null || Z($);
3336
+ onFocus: (W) => {
3337
+ J && F(!0), Z == null || Z(W);
3335
3338
  },
3336
- onBlur: ($) => {
3337
- F(!1), se == null || se($);
3339
+ onBlur: (W) => {
3340
+ F(!1), se == null || se(W);
3338
3341
  },
3339
- onKeyDown: ($) => {
3340
- const U = $.key;
3342
+ onKeyDown: (W) => {
3343
+ const U = W.key;
3341
3344
  if (!t && E) {
3342
- U === "Enter" ? ($.preventDefault(), ee()) : U === "Escape" ? ($.preventDefault(), h == null || h()) : u && (P == null ? void 0 : P.trim()) === "" && (U === "Backspace" || U === "Delete" || U === "Del") && ($.preventDefault(), $.stopPropagation(), u());
3345
+ U === "Enter" ? (W.preventDefault(), ee()) : U === "Escape" ? (W.preventDefault(), h == null || h()) : u && (H == null ? void 0 : H.trim()) === "" && (U === "Backspace" || U === "Delete" || U === "Del") && (W.preventDefault(), W.stopPropagation(), u());
3343
3346
  return;
3344
3347
  }
3345
3348
  if (!t && I) {
3346
3349
  if (m && !i && (U === "F2" || U === "Enter")) {
3347
- $.preventDefault(), f == null || f();
3350
+ W.preventDefault(), f == null || f();
3348
3351
  return;
3349
3352
  }
3350
3353
  if (i && (U === "Enter" || U === " " || U === "Spacebar")) {
3351
- $.preventDefault();
3354
+ W.preventDefault();
3352
3355
  const ie = !S;
3353
- R(ie), i(ie);
3356
+ $(ie), i(ie);
3354
3357
  }
3355
- u && (U === "Backspace" || U === "Delete" || U === "Del") && ($.preventDefault(), $.stopPropagation(), u());
3358
+ u && (U === "Backspace" || U === "Delete" || U === "Del") && (W.preventDefault(), W.stopPropagation(), u());
3356
3359
  }
3357
- L == null || L($);
3360
+ L == null || L(W);
3358
3361
  },
3359
3362
  disabled: t,
3360
3363
  "aria-pressed": i ? S : void 0,
3361
3364
  style: { transition: w.duration + "s" },
3362
3365
  children: [
3363
3366
  J && !t && !E && /* @__PURE__ */ d(
3364
- Se,
3367
+ Ne,
3365
3368
  {
3366
3369
  style: { transition: w.duration + "s" },
3367
3370
  className: X.stateLayer,
@@ -3372,7 +3375,7 @@ const Jr = ({
3372
3375
  stateClassName: "state-ripple-group-[chip]"
3373
3376
  }
3374
3377
  ),
3375
- n && /* @__PURE__ */ d(fe, { icon: n, className: X.leadingIcon }),
3378
+ n && /* @__PURE__ */ d(he, { icon: n, className: X.leadingIcon }),
3376
3379
  /* @__PURE__ */ d(
3377
3380
  "span",
3378
3381
  {
@@ -3382,33 +3385,33 @@ const Jr = ({
3382
3385
  className: X.label,
3383
3386
  role: m ? "textbox" : void 0,
3384
3387
  spellCheck: !1,
3385
- onInput: ($) => {
3386
- const U = $.currentTarget.innerText;
3388
+ onInput: (W) => {
3389
+ const U = W.currentTarget.innerText;
3387
3390
  C(U), x == null || x(U);
3388
3391
  },
3389
- onBlur: ($) => {
3392
+ onBlur: (W) => {
3390
3393
  m && E && ee();
3391
3394
  },
3392
- onKeyDown: ($) => {
3393
- if (m && E && $.key === "Enter") {
3394
- $.preventDefault(), $.stopPropagation(), ee();
3395
+ onKeyDown: (W) => {
3396
+ if (m && E && W.key === "Enter") {
3397
+ W.preventDefault(), W.stopPropagation(), ee();
3395
3398
  return;
3396
3399
  }
3397
- m && E && $.key === "Escape" && ($.preventDefault(), $.stopPropagation(), h == null || h());
3400
+ m && E && W.key === "Escape" && (W.preventDefault(), W.stopPropagation(), h == null || h());
3398
3401
  },
3399
3402
  children: r
3400
3403
  }
3401
3404
  ),
3402
3405
  u && !E && /* @__PURE__ */ d(
3403
- fe,
3406
+ he,
3404
3407
  {
3405
3408
  icon: De,
3406
3409
  className: X.trailingIcon,
3407
- onMouseDown: ($) => {
3408
- $.preventDefault(), $.stopPropagation();
3410
+ onMouseDown: (W) => {
3411
+ W.preventDefault(), W.stopPropagation();
3409
3412
  },
3410
- onClick: ($) => {
3411
- $.stopPropagation(), t || u();
3413
+ onClick: (W) => {
3414
+ W.stopPropagation(), t || u();
3412
3415
  }
3413
3416
  }
3414
3417
  )
@@ -3438,11 +3441,11 @@ function Zn() {
3438
3441
  }
3439
3442
  return Fe(Jn);
3440
3443
  }
3441
- const Qn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Je = { randomUUID: Qn };
3444
+ const Qn = typeof crypto < "u" && crypto.randomUUID && crypto.randomUUID.bind(crypto), Ze = { randomUUID: Qn };
3442
3445
  function Rt(e, t, n) {
3443
3446
  var r;
3444
- if (Je.randomUUID && !e)
3445
- return Je.randomUUID();
3447
+ if (Ze.randomUUID && !e)
3448
+ return Ze.randomUUID();
3446
3449
  e = e || {};
3447
3450
  const s = e.random ?? ((r = e.rng) == null ? void 0 : r.call(e)) ?? Zn();
3448
3451
  if (s.length < 16)
@@ -3459,8 +3462,8 @@ const Zr = ({
3459
3462
  }) => {
3460
3463
  const a = r ?? [], i = Q.useRef(null), [l, o] = Q.useState(!1), u = Q.useRef(/* @__PURE__ */ new WeakMap()), m = Q.useCallback((v) => {
3461
3464
  const S = u.current;
3462
- let R = S.get(v);
3463
- return R || (R = Rt(), S.set(v, R)), R;
3465
+ let $ = S.get(v);
3466
+ return $ || ($ = Rt(), S.set(v, $)), $;
3464
3467
  }, []);
3465
3468
  Q.useEffect(() => {
3466
3469
  var v, S;
@@ -3473,7 +3476,7 @@ const Zr = ({
3473
3476
  [c, a]
3474
3477
  ), x = Q.useCallback(
3475
3478
  (v) => {
3476
- h((S) => S.filter((R, I) => I !== v));
3479
+ h((S) => S.filter(($, I) => I !== v));
3477
3480
  },
3478
3481
  [h]
3479
3482
  ), w = Nn({
@@ -3486,9 +3489,9 @@ const Zr = ({
3486
3489
  p.current = !0;
3487
3490
  const S = {
3488
3491
  label: v
3489
- }, R = m(S), I = [...a, S];
3492
+ }, $ = m(S), I = [...a, S];
3490
3493
  c == null || c(I), requestAnimationFrame(() => {
3491
- g(R), p.current = !1;
3494
+ g($), p.current = !1;
3492
3495
  });
3493
3496
  },
3494
3497
  [e, c, a, m]
@@ -3497,17 +3500,17 @@ const Zr = ({
3497
3500
  var v;
3498
3501
  if (b) {
3499
3502
  const S = a.findIndex(
3500
- (R) => m(R) === b
3503
+ ($) => m($) === b
3501
3504
  );
3502
3505
  if (S !== -1) {
3503
- const R = f.current[S];
3504
- (v = R == null ? void 0 : R.focus) == null || v.call(R);
3505
- const I = i.current, F = R.offsetLeft + R.offsetWidth / 2 - I.offsetWidth / 2;
3506
+ const $ = f.current[S];
3507
+ (v = $ == null ? void 0 : $.focus) == null || v.call($);
3508
+ const I = i.current, F = $.offsetLeft + $.offsetWidth / 2 - I.offsetWidth / 2;
3506
3509
  I.scrollTo({ left: F, behavior: "smooth" });
3507
3510
  }
3508
3511
  }
3509
3512
  }, [b, a, m]);
3510
- const O = j(null), A = (l || a.length === 0) && e === "input";
3513
+ const O = j(null), R = (l || a.length === 0) && e === "input";
3511
3514
  return /* @__PURE__ */ K(
3512
3515
  "div",
3513
3516
  {
@@ -3564,9 +3567,9 @@ const Zr = ({
3564
3567
  },
3565
3568
  children: [
3566
3569
  a.map((v, S) => {
3567
- const R = m(v), I = e === "input", F = I ? {
3570
+ const $ = m(v), I = e === "input", F = I ? {
3568
3571
  editable: !0,
3569
- editing: b === R,
3572
+ editing: b === $,
3570
3573
  onEditCommit: (E) => {
3571
3574
  o(!0), h(
3572
3575
  (Y) => Y.map(
@@ -3587,7 +3590,7 @@ const Zr = ({
3587
3590
  }
3588
3591
  } : {};
3589
3592
  return /* @__PURE__ */ d(
3590
- Ge,
3593
+ Je,
3591
3594
  {
3592
3595
  ref: (E) => f.current[S] = E,
3593
3596
  label: v.label ?? "",
@@ -3604,16 +3607,16 @@ const Zr = ({
3604
3607
  )
3605
3608
  ),
3606
3609
  onBlur: () => {
3607
- b === R && g(null);
3610
+ b === $ && g(null);
3608
3611
  },
3609
3612
  onRemove: I ? () => {
3610
3613
  o(!0), x(S);
3611
3614
  } : void 0
3612
3615
  },
3613
- R
3616
+ $
3614
3617
  );
3615
3618
  }),
3616
- l && /* @__PURE__ */ K(me, { children: [
3619
+ l && /* @__PURE__ */ K(ye, { children: [
3617
3620
  /* @__PURE__ */ d(
3618
3621
  Dt,
3619
3622
  {
@@ -3631,8 +3634,8 @@ const Zr = ({
3631
3634
  }
3632
3635
  ` })
3633
3636
  ] }),
3634
- A && /* @__PURE__ */ d(
3635
- Ge,
3637
+ R && /* @__PURE__ */ d(
3638
+ Je,
3636
3639
  {
3637
3640
  ref: O,
3638
3641
  className: "opacity-0",
@@ -3644,8 +3647,8 @@ const Zr = ({
3644
3647
  if (v = v.replace(/(&nbsp;)+/g, " ").trim(), console.log("Ghost chip onChange", v, !!v), v)
3645
3648
  M(v);
3646
3649
  else if (a.length > 0) {
3647
- const R = f.current[a.length - 1];
3648
- (S = R == null ? void 0 : R.focus) == null || S.call(R);
3650
+ const $ = f.current[a.length - 1];
3651
+ (S = $ == null ? void 0 : $.focus) == null || S.call($);
3649
3652
  }
3650
3653
  },
3651
3654
  onEditCommit: () => {
@@ -3672,13 +3675,13 @@ function er({
3672
3675
  closeDelay: c = 150,
3673
3676
  id: a
3674
3677
  } = {}) {
3675
- const i = Me(), l = a ?? `tooltip-${i}`, o = Array.isArray(e) ? e : [e], u = typeof t == "boolean", [m, f] = V(
3678
+ const i = Ee(), l = a ?? `tooltip-${i}`, o = Array.isArray(e) ? e : [e], u = typeof t == "boolean", [m, f] = V(
3676
3679
  n ? "hovered" : "hidden"
3677
- ), [p, h] = V(!1), x = j(null), w = j(null), M = pe(() => {
3680
+ ), [p, h] = V(!1), x = j(null), w = j(null), M = me(() => {
3678
3681
  x.current && (clearTimeout(x.current), x.current = null), w.current && (clearTimeout(w.current), w.current = null);
3679
3682
  }, []);
3680
3683
  _(() => () => M(), [M]);
3681
- const b = pe(
3684
+ const b = me(
3682
3685
  (C) => {
3683
3686
  if (u) {
3684
3687
  const D = C !== "hidden";
@@ -3690,7 +3693,7 @@ function er({
3690
3693
  }
3691
3694
  },
3692
3695
  [u, s]
3693
- ), g = u ? t ? "hovered" : "hidden" : m, O = g !== "hidden", A = (C) => {
3696
+ ), g = u ? t ? "hovered" : "hidden" : m, O = g !== "hidden", R = (C) => {
3694
3697
  switch (C) {
3695
3698
  case "hidden":
3696
3699
  return 0;
@@ -3703,27 +3706,27 @@ function er({
3703
3706
  default:
3704
3707
  return 0;
3705
3708
  }
3706
- }, v = pe(
3709
+ }, v = me(
3707
3710
  (C) => {
3708
- M(), !(A(C) <= A(g)) && (x.current = setTimeout(() => {
3711
+ M(), !(R(C) <= R(g)) && (x.current = setTimeout(() => {
3709
3712
  b(C);
3710
3713
  }, r));
3711
3714
  },
3712
3715
  [M, r, g, b]
3713
- ), S = pe(
3716
+ ), S = me(
3714
3717
  (C) => {
3715
3718
  M(), w.current = setTimeout(() => {
3716
- (!u && A(m) <= A(C) || u) && b("hidden");
3719
+ (!u && R(m) <= R(C) || u) && b("hidden");
3717
3720
  }, c);
3718
3721
  },
3719
3722
  [M, c, m, u, b]
3720
- ), R = pe(() => {
3723
+ ), $ = me(() => {
3721
3724
  o.includes("hover") && v("hovered");
3722
- }, [o, v]), I = pe(() => {
3725
+ }, [o, v]), I = me(() => {
3723
3726
  o.includes("hover") && (g === "focused" || g === "clicked" || p || S("hovered"));
3724
- }, [o, g, p, S]), F = pe(() => {
3727
+ }, [o, g, p, S]), F = me(() => {
3725
3728
  o.includes("focus") && (M(), b("focused"));
3726
- }, [o, M, b]), E = pe(() => {
3729
+ }, [o, M, b]), E = me(() => {
3727
3730
  if (o.includes("focus") && g !== "clicked") {
3728
3731
  if (o.includes("hover") && p) {
3729
3732
  b("hovered");
@@ -3731,22 +3734,22 @@ function er({
3731
3734
  }
3732
3735
  S("focused");
3733
3736
  }
3734
- }, [o, g, p, S, b]), Y = pe(() => {
3737
+ }, [o, g, p, S, b]), Y = me(() => {
3735
3738
  o.includes("click") && (M(), b(g === "clicked" ? "hidden" : "clicked"));
3736
- }, [o, g, M, b]), z = pe(
3739
+ }, [o, g, M, b]), z = me(
3737
3740
  (C) => {
3738
3741
  C.key === "Escape" && O && (M(), b("hidden"), C.preventDefault());
3739
3742
  },
3740
3743
  [O, M, b]
3741
- ), te = pe(() => {
3744
+ ), te = me(() => {
3742
3745
  h(!0), M();
3743
- }, [M]), P = pe(() => {
3746
+ }, [M]), H = me(() => {
3744
3747
  h(!1), o.includes("hover") && g === "hovered" && S("hovered");
3745
3748
  }, [o, g, S]);
3746
3749
  return {
3747
3750
  triggerProps: {
3748
3751
  "aria-describedby": O ? l : void 0,
3749
- onMouseEnter: R,
3752
+ onMouseEnter: $,
3750
3753
  onMouseLeave: I,
3751
3754
  onFocus: F,
3752
3755
  onBlur: E,
@@ -3758,7 +3761,7 @@ function er({
3758
3761
  role: "tooltip",
3759
3762
  "aria-hidden": !O,
3760
3763
  onMouseEnter: te,
3761
- onMouseLeave: P
3764
+ onMouseLeave: H
3762
3765
  },
3763
3766
  isOpen: O,
3764
3767
  state: g
@@ -3786,11 +3789,11 @@ const $t = ({
3786
3789
  anchorRef: b,
3787
3790
  ...g
3788
3791
  }) => {
3789
- const A = i || (e === "rich" ? "bottom-right" : "bottom");
3792
+ const R = i || (e === "rich" ? "bottom-right" : "bottom");
3790
3793
  if (m = { duration: 0.3, ...m }, !s && !l)
3791
3794
  throw new Error("Tooltip must have a child or a targetRef");
3792
3795
  t && !Array.isArray(t) && (t = [t]);
3793
- const v = j(null), R = b || (l || v), { triggerProps: I, tooltipProps: F, isOpen: E } = er({
3796
+ const v = j(null), $ = b || (l || v), { triggerProps: I, tooltipProps: F, isOpen: E } = er({
3794
3797
  trigger: u,
3795
3798
  isOpen: h,
3796
3799
  defaultOpen: x,
@@ -3798,54 +3801,54 @@ const $t = ({
3798
3801
  openDelay: f,
3799
3802
  closeDelay: p,
3800
3803
  id: M
3801
- }), Y = !l && ke(s) ? Re(s, {
3804
+ }), Y = !l && Ie(s) ? Re(s, {
3802
3805
  ref: v,
3803
3806
  ...I,
3804
3807
  // Merge event handlers if the child already has them
3805
- onMouseEnter: (P) => {
3808
+ onMouseEnter: (H) => {
3806
3809
  var C, D;
3807
- I.onMouseEnter(), (D = (C = s.props) == null ? void 0 : C.onMouseEnter) == null || D.call(C, P);
3810
+ I.onMouseEnter(), (D = (C = s.props) == null ? void 0 : C.onMouseEnter) == null || D.call(C, H);
3808
3811
  },
3809
- onMouseLeave: (P) => {
3812
+ onMouseLeave: (H) => {
3810
3813
  var C, D;
3811
- I.onMouseLeave(), (D = (C = s.props) == null ? void 0 : C.onMouseLeave) == null || D.call(C, P);
3814
+ I.onMouseLeave(), (D = (C = s.props) == null ? void 0 : C.onMouseLeave) == null || D.call(C, H);
3812
3815
  },
3813
- onFocus: (P) => {
3816
+ onFocus: (H) => {
3814
3817
  var C, D;
3815
- I.onFocus(), (D = (C = s.props) == null ? void 0 : C.onFocus) == null || D.call(C, P);
3818
+ I.onFocus(), (D = (C = s.props) == null ? void 0 : C.onFocus) == null || D.call(C, H);
3816
3819
  },
3817
- onBlur: (P) => {
3820
+ onBlur: (H) => {
3818
3821
  var C, D;
3819
- I.onBlur(), (D = (C = s.props) == null ? void 0 : C.onBlur) == null || D.call(C, P);
3822
+ I.onBlur(), (D = (C = s.props) == null ? void 0 : C.onBlur) == null || D.call(C, H);
3820
3823
  },
3821
- onClick: (P) => {
3824
+ onClick: (H) => {
3822
3825
  var C, D;
3823
- I.onClick(), (D = (C = s.props) == null ? void 0 : C.onClick) == null || D.call(C, P);
3826
+ I.onClick(), (D = (C = s.props) == null ? void 0 : C.onClick) == null || D.call(C, H);
3824
3827
  },
3825
- onKeyDown: (P) => {
3828
+ onKeyDown: (H) => {
3826
3829
  var C, D;
3827
- I.onKeyDown(P), (D = (C = s.props) == null ? void 0 : C.onKeyDown) == null || D.call(C, P);
3830
+ I.onKeyDown(H), (D = (C = s.props) == null ? void 0 : C.onKeyDown) == null || D.call(C, H);
3828
3831
  }
3829
3832
  }) : s;
3830
3833
  _(() => {
3831
3834
  if (!l) return;
3832
- const P = l.current;
3833
- if (!P) return;
3835
+ const H = l.current;
3836
+ if (!H) return;
3834
3837
  const C = () => I.onMouseEnter(), D = () => I.onMouseLeave(), T = () => I.onFocus(), J = () => I.onBlur(), Z = () => I.onClick(), se = (L) => I.onKeyDown(L);
3835
- return P.addEventListener("mouseenter", C), P.addEventListener("mouseleave", D), P.addEventListener("focus", T, !0), P.addEventListener("blur", J, !0), P.addEventListener("click", Z), P.addEventListener("keydown", se), I["aria-describedby"] ? P.setAttribute(
3838
+ return H.addEventListener("mouseenter", C), H.addEventListener("mouseleave", D), H.addEventListener("focus", T, !0), H.addEventListener("blur", J, !0), H.addEventListener("click", Z), H.addEventListener("keydown", se), I["aria-describedby"] ? H.setAttribute(
3836
3839
  "aria-describedby",
3837
3840
  I["aria-describedby"]
3838
- ) : P.removeAttribute("aria-describedby"), () => {
3839
- P.removeEventListener("mouseenter", C), P.removeEventListener("mouseleave", D), P.removeEventListener("focus", T, !0), P.removeEventListener("blur", J, !0), P.removeEventListener("click", Z), P.removeEventListener("keydown", se);
3841
+ ) : H.removeAttribute("aria-describedby"), () => {
3842
+ H.removeEventListener("mouseenter", C), H.removeEventListener("mouseleave", D), H.removeEventListener("focus", T, !0), H.removeEventListener("blur", J, !0), H.removeEventListener("click", Z), H.removeEventListener("keydown", se);
3840
3843
  };
3841
3844
  }, [l, I]);
3842
- const z = Hn({
3845
+ const z = Pn({
3843
3846
  variant: e,
3844
3847
  buttons: t,
3845
3848
  className: n,
3846
3849
  title: r,
3847
3850
  text: c,
3848
- position: A,
3851
+ position: R,
3849
3852
  trigger: u,
3850
3853
  targetRef: l,
3851
3854
  children: s
@@ -3859,13 +3862,13 @@ const $t = ({
3859
3862
  height: 16
3860
3863
  }
3861
3864
  };
3862
- return /* @__PURE__ */ K(me, { children: [
3865
+ return /* @__PURE__ */ K(ye, { children: [
3863
3866
  Y,
3864
- /* @__PURE__ */ d(he, { children: E && /* @__PURE__ */ d(
3867
+ /* @__PURE__ */ d(pe, { children: E && /* @__PURE__ */ d(
3865
3868
  it,
3866
3869
  {
3867
- anchorRef: R,
3868
- position: A,
3870
+ anchorRef: $,
3871
+ position: R,
3869
3872
  children: /* @__PURE__ */ d(
3870
3873
  ne.div,
3871
3874
  {
@@ -3877,15 +3880,15 @@ const $t = ({
3877
3880
  className: z.toolTip,
3878
3881
  ...g,
3879
3882
  ...F,
3880
- children: /* @__PURE__ */ d("div", { className: z.container, children: a ? /* @__PURE__ */ d("div", { className: z.content, children: a }) : /* @__PURE__ */ K(me, { children: [
3883
+ children: /* @__PURE__ */ d("div", { className: z.container, children: a ? /* @__PURE__ */ d("div", { className: z.content, children: a }) : /* @__PURE__ */ K(ye, { children: [
3881
3884
  r && /* @__PURE__ */ d("div", { className: z.subHead, children: r }),
3882
3885
  c && /* @__PURE__ */ d("div", { className: z.supportingText, children: c }),
3883
- t && /* @__PURE__ */ d("div", { className: z.actions, children: Array.isArray(t) && t.map((P, C) => /* @__PURE__ */ d(
3884
- Ne,
3886
+ t && /* @__PURE__ */ d("div", { className: z.actions, children: Array.isArray(t) && t.map((H, C) => /* @__PURE__ */ d(
3887
+ Le,
3885
3888
  {
3886
3889
  size: "small",
3887
3890
  variant: "text",
3888
- ...P
3891
+ ...H
3889
3892
  },
3890
3893
  C
3891
3894
  )) })
@@ -3969,7 +3972,7 @@ const $t = ({
3969
3972
  }
3970
3973
  ),
3971
3974
  /* @__PURE__ */ d(
3972
- Se,
3975
+ Ne,
3973
3976
  {
3974
3977
  style: { transition: o.duration + "s" },
3975
3978
  className: p.stateLayer,
@@ -3984,8 +3987,8 @@ const $t = ({
3984
3987
  stateClassName: "state-ripple-group-[fab]"
3985
3988
  }
3986
3989
  ),
3987
- /* @__PURE__ */ d(fe, { icon: a, className: p.icon }),
3988
- /* @__PURE__ */ d(he, { children: i && /* @__PURE__ */ d(
3990
+ /* @__PURE__ */ d(he, { icon: a, className: p.icon }),
3991
+ /* @__PURE__ */ d(pe, { children: i && /* @__PURE__ */ d(
3989
3992
  ne.span,
3990
3993
  {
3991
3994
  variants: w,
@@ -3999,7 +4002,7 @@ const $t = ({
3999
4002
  ]
4000
4003
  }
4001
4004
  );
4002
- }, Ie = ({
4005
+ }, Me = ({
4003
4006
  variant: e = "standard",
4004
4007
  href: t,
4005
4008
  disabled: n = !1,
@@ -4025,7 +4028,7 @@ const $t = ({
4025
4028
  "IconButton component requires either a label prop or children content to provide an accessible aria-label"
4026
4029
  );
4027
4030
  !s && s !== null && (s = r);
4028
- const [g, O] = Q.useState(a), A = (F) => {
4031
+ const [g, O] = Q.useState(a), R = (F) => {
4029
4032
  n && F.preventDefault(), c ? (O(!g), c(!g)) : i && i(F);
4030
4033
  };
4031
4034
  _(() => {
@@ -4049,7 +4052,7 @@ const $t = ({
4049
4052
  size: o,
4050
4053
  children: r,
4051
4054
  ...b
4052
- }), R = j(null), I = f || R;
4055
+ }), $ = j(null), I = f || $;
4053
4056
  return w = { duration: 0.3, ...w }, /* @__PURE__ */ K(
4054
4057
  v,
4055
4058
  {
@@ -4060,7 +4063,7 @@ const $t = ({
4060
4063
  "aria-label": r,
4061
4064
  ...b,
4062
4065
  title: void 0,
4063
- onClick: A,
4066
+ onClick: R,
4064
4067
  ref: I,
4065
4068
  children: [
4066
4069
  s !== null && /* @__PURE__ */ d(
@@ -4073,7 +4076,7 @@ const $t = ({
4073
4076
  ),
4074
4077
  /* @__PURE__ */ d("div", { className: S.touchTarget }),
4075
4078
  /* @__PURE__ */ d(
4076
- Se,
4079
+ Ne,
4077
4080
  {
4078
4081
  style: { transition: w.duration + "s" },
4079
4082
  className: S.stateLayer,
@@ -4098,7 +4101,7 @@ const $t = ({
4098
4101
  stateClassName: "state-ripple-group-[icon-button]"
4099
4102
  }
4100
4103
  ),
4101
- l ? /* @__PURE__ */ d(fe, { icon: l, className: S.icon }) : M
4104
+ l ? /* @__PURE__ */ d(he, { icon: l, className: S.icon }) : M
4102
4105
  ]
4103
4106
  }
4104
4107
  );
@@ -4121,8 +4124,8 @@ const $t = ({
4121
4124
  l = { duration: 0.3, ease: "easeInOut", ...l };
4122
4125
  const h = j(null), x = i || h, w = typeof u == "boolean", [M, b] = V(m), g = w ? u : M, O = (E) => {
4123
4126
  w || b(E), f == null || f(E);
4124
- }, A = Q.Children.toArray(o).filter(
4125
- (E) => Q.isValidElement(E) && E.type === Ne
4127
+ }, R = Q.Children.toArray(o).filter(
4128
+ (E) => Q.isValidElement(E) && E.type === Le
4126
4129
  ), v = In({
4127
4130
  href: r,
4128
4131
  icon: c,
@@ -4134,7 +4137,7 @@ const $t = ({
4134
4137
  transition: l,
4135
4138
  children: t,
4136
4139
  open: g
4137
- }), S = ne.create(Be), R = ne.create(Ie), I = (E) => /* @__PURE__ */ d(
4140
+ }), S = ne.create(Be), $ = ne.create(Me), I = (E) => /* @__PURE__ */ d(
4138
4141
  S,
4139
4142
  {
4140
4143
  icon: c,
@@ -4155,22 +4158,22 @@ const $t = ({
4155
4158
  },
4156
4159
  ...E
4157
4160
  }
4158
- ), F = Me();
4161
+ ), F = Ee();
4159
4162
  return /* @__PURE__ */ K("div", { className: v.fabMenu, ref: x, ...p, children: [
4160
- /* @__PURE__ */ d(he, { children: g && /* @__PURE__ */ d("div", { className: v.actions, role: "menu", "aria-hidden": !g, children: (() => {
4161
- const E = A.length;
4162
- return A.map((Y, z) => {
4163
+ /* @__PURE__ */ d(pe, { children: g && /* @__PURE__ */ d("div", { className: v.actions, role: "menu", "aria-hidden": !g, children: (() => {
4164
+ const E = R.length;
4165
+ return R.map((Y, z) => {
4163
4166
  Y.props;
4164
- const te = E - 1 - z, P = ((l == null ? void 0 : l.delay) ?? 0) + te * 0.06, C = {
4167
+ const te = E - 1 - z, H = ((l == null ? void 0 : l.delay) ?? 0) + te * 0.06, C = {
4165
4168
  open: {
4166
4169
  overflow: "visible",
4167
4170
  opacity: 1,
4168
4171
  width: "auto",
4169
4172
  transition: {
4170
4173
  ...l,
4171
- delay: P,
4174
+ delay: H,
4172
4175
  opacity: {
4173
- delay: (l == null ? void 0 : l.duration) / 2 + P
4176
+ delay: (l == null ? void 0 : l.duration) / 2 + H
4174
4177
  }
4175
4178
  }
4176
4179
  },
@@ -4180,7 +4183,7 @@ const $t = ({
4180
4183
  width: 0,
4181
4184
  transition: {
4182
4185
  ...l,
4183
- delay: P,
4186
+ delay: H,
4184
4187
  opacity: {
4185
4188
  duration: (l == null ? void 0 : l.duration) / 1.5
4186
4189
  }
@@ -4232,8 +4235,8 @@ const $t = ({
4232
4235
  layout: !0,
4233
4236
  layoutId: "fab-menu" + F
4234
4237
  }),
4235
- g && /* @__PURE__ */ d(me, { children: /* @__PURE__ */ d(
4236
- R,
4238
+ g && /* @__PURE__ */ d(ye, { children: /* @__PURE__ */ d(
4239
+ $,
4237
4240
  {
4238
4241
  layout: !0,
4239
4242
  layoutId: "fab-menu" + F,
@@ -4299,14 +4302,14 @@ const $t = ({
4299
4302
  }, f = (D = !1) => D ? a : a == 1 / 0 ? i[(i == null ? void 0 : i.length) - 1].value : a, p = (D = !1) => D ? c : c == -1 / 0 ? i[0].value : c, h = (D) => {
4300
4303
  const T = p(!1);
4301
4304
  return (f(!1) - T) * D / 100 + T;
4302
- }, [x, w] = V(!1), M = j(null), b = l || M, [g, O] = V(r), [A, v] = V(m(r)), [S, R] = V(!1);
4305
+ }, [x, w] = V(!1), M = j(null), b = l || M, [g, O] = V(r), [R, v] = V(m(r)), [S, $] = V(!1);
4303
4306
  _(() => {
4304
4307
  O(r), v(m(r));
4305
4308
  }, [r]);
4306
4309
  const I = (D) => {
4307
- R(!0), w(!0), Y(D);
4310
+ $(!0), w(!0), Y(D);
4308
4311
  }, F = () => {
4309
- R(!1), w(!1);
4312
+ $(!1), w(!1);
4310
4313
  };
4311
4314
  _(() => (S ? (window.addEventListener("mouseup", F), window.addEventListener("mousemove", Y), window.addEventListener("touchend", F), window.addEventListener("touchmove", Y)) : (window.removeEventListener("mouseup", F), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", F), window.removeEventListener("touchmove", Y)), () => {
4312
4315
  window.removeEventListener("mouseup", F), window.removeEventListener("mousemove", Y), window.removeEventListener("touchend", F), window.removeEventListener("touchmove", Y);
@@ -4358,10 +4361,10 @@ const $t = ({
4358
4361
  let L = Z.value === 1 / 0 ? f() : Z.value === -1 / 0 ? p() : Z.value, k = J.value === 1 / 0 ? f() : J.value === -1 / 0 ? p() : J.value;
4359
4362
  return L = Math.abs(L - T), k = Math.abs(k - T), L < k ? Z : J;
4360
4363
  }).value), T >= f() && (T = f(!0)), T <= p() && (T = p(!0)), D = m(T), O(T), v(D), o && o(T);
4361
- }, [te, P] = V(0);
4364
+ }, [te, H] = V(0);
4362
4365
  return _(() => {
4363
4366
  const D = () => {
4364
- b.current && P(b.current.offsetWidth);
4367
+ b.current && H(b.current.offsetWidth);
4365
4368
  };
4366
4369
  return D(), window.addEventListener("resize", D), () => {
4367
4370
  window.removeEventListener("resize", D);
@@ -4406,8 +4409,8 @@ const $t = ({
4406
4409
  ...u,
4407
4410
  children: [
4408
4411
  /* @__PURE__ */ d("input", { type: "hidden", name: s, value: g }),
4409
- /* @__PURE__ */ d("div", { className: E.activeTrack, style: { flex: A / 100 } }),
4410
- /* @__PURE__ */ d("div", { className: E.handle, children: /* @__PURE__ */ d(he, { children: x && /* @__PURE__ */ d(
4412
+ /* @__PURE__ */ d("div", { className: E.activeTrack, style: { flex: R / 100 } }),
4413
+ /* @__PURE__ */ d("div", { className: E.handle, children: /* @__PURE__ */ d(pe, { children: x && /* @__PURE__ */ d(
4411
4414
  ne.div,
4412
4415
  {
4413
4416
  className: E.valueIndicator,
@@ -4431,7 +4434,7 @@ const $t = ({
4431
4434
  "div",
4432
4435
  {
4433
4436
  className: E.inactiveTrack,
4434
- style: { flex: 1 - A / 100 }
4437
+ style: { flex: 1 - R / 100 }
4435
4438
  }
4436
4439
  ),
4437
4440
  /* @__PURE__ */ d(
@@ -4441,7 +4444,7 @@ const $t = ({
4441
4444
  children: i && i.map((D, T) => {
4442
4445
  let J = null;
4443
4446
  const Z = (x ? 9 : 10) / te * 100, se = m(D.value);
4444
- return se <= A - Z ? J = !0 : se >= A + Z && (J = !1), /* @__PURE__ */ d(
4447
+ return se <= R - Z ? J = !0 : se >= R + Z && (J = !1), /* @__PURE__ */ d(
4445
4448
  "div",
4446
4449
  {
4447
4450
  className: y(E.dot, {
@@ -4499,8 +4502,8 @@ const $t = ({
4499
4502
  open: {
4500
4503
  width: "auto"
4501
4504
  }
4502
- }, x = () => /* @__PURE__ */ K(me, { children: [
4503
- /* @__PURE__ */ d(he, { children: e == "modal" && m && /* @__PURE__ */ d(
4505
+ }, x = () => /* @__PURE__ */ K(ye, { children: [
4506
+ /* @__PURE__ */ d(pe, { children: e == "modal" && m && /* @__PURE__ */ d(
4504
4507
  ne.div,
4505
4508
  {
4506
4509
  initial: { opacity: 0 },
@@ -4511,7 +4514,7 @@ const $t = ({
4511
4514
  className: p.overlay
4512
4515
  }
4513
4516
  ) }),
4514
- /* @__PURE__ */ d(he, { children: m && /* @__PURE__ */ K(
4517
+ /* @__PURE__ */ d(pe, { children: m && /* @__PURE__ */ K(
4515
4518
  "div",
4516
4519
  {
4517
4520
  ...u,
@@ -4530,7 +4533,7 @@ const $t = ({
4530
4533
  /* @__PURE__ */ K("div", { className: p.header, children: [
4531
4534
  s && /* @__PURE__ */ d("p", { className: p.title, children: s }),
4532
4535
  /* @__PURE__ */ d(
4533
- Ie,
4536
+ Me,
4534
4537
  {
4535
4538
  size: "small",
4536
4539
  label: "close",
@@ -4556,7 +4559,7 @@ const $t = ({
4556
4559
  }
4557
4560
  ) })
4558
4561
  ] });
4559
- return e == "modal" ? et(x(), document.body) : x();
4562
+ return e == "modal" ? He(x(), document.body) : x();
4560
4563
  }, ns = ({
4561
4564
  message: e,
4562
4565
  className: t,
@@ -4581,7 +4584,7 @@ const $t = ({
4581
4584
  const o = () => {
4582
4585
  i(!1), r == null || r();
4583
4586
  };
4584
- return /* @__PURE__ */ d(he, { children: a && /* @__PURE__ */ d(
4587
+ return /* @__PURE__ */ d(pe, { children: a && /* @__PURE__ */ d(
4585
4588
  ne.div,
4586
4589
  {
4587
4590
  initial: { height: 0 },
@@ -4593,7 +4596,7 @@ const $t = ({
4593
4596
  children: /* @__PURE__ */ K("div", { className: l.container, children: [
4594
4597
  /* @__PURE__ */ d("p", { className: l.supportingText, children: e }),
4595
4598
  /* @__PURE__ */ d(
4596
- Ie,
4599
+ Me,
4597
4600
  {
4598
4601
  onClick: () => o(),
4599
4602
  className: l.icon,
@@ -4661,7 +4664,7 @@ const $t = ({
4661
4664
  className: x.handleContainer,
4662
4665
  children: [
4663
4666
  /* @__PURE__ */ d("div", { className: x.handle, children: (u ? n : r) && /* @__PURE__ */ d(
4664
- fe,
4667
+ he,
4665
4668
  {
4666
4669
  className: x.icon,
4667
4670
  icon: u ? n : r
@@ -4703,8 +4706,8 @@ const $t = ({
4703
4706
  icon: c
4704
4707
  });
4705
4708
  }, [a]);
4706
- const A = r ? "a" : "button", v = (R) => {
4707
- i && i(o ?? null), t && t(R);
4709
+ const R = r ? "a" : "button", v = ($) => {
4710
+ i && i(o ?? null), t && t($);
4708
4711
  }, S = Wn({
4709
4712
  className: e,
4710
4713
  onTabSelected: u,
@@ -4721,7 +4724,7 @@ const $t = ({
4721
4724
  href: r
4722
4725
  });
4723
4726
  return /* @__PURE__ */ K(
4724
- A,
4727
+ R,
4725
4728
  {
4726
4729
  ...x,
4727
4730
  role: "tab",
@@ -4733,7 +4736,7 @@ const $t = ({
4733
4736
  ...x,
4734
4737
  children: [
4735
4738
  /* @__PURE__ */ d(
4736
- Se,
4739
+ Ne,
4737
4740
  {
4738
4741
  style: { transition: 0.3 + "s" },
4739
4742
  className: S.stateLayer,
@@ -4742,7 +4745,7 @@ const $t = ({
4742
4745
  }
4743
4746
  ),
4744
4747
  /* @__PURE__ */ K("span", { className: S.content, children: [
4745
- c && /* @__PURE__ */ d(fe, { icon: c, className: S.icon }),
4748
+ c && /* @__PURE__ */ d(he, { icon: c, className: S.icon }),
4746
4749
  /* @__PURE__ */ d("span", { className: S.label, children: b }),
4747
4750
  g && /* @__PURE__ */ d(
4748
4751
  ne.span,
@@ -4756,7 +4759,7 @@ const $t = ({
4756
4759
  ]
4757
4760
  }
4758
4761
  );
4759
- }, Oe = Ft(null), ss = ({
4762
+ }, ze = Ft(null), ss = ({
4760
4763
  variant: e = "primary",
4761
4764
  onTabSelected: t,
4762
4765
  children: n,
@@ -4765,7 +4768,7 @@ const $t = ({
4765
4768
  setSelectedTab: c,
4766
4769
  scrollable: a = !1
4767
4770
  }) => {
4768
- const i = Ze(Oe), [l, o] = V(
4771
+ const i = Qe(ze), [l, o] = V(
4769
4772
  null
4770
4773
  );
4771
4774
  let u;
@@ -4780,7 +4783,7 @@ const $t = ({
4780
4783
  b.scrollTo({ left: O, behavior: "smooth" });
4781
4784
  }
4782
4785
  }
4783
- }, x = we(
4786
+ }, x = be(
4784
4787
  () => (i == null ? void 0 : i.tabsId) ?? Rt(),
4785
4788
  [i == null ? void 0 : i.tabsId]
4786
4789
  ), w = An({
@@ -4812,7 +4815,7 @@ const $t = ({
4812
4815
  s
4813
4816
  ), a = j(null), i = t !== void 0 ? t : r, l = n ?? c, o = a.current !== null && i !== null ? i > a.current ? 1 : -1 : 0;
4814
4817
  i !== a.current && (a.current = i);
4815
- const u = Me(), m = we(
4818
+ const u = Ee(), m = be(
4816
4819
  () => ({
4817
4820
  selectedTab: i,
4818
4821
  setSelectedTab: l,
@@ -4822,7 +4825,7 @@ const $t = ({
4822
4825
  }),
4823
4826
  [i, l, o, u]
4824
4827
  );
4825
- return /* @__PURE__ */ d(Oe.Provider, { value: m, children: e });
4828
+ return /* @__PURE__ */ d(ze.Provider, { value: m, children: e });
4826
4829
  }, nr = ({
4827
4830
  children: e,
4828
4831
  className: t,
@@ -4838,7 +4841,7 @@ const $t = ({
4838
4841
  children: e,
4839
4842
  className: t
4840
4843
  }) => {
4841
- const n = Ze(Oe);
4844
+ const n = Qe(ze);
4842
4845
  if (!n)
4843
4846
  return console.warn("TabPanels must be used within a TabGroup"), null;
4844
4847
  const { selectedTab: s, direction: r, tabsId: c } = n, a = Q.Children.toArray(e).filter(
@@ -4847,7 +4850,7 @@ const $t = ({
4847
4850
  children: e,
4848
4851
  className: t
4849
4852
  });
4850
- return /* @__PURE__ */ d("div", { className: i.tabPanels, children: /* @__PURE__ */ d(he, { initial: !1, custom: r, mode: "popLayout", children: a.map(
4853
+ return /* @__PURE__ */ d("div", { className: i.tabPanels, children: /* @__PURE__ */ d(pe, { initial: !1, custom: r, mode: "popLayout", children: a.map(
4851
4854
  (l, o) => s === o && /* @__PURE__ */ d(
4852
4855
  ne.div,
4853
4856
  {
@@ -4921,27 +4924,27 @@ const $t = ({
4921
4924
  return new Date(k.getFullYear(), k.getMonth(), 1);
4922
4925
  }), [h, x] = V(0), [w, M] = V("day"), b = e !== void 0, [g, O] = V(
4923
4926
  t || null
4924
- ), A = b ? e || null : g, v = (L, k) => new Date(L, k + 1, 0).getDate(), S = we(() => {
4925
- const L = f.getFullYear(), k = f.getMonth(), N = v(L, k), H = (new Date(L, k, 1).getDay() - i + 7) % 7, X = [], q = v(L, k - 1);
4926
- for (let U = H - 1; U >= 0; U--)
4927
+ ), R = b ? e || null : g, v = (L, k) => new Date(L, k + 1, 0).getDate(), S = be(() => {
4928
+ const L = f.getFullYear(), k = f.getMonth(), N = v(L, k), P = (new Date(L, k, 1).getDay() - i + 7) % 7, X = [], q = v(L, k - 1);
4929
+ for (let U = P - 1; U >= 0; U--)
4927
4930
  X.push({
4928
4931
  date: new Date(L, k - 1, q - U),
4929
4932
  isCurrentMonth: !1
4930
4933
  });
4931
4934
  for (let U = 1; U <= N; U++)
4932
4935
  X.push({ date: new Date(L, k, U), isCurrentMonth: !0 });
4933
- const $ = 42 - X.length;
4934
- for (let U = 1; U <= $; U++)
4936
+ const W = 42 - X.length;
4937
+ for (let U = 1; U <= W; U++)
4935
4938
  X.push({
4936
4939
  date: new Date(L, k + 1, U),
4937
4940
  isCurrentMonth: !1
4938
4941
  });
4939
4942
  return X;
4940
- }, [f, i]), R = we(() => {
4941
- const L = (/* @__PURE__ */ new Date()).getFullYear(), k = L - 100, N = L + 100, W = [];
4942
- for (let H = k; H <= N; H++)
4943
- W.push(H);
4944
- return W;
4943
+ }, [f, i]), $ = be(() => {
4944
+ const L = (/* @__PURE__ */ new Date()).getFullYear(), k = L - 100, N = L + 100, A = [];
4945
+ for (let P = k; P <= N; P++)
4946
+ A.push(P);
4947
+ return A;
4945
4948
  }, []), I = j(null);
4946
4949
  _(() => {
4947
4950
  if (w === "year" && I.current) {
@@ -4951,62 +4954,62 @@ const $t = ({
4951
4954
  L && L.scrollIntoView({ block: "center" });
4952
4955
  }
4953
4956
  }, [w]);
4954
- const F = we(
4957
+ const F = be(
4955
4958
  () => new Intl.DateTimeFormat(a, { month: "long", year: "numeric" }),
4956
4959
  [a]
4957
- ), E = we(
4960
+ ), E = be(
4958
4961
  () => new Intl.DateTimeFormat(a, { weekday: "narrow" }),
4959
4962
  [a]
4960
- ), Y = we(() => {
4963
+ ), Y = be(() => {
4961
4964
  const L = new Date(2023, 0, 1 + i);
4962
4965
  return Array.from({ length: 7 }).map((k, N) => {
4963
- const W = new Date(L);
4964
- return W.setDate(L.getDate() + N), E.format(W).charAt(0).toUpperCase();
4966
+ const A = new Date(L);
4967
+ return A.setDate(L.getDate() + N), E.format(A).charAt(0).toUpperCase();
4965
4968
  });
4966
4969
  }, [E, i]), z = () => {
4967
4970
  x(-1), p((L) => new Date(L.getFullYear(), L.getMonth() - 1, 1));
4968
4971
  }, te = () => {
4969
4972
  x(1), p((L) => new Date(L.getFullYear(), L.getMonth() + 1, 1));
4970
- }, P = (L) => {
4973
+ }, H = (L) => {
4971
4974
  p((k) => new Date(L, k.getMonth(), 1)), M("day");
4972
4975
  }, C = (L, k) => L ? L.getDate() === k.getDate() && L.getMonth() === k.getMonth() && L.getFullYear() === k.getFullYear() : !1, D = (L) => C(/* @__PURE__ */ new Date(), L), T = (L) => {
4973
4976
  let k = L;
4974
4977
  if (u === "single")
4975
4978
  k = L;
4976
4979
  else {
4977
- const N = A, [W, H] = Array.isArray(N) ? N : [null, null];
4978
- !W || W && H ? k = [L, null] : L < W ? k = [L, W] : k = [W, L];
4980
+ const N = R, [A, P] = Array.isArray(N) ? N : [null, null];
4981
+ !A || A && P ? k = [L, null] : L < A ? k = [L, A] : k = [A, L];
4979
4982
  }
4980
4983
  b || O(k), n && n(k);
4981
4984
  }, J = (L) => {
4982
4985
  if (u === "single")
4983
4986
  return {
4984
- isSelected: C(A, L),
4987
+ isSelected: C(R, L),
4985
4988
  isStart: !1,
4986
4989
  isEnd: !1,
4987
4990
  isInRange: !1
4988
4991
  };
4989
- const k = Array.isArray(A) ? A : [A, null], [N, W] = k, H = C(N, L), X = C(W, L);
4992
+ const k = Array.isArray(R) ? R : [R, null], [N, A] = k, P = C(N, L), X = C(A, L);
4990
4993
  let q = !1;
4991
- if (N && W) {
4994
+ if (N && A) {
4992
4995
  const ee = new Date(
4993
4996
  N.getFullYear(),
4994
4997
  N.getMonth(),
4995
4998
  N.getDate()
4996
- ).getTime(), $ = new Date(
4997
- W.getFullYear(),
4998
- W.getMonth(),
4999
- W.getDate()
4999
+ ).getTime(), W = new Date(
5000
+ A.getFullYear(),
5001
+ A.getMonth(),
5002
+ A.getDate()
5000
5003
  ).getTime(), U = new Date(
5001
5004
  L.getFullYear(),
5002
5005
  L.getMonth(),
5003
5006
  L.getDate()
5004
5007
  ).getTime();
5005
- q = U > ee && U < $;
5008
+ q = U > ee && U < W;
5006
5009
  }
5007
- return { isSelected: H || X, isStart: H, isEnd: X, isInRange: q };
5010
+ return { isSelected: P || X, isStart: P, isEnd: X, isInRange: q };
5008
5011
  }, Z = sr({
5009
- hasSelected: !!A
5012
+ hasSelected: !!R
5010
5013
  }), se = {
5011
5014
  enter: (L) => ({
5012
5015
  x: L > 0 ? "100%" : "-100%",
@@ -5030,7 +5033,7 @@ const $t = ({
5030
5033
  children: [
5031
5034
  /* @__PURE__ */ K("div", { className: Z.header, children: [
5032
5035
  /* @__PURE__ */ K(
5033
- Ne,
5036
+ Le,
5034
5037
  {
5035
5038
  variant: "text",
5036
5039
  disableTextMargins: !0,
@@ -5040,7 +5043,7 @@ const $t = ({
5040
5043
  children: [
5041
5044
  /* @__PURE__ */ d("span", { className: "mr-2", children: w === "day" ? F.format(f) : f.getFullYear() }),
5042
5045
  /* @__PURE__ */ d(
5043
- fe,
5046
+ he,
5044
5047
  {
5045
5048
  icon: Un,
5046
5049
  className: y(
@@ -5054,7 +5057,7 @@ const $t = ({
5054
5057
  ),
5055
5058
  w === "day" && /* @__PURE__ */ K("div", { className: "flex items-center", children: [
5056
5059
  /* @__PURE__ */ d(
5057
- Ie,
5060
+ Me,
5058
5061
  {
5059
5062
  size: "xSmall",
5060
5063
  allowShapeTransformation: !1,
@@ -5065,7 +5068,7 @@ const $t = ({
5065
5068
  }
5066
5069
  ),
5067
5070
  /* @__PURE__ */ d(
5068
- Ie,
5071
+ Me,
5069
5072
  {
5070
5073
  size: "xSmall",
5071
5074
  allowShapeTransformation: !1,
@@ -5082,12 +5085,12 @@ const $t = ({
5082
5085
  {
5083
5086
  className: "h-[280px] overflow-y-auto grid grid-cols-3 gap-2 p-2 scrollbar-hide",
5084
5087
  ref: I,
5085
- children: R.map((L) => /* @__PURE__ */ d(
5086
- Ne,
5088
+ children: $.map((L) => /* @__PURE__ */ d(
5089
+ Le,
5087
5090
  {
5088
5091
  size: "small",
5089
5092
  variant: L === f.getFullYear() ? "filled" : "text",
5090
- onClick: () => P(L),
5093
+ onClick: () => H(L),
5091
5094
  "data-selected": L === f.getFullYear(),
5092
5095
  className: y("w-full", {
5093
5096
  "text-on-surface": L !== f.getFullYear()
@@ -5098,10 +5101,10 @@ const $t = ({
5098
5101
  L
5099
5102
  ))
5100
5103
  }
5101
- ) : /* @__PURE__ */ K(me, { children: [
5104
+ ) : /* @__PURE__ */ K(ye, { children: [
5102
5105
  /* @__PURE__ */ d("div", { className: Z.weekDays, children: Y.map((L, k) => /* @__PURE__ */ d("div", { className: Z.weekDay, children: L }, k)) }),
5103
5106
  /* @__PURE__ */ d("div", { className: "overflow-hidden relative min-h-[240px]", children: /* @__PURE__ */ d(
5104
- he,
5107
+ pe,
5105
5108
  {
5106
5109
  mode: "popLayout",
5107
5110
  initial: !1,
@@ -5119,7 +5122,7 @@ const $t = ({
5119
5122
  children: S.map((L, k) => {
5120
5123
  if (!L.isCurrentMonth)
5121
5124
  return /* @__PURE__ */ d("div", { className: Z.dayCell }, k);
5122
- const { isSelected: N, isStart: W, isEnd: H, isInRange: X } = J(L.date), q = D(L.date), ee = s && L.date < s || r && L.date > r || (c == null ? void 0 : c(L.date));
5125
+ const { isSelected: N, isStart: A, isEnd: P, isInRange: X } = J(L.date), q = D(L.date), ee = s && L.date < s || r && L.date > r || (c == null ? void 0 : c(L.date));
5123
5126
  return /* @__PURE__ */ d(
5124
5127
  "div",
5125
5128
  {
@@ -5127,11 +5130,11 @@ const $t = ({
5127
5130
  Z.dayCell,
5128
5131
  // Range background styles applied to the cell wrapper
5129
5132
  X && "bg-primary/20",
5130
- W && (A == null ? void 0 : A[1]) && "bg-gradient-to-r from-transparent to-primary/20",
5131
- H && (A == null ? void 0 : A[0]) && "bg-gradient-to-l from-transparent to-primary/20"
5133
+ A && (R == null ? void 0 : R[1]) && "bg-gradient-to-r from-transparent to-primary/20",
5134
+ P && (R == null ? void 0 : R[0]) && "bg-gradient-to-l from-transparent to-primary/20"
5132
5135
  ),
5133
5136
  children: /* @__PURE__ */ d(
5134
- Ne,
5137
+ Le,
5135
5138
  {
5136
5139
  className: () => ({
5137
5140
  button: y("aspect-square h-[40px] p-0", {
@@ -5190,41 +5193,43 @@ const $t = ({
5190
5193
  id: b,
5191
5194
  style: g,
5192
5195
  ref: O,
5193
- ...A
5196
+ ...R
5194
5197
  }) => {
5195
- const v = Me(), S = b || v, R = `${S}-helper`, I = x !== void 0, [F, E] = V(w ?? ""), Y = I ? x : F, [z, te] = V(!1), [P, C] = V(!!(n != null && n.length)), D = j(null), T = O || D, J = j(null), Z = j(null), se = M ?? (!!(n != null && n.length) || !!(l != null && l.length));
5198
+ const v = Ee(), S = b || v, $ = `${S}-helper`, I = x !== void 0, [F, E] = V(w ?? ""), Y = I ? x : F, [z, te] = V(!1), [H, C] = V(!!(n != null && n.length)), D = j(null), T = O || D, J = j(null), Z = j(null), se = M ?? (!!(n != null && n.length) || !!(l != null && l.length));
5196
5199
  _(() => {
5197
5200
  C(!!(n != null && n.length));
5198
5201
  }, [n]);
5199
5202
  const L = () => {
5200
5203
  T.current && !z && T.current.focus();
5201
- }, k = () => {
5202
- te(!0), C(!1);
5203
- }, N = (ve) => {
5204
- const Ce = ve.target.value;
5205
- I || E(Ce), C(!1), h && h(ve);
5206
- }, W = () => {
5207
- te(!1), n != null && n.length && C(!0);
5208
- }, H = m === "date", [X, q] = V(!1), [ee, $] = V(null), U = we(() => {
5209
- const ve = String(Y);
5210
- if (!ve) return null;
5211
- const [Ce, ze, Te] = ve.split("-").map(Number);
5212
- return Ce && ze && Te ? new Date(Ce, ze - 1, Te) : null;
5204
+ }, k = (fe) => {
5205
+ var ge;
5206
+ te(!0), C(!1), (ge = R.onFocus) == null || ge.call(R, fe);
5207
+ }, N = (fe) => {
5208
+ const ge = fe.target.value;
5209
+ I || E(ge), C(!1), h && h(fe);
5210
+ }, A = (fe) => {
5211
+ var ge;
5212
+ te(!1), n != null && n.length && C(!0), (ge = R.onBlur) == null || ge.call(R, fe);
5213
+ }, P = m === "date", [X, q] = V(!1), [ee, W] = V(null), U = be(() => {
5214
+ const fe = String(Y);
5215
+ if (!fe) return null;
5216
+ const [ge, Te, Ve] = fe.split("-").map(Number);
5217
+ return ge && Te && Ve ? new Date(ge, Te - 1, Ve) : null;
5213
5218
  }, [Y]), ie = () => {
5214
- t || ($(U), q(!0));
5219
+ t || (W(U), q(!0));
5215
5220
  }, de = () => {
5216
- const ve = ee ? ee.toLocaleDateString("en-CA") : "";
5217
- I || E(ve), h && h({
5221
+ const fe = ee ? ee.toLocaleDateString("en-CA") : "";
5222
+ I || E(fe), h && h({
5218
5223
  target: {
5219
- value: ve,
5224
+ value: fe,
5220
5225
  name: c,
5221
5226
  type: m
5222
5227
  }
5223
5228
  }), q(!1);
5224
- }, ye = H && !o ? Yn : o, be = H ? "[&::-webkit-calendar-picker-indicator]:hidden cursor-pointer" : "", ce = Pn({
5229
+ }, ve = P && !o ? Yn : o, xe = P ? "[&::-webkit-calendar-picker-indicator]:hidden cursor-pointer" : "", ce = Hn({
5225
5230
  showSupportingText: se,
5226
5231
  isFocused: z,
5227
- showErrorIcon: P,
5232
+ showErrorIcon: H,
5228
5233
  disabled: t,
5229
5234
  name: c,
5230
5235
  label: a,
@@ -5235,13 +5240,13 @@ const $t = ({
5235
5240
  supportingText: l,
5236
5241
  type: m,
5237
5242
  leadingIcon: u,
5238
- trailingIcon: ye,
5243
+ trailingIcon: ve,
5239
5244
  variant: e,
5240
5245
  errorText: n,
5241
5246
  value: String(Y),
5242
5247
  suffix: r,
5243
5248
  multiline: f
5244
- }), G = f ? Xt : "input", ae = f ? {} : { type: m }, le = z || typeof Y == "string" && Y.length > 0 || m == "date", ge = le && e === "outlined", Ee = !ge;
5249
+ }), G = f ? Xt : "input", ae = f ? {} : { type: m }, le = z || typeof Y == "string" && Y.length > 0 || m == "date", we = le && e === "outlined", Ce = !we;
5245
5250
  return /* @__PURE__ */ K("div", { ref: J, className: ce.textField, style: g, children: [
5246
5251
  /* @__PURE__ */ K(
5247
5252
  "fieldset",
@@ -5251,7 +5256,7 @@ const $t = ({
5251
5256
  role: "presentation",
5252
5257
  children: [
5253
5258
  /* @__PURE__ */ d("div", { className: ce.stateLayer }),
5254
- u && /* @__PURE__ */ d("div", { className: ce.leadingIcon, children: Q.isValidElement(u) ? u : /* @__PURE__ */ d(fe, { className: "w-5 h-5", icon: u }) }),
5259
+ u && /* @__PURE__ */ d("div", { className: ce.leadingIcon, children: Q.isValidElement(u) ? u : /* @__PURE__ */ d(he, { className: "w-5 h-5", icon: u }) }),
5255
5260
  /* @__PURE__ */ d(
5256
5261
  ne.legend,
5257
5262
  {
@@ -5260,15 +5265,15 @@ const $t = ({
5260
5265
  hidden: { width: 0, padding: 0 },
5261
5266
  visible: { width: "auto", padding: "0 8px" }
5262
5267
  },
5263
- initial: ge ? "visible" : "hidden",
5264
- animate: ge ? "visible" : "hidden",
5268
+ initial: we ? "visible" : "hidden",
5269
+ animate: we ? "visible" : "hidden",
5265
5270
  className: "max-w-full ml-2 px-2 text-body-small h-0 overflow-hidden whitespace-nowrap",
5266
5271
  transition: { duration: 0.2 },
5267
5272
  children: /* @__PURE__ */ d("span", { className: "transform inline-flex -translate-y-1/2 opacity-0", children: a })
5268
5273
  }
5269
5274
  ),
5270
5275
  /* @__PURE__ */ K("div", { className: "flex-1 relative", children: [
5271
- Ee && /* @__PURE__ */ d(
5276
+ Ce && /* @__PURE__ */ d(
5272
5277
  ne.label,
5273
5278
  {
5274
5279
  htmlFor: S,
@@ -5284,7 +5289,7 @@ const $t = ({
5284
5289
  children: /* @__PURE__ */ d("span", { className: ce.label, children: a })
5285
5290
  }
5286
5291
  ),
5287
- ge && /* @__PURE__ */ d(
5292
+ we && /* @__PURE__ */ d(
5288
5293
  ne.label,
5289
5294
  {
5290
5295
  htmlFor: S,
@@ -5300,58 +5305,56 @@ const $t = ({
5300
5305
  /* @__PURE__ */ d(
5301
5306
  G,
5302
5307
  {
5308
+ ...R,
5303
5309
  ref: T,
5304
5310
  value: Y,
5305
5311
  onChange: N,
5306
- className: y(ce.input, be),
5312
+ className: y(ce.input, xe),
5307
5313
  id: S,
5308
5314
  name: c,
5309
5315
  placeholder: z ? s ?? void 0 : "",
5310
- onFocus: (ve) => {
5311
- k();
5312
- },
5313
- onBlur: W,
5316
+ onFocus: k,
5317
+ onBlur: A,
5314
5318
  disabled: t,
5315
5319
  autoComplete: p,
5316
5320
  "aria-invalid": !!(n != null && n.length),
5317
- "aria-describedby": se ? R : void 0,
5318
- ...ae,
5319
- ...A
5321
+ "aria-describedby": se ? $ : void 0,
5322
+ ...ae
5320
5323
  }
5321
5324
  )
5322
5325
  ] }),
5323
5326
  /* @__PURE__ */ d("div", { className: ce.activeIndicator }),
5324
- !P && /* @__PURE__ */ K(me, { children: [
5325
- ye && /* @__PURE__ */ d(
5327
+ !H && /* @__PURE__ */ K(ye, { children: [
5328
+ ve && /* @__PURE__ */ d(
5326
5329
  "div",
5327
5330
  {
5328
- ref: H ? Z : void 0,
5329
- onClick: (ve) => {
5330
- ve.stopPropagation(), H && ie();
5331
+ ref: P ? Z : void 0,
5332
+ onClick: (fe) => {
5333
+ fe.stopPropagation(), P && ie();
5331
5334
  },
5332
5335
  className: y(
5333
5336
  ce.trailingIcon,
5334
- H && "cursor-pointer"
5337
+ P && "cursor-pointer"
5335
5338
  ),
5336
- children: /* @__PURE__ */ d("div", { className: "flex items-center justify-center w-full h-full", children: Q.isValidElement(ye) ? ye : /* @__PURE__ */ d(
5337
- fe,
5339
+ children: /* @__PURE__ */ d("div", { className: "flex items-center justify-center w-full h-full", children: Q.isValidElement(ve) ? ve : /* @__PURE__ */ d(
5340
+ he,
5338
5341
  {
5339
5342
  className: "h-5",
5340
- icon: ye
5343
+ icon: ve
5341
5344
  }
5342
5345
  ) })
5343
5346
  }
5344
5347
  ),
5345
- !ye && r && /* @__PURE__ */ d("span", { className: ce.suffix, children: r })
5348
+ !ve && r && /* @__PURE__ */ d("span", { className: ce.suffix, children: r })
5346
5349
  ] }),
5347
- P && /* @__PURE__ */ d(
5350
+ H && /* @__PURE__ */ d(
5348
5351
  "div",
5349
5352
  {
5350
5353
  className: y(ce.trailingIcon, {
5351
- " absolute right-0": !ye
5354
+ " absolute right-0": !ve
5352
5355
  }),
5353
5356
  children: /* @__PURE__ */ d(
5354
- fe,
5357
+ he,
5355
5358
  {
5356
5359
  className: "h-5 text-error",
5357
5360
  icon: Xn
@@ -5362,8 +5365,8 @@ const $t = ({
5362
5365
  ]
5363
5366
  }
5364
5367
  ),
5365
- se && /* @__PURE__ */ d("p", { className: ce.supportingText, id: R, children: n != null && n.length ? n : l != null && l.length ? l : " " }),
5366
- H && X && /* @__PURE__ */ K(me, { children: [
5368
+ se && /* @__PURE__ */ d("p", { className: ce.supportingText, id: $, children: n != null && n.length ? n : l != null && l.length ? l : " " }),
5369
+ P && X && /* @__PURE__ */ K(ye, { children: [
5367
5370
  /* @__PURE__ */ d(
5368
5371
  "div",
5369
5372
  {
@@ -5377,12 +5380,12 @@ const $t = ({
5377
5380
  {
5378
5381
  className: "",
5379
5382
  value: ee,
5380
- onChange: $
5383
+ onChange: W
5381
5384
  }
5382
5385
  ),
5383
5386
  /* @__PURE__ */ K("div", { className: "flex justify-end gap-2 p-4 pt-0", children: [
5384
5387
  /* @__PURE__ */ d(
5385
- Ne,
5388
+ Le,
5386
5389
  {
5387
5390
  variant: "text",
5388
5391
  size: "small",
@@ -5391,7 +5394,7 @@ const $t = ({
5391
5394
  }
5392
5395
  ),
5393
5396
  /* @__PURE__ */ d(
5394
- Ne,
5397
+ Le,
5395
5398
  {
5396
5399
  variant: "filled",
5397
5400
  size: "small",
@@ -5460,7 +5463,7 @@ const $t = ({
5460
5463
  ...b
5461
5464
  }) => {
5462
5465
  M && (n = M);
5463
- const g = j(null), O = m || g, [A, v] = V(u);
5466
+ const g = j(null), O = m || g, [R, v] = V(u);
5464
5467
  _(() => {
5465
5468
  u && a == null ? v(!0) : v(a == l && l != null);
5466
5469
  }, [a]), _(() => {
@@ -5471,7 +5474,7 @@ const $t = ({
5471
5474
  icon: c
5472
5475
  });
5473
5476
  }, [a]);
5474
- const S = r ? "a" : "button", R = (F) => {
5477
+ const S = r ? "a" : "button", $ = (F) => {
5475
5478
  i && i(l ?? null), t && t(F);
5476
5479
  }, I = lr({
5477
5480
  isExtended: p,
@@ -5481,11 +5484,11 @@ const $t = ({
5481
5484
  selectedItem: a,
5482
5485
  index: l,
5483
5486
  transition: f,
5484
- selected: A,
5487
+ selected: R,
5485
5488
  variant: s,
5486
5489
  icon: c,
5487
5490
  label: n,
5488
- isSelected: A,
5491
+ isSelected: R,
5489
5492
  setSelectedItem: i,
5490
5493
  href: r,
5491
5494
  children: n,
@@ -5499,11 +5502,11 @@ const $t = ({
5499
5502
  {
5500
5503
  ...b,
5501
5504
  role: "tab",
5502
- "aria-selected": A,
5505
+ "aria-selected": R,
5503
5506
  ref: O,
5504
5507
  href: r,
5505
5508
  className: I.navigationRailItem,
5506
- onClick: R,
5509
+ onClick: $,
5507
5510
  style: { transition: f.duration + "s", ...x },
5508
5511
  children: [
5509
5512
  /* @__PURE__ */ K(
@@ -5516,25 +5519,25 @@ const $t = ({
5516
5519
  className: I.container,
5517
5520
  children: [
5518
5521
  /* @__PURE__ */ d(
5519
- Se,
5522
+ Ne,
5520
5523
  {
5521
5524
  style: { transition: f.duration + "s" },
5522
5525
  className: I.stateLayer,
5523
5526
  colorName: y({
5524
- "on-surface": !A,
5525
- "on-secondary-container": A
5527
+ "on-surface": !R,
5528
+ "on-secondary-container": R
5526
5529
  }),
5527
5530
  stateClassName: "state-ripple-group-[navigation-rail-item]"
5528
5531
  }
5529
5532
  ),
5530
5533
  c && /* @__PURE__ */ d(
5531
- fe,
5534
+ he,
5532
5535
  {
5533
- icon: A ? h : c,
5536
+ icon: R ? h : c,
5534
5537
  className: I.icon
5535
5538
  }
5536
5539
  ),
5537
- /* @__PURE__ */ d(he, { children: s == "horizontal" && (() => {
5540
+ /* @__PURE__ */ d(pe, { children: s == "horizontal" && (() => {
5538
5541
  const F = {
5539
5542
  width: 0,
5540
5543
  opacity: 0,
@@ -5566,7 +5569,7 @@ const $t = ({
5566
5569
  ]
5567
5570
  }
5568
5571
  ),
5569
- /* @__PURE__ */ d(he, { children: s == "vertical" && (() => {
5572
+ /* @__PURE__ */ d(pe, { children: s == "vertical" && (() => {
5570
5573
  const F = {
5571
5574
  height: 0,
5572
5575
  opacity: 0,
@@ -5654,11 +5657,11 @@ const $t = ({
5654
5657
  function O(I) {
5655
5658
  const F = [];
5656
5659
  return Bt.forEach(I, (E) => {
5657
- ke(E) && E.type === Pt ? F.push(...O(E.props.children)) : F.push(E);
5660
+ Ie(E) && E.type === Ht ? F.push(...O(E.props.children)) : F.push(E);
5658
5661
  }), F;
5659
5662
  }
5660
- const A = O(n), v = A.filter(
5661
- (I) => ke(I) && I.type === Be
5663
+ const R = O(n), v = R.filter(
5664
+ (I) => Ie(I) && I.type === Be
5662
5665
  ), S = dr({
5663
5666
  children: n,
5664
5667
  onItemSelected: t,
@@ -5674,8 +5677,8 @@ const $t = ({
5674
5677
  onExtendedChange: o
5675
5678
  });
5676
5679
  u = { duration: 0.3, ...u };
5677
- const R = j(!1);
5678
- return R.current = !1, _(() => {
5680
+ const $ = j(!1);
5681
+ return $.current = !1, _(() => {
5679
5682
  o == null || o(h ?? !1);
5680
5683
  }, [h]), /* @__PURE__ */ K(
5681
5684
  "div",
@@ -5686,7 +5689,7 @@ const $t = ({
5686
5689
  children: [
5687
5690
  /* @__PURE__ */ K("div", { className: S.header, children: [
5688
5691
  /* @__PURE__ */ d(
5689
- Ie,
5692
+ Me,
5690
5693
  {
5691
5694
  onClick: () => x(!h),
5692
5695
  label: h ? i == null ? void 0 : i.opened.label : i == null ? void 0 : i.closed.label,
@@ -5702,7 +5705,7 @@ const $t = ({
5702
5705
  ] }),
5703
5706
  /* @__PURE__ */ d("div", { className: S.segments, children: (() => {
5704
5707
  let I = 0;
5705
- return A.map((F) => ke(F) && F.type === cr ? Re(
5708
+ return R.map((F) => Ie(F) && F.type === cr ? Re(
5706
5709
  F,
5707
5710
  {
5708
5711
  key: I,
@@ -5713,10 +5716,10 @@ const $t = ({
5713
5716
  setSelectedItem: M,
5714
5717
  onItemSelected: g,
5715
5718
  transition: u,
5716
- extendedOnly: R.current,
5719
+ extendedOnly: $.current,
5717
5720
  isExtended: h
5718
5721
  }
5719
- ) : ke(F) && F.type === Be ? null : ke(F) && F.type === ar ? (R.current = !0, h ? Re(F, {}) : null) : F);
5722
+ ) : Ie(F) && F.type === Be ? null : Ie(F) && F.type === ar ? ($.current = !0, h ? Re(F, {}) : null) : F);
5720
5723
  })() }),
5721
5724
  /* @__PURE__ */ d("div", { className: "flex-1 max-h-[160px]" })
5722
5725
  ]
@@ -5733,20 +5736,20 @@ function cs(e) {
5733
5736
  export {
5734
5737
  it as AnchorPositioner,
5735
5738
  kr as AnimateOnScrollInit,
5736
- Ne as Button,
5739
+ Le as Button,
5737
5740
  Kr as Card,
5738
5741
  Gr as Carousel,
5739
5742
  Tn as CarouselItem,
5740
5743
  Jr as Checkbox,
5741
- Ge as Chip,
5744
+ Je as Chip,
5742
5745
  Zr as Chips,
5743
5746
  Jt as CustomScroll,
5744
5747
  or as DatePicker,
5745
5748
  Dt as Divider,
5746
5749
  Be as Fab,
5747
5750
  Qr as FabMenu,
5748
- fe as Icon,
5749
- Ie as IconButton,
5751
+ he as Icon,
5752
+ Me as IconButton,
5750
5753
  as as NavigationRail,
5751
5754
  cr as NavigationRailItem,
5752
5755
  ar as NavigationRailSection,
@@ -5756,7 +5759,7 @@ export {
5756
5759
  es as Slider,
5757
5760
  Nr as SmoothScroll,
5758
5761
  ns as Snackbar,
5759
- Se as State,
5762
+ Ne as State,
5760
5763
  rs as Switch,
5761
5764
  un as SyncedFixedWrapper,
5762
5765
  tr as Tab,
@@ -5786,10 +5789,10 @@ export {
5786
5789
  Br as fabMenuStyle,
5787
5790
  Fr as fabStyle,
5788
5791
  Pe as getClassNames,
5789
- Pr as iconButtonStyle,
5792
+ Hr as iconButtonStyle,
5790
5793
  ot as initAnimateOnScroll,
5791
- Le as normalize,
5792
- Hr as progressIndicatorStyle,
5794
+ ke as normalize,
5795
+ Pr as progressIndicatorStyle,
5793
5796
  wt as sideSheetConfig,
5794
5797
  Cn as sideSheetStyle,
5795
5798
  bt as sliderConfig,
@@ -5824,7 +5827,7 @@ export {
5824
5827
  Fn as useTabPanelsStyle,
5825
5828
  Wn as useTabStyle,
5826
5829
  An as useTabsStyle,
5827
- Pn as useTextFieldStyle,
5828
- Hn as useToolTipStyle,
5830
+ Hn as useTextFieldStyle,
5831
+ Pn as useToolTipStyle,
5829
5832
  er as useTooltipTrigger
5830
5833
  };