@photonix/basic 1.7.0 → 1.7.1

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.mjs CHANGED
@@ -37543,13 +37543,13 @@ var ra = i.forwardRef(
37543
37543
  onClick: h,
37544
37544
  ...d
37545
37545
  }, s2) => {
37546
- const p = o !== void 0, [u, m] = i.useState(n), [y6, b] = i.useState(false), v = i.useRef(null), _ = p ? o : u, L = r2, k6 = !r2 && _, S = !r2 && !_, w = l === "small" ? 20 : 24, T = (z) => {
37546
+ const p = o !== void 0, [u, m] = i.useState(n), [y6, b] = i.useState(false), v = i.useRef(null), _ = p ? o : u, L = r2, k6 = !r2 && _, S = !r2 && !_, w = l === "small" ? 20 : 24, T = (W) => {
37547
37547
  if (f) return;
37548
37548
  v.current && clearTimeout(v.current), b(true), v.current = setTimeout(() => {
37549
37549
  b(false);
37550
37550
  }, 400);
37551
- const W = r2 ? true : !_;
37552
- p || m(W), C && C(W), h && h(z);
37551
+ const P6 = r2 ? true : !_;
37552
+ p || m(P6), C && C(P6), h && h(W);
37553
37553
  };
37554
37554
  i.useEffect(() => () => {
37555
37555
  v.current && clearTimeout(v.current);
@@ -37844,7 +37844,7 @@ var Pa = ({
37844
37844
  }) => {
37845
37845
  const M = C === "checkbox", N = (!!_ || M) && !L, H = () => {
37846
37846
  L || (M && m?.(!u), _?.());
37847
- }, z = () => {
37847
+ }, W = () => {
37848
37848
  if (n === "none") return null;
37849
37849
  switch (n) {
37850
37850
  case "icon":
@@ -37871,15 +37871,15 @@ var Pa = ({
37871
37871
  default:
37872
37872
  return null;
37873
37873
  }
37874
- }, W = () => {
37875
- const V = o !== void 0;
37874
+ }, P6 = () => {
37875
+ const A = o !== void 0;
37876
37876
  return /* @__PURE__ */ g("div", { className: De.listItemBody, children: [
37877
37877
  /* @__PURE__ */ e("span", { className: De.listItemContent, children: t }),
37878
- a2 && !V && /* @__PURE__ */ e("span", { className: [
37878
+ a2 && !A && /* @__PURE__ */ e("span", { className: [
37879
37879
  De.listItemDescription,
37880
37880
  S && De.listItemDescriptionMultiline
37881
37881
  ].filter(Boolean).join(" "), children: a2 }),
37882
- V && /* @__PURE__ */ e(en, { value: o, className: De.listItemProgress })
37882
+ A && /* @__PURE__ */ e(en, { value: o, className: De.listItemProgress })
37883
37883
  ] });
37884
37884
  }, G = () => {
37885
37885
  if (C === "none") return null;
@@ -37921,15 +37921,15 @@ var Pa = ({
37921
37921
  case "check":
37922
37922
  return y6 ? /* @__PURE__ */ e("span", { className: De.listItemTrailingCheck, children: /* @__PURE__ */ e(CheckSmallOutline, { size: 24 }) }) : null;
37923
37923
  case "actions":
37924
- return /* @__PURE__ */ e("div", { className: De.listItemTrailingActions, children: b.slice(0, 3).map((V, I) => /* @__PURE__ */ e(
37924
+ return /* @__PURE__ */ e("div", { className: De.listItemTrailingActions, children: b.slice(0, 3).map((A, I) => /* @__PURE__ */ e(
37925
37925
  ge,
37926
37926
  {
37927
- icon: V,
37927
+ icon: A,
37928
37928
  variant: "tertiary",
37929
37929
  size: "medium",
37930
37930
  className: De.listItemActionButton,
37931
- onClick: ($) => {
37932
- $.stopPropagation(), v?.(I);
37931
+ onClick: (K) => {
37932
+ K.stopPropagation(), v?.(I);
37933
37933
  },
37934
37934
  disabled: L,
37935
37935
  "aria-label": `Action ${I + 1}`
@@ -37959,13 +37959,13 @@ var Pa = ({
37959
37959
  onClick: H,
37960
37960
  role: N ? "button" : void 0,
37961
37961
  tabIndex: N ? 0 : void 0,
37962
- onKeyDown: (V) => {
37963
- N && (V.key === "Enter" || V.key === " ") && (V.preventDefault(), H());
37962
+ onKeyDown: (A) => {
37963
+ N && (A.key === "Enter" || A.key === " ") && (A.preventDefault(), H());
37964
37964
  },
37965
37965
  ...T,
37966
37966
  children: [
37967
- z(),
37968
37967
  W(),
37968
+ P6(),
37969
37969
  G()
37970
37970
  ]
37971
37971
  }
@@ -38417,45 +38417,45 @@ var Qt = gr(({
38417
38417
  autoHide: s2 = true,
38418
38418
  onScroll: p
38419
38419
  }, u) => {
38420
- const m = lt(null), y6 = lt(null), b = lt(null), [v, _] = Le(0), [L, k6] = Le(0), [S, w] = Le(false), [T, M] = Le(false), [N, H] = Le(0), [z, W] = Le(0), [G, E] = Le(false), [J, V] = Le(false), [I, $] = Le(false), x6 = lt({ y: 0, scrollTop: 0 }), D = lt({ x: 0, scrollLeft: 0 }), F = Qe(() => {
38421
- const Z = m.current;
38422
- if (!Z) return;
38423
- const { scrollHeight: ce, clientHeight: xe, scrollTop: we, scrollWidth: te, clientWidth: ae, scrollLeft: le } = Z, Y = ce > xe + 1;
38420
+ const m = lt(null), y6 = lt(null), b = lt(null), [v, _] = Le(0), [L, k6] = Le(0), [S, w] = Le(false), [T, M] = Le(false), [N, H] = Le(0), [W, P6] = Le(0), [G, E] = Le(false), [J, A] = Le(false), [I, K] = Le(false), x6 = lt({ y: 0, scrollTop: 0 }), D = lt({ x: 0, scrollLeft: 0 }), F = Qe(() => {
38421
+ const z = m.current;
38422
+ if (!z) return;
38423
+ const { scrollHeight: ce, clientHeight: xe, scrollTop: we, scrollWidth: te, clientWidth: ae, scrollLeft: le } = z, Y = ce > xe + 1;
38424
38424
  if (w(Y), Y) {
38425
38425
  const ie = y6.current ? y6.current.clientHeight : xe, R = 4, X = Math.max(0, ie - R * 2), j = Math.max(xe / ce * X, 30);
38426
38426
  _(j);
38427
- const A = ce - xe, ne = X - j;
38428
- k6(R + we / A * ne);
38427
+ const V = ce - xe, ne = X - j;
38428
+ k6(R + we / V * ne);
38429
38429
  }
38430
38430
  const ee = te > ae + 1;
38431
38431
  if (E(ee), ee) {
38432
38432
  const ie = b.current ? b.current.clientWidth : ae, R = 4, X = Math.max(0, ie - R * 2), j = Math.max(ae / te * X, 30);
38433
38433
  H(j);
38434
- const A = te - ae, ne = X - j;
38435
- W(R + le / A * ne);
38434
+ const V = te - ae, ne = X - j;
38435
+ P6(R + le / V * ne);
38436
38436
  }
38437
38437
  }, []);
38438
38438
  We(() => {
38439
38439
  if (S || G) {
38440
- const Z = setTimeout(F, 0);
38441
- return () => clearTimeout(Z);
38440
+ const z = setTimeout(F, 0);
38441
+ return () => clearTimeout(z);
38442
38442
  }
38443
38443
  }, [S, G, F]), fr(u, () => ({
38444
38444
  contentElement: m.current,
38445
- scrollTo: (Z) => {
38446
- m.current?.scrollTo(Z);
38445
+ scrollTo: (z) => {
38446
+ m.current?.scrollTo(z);
38447
38447
  }
38448
38448
  }), []);
38449
- const K = Qe((Z) => {
38450
- F(), p?.(Z);
38451
- }, [F, p]), de = Qe((Z) => {
38452
- Z.preventDefault(), Z.stopPropagation(), M(true), x6.current = { y: Z.clientY, scrollTop: m.current?.scrollTop || 0 };
38453
- }, []), O6 = Qe((Z) => {
38454
- Z.preventDefault(), Z.stopPropagation(), V(true), D.current = { x: Z.clientX, scrollLeft: m.current?.scrollLeft || 0 };
38449
+ const Q = Qe((z) => {
38450
+ F(), p?.(z);
38451
+ }, [F, p]), de = Qe((z) => {
38452
+ z.preventDefault(), z.stopPropagation(), M(true), x6.current = { y: z.clientY, scrollTop: m.current?.scrollTop || 0 };
38453
+ }, []), O6 = Qe((z) => {
38454
+ z.preventDefault(), z.stopPropagation(), A(true), D.current = { x: z.clientX, scrollLeft: m.current?.scrollLeft || 0 };
38455
38455
  }, []);
38456
38456
  We(() => {
38457
38457
  if (!T && !J) return;
38458
- const Z = (xe) => {
38458
+ const z = (xe) => {
38459
38459
  const we = m.current;
38460
38460
  if (we) {
38461
38461
  if (T) {
@@ -38468,36 +38468,36 @@ var Qt = gr(({
38468
38468
  }
38469
38469
  }
38470
38470
  }, ce = () => {
38471
- M(false), V(false);
38471
+ M(false), A(false);
38472
38472
  };
38473
- return document.addEventListener("mousemove", Z), document.addEventListener("mouseup", ce), () => {
38474
- document.removeEventListener("mousemove", Z), document.removeEventListener("mouseup", ce);
38473
+ return document.addEventListener("mousemove", z), document.addEventListener("mouseup", ce), () => {
38474
+ document.removeEventListener("mousemove", z), document.removeEventListener("mouseup", ce);
38475
38475
  };
38476
38476
  }, [T, J, v, N]);
38477
- const q = Qe((Z) => {
38478
- const ce = m.current, xe = Z.currentTarget;
38477
+ const q = Qe((z) => {
38478
+ const ce = m.current, xe = z.currentTarget;
38479
38479
  if (!ce) return;
38480
- const we = xe.getBoundingClientRect(), te = Z.clientY - we.top, { scrollHeight: ae, clientHeight: le } = ce, Y = 4, ee = ae - le, ie = te - v / 2 - Y, R = xe.clientHeight - Y * 2 - v;
38480
+ const we = xe.getBoundingClientRect(), te = z.clientY - we.top, { scrollHeight: ae, clientHeight: le } = ce, Y = 4, ee = ae - le, ie = te - v / 2 - Y, R = xe.clientHeight - Y * 2 - v;
38481
38481
  ce.scrollTop = Math.max(0, Math.min(1, ie / R)) * ee;
38482
- }, [v]), re2 = Qe((Z) => {
38483
- const ce = m.current, xe = Z.currentTarget;
38482
+ }, [v]), re2 = Qe((z) => {
38483
+ const ce = m.current, xe = z.currentTarget;
38484
38484
  if (!ce) return;
38485
- const we = xe.getBoundingClientRect(), te = Z.clientX - we.left, { scrollWidth: ae, clientWidth: le } = ce, Y = 4, ee = ae - le, ie = te - N / 2 - Y, R = xe.clientWidth - Y * 2 - N;
38485
+ const we = xe.getBoundingClientRect(), te = z.clientX - we.left, { scrollWidth: ae, clientWidth: le } = ce, Y = 4, ee = ae - le, ie = te - N / 2 - Y, R = xe.clientWidth - Y * 2 - N;
38486
38486
  ce.scrollLeft = Math.max(0, Math.min(1, ie / R)) * ee;
38487
38487
  }, [N]);
38488
38488
  We(() => {
38489
38489
  F();
38490
- const Z = new ResizeObserver(F);
38491
- return m.current && Z.observe(m.current), () => Z.disconnect();
38490
+ const z = new ResizeObserver(F);
38491
+ return m.current && z.observe(m.current), () => z.disconnect();
38492
38492
  }, [F]);
38493
- const P6 = !s2 || I || T || J, U = a2 === "sm" ? "Small" : "Medium", ue = r2 ? { flex: 1, minHeight: 0, minWidth: 0, height: "100%", ...n && { maxWidth: n } } : { height: o, maxWidth: n }, he = r2 ? { height: "100%", ...n && { maxWidth: n } } : { maxHeight: o, maxWidth: n };
38493
+ const Z = !s2 || I || T || J, U = a2 === "sm" ? "Small" : "Medium", ue = r2 ? { flex: 1, minHeight: 0, minWidth: 0, height: "100%", ...n && { maxWidth: n } } : { height: o, maxWidth: n }, he = r2 ? { height: "100%", ...n && { maxWidth: n } } : { maxHeight: o, maxWidth: n };
38494
38494
  return /* @__PURE__ */ g(
38495
38495
  "div",
38496
38496
  {
38497
38497
  className: `phx-custom-scrollbar ${rt.customScrollbarRoot} ${r2 ? rt.customScrollbarFill : ""} ${l || ""}`,
38498
38498
  style: ue,
38499
- onMouseEnter: () => $(true),
38500
- onMouseLeave: () => $(false),
38499
+ onMouseEnter: () => K(true),
38500
+ onMouseLeave: () => K(false),
38501
38501
  children: [
38502
38502
  /* @__PURE__ */ e(
38503
38503
  "div",
@@ -38505,7 +38505,7 @@ var Qt = gr(({
38505
38505
  ref: m,
38506
38506
  className: `${rt.customScrollbarContent} ${c2 || ""}`,
38507
38507
  style: he,
38508
- onScroll: K,
38508
+ onScroll: Q,
38509
38509
  children: t
38510
38510
  }
38511
38511
  ),
@@ -38513,7 +38513,7 @@ var Qt = gr(({
38513
38513
  "div",
38514
38514
  {
38515
38515
  ref: y6,
38516
- className: `${rt.customScrollbarTrackVertical} ${rt[`customScrollbarTrack${U}`]} ${P6 ? rt.customScrollbarTrackVisible : ""} ${f || ""}`,
38516
+ className: `${rt.customScrollbarTrackVertical} ${rt[`customScrollbarTrack${U}`]} ${Z ? rt.customScrollbarTrackVisible : ""} ${f || ""}`,
38517
38517
  style: C,
38518
38518
  onClick: q,
38519
38519
  children: /* @__PURE__ */ e(
@@ -38533,7 +38533,7 @@ var Qt = gr(({
38533
38533
  "div",
38534
38534
  {
38535
38535
  ref: b,
38536
- className: `${rt.customScrollbarTrackHorizontal} ${rt[`customScrollbarTrack${U}`]} ${P6 ? rt.customScrollbarTrackVisible : ""} ${h || ""}`,
38536
+ className: `${rt.customScrollbarTrackHorizontal} ${rt[`customScrollbarTrack${U}`]} ${Z ? rt.customScrollbarTrackVisible : ""} ${h || ""}`,
38537
38537
  style: d,
38538
38538
  onClick: re2,
38539
38539
  children: /* @__PURE__ */ e(
@@ -38542,7 +38542,7 @@ var Qt = gr(({
38542
38542
  className: `${rt.customScrollbarThumbHorizontal} ${rt[`customScrollbarThumb${U}`]} ${J ? rt.customScrollbarThumbHorizontalDragging : ""}`,
38543
38543
  style: {
38544
38544
  width: N,
38545
- transform: `translateX(${z}px)`
38545
+ transform: `translateX(${W}px)`
38546
38546
  },
38547
38547
  onMouseDown: O6
38548
38548
  }
@@ -38661,17 +38661,17 @@ function rn(t, a2, o, n = {}) {
38661
38661
  u.current();
38662
38662
  return;
38663
38663
  }
38664
- const T = a2.current?.getBoundingClientRect(), M = w.bottom - L.bottom, N = L.top - w.top, H = 8, z = w.left + w.padding, W = w.right - w.padding;
38664
+ const T = a2.current?.getBoundingClientRect(), M = w.bottom - L.bottom, N = L.top - w.top, H = 8, W = w.left + w.padding, P6 = w.right - w.padding;
38665
38665
  let G = "bottom";
38666
38666
  if (M < r2 && N > M && (G = "top"), d(G), c2 === "fixed") {
38667
- let E = L.left, J, V;
38668
- T && (E + T.width > W && (E = Math.max(z, W - T.width)), E < z && (E = z)), G === "bottom" ? J = L.bottom + H : V = k6 - L.top + H, y6({ top: J, bottom: V, left: E }), p("left");
38667
+ let E = L.left, J, A;
38668
+ T && (E + T.width > P6 && (E = Math.max(W, P6 - T.width)), E < W && (E = W)), G === "bottom" ? J = L.bottom + H : A = k6 - L.top + H, y6({ top: J, bottom: A, left: E }), p("left");
38669
38669
  } else {
38670
38670
  let E = 0;
38671
38671
  const J = "left";
38672
38672
  if (T) {
38673
- const V = L.left, I = V + T.width;
38674
- I > W && (E = -(I - W)), V + E < z && (E = z - L.left);
38673
+ const A = L.left, I = A + T.width;
38674
+ I > P6 && (E = -(I - P6)), A + E < W && (E = W - L.left);
38675
38675
  }
38676
38676
  y6({ horizontalOffset: E }), p(J);
38677
38677
  }
@@ -38801,8 +38801,8 @@ var Fa = i.forwardRef(
38801
38801
  }), L = i.useRef(null);
38802
38802
  i.useEffect(() => {
38803
38803
  if (!o || l) return;
38804
- const H = (z) => {
38805
- (z.metaKey || z.ctrlKey) && z.key.toLowerCase() === "k" && (z.preventDefault(), L.current?.focus());
38804
+ const H = (W) => {
38805
+ (W.metaKey || W.ctrlKey) && W.key.toLowerCase() === "k" && (W.preventDefault(), L.current?.focus());
38806
38806
  };
38807
38807
  return window.addEventListener("keydown", H), () => window.removeEventListener("keydown", H);
38808
38808
  }, [o, l]), i.useImperativeHandle(m, () => L.current);
@@ -38967,7 +38967,7 @@ var vo = i.forwardRef(
38967
38967
  }, [w]), i.useEffect(() => {
38968
38968
  if (s2 !== void 0 || !h || !b.current || a2 !== "large") return;
38969
38969
  const x6 = Y1(b.current), D = 50, F = () => {
38970
- const K = x6 === window ? window.scrollY : x6.scrollTop, de = Math.min(1, Math.max(0, K / D));
38970
+ const Q = x6 === window ? window.scrollY : x6.scrollTop, de = Math.min(1, Math.max(0, Q / D));
38971
38971
  N(de);
38972
38972
  };
38973
38973
  return x6.addEventListener("scroll", F, { passive: true }), F(), () => x6.removeEventListener("scroll", F);
@@ -38975,8 +38975,8 @@ var vo = i.forwardRef(
38975
38975
  if (a2 !== "large" || w) return;
38976
38976
  const x6 = requestAnimationFrame(() => {
38977
38977
  if (v.current) {
38978
- const D = 1 - H * 0.15, F = 1 - H, K = H * -10;
38979
- v.current.style.transform = `scale(${D}) translateY(${K}px)`, v.current.style.opacity = String(F), v.current.style.maxHeight = H > 0.8 ? "0px" : "100px", v.current.style.visibility = H >= 1 ? "hidden" : "visible";
38978
+ const D = 1 - H * 0.15, F = 1 - H, Q = H * -10;
38979
+ v.current.style.transform = `scale(${D}) translateY(${Q}px)`, v.current.style.opacity = String(F), v.current.style.maxHeight = H > 0.8 ? "0px" : "100px", v.current.style.visibility = H >= 1 ? "hidden" : "visible";
38980
38980
  }
38981
38981
  if (_.current) {
38982
38982
  const D = H, F = (1 - H) * 8;
@@ -38996,22 +38996,22 @@ var vo = i.forwardRef(
38996
38996
  });
38997
38997
  return () => cancelAnimationFrame(x6);
38998
38998
  }, [H, a2, w]);
38999
- const z = () => {
38999
+ const W = () => {
39000
39000
  T(true);
39001
- }, W = () => {
39001
+ }, P6 = () => {
39002
39002
  setTimeout(() => T(false), 150);
39003
39003
  }, G = () => {
39004
39004
  T(false), k6.current?.blur();
39005
- }, E = h && H > 0.1, J = d ?? E, V = !t && l, I = [
39005
+ }, E = h && H > 0.1, J = d ?? E, A = !t && l, I = [
39006
39006
  "phx-app-bar",
39007
39007
  ze.appBarRoot,
39008
39008
  h && ze.appBarSticky,
39009
39009
  J && ze.appBarElevated,
39010
39010
  a2 === "large" ? ze.appBarSizeLarge : ze.appBarSizeMedium,
39011
39011
  w && ze.appBarSearchFocusMode,
39012
- V && ze.appBarSearchOnlyMode,
39012
+ A && ze.appBarSearchOnlyMode,
39013
39013
  m
39014
- ].filter(Boolean).join(" "), $ = [
39014
+ ].filter(Boolean).join(" "), K = [
39015
39015
  ze.appBarTitleSmall,
39016
39016
  !o && !p && ze.appBarTitleSmallNoBack,
39017
39017
  a2 === "medium" && ze.appBarTitleSmallVisible
@@ -39036,7 +39036,7 @@ var vo = i.forwardRef(
39036
39036
  placeholder: c2,
39037
39037
  value: f,
39038
39038
  onChange: C,
39039
- onBlur: W,
39039
+ onBlur: P6,
39040
39040
  showClear: true
39041
39041
  }
39042
39042
  ) })
@@ -39052,7 +39052,7 @@ var vo = i.forwardRef(
39052
39052
  "aria-label": "Go back"
39053
39053
  }
39054
39054
  ) }),
39055
- t && /* @__PURE__ */ e("h1", { ref: _, className: $, children: t }),
39055
+ t && /* @__PURE__ */ e("h1", { ref: _, className: K, children: t }),
39056
39056
  /* @__PURE__ */ e("div", { className: ze.appBarSpacer }),
39057
39057
  u ? /* @__PURE__ */ e("div", { className: ze.appBarTrailing, children: u }) : r2.length > 0 ? /* @__PURE__ */ e("div", { className: ze.appBarActions, children: r2.map((x6, D) => /* @__PURE__ */ e("span", { className: ze.appBarAction, children: x6 }, D)) }) : null
39058
39058
  ] }),
@@ -39066,7 +39066,7 @@ var vo = i.forwardRef(
39066
39066
  placeholder: c2,
39067
39067
  value: f,
39068
39068
  onChange: C,
39069
- onFocus: z,
39069
+ onFocus: W,
39070
39070
  showClear: true
39071
39071
  }
39072
39072
  ) })
@@ -39208,7 +39208,7 @@ function Xt() {
39208
39208
  function Zt(...t) {
39209
39209
  return Xt(t);
39210
39210
  }
39211
- function Q(t, a2, o = (n) => String(n)) {
39211
+ function $(t, a2, o = (n) => String(n)) {
39212
39212
  if (a2 === void 0) return {};
39213
39213
  const n = {};
39214
39214
  if (typeof a2 == "object" && a2 !== null && !Array.isArray(a2))
@@ -39271,28 +39271,28 @@ var Lo = i.forwardRef(
39271
39271
  maxH: M,
39272
39272
  position: N,
39273
39273
  top: H,
39274
- right: z,
39275
- bottom: W,
39274
+ right: W,
39275
+ bottom: P6,
39276
39276
  left: G,
39277
39277
  inset: E,
39278
39278
  zIndex: J,
39279
- overflow: V,
39279
+ overflow: A,
39280
39280
  overflowX: I,
39281
- overflowY: $,
39281
+ overflowY: K,
39282
39282
  aspectRatio: x6,
39283
39283
  // Flexbox
39284
39284
  flexDirection: D,
39285
39285
  flexWrap: F,
39286
- flex: K,
39286
+ flex: Q,
39287
39287
  flexGrow: de,
39288
39288
  flexShrink: O6,
39289
39289
  flexBasis: q,
39290
39290
  order: re2,
39291
- gap: P6,
39291
+ gap: Z,
39292
39292
  columnGap: U,
39293
39293
  rowGap: ue,
39294
39294
  alignItems: he,
39295
- alignContent: Z,
39295
+ alignContent: z,
39296
39296
  alignSelf: ce,
39297
39297
  justifyContent: xe,
39298
39298
  justifyItems: we,
@@ -39306,7 +39306,7 @@ var Lo = i.forwardRef(
39306
39306
  opacity: R,
39307
39307
  border: X,
39308
39308
  borderWidth: j,
39309
- borderStyle: A,
39309
+ borderStyle: V,
39310
39310
  borderColor: ne,
39311
39311
  // Typography
39312
39312
  textAlign: se,
@@ -39324,75 +39324,75 @@ var Lo = i.forwardRef(
39324
39324
  ...rr
39325
39325
  }, ir) => {
39326
39326
  const lr = t || "div", Ct = (Ee) => typeof Ee == "number" ? `${Ee}px` : Ee, $e = (Ee) => Ee === "auto" ? "auto" : ec(Ee), sr = (Ee) => tc(Ee), cr = (Ee) => ac(Ee), dr = (Ee) => K0(Ee), ur = (Ee) => $0(Ee), hr = (Ee) => typeof Ee == "boolean" ? Ee ? "wrap" : "nowrap" : Ee, pr = {
39327
- ...Q("p", r2, $e),
39328
- ...Q("px", l, $e),
39329
- ...Q("py", c2, $e),
39330
- ...Q("pt", f, $e),
39331
- ...Q("pb", C, $e),
39332
- ...Q("pl", h, $e),
39333
- ...Q("pr", d, $e),
39334
- ...Q("m", s2, $e),
39335
- ...Q("mx", p, $e),
39336
- ...Q("my", u, $e),
39337
- ...Q("mt", m, $e),
39338
- ...Q("mb", y6, $e),
39339
- ...Q("ml", b, $e),
39340
- ...Q("mr", v, $e),
39341
- ...Q("display", _),
39342
- ...Q("aspectRatio", x6),
39343
- ...Q("w", L, Ct),
39344
- ...Q("h", k6, Ct),
39345
- ...Q("minW", S, Ct),
39346
- ...Q("minH", w, Ct),
39347
- ...Q("maxW", T, Ct),
39348
- ...Q("maxH", M, Ct),
39349
- ...Q("position", N),
39350
- ...Q("top", H, Ct),
39351
- ...Q("right", z, Ct),
39352
- ...Q("bottom", W, Ct),
39353
- ...Q("left", G, Ct),
39354
- ...Q("inset", E, Ct),
39355
- ...Q("zIndex", J),
39356
- ...Q("overflow", V),
39357
- ...Q("overflowX", I),
39358
- ...Q("overflowY", $),
39359
- ...Q("flexDirection", D),
39360
- ...Q("flexWrap", F, hr),
39361
- ...Q("flex", K),
39362
- ...Q("flexGrow", de),
39363
- ...Q("flexShrink", O6),
39364
- ...Q("flexBasis", q, Ct),
39365
- ...Q("order", re2),
39366
- ...Q("gap", P6, $e),
39367
- ...Q("columnGap", U, $e),
39368
- ...Q("rowGap", ue, $e),
39369
- ...Q("alignItems", he, (Ee) => ic[Ee] || Ee),
39370
- ...Q("alignContent", Z),
39371
- ...Q("alignSelf", ce, (Ee) => Ee === "start" ? "flex-start" : Ee === "end" ? "flex-end" : Ee),
39372
- ...Q("justifyContent", xe, (Ee) => lc[Ee] || Ee),
39373
- ...Q("justifyItems", we),
39374
- ...Q("placeItems", te),
39375
- ...Q("placeContent", ae),
39376
- ...Q("page-bg", Y, ur),
39377
- ...Q("box-bg", le, dr),
39378
- ...Q("box-borderRadius", ee, sr),
39379
- ...Q("box-shadow", ie, cr),
39380
- ...Q("box-opacity", R),
39381
- ...Q("box-border", X),
39382
- ...Q("box-borderWidth", j, nc),
39383
- ...Q("box-borderStyle", A),
39384
- ...Q("box-borderColor", ne),
39327
+ ...$("p", r2, $e),
39328
+ ...$("px", l, $e),
39329
+ ...$("py", c2, $e),
39330
+ ...$("pt", f, $e),
39331
+ ...$("pb", C, $e),
39332
+ ...$("pl", h, $e),
39333
+ ...$("pr", d, $e),
39334
+ ...$("m", s2, $e),
39335
+ ...$("mx", p, $e),
39336
+ ...$("my", u, $e),
39337
+ ...$("mt", m, $e),
39338
+ ...$("mb", y6, $e),
39339
+ ...$("ml", b, $e),
39340
+ ...$("mr", v, $e),
39341
+ ...$("display", _),
39342
+ ...$("aspectRatio", x6),
39343
+ ...$("w", L, Ct),
39344
+ ...$("h", k6, Ct),
39345
+ ...$("minW", S, Ct),
39346
+ ...$("minH", w, Ct),
39347
+ ...$("maxW", T, Ct),
39348
+ ...$("maxH", M, Ct),
39349
+ ...$("position", N),
39350
+ ...$("top", H, Ct),
39351
+ ...$("right", W, Ct),
39352
+ ...$("bottom", P6, Ct),
39353
+ ...$("left", G, Ct),
39354
+ ...$("inset", E, Ct),
39355
+ ...$("zIndex", J),
39356
+ ...$("overflow", A),
39357
+ ...$("overflowX", I),
39358
+ ...$("overflowY", K),
39359
+ ...$("flexDirection", D),
39360
+ ...$("flexWrap", F, hr),
39361
+ ...$("flex", Q),
39362
+ ...$("flexGrow", de),
39363
+ ...$("flexShrink", O6),
39364
+ ...$("flexBasis", q, Ct),
39365
+ ...$("order", re2),
39366
+ ...$("gap", Z, $e),
39367
+ ...$("columnGap", U, $e),
39368
+ ...$("rowGap", ue, $e),
39369
+ ...$("alignItems", he, (Ee) => ic[Ee] || Ee),
39370
+ ...$("alignContent", z),
39371
+ ...$("alignSelf", ce, (Ee) => Ee === "start" ? "flex-start" : Ee === "end" ? "flex-end" : Ee),
39372
+ ...$("justifyContent", xe, (Ee) => lc[Ee] || Ee),
39373
+ ...$("justifyItems", we),
39374
+ ...$("placeItems", te),
39375
+ ...$("placeContent", ae),
39376
+ ...$("page-bg", Y, ur),
39377
+ ...$("box-bg", le, dr),
39378
+ ...$("box-borderRadius", ee, sr),
39379
+ ...$("box-shadow", ie, cr),
39380
+ ...$("box-opacity", R),
39381
+ ...$("box-border", X),
39382
+ ...$("box-borderWidth", j, nc),
39383
+ ...$("box-borderStyle", V),
39384
+ ...$("box-borderColor", ne),
39385
39385
  // Could map to color vars if needed, currently string
39386
- ...Q("textAlign", se),
39387
- ...Q("fontSize", Ce),
39388
- ...Q("fontWeight", be),
39389
- ...Q("lineHeight", ke),
39390
- ...Q("box-color", Be),
39391
- ...Q("cursor", Ge),
39392
- ...Q("pointerEvents", Je),
39393
- ...Q("userSelect", ft),
39394
- ...Q("transform", ln2),
39395
- ...Q("transition", or)
39386
+ ...$("textAlign", se),
39387
+ ...$("fontSize", Ce),
39388
+ ...$("fontWeight", be),
39389
+ ...$("lineHeight", ke),
39390
+ ...$("box-color", Be),
39391
+ ...$("cursor", Ge),
39392
+ ...$("pointerEvents", Je),
39393
+ ...$("userSelect", ft),
39394
+ ...$("transform", ln2),
39395
+ ...$("transition", or)
39396
39396
  }, mr = {
39397
39397
  ...n,
39398
39398
  ...pr
@@ -40039,23 +40039,23 @@ var Ha = i.forwardRef(
40039
40039
  if (o === "single")
40040
40040
  r2?.(x6);
40041
40041
  else {
40042
- const F = u.includes(x6) ? u.filter((K) => K !== x6) : [...u, x6];
40042
+ const F = u.includes(x6) ? u.filter((Q) => Q !== x6) : [...u, x6];
40043
40043
  r2?.(F);
40044
40044
  }
40045
40045
  }, b = (x6) => u.includes(x6), [v, _] = i.useState(false), [L, k6] = i.useState(false), S = i.useRef(null), w = i.useCallback(() => {
40046
40046
  const x6 = S.current;
40047
40047
  if (!x6) return;
40048
- const D = x6.scrollTop, F = x6.scrollHeight, K = x6.clientHeight;
40049
- _(D > 10), k6(D + K < F - 10);
40048
+ const D = x6.scrollTop, F = x6.scrollHeight, Q = x6.clientHeight;
40049
+ _(D > 10), k6(D + Q < F - 10);
40050
40050
  }, []);
40051
40051
  i.useEffect(() => {
40052
40052
  w();
40053
40053
  }, [m, w]);
40054
- const T = 40, M = typeof l == "number" ? l : parseInt(l) || 400, { virtualItems: N, totalHeight: H, onScroll: z, isVirtual: W } = C1({
40054
+ const T = 40, M = typeof l == "number" ? l : parseInt(l) || 400, { virtualItems: N, totalHeight: H, onScroll: W, isVirtual: P6 } = C1({
40055
40055
  itemCount: m.length,
40056
40056
  itemHeight: T,
40057
40057
  containerHeight: M
40058
- }), [G, E] = i.useState(-1), [J, V] = i.useState(false);
40058
+ }), [G, E] = i.useState(-1), [J, A] = i.useState(false);
40059
40059
  i.useEffect(() => {
40060
40060
  if (m.length === 0) {
40061
40061
  E(-1);
@@ -40071,15 +40071,15 @@ var Ha = i.forwardRef(
40071
40071
  E((x6) => x6 >= m.length ? -1 : x6);
40072
40072
  }, [m, a2, o]), i.useEffect(() => {
40073
40073
  if (G !== -1 && S.current) {
40074
- const x6 = G * T, D = x6 + T, F = S.current, K = F.scrollTop, de = F.clientHeight;
40075
- x6 < K ? F.scrollTop = x6 : D > K + de && (F.scrollTop = D - de);
40074
+ const x6 = G * T, D = x6 + T, F = S.current, Q = F.scrollTop, de = F.clientHeight;
40075
+ x6 < Q ? F.scrollTop = x6 : D > Q + de && (F.scrollTop = D - de);
40076
40076
  }
40077
40077
  }, [G, T]);
40078
40078
  const I = i.useCallback((x6) => {
40079
- w(), W && z(x6);
40080
- }, [w, W, z]), $ = (x6) => {
40079
+ w(), P6 && W(x6);
40080
+ }, [w, P6, W]), K = (x6) => {
40081
40081
  if (m.length === 0) return;
40082
- ["ArrowDown", "ArrowUp", "Home", "End", "Enter", " "].includes(x6.key) && V(true);
40082
+ ["ArrowDown", "ArrowUp", "Home", "End", "Enter", " "].includes(x6.key) && A(true);
40083
40083
  const D = x6.target.tagName === "INPUT";
40084
40084
  if (x6.key === "ArrowDown")
40085
40085
  x6.preventDefault(), E((F) => Math.min(F + 1, m.length - 1));
@@ -40103,8 +40103,8 @@ var Ha = i.forwardRef(
40103
40103
  ref: h,
40104
40104
  className: ["phx-dropdown-list", Te.dropdownListRoot, f].filter(Boolean).join(" "),
40105
40105
  style: C,
40106
- onKeyDown: $,
40107
- onMouseMove: () => V(false),
40106
+ onKeyDown: K,
40107
+ onMouseMove: () => A(false),
40108
40108
  children: [
40109
40109
  p && /* @__PURE__ */ e("div", { className: Te.dropdownListSearchWrapper, children: /* @__PURE__ */ e(
40110
40110
  Fa,
@@ -40131,10 +40131,10 @@ var Ha = i.forwardRef(
40131
40131
  tabIndex: 0,
40132
40132
  "aria-activedescendant": G !== -1 ? `dropdown-item-${m[G]?.value}` : void 0,
40133
40133
  onScroll: I,
40134
- children: m.length === 0 ? /* @__PURE__ */ e("div", { className: Te.dropdownListEmptyState, children: "No results found" }) : W ? /* @__PURE__ */ e("div", { style: { height: H, position: "relative" }, children: N.map(({ index: x6, style: D }) => {
40134
+ children: m.length === 0 ? /* @__PURE__ */ e("div", { className: Te.dropdownListEmptyState, children: "No results found" }) : P6 ? /* @__PURE__ */ e("div", { style: { height: H, position: "relative" }, children: N.map(({ index: x6, style: D }) => {
40135
40135
  const F = m[x6];
40136
40136
  if (!F) return null;
40137
- const K = x6 === G;
40137
+ const Q = x6 === G;
40138
40138
  return /* @__PURE__ */ e("div", { style: D, children: /* @__PURE__ */ e(
40139
40139
  "div",
40140
40140
  {
@@ -40150,7 +40150,7 @@ var Ha = i.forwardRef(
40150
40150
  className: [
40151
40151
  Te.dropdownListItem,
40152
40152
  b(F.value) && Te.dropdownListItemSelected,
40153
- K && J && Te.dropdownListItemFocused,
40153
+ Q && J && Te.dropdownListItemFocused,
40154
40154
  F.disabled && Te.dropdownListItemDisabled
40155
40155
  ].filter(Boolean).join(" "),
40156
40156
  onClick: () => y6(F.value, F.disabled),
@@ -40453,11 +40453,11 @@ var Ta = ({
40453
40453
  o && o(subMonths(a2, 1));
40454
40454
  }, N = () => {
40455
40455
  o && o(addMonths(a2, 1));
40456
- }, H = (O6) => !!(h && isBefore(O6, h) && !isSameDay(O6, h) || d && isAfter(O6, d) && !isSameDay(O6, d)), z = (O6) => {
40456
+ }, H = (O6) => !!(h && isBefore(O6, h) && !isSameDay(O6, h) || d && isAfter(O6, d) && !isSameDay(O6, d)), W = (O6) => {
40457
40457
  H(O6) || (f?.(O6), n === "range" && (!l || l && c2 ? C?.(O6, void 0) : isBefore(O6, l) ? C?.(O6, l) : C?.(l, O6)));
40458
- }, [W, G] = i.useState("day"), E = i.useRef(null), J = i.useRef(null), V = () => {
40459
- G(W === "day" ? "monthYear" : "day");
40460
- }, I = i.useMemo(() => Array.from({ length: 200 }, (O6, q) => 1900 + q), []), $ = [
40458
+ }, [P6, G] = i.useState("day"), E = i.useRef(null), J = i.useRef(null), A = () => {
40459
+ G(P6 === "day" ? "monthYear" : "day");
40460
+ }, I = i.useMemo(() => Array.from({ length: 200 }, (O6, q) => 1900 + q), []), K = [
40461
40461
  "January",
40462
40462
  "February",
40463
40463
  "March",
@@ -40474,16 +40474,16 @@ var Ta = ({
40474
40474
  i.useEffect(() => {
40475
40475
  D(a2);
40476
40476
  }, [a2]);
40477
- const F = i.useRef(null), K = (O6, q) => {
40478
- const re2 = O6.currentTarget, P6 = 48, U = re2.scrollTop, ue = Math.round(U / P6), he = new Date(x6);
40477
+ const F = i.useRef(null), Q = (O6, q) => {
40478
+ const re2 = O6.currentTarget, Z = 48, U = re2.scrollTop, ue = Math.round(U / Z), he = new Date(x6);
40479
40479
  if (q === "month") {
40480
- const Z = Math.max(0, Math.min(11, ue));
40481
- if (Z !== x6.getMonth())
40482
- he.setMonth(Z), D(he);
40480
+ const z = Math.max(0, Math.min(11, ue));
40481
+ if (z !== x6.getMonth())
40482
+ he.setMonth(z), D(he);
40483
40483
  else
40484
40484
  return;
40485
40485
  } else {
40486
- const Z = Math.max(0, Math.min(I.length - 1, ue)), ce = I[Z];
40486
+ const z = Math.max(0, Math.min(I.length - 1, ue)), ce = I[z];
40487
40487
  if (ce !== void 0 && ce !== x6.getFullYear())
40488
40488
  he.setFullYear(ce), D(he);
40489
40489
  else
@@ -40499,7 +40499,7 @@ var Ta = ({
40499
40499
  }
40500
40500
  };
40501
40501
  return i.useEffect(() => {
40502
- W === "monthYear" && requestAnimationFrame(() => {
40502
+ P6 === "monthYear" && requestAnimationFrame(() => {
40503
40503
  if (E.current) {
40504
40504
  const O6 = E.current.children[a2.getMonth()];
40505
40505
  O6 && O6.scrollIntoView({ block: "center", behavior: "instant" });
@@ -40509,7 +40509,7 @@ var Ta = ({
40509
40509
  O6 && O6.scrollIntoView({ block: "center", behavior: "instant" });
40510
40510
  }
40511
40511
  });
40512
- }, [W, a2]), W === "monthYear" ? /* @__PURE__ */ g("div", { className: ["phx-calendar", Me.calendarRoot, !u && Me.calendarNoShadow, t].filter(Boolean).join(" "), children: [
40512
+ }, [P6, a2]), P6 === "monthYear" ? /* @__PURE__ */ g("div", { className: ["phx-calendar", Me.calendarRoot, !u && Me.calendarNoShadow, t].filter(Boolean).join(" "), children: [
40513
40513
  /* @__PURE__ */ g("div", { className: Me.calendarHeader, children: [
40514
40514
  /* @__PURE__ */ e(
40515
40515
  ge,
@@ -40528,7 +40528,7 @@ var Ta = ({
40528
40528
  variant: "tertiary",
40529
40529
  size: "medium",
40530
40530
  trailingIcon: /* @__PURE__ */ e(ChevronDownSmallFilled, { size: 20, style: { transform: "rotate(180deg)" } }),
40531
- onClick: V,
40531
+ onClick: A,
40532
40532
  children: format(x6, "MMMM yyyy")
40533
40533
  }
40534
40534
  ) }),
@@ -40551,8 +40551,8 @@ var Ta = ({
40551
40551
  {
40552
40552
  className: `${Me.calendarPickerColumn} scrollbarHidden`,
40553
40553
  ref: E,
40554
- onScroll: (O6) => K(O6, "month"),
40555
- children: $.map((O6, q) => /* @__PURE__ */ e(
40554
+ onScroll: (O6) => Q(O6, "month"),
40555
+ children: K.map((O6, q) => /* @__PURE__ */ e(
40556
40556
  "button",
40557
40557
  {
40558
40558
  type: "button",
@@ -40573,7 +40573,7 @@ var Ta = ({
40573
40573
  {
40574
40574
  className: `${Me.calendarPickerColumn} scrollbarHidden`,
40575
40575
  ref: J,
40576
- onScroll: (O6) => K(O6, "year"),
40576
+ onScroll: (O6) => Q(O6, "year"),
40577
40577
  children: I.map((O6, q) => /* @__PURE__ */ e(
40578
40578
  "button",
40579
40579
  {
@@ -40611,7 +40611,7 @@ var Ta = ({
40611
40611
  variant: "tertiary",
40612
40612
  size: "medium",
40613
40613
  trailingIcon: /* @__PURE__ */ e(ChevronDownSmallFilled, { size: 20 }),
40614
- onClick: V,
40614
+ onClick: A,
40615
40615
  children: format(a2, "MMMM yyyy")
40616
40616
  }
40617
40617
  ) }),
@@ -40630,7 +40630,7 @@ var Ta = ({
40630
40630
  /* @__PURE__ */ g("div", { className: Me.calendarGrid, children: [
40631
40631
  !b && T.map((O6) => /* @__PURE__ */ e("div", { className: Me.calendarDayName, children: O6 }, O6)),
40632
40632
  w.map((O6) => {
40633
- const q = isSameMonth(O6, v), re2 = H(O6), P6 = r2 ? isSameDay(O6, r2) : false, U = isToday(O6), ue = l ? isSameDay(O6, l) : false, he = c2 ? isSameDay(O6, c2) : false, Z = l && c2 ? isWithinInterval(O6, { start: l, end: c2 }) && !ue && !he : false, ce = Z && isSameDay(O6, _) && c2 && isAfter(c2, O6), xe = Z && isSameDay(O6, v) && l && isBefore(l, O6);
40633
+ const q = isSameMonth(O6, v), re2 = H(O6), Z = r2 ? isSameDay(O6, r2) : false, U = isToday(O6), ue = l ? isSameDay(O6, l) : false, he = c2 ? isSameDay(O6, c2) : false, z = l && c2 ? isWithinInterval(O6, { start: l, end: c2 }) && !ue && !he : false, ce = z && isSameDay(O6, _) && c2 && isAfter(c2, O6), xe = z && isSameDay(O6, v) && l && isBefore(l, O6);
40634
40634
  return q ? /* @__PURE__ */ g(
40635
40635
  "div",
40636
40636
  {
@@ -40640,13 +40640,13 @@ var Ta = ({
40640
40640
  re2 && Me.calendarDisabled,
40641
40641
  ue && Me.calendarRangeStart,
40642
40642
  he && Me.calendarRangeEnd,
40643
- Z && Me.calendarInRange,
40643
+ z && Me.calendarInRange,
40644
40644
  xe && Me.calendarFadeStart,
40645
40645
  ce && Me.calendarFadeEnd
40646
40646
  ].filter(Boolean).join(" "),
40647
- onClick: () => z(O6),
40647
+ onClick: () => W(O6),
40648
40648
  children: [
40649
- (Z || ue || he) && /* @__PURE__ */ e("div", { className: Me.calendarRangeBackground }),
40649
+ (z || ue || he) && /* @__PURE__ */ e("div", { className: Me.calendarRangeBackground }),
40650
40650
  /* @__PURE__ */ e(
40651
40651
  "button",
40652
40652
  {
@@ -40654,7 +40654,7 @@ var Ta = ({
40654
40654
  className: [
40655
40655
  Me.calendarDayButton,
40656
40656
  re2 && Me.calendarDisabled,
40657
- P6 && Me.calendarSelected,
40657
+ Z && Me.calendarSelected,
40658
40658
  U && Me.calendarToday
40659
40659
  ].filter(Boolean).join(" "),
40660
40660
  tabIndex: re2 ? -1 : 0,
@@ -41247,8 +41247,8 @@ var _8 = i.forwardRef(
41247
41247
  if (!r2) return;
41248
41248
  const T = _.current;
41249
41249
  if (!T) return;
41250
- const N = ((W) => {
41251
- let G = W.parentElement;
41250
+ const N = ((P6) => {
41251
+ let G = P6.parentElement;
41252
41252
  for (; G; ) {
41253
41253
  const E = window.getComputedStyle(G);
41254
41254
  if (/(auto|scroll)/.test(E.overflow + E.overflowY))
@@ -41258,13 +41258,13 @@ var _8 = i.forwardRef(
41258
41258
  return null;
41259
41259
  })(T), H = () => {
41260
41260
  if (!T) return;
41261
- const W = T.getBoundingClientRect(), G = N ? N.getBoundingClientRect() : { top: 0 }, E = W.top <= G.top + 1;
41261
+ const P6 = T.getBoundingClientRect(), G = N ? N.getBoundingClientRect() : { top: 0 }, E = P6.top <= G.top + 1;
41262
41262
  y6(E);
41263
41263
  };
41264
41264
  H();
41265
- const z = N || window;
41266
- return z.addEventListener("scroll", H, { passive: true }), window.addEventListener("resize", H), () => {
41267
- z.removeEventListener("scroll", H), window.removeEventListener("resize", H);
41265
+ const W = N || window;
41266
+ return W.addEventListener("scroll", H, { passive: true }), window.addEventListener("resize", H), () => {
41267
+ W.removeEventListener("scroll", H), window.removeEventListener("resize", H);
41268
41268
  };
41269
41269
  }, [r2]);
41270
41270
  const S = i.useCallback((T) => {
@@ -41563,7 +41563,7 @@ var U8 = i.forwardRef(
41563
41563
  ...h
41564
41564
  }, d) => {
41565
41565
  const u = {
41566
- ...Q("maxW", o ? "full" : a2 || t, (y6) => typeof y6 == "string" && jn[y6] ? jn[y6] : typeof y6 == "number" ? `${y6}px` : y6)
41566
+ ...$("maxW", o ? "full" : a2 || t, (y6) => typeof y6 == "string" && jn[y6] ? jn[y6] : typeof y6 == "number" ? `${y6}px` : y6)
41567
41567
  }, m = Zt(
41568
41568
  "phx-container",
41569
41569
  q8.containerRoot,
@@ -41827,35 +41827,35 @@ var ma = i.forwardRef(
41827
41827
  } = t, [k6, S] = i.useState(false), [w, T] = i.useState(false), M = u === "multi" ? t.defaultValue || [] : t.defaultValue || "", [N, H] = ia({
41828
41828
  value: t.value,
41829
41829
  defaultValue: M,
41830
- onChange: (Z) => {
41831
- t.onChange?.(Z);
41830
+ onChange: (z) => {
41831
+ t.onChange?.(z);
41832
41832
  }
41833
- }), z = i.useRef(null), W = i.useRef(null), G = i.useRef(null), { style: E } = rn(W, G, k6, {
41833
+ }), W = i.useRef(null), P6 = i.useRef(null), G = i.useRef(null), { style: E } = rn(P6, G, k6, {
41834
41834
  margin: 32,
41835
41835
  strategy: m ? "fixed" : "absolute",
41836
41836
  matchTriggerWidth: b,
41837
41837
  onClose: () => S(false)
41838
41838
  }), J = N ?? (u === "multi" ? [] : "");
41839
- let V;
41840
- u === "multi" ? V = Array.isArray(J) && J.length > 0 : V = J !== "" && J !== void 0 && (Array.isArray(J) ? J.length > 0 : true);
41841
- const I = u === "multi" ? t.defaultValue || [] : t.defaultValue || "", $ = u === "multi" ? JSON.stringify(J) !== JSON.stringify(I) : J !== I, x6 = d && V && $ && w && !h, F = (() => {
41839
+ let A;
41840
+ u === "multi" ? A = Array.isArray(J) && J.length > 0 : A = J !== "" && J !== void 0 && (Array.isArray(J) ? J.length > 0 : true);
41841
+ const I = u === "multi" ? t.defaultValue || [] : t.defaultValue || "", K = u === "multi" ? JSON.stringify(J) !== JSON.stringify(I) : J !== I, x6 = d && A && K && w && !h, F = (() => {
41842
41842
  if (u === "multi") {
41843
- const Z = J;
41844
- return Z.length === 0 ? "" : Z.length === 1 ? C.find((xe) => xe.value === Z[0])?.label || "" : `${Z.length} selected`;
41843
+ const z = J;
41844
+ return z.length === 0 ? "" : z.length === 1 ? C.find((xe) => xe.value === z[0])?.label || "" : `${z.length} selected`;
41845
41845
  } else
41846
41846
  return C.find((ce) => ce.value === J)?.label || "";
41847
- })(), K = u === "single" && C.find((Z) => Z.value === J)?.icon || c2, de = o && n === "inside", O6 = o && n === "outside", q = n === "outside", re2 = () => {
41847
+ })(), Q = u === "single" && C.find((z) => z.value === J)?.icon || c2, de = o && n === "inside", O6 = o && n === "outside", q = n === "outside", re2 = () => {
41848
41848
  h || S(!k6);
41849
- }, P6 = (Z) => {
41849
+ }, Z = (z) => {
41850
41850
  if (u === "multi") {
41851
- const ce = Array.isArray(Z) ? Z : [Z];
41851
+ const ce = Array.isArray(z) ? z : [z];
41852
41852
  H(ce);
41853
41853
  } else {
41854
- const ce = Array.isArray(Z) ? Z[0] || "" : Z;
41854
+ const ce = Array.isArray(z) ? z[0] || "" : z;
41855
41855
  H(ce), S(false);
41856
41856
  }
41857
- }, U = (Z) => {
41858
- if (Z && Z.stopPropagation(), u === "multi") {
41857
+ }, U = (z) => {
41858
+ if (z && z.stopPropagation(), u === "multi") {
41859
41859
  const ce = t.defaultValue || [];
41860
41860
  H(ce);
41861
41861
  } else {
@@ -41864,23 +41864,23 @@ var ma = i.forwardRef(
41864
41864
  }
41865
41865
  };
41866
41866
  In(
41867
- m ? G : z,
41867
+ m ? G : W,
41868
41868
  () => S(false),
41869
41869
  k6,
41870
- [W]
41870
+ [P6]
41871
41871
  ), i.useEffect(() => {
41872
- const Z = (ce) => {
41872
+ const z = (ce) => {
41873
41873
  ce.key === "Escape" && S(false);
41874
41874
  };
41875
- return k6 && document.addEventListener("keydown", Z), () => {
41876
- document.removeEventListener("keydown", Z);
41875
+ return k6 && document.addEventListener("keydown", z), () => {
41876
+ document.removeEventListener("keydown", z);
41877
41877
  };
41878
41878
  }, [k6]);
41879
- const ue = C.map((Z) => ({
41880
- value: Z.value,
41881
- label: Z.label,
41882
- icon: Z.icon,
41883
- disabled: Z.disabled
41879
+ const ue = C.map((z) => ({
41880
+ value: z.value,
41881
+ label: z.label,
41882
+ icon: z.icon,
41883
+ disabled: z.disabled
41884
41884
  })), he = /* @__PURE__ */ e(
41885
41885
  "div",
41886
41886
  {
@@ -41889,7 +41889,7 @@ var ma = i.forwardRef(
41889
41889
  style: {
41890
41890
  ...E,
41891
41891
  right: E.left ? "auto" : void 0,
41892
- minWidth: m ? W.current?.offsetWidth : "100%",
41892
+ minWidth: m ? P6.current?.offsetWidth : "100%",
41893
41893
  width: b ? m ? void 0 : "100%" : "auto"
41894
41894
  },
41895
41895
  children: /* @__PURE__ */ e(
@@ -41898,12 +41898,12 @@ var ma = i.forwardRef(
41898
41898
  items: ue,
41899
41899
  value: J,
41900
41900
  mode: u,
41901
- onChange: P6,
41901
+ onChange: Z,
41902
41902
  maxHeight: 300,
41903
- ref: (Z) => {
41904
- k6 && Z && setTimeout(() => {
41905
- const ce = Z.querySelector('input[type="search"]');
41906
- ce ? ce.focus() : Z.querySelector('[role="listbox"]')?.focus();
41903
+ ref: (z) => {
41904
+ k6 && z && setTimeout(() => {
41905
+ const ce = z.querySelector('input[type="search"]');
41906
+ ce ? ce.focus() : z.querySelector('[role="listbox"]')?.focus();
41907
41907
  }, 0);
41908
41908
  }
41909
41909
  }
@@ -41913,8 +41913,8 @@ var ma = i.forwardRef(
41913
41913
  return /* @__PURE__ */ g(
41914
41914
  "div",
41915
41915
  {
41916
- ref: (Z) => {
41917
- z.current = Z, typeof a2 == "function" ? a2(Z) : a2 && (a2.current = Z);
41916
+ ref: (z) => {
41917
+ W.current = z, typeof a2 == "function" ? a2(z) : a2 && (a2.current = z);
41918
41918
  },
41919
41919
  className: Xt(
41920
41920
  "phx-dropdown",
@@ -41931,12 +41931,12 @@ var ma = i.forwardRef(
41931
41931
  Ve.dropdownLabelOutside,
41932
41932
  y6 === "medium" && Ve.dropdownLabelOutsideMedium
41933
41933
  ), children: o }),
41934
- /* @__PURE__ */ g("div", { className: Ve.dropdownTriggerWrapper, ref: W, children: [
41934
+ /* @__PURE__ */ g("div", { className: Ve.dropdownTriggerWrapper, ref: P6, children: [
41935
41935
  L ? L({
41936
41936
  onClick: re2,
41937
41937
  value: J,
41938
41938
  isOpen: k6,
41939
- ref: W
41939
+ ref: P6
41940
41940
  }) : /* @__PURE__ */ g(
41941
41941
  "div",
41942
41942
  {
@@ -41951,18 +41951,18 @@ var ma = i.forwardRef(
41951
41951
  ),
41952
41952
  onClick: re2,
41953
41953
  children: [
41954
- q && K && /* @__PURE__ */ e("span", { className: Ve.dropdownLeadingIcon, children: K }),
41954
+ q && Q && /* @__PURE__ */ e("span", { className: Ve.dropdownLeadingIcon, children: Q }),
41955
41955
  /* @__PURE__ */ g("div", { className: Ve.dropdownTriggerContent, children: [
41956
41956
  de && /* @__PURE__ */ e("span", { className: Xt(
41957
41957
  Ve.dropdownInlineLabel,
41958
- V && Ve.dropdownInlineLabelShrunk
41958
+ A && Ve.dropdownInlineLabelShrunk
41959
41959
  ), children: o }),
41960
41960
  /* @__PURE__ */ e("span", { className: Xt(
41961
41961
  Ve.dropdownValueText,
41962
41962
  de && Ve.dropdownValueTextWithInlineLabel,
41963
- !V && Ve.dropdownValueTextPlaceholder,
41964
- de && V && Ve.dropdownValueTextVisible
41965
- ), children: V ? F : de ? "" : f })
41963
+ !A && Ve.dropdownValueTextPlaceholder,
41964
+ de && A && Ve.dropdownValueTextVisible
41965
+ ), children: A ? F : de ? "" : f })
41966
41966
  ] }),
41967
41967
  /* @__PURE__ */ g("div", { className: Xt(Ve.dropdownTrailing, !d && Ve.dropdownTrailingCompact), children: [
41968
41968
  x6 && /* @__PURE__ */ e(
@@ -42160,7 +42160,7 @@ function Do({
42160
42160
  flush: T = false,
42161
42161
  rowActions: M
42162
42162
  }) {
42163
- const N = a2.map((R) => On(R, o)), H = N.length > 0 && N.every((R) => r2.includes(R)), z = N.some((R) => r2.includes(R)) && !H, W = () => {
42163
+ const N = a2.map((R) => On(R, o)), H = N.length > 0 && N.every((R) => r2.includes(R)), W = N.some((R) => r2.includes(R)) && !H, P6 = () => {
42164
42164
  l && l(H ? [] : N);
42165
42165
  }, G = (R) => {
42166
42166
  l && (r2.includes(R) ? l(r2.filter((X) => X !== R)) : l([...r2, R]));
@@ -42169,8 +42169,8 @@ function Do({
42169
42169
  let X = "asc";
42170
42170
  c2 === R && (f === "asc" ? X = "desc" : f === "desc" && (X = null)), C(R, X);
42171
42171
  }, J = t.filter((R) => R.sticky);
42172
- let V = n ? 48 : 0;
42173
- const I = n || J.length > 0, $ = b ? "small" : _, x6 = oe[`dataTable${$.charAt(0).toUpperCase() + $.slice(1)}`], [D, F] = i.useState({}), K = i.useRef(null), [de, O6] = i.useState(null), q = i.useRef(null), re2 = i.useRef(null), [P6, U] = i.useState(false), [ue, he] = i.useState(false), [Z, ce] = i.useState(null), [xe, we] = i.useState(false), te = i.useMemo(() => {
42172
+ let A = n ? 48 : 0;
42173
+ const I = n || J.length > 0, K = b ? "small" : _, x6 = oe[`dataTable${K.charAt(0).toUpperCase() + K.slice(1)}`], [D, F] = i.useState({}), Q = i.useRef(null), [de, O6] = i.useState(null), q = i.useRef(null), re2 = i.useRef(null), [Z, U] = i.useState(false), [ue, he] = i.useState(false), [z, ce] = i.useState(null), [xe, we] = i.useState(false), te = i.useMemo(() => {
42174
42174
  if (M) return null;
42175
42175
  const R = t[t.length - 1];
42176
42176
  return !R || R.cellVariant !== "actions" ? null : R;
@@ -42184,8 +42184,8 @@ function Do({
42184
42184
  }, [te, M]), le = !!ae, Y = !!M || !!te && ue, ee = i.useCallback(() => {
42185
42185
  const R = re2.current?.contentElement || q.current;
42186
42186
  if (R) {
42187
- const { scrollLeft: X, scrollWidth: j, clientWidth: A } = R;
42188
- if (U(X > 0), he(X < j - A - 2), X <= 0) {
42187
+ const { scrollLeft: X, scrollWidth: j, clientWidth: V } = R;
42188
+ if (U(X > 0), he(X < j - V - 2), X <= 0) {
42189
42189
  ce(null), we(false);
42190
42190
  return;
42191
42191
  }
@@ -42215,7 +42215,7 @@ function Do({
42215
42215
  R.preventDefault(), R.stopPropagation();
42216
42216
  const j = R.target.closest("th");
42217
42217
  if (!j) return;
42218
- const A = j.getBoundingClientRect().width, ne = j.parentElement;
42218
+ const V = j.getBoundingClientRect().width, ne = j.parentElement;
42219
42219
  if (ne) {
42220
42220
  const be = Array.from(ne.children), ke = {};
42221
42221
  t.forEach((Be, Ge) => {
@@ -42226,16 +42226,16 @@ function Do({
42226
42226
  ...ke
42227
42227
  }));
42228
42228
  }
42229
- K.current = { startX: R.clientX, startWidth: A, colKey: X }, O6(X);
42229
+ Q.current = { startX: R.clientX, startWidth: V, colKey: X }, O6(X);
42230
42230
  const se = (be) => {
42231
- if (!K.current) return;
42232
- const { startX: ke, startWidth: Be, colKey: Ge } = K.current, Je = be.clientX - ke, ft = Math.max(50, Be + Je);
42231
+ if (!Q.current) return;
42232
+ const { startX: ke, startWidth: Be, colKey: Ge } = Q.current, Je = be.clientX - ke, ft = Math.max(50, Be + Je);
42233
42233
  F((ln2) => ({
42234
42234
  ...ln2,
42235
42235
  [Ge]: ft
42236
42236
  }));
42237
42237
  }, Ce = () => {
42238
- K.current = null, O6(null), document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", Ce), document.body.style.cursor = "";
42238
+ Q.current = null, O6(null), document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", Ce), document.body.style.cursor = "";
42239
42239
  };
42240
42240
  document.addEventListener("mousemove", se), document.addEventListener("mouseup", Ce), document.body.style.cursor = "col-resize";
42241
42241
  }, [t, n]);
@@ -42256,7 +42256,7 @@ function Do({
42256
42256
  className: [
42257
42257
  oe.dataTableScrollGradient,
42258
42258
  oe.dataTableScrollGradientLeft,
42259
- P6 && !I && oe.dataTableScrollGradientVisible
42259
+ Z && !I && oe.dataTableScrollGradientVisible
42260
42260
  ].filter(Boolean).join(" ")
42261
42261
  }
42262
42262
  ),
@@ -42276,7 +42276,7 @@ function Do({
42276
42276
  ref: re2,
42277
42277
  className: [
42278
42278
  oe.dataTableContainer,
42279
- P6 && oe.dataTableScrolled
42279
+ Z && oe.dataTableScrolled
42280
42280
  ].filter(Boolean).join(" "),
42281
42281
  maxHeight: p,
42282
42282
  onScroll: ee,
@@ -42330,32 +42330,32 @@ function Do({
42330
42330
  ra,
42331
42331
  {
42332
42332
  checked: H,
42333
- indeterminate: z,
42334
- onChange: W,
42333
+ indeterminate: W,
42334
+ onChange: P6,
42335
42335
  "aria-label": "Select all rows"
42336
42336
  }
42337
42337
  )
42338
42338
  }
42339
42339
  ),
42340
42340
  t.map((R, X) => {
42341
- const j = c2 === R.key, A = R.sticky;
42341
+ const j = c2 === R.key, V = R.sticky;
42342
42342
  let ne;
42343
- return A && (ne = V, V += parseInt(R.width || "150", 10)), /* @__PURE__ */ g(
42343
+ return V && (ne = A, A += parseInt(R.width || "150", 10)), /* @__PURE__ */ g(
42344
42344
  "th",
42345
42345
  {
42346
42346
  className: [
42347
42347
  "phx-data-table-head-cell",
42348
42348
  oe.dataTableHeadCell,
42349
42349
  R.sortable && oe.dataTableThSortable,
42350
- A && oe.dataTableThSticky,
42351
- A && X === Z && oe.dataTableThStickyLast,
42350
+ V && oe.dataTableThSticky,
42351
+ V && X === z && oe.dataTableThStickyLast,
42352
42352
  R.align && oe[`dataTableThAlign${R.align.charAt(0).toUpperCase() + R.align.slice(1)}`]
42353
42353
  ].filter(Boolean).join(" "),
42354
42354
  style: {
42355
42355
  width: D[R.key] ?? R.width,
42356
42356
  // Enforce minWidth from state if resizing/resized to prevent shrinking
42357
- minWidth: D[R.key] ?? R.minWidth ?? (A ? R.width : void 0),
42358
- ...A && { left: ne }
42357
+ minWidth: D[R.key] ?? R.minWidth ?? (V ? R.width : void 0),
42358
+ ...V && { left: ne }
42359
42359
  },
42360
42360
  onClick: R.sortable ? () => E(R.key) : void 0,
42361
42361
  "aria-sort": j ? f === "asc" ? "ascending" : "descending" : void 0,
@@ -42403,7 +42403,7 @@ function Do({
42403
42403
  le && /* @__PURE__ */ e("th", { style: { padding: 0, width: 0, border: "none" } })
42404
42404
  ] }) }),
42405
42405
  /* @__PURE__ */ e("tbody", { className: ["phx-data-table-body", oe.dataTableBody].filter(Boolean).join(" "), children: a2.map((R, X) => {
42406
- const j = On(R, o), A = r2.includes(j);
42406
+ const j = On(R, o), V = r2.includes(j);
42407
42407
  let ne = n ? 48 : 0;
42408
42408
  return /* @__PURE__ */ g(
42409
42409
  "tr",
@@ -42412,7 +42412,7 @@ function Do({
42412
42412
  "phx-data-table-row",
42413
42413
  oe.dataTableRow,
42414
42414
  m && oe.dataTableRowHoverable,
42415
- A && oe.dataTableRowSelected,
42415
+ V && oe.dataTableRowSelected,
42416
42416
  w && oe.dataTableRowClickable,
42417
42417
  le && oe.dataTableRowWithActions,
42418
42418
  Y && oe.dataTableRowWithActionsActive
@@ -42433,7 +42433,7 @@ function Do({
42433
42433
  children: /* @__PURE__ */ e(
42434
42434
  ra,
42435
42435
  {
42436
- checked: A,
42436
+ checked: V,
42437
42437
  onChange: () => G(j),
42438
42438
  "aria-label": `Select row ${j}`
42439
42439
  }
@@ -42450,7 +42450,7 @@ function Do({
42450
42450
  "phx-data-table-body-cell",
42451
42451
  oe.dataTableBodyCell,
42452
42452
  ke && oe.dataTableTdSticky,
42453
- ke && Ce === Z && oe.dataTableTdStickyLast,
42453
+ ke && Ce === z && oe.dataTableTdStickyLast,
42454
42454
  se.align && oe[`dataTableTdAlign${se.align.charAt(0).toUpperCase() + se.align.slice(1)}`],
42455
42455
  se.cellVariant === "avatar" && oe.dataTableTdWithAvatar,
42456
42456
  se.cellVariant === "actions" && oe.dataTableTdWithActions,
@@ -42584,45 +42584,45 @@ var vu = i.forwardRef(
42584
42584
  value: c2,
42585
42585
  defaultValue: f,
42586
42586
  onChange: C
42587
- }), z = typeof m == "string" ? m : "dd/MM/yyyy", [W, G] = i.useState(() => c2 ? format(c2, z) : f ? format(f, z) : ""), E = i.useMemo(() => {
42588
- const Y = z.match(/[A-Za-z]+/g) ?? [], ee = z.split(/[A-Za-z]+/).slice(1, -1), ie = Y.length > 0 && Y.every((A) => {
42589
- const ne = A[0]?.toLowerCase();
42590
- return !(!ne || !["d", "m", "y"].includes(ne) || !A.split("").every((se) => se.toLowerCase() === ne) || (ne === "d" || ne === "m") && A.length > 2 || ne === "y" && A.length > 4);
42591
- }), R = Y.map((A) => A.length), X = R.reduce((A, ne) => A + ne, 0), j = ie && ee.length > 0;
42587
+ }), W = typeof m == "string" ? m : "dd/MM/yyyy", [P6, G] = i.useState(() => c2 ? format(c2, W) : f ? format(f, W) : ""), E = i.useMemo(() => {
42588
+ const Y = W.match(/[A-Za-z]+/g) ?? [], ee = W.split(/[A-Za-z]+/).slice(1, -1), ie = Y.length > 0 && Y.every((V) => {
42589
+ const ne = V[0]?.toLowerCase();
42590
+ return !(!ne || !["d", "m", "y"].includes(ne) || !V.split("").every((se) => se.toLowerCase() === ne) || (ne === "d" || ne === "m") && V.length > 2 || ne === "y" && V.length > 4);
42591
+ }), R = Y.map((V) => V.length), X = R.reduce((V, ne) => V + ne, 0), j = ie && ee.length > 0;
42592
42592
  return {
42593
42593
  groupLengths: R,
42594
42594
  separators: ee,
42595
42595
  totalDigits: X,
42596
42596
  canAutoFormat: j
42597
42597
  };
42598
- }, [z]), J = i.useRef(null), V = i.useRef(null), I = i.useRef(null);
42598
+ }, [W]), J = i.useRef(null), A = i.useRef(null), I = i.useRef(null);
42599
42599
  i.useRef(null);
42600
- const { style: $ } = rn(V, I, L, {
42600
+ const { style: K } = rn(A, I, L, {
42601
42601
  minHeight: 400,
42602
42602
  margin: 32,
42603
42603
  strategy: y6 ? "fixed" : "absolute",
42604
42604
  onClose: () => k6(false)
42605
- }), x6 = N, D = x6 != null, F = W.trim().length > 0, [K, de] = i.useState(
42605
+ }), x6 = N, D = x6 != null, F = P6.trim().length > 0, [Q, de] = i.useState(
42606
42606
  x6 || /* @__PURE__ */ new Date()
42607
42607
  );
42608
42608
  i.useEffect(() => {
42609
42609
  L && x6 && de(x6);
42610
42610
  }, [L, x6]), i.useEffect(() => {
42611
- T || G(D ? format(x6, z) : "");
42612
- }, [x6, z, D, T]);
42611
+ T || G(D ? format(x6, W) : "");
42612
+ }, [x6, W, D, T]);
42613
42613
  const O6 = () => {
42614
42614
  h || k6(!L);
42615
42615
  }, q = (Y) => {
42616
- H(Y), G(format(Y, z)), k6(false);
42616
+ H(Y), G(format(Y, W)), k6(false);
42617
42617
  }, re2 = (Y) => {
42618
42618
  Y.preventDefault(), Y.stopPropagation(), H(void 0), G("");
42619
- }, P6 = i.useCallback((Y) => !(p && isBefore(Y, p) && !isSameDay(Y, p) || u && isAfter(Y, u) && !isSameDay(Y, u)), [p, u]), U = i.useCallback((Y) => {
42619
+ }, Z = i.useCallback((Y) => !(p && isBefore(Y, p) && !isSameDay(Y, p) || u && isAfter(Y, u) && !isSameDay(Y, u)), [p, u]), U = i.useCallback((Y) => {
42620
42620
  const ee = Y.trim();
42621
- if (!ee || !isMatch(ee, z)) return;
42622
- const ie = parse(ee, z, /* @__PURE__ */ new Date());
42623
- if (isValid(ie) && P6(ie))
42621
+ if (!ee || !isMatch(ee, W)) return;
42622
+ const ie = parse(ee, W, /* @__PURE__ */ new Date());
42623
+ if (isValid(ie) && Z(ie))
42624
42624
  return ie;
42625
- }, [z, P6]), ue = i.useCallback((Y) => {
42625
+ }, [W, Z]), ue = i.useCallback((Y) => {
42626
42626
  if (!E.canAutoFormat) return Y;
42627
42627
  const ee = Y.replace(/\D/g, "").slice(0, E.totalDigits);
42628
42628
  if (!ee) return "";
@@ -42630,9 +42630,9 @@ var vu = i.forwardRef(
42630
42630
  for (let X = 0; X < E.groupLengths.length; X += 1) {
42631
42631
  const j = E.groupLengths[X];
42632
42632
  if (j === void 0) break;
42633
- const A = ee.slice(R, R + j);
42634
- if (!A) break;
42635
- if (ie += A, R += A.length, A.length === j && X < E.separators.length) {
42633
+ const V = ee.slice(R, R + j);
42634
+ if (!V) break;
42635
+ if (ie += V, R += V.length, V.length === j && X < E.separators.length) {
42636
42636
  const ne = E.separators[X];
42637
42637
  ne && (ie += ne);
42638
42638
  }
@@ -42643,46 +42643,46 @@ var vu = i.forwardRef(
42643
42643
  const ee = Y.target, ie = ee.selectionStart ?? 0, R = ee.value, X = ue(R);
42644
42644
  G(X);
42645
42645
  const j = R.slice(0, ie).replace(/\D/g, "").length;
42646
- let A = 0, ne = 0;
42646
+ let V = 0, ne = 0;
42647
42647
  for (let Ce = 0; Ce < X.length && ne !== j; Ce++)
42648
- /\d/.test(X[Ce]) && ne++, A = Ce + 1;
42649
- for (; A < X.length && /\D/.test(X[A]); )
42650
- A++;
42648
+ /\d/.test(X[Ce]) && ne++, V = Ce + 1;
42649
+ for (; V < X.length && /\D/.test(X[V]); )
42650
+ V++;
42651
42651
  if (requestAnimationFrame(() => {
42652
- ee.setSelectionRange(A, A);
42652
+ ee.setSelectionRange(V, V);
42653
42653
  }), !X.trim()) {
42654
42654
  H(void 0);
42655
42655
  return;
42656
42656
  }
42657
42657
  const se = U(X);
42658
42658
  se && (H(se), de(se));
42659
- }, Z = () => {
42659
+ }, z = () => {
42660
42660
  h || (M(true), k6(true));
42661
42661
  }, ce = () => {
42662
- if (M(false), !W.trim()) {
42662
+ if (M(false), !P6.trim()) {
42663
42663
  H(void 0), G("");
42664
42664
  return;
42665
42665
  }
42666
- const Y = U(W);
42666
+ const Y = U(P6);
42667
42667
  if (Y) {
42668
- const ee = format(Y, z);
42669
- ee !== W && G(ee), H(Y);
42668
+ const ee = format(Y, W);
42669
+ ee !== P6 && G(ee), H(Y);
42670
42670
  return;
42671
42671
  }
42672
- G(D ? format(x6, z) : "");
42672
+ G(D ? format(x6, W) : "");
42673
42673
  }, xe = (Y) => {
42674
42674
  if (Y.key === "Enter") {
42675
- const X = U(W);
42676
- X && (H(X), G(format(X, z)), k6(false));
42675
+ const X = U(P6);
42676
+ X && (H(X), G(format(X, W)), k6(false));
42677
42677
  return;
42678
42678
  }
42679
42679
  const ee = Y.currentTarget, ie = ee.selectionStart ?? 0, R = ee.selectionEnd ?? 0;
42680
42680
  if (ie === R) {
42681
42681
  if (Y.key === "Backspace" && ie > 0) {
42682
- const X = W[ie - 1];
42682
+ const X = P6[ie - 1];
42683
42683
  if (X !== void 0 && /\D/.test(X)) {
42684
42684
  Y.preventDefault();
42685
- const j = W.slice(0, ie - 1), A = W.slice(ie), se = j.replace(/\D+$/, "").slice(0, -1), Ce = se + A, be = ue(Ce);
42685
+ const j = P6.slice(0, ie - 1), V = P6.slice(ie), se = j.replace(/\D+$/, "").slice(0, -1), Ce = se + V, be = ue(Ce);
42686
42686
  G(be);
42687
42687
  const ke = se.replace(/\D/g, "").length;
42688
42688
  let Be = 0, Ge = 0;
@@ -42697,11 +42697,11 @@ var vu = i.forwardRef(
42697
42697
  Je && (H(Je), de(Je));
42698
42698
  }
42699
42699
  }
42700
- } else if (Y.key === "Delete" && ie < W.length) {
42701
- const X = W[ie];
42700
+ } else if (Y.key === "Delete" && ie < P6.length) {
42701
+ const X = P6[ie];
42702
42702
  if (X !== void 0 && /\D/.test(X)) {
42703
42703
  Y.preventDefault();
42704
- const j = W.slice(0, ie), ne = W.slice(ie).replace(/^\D+/, "").slice(1), se = j + ne, Ce = ue(se);
42704
+ const j = P6.slice(0, ie), ne = P6.slice(ie).replace(/^\D+/, "").slice(1), se = j + ne, Ce = ue(se);
42705
42705
  G(Ce);
42706
42706
  const be = j.replace(/\D/g, "").length;
42707
42707
  let ke = 0, Be = 0;
@@ -42741,7 +42741,7 @@ var vu = i.forwardRef(
42741
42741
  style: { ...s2, width: v },
42742
42742
  children: [
42743
42743
  te && /* @__PURE__ */ e("label", { className: [je.datePickerLabel, je.datePickerLabelOutside].join(" "), children: t }),
42744
- /* @__PURE__ */ g("div", { className: je.datePickerTriggerWrapper, ref: V, children: [
42744
+ /* @__PURE__ */ g("div", { className: je.datePickerTriggerWrapper, ref: A, children: [
42745
42745
  /* @__PURE__ */ g(
42746
42746
  "div",
42747
42747
  {
@@ -42780,9 +42780,9 @@ var vu = i.forwardRef(
42780
42780
  we && ae && je.datePickerInputVisible
42781
42781
  ].filter(Boolean).join(" "),
42782
42782
  placeholder: we ? "" : l,
42783
- value: W,
42783
+ value: P6,
42784
42784
  onChange: he,
42785
- onFocus: Z,
42785
+ onFocus: z,
42786
42786
  onBlur: ce,
42787
42787
  onKeyDown: xe,
42788
42788
  onClick: (Y) => {
@@ -42818,14 +42818,14 @@ var vu = i.forwardRef(
42818
42818
  ref: I,
42819
42819
  className: je.datePickerPopover,
42820
42820
  style: {
42821
- ...$,
42822
- right: $.left ? "auto" : void 0,
42821
+ ...K,
42822
+ right: K.left ? "auto" : void 0,
42823
42823
  width: "auto"
42824
42824
  },
42825
42825
  children: /* @__PURE__ */ e(
42826
42826
  Ta,
42827
42827
  {
42828
- month: K,
42828
+ month: Q,
42829
42829
  onMonthChange: de,
42830
42830
  selectedDate: x6,
42831
42831
  onDayClick: q,
@@ -42948,32 +42948,32 @@ var x7 = i.forwardRef(
42948
42948
  t ? (T.current = document.activeElement, y6?.current && y6.current.focus()) : T.current && (T.current.focus(), T.current = null);
42949
42949
  }, [t, y6]), i.useEffect(() => {
42950
42950
  if (!t || !m) return;
42951
- const V = (I) => {
42951
+ const A = (I) => {
42952
42952
  I.key === "Escape" && a2?.();
42953
42953
  };
42954
- return document.addEventListener("keydown", V), () => document.removeEventListener("keydown", V);
42954
+ return document.addEventListener("keydown", A), () => document.removeEventListener("keydown", A);
42955
42955
  }, [t, m, a2]), Co(t);
42956
42956
  const M = i.useCallback(() => {
42957
- const V = v.current;
42958
- if (!V) return;
42959
- const { scrollTop: I, scrollHeight: $, clientHeight: x6 } = V, D = $ > x6, F = I <= 1, K = I + x6 >= $ - 1;
42960
- k6(D && !F), w(D && !K);
42957
+ const A = v.current;
42958
+ if (!A) return;
42959
+ const { scrollTop: I, scrollHeight: K, clientHeight: x6 } = A, D = K > x6, F = I <= 1, Q = I + x6 >= K - 1;
42960
+ k6(D && !F), w(D && !Q);
42961
42961
  }, []);
42962
42962
  i.useEffect(() => {
42963
42963
  t && requestAnimationFrame(M);
42964
42964
  }, [t, d, M]);
42965
- const N = i.useCallback((V) => {
42966
- _.current = V, typeof b == "function" ? b(V) : b && (b.current = V);
42965
+ const N = i.useCallback((A) => {
42966
+ _.current = A, typeof b == "function" ? b(A) : b && (b.current = A);
42967
42967
  }, [b]);
42968
42968
  if (!t) return null;
42969
- const H = (V) => {
42970
- u && V.target === V.currentTarget && a2?.();
42971
- }, z = {
42969
+ const H = (A) => {
42970
+ u && A.target === A.currentTarget && a2?.();
42971
+ }, W = {
42972
42972
  small: ve.dialogSizeSmall,
42973
42973
  medium: ve.dialogSizeMedium,
42974
42974
  large: ve.dialogSizeLarge,
42975
42975
  xlarge: ve.dialogSizeXlarge
42976
- }[r2], W = {
42976
+ }[r2], P6 = {
42977
42977
  center: ve.dialogHeaderCenter,
42978
42978
  left: ve.dialogHeaderLeft
42979
42979
  }[l], G = {
@@ -42982,22 +42982,22 @@ var x7 = i.forwardRef(
42982
42982
  withCheckbox: ve.dialogFooterWithCheckbox
42983
42983
  }[f], E = () => {
42984
42984
  if (C.length === 0 && !h) return null;
42985
- const V = /* @__PURE__ */ e(
42985
+ const A = /* @__PURE__ */ e(
42986
42986
  "div",
42987
42987
  {
42988
42988
  className: [
42989
42989
  ve.dialogButtonGroup,
42990
42990
  f === "vertical" && ve.dialogButtonGroupVertical
42991
42991
  ].filter(Boolean).join(" "),
42992
- children: C.map(($, x6) => /* @__PURE__ */ e(
42992
+ children: C.map((K, x6) => /* @__PURE__ */ e(
42993
42993
  Oe,
42994
42994
  {
42995
- variant: $.variant || (x6 === C.length - 1 ? "primary" : "secondary"),
42996
- onClick: $.onClick,
42997
- disabled: $.disabled,
42998
- type: $.type,
42999
- form: $.form,
43000
- children: $.label
42995
+ variant: K.variant || (x6 === C.length - 1 ? "primary" : "secondary"),
42996
+ onClick: K.onClick,
42997
+ disabled: K.disabled,
42998
+ type: K.type,
42999
+ form: K.form,
43000
+ children: K.label
43001
43001
  },
43002
43002
  x6
43003
43003
  ))
@@ -43016,8 +43016,8 @@ var x7 = i.forwardRef(
43016
43016
  label: h.label
43017
43017
  }
43018
43018
  ),
43019
- V
43020
- ] }) : /* @__PURE__ */ e("div", { className: I, children: V });
43019
+ A
43020
+ ] }) : /* @__PURE__ */ e("div", { className: I, children: A });
43021
43021
  }, J = /* @__PURE__ */ g(at, { children: [
43022
43022
  /* @__PURE__ */ e("div", { className: ve.dialogOverlay, "aria-hidden": "true" }),
43023
43023
  /* @__PURE__ */ e(
@@ -43033,7 +43033,7 @@ var x7 = i.forwardRef(
43033
43033
  "div",
43034
43034
  {
43035
43035
  ref: N,
43036
- className: ["phx-dialog", ve.dialogRoot, z, p].filter(Boolean).join(" "),
43036
+ className: ["phx-dialog", ve.dialogRoot, W, p].filter(Boolean).join(" "),
43037
43037
  "data-popover-surface": "dialog",
43038
43038
  "data-popover-surface-padding": "16",
43039
43039
  children: [
@@ -43042,7 +43042,7 @@ var x7 = i.forwardRef(
43042
43042
  {
43043
43043
  className: [
43044
43044
  ve.dialogHeader,
43045
- W,
43045
+ P6,
43046
43046
  c2 && ve.dialogHeaderWithClose,
43047
43047
  L && ve.dialogHeaderWithDivider
43048
43048
  ].filter(Boolean).join(" "),
@@ -43316,14 +43316,14 @@ var jo = i.forwardRef(
43316
43316
  }, m) => {
43317
43317
  const b = {
43318
43318
  // Grid Template Columns (handled by columns or templateColumns)
43319
- ...Q("gridTC", t, (v) => typeof v == "number" ? `repeat(${v}, minmax(0, 1fr))` : v),
43320
- ...Q("gridTC", r2),
43319
+ ...$("gridTC", t, (v) => typeof v == "number" ? `repeat(${v}, minmax(0, 1fr))` : v),
43320
+ ...$("gridTC", r2),
43321
43321
  // Overrides columns if both exist
43322
- ...Q("gridTR", l),
43323
- ...Q("gridTA", c2),
43324
- ...Q("gridAR", f),
43325
- ...Q("gridAC", C),
43326
- ...Q("gridAF", h)
43322
+ ...$("gridTR", l),
43323
+ ...$("gridTA", c2),
43324
+ ...$("gridAR", f),
43325
+ ...$("gridAC", C),
43326
+ ...$("gridAF", h)
43327
43327
  // Layout (handled by Box but Grid overrides gap specific handling if needed?
43328
43328
  // Box handles gap, but Grid might need specific grid-gap aliases if not standard shorthand?)
43329
43329
  // standard 'gap' works for grid too.
@@ -43379,11 +43379,11 @@ var hm = i.forwardRef(
43379
43379
  ...p(t),
43380
43380
  ...u(a2),
43381
43381
  // Explicit colStart/colEnd overrule span defaults
43382
- ...Q("gridCS", o),
43383
- ...Q("gridCE", n),
43384
- ...Q("gridRS", r2),
43385
- ...Q("gridRE", l),
43386
- ...Q("gridArea", c2)
43382
+ ...$("gridCS", o),
43383
+ ...$("gridCE", n),
43384
+ ...$("gridRS", r2),
43385
+ ...$("gridRE", l),
43386
+ ...$("gridArea", c2)
43387
43387
  };
43388
43388
  return /* @__PURE__ */ e(
43389
43389
  Fe,
@@ -43656,13 +43656,13 @@ var Tf = i.forwardRef(
43656
43656
  style: T,
43657
43657
  ...M
43658
43658
  }, N) => {
43659
- const [H, z] = ia({
43659
+ const [H, W] = ia({
43660
43660
  value: t,
43661
43661
  defaultValue: a2,
43662
43662
  onChange: o
43663
- }), W = i.useRef(null), [G, E] = i.useState(false), [J, V] = i.useState(0), [I, $] = i.useState([]), [x6, D] = i.useState(""), [F, K] = i.useState(""), de = i.useRef(""), O6 = i.useRef(null), q = i.useRef(null), re2 = i.useRef(null), P6 = i.useRef(null), U = i.useRef(null), ue = i.useRef(null);
43663
+ }), P6 = i.useRef(null), [G, E] = i.useState(false), [J, A] = i.useState(0), [I, K] = i.useState([]), [x6, D] = i.useState(""), [F, Q] = i.useState(""), de = i.useRef(""), O6 = i.useRef(null), q = i.useRef(null), re2 = i.useRef(null), Z = i.useRef(null), U = i.useRef(null), ue = i.useRef(null);
43664
43664
  i.useEffect(() => {
43665
- const j = W.current;
43665
+ const j = P6.current;
43666
43666
  j && (j.style.height = "auto", j.style.height = `${j.scrollHeight}px`);
43667
43667
  }, [H]), i.useEffect(() => () => {
43668
43668
  ce();
@@ -43674,11 +43674,11 @@ var Tf = i.forwardRef(
43674
43674
  return;
43675
43675
  }
43676
43676
  try {
43677
- const A = await navigator.mediaDevices.getUserMedia({ audio: true });
43678
- P6.current = A;
43677
+ const V = await navigator.mediaDevices.getUserMedia({ audio: true });
43678
+ Z.current = V;
43679
43679
  const ne = new AudioContext();
43680
43680
  q.current = ne;
43681
- const se = ne.createMediaStreamSource(A), Ce = ne.createAnalyser();
43681
+ const se = ne.createMediaStreamSource(V), Ce = ne.createAnalyser();
43682
43682
  Ce.fftSize = 256, se.connect(Ce), re2.current = Ce;
43683
43683
  const be = new j();
43684
43684
  be.continuous = true, be.interimResults = true, be.lang = C, be.onresult = (ke) => {
@@ -43687,7 +43687,7 @@ var Tf = i.forwardRef(
43687
43687
  const ft = ke.results[Je];
43688
43688
  ft && ft[0] && (ft.isFinal ? Be += ft[0].transcript : Ge += ft[0].transcript);
43689
43689
  }
43690
- Be && D((Je) => Je + Be), K(Ge);
43690
+ Be && D((Je) => Je + Be), Q(Ge);
43691
43691
  }, be.onerror = (ke) => {
43692
43692
  console.error("Speech recognition error:", ke);
43693
43693
  }, be.onend = () => {
@@ -43696,42 +43696,42 @@ var Tf = i.forwardRef(
43696
43696
  O6.current.start();
43697
43697
  } catch {
43698
43698
  }
43699
- }, O6.current = be, be.start(), de.current = H || "", E(true), V(0), $([]), D(""), K(""), U.current = setInterval(() => {
43700
- V((ke) => ke + 1);
43699
+ }, O6.current = be, be.start(), de.current = H || "", E(true), A(0), K([]), D(""), Q(""), U.current = setInterval(() => {
43700
+ A((ke) => ke + 1);
43701
43701
  }, 1e3), ue.current = setInterval(() => {
43702
- Z();
43702
+ z();
43703
43703
  }, xf);
43704
- } catch (A) {
43705
- console.error("Failed to start recording:", A);
43704
+ } catch (V) {
43705
+ console.error("Failed to start recording:", V);
43706
43706
  }
43707
- }, Z = () => {
43707
+ }, z = () => {
43708
43708
  if (!re2.current) return;
43709
- const j = re2.current, A = new Uint8Array(j.frequencyBinCount);
43710
- j.getByteFrequencyData(A);
43709
+ const j = re2.current, V = new Uint8Array(j.frequencyBinCount);
43710
+ j.getByteFrequencyData(V);
43711
43711
  let ne = 0;
43712
- for (let Ce = 0; Ce < A.length; Ce++)
43713
- (A[Ce] ?? 0) > ne && (ne = A[Ce] ?? 0);
43712
+ for (let Ce = 0; Ce < V.length; Ce++)
43713
+ (V[Ce] ?? 0) > ne && (ne = V[Ce] ?? 0);
43714
43714
  const se = ne / 255;
43715
- $((Ce) => Ce.length >= $n ? Ce : [...Ce, se]);
43715
+ K((Ce) => Ce.length >= $n ? Ce : [...Ce, se]);
43716
43716
  }, ce = () => {
43717
- ue.current && (clearInterval(ue.current), ue.current = null), U.current && (clearInterval(U.current), U.current = null), O6.current && (O6.current.abort(), O6.current = null), q.current && q.current.state !== "closed" && q.current.close(), P6.current && (P6.current.getTracks().forEach((j) => j.stop()), P6.current = null), E(false);
43717
+ ue.current && (clearInterval(ue.current), ue.current = null), U.current && (clearInterval(U.current), U.current = null), O6.current && (O6.current.abort(), O6.current = null), q.current && q.current.state !== "closed" && q.current.close(), Z.current && (Z.current.getTracks().forEach((j) => j.stop()), Z.current = null), E(false);
43718
43718
  }, xe = () => {
43719
43719
  G || he();
43720
43720
  }, we = () => {
43721
- ce(), $([]), V(0), D(""), K(""), z(de.current);
43721
+ ce(), K([]), A(0), D(""), Q(""), W(de.current);
43722
43722
  }, te = () => {
43723
43723
  const j = x6 + F;
43724
- ce(), $([]), V(0);
43725
- const A = de.current.trim() ? " " : "", ne = de.current + A + j;
43726
- z(ne.trim()), D(""), K("");
43724
+ ce(), K([]), A(0);
43725
+ const V = de.current.trim() ? " " : "", ne = de.current + V + j;
43726
+ W(ne.trim()), D(""), Q("");
43727
43727
  }, ae = (j) => {
43728
- const A = c2.filter((ne) => ne.id !== j);
43729
- f?.(A);
43728
+ const V = c2.filter((ne) => ne.id !== j);
43729
+ f?.(V);
43730
43730
  }, le = (j) => {
43731
43731
  j.key === "Enter" && !j.shiftKey && (j.preventDefault(), Y());
43732
43732
  }, Y = () => {
43733
- const j = H?.trim(), A = c2.length > 0;
43734
- (j || A) && (r2?.(H || "", c2.length > 0 ? c2 : void 0), t === void 0 && z(""), c2.length > 0 && f?.([]));
43733
+ const j = H?.trim(), V = c2.length > 0;
43734
+ (j || V) && (r2?.(H || "", c2.length > 0 ? c2 : void 0), t === void 0 && W(""), c2.length > 0 && f?.([]));
43735
43735
  }, ie = H && H.length > 0 || c2.length > 0, R = Math.max(0, $n - I.length), X = x6 + F;
43736
43736
  return /* @__PURE__ */ e(
43737
43737
  "div",
@@ -43761,8 +43761,8 @@ var Tf = i.forwardRef(
43761
43761
  }
43762
43762
  ) }),
43763
43763
  /* @__PURE__ */ g("div", { className: Ne.promptFieldWaveform, children: [
43764
- [...Array(R)].map((j, A) => /* @__PURE__ */ e("div", { className: Ne.promptFieldWaveBarInactive }, `inactive-${A}`)),
43765
- I.map((j, A) => /* @__PURE__ */ e(
43764
+ [...Array(R)].map((j, V) => /* @__PURE__ */ e("div", { className: Ne.promptFieldWaveBarInactive }, `inactive-${V}`)),
43765
+ I.map((j, V) => /* @__PURE__ */ e(
43766
43766
  "div",
43767
43767
  {
43768
43768
  className: Ne.promptFieldWaveBarLive,
@@ -43770,7 +43770,7 @@ var Tf = i.forwardRef(
43770
43770
  height: `${Math.max(4, j * 20)}px`
43771
43771
  }
43772
43772
  },
43773
- `recorded-${A}`
43773
+ `recorded-${V}`
43774
43774
  ))
43775
43775
  ] }),
43776
43776
  /* @__PURE__ */ g("div", { className: Ne.promptFieldRightActions, children: [
@@ -43813,11 +43813,11 @@ var Tf = i.forwardRef(
43813
43813
  /* @__PURE__ */ e(
43814
43814
  "textarea",
43815
43815
  {
43816
- ref: W,
43816
+ ref: P6,
43817
43817
  className: Ne.promptFieldTextarea,
43818
43818
  placeholder: n,
43819
43819
  value: H || "",
43820
- onChange: (j) => z(j.target.value),
43820
+ onChange: (j) => W(j.target.value),
43821
43821
  onKeyDown: le,
43822
43822
  disabled: L,
43823
43823
  rows: 1
@@ -44847,19 +44847,19 @@ var FC = i.forwardRef(
44847
44847
  }
44848
44848
  );
44849
44849
  FC.displayName = "SelectCheck";
44850
- var DC = "_sheetOverlay_1ghml_63";
44851
- var PC = "_sheetOverlayClosing_1ghml_76";
44852
- var ZC = "_sheetPanel_1ghml_89";
44853
- var zC = "_sheetPanelClosing_1ghml_105";
44854
- var WC = "_sheetPanelResponsive_1ghml_128";
44855
- var GC = "_sheetPanelFullHeight_1ghml_149";
44856
- var jC = "_sheetHeader_1ghml_157";
44857
- var OC = "_sheetContent_1ghml_163";
44858
- var qC = "_sheetContentNoPadding_1ghml_170";
44859
- var UC = "_sheetFooter_1ghml_175";
44860
- var JC = "_sheetFooterElevatedGradient_1ghml_188";
44861
- var XC = "_sheetGrabber_1ghml_203";
44862
- var YC = "_sheetGrabberBar_1ghml_214";
44850
+ var DC = "_sheetOverlay_r0hhh_63";
44851
+ var PC = "_sheetOverlayClosing_r0hhh_76";
44852
+ var ZC = "_sheetPanel_r0hhh_89";
44853
+ var zC = "_sheetPanelClosing_r0hhh_105";
44854
+ var WC = "_sheetPanelResponsive_r0hhh_128";
44855
+ var GC = "_sheetPanelFullHeight_r0hhh_149";
44856
+ var jC = "_sheetHeader_r0hhh_164";
44857
+ var OC = "_sheetContent_r0hhh_170";
44858
+ var qC = "_sheetContentNoPadding_r0hhh_177";
44859
+ var UC = "_sheetFooter_r0hhh_182";
44860
+ var JC = "_sheetFooterElevatedGradient_r0hhh_195";
44861
+ var XC = "_sheetGrabber_r0hhh_210";
44862
+ var YC = "_sheetGrabberBar_r0hhh_221";
44863
44863
  var dt = {
44864
44864
  sheetOverlay: DC,
44865
44865
  sheetOverlayClosing: PC,
@@ -44898,7 +44898,7 @@ var Fn = i.forwardRef(
44898
44898
  style: s2,
44899
44899
  ...p
44900
44900
  }, u) => {
44901
- const [m, y6] = i.useState(n), [b, v] = i.useState(false), [_, L] = i.useState(false), [k6, S] = i.useState(false), [w, T] = i.useState(false), [M, N] = i.useState(0), H = i.useRef(null), z = 50;
44901
+ const [m, y6] = i.useState(n), [b, v] = i.useState(false), [_, L] = i.useState(false), [k6, S] = i.useState(false), [w, T] = i.useState(false), [M, N] = i.useState(0), H = i.useRef(null), W = 50;
44902
44902
  i.useEffect(() => {
44903
44903
  if (n)
44904
44904
  y6(true), v(false);
@@ -44912,22 +44912,22 @@ var Fn = i.forwardRef(
44912
44912
  }, [n, m]), Co(m), i.useEffect(() => {
44913
44913
  const J = H.current;
44914
44914
  if (!J || !m) return;
44915
- const V = () => {
44916
- const { scrollTop: I, scrollHeight: $, clientHeight: x6 } = J, D = $ > x6;
44915
+ const A = () => {
44916
+ const { scrollTop: I, scrollHeight: K, clientHeight: x6 } = J, D = K > x6;
44917
44917
  S(I > 0);
44918
- const F = Math.ceil(I + x6) >= $;
44918
+ const F = Math.ceil(I + x6) >= K;
44919
44919
  T(D && !F);
44920
- const K = Math.min(1, Math.max(0, I / z));
44921
- N(K);
44920
+ const Q = Math.min(1, Math.max(0, I / W));
44921
+ N(Q);
44922
44922
  };
44923
- return V(), J.addEventListener("scroll", V, { passive: true }), () => J.removeEventListener("scroll", V);
44923
+ return A(), J.addEventListener("scroll", A, { passive: true }), () => J.removeEventListener("scroll", A);
44924
44924
  }, [m]), i.useEffect(() => {
44925
44925
  if (n && H.current && c2 === "auto") {
44926
- const J = H.current.scrollHeight, V = window.innerHeight;
44927
- J > V * 0.6 ? L(true) : L(false);
44926
+ const J = H.current.scrollHeight, A = window.innerHeight;
44927
+ J > A * 0.6 ? L(true) : L(false);
44928
44928
  } else n || L(false);
44929
44929
  }, [n, c2, a2]);
44930
- const W = l === "auto", G = W ? void 0 : KC[l], E = (J) => {
44930
+ const P6 = l === "auto", G = P6 ? void 0 : KC[l], E = (J) => {
44931
44931
  J.target === J.currentTarget && r2 && r2();
44932
44932
  };
44933
44933
  return Bn(() => {
@@ -44949,7 +44949,7 @@ var Fn = i.forwardRef(
44949
44949
  className: [
44950
44950
  "phx-sheet",
44951
44951
  dt.sheetPanel,
44952
- W && dt.sheetPanelResponsive,
44952
+ P6 && dt.sheetPanelResponsive,
44953
44953
  (c2 === "full" || _) && dt.sheetPanelFullHeight,
44954
44954
  b && dt.sheetPanelClosing,
44955
44955
  d
@@ -45416,37 +45416,37 @@ var Kb = i.forwardRef(
45416
45416
  left: 0,
45417
45417
  width: 0,
45418
45418
  opacity: 0
45419
- }), [v, _] = i.useState(false), [L, k6] = i.useState(false), [S, w] = i.useState(false), T = c2 !== void 0 ? c2 : S, M = i.useRef([]), N = i.useRef([]), H = i.useRef(null), z = i.useRef(null), W = u === "auto", G = i.useCallback(() => {
45419
+ }), [v, _] = i.useState(false), [L, k6] = i.useState(false), [S, w] = i.useState(false), T = c2 !== void 0 ? c2 : S, M = i.useRef([]), N = i.useRef([]), H = i.useRef(null), W = i.useRef(null), P6 = u === "auto", G = i.useCallback(() => {
45420
45420
  const I = H.current;
45421
45421
  if (I) {
45422
- if (!W) {
45422
+ if (!P6) {
45423
45423
  _(false), k6(false);
45424
45424
  return;
45425
45425
  }
45426
- const { scrollLeft: $, scrollWidth: x6, clientWidth: D } = I, F = x6 - D, K = F > 2;
45427
- _(K && $ > 1), k6(K && $ < F - 1);
45428
- }
45429
- }, [W]), E = (I) => {
45430
- const $ = H.current;
45431
- if ($) {
45432
- const x6 = $.clientWidth * 0.8;
45433
- $.scrollBy({
45426
+ const { scrollLeft: K, scrollWidth: x6, clientWidth: D } = I, F = x6 - D, Q = F > 2;
45427
+ _(Q && K > 1), k6(Q && K < F - 1);
45428
+ }
45429
+ }, [P6]), E = (I) => {
45430
+ const K = H.current;
45431
+ if (K) {
45432
+ const x6 = K.clientWidth * 0.8;
45433
+ K.scrollBy({
45434
45434
  left: I === "left" ? -x6 : x6,
45435
45435
  behavior: "smooth"
45436
45436
  });
45437
45437
  }
45438
45438
  };
45439
45439
  i.useEffect(() => {
45440
- const I = t.findIndex((D) => D.id === a2), $ = M.current[I], x6 = N.current[I];
45441
- if ($ && x6) {
45440
+ const I = t.findIndex((D) => D.id === a2), K = M.current[I], x6 = N.current[I];
45441
+ if (K && x6) {
45442
45442
  if (b({
45443
- left: $.offsetLeft + (s2 === "pill" ? 0 : x6.offsetLeft + Xb),
45444
- width: s2 === "pill" ? $.offsetWidth : x6.offsetWidth - Yb,
45443
+ left: K.offsetLeft + (s2 === "pill" ? 0 : x6.offsetLeft + Xb),
45444
+ width: s2 === "pill" ? K.offsetWidth : x6.offsetWidth - Yb,
45445
45445
  opacity: 1,
45446
- ...s2 === "pill" && { height: $.offsetHeight }
45447
- }), W && H.current) {
45446
+ ...s2 === "pill" && { height: K.offsetHeight }
45447
+ }), P6 && H.current) {
45448
45448
  const D = H.current;
45449
- D.scrollWidth > D.clientWidth + 2 && $.scrollIntoView({
45449
+ D.scrollWidth > D.clientWidth + 2 && K.scrollIntoView({
45450
45450
  behavior: "smooth",
45451
45451
  block: "nearest",
45452
45452
  inline: "center"
@@ -45454,21 +45454,21 @@ var Kb = i.forwardRef(
45454
45454
  }
45455
45455
  } else
45456
45456
  b((D) => ({ ...D, opacity: 0 }));
45457
- }, [a2, t, s2, W]), i.useEffect(() => {
45457
+ }, [a2, t, s2, P6]), i.useEffect(() => {
45458
45458
  const I = H.current;
45459
45459
  if (I) {
45460
45460
  G(), I.addEventListener("scroll", G);
45461
- const $ = new ResizeObserver(G);
45462
- return $.observe(I), () => {
45463
- I.removeEventListener("scroll", G), $.disconnect();
45461
+ const K = new ResizeObserver(G);
45462
+ return K.observe(I), () => {
45463
+ I.removeEventListener("scroll", G), K.disconnect();
45464
45464
  };
45465
45465
  }
45466
45466
  }, [G, t]), i.useEffect(() => {
45467
45467
  if (!l) return;
45468
- const I = z.current;
45468
+ const I = W.current;
45469
45469
  if (!I) return;
45470
- const x6 = ((K) => {
45471
- let de = K.parentElement;
45470
+ const x6 = ((Q) => {
45471
+ let de = Q.parentElement;
45472
45472
  for (; de; ) {
45473
45473
  const O6 = window.getComputedStyle(de);
45474
45474
  if (/(auto|scroll)/.test(O6.overflow + O6.overflowY))
@@ -45478,7 +45478,7 @@ var Kb = i.forwardRef(
45478
45478
  return null;
45479
45479
  })(I), D = () => {
45480
45480
  if (!I) return;
45481
- const K = I.getBoundingClientRect(), de = x6 ? x6.getBoundingClientRect() : { top: 0 }, O6 = K.top <= de.top + 1;
45481
+ const Q = I.getBoundingClientRect(), de = x6 ? x6.getBoundingClientRect() : { top: 0 }, O6 = Q.top <= de.top + 1;
45482
45482
  w(O6);
45483
45483
  };
45484
45484
  D();
@@ -45488,10 +45488,10 @@ var Kb = i.forwardRef(
45488
45488
  };
45489
45489
  }, [l]);
45490
45490
  const J = i.useCallback((I) => {
45491
- z.current = I, typeof m == "function" ? m(I) : m && (m.current = I);
45492
- }, [m]), V = {
45493
- "--tabs-fade-left": W && v ? "44px" : "0px",
45494
- "--tabs-fade-right": W && L ? "44px" : "0px"
45491
+ W.current = I, typeof m == "function" ? m(I) : m && (m.current = I);
45492
+ }, [m]), A = {
45493
+ "--tabs-fade-left": P6 && v ? "44px" : "0px",
45494
+ "--tabs-fade-right": P6 && L ? "44px" : "0px"
45495
45495
  };
45496
45496
  return /* @__PURE__ */ e(
45497
45497
  "div",
@@ -45509,7 +45509,7 @@ var Kb = i.forwardRef(
45509
45509
  ].filter(Boolean).join(" "),
45510
45510
  style: h,
45511
45511
  children: /* @__PURE__ */ g("div", { className: Ie.tabsScrollOuter, children: [
45512
- W && /* @__PURE__ */ e(
45512
+ P6 && /* @__PURE__ */ e(
45513
45513
  "div",
45514
45514
  {
45515
45515
  className: [
@@ -45532,7 +45532,7 @@ var Kb = i.forwardRef(
45532
45532
  )
45533
45533
  }
45534
45534
  ),
45535
- /* @__PURE__ */ e("div", { className: Ie.tabsScrollContainer, style: V, children: /* @__PURE__ */ e("div", { className: Ie.tabsMaskWrapper, children: /* @__PURE__ */ g(
45535
+ /* @__PURE__ */ e("div", { className: Ie.tabsScrollContainer, style: A, children: /* @__PURE__ */ e("div", { className: Ie.tabsMaskWrapper, children: /* @__PURE__ */ g(
45536
45536
  "div",
45537
45537
  {
45538
45538
  ref: H,
@@ -45547,13 +45547,13 @@ var Kb = i.forwardRef(
45547
45547
  "scrollbarHidden"
45548
45548
  ].filter(Boolean).join(" "),
45549
45549
  children: [
45550
- t.map((I, $) => {
45550
+ t.map((I, K) => {
45551
45551
  const x6 = a2 === I.id, D = !I.icon, F = !I.label;
45552
45552
  return /* @__PURE__ */ e(
45553
45553
  "button",
45554
45554
  {
45555
- ref: (K) => {
45556
- M.current[$] = K;
45555
+ ref: (Q) => {
45556
+ M.current[K] = Q;
45557
45557
  },
45558
45558
  role: "tab",
45559
45559
  type: "button",
@@ -45569,9 +45569,9 @@ var Kb = i.forwardRef(
45569
45569
  n && Ie.tabsTabStacked
45570
45570
  ].filter(Boolean).join(" "),
45571
45571
  onClick: () => !I.disabled && o(I.id),
45572
- onKeyDown: (K) => {
45572
+ onKeyDown: (Q) => {
45573
45573
  let de = null;
45574
- if (K.key === "ArrowRight" || K.key === "ArrowDown" ? (K.preventDefault(), de = ($ + 1) % t.length) : K.key === "ArrowLeft" || K.key === "ArrowUp" ? (K.preventDefault(), de = ($ - 1 + t.length) % t.length) : K.key === "Home" ? (K.preventDefault(), de = 0) : K.key === "End" ? (K.preventDefault(), de = t.length - 1) : (K.key === "Enter" || K.key === " ") && d === "manual" && (K.preventDefault(), o(I.id)), de !== null) {
45574
+ if (Q.key === "ArrowRight" || Q.key === "ArrowDown" ? (Q.preventDefault(), de = (K + 1) % t.length) : Q.key === "ArrowLeft" || Q.key === "ArrowUp" ? (Q.preventDefault(), de = (K - 1 + t.length) % t.length) : Q.key === "Home" ? (Q.preventDefault(), de = 0) : Q.key === "End" ? (Q.preventDefault(), de = t.length - 1) : (Q.key === "Enter" || Q.key === " ") && d === "manual" && (Q.preventDefault(), o(I.id)), de !== null) {
45575
45575
  const O6 = t[de], q = M.current[de];
45576
45576
  O6 && !O6.disabled && q && (q.focus(), d === "automatic" && o(O6.id));
45577
45577
  }
@@ -45582,8 +45582,8 @@ var Kb = i.forwardRef(
45582
45582
  "span",
45583
45583
  {
45584
45584
  className: Ie.tabsTabContent,
45585
- ref: (K) => {
45586
- N.current[$] = K;
45585
+ ref: (Q) => {
45586
+ N.current[K] = Q;
45587
45587
  },
45588
45588
  children: [
45589
45589
  I.icon && /* @__PURE__ */ e("span", { className: Ie.tabsTabIcon, children: I.icon }),
@@ -45595,8 +45595,8 @@ var Kb = i.forwardRef(
45595
45595
  Ie.tabsTabChevron,
45596
45596
  I.chevronRotated && Ie.tabsTabChevronRotated
45597
45597
  ].filter(Boolean).join(" "),
45598
- onClick: (K) => {
45599
- I.onChevronClick && (K.stopPropagation(), I.onChevronClick(K));
45598
+ onClick: (Q) => {
45599
+ I.onChevronClick && (Q.stopPropagation(), I.onChevronClick(Q));
45600
45600
  },
45601
45601
  children: /* @__PURE__ */ e(ChevronDownSmallOutline, {})
45602
45602
  }
@@ -45619,7 +45619,7 @@ var Kb = i.forwardRef(
45619
45619
  ]
45620
45620
  }
45621
45621
  ) }) }),
45622
- W && /* @__PURE__ */ e(
45622
+ P6 && /* @__PURE__ */ e(
45623
45623
  "div",
45624
45624
  {
45625
45625
  className: [
@@ -45706,8 +45706,8 @@ var uy = i.forwardRef(
45706
45706
  required: o,
45707
45707
  helperText: n,
45708
45708
  error: r2,
45709
- maxLength: l = 500,
45710
- showCount: c2 = true,
45709
+ maxLength: l,
45710
+ showCount: c2,
45711
45711
  disabled: f,
45712
45712
  className: C,
45713
45713
  style: h,
@@ -45727,14 +45727,14 @@ var uy = i.forwardRef(
45727
45727
  value: u,
45728
45728
  defaultValue: m || "",
45729
45729
  onChange: p
45730
- }), H = M, z = H?.length || 0, W = (V) => {
45731
- T(true), d?.(V);
45732
- }, G = (V) => {
45733
- T(false), s2?.(V);
45734
- }, E = (V) => {
45735
- const I = V.target.value;
45736
- l && I.length > l || N(I);
45737
- }, J = t && a2 === "outside";
45730
+ }), H = M, W = H?.length || 0, P6 = c2 ?? l !== void 0, G = (I) => {
45731
+ T(true), d?.(I);
45732
+ }, E = (I) => {
45733
+ T(false), s2?.(I);
45734
+ }, J = (I) => {
45735
+ const K = I.target.value;
45736
+ l !== void 0 && K.length > l || N(K);
45737
+ }, A = t && a2 === "outside";
45738
45738
  return /* @__PURE__ */ g(
45739
45739
  "div",
45740
45740
  {
@@ -45746,7 +45746,7 @@ var uy = i.forwardRef(
45746
45746
  ].filter(Boolean).join(" "),
45747
45747
  style: { ...h, width: _ },
45748
45748
  children: [
45749
- J && /* @__PURE__ */ g("label", { className: Lt.textAreaOutsideLabel, children: [
45749
+ A && /* @__PURE__ */ g("label", { className: Lt.textAreaOutsideLabel, children: [
45750
45750
  t,
45751
45751
  o && /* @__PURE__ */ e("span", { className: Lt.textAreaRequiredIndicator, children: " *" })
45752
45752
  ] }),
@@ -45762,26 +45762,25 @@ var uy = i.forwardRef(
45762
45762
  f && Lt.disabled
45763
45763
  ].filter(Boolean).join(" "),
45764
45764
  disabled: f,
45765
- onFocus: W,
45766
- onBlur: G,
45767
- onChange: E,
45765
+ onFocus: G,
45766
+ onBlur: E,
45767
+ onChange: J,
45768
45768
  value: H,
45769
45769
  placeholder: y6,
45770
45770
  rows: b,
45771
45771
  style: { resize: v },
45772
- maxLength: l,
45772
+ maxLength: l ?? void 0,
45773
45773
  ...k6
45774
45774
  }
45775
45775
  ),
45776
- (n || c2) && /* @__PURE__ */ g("div", { className: Lt.textAreaFooter, children: [
45776
+ (n || P6) && /* @__PURE__ */ g("div", { className: Lt.textAreaFooter, children: [
45777
45777
  n && /* @__PURE__ */ e("span", { className: [
45778
45778
  Lt.textAreaHelperText,
45779
45779
  r2 && Lt.textAreaErrorText
45780
45780
  ].filter(Boolean).join(" "), children: n }),
45781
- c2 && /* @__PURE__ */ g("span", { className: Lt.textAreaCharCount, children: [
45782
- z,
45783
- "/",
45784
- l
45781
+ P6 && /* @__PURE__ */ g("span", { className: Lt.textAreaCharCount, children: [
45782
+ W,
45783
+ l !== void 0 ? `/${l}` : ""
45785
45784
  ] })
45786
45785
  ] })
45787
45786
  ]
@@ -45899,68 +45898,68 @@ var Ky = i.forwardRef(
45899
45898
  style: M,
45900
45899
  onFocus: N,
45901
45900
  onBlur: H,
45902
- onChange: z,
45903
- value: W,
45901
+ onChange: W,
45902
+ value: P6,
45904
45903
  defaultValue: G,
45905
45904
  defaultTrailingDropdownValue: E,
45906
45905
  placeholder: J,
45907
- maxLength: V,
45906
+ maxLength: A,
45908
45907
  ...I
45909
- }, $) => {
45910
- const [x6, D] = i.useState(false), [F, K] = i.useState(false), [de, O6] = ia({
45911
- value: W,
45908
+ }, K) => {
45909
+ const [x6, D] = i.useState(false), [F, Q] = i.useState(false), [de, O6] = ia({
45910
+ value: P6,
45912
45911
  defaultValue: G || "",
45913
- onChange: z
45914
- }), q = de, [re2, P6] = ia({
45912
+ onChange: W
45913
+ }), q = de, [re2, Z] = ia({
45915
45914
  value: d,
45916
45915
  defaultValue: E || "",
45917
45916
  onChange: s2
45918
45917
  }), U = i.useRef(null), ue = i.useRef(null), { style: he } = rn(U, ue, F, {
45919
45918
  margin: 32,
45920
45919
  matchTriggerWidth: true,
45921
- onClose: () => K(false)
45922
- }), Z = (A) => {
45923
- D(true), N?.(A);
45924
- }, ce = i.useMemo(() => f ? (f.startsWith("+") || /^\d+$/.test(f.replace(/[\s()]/g, ""))) && !f.includes("://") : false, [f]), xe = (A) => {
45920
+ onClose: () => Q(false)
45921
+ }), z = (V) => {
45922
+ D(true), N?.(V);
45923
+ }, ce = i.useMemo(() => f ? (f.startsWith("+") || /^\d+$/.test(f.replace(/[\s()]/g, ""))) && !f.includes("://") : false, [f]), xe = (V) => {
45925
45924
  if (D(false), ce && q) {
45926
45925
  let ne = String(q).replace(/[^0-9]/g, "");
45927
45926
  ne.startsWith("0") && (ne = ne.slice(1));
45928
45927
  const se = ne.slice(0, 15).replace(/(\d{1,3})(?=(\d{3,4})+(?!\d))/g, "$1 ").trim();
45929
45928
  q !== se && O6(se);
45930
45929
  }
45931
- H?.(A);
45932
- }, we = (A) => {
45930
+ H?.(V);
45931
+ }, we = (V) => {
45933
45932
  if (w) return;
45934
- let ne = A.target.value;
45933
+ let ne = V.target.value;
45935
45934
  ce && (ne = ne.replace(/[^0-9]/g, "").slice(0, 15).replace(/(\d{1,3})(?=(\d{3,4})+(?!\d))/g, "$1 ").trim()), O6(ne);
45936
- }, te = (A) => {
45937
- A.preventDefault(), A.stopPropagation(), O6(""), m?.();
45938
- }, ae = (A) => {
45939
- A.key === "Enter" && A.target.blur();
45940
- }, le = (A) => {
45941
- S || (A.stopPropagation(), h ? K(!F) : p?.());
45942
- }, Y = (A) => {
45943
- const ne = Array.isArray(A) ? A[0] : A;
45944
- ne && P6(ne), K(false);
45935
+ }, te = (V) => {
45936
+ V.preventDefault(), V.stopPropagation(), O6(""), m?.();
45937
+ }, ae = (V) => {
45938
+ V.key === "Enter" && V.target.blur();
45939
+ }, le = (V) => {
45940
+ S || (V.stopPropagation(), h ? Q(!F) : p?.());
45941
+ }, Y = (V) => {
45942
+ const ne = Array.isArray(V) ? V[0] : V;
45943
+ ne && Z(ne), Q(false);
45945
45944
  };
45946
45945
  i.useEffect(() => {
45947
- const A = (ne) => {
45948
- U.current && !U.current.contains(ne.target) && K(false);
45946
+ const V = (ne) => {
45947
+ U.current && !U.current.contains(ne.target) && Q(false);
45949
45948
  };
45950
- return F && document.addEventListener("mousedown", A), () => {
45951
- document.removeEventListener("mousedown", A);
45949
+ return F && document.addEventListener("mousedown", V), () => {
45950
+ document.removeEventListener("mousedown", V);
45952
45951
  };
45953
45952
  }, [F]);
45954
- const ee = t && a2 === "inside", ie = t && a2 === "outside", R = h?.map((A) => ({
45955
- value: A.value,
45956
- label: A.label,
45957
- icon: A.icon,
45958
- disabled: A.disabled
45953
+ const ee = t && a2 === "inside", ie = t && a2 === "outside", R = h?.map((V) => ({
45954
+ value: V.value,
45955
+ label: V.label,
45956
+ icon: V.icon,
45957
+ disabled: V.disabled
45959
45958
  })), X = re2;
45960
45959
  let j = C;
45961
45960
  if (X && h) {
45962
- const A = h.find((ne) => ne.value === X);
45963
- A && (j = A.label);
45961
+ const V = h.find((ne) => ne.value === X);
45962
+ V && (j = V.label);
45964
45963
  }
45965
45964
  return /* @__PURE__ */ g(
45966
45965
  "div",
@@ -45995,7 +45994,7 @@ var Ky = i.forwardRef(
45995
45994
  w && ye.readOnly,
45996
45995
  ye[_]
45997
45996
  ].filter(Boolean).join(" "),
45998
- onClick: () => !S && !w && !x6 && $?.current?.focus(),
45997
+ onClick: () => !S && !w && !x6 && K?.current?.focus(),
45999
45998
  children: [
46000
45999
  !ee && c2 && /* @__PURE__ */ e("span", { className: ye.textFieldLeadingIcon, children: c2 }),
46001
46000
  !ee && f && /* @__PURE__ */ e("span", { className: ye.textFieldLeadingText, children: f }),
@@ -46016,7 +46015,7 @@ var Ky = i.forwardRef(
46016
46015
  /* @__PURE__ */ e(
46017
46016
  "input",
46018
46017
  {
46019
- ref: $,
46018
+ ref: K,
46020
46019
  className: [
46021
46020
  ye.textFieldInput,
46022
46021
  ee && ye.withInlineLabel,
@@ -46024,7 +46023,7 @@ var Ky = i.forwardRef(
46024
46023
  ].filter(Boolean).join(" "),
46025
46024
  disabled: S,
46026
46025
  readOnly: w,
46027
- onFocus: Z,
46026
+ onFocus: z,
46028
46027
  onBlur: xe,
46029
46028
  onChange: we,
46030
46029
  onKeyDown: ae,
@@ -46032,7 +46031,7 @@ var Ky = i.forwardRef(
46032
46031
  placeholder: ee ? "" : J,
46033
46032
  inputMode: ce ? "numeric" : I.inputMode,
46034
46033
  pattern: ce ? "[0-9]*" : I.pattern,
46035
- maxLength: V,
46034
+ maxLength: A,
46036
46035
  ...I
46037
46036
  }
46038
46037
  )
@@ -46053,7 +46052,7 @@ var Ky = i.forwardRef(
46053
46052
  variant: "primary",
46054
46053
  shape: "pill",
46055
46054
  icon: /* @__PURE__ */ e(CloseSmallOutline, {}),
46056
- onMouseDown: (A) => A.preventDefault(),
46055
+ onMouseDown: (V) => V.preventDefault(),
46057
46056
  onClick: te,
46058
46057
  "aria-label": "Clear input",
46059
46058
  className: ye.textFieldClearButton
@@ -46111,8 +46110,8 @@ var Ky = i.forwardRef(
46111
46110
  "div",
46112
46111
  {
46113
46112
  className: ye.textFieldTrailingIconWrapper,
46114
- onClick: (A) => {
46115
- S || (A.stopPropagation(), v?.());
46113
+ onClick: (V) => {
46114
+ S || (V.stopPropagation(), v?.());
46116
46115
  },
46117
46116
  children: [
46118
46117
  /* @__PURE__ */ e(Ka, { orientation: "vertical", className: ye.textFieldSuffixDivider }),
@@ -46124,15 +46123,15 @@ var Ky = i.forwardRef(
46124
46123
  ]
46125
46124
  }
46126
46125
  ),
46127
- (o || l && V) && /* @__PURE__ */ g("div", { className: ye.textFieldFooter, children: [
46126
+ (o || l && A) && /* @__PURE__ */ g("div", { className: ye.textFieldFooter, children: [
46128
46127
  o && /* @__PURE__ */ e("span", { className: [
46129
46128
  ye.textFieldHelperText,
46130
46129
  n && ye.errorText
46131
46130
  ].filter(Boolean).join(" "), children: o }),
46132
- l && V && /* @__PURE__ */ g("span", { className: ye.textFieldCharacterCount, children: [
46131
+ l && A && /* @__PURE__ */ g("span", { className: ye.textFieldCharacterCount, children: [
46133
46132
  String(q || "").length,
46134
46133
  "/",
46135
- V
46134
+ A
46136
46135
  ] })
46137
46136
  ] })
46138
46137
  ]