@bfrs/agentic-components 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsx as i, jsxs as N, Fragment as Ce } from "react/jsx-runtime";
2
2
  import * as n from "react";
3
- import Ar, { createContext as os, forwardRef as G, useState as ae, useMemo as xe, useCallback as $e, useContext as is, useEffect as Pr, useId as _r, isValidElement as p0, cloneElement as h0, useLayoutEffect as g0, useRef as Fr } from "react";
3
+ import Ar, { createContext as os, forwardRef as G, useState as ae, useMemo as xe, useCallback as ze, useContext as is, useEffect as Pr, useId as _r, isValidElement as p0, cloneElement as h0, useLayoutEffect as g0, useRef as Fr } from "react";
4
4
  import { createAgenticThemeVariables as v0 } from "./theme.js";
5
- import { agenticThemeColorVariables as v4, agenticThemeGradientVariables as x4, agenticThemeMotionVariables as y4, agenticThemeRadiusVariables as w4, agenticThemeShadowVariables as N4, agenticThemeSpacingVariables as E4, agenticThemeTokens as C4, agenticThemeTypographyVariables as M4, applyAgenticTheme as A4, cardSizes as k4, clearAgenticTheme as S4, colors as R4, controlSizes as P4, createAgenticThemeCssText as V4, drawerSizes as D4, iconSizes as T4, modalSizes as I4, motion as L4, normalizeThemeColorValue as _4, radius as F4, shadows as O4, spacing as Z4, tableDensities as H4, typography as $4, zIndex as z4 } from "./theme.js";
5
+ import { agenticThemeColorVariables as v4, agenticThemeGradientVariables as x4, agenticThemeMotionVariables as y4, agenticThemeRadiusVariables as w4, agenticThemeShadowVariables as N4, agenticThemeSpacingVariables as E4, agenticThemeTokens as C4, agenticThemeTypographyVariables as M4, applyAgenticTheme as A4, cardSizes as k4, clearAgenticTheme as S4, colors as R4, controlSizes as P4, createAgenticThemeCssText as V4, drawerSizes as D4, iconSizes as T4, modalSizes as I4, motion as L4, normalizeThemeColorValue as _4, radius as F4, shadows as O4, spacing as Z4, tableDensities as H4, typography as z4, zIndex as $4 } from "./theme.js";
6
6
  import * as ls from "react-dom";
7
7
  import x0 from "react-dom";
8
8
  function Do(e) {
@@ -304,21 +304,21 @@ const y0 = (e, r) => {
304
304
  return a(f, b), b;
305
305
  };
306
306
  return o = l, (...f) => o(H0(...f));
307
- }, $0 = [], ve = (e) => {
308
- const r = (t) => t[e] || $0;
307
+ }, z0 = [], ve = (e) => {
308
+ const r = (t) => t[e] || z0;
309
309
  return r.isThemeGetter = !0, r;
310
- }, Oo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, z0 = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, B0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, W0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, G0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, j0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, U0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, dr = (e) => z0.test(e), ne = (e) => !!e && !Number.isNaN(Number(e)), Xe = (e) => !!e && Number.isInteger(Number(e)), zs = (e) => e.endsWith("%") && ne(e.slice(0, -1)), ar = (e) => B0.test(e), Ho = () => !0, K0 = (e) => (
310
+ }, Oo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Zo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, $0 = /^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/, B0 = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, W0 = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, G0 = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, j0 = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, U0 = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, dr = (e) => $0.test(e), ne = (e) => !!e && !Number.isNaN(Number(e)), Xe = (e) => !!e && Number.isInteger(Number(e)), $s = (e) => e.endsWith("%") && ne(e.slice(0, -1)), ar = (e) => B0.test(e), Ho = () => !0, K0 = (e) => (
311
311
  // `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
312
312
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
313
313
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
314
314
  W0.test(e) && !G0.test(e)
315
- ), Vn = () => !1, Y0 = (e) => j0.test(e), X0 = (e) => U0.test(e), q0 = (e) => !B(e) && !W(e), J0 = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Q0 = (e) => vr(e, Bo, Vn), B = (e) => Oo.test(e), kr = (e) => vr(e, Wo, K0), Fa = (e) => vr(e, id, ne), ed = (e) => vr(e, jo, Ho), rd = (e) => vr(e, Go, Vn), Oa = (e) => vr(e, $o, Vn), td = (e) => vr(e, zo, X0), It = (e) => vr(e, Uo, Y0), W = (e) => Zo.test(e), dt = (e) => Or(e, Wo), sd = (e) => Or(e, Go), Za = (e) => Or(e, $o), nd = (e) => Or(e, Bo), ad = (e) => Or(e, zo), Lt = (e) => Or(e, Uo, !0), od = (e) => Or(e, jo, !0), vr = (e, r, t) => {
315
+ ), Vn = () => !1, Y0 = (e) => j0.test(e), X0 = (e) => U0.test(e), q0 = (e) => !B(e) && !W(e), J0 = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), Q0 = (e) => vr(e, Bo, Vn), B = (e) => Oo.test(e), kr = (e) => vr(e, Wo, K0), Fa = (e) => vr(e, id, ne), ed = (e) => vr(e, jo, Ho), rd = (e) => vr(e, Go, Vn), Oa = (e) => vr(e, zo, Vn), td = (e) => vr(e, $o, X0), It = (e) => vr(e, Uo, Y0), W = (e) => Zo.test(e), dt = (e) => Or(e, Wo), sd = (e) => Or(e, Go), Za = (e) => Or(e, zo), nd = (e) => Or(e, Bo), ad = (e) => Or(e, $o), Lt = (e) => Or(e, Uo, !0), od = (e) => Or(e, jo, !0), vr = (e, r, t) => {
316
316
  const s = Oo.exec(e);
317
317
  return s ? s[1] ? r(s[1]) : t(s[2]) : !1;
318
318
  }, Or = (e, r, t = !1) => {
319
319
  const s = Zo.exec(e);
320
320
  return s ? s[1] ? r(s[1]) : t : !1;
321
- }, $o = (e) => e === "position" || e === "percentage", zo = (e) => e === "image" || e === "url", Bo = (e) => e === "length" || e === "size" || e === "bg-size", Wo = (e) => e === "length", id = (e) => e === "number", Go = (e) => e === "family-name", jo = (e) => e === "number" || e === "weight", Uo = (e) => e === "shadow", Ha = () => {
321
+ }, zo = (e) => e === "position" || e === "percentage", $o = (e) => e === "image" || e === "url", Bo = (e) => e === "length" || e === "size" || e === "bg-size", Wo = (e) => e === "length", id = (e) => e === "number", Go = (e) => e === "family-name", jo = (e) => e === "number" || e === "weight", Uo = (e) => e === "shadow", Ha = () => {
322
322
  const e = ve("color"), r = ve("font"), t = ve("text"), s = ve("font-weight"), a = ve("tracking"), o = ve("leading"), l = ve("breakpoint"), c = ve("container"), f = ve("spacing"), d = ve("radius"), b = ve("shadow"), u = ve("inset-shadow"), m = ve("text-shadow"), p = ve("drop-shadow"), v = ve("blur"), h = ve("perspective"), g = ve("aspect"), x = ve("ease"), y = ve("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], C = () => [
323
323
  "center",
324
324
  "top",
@@ -337,7 +337,7 @@ const y0 = (e, r) => {
337
337
  "bottom-left",
338
338
  // Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
339
339
  "left-bottom"
340
- ], A = () => [...C(), W, B], S = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], M = () => [W, B, f], V = () => [dr, "full", "auto", ...M()], $ = () => [Xe, "none", "subgrid", W, B], R = () => ["auto", {
340
+ ], A = () => [...C(), W, B], S = () => ["auto", "hidden", "clip", "visible", "scroll"], k = () => ["auto", "contain", "none"], M = () => [W, B, f], V = () => [dr, "full", "auto", ...M()], z = () => [Xe, "none", "subgrid", W, B], R = () => ["auto", {
341
341
  span: ["full", Xe, W, B]
342
342
  }, Xe, W, B], H = () => [Xe, "auto", W, B], Y = () => ["auto", "min", "max", "fr", W, B], D = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], j = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], L = () => ["auto", ...M()], I = () => [dr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...M()], O = () => [dr, "screen", "full", "dvw", "lvw", "svw", "min", "max", "fit", ...M()], T = () => [dr, "screen", "full", "lh", "dvh", "lvh", "svh", "min", "max", "fit", ...M()], P = () => [e, W, B], J = () => [...C(), Za, Oa, {
343
343
  position: [W, B]
@@ -345,7 +345,7 @@ const y0 = (e, r) => {
345
345
  repeat: ["", "x", "y", "space", "round"]
346
346
  }], q = () => ["auto", "cover", "contain", nd, Q0, {
347
347
  size: [W, B]
348
- }], le = () => [zs, dt, kr], ce = () => [
348
+ }], le = () => [$s, dt, kr], ce = () => [
349
349
  // Deprecated since Tailwind CSS v4.0.0
350
350
  "",
351
351
  "none",
@@ -353,7 +353,7 @@ const y0 = (e, r) => {
353
353
  d,
354
354
  W,
355
355
  B
356
- ], ie = () => ["", ne, dt, kr], z = () => ["solid", "dashed", "dotted", "double"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [ne, zs, Za, Oa], re = () => [
356
+ ], ie = () => ["", ne, dt, kr], $ = () => ["solid", "dashed", "dotted", "double"], te = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], K = () => [ne, $s, Za, Oa], re = () => [
357
357
  // Deprecated since Tailwind CSS v4.0.0
358
358
  "",
359
359
  "none",
@@ -703,7 +703,7 @@ const y0 = (e, r) => {
703
703
  * @see https://tailwindcss.com/docs/grid-template-columns
704
704
  */
705
705
  "grid-cols": [{
706
- "grid-cols": $()
706
+ "grid-cols": z()
707
707
  }],
708
708
  /**
709
709
  * Grid Column Start / End
@@ -731,7 +731,7 @@ const y0 = (e, r) => {
731
731
  * @see https://tailwindcss.com/docs/grid-template-rows
732
732
  */
733
733
  "grid-rows": [{
734
- "grid-rows": $()
734
+ "grid-rows": z()
735
735
  }],
736
736
  /**
737
737
  * Grid Row Start / End
@@ -1185,7 +1185,7 @@ const y0 = (e, r) => {
1185
1185
  * @see https://tailwindcss.com/docs/font-stretch
1186
1186
  */
1187
1187
  "font-stretch": [{
1188
- "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", zs, B]
1188
+ "font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", $s, B]
1189
1189
  }],
1190
1190
  /**
1191
1191
  * Font Family
@@ -1309,7 +1309,7 @@ const y0 = (e, r) => {
1309
1309
  * @see https://tailwindcss.com/docs/text-decoration-style
1310
1310
  */
1311
1311
  "text-decoration-style": [{
1312
- decoration: [...z(), "wavy"]
1312
+ decoration: [...$(), "wavy"]
1313
1313
  }],
1314
1314
  /**
1315
1315
  * Text Decoration Thickness
@@ -1726,14 +1726,14 @@ const y0 = (e, r) => {
1726
1726
  * @see https://tailwindcss.com/docs/border-style
1727
1727
  */
1728
1728
  "border-style": [{
1729
- border: [...z(), "hidden", "none"]
1729
+ border: [...$(), "hidden", "none"]
1730
1730
  }],
1731
1731
  /**
1732
1732
  * Divide Style
1733
1733
  * @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
1734
1734
  */
1735
1735
  "divide-style": [{
1736
- divide: [...z(), "hidden", "none"]
1736
+ divide: [...$(), "hidden", "none"]
1737
1737
  }],
1738
1738
  /**
1739
1739
  * Border Color
@@ -1824,7 +1824,7 @@ const y0 = (e, r) => {
1824
1824
  * @see https://tailwindcss.com/docs/outline-style
1825
1825
  */
1826
1826
  "outline-style": [{
1827
- outline: [...z(), "none", "hidden"]
1827
+ outline: [...$(), "none", "hidden"]
1828
1828
  }],
1829
1829
  /**
1830
1830
  * Outline Offset
@@ -3022,15 +3022,15 @@ const y0 = (e, r) => {
3022
3022
  }, dn = (e, r, t) => {
3023
3023
  const s = r[t];
3024
3024
  s !== void 0 && (e[t] = e[t] ? e[t].concat(s) : s);
3025
- }, cd = (e, ...r) => typeof e == "function" ? _a(Ha, e, ...r) : _a(() => ld(Ha(), e), ...r), $a = "bfrs-", za = "-bfrs-", fd = cd({
3025
+ }, cd = (e, ...r) => typeof e == "function" ? _a(Ha, e, ...r) : _a(() => ld(Ha(), e), ...r), za = "bfrs-", $a = "-bfrs-", fd = cd({
3026
3026
  experimentalParseClassName: ({ className: e, parseClassName: r }) => {
3027
3027
  const t = r(e), { baseClassName: s } = t;
3028
- return s.startsWith($a) ? {
3028
+ return s.startsWith(za) ? {
3029
3029
  ...t,
3030
- baseClassName: s.slice($a.length)
3031
- } : s.startsWith(za) ? {
3030
+ baseClassName: s.slice(za.length)
3031
+ } : s.startsWith($a) ? {
3032
3032
  ...t,
3033
- baseClassName: `-${s.slice(za.length)}`
3033
+ baseClassName: `-${s.slice($a.length)}`
3034
3034
  } : {
3035
3035
  ...t,
3036
3036
  isExternal: !0
@@ -3064,7 +3064,7 @@ const bd = (e) => e, Bs = (e, r) => {
3064
3064
  }
3065
3065
  return t;
3066
3066
  }, ud = G(({ className: e, colorScheme: r = "light", theme: t, style: s, ...a }, o) => {
3067
- const [l, c] = ae(null), f = xe(() => bd(v0(t ?? {})), [t]), d = xe(() => ({ ...f, ...s }), [s, f]), b = $e(
3067
+ const [l, c] = ae(null), f = xe(() => bd(v0(t ?? {})), [t]), d = xe(() => ({ ...f, ...s }), [s, f]), b = ze(
3068
3068
  (m) => {
3069
3069
  c(m), dd(o, m);
3070
3070
  },
@@ -3402,8 +3402,8 @@ const Dd = je(
3402
3402
  )
3403
3403
  );
3404
3404
  we.displayName = "Button";
3405
- const ze = G(({ icon: e, size: r = "md", variant: t = "ghost", ...s }, a) => /* @__PURE__ */ i(we, { ref: a, size: r, variant: t, iconOnly: !0, ...s, children: s.loading ? null : e }));
3406
- ze.displayName = "IconButton";
3405
+ const $e = G(({ icon: e, size: r = "md", variant: t = "ghost", ...s }, a) => /* @__PURE__ */ i(we, { ref: a, size: r, variant: t, iconOnly: !0, ...s, children: s.loading ? null : e }));
3406
+ $e.displayName = "IconButton";
3407
3407
  const Yo = G(({ className: e, children: r, required: t, disabled: s, ...a }, o) => /* @__PURE__ */ N("label", { ref: o, className: E("bfrs-text-xs bfrs-font-semibold bfrs-leading-none bfrs-text-text-secondary", s && "bfrs-text-text-disabled", e), ...a, children: [
3408
3408
  r,
3409
3409
  t && /* @__PURE__ */ i("span", { className: "bfrs-ml-1 bfrs-text-danger", "aria-hidden": "true", children: "*" })
@@ -3590,7 +3590,7 @@ const Id = /* @__PURE__ */ new Map([
3590
3590
  "thin",
3591
3591
  /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M162.83,205.17a4,4,0,0,1-5.66,5.66l-80-80a4,4,0,0,1,0-5.66l80-80a4,4,0,1,1,5.66,5.66L85.66,128Z" }))
3592
3592
  ]
3593
- ]), $d = /* @__PURE__ */ new Map([
3593
+ ]), zd = /* @__PURE__ */ new Map([
3594
3594
  [
3595
3595
  "bold",
3596
3596
  /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M184.49,136.49l-80,80a12,12,0,0,1-17-17L159,128,87.51,56.49a12,12,0,1,1,17-17l80,80A12,12,0,0,1,184.49,136.49Z" }))
@@ -3615,7 +3615,7 @@ const Id = /* @__PURE__ */ new Map([
3615
3615
  "thin",
3616
3616
  /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M178.83,130.83l-80,80a4,4,0,0,1-5.66-5.66L170.34,128,93.17,50.83a4,4,0,0,1,5.66-5.66l80,80A4,4,0,0,1,178.83,130.83Z" }))
3617
3617
  ]
3618
- ]), zd = /* @__PURE__ */ new Map([
3618
+ ]), $d = /* @__PURE__ */ new Map([
3619
3619
  [
3620
3620
  "bold",
3621
3621
  /* @__PURE__ */ n.createElement(n.Fragment, null, /* @__PURE__ */ n.createElement("path", { d: "M216.49,168.49a12,12,0,0,1-17,0L128,97,56.49,168.49a12,12,0,0,1-17-17l80-80a12,12,0,0,1,17,0l80,80A12,12,0,0,1,216.49,168.49Z" }))
@@ -4343,9 +4343,9 @@ const p1 = ri, ti = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, {
4343
4343
  ti.displayName = "CaretDownIcon";
4344
4344
  const Zr = ti, si = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: Hd }));
4345
4345
  si.displayName = "CaretLeftIcon";
4346
- const ni = si, ai = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: $d }));
4346
+ const ni = si, ai = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: zd }));
4347
4347
  ai.displayName = "CaretRightIcon";
4348
- const Tn = ai, oi = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: zd }));
4348
+ const Tn = ai, oi = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: $d }));
4349
4349
  oi.displayName = "CaretUpIcon";
4350
4350
  const h1 = oi, ii = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: Bd }));
4351
4351
  ii.displayName = "CheckIcon";
@@ -4479,11 +4479,11 @@ const er = Ri, T1 = je(
4479
4479
  "aria-invalid": k,
4480
4480
  "aria-describedby": M,
4481
4481
  ...V
4482
- }, $) => {
4482
+ }, z) => {
4483
4483
  const R = _r(), H = y ?? R, Y = c ? `${H}-helper` : void 0, D = l ? `${H}-error` : void 0, j = [M, Y, D].filter(Boolean).join(" ") || void 0, L = w ?? C, I = L != null && String(L).length > 0, O = !!(h && I && !A && !S), T = !!(p || O || v), P = !!(b || u), J = o || l ? "error" : "default", Z = /* @__PURE__ */ i(
4484
4484
  "input",
4485
4485
  {
4486
- ref: $,
4486
+ ref: z,
4487
4487
  id: H,
4488
4488
  value: w,
4489
4489
  defaultValue: C,
@@ -4681,7 +4681,7 @@ function oe(...e) {
4681
4681
  // @__NO_SIDE_EFFECTS__
4682
4682
  function Vr(e) {
4683
4683
  const r = /* @__PURE__ */ Z1(e), t = n.forwardRef((s, a) => {
4684
- const { children: o, ...l } = s, c = n.Children.toArray(o), f = c.find($1);
4684
+ const { children: o, ...l } = s, c = n.Children.toArray(o), f = c.find(z1);
4685
4685
  if (f) {
4686
4686
  const d = f.props.children, b = c.map((u) => u === f ? n.Children.count(d) > 1 ? n.Children.only(null) : n.isValidElement(d) ? d.props.children : null : u);
4687
4687
  return /* @__PURE__ */ i(r, { ...l, ref: a, children: n.isValidElement(d) ? n.cloneElement(d, void 0, b) : null });
@@ -4695,7 +4695,7 @@ function Z1(e) {
4695
4695
  const r = n.forwardRef((t, s) => {
4696
4696
  const { children: a, ...o } = t;
4697
4697
  if (n.isValidElement(a)) {
4698
- const l = B1(a), c = z1(o, a.props);
4698
+ const l = B1(a), c = $1(o, a.props);
4699
4699
  return a.type !== n.Fragment && (c.ref = s ? cs(s, l) : l), n.cloneElement(a, c);
4700
4700
  }
4701
4701
  return n.Children.count(a) > 1 ? n.Children.only(null) : null;
@@ -4708,10 +4708,10 @@ function H1(e) {
4708
4708
  const r = ({ children: t }) => /* @__PURE__ */ i(Ce, { children: t });
4709
4709
  return r.displayName = `${e}.Slottable`, r.__radixId = Vi, r;
4710
4710
  }
4711
- function $1(e) {
4711
+ function z1(e) {
4712
4712
  return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Vi;
4713
4713
  }
4714
- function z1(e, r) {
4714
+ function $1(e, r) {
4715
4715
  const t = { ...r };
4716
4716
  for (const s in r) {
4717
4717
  const a = e[s], o = r[s];
@@ -4833,11 +4833,11 @@ var U1 = "DismissableLayer", un = "dismissableLayer.update", K1 = "dismissableLa
4833
4833
  onDismiss: c,
4834
4834
  ...f
4835
4835
  } = e, d = n.useContext(Ti), [b, u] = n.useState(null), m = (b == null ? void 0 : b.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, p] = n.useState({}), v = oe(r, (k) => u(k)), h = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(g), y = b ? h.indexOf(b) : -1, w = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= x, A = J1((k) => {
4836
- const M = k.target, V = [...d.branches].some(($) => $.contains(M));
4836
+ const M = k.target, V = [...d.branches].some((z) => z.contains(M));
4837
4837
  !C || V || (a == null || a(k), l == null || l(k), k.defaultPrevented || c == null || c());
4838
4838
  }, m), S = Q1((k) => {
4839
4839
  const M = k.target;
4840
- [...d.branches].some(($) => $.contains(M)) || (o == null || o(k), l == null || l(k), k.defaultPrevented || c == null || c());
4840
+ [...d.branches].some((z) => z.contains(M)) || (o == null || o(k), l == null || l(k), k.defaultPrevented || c == null || c());
4841
4841
  }, m);
4842
4842
  return j1((k) => {
4843
4843
  y === d.layers.size - 1 && (s == null || s(k), !k.defaultPrevented && c && (k.preventDefault(), c()));
@@ -5370,7 +5370,7 @@ const xb = 50, yb = async (e, r, t) => {
5370
5370
  }, p = Hn(a), v = Zn(p), h = await l.getDimensions(d), g = p === "y", x = g ? "top" : "left", y = g ? "bottom" : "right", w = g ? "clientHeight" : "clientWidth", C = o.reference[v] + o.reference[p] - m[p] - o.floating[v], A = m[p] - o.reference[p], S = await (l.getOffsetParent == null ? void 0 : l.getOffsetParent(d));
5371
5371
  let k = S ? S[w] : 0;
5372
5372
  (!k || !await (l.isElement == null ? void 0 : l.isElement(S))) && (k = c.floating[w] || o.floating[v]);
5373
- const M = C / 2 - A / 2, V = k / 2 - h[v] / 2 - 1, $ = hr(u[x], V), R = hr(u[y], V), H = $, Y = k - h[v] - R, D = k / 2 - h[v] / 2 + M, j = mn(H, D, Y), L = !f.arrow && st(a) != null && D !== j && o.reference[v] / 2 - (D < H ? $ : R) - h[v] / 2 < 0, I = L ? D < H ? D - H : D - Y : 0;
5373
+ const M = C / 2 - A / 2, V = k / 2 - h[v] / 2 - 1, z = hr(u[x], V), R = hr(u[y], V), H = z, Y = k - h[v] - R, D = k / 2 - h[v] / 2 + M, j = mn(H, D, Y), L = !f.arrow && st(a) != null && D !== j && o.reference[v] / 2 - (D < H ? z : R) - h[v] / 2 < 0, I = L ? D < H ? D - H : D - Y : 0;
5374
5374
  return {
5375
5375
  [p]: m[p] + I,
5376
5376
  data: {
@@ -5410,12 +5410,12 @@ const xb = 50, yb = async (e, r, t) => {
5410
5410
  const x = lr(a), y = Je(c), w = lr(c) === c, C = await (f.isRTL == null ? void 0 : f.isRTL(d.floating)), A = m || (w || !h ? [Jt(c)] : bb(c)), S = v !== "none";
5411
5411
  !m && S && A.push(...hb(c, h, v, C));
5412
5412
  const k = [c, ...A], M = await f.detectOverflow(r, g), V = [];
5413
- let $ = ((s = o.flip) == null ? void 0 : s.overflows) || [];
5413
+ let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
5414
5414
  if (b && V.push(M[x]), u) {
5415
5415
  const D = db(a, l, C);
5416
5416
  V.push(M[D[0]], M[D[1]]);
5417
5417
  }
5418
- if ($ = [...$, {
5418
+ if (z = [...z, {
5419
5419
  placement: a,
5420
5420
  overflows: V
5421
5421
  }], !V.every((D) => D <= 0)) {
@@ -5423,22 +5423,22 @@ const xb = 50, yb = async (e, r, t) => {
5423
5423
  const D = (((R = o.flip) == null ? void 0 : R.index) || 0) + 1, j = k[D];
5424
5424
  if (j && (!(u === "alignment" ? y !== Je(j) : !1) || // We leave the current main axis only if every placement on that axis
5425
5425
  // overflows the main axis.
5426
- $.every((O) => Je(O.placement) === y ? O.overflows[0] > 0 : !0)))
5426
+ z.every((O) => Je(O.placement) === y ? O.overflows[0] > 0 : !0)))
5427
5427
  return {
5428
5428
  data: {
5429
5429
  index: D,
5430
- overflows: $
5430
+ overflows: z
5431
5431
  },
5432
5432
  reset: {
5433
5433
  placement: j
5434
5434
  }
5435
5435
  };
5436
- let L = (H = $.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : H.placement;
5436
+ let L = (H = z.filter((I) => I.overflows[0] <= 0).sort((I, O) => I.overflows[1] - O.overflows[1])[0]) == null ? void 0 : H.placement;
5437
5437
  if (!L)
5438
5438
  switch (p) {
5439
5439
  case "bestFit": {
5440
5440
  var Y;
5441
- const I = (Y = $.filter((O) => {
5441
+ const I = (Y = z.filter((O) => {
5442
5442
  if (S) {
5443
5443
  const T = Je(O.placement);
5444
5444
  return T === y || // Create a bias to the `y` side axis due to horizontal
@@ -5691,8 +5691,8 @@ const Mb = function(e) {
5691
5691
  const y = h - b.top - b.bottom, w = v - b.left - b.right, C = hr(h - b[g], y), A = hr(v - b[x], w), S = !r.middlewareData.shift;
5692
5692
  let k = C, M = A;
5693
5693
  if ((t = r.middlewareData.shift) != null && t.enabled.x && (M = w), (s = r.middlewareData.shift) != null && s.enabled.y && (k = y), S && !m) {
5694
- const $ = Pe(b.left, 0), R = Pe(b.right, 0), H = Pe(b.top, 0), Y = Pe(b.bottom, 0);
5695
- p ? M = v - 2 * ($ !== 0 || R !== 0 ? $ + R : Pe(b.left, b.right)) : k = h - 2 * (H !== 0 || Y !== 0 ? H + Y : Pe(b.top, b.bottom));
5694
+ const z = Pe(b.left, 0), R = Pe(b.right, 0), H = Pe(b.top, 0), Y = Pe(b.bottom, 0);
5695
+ p ? M = v - 2 * (z !== 0 || R !== 0 ? z + R : Pe(b.left, b.right)) : k = h - 2 * (H !== 0 || Y !== 0 ? H + Y : Pe(b.top, b.bottom));
5696
5696
  }
5697
5697
  await f({
5698
5698
  ...r,
@@ -5760,14 +5760,14 @@ function bs(e) {
5760
5760
  }
5761
5761
  const Pb = /transform|translate|scale|rotate|perspective|filter/, Vb = /paint|layout|strict|content/, Sr = (e) => !!e && e !== "none";
5762
5762
  let Us;
5763
- function $n(e) {
5763
+ function zn(e) {
5764
5764
  const r = Be(e) ? We(e) : e;
5765
- return Sr(r.transform) || Sr(r.translate) || Sr(r.scale) || Sr(r.rotate) || Sr(r.perspective) || !zn() && (Sr(r.backdropFilter) || Sr(r.filter)) || Pb.test(r.willChange || "") || Vb.test(r.contain || "");
5765
+ return Sr(r.transform) || Sr(r.translate) || Sr(r.scale) || Sr(r.rotate) || Sr(r.perspective) || !$n() && (Sr(r.backdropFilter) || Sr(r.filter)) || Pb.test(r.willChange || "") || Vb.test(r.contain || "");
5766
5766
  }
5767
5767
  function Db(e) {
5768
5768
  let r = gr(e);
5769
5769
  for (; cr(r) && !Jr(r); ) {
5770
- if ($n(r))
5770
+ if (zn(r))
5771
5771
  return r;
5772
5772
  if (bs(r))
5773
5773
  return null;
@@ -5775,7 +5775,7 @@ function Db(e) {
5775
5775
  }
5776
5776
  return null;
5777
5777
  }
5778
- function zn() {
5778
+ function $n() {
5779
5779
  return Us == null && (Us = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Us;
5780
5780
  }
5781
5781
  function Jr(e) {
@@ -5851,9 +5851,9 @@ function Xr(e) {
5851
5851
  };
5852
5852
  }
5853
5853
  const Tb = /* @__PURE__ */ Qe(0);
5854
- function $i(e) {
5854
+ function zi(e) {
5855
5855
  const r = Ve(e);
5856
- return !zn() || !r.visualViewport ? Tb : {
5856
+ return !$n() || !r.visualViewport ? Tb : {
5857
5857
  x: r.visualViewport.offsetLeft,
5858
5858
  y: r.visualViewport.offsetTop
5859
5859
  };
@@ -5866,7 +5866,7 @@ function Dr(e, r, t, s) {
5866
5866
  const a = e.getBoundingClientRect(), o = Bn(e);
5867
5867
  let l = Qe(1);
5868
5868
  r && (s ? Be(s) && (l = Xr(s)) : l = Xr(e));
5869
- const c = Ib(o, t, s) ? $i(o) : Qe(0);
5869
+ const c = Ib(o, t, s) ? zi(o) : Qe(0);
5870
5870
  let f = (a.left + c.x) / l.x, d = (a.top + c.y) / l.y, b = a.width / l.x, u = a.height / l.y;
5871
5871
  if (o) {
5872
5872
  const m = Ve(o), p = s && Be(s) ? Ve(s) : s;
@@ -5887,7 +5887,7 @@ function ms(e, r) {
5887
5887
  const t = us(e).scrollLeft;
5888
5888
  return r ? r.left + t : Dr(tr(e)).left + t;
5889
5889
  }
5890
- function zi(e, r) {
5890
+ function $i(e, r) {
5891
5891
  const t = e.getBoundingClientRect(), s = t.left + r.scrollLeft - ms(e, t), a = t.top + r.scrollTop;
5892
5892
  return {
5893
5893
  x: s,
@@ -5913,7 +5913,7 @@ function Lb(e) {
5913
5913
  const p = Dr(s);
5914
5914
  d = Xr(s), b.x = p.x + s.clientLeft, b.y = p.y + s.clientTop;
5915
5915
  }
5916
- const m = l && !u && !o ? zi(l, f) : Qe(0);
5916
+ const m = l && !u && !o ? $i(l, f) : Qe(0);
5917
5917
  return {
5918
5918
  width: t.width * d.x,
5919
5919
  height: t.height * d.y,
@@ -5941,7 +5941,7 @@ function Ob(e, r) {
5941
5941
  let o = s.clientWidth, l = s.clientHeight, c = 0, f = 0;
5942
5942
  if (a) {
5943
5943
  o = a.width, l = a.height;
5944
- const b = zn();
5944
+ const b = $n();
5945
5945
  (!b || b && r === "fixed") && (c = a.offsetLeft, f = a.offsetTop);
5946
5946
  }
5947
5947
  const d = ms(s);
@@ -5974,7 +5974,7 @@ function co(e, r, t) {
5974
5974
  else if (Be(r))
5975
5975
  s = Zb(r, t);
5976
5976
  else {
5977
- const a = $i(e);
5977
+ const a = zi(e);
5978
5978
  s = {
5979
5979
  x: r.x - a.x,
5980
5980
  y: r.y - a.y,
@@ -5996,12 +5996,12 @@ function Hb(e, r) {
5996
5996
  const o = We(e).position === "fixed";
5997
5997
  let l = o ? gr(e) : e;
5998
5998
  for (; Be(l) && !Jr(l); ) {
5999
- const c = We(l), f = $n(l);
5999
+ const c = We(l), f = zn(l);
6000
6000
  !f && c.position === "fixed" && (a = null), (o ? !f && !a : !f && c.position === "static" && !!a && (a.position === "absolute" || a.position === "fixed") || yt(l) && !f && Bi(e, l)) ? s = s.filter((b) => b !== l) : a = c, l = gr(l);
6001
6001
  }
6002
6002
  return r.set(e, s), s;
6003
6003
  }
6004
- function $b(e) {
6004
+ function zb(e) {
6005
6005
  let {
6006
6006
  element: r,
6007
6007
  boundary: t,
@@ -6021,7 +6021,7 @@ function $b(e) {
6021
6021
  y: f
6022
6022
  };
6023
6023
  }
6024
- function zb(e) {
6024
+ function $b(e) {
6025
6025
  const {
6026
6026
  width: r,
6027
6027
  height: t
@@ -6047,7 +6047,7 @@ function Bb(e, r, t) {
6047
6047
  f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
6048
6048
  } else a && d();
6049
6049
  o && !s && a && d();
6050
- const b = a && !s && !o ? zi(a, c) : Qe(0), u = l.left + c.scrollLeft - f.x - b.x, m = l.top + c.scrollTop - f.y - b.y;
6050
+ const b = a && !s && !o ? $i(a, c) : Qe(0), u = l.left + c.scrollLeft - f.x - b.x, m = l.top + c.scrollTop - f.y - b.y;
6051
6051
  return {
6052
6052
  x: u,
6053
6053
  y: m,
@@ -6082,7 +6082,7 @@ function Wi(e, r) {
6082
6082
  let s = fo(e, r);
6083
6083
  for (; s && Rb(s) && Ks(s); )
6084
6084
  s = fo(s, r);
6085
- return s && Jr(s) && Ks(s) && !$n(s) ? t : s || Db(e) || t;
6085
+ return s && Jr(s) && Ks(s) && !zn(s) ? t : s || Db(e) || t;
6086
6086
  }
6087
6087
  const Wb = async function(e) {
6088
6088
  const r = this.getOffsetParent || Wi, t = this.getDimensions, s = await t(e.floating);
@@ -6102,11 +6102,11 @@ function Gb(e) {
6102
6102
  const jb = {
6103
6103
  convertOffsetParentRelativeRectToViewportRelativeRect: Lb,
6104
6104
  getDocumentElement: tr,
6105
- getClippingRect: $b,
6105
+ getClippingRect: zb,
6106
6106
  getOffsetParent: Wi,
6107
6107
  getElementRects: Wb,
6108
6108
  getClientRects: _b,
6109
- getDimensions: zb,
6109
+ getDimensions: $b,
6110
6110
  getScale: Xr,
6111
6111
  isElement: Be,
6112
6112
  isRTL: Gb
@@ -6281,7 +6281,7 @@ function nu(e) {
6281
6281
  O !== S.current && (S.current = O, h(O));
6282
6282
  }, []), w = n.useCallback((O) => {
6283
6283
  O !== k.current && (k.current = O, x(O));
6284
- }, []), C = o || v, A = l || g, S = n.useRef(null), k = n.useRef(null), M = n.useRef(b), V = f != null, $ = Ys(f), R = Ys(a), H = Ys(d), Y = n.useCallback(() => {
6284
+ }, []), C = o || v, A = l || g, S = n.useRef(null), k = n.useRef(null), M = n.useRef(b), V = f != null, z = Ys(f), R = Ys(a), H = Ys(d), Y = n.useCallback(() => {
6285
6285
  if (!S.current || !k.current)
6286
6286
  return;
6287
6287
  const O = {
@@ -6314,11 +6314,11 @@ function nu(e) {
6314
6314
  D.current = !1;
6315
6315
  }), []), Ut(() => {
6316
6316
  if (C && (S.current = C), A && (k.current = A), C && A) {
6317
- if ($.current)
6318
- return $.current(C, A, Y);
6317
+ if (z.current)
6318
+ return z.current(C, A, Y);
6319
6319
  Y();
6320
6320
  }
6321
- }, [C, A, Y, $, V]);
6321
+ }, [C, A, Y, z, V]);
6322
6322
  const j = n.useMemo(() => ({
6323
6323
  reference: S,
6324
6324
  floating: k,
@@ -6479,7 +6479,7 @@ var qi = "PopperAnchor", Ji = n.forwardRef(
6479
6479
  Ji.displayName = qi;
6480
6480
  var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
6481
6481
  (e, r) => {
6482
- var z, te, K, re, se, Q;
6482
+ var $, te, K, re, se, Q;
6483
6483
  const {
6484
6484
  __scopePopper: t,
6485
6485
  side: s = "bottom",
@@ -6495,8 +6495,8 @@ var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
6495
6495
  updatePositionStrategy: p = "optimized",
6496
6496
  onPlaced: v,
6497
6497
  ...h
6498
- } = e, g = Yi(Gn, t), [x, y] = n.useState(null), w = oe(r, (ue) => y(ue)), [C, A] = n.useState(null), S = ps(C), k = (S == null ? void 0 : S.width) ?? 0, M = (S == null ? void 0 : S.height) ?? 0, V = s + (o !== "center" ? "-" + o : ""), $ = typeof b == "number" ? b : { top: 0, right: 0, bottom: 0, left: 0, ...b }, R = Array.isArray(d) ? d : [d], H = R.length > 0, Y = {
6499
- padding: $,
6498
+ } = e, g = Yi(Gn, t), [x, y] = n.useState(null), w = oe(r, (ue) => y(ue)), [C, A] = n.useState(null), S = ps(C), k = (S == null ? void 0 : S.width) ?? 0, M = (S == null ? void 0 : S.height) ?? 0, V = s + (o !== "center" ? "-" + o : ""), z = typeof b == "number" ? b : { top: 0, right: 0, bottom: 0, left: 0, ...b }, R = Array.isArray(d) ? d : [d], H = R.length > 0, Y = {
6499
+ padding: z,
6500
6500
  boundary: R.filter(xu),
6501
6501
  // with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
6502
6502
  altBoundary: H
@@ -6534,7 +6534,7 @@ var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
6534
6534
  Ne(() => {
6535
6535
  I && (J == null || J());
6536
6536
  }, [I, J]);
6537
- const Z = (z = O.arrow) == null ? void 0 : z.x, q = (te = O.arrow) == null ? void 0 : te.y, le = ((K = O.arrow) == null ? void 0 : K.centerOffset) !== 0, [ce, ie] = n.useState();
6537
+ const Z = ($ = O.arrow) == null ? void 0 : $.x, q = (te = O.arrow) == null ? void 0 : te.y, le = ((K = O.arrow) == null ? void 0 : K.centerOffset) !== 0, [ce, ie] = n.useState();
6538
6538
  return Ne(() => {
6539
6539
  x && ie(window.getComputedStyle(x).zIndex);
6540
6540
  }, [x]), /* @__PURE__ */ i(
@@ -6962,7 +6962,7 @@ var Hu = function() {
6962
6962
  if (typeof __webpack_nonce__ < "u")
6963
6963
  return __webpack_nonce__;
6964
6964
  };
6965
- function $u() {
6965
+ function zu() {
6966
6966
  if (!document)
6967
6967
  return null;
6968
6968
  var e = document.createElement("style");
@@ -6970,7 +6970,7 @@ function $u() {
6970
6970
  var r = Hu();
6971
6971
  return r && e.setAttribute("nonce", r), e;
6972
6972
  }
6973
- function zu(e, r) {
6973
+ function $u(e, r) {
6974
6974
  e.styleSheet ? e.styleSheet.cssText = r : e.appendChild(document.createTextNode(r));
6975
6975
  }
6976
6976
  function Bu(e) {
@@ -6981,7 +6981,7 @@ var Wu = function() {
6981
6981
  var e = 0, r = null;
6982
6982
  return {
6983
6983
  add: function(t) {
6984
- e == 0 && (r = $u()) && (zu(r, t), Bu(r)), e++;
6984
+ e == 0 && (r = zu()) && ($u(r, t), Bu(r)), e++;
6985
6985
  },
6986
6986
  remove: function() {
6987
6987
  e--, !e && r && (r.parentNode && r.parentNode.removeChild(r), r = null);
@@ -7086,12 +7086,12 @@ var Wu = function() {
7086
7086
  }, gn = !1;
7087
7087
  if (typeof window < "u")
7088
7088
  try {
7089
- var $t = Object.defineProperty({}, "passive", {
7089
+ var zt = Object.defineProperty({}, "passive", {
7090
7090
  get: function() {
7091
7091
  return gn = !0, !0;
7092
7092
  }
7093
7093
  });
7094
- window.addEventListener("test", $t, $t), window.removeEventListener("test", $t, $t);
7094
+ window.addEventListener("test", zt, zt), window.removeEventListener("test", zt, zt);
7095
7095
  } catch {
7096
7096
  gn = !1;
7097
7097
  }
@@ -7158,7 +7158,7 @@ var Gr = gn ? { passive: !1 } : !1, Qu = function(e) {
7158
7158
  f && (r.contains(c) || r === c)
7159
7159
  );
7160
7160
  return (b && Math.abs(u) < 1 || !b && Math.abs(m) < 1) && (d = !0), d;
7161
- }, zt = function(e) {
7161
+ }, $t = function(e) {
7162
7162
  return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
7163
7163
  }, go = function(e) {
7164
7164
  return [e.deltaX, e.deltaY];
@@ -7192,11 +7192,11 @@ function c2(e) {
7192
7192
  var c = n.useCallback(function(h, g) {
7193
7193
  if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
7194
7194
  return !l.current.allowPinchZoom;
7195
- var x = zt(h), y = t.current, w = "deltaX" in h ? h.deltaX : y[0] - x[0], C = "deltaY" in h ? h.deltaY : y[1] - x[1], A, S = h.target, k = Math.abs(w) > Math.abs(C) ? "h" : "v";
7195
+ var x = $t(h), y = t.current, w = "deltaX" in h ? h.deltaX : y[0] - x[0], C = "deltaY" in h ? h.deltaY : y[1] - x[1], A, S = h.target, k = Math.abs(w) > Math.abs(C) ? "h" : "v";
7196
7196
  if ("touches" in h && k === "h" && S.type === "range")
7197
7197
  return !1;
7198
- var M = window.getSelection(), V = M && M.anchorNode, $ = V ? V === S || V.contains(S) : !1;
7199
- if ($)
7198
+ var M = window.getSelection(), V = M && M.anchorNode, z = V ? V === S || V.contains(S) : !1;
7199
+ if (z)
7200
7200
  return !1;
7201
7201
  var R = ho(k, S);
7202
7202
  if (!R)
@@ -7210,7 +7210,7 @@ function c2(e) {
7210
7210
  }, []), f = n.useCallback(function(h) {
7211
7211
  var g = h;
7212
7212
  if (!(!jr.length || jr[jr.length - 1] !== o)) {
7213
- var x = "deltaY" in g ? go(g) : zt(g), y = r.current.filter(function(A) {
7213
+ var x = "deltaY" in g ? go(g) : $t(g), y = r.current.filter(function(A) {
7214
7214
  return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && o2(A.delta, x);
7215
7215
  })[0];
7216
7216
  if (y && y.should) {
@@ -7232,11 +7232,11 @@ function c2(e) {
7232
7232
  });
7233
7233
  }, 1);
7234
7234
  }, []), b = n.useCallback(function(h) {
7235
- t.current = zt(h), s.current = void 0;
7235
+ t.current = $t(h), s.current = void 0;
7236
7236
  }, []), u = n.useCallback(function(h) {
7237
7237
  d(h.type, go(h), h.target, c(h, e.lockRef.current));
7238
7238
  }, []), m = n.useCallback(function(h) {
7239
- d(h.type, zt(h), h.target, c(h, e.lockRef.current));
7239
+ d(h.type, $t(h), h.target, c(h, e.lockRef.current));
7240
7240
  }, []);
7241
7241
  n.useEffect(function() {
7242
7242
  return jr.push(o), e.setCallbacks({
@@ -7291,7 +7291,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
7291
7291
  defaultProp: a ?? !1,
7292
7292
  onChange: o,
7293
7293
  caller: Tr
7294
- }), [V, $] = Ge({
7294
+ }), [V, z] = Ge({
7295
7295
  prop: l,
7296
7296
  defaultProp: c,
7297
7297
  onChange: f,
@@ -7310,7 +7310,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
7310
7310
  onValueNodeHasChildrenChange: A,
7311
7311
  contentId: Te(),
7312
7312
  value: V,
7313
- onValueChange: $,
7313
+ onValueChange: z,
7314
7314
  open: k,
7315
7315
  onOpenChange: M,
7316
7316
  dir: S,
@@ -7342,7 +7342,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
7342
7342
  name: b,
7343
7343
  autoComplete: u,
7344
7344
  value: V,
7345
- onChange: (L) => $(L.target.value),
7345
+ onChange: (L) => z(L.target.value),
7346
7346
  disabled: m,
7347
7347
  form: v,
7348
7348
  children: [
@@ -7465,16 +7465,16 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7465
7465
  avoidCollisions: g,
7466
7466
  //
7467
7467
  ...x
7468
- } = e, y = yr(Ir, t), [w, C] = n.useState(null), [A, S] = n.useState(null), k = oe(r, (z) => C(z)), [M, V] = n.useState(null), [$, R] = n.useState(
7468
+ } = e, y = yr(Ir, t), [w, C] = n.useState(null), [A, S] = n.useState(null), k = oe(r, ($) => C($)), [M, V] = n.useState(null), [z, R] = n.useState(
7469
7469
  null
7470
7470
  ), H = Es(t), [Y, D] = n.useState(!1), j = n.useRef(!1);
7471
7471
  n.useEffect(() => {
7472
7472
  if (w) return ys(w);
7473
7473
  }, [w]), fs();
7474
7474
  const L = n.useCallback(
7475
- (z) => {
7475
+ ($) => {
7476
7476
  const [te, ...K] = H().map((Q) => Q.ref.current), [re] = K.slice(-1), se = document.activeElement;
7477
- for (const Q of z)
7477
+ for (const Q of $)
7478
7478
  if (Q === se || (Q == null || Q.scrollIntoView({ block: "nearest" }), Q === te && A && (A.scrollTop = 0), Q === re && A && (A.scrollTop = A.scrollHeight), Q == null || Q.focus(), document.activeElement !== se)) return;
7479
7479
  },
7480
7480
  [H, A]
@@ -7488,39 +7488,39 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7488
7488
  const { onOpenChange: O, triggerPointerDownPosRef: T } = y;
7489
7489
  n.useEffect(() => {
7490
7490
  if (w) {
7491
- let z = { x: 0, y: 0 };
7491
+ let $ = { x: 0, y: 0 };
7492
7492
  const te = (re) => {
7493
7493
  var se, Q;
7494
- z = {
7494
+ $ = {
7495
7495
  x: Math.abs(Math.round(re.pageX) - (((se = T.current) == null ? void 0 : se.x) ?? 0)),
7496
7496
  y: Math.abs(Math.round(re.pageY) - (((Q = T.current) == null ? void 0 : Q.y) ?? 0))
7497
7497
  };
7498
7498
  }, K = (re) => {
7499
- z.x <= 10 && z.y <= 10 ? re.preventDefault() : w.contains(re.target) || O(!1), document.removeEventListener("pointermove", te), T.current = null;
7499
+ $.x <= 10 && $.y <= 10 ? re.preventDefault() : w.contains(re.target) || O(!1), document.removeEventListener("pointermove", te), T.current = null;
7500
7500
  };
7501
7501
  return T.current !== null && (document.addEventListener("pointermove", te), document.addEventListener("pointerup", K, { capture: !0, once: !0 })), () => {
7502
7502
  document.removeEventListener("pointermove", te), document.removeEventListener("pointerup", K, { capture: !0 });
7503
7503
  };
7504
7504
  }
7505
7505
  }, [w, O, T]), n.useEffect(() => {
7506
- const z = () => O(!1);
7507
- return window.addEventListener("blur", z), window.addEventListener("resize", z), () => {
7508
- window.removeEventListener("blur", z), window.removeEventListener("resize", z);
7506
+ const $ = () => O(!1);
7507
+ return window.addEventListener("blur", $), window.addEventListener("resize", $), () => {
7508
+ window.removeEventListener("blur", $), window.removeEventListener("resize", $);
7509
7509
  };
7510
7510
  }, [O]);
7511
- const [P, J] = Ll((z) => {
7512
- const te = H().filter((se) => !se.disabled), K = te.find((se) => se.ref.current === document.activeElement), re = _l(te, z, K);
7511
+ const [P, J] = Ll(($) => {
7512
+ const te = H().filter((se) => !se.disabled), K = te.find((se) => se.ref.current === document.activeElement), re = _l(te, $, K);
7513
7513
  re && setTimeout(() => re.ref.current.focus());
7514
7514
  }), Z = n.useCallback(
7515
- (z, te, K) => {
7515
+ ($, te, K) => {
7516
7516
  const re = !j.current && !K;
7517
- (y.value !== void 0 && y.value === te || re) && (V(z), re && (j.current = !0));
7517
+ (y.value !== void 0 && y.value === te || re) && (V($), re && (j.current = !0));
7518
7518
  },
7519
7519
  [y.value]
7520
7520
  ), q = n.useCallback(() => w == null ? void 0 : w.focus(), [w]), le = n.useCallback(
7521
- (z, te, K) => {
7521
+ ($, te, K) => {
7522
7522
  const re = !j.current && !K;
7523
- (y.value !== void 0 && y.value === te || re) && R(z);
7523
+ (y.value !== void 0 && y.value === te || re) && R($);
7524
7524
  },
7525
7525
  [y.value]
7526
7526
  ), ce = s === "popper" ? vn : El, ie = ce === vn ? {
@@ -7547,7 +7547,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7547
7547
  onItemLeave: q,
7548
7548
  itemTextRefCallback: le,
7549
7549
  focusSelectedItem: I,
7550
- selectedItemText: $,
7550
+ selectedItemText: z,
7551
7551
  position: s,
7552
7552
  isPositioned: Y,
7553
7553
  searchRef: P,
@@ -7556,12 +7556,12 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7556
7556
  {
7557
7557
  asChild: !0,
7558
7558
  trapped: y.open,
7559
- onMountAutoFocus: (z) => {
7560
- z.preventDefault();
7559
+ onMountAutoFocus: ($) => {
7560
+ $.preventDefault();
7561
7561
  },
7562
- onUnmountAutoFocus: F(a, (z) => {
7562
+ onUnmountAutoFocus: F(a, ($) => {
7563
7563
  var te;
7564
- (te = y.trigger) == null || te.focus({ preventScroll: !0 }), z.preventDefault();
7564
+ (te = y.trigger) == null || te.focus({ preventScroll: !0 }), $.preventDefault();
7565
7565
  }),
7566
7566
  children: /* @__PURE__ */ i(
7567
7567
  tt,
@@ -7570,7 +7570,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7570
7570
  disableOutsidePointerEvents: !0,
7571
7571
  onEscapeKeyDown: o,
7572
7572
  onPointerDownOutside: l,
7573
- onFocusOutside: (z) => z.preventDefault(),
7573
+ onFocusOutside: ($) => $.preventDefault(),
7574
7574
  onDismiss: () => y.onOpenChange(!1),
7575
7575
  children: /* @__PURE__ */ i(
7576
7576
  ce,
@@ -7579,7 +7579,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7579
7579
  id: y.contentId,
7580
7580
  "data-state": y.open ? "open" : "closed",
7581
7581
  dir: y.dir,
7582
- onContextMenu: (z) => z.preventDefault(),
7582
+ onContextMenu: ($) => $.preventDefault(),
7583
7583
  ...x,
7584
7584
  ...ie,
7585
7585
  onPlaced: () => D(!0),
@@ -7592,15 +7592,15 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
7592
7592
  outline: "none",
7593
7593
  ...x.style
7594
7594
  },
7595
- onKeyDown: F(x.onKeyDown, (z) => {
7596
- const te = z.ctrlKey || z.altKey || z.metaKey;
7597
- if (z.key === "Tab" && z.preventDefault(), !te && z.key.length === 1 && J(z.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(z.key)) {
7595
+ onKeyDown: F(x.onKeyDown, ($) => {
7596
+ const te = $.ctrlKey || $.altKey || $.metaKey;
7597
+ if ($.key === "Tab" && $.preventDefault(), !te && $.key.length === 1 && J($.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes($.key)) {
7598
7598
  let re = H().filter((se) => !se.disabled).map((se) => se.ref.current);
7599
- if (["ArrowUp", "End"].includes(z.key) && (re = re.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(z.key)) {
7600
- const se = z.target, Q = re.indexOf(se);
7599
+ if (["ArrowUp", "End"].includes($.key) && (re = re.slice().reverse()), ["ArrowUp", "ArrowDown"].includes($.key)) {
7600
+ const se = $.target, Q = re.indexOf(se);
7601
7601
  re = re.slice(Q + 1);
7602
7602
  }
7603
- setTimeout(() => L(re)), z.preventDefault();
7603
+ setTimeout(() => L(re)), $.preventDefault();
7604
7604
  }
7605
7605
  })
7606
7606
  }
@@ -7617,9 +7617,9 @@ Nl.displayName = y2;
7617
7617
  var N2 = "SelectItemAlignedPosition", El = n.forwardRef((e, r) => {
7618
7618
  const { __scopeSelect: t, onPlaced: s, ...a } = e, o = yr(Ir, t), l = wr(Ir, t), [c, f] = n.useState(null), [d, b] = n.useState(null), u = oe(r, (k) => b(k)), m = Es(t), p = n.useRef(!1), v = n.useRef(!0), { viewport: h, selectedItem: g, selectedItemText: x, focusSelectedItem: y } = l, w = n.useCallback(() => {
7619
7619
  if (o.trigger && o.valueNode && c && d && h && g && x) {
7620
- const k = o.trigger.getBoundingClientRect(), M = d.getBoundingClientRect(), V = o.valueNode.getBoundingClientRect(), $ = x.getBoundingClientRect();
7620
+ const k = o.trigger.getBoundingClientRect(), M = d.getBoundingClientRect(), V = o.valueNode.getBoundingClientRect(), z = x.getBoundingClientRect();
7621
7621
  if (o.dir !== "rtl") {
7622
- const se = $.left - M.left, Q = V.left - se, ue = k.left - Q, pe = k.width + ue, Fe = Math.max(pe, M.width), Ke = window.innerWidth - He, De = Ua(Q, [
7622
+ const se = z.left - M.left, Q = V.left - se, ue = k.left - Q, pe = k.width + ue, Fe = Math.max(pe, M.width), Ke = window.innerWidth - He, De = Ua(Q, [
7623
7623
  He,
7624
7624
  // Prevents the content from going off the starting edge of the
7625
7625
  // viewport. It may still go off the ending edge, but this can be
@@ -7630,13 +7630,13 @@ var N2 = "SelectItemAlignedPosition", El = n.forwardRef((e, r) => {
7630
7630
  ]);
7631
7631
  c.style.minWidth = pe + "px", c.style.left = De + "px";
7632
7632
  } else {
7633
- const se = M.right - $.right, Q = window.innerWidth - V.right - se, ue = window.innerWidth - k.right - Q, pe = k.width + ue, Fe = Math.max(pe, M.width), Ke = window.innerWidth - He, De = Ua(Q, [
7633
+ const se = M.right - z.right, Q = window.innerWidth - V.right - se, ue = window.innerWidth - k.right - Q, pe = k.width + ue, Fe = Math.max(pe, M.width), Ke = window.innerWidth - He, De = Ua(Q, [
7634
7634
  He,
7635
7635
  Math.max(He, Ke - Fe)
7636
7636
  ]);
7637
7637
  c.style.minWidth = pe + "px", c.style.right = De + "px";
7638
7638
  }
7639
- const R = m(), H = window.innerHeight - He * 2, Y = h.scrollHeight, D = window.getComputedStyle(d), j = parseInt(D.borderTopWidth, 10), L = parseInt(D.paddingTop, 10), I = parseInt(D.borderBottomWidth, 10), O = parseInt(D.paddingBottom, 10), T = j + L + Y + O + I, P = Math.min(g.offsetHeight * 5, T), J = window.getComputedStyle(h), Z = parseInt(J.paddingTop, 10), q = parseInt(J.paddingBottom, 10), le = k.top + k.height / 2 - He, ce = H - le, ie = g.offsetHeight / 2, z = g.offsetTop + ie, te = j + L + z, K = T - te;
7639
+ const R = m(), H = window.innerHeight - He * 2, Y = h.scrollHeight, D = window.getComputedStyle(d), j = parseInt(D.borderTopWidth, 10), L = parseInt(D.paddingTop, 10), I = parseInt(D.borderBottomWidth, 10), O = parseInt(D.paddingBottom, 10), T = j + L + Y + O + I, P = Math.min(g.offsetHeight * 5, T), J = window.getComputedStyle(h), Z = parseInt(J.paddingTop, 10), q = parseInt(J.paddingBottom, 10), le = k.top + k.height / 2 - He, ce = H - le, ie = g.offsetHeight / 2, $ = g.offsetTop + ie, te = j + L + $, K = T - te;
7640
7640
  if (te <= le) {
7641
7641
  const se = R.length > 0 && g === R[R.length - 1].ref.current;
7642
7642
  c.style.bottom = "0px";
@@ -8071,7 +8071,7 @@ function _l(e, r, t) {
8071
8071
  function _2(e, r) {
8072
8072
  return e.map((t, s) => e[(r + s) % e.length]);
8073
8073
  }
8074
- var F2 = ul, O2 = pl, Z2 = gl, H2 = vl, $2 = xl, z2 = yl, B2 = Cl, W2 = Sl, G2 = Rl, j2 = Vl;
8074
+ var F2 = ul, O2 = pl, Z2 = gl, H2 = vl, z2 = xl, $2 = yl, B2 = Cl, W2 = Sl, G2 = Rl, j2 = Vl;
8075
8075
  function U2(e, r) {
8076
8076
  return n.useReducer((t, s) => r[t][s] ?? t, e);
8077
8077
  }
@@ -8256,12 +8256,12 @@ var Cn = "TooltipTrigger", Hl = n.forwardRef(
8256
8256
  Hl.displayName = Cn;
8257
8257
  var Kn = "TooltipPortal", [Q2, em] = Ms(Kn, {
8258
8258
  forceMount: void 0
8259
- }), $l = (e) => {
8259
+ }), zl = (e) => {
8260
8260
  const { __scopeTooltip: r, forceMount: t, children: s, container: a } = e, o = Et(Kn, r);
8261
8261
  return /* @__PURE__ */ i(Q2, { scope: r, forceMount: t, children: /* @__PURE__ */ i(Me, { present: t || o.open, children: /* @__PURE__ */ i(at, { asChild: !0, container: a, children: s }) }) });
8262
8262
  };
8263
- $l.displayName = Kn;
8264
- var Qr = "TooltipContent", zl = n.forwardRef(
8263
+ zl.displayName = Kn;
8264
+ var Qr = "TooltipContent", $l = n.forwardRef(
8265
8265
  (e, r) => {
8266
8266
  const t = em(Qr, e.__scopeTooltip), { forceMount: s = t.forceMount, side: a = "top", ...o } = e, l = Et(Qr, e.__scopeTooltip);
8267
8267
  return /* @__PURE__ */ i(Me, { present: s || l.open, children: l.disableHoverableContent ? /* @__PURE__ */ i(Bl, { side: a, ...o, ref: r }) : /* @__PURE__ */ i(rm, { side: a, ...o, ref: r }) });
@@ -8344,7 +8344,7 @@ var Qr = "TooltipContent", zl = n.forwardRef(
8344
8344
  );
8345
8345
  }
8346
8346
  );
8347
- zl.displayName = Qr;
8347
+ $l.displayName = Qr;
8348
8348
  var Wl = "TooltipArrow", Gl = n.forwardRef(
8349
8349
  (e, r) => {
8350
8350
  const { __scopeTooltip: t, ...s } = e, a = As(t);
@@ -8447,7 +8447,7 @@ function fm(e) {
8447
8447
  }
8448
8448
  return t.pop(), r.length === 1 && t.length === 1 && r[0].x === t[0].x && r[0].y === t[0].y ? r : r.concat(t);
8449
8449
  }
8450
- var dm = Ol, bm = Zl, um = Hl, mm = $l, pm = zl, hm = Gl;
8450
+ var dm = Ol, bm = Zl, um = Hl, mm = zl, pm = $l, hm = Gl;
8451
8451
  const sr = 8, Yn = "bfrs-max-h-[min(24rem,var(--radix-dropdown-menu-content-available-height))] bfrs-overflow-auto", gm = "bfrs-max-h-[min(32rem,var(--radix-popover-content-available-height))] bfrs-max-w-[calc(100vw-1rem)] bfrs-overflow-auto", vm = "bfrs-max-h-[min(20rem,var(--radix-select-content-available-height))]", Xn = "bfrs-max-h-[min(18rem,var(--radix-popover-content-available-height))] bfrs-w-[var(--radix-popover-trigger-width)] bfrs-overflow-hidden", qn = "bfrs-max-h-[min(14rem,max(4rem,calc(var(--radix-popover-content-available-height)-3rem)))] bfrs-overflow-auto", xm = "bfrs-max-w-[min(16rem,var(--radix-tooltip-content-available-width))]";
8452
8452
  function Jn({ content: e, children: r, side: t = "top", delayDuration: s = 350, disabled: a = !1 }) {
8453
8453
  return /* @__PURE__ */ i(dm, { delayDuration: s, children: /* @__PURE__ */ N(bm, { open: a ? !1 : void 0, children: [
@@ -8479,8 +8479,8 @@ const ym = G(
8479
8479
  if (!M || typeof globalThis.ResizeObserver > "u") return;
8480
8480
  const V = () => C(M.scrollWidth > M.clientWidth + 1);
8481
8481
  V();
8482
- const $ = new globalThis.ResizeObserver(V);
8483
- return $.observe(M), () => $.disconnect();
8482
+ const z = new globalThis.ResizeObserver(V);
8483
+ return z.observe(M), () => z.disconnect();
8484
8484
  }, [x]);
8485
8485
  const A = (M) => {
8486
8486
  p || h(M), f == null || f(M);
@@ -8507,8 +8507,8 @@ const ym = G(
8507
8507
  );
8508
8508
  return /* @__PURE__ */ N(F2, { value: l, defaultValue: c, onValueChange: A, ...u, children: [
8509
8509
  x ? /* @__PURE__ */ i(Jn, { content: x, disabled: !w, children: S }) : S,
8510
- /* @__PURE__ */ i($2, { children: /* @__PURE__ */ i(_e, { children: /* @__PURE__ */ i(
8511
- z2,
8510
+ /* @__PURE__ */ i(z2, { children: /* @__PURE__ */ i(_e, { children: /* @__PURE__ */ i(
8511
+ $2,
8512
8512
  {
8513
8513
  position: "popper",
8514
8514
  sideOffset: 6,
@@ -8776,7 +8776,7 @@ const Pm = G(
8776
8776
  g(R), R || (y(""), C(0));
8777
8777
  }, V = (R) => {
8778
8778
  t == null || t(R), M(!1);
8779
- }, $ = (R) => {
8779
+ }, z = (R) => {
8780
8780
  if (!h && ["ArrowDown", "Enter", " "].includes(R.key)) {
8781
8781
  R.preventDefault(), M(!0);
8782
8782
  return;
@@ -8801,7 +8801,7 @@ const Pm = G(
8801
8801
  S ? "bfrs-text-text-primary" : "bfrs-text-text-disabled",
8802
8802
  b
8803
8803
  ),
8804
- onKeyDown: $,
8804
+ onKeyDown: z,
8805
8805
  children: [
8806
8806
  /* @__PURE__ */ i("span", { className: "bfrs-truncate", children: (S == null ? void 0 : S.label) ?? s }),
8807
8807
  /* @__PURE__ */ N("span", { className: "bfrs-flex bfrs-items-center bfrs-gap-1 bfrs-text-text-muted", children: [
@@ -8833,7 +8833,7 @@ const Pm = G(
8833
8833
  var H;
8834
8834
  R.preventDefault(), (H = A.current) == null || H.focus();
8835
8835
  },
8836
- onKeyDown: $,
8836
+ onKeyDown: z,
8837
8837
  className: E(
8838
8838
  "bfrs-z-50 bfrs-rounded-lg bfrs-border bfrs-border-border bfrs-bg-surface-card bfrs-p-1 bfrs-shadow-elevated bfrs-outline-none bfrs-animate-content-in",
8839
8839
  Xn
@@ -8897,7 +8897,7 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
8897
8897
  "aria-describedby": v,
8898
8898
  "aria-invalid": h
8899
8899
  }, g) => {
8900
- const [x, y] = ae(!1), [w, C] = ae(""), [A, S] = ae(0), [k, M] = ae(() => en(t)), V = Fr(null), $ = xe(() => en(r ?? k), [r, k]), R = xe(() => new Set($), [$]), H = xe(() => new Map(e.map((Z) => [Z.value, Z])), [e]), Y = $.map((Z) => H.get(Z) ?? { value: Z, label: Z }), D = Y.slice(0, Math.max(u, 0)), j = Math.max(Y.length - D.length, 0), L = xe(
8900
+ const [x, y] = ae(!1), [w, C] = ae(""), [A, S] = ae(0), [k, M] = ae(() => en(t)), V = Fr(null), z = xe(() => en(r ?? k), [r, k]), R = xe(() => new Set(z), [z]), H = xe(() => new Map(e.map((Z) => [Z.value, Z])), [e]), Y = z.map((Z) => H.get(Z) ?? { value: Z, label: Z }), D = Y.slice(0, Math.max(u, 0)), j = Math.max(Y.length - D.length, 0), L = xe(
8901
8901
  () => e.filter((Z) => Z.label.toLowerCase().includes(w.toLowerCase())),
8902
8902
  [e, w]
8903
8903
  ), I = (Z) => {
@@ -8907,10 +8907,10 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
8907
8907
  r === void 0 && M(q), s == null || s(q);
8908
8908
  }, T = (Z) => {
8909
8909
  if (R.has(Z)) {
8910
- O($.filter((q) => q !== Z));
8910
+ O(z.filter((q) => q !== Z));
8911
8911
  return;
8912
8912
  }
8913
- O([...$, Z]);
8913
+ O([...z, Z]);
8914
8914
  }, P = (Z) => {
8915
8915
  if (!x && ["ArrowDown", "Enter", " "].includes(Z.key)) {
8916
8916
  Z.preventDefault(), I(!0);
@@ -9044,7 +9044,7 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
9044
9044
  Vm.displayName = "MultiSelect";
9045
9045
  const Dm = G(
9046
9046
  ({ suggestions: e, value: r, defaultValue: t = "", onValueChange: s, onSuggestionSelect: a, renderItem: o, placeholder: l = "Search or type", emptyText: c = "No suggestions found", loading: f, disabled: d, error: b, className: u, id: m, "aria-describedby": p, "aria-invalid": v }, h) => {
9047
- const [g, x] = ae(t), [y, w] = ae(!1), [C, A] = ae(0), S = Fr(null), k = r ?? g, M = xe(() => e, [e]), V = y && (f || M.length > 0 || k.length > 0), $ = (D) => {
9047
+ const [g, x] = ae(t), [y, w] = ae(!1), [C, A] = ae(0), S = Fr(null), k = r ?? g, M = xe(() => e, [e]), V = y && (f || M.length > 0 || k.length > 0), z = (D) => {
9048
9048
  S.current = D, typeof h == "function" ? h(D) : h && (h.current = D);
9049
9049
  }, R = (D) => {
9050
9050
  r === void 0 && x(D), s == null || s(D);
@@ -9057,7 +9057,7 @@ const Dm = G(
9057
9057
  /* @__PURE__ */ i(Rm, { asChild: !0, children: /* @__PURE__ */ i(
9058
9058
  "input",
9059
9059
  {
9060
- ref: $,
9060
+ ref: z,
9061
9061
  id: m,
9062
9062
  value: k,
9063
9063
  disabled: d,
@@ -9179,8 +9179,8 @@ var Zm = n.forwardRef((e, r) => {
9179
9179
  onFocus: F(e.onFocus, (M) => {
9180
9180
  const V = !A.current;
9181
9181
  if (M.target === M.currentTarget && V && !x) {
9182
- const $ = new CustomEvent(rn, Im);
9183
- if (M.currentTarget.dispatchEvent($), !$.defaultPrevented) {
9182
+ const z = new CustomEvent(rn, Im);
9183
+ if (M.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
9184
9184
  const R = C().filter((L) => L.focusable), H = R.find((L) => L.active), Y = R.find((L) => L.id === h), j = [H, Y, ...R].filter(
9185
9185
  Boolean
9186
9186
  ).map((L) => L.ref.current);
@@ -9231,7 +9231,7 @@ var Zm = n.forwardRef((e, r) => {
9231
9231
  return;
9232
9232
  }
9233
9233
  if (g.target !== g.currentTarget) return;
9234
- const x = zm(g, b.orientation, b.dir);
9234
+ const x = $m(g, b.orientation, b.dir);
9235
9235
  if (x !== void 0) {
9236
9236
  if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
9237
9237
  g.preventDefault();
@@ -9263,11 +9263,11 @@ var Hm = {
9263
9263
  PageDown: "last",
9264
9264
  End: "last"
9265
9265
  };
9266
- function $m(e, r) {
9266
+ function zm(e, r) {
9267
9267
  return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
9268
9268
  }
9269
- function zm(e, r, t) {
9270
- const s = $m(e.key, t);
9269
+ function $m(e, r, t) {
9270
+ const s = zm(e.key, t);
9271
9271
  if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(s)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(s)))
9272
9272
  return Hm[s];
9273
9273
  }
@@ -9697,7 +9697,7 @@ const yo = {
9697
9697
  actionClassName: y,
9698
9698
  ...w
9699
9699
  }, C) => {
9700
- const [A, S] = ae(s), [k, M] = ae("idle"), V = Fr(), $ = !ap(r), R = r ?? "", H = a ?? A, Y = H ? R : op(R, b, u);
9700
+ const [A, S] = ae(s), [k, M] = ae("idle"), V = Fr(), z = !ap(r), R = r ?? "", H = a ?? A, Y = H ? R : op(R, b, u);
9701
9701
  Pr(() => () => {
9702
9702
  V.current !== void 0 && window.clearTimeout(V.current);
9703
9703
  }, []);
@@ -9712,10 +9712,10 @@ const yo = {
9712
9712
  c == null || c(O);
9713
9713
  }
9714
9714
  };
9715
- return $ ? /* @__PURE__ */ N("div", { ref: C, className: E("bfrs-inline-flex bfrs-min-w-0 bfrs-items-center bfrs-gap-1.5 bfrs-align-middle", e), ...w, children: [
9715
+ return z ? /* @__PURE__ */ N("div", { ref: C, className: E("bfrs-inline-flex bfrs-min-w-0 bfrs-items-center bfrs-gap-1.5 bfrs-align-middle", e), ...w, children: [
9716
9716
  /* @__PURE__ */ i(bn, { as: "span", className: E("bfrs-min-w-0 bfrs-font-medium bfrs-leading-none bfrs-text-text-primary", yo[p], x), children: Y }),
9717
9717
  !H && /* @__PURE__ */ i(
9718
- ze,
9718
+ $e,
9719
9719
  {
9720
9720
  type: "button",
9721
9721
  "aria-label": v,
@@ -9729,7 +9729,7 @@ const yo = {
9729
9729
  ),
9730
9730
  H && t && /* @__PURE__ */ N(Ce, { children: [
9731
9731
  /* @__PURE__ */ i(
9732
- ze,
9732
+ $e,
9733
9733
  {
9734
9734
  type: "button",
9735
9735
  "aria-label": k === "copied" ? g : h,
@@ -10197,7 +10197,7 @@ const wp = {
10197
10197
  "aria-valuetext": w,
10198
10198
  ...C
10199
10199
  }, A) => {
10200
- const S = _r(), k = o ?? S, M = p ? `${k}-helper` : void 0, V = v ? `${k}-error` : void 0, $ = [x, M, V].filter(Boolean).join(" ") || void 0, R = g ? g(l) : l;
10200
+ const S = _r(), k = o ?? S, M = p ? `${k}-helper` : void 0, V = v ? `${k}-error` : void 0, z = [x, M, V].filter(Boolean).join(" ") || void 0, R = g ? g(l) : l;
10201
10201
  return /* @__PURE__ */ N("div", { className: E("bfrs-w-full", r, e), children: [
10202
10202
  (m || R !== void 0) && /* @__PURE__ */ N("div", { className: "bfrs-mb-2 bfrs-flex bfrs-items-center bfrs-justify-between bfrs-gap-3", children: [
10203
10203
  m ? /* @__PURE__ */ i("label", { htmlFor: k, className: E("bfrs-text-[12px] bfrs-font-semibold bfrs-text-text-secondary", u && "bfrs-text-text-disabled", t), children: m }) : /* @__PURE__ */ i("span", {}),
@@ -10214,7 +10214,7 @@ const wp = {
10214
10214
  max: d,
10215
10215
  step: b,
10216
10216
  disabled: u,
10217
- "aria-describedby": $,
10217
+ "aria-describedby": z,
10218
10218
  "aria-invalid": y ?? !!v,
10219
10219
  "aria-valuetext": w ?? Ep(R),
10220
10220
  className: E(
@@ -10570,7 +10570,7 @@ const Zp = {
10570
10570
  o && /* @__PURE__ */ i("span", { className: "bfrs-shrink-0", children: o })
10571
10571
  ] }));
10572
10572
  Hp.displayName = "InfoCard";
10573
- const $p = {
10573
+ const zp = {
10574
10574
  neutral: "bfrs-bg-surface-muted bfrs-text-text-secondary",
10575
10575
  primary: "bfrs-bg-primary-soft bfrs-text-primary",
10576
10576
  brand: "bfrs-bg-primary-soft bfrs-text-primary",
@@ -10578,8 +10578,8 @@ const $p = {
10578
10578
  warning: "bfrs-bg-warning-soft bfrs-text-warning-contrast",
10579
10579
  danger: "bfrs-bg-danger-soft bfrs-text-danger-contrast",
10580
10580
  info: "bfrs-bg-info-soft bfrs-text-info-contrast"
10581
- }, zp = G(({ className: e, tone: r = "primary", ...t }, s) => /* @__PURE__ */ i("span", { ref: s, className: E("bfrs-inline-flex bfrs-min-h-5 bfrs-items-center bfrs-rounded-pill bfrs-px-2 bfrs-text-[11px] bfrs-font-semibold bfrs-leading-5", $p[r], e), ...t }));
10582
- zp.displayName = "Tip";
10581
+ }, $p = G(({ className: e, tone: r = "primary", ...t }, s) => /* @__PURE__ */ i("span", { ref: s, className: E("bfrs-inline-flex bfrs-min-h-5 bfrs-items-center bfrs-rounded-pill bfrs-px-2 bfrs-text-[11px] bfrs-font-semibold bfrs-leading-5", zp[r], e), ...t }));
10582
+ $p.displayName = "Tip";
10583
10583
  const Bp = "bfrs-relative bfrs-overflow-hidden bfrs-bg-surface-raised", Wp = "before:bfrs-absolute before:bfrs-inset-y-0 before:-bfrs-left-full before:bfrs-w-full before:bfrs-animate-shimmer before:bfrs-bg-gradient-to-r before:bfrs-from-transparent before:bfrs-via-surface-card/70 before:bfrs-to-transparent", Gp = "before:bfrs-absolute before:bfrs-inset-y-0 before:bfrs-left-0 before:bfrs-w-full before:bfrs-bg-gradient-to-r before:bfrs-from-transparent before:bfrs-via-surface-card/70 before:bfrs-to-transparent", jp = je(Bp, {
10584
10584
  variants: {
10585
10585
  variant: {
@@ -10788,17 +10788,17 @@ function a8({ toasts: e, onDismiss: r, placement: t = "bottom-center", className
10788
10788
  return e.length === 0 ? null : /* @__PURE__ */ i("div", { className: E("bfrs-pointer-events-none bfrs-fixed bfrs-z-[9999] bfrs-flex bfrs-w-[calc(100vw-2rem)] bfrs-max-w-[400px] bfrs-flex-col bfrs-gap-2.5", Jp[t], s), children: e.map((a) => /* @__PURE__ */ i(n8, { toast: a, onDismiss: r }, a.id)) });
10789
10789
  }
10790
10790
  function e4({ children: e, placement: r = "bottom-center", maxToasts: t = 4, defaultDuration: s = 2600, className: a }) {
10791
- const [o, l] = ae([]), c = Fr(0), f = $e((g) => {
10791
+ const [o, l] = ae([]), c = Fr(0), f = ze((g) => {
10792
10792
  l((x) => x.filter((y) => y.id !== g));
10793
- }, []), d = $e(() => {
10793
+ }, []), d = ze(() => {
10794
10794
  l([]);
10795
- }, []), b = $e(
10795
+ }, []), b = ze(
10796
10796
  (g) => {
10797
10797
  const x = t8(g, s), y = x.id ?? `toast-${Date.now()}-${c.current++}`, w = { ...x, id: y };
10798
10798
  return l((C) => [...C.filter((A) => A.id !== y), w].slice(-t)), y;
10799
10799
  },
10800
10800
  [s, t]
10801
- ), u = $e((g) => b(Wt("success", g)), [b]), m = $e((g) => b(Wt("warning", g)), [b]), p = $e((g) => b(Wt("danger", g)), [b]), v = $e((g) => b(Wt("info", g)), [b]), h = xe(
10801
+ ), u = ze((g) => b(Wt("success", g)), [b]), m = ze((g) => b(Wt("warning", g)), [b]), p = ze((g) => b(Wt("danger", g)), [b]), v = ze((g) => b(Wt("info", g)), [b]), h = xe(
10802
10802
  () => ({ toasts: o, toast: b, success: u, warning: m, danger: p, info: v, dismiss: f, clear: d }),
10803
10803
  [d, p, f, v, u, b, o, m]
10804
10804
  );
@@ -10839,9 +10839,9 @@ var Ds = "Dialog", [Zc] = Se(Ds), [o8, Ue] = Zc(Ds), Hc = (e) => {
10839
10839
  );
10840
10840
  };
10841
10841
  Hc.displayName = Ds;
10842
- var $c = "DialogTrigger", zc = n.forwardRef(
10842
+ var zc = "DialogTrigger", $c = n.forwardRef(
10843
10843
  (e, r) => {
10844
- const { __scopeDialog: t, ...s } = e, a = Ue($c, t), o = oe(r, a.triggerRef);
10844
+ const { __scopeDialog: t, ...s } = e, a = Ue(zc, t), o = oe(r, a.triggerRef);
10845
10845
  return /* @__PURE__ */ i(
10846
10846
  X.button,
10847
10847
  {
@@ -10857,7 +10857,7 @@ var $c = "DialogTrigger", zc = n.forwardRef(
10857
10857
  );
10858
10858
  }
10859
10859
  );
10860
- zc.displayName = $c;
10860
+ $c.displayName = zc;
10861
10861
  var ia = "DialogPortal", [i8, Bc] = Zc(ia, {
10862
10862
  forceMount: void 0
10863
10863
  }), Wc = (e) => {
@@ -11032,7 +11032,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${r.do
11032
11032
  const a = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
11033
11033
  r && a && (document.getElementById(r) || console.warn(s));
11034
11034
  }, [s, e, r]), null;
11035
- }, rf = Hc, tf = zc, sf = Wc, nf = Gc, af = jc, of = Kc, lf = Xc, cf = Jc;
11035
+ }, rf = Hc, tf = $c, sf = Wc, nf = Gc, af = jc, of = Kc, lf = Xc, cf = Jc;
11036
11036
  const p8 = {
11037
11037
  sm: "bfrs-max-w-sm",
11038
11038
  md: "bfrs-max-w-lg",
@@ -11087,7 +11087,7 @@ function h8({
11087
11087
  o && /* @__PURE__ */ i(of, { className: "bfrs-text-base bfrs-font-bold bfrs-text-text-primary", children: o }),
11088
11088
  l && /* @__PURE__ */ i(lf, { className: "bfrs-mt-1 bfrs-text-sm bfrs-leading-5 bfrs-text-text-muted", children: l })
11089
11089
  ] }),
11090
- b && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i(ze, { "aria-label": "Close modal", icon: /* @__PURE__ */ i(er, { size: 16 }), variant: "outline", size: "sm", disabled: p }) })
11090
+ b && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i($e, { "aria-label": "Close modal", icon: /* @__PURE__ */ i(er, { size: 16 }), variant: "outline", size: "sm", disabled: p }) })
11091
11091
  ] }),
11092
11092
  /* @__PURE__ */ i("div", { className: "bfrs-min-h-0 bfrs-overflow-auto bfrs-px-5 bfrs-py-4", children: c }),
11093
11093
  f && /* @__PURE__ */ i("div", { className: E("bfrs-flex bfrs-flex-col-reverse bfrs-gap-2 bfrs-border-t bfrs-border-border bfrs-bg-surface-muted/60 bfrs-px-5 bfrs-py-4 sm:bfrs-flex-row sm:bfrs-justify-end", x), children: f })
@@ -11158,7 +11158,7 @@ function x8({
11158
11158
  o && /* @__PURE__ */ i(of, { className: "bfrs-text-base bfrs-font-bold bfrs-text-text-primary", children: o }),
11159
11159
  l && /* @__PURE__ */ i(lf, { className: "bfrs-mt-1 bfrs-text-sm bfrs-leading-5 bfrs-text-text-muted", children: l })
11160
11160
  ] }),
11161
- u && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i(ze, { "aria-label": "Close drawer", icon: /* @__PURE__ */ i(er, { size: 16 }), variant: "outline", size: "sm", disabled: v }) })
11161
+ u && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i($e, { "aria-label": "Close drawer", icon: /* @__PURE__ */ i(er, { size: 16 }), variant: "outline", size: "sm", disabled: v }) })
11162
11162
  ] }),
11163
11163
  /* @__PURE__ */ i("div", { className: "bfrs-min-h-0 bfrs-flex-1 bfrs-overflow-auto bfrs-px-5 bfrs-py-4", children: c }),
11164
11164
  f && /* @__PURE__ */ i("div", { className: E("bfrs-border-t bfrs-border-border bfrs-bg-surface-card bfrs-px-5 bfrs-py-4", y), children: f })
@@ -11178,7 +11178,7 @@ var kn = ["Enter", " "], y8 = ["ArrowDown", "PageUp", "Home"], ff = ["ArrowUp",
11178
11178
  M8,
11179
11179
  xr,
11180
11180
  it
11181
- ]), Ts = xr(), bf = it(), [A8, $r] = Hr(Rt), [k8, Pt] = Hr(Rt), uf = (e) => {
11181
+ ]), Ts = xr(), bf = it(), [A8, zr] = Hr(Rt), [k8, Pt] = Hr(Rt), uf = (e) => {
11182
11182
  const { __scopeMenu: r, open: t = !1, children: s, dir: a, onOpenChange: o, modal: l = !0 } = e, c = Ts(r), [f, d] = n.useState(null), b = n.useRef(!1), u = rr(o), m = vt(a);
11183
11183
  return n.useEffect(() => {
11184
11184
  const p = () => {
@@ -11220,18 +11220,18 @@ fa.displayName = S8;
11220
11220
  var da = "MenuPortal", [R8, mf] = Hr(da, {
11221
11221
  forceMount: void 0
11222
11222
  }), pf = (e) => {
11223
- const { __scopeMenu: r, forceMount: t, children: s, container: a } = e, o = $r(da, r);
11223
+ const { __scopeMenu: r, forceMount: t, children: s, container: a } = e, o = zr(da, r);
11224
11224
  return /* @__PURE__ */ i(R8, { scope: r, forceMount: t, children: /* @__PURE__ */ i(Me, { present: t || o.open, children: /* @__PURE__ */ i(at, { asChild: !0, container: a, children: s }) }) });
11225
11225
  };
11226
11226
  pf.displayName = da;
11227
11227
  var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
11228
11228
  (e, r) => {
11229
- const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o = $r(Ie, e.__scopeMenu), l = Pt(Ie, e.__scopeMenu);
11229
+ const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o = zr(Ie, e.__scopeMenu), l = Pt(Ie, e.__scopeMenu);
11230
11230
  return /* @__PURE__ */ i(ht.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i(Me, { present: s || o.open, children: /* @__PURE__ */ i(ht.Slot, { scope: e.__scopeMenu, children: l.modal ? /* @__PURE__ */ i(V8, { ...a, ref: r }) : /* @__PURE__ */ i(D8, { ...a, ref: r }) }) }) });
11231
11231
  }
11232
11232
  ), V8 = n.forwardRef(
11233
11233
  (e, r) => {
11234
- const t = $r(Ie, e.__scopeMenu), s = n.useRef(null), a = oe(r, s);
11234
+ const t = zr(Ie, e.__scopeMenu), s = n.useRef(null), a = oe(r, s);
11235
11235
  return n.useEffect(() => {
11236
11236
  const o = s.current;
11237
11237
  if (o) return ys(o);
@@ -11253,7 +11253,7 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
11253
11253
  );
11254
11254
  }
11255
11255
  ), D8 = n.forwardRef((e, r) => {
11256
- const t = $r(Ie, e.__scopeMenu);
11256
+ const t = zr(Ie, e.__scopeMenu);
11257
11257
  return /* @__PURE__ */ i(
11258
11258
  ua,
11259
11259
  {
@@ -11282,11 +11282,11 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
11282
11282
  onDismiss: p,
11283
11283
  disableOutsideScroll: v,
11284
11284
  ...h
11285
- } = e, g = $r(Ie, t), x = Pt(Ie, t), y = Ts(t), w = bf(t), C = C8(t), [A, S] = n.useState(null), k = n.useRef(null), M = oe(r, k, g.onContentChange), V = n.useRef(0), $ = n.useRef(""), R = n.useRef(0), H = n.useRef(null), Y = n.useRef("right"), D = n.useRef(0), j = v ? Nt : n.Fragment, L = v ? { as: T8, allowPinchZoom: !0 } : void 0, I = (T) => {
11286
- var z, te;
11287
- const P = $.current + T, J = C().filter((K) => !K.disabled), Z = document.activeElement, q = (z = J.find((K) => K.ref.current === Z)) == null ? void 0 : z.textValue, le = J.map((K) => K.textValue), ce = G8(le, P, q), ie = (te = J.find((K) => K.textValue === ce)) == null ? void 0 : te.ref.current;
11285
+ } = e, g = zr(Ie, t), x = Pt(Ie, t), y = Ts(t), w = bf(t), C = C8(t), [A, S] = n.useState(null), k = n.useRef(null), M = oe(r, k, g.onContentChange), V = n.useRef(0), z = n.useRef(""), R = n.useRef(0), H = n.useRef(null), Y = n.useRef("right"), D = n.useRef(0), j = v ? Nt : n.Fragment, L = v ? { as: T8, allowPinchZoom: !0 } : void 0, I = (T) => {
11286
+ var $, te;
11287
+ const P = z.current + T, J = C().filter((K) => !K.disabled), Z = document.activeElement, q = ($ = J.find((K) => K.ref.current === Z)) == null ? void 0 : $.textValue, le = J.map((K) => K.textValue), ce = G8(le, P, q), ie = (te = J.find((K) => K.textValue === ce)) == null ? void 0 : te.ref.current;
11288
11288
  (function K(re) {
11289
- $.current = re, window.clearTimeout(V.current), re !== "" && (V.current = window.setTimeout(() => K(""), 1e3));
11289
+ z.current = re, window.clearTimeout(V.current), re !== "" && (V.current = window.setTimeout(() => K(""), 1e3));
11290
11290
  })(P), ie && setTimeout(() => ie.focus());
11291
11291
  };
11292
11292
  n.useEffect(() => () => window.clearTimeout(V.current), []), fs();
@@ -11298,7 +11298,7 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
11298
11298
  P8,
11299
11299
  {
11300
11300
  scope: t,
11301
- searchRef: $,
11301
+ searchRef: z,
11302
11302
  onItemEnter: n.useCallback(
11303
11303
  (T) => {
11304
11304
  O(T) && T.preventDefault();
@@ -11374,11 +11374,11 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
11374
11374
  const le = k.current;
11375
11375
  if (T.target !== le || !w8.includes(T.key)) return;
11376
11376
  T.preventDefault();
11377
- const ie = C().filter((z) => !z.disabled).map((z) => z.ref.current);
11377
+ const ie = C().filter(($) => !$.disabled).map(($) => $.ref.current);
11378
11378
  ff.includes(T.key) && ie.reverse(), B8(ie);
11379
11379
  }),
11380
11380
  onBlur: F(e.onBlur, (T) => {
11381
- T.currentTarget.contains(T.target) || (window.clearTimeout(V.current), $.current = "");
11381
+ T.currentTarget.contains(T.target) || (window.clearTimeout(V.current), z.current = "");
11382
11382
  }),
11383
11383
  onPointerMove: F(
11384
11384
  e.onPointerMove,
@@ -11582,16 +11582,16 @@ var H8 = "MenuSeparator", Af = n.forwardRef(
11582
11582
  }
11583
11583
  );
11584
11584
  Af.displayName = H8;
11585
- var $8 = "MenuArrow", kf = n.forwardRef(
11585
+ var z8 = "MenuArrow", kf = n.forwardRef(
11586
11586
  (e, r) => {
11587
11587
  const { __scopeMenu: t, ...s } = e, a = Ts(t);
11588
11588
  return /* @__PURE__ */ i(vs, { ...a, ...s, ref: r });
11589
11589
  }
11590
11590
  );
11591
- kf.displayName = $8;
11592
- var z8 = "MenuSub", [t4, Sf] = Hr(z8), ut = "MenuSubTrigger", Rf = n.forwardRef(
11591
+ kf.displayName = z8;
11592
+ var $8 = "MenuSub", [t4, Sf] = Hr($8), ut = "MenuSubTrigger", Rf = n.forwardRef(
11593
11593
  (e, r) => {
11594
- const t = $r(ut, e.__scopeMenu), s = Pt(ut, e.__scopeMenu), a = Sf(ut, e.__scopeMenu), o = ba(ut, e.__scopeMenu), l = n.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: f } = o, d = { __scopeMenu: e.__scopeMenu }, b = n.useCallback(() => {
11594
+ const t = zr(ut, e.__scopeMenu), s = Pt(ut, e.__scopeMenu), a = Sf(ut, e.__scopeMenu), o = ba(ut, e.__scopeMenu), l = n.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: f } = o, d = { __scopeMenu: e.__scopeMenu }, b = n.useCallback(() => {
11595
11595
  l.current && window.clearTimeout(l.current), l.current = null;
11596
11596
  }, []);
11597
11597
  return n.useEffect(() => b, [b]), n.useEffect(() => {
@@ -11662,7 +11662,7 @@ var z8 = "MenuSub", [t4, Sf] = Hr(z8), ut = "MenuSubTrigger", Rf = n.forwardRef(
11662
11662
  Rf.displayName = ut;
11663
11663
  var Pf = "MenuSubContent", Vf = n.forwardRef(
11664
11664
  (e, r) => {
11665
- const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o = $r(Ie, e.__scopeMenu), l = Pt(Ie, e.__scopeMenu), c = Sf(Pf, e.__scopeMenu), f = n.useRef(null), d = oe(r, f);
11665
+ const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o = zr(Ie, e.__scopeMenu), l = Pt(Ie, e.__scopeMenu), c = Sf(Pf, e.__scopeMenu), f = n.useRef(null), d = oe(r, f);
11666
11666
  return /* @__PURE__ */ i(ht.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ i(Me, { present: s || o.open, children: /* @__PURE__ */ i(ht.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ i(
11667
11667
  ua,
11668
11668
  {
@@ -11851,18 +11851,18 @@ var mh = "DropdownMenuLabel", Hf = n.forwardRef(
11851
11851
  }
11852
11852
  );
11853
11853
  Hf.displayName = mh;
11854
- var ph = "DropdownMenuItem", $f = n.forwardRef(
11854
+ var ph = "DropdownMenuItem", zf = n.forwardRef(
11855
11855
  (e, r) => {
11856
11856
  const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
11857
11857
  return /* @__PURE__ */ i(eh, { ...a, ...s, ref: r });
11858
11858
  }
11859
11859
  );
11860
- $f.displayName = ph;
11861
- var hh = "DropdownMenuCheckboxItem", zf = n.forwardRef((e, r) => {
11860
+ zf.displayName = ph;
11861
+ var hh = "DropdownMenuCheckboxItem", $f = n.forwardRef((e, r) => {
11862
11862
  const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
11863
11863
  return /* @__PURE__ */ i(rh, { ...a, ...s, ref: r });
11864
11864
  });
11865
- zf.displayName = hh;
11865
+ $f.displayName = hh;
11866
11866
  var gh = "DropdownMenuRadioGroup", vh = n.forwardRef((e, r) => {
11867
11867
  const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
11868
11868
  return /* @__PURE__ */ i(th, { ...a, ...s, ref: r });
@@ -11915,7 +11915,7 @@ var Sh = "DropdownMenuSubContent", Rh = n.forwardRef((e, r) => {
11915
11915
  );
11916
11916
  });
11917
11917
  Rh.displayName = Sh;
11918
- var ga = If, va = _f, xa = Ff, ya = Zf, Ph = Hf, Wf = $f, Vh = zf, Dh = Bf;
11918
+ var ga = If, va = _f, xa = Ff, ya = Zf, Ph = Hf, Wf = zf, Vh = $f, Dh = Bf;
11919
11919
  function s4({ trigger: e, items: r, align: t = "end", size: s = "md", className: a }) {
11920
11920
  return /* @__PURE__ */ N(ga, { children: [
11921
11921
  /* @__PURE__ */ i(va, { asChild: !0, children: e }),
@@ -12067,10 +12067,10 @@ Zh.displayName = "MetricCard";
12067
12067
  function Hh({ title: e = "No records found", description: r, action: t, colSpan: s = 1, className: a }) {
12068
12068
  return /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { colSpan: s, children: /* @__PURE__ */ i(_c, { variant: "table", title: e, description: r, primaryAction: t, className: a }) }) });
12069
12069
  }
12070
- function $h({ title: e = "Unable to load records", description: r, action: t, colSpan: s = 1, className: a }) {
12070
+ function zh({ title: e = "Unable to load records", description: r, action: t, colSpan: s = 1, className: a }) {
12071
12071
  return /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { colSpan: s, children: /* @__PURE__ */ i(Fc, { variant: "table", title: e, description: r, retryAction: t, className: a }) }) });
12072
12072
  }
12073
- function zh(e, r) {
12073
+ function $h(e, r) {
12074
12074
  if (r <= 7) return Array.from({ length: r }, (s, a) => a + 1);
12075
12075
  const t = [1];
12076
12076
  e > 3 && t.push("...");
@@ -12089,7 +12089,7 @@ function Bh({
12089
12089
  itemLabel: c = "items",
12090
12090
  className: f
12091
12091
  }) {
12092
- const d = zh(e, Math.max(1, r));
12092
+ const d = $h(e, Math.max(1, r));
12093
12093
  return /* @__PURE__ */ N("nav", { className: E("bfrs-flex bfrs-flex-wrap bfrs-items-center bfrs-justify-between bfrs-gap-3 bfrs-border-t bfrs-border-border bfrs-bg-surface-card bfrs-px-5 bfrs-py-3", f), "aria-label": "Table pagination", children: [
12094
12094
  /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-items-center bfrs-gap-2 bfrs-text-xs bfrs-text-text-muted", children: [
12095
12095
  l && t && /* @__PURE__ */ N(Ce, { children: [
@@ -12211,7 +12211,7 @@ function o4({
12211
12211
  onPinLeadingColumnChange: k,
12212
12212
  enableColumnReordering: M = !0,
12213
12213
  resetKey: V,
12214
- showSortIcon: $ = "always",
12214
+ showSortIcon: z = "always",
12215
12215
  leadingColumn: R,
12216
12216
  rowActions: H,
12217
12217
  rowActionsHeader: Y = "Action",
@@ -12228,7 +12228,7 @@ function o4({
12228
12228
  headerClassName: le,
12229
12229
  rowClassName: ce,
12230
12230
  cellClassName: ie,
12231
- onRowClick: z,
12231
+ onRowClick: $,
12232
12232
  "aria-label": te = "Data table"
12233
12233
  }) {
12234
12234
  const [K, re] = ae(u), [se, Q] = ae(() => h ?? r.map((_) => _.id)), [ue, pe] = ae(w), [Fe, Ke] = ae(S), [De, Ye] = ae(null), [fr, Er] = ae(null), [Fs, Vt] = ae(null), he = d ? b === void 0 ? K : b : null, nr = xe(() => r.map((_) => _.id), [r]), ct = xe(() => new Map(r.map((_) => [_.id, _])), [r]);
@@ -12288,19 +12288,19 @@ function o4({
12288
12288
  }, b0 = (_, U) => {
12289
12289
  M && (_.preventDefault(), Er(U));
12290
12290
  }, u0 = (_, U) => {
12291
- var Ee, zr;
12291
+ var Ee, $r;
12292
12292
  if (!M) return;
12293
12293
  if (_.preventDefault(), De === null || De === U) {
12294
12294
  Ye(null), Er(null);
12295
12295
  return;
12296
12296
  }
12297
- const ge = (Ee = me[De]) == null ? void 0 : Ee.id, be = (zr = me[U]) == null ? void 0 : zr.id;
12297
+ const ge = (Ee = me[De]) == null ? void 0 : Ee.id, be = ($r = me[U]) == null ? void 0 : $r.id;
12298
12298
  ge && be && (c0(Yh(v ?? se, ge, be)), De < ke && Aa(Math.min(ke, U + 1))), Ye(null), Er(null);
12299
12299
  }, Hs = (_, U = 20) => ({
12300
12300
  position: "sticky",
12301
12301
  left: _,
12302
12302
  zIndex: U
12303
- }), $s = (_, U = 10) => ({
12303
+ }), zs = (_, U = 10) => ({
12304
12304
  position: "sticky",
12305
12305
  left: _,
12306
12306
  zIndex: U
@@ -12356,13 +12356,13 @@ function o4({
12356
12356
  }
12357
12357
  ),
12358
12358
  me.map((_, U) => {
12359
- const ge = (he == null ? void 0 : he.columnId) === _.id, be = U < ke, Ee = U === ke - 1, zr = {
12359
+ const ge = (he == null ? void 0 : he.columnId) === _.id, be = U < ke, Ee = U === ke - 1, $r = {
12360
12360
  width: _.width,
12361
12361
  minWidth: _.minWidth ?? _.width,
12362
12362
  textAlign: _.align,
12363
12363
  ...be ? Hs(Ra(U), 22) : {},
12364
12364
  ..._.headerStyle
12365
- }, Mr = d && _.sortable, Br = Mr && $ === "always" && !ge, ye = Mr && ge && $ !== "never";
12365
+ }, Mr = d && _.sortable, Br = Mr && z === "always" && !ge, ye = Mr && ge && z !== "never";
12366
12366
  return /* @__PURE__ */ i(
12367
12367
  "th",
12368
12368
  {
@@ -12386,7 +12386,7 @@ function o4({
12386
12386
  be && !Ee && "bfrs-shadow-none",
12387
12387
  _.headerClassName
12388
12388
  ),
12389
- style: zr,
12389
+ style: $r,
12390
12390
  children: /* @__PURE__ */ N("span", { className: E("bfrs-inline-flex bfrs-max-w-full bfrs-items-center bfrs-gap-1.5", _.align === "right" && "bfrs-justify-end", _.align === "center" && "bfrs-justify-center"), children: [
12391
12391
  Mr ? /* @__PURE__ */ N(
12392
12392
  "button",
@@ -12428,21 +12428,21 @@ function o4({
12428
12428
  }
12429
12429
  )
12430
12430
  ] }) }),
12431
- /* @__PURE__ */ i("tbody", { children: s ? /* @__PURE__ */ i(Gh, { rows: 5, columns: Tt, density: J }) : a ? /* @__PURE__ */ i($h, { description: a, colSpan: Tt }) : ft.length === 0 ? o ? /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { colSpan: Tt, children: o }) }) : /* @__PURE__ */ i(Hh, { title: l, description: c, colSpan: Tt }) : ft.map((_, U) => {
12432
- const ge = Os(_, U), be = I.includes(ge), Ee = Fs === ge, zr = typeof ce == "function" ? ce(_, U) : ce, Mr = { rowIndex: U, selected: be, hovered: Ee }, Br = E("group-hover/row:bfrs-bg-surface-app", be && "bfrs-bg-surface-app");
12431
+ /* @__PURE__ */ i("tbody", { children: s ? /* @__PURE__ */ i(Gh, { rows: 5, columns: Tt, density: J }) : a ? /* @__PURE__ */ i(zh, { description: a, colSpan: Tt }) : ft.length === 0 ? o ? /* @__PURE__ */ i("tr", { children: /* @__PURE__ */ i("td", { colSpan: Tt, children: o }) }) : /* @__PURE__ */ i(Hh, { title: l, description: c, colSpan: Tt }) : ft.map((_, U) => {
12432
+ const ge = Os(_, U), be = I.includes(ge), Ee = Fs === ge, $r = typeof ce == "function" ? ce(_, U) : ce, Mr = { rowIndex: U, selected: be, hovered: Ee }, Br = E("group-hover/row:bfrs-bg-surface-app", be && "bfrs-bg-surface-app");
12433
12433
  return /* @__PURE__ */ N(
12434
12434
  "tr",
12435
12435
  {
12436
- className: E("bfrs-group/row bfrs-bg-surface-card bfrs-transition hover:bfrs-bg-surface-app", be && "bfrs-bg-surface-app", z && "bfrs-cursor-pointer", zr),
12436
+ className: E("bfrs-group/row bfrs-bg-surface-card bfrs-transition hover:bfrs-bg-surface-app", be && "bfrs-bg-surface-app", $ && "bfrs-cursor-pointer", $r),
12437
12437
  onMouseEnter: () => Vt(ge),
12438
12438
  onMouseLeave: () => Vt(null),
12439
- onClick: () => z == null ? void 0 : z(_),
12439
+ onClick: () => $ == null ? void 0 : $(_),
12440
12440
  children: [
12441
12441
  Dt && /* @__PURE__ */ i(
12442
12442
  "td",
12443
12443
  {
12444
12444
  className: E("bfrs-border-b bfrs-border-border bfrs-bg-surface-card bfrs-align-middle", or[J].cell, Br, Cr && "bfrs-shadow-[3px_0_8px_rgba(0,0,0,0.05)]"),
12445
- style: { width: Rr, minWidth: Rr, ...Cr ? $s(0, 14) : {} },
12445
+ style: { width: Rr, minWidth: Rr, ...Cr ? zs(0, 14) : {} },
12446
12446
  onClick: (ye) => ye.stopPropagation(),
12447
12447
  children: /* @__PURE__ */ i("div", { className: "bfrs-flex bfrs-items-center bfrs-justify-center", children: /* @__PURE__ */ i("input", { type: "checkbox", checked: be, onChange: () => Sa(ge), "aria-label": `Select row ${U + 1}`, className: Gt }) })
12448
12448
  }
@@ -12454,7 +12454,7 @@ function o4({
12454
12454
  style: {
12455
12455
  width: R.width,
12456
12456
  minWidth: R.minWidth ?? R.width ?? nn,
12457
- ...Re ? $s(Cr ? Rr : 0, 13) : {},
12457
+ ...Re ? zs(Cr ? Rr : 0, 13) : {},
12458
12458
  ...R.style
12459
12459
  },
12460
12460
  onClick: L ? (ye) => ye.stopPropagation() : void 0,
@@ -12482,7 +12482,7 @@ function o4({
12482
12482
  width: ye.width,
12483
12483
  minWidth: ye.minWidth ?? ye.width,
12484
12484
  textAlign: ye.align,
12485
- ...Da ? $s(Ra(Oe), 12) : {},
12485
+ ...Da ? zs(Ra(Oe), 12) : {},
12486
12486
  ...ye.style
12487
12487
  },
12488
12488
  children: ye.cell ? ye.cell(_, { value: Va, rowIndex: U, selected: be, hovered: Ee }) : String(Va ?? "")
@@ -12566,7 +12566,7 @@ function l4({ row: e, getItems: r, label: t = "Row actions" }) {
12566
12566
  return /* @__PURE__ */ i(
12567
12567
  qh,
12568
12568
  {
12569
- trigger: /* @__PURE__ */ i(ze, { "aria-label": t, icon: /* @__PURE__ */ i(w1, { size: 18, weight: "bold" }), variant: "ghost", size: "sm" }),
12569
+ trigger: /* @__PURE__ */ i($e, { "aria-label": t, icon: /* @__PURE__ */ i(w1, { size: 18, weight: "bold" }), variant: "ghost", size: "sm" }),
12570
12570
  items: r(e)
12571
12571
  }
12572
12572
  );
@@ -12882,7 +12882,7 @@ const i6 = G(
12882
12882
  ...m,
12883
12883
  children: [
12884
12884
  /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-min-w-0 bfrs-items-start bfrs-gap-3", children: [
12885
- o && /* @__PURE__ */ i(ze, { "aria-label": l, icon: /* @__PURE__ */ i(u1, { size: 16 }), size: "sm", variant: "outline", onClick: o }),
12885
+ o && /* @__PURE__ */ i($e, { "aria-label": l, icon: /* @__PURE__ */ i(u1, { size: 16 }), size: "sm", variant: "outline", onClick: o }),
12886
12886
  /* @__PURE__ */ N("div", { className: "bfrs-min-w-0", children: [
12887
12887
  a,
12888
12888
  s && /* @__PURE__ */ i("div", { className: "bfrs-mb-1 bfrs-text-[10.5px] bfrs-font-bold bfrs-uppercase bfrs-tracking-[0.08em] bfrs-text-primary", children: s }),
@@ -13210,18 +13210,18 @@ function N6({
13210
13210
  cancelLabel: k = "Cancel",
13211
13211
  clearLabel: M = "Clear",
13212
13212
  formatDate: V = n0,
13213
- formatRange: $,
13213
+ formatRange: z,
13214
13214
  triggerClassName: R,
13215
13215
  contentClassName: H,
13216
13216
  calendarClassName: Y,
13217
13217
  ...D
13218
13218
  }) {
13219
- const [j, L] = ae(t ?? {}), I = r ?? j, [O, T] = ae(y), P = x ?? O, [J, Z] = ae(I.preset ?? Ze), [q, le] = ae(I), [ce, ie] = ae(), [z, te] = ae(!1), [K, re] = ae(() => on(I, v)), se = xe(() => Yr(K.year, K.month, 1), [K]), Q = $e(
13219
+ const [j, L] = ae(t ?? {}), I = r ?? j, [O, T] = ae(y), P = x ?? O, [J, Z] = ae(I.preset ?? Ze), [q, le] = ae(I), [ce, ie] = ae(), [$, te] = ae(!1), [K, re] = ae(() => on(I, v)), se = xe(() => Yr(K.year, K.month, 1), [K]), Q = ze(
13220
13220
  (ee) => {
13221
13221
  x === void 0 && T(ee), w == null || w(ee);
13222
13222
  },
13223
13223
  [x, w]
13224
- ), ue = $e(
13224
+ ), ue = ze(
13225
13225
  (ee) => {
13226
13226
  r === void 0 && L(ee), s == null || s(ee);
13227
13227
  },
@@ -13231,16 +13231,16 @@ function N6({
13231
13231
  P && (le(I), Z(I.preset ?? (Ur(I) ? Ze : "")), ie(void 0), te(!1), re(on(I, v)));
13232
13232
  }, [I, v, P]);
13233
13233
  const pe = xe(() => {
13234
- if ($)
13235
- return $(I);
13234
+ if (z)
13235
+ return z(I);
13236
13236
  const ee = w6(a, I.preset);
13237
13237
  return ee && I.preset !== Ze ? ee : Ur(I) ? Sn(I.from, I.to) ? V(I.from) : `${V(I.from)} - ${V(I.to)}` : o;
13238
- }, [I, V, $, o, a]), Fe = $e(
13238
+ }, [I, V, z, o, a]), Fe = ze(
13239
13239
  (ee) => {
13240
13240
  const me = ur(ee), ke = u ? ur(u) : void 0, Re = m ? ur(m) : void 0;
13241
- return !!(ke && rt(me, ke) < 0 || Re && rt(me, Re) > 0 || z && q.from && p && g6(me, q.from) + 1 > p);
13241
+ return !!(ke && rt(me, ke) < 0 || Re && rt(me, Re) > 0 || $ && q.from && p && g6(me, q.from) + 1 > p);
13242
13242
  },
13243
- [z, q.from, m, p, u]
13243
+ [$, q.from, m, p, u]
13244
13244
  ), Ke = (ee) => {
13245
13245
  if (ee.disabled) return;
13246
13246
  const me = ee.getRange(), ke = Rn(me.from, me.to);
@@ -13254,7 +13254,7 @@ function N6({
13254
13254
  }, Ye = (ee) => {
13255
13255
  if (Fe(ee)) return;
13256
13256
  const me = ur(ee);
13257
- if (!z || !q.from || q.to) {
13257
+ if (!$ || !q.from || q.to) {
13258
13258
  le({ preset: Ze, from: me, to: void 0 }), Z(Ze), te(!0);
13259
13259
  return;
13260
13260
  }
@@ -13352,7 +13352,7 @@ function N6({
13352
13352
  from: q.from,
13353
13353
  to: q.to,
13354
13354
  hovered: ce,
13355
- awaitingTo: z,
13355
+ awaitingTo: $,
13356
13356
  isDateDisabled: Fe,
13357
13357
  onSelectDate: Ye,
13358
13358
  onHoverDate: ie,
@@ -13369,7 +13369,7 @@ function N6({
13369
13369
  from: q.from,
13370
13370
  to: q.to,
13371
13371
  hovered: ce,
13372
- awaitingTo: z,
13372
+ awaitingTo: $,
13373
13373
  isDateDisabled: Fe,
13374
13374
  onSelectDate: Ye,
13375
13375
  onHoverDate: ie,
@@ -13454,29 +13454,46 @@ function p4({
13454
13454
  ) });
13455
13455
  }
13456
13456
  const E6 = G(
13457
- ({ className: e, value: r, onValueChange: t, onSubmit: s, loading: a, disabled: o, attachmentSlot: l, actionSlot: c, placeholder: f = "Ask me anything", ...d }, b) => /* @__PURE__ */ N("form", { onSubmit: (m) => {
13458
- m.preventDefault(), !o && !a && r.trim() && (s == null || s());
13459
- }, className: E("bfrs-flex bfrs-min-h-14 bfrs-items-end bfrs-gap-2 bfrs-rounded-lg bfrs-border bfrs-border-border bfrs-bg-surface-card bfrs-p-2 bfrs-shadow-low focus-within:bfrs-border-border-focus focus-within:bfrs-ring-2 focus-within:bfrs-ring-border-focus/20", e), children: [
13460
- l ?? /* @__PURE__ */ i(ze, { "aria-label": "Attach file", type: "button", icon: /* @__PURE__ */ i(M1, { size: 18 }), variant: "ghost", size: "sm", disabled: o }),
13461
- /* @__PURE__ */ i(
13462
- "textarea",
13457
+ ({ className: e, value: r, onValueChange: t, onSubmit: s, loading: a, disabled: o, size: l = "md", attachmentSlot: c, actionSlot: f, placeholder: d = "Ask me anything", ...b }, u) => {
13458
+ const m = l === "sm", p = m ? 16 : 18, v = m ? "xs" : "sm";
13459
+ return /* @__PURE__ */ N(
13460
+ "form",
13463
13461
  {
13464
- ref: b,
13465
- value: r,
13466
- disabled: o,
13467
- placeholder: f,
13468
- rows: 1,
13469
- className: "bfrs-max-h-36 bfrs-min-h-9 bfrs-flex-1 bfrs-resize-none bfrs-bg-transparent bfrs-px-1 bfrs-py-2 bfrs-text-base bfrs-leading-5 bfrs-text-text-primary bfrs-outline-none placeholder:bfrs-text-text-disabled disabled:bfrs-cursor-not-allowed",
13470
- onChange: (m) => t(m.target.value),
13471
- onKeyDown: (m) => {
13472
- m.key === "Enter" && !m.shiftKey && (m.preventDefault(), r.trim() && (s == null || s()));
13462
+ onSubmit: (g) => {
13463
+ g.preventDefault(), !o && !a && r.trim() && (s == null || s());
13473
13464
  },
13474
- ...d
13465
+ className: E(
13466
+ "bfrs-flex bfrs-items-end bfrs-rounded-lg bfrs-border bfrs-border-border bfrs-bg-surface-card bfrs-shadow-low focus-within:bfrs-border-border-focus focus-within:bfrs-ring-2 focus-within:bfrs-ring-border-focus/20",
13467
+ m ? "bfrs-min-h-11 bfrs-gap-1.5 bfrs-p-1.5" : "bfrs-min-h-14 bfrs-gap-2 bfrs-p-2",
13468
+ e
13469
+ ),
13470
+ children: [
13471
+ c ?? /* @__PURE__ */ i($e, { "aria-label": "Attach file", type: "button", icon: /* @__PURE__ */ i(M1, { size: p }), variant: "ghost", size: v, disabled: o }),
13472
+ /* @__PURE__ */ i(
13473
+ "textarea",
13474
+ {
13475
+ ref: u,
13476
+ value: r,
13477
+ disabled: o,
13478
+ placeholder: d,
13479
+ rows: 1,
13480
+ className: E(
13481
+ "bfrs-flex-1 bfrs-resize-none bfrs-bg-transparent bfrs-px-1 bfrs-leading-5 bfrs-text-text-primary bfrs-outline-none placeholder:bfrs-text-text-disabled disabled:bfrs-cursor-not-allowed",
13482
+ m ? "bfrs-max-h-28 bfrs-min-h-7 bfrs-py-1.5 bfrs-text-sm" : "bfrs-max-h-36 bfrs-min-h-9 bfrs-py-2 bfrs-text-base"
13483
+ ),
13484
+ onChange: (g) => t(g.target.value),
13485
+ onKeyDown: (g) => {
13486
+ g.key === "Enter" && !g.shiftKey && (g.preventDefault(), r.trim() && (s == null || s()));
13487
+ },
13488
+ ...b
13489
+ }
13490
+ ),
13491
+ f,
13492
+ /* @__PURE__ */ i($e, { "aria-label": "Send message", type: "submit", icon: /* @__PURE__ */ i(Qo, { size: p, weight: "bold" }), variant: "primary", size: v, loading: a, disabled: o || !r.trim() })
13493
+ ]
13475
13494
  }
13476
- ),
13477
- c,
13478
- /* @__PURE__ */ i(ze, { "aria-label": "Send message", type: "submit", icon: /* @__PURE__ */ i(Qo, { size: 18, weight: "bold" }), variant: "primary", size: "sm", loading: a, disabled: o || !r.trim() })
13479
- ] })
13495
+ );
13496
+ }
13480
13497
  );
13481
13498
  E6.displayName = "ChatComposer";
13482
13499
  const C6 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%201599%20794'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame%202055247464'%3e%3cpath%20id='Vector%201'%20d='M0.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%202'%20d='M34.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%203'%20d='M68.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%204'%20d='M102.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%205'%20d='M136.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%206'%20d='M170.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%207'%20d='M204.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%208'%20d='M238.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%209'%20d='M272.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2010'%20d='M306.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2011'%20d='M340.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2012'%20d='M374.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2013'%20d='M408.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2014'%20d='M442.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2015'%20d='M476.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2016'%20d='M510.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2017'%20d='M544.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2018'%20d='M578.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2019'%20d='M612.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2020'%20d='M646.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2021'%20d='M680.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2022'%20d='M714.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2023'%20d='M748.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2024'%20d='M782.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2025'%20d='M816.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2026'%20d='M850.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2027'%20d='M884.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2028'%20d='M918.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2029'%20d='M952.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2030'%20d='M986.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2031'%20d='M1020.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2032'%20d='M1054.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2033'%20d='M1088.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2034'%20d='M1122.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2035'%20d='M1156.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2036'%20d='M1190.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2037'%20d='M1224.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2038'%20d='M1258.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2039'%20d='M1292.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2040'%20d='M1326.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2041'%20d='M1360.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2042'%20d='M1394.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2043'%20d='M1428.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2044'%20d='M1462.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2045'%20d='M1496.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2046'%20d='M1530.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2047'%20d='M1564.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2048'%20d='M1598.5%200V794'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3c/g%3e%3c/svg%3e", M6 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%20817%201664'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Frame%202055247465'%3e%3cpath%20id='Vector%2024'%20d='M0.5%200L0.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2025'%20d='M34.5%200L34.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2026'%20d='M68.5%200L68.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2027'%20d='M102.5%200L102.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2028'%20d='M136.5%200L136.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2029'%20d='M170.5%200L170.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2030'%20d='M204.5%200L204.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2031'%20d='M238.5%200L238.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2032'%20d='M272.5%200L272.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2033'%20d='M306.5%200L306.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2034'%20d='M340.5%200L340.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2035'%20d='M374.5%200L374.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2036'%20d='M408.5%200L408.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2037'%20d='M442.5%200L442.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2038'%20d='M476.5%200L476.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2039'%20d='M510.5%200L510.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2040'%20d='M544.5%200L544.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2041'%20d='M578.5%200L578.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2042'%20d='M612.5%200L612.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2043'%20d='M646.5%200L646.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2044'%20d='M680.5%200L680.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2045'%20d='M714.5%200L714.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2046'%20d='M748.5%200L748.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2047'%20d='M782.5%200L782.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3cpath%20id='Vector%2048'%20d='M816.5%200L816.5%201664'%20stroke='var(--stroke-0,%20%23DBFDE1)'%20stroke-opacity='0.2'/%3e%3c/g%3e%3c/svg%3e", A6 = "data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20width='100%25'%20height='100%25'%20overflow='visible'%20style='display:%20block;'%20viewBox='0%200%20873%20936.673'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group%201597883244'%20opacity='0.02'%3e%3cpath%20id='Path%2018565'%20fill-rule='evenodd'%20clip-rule='evenodd'%20d='M333.238%20653.308L589.218%20510.705C596.909%20506.53%20603.324%20500.388%20607.792%20492.926C612.26%20485.465%20614.617%20476.957%20614.617%20468.288C614.617%20459.618%20612.26%20451.104%20607.792%20443.642C603.324%20436.18%20596.909%20430.045%20589.218%20425.871L338.75%20286.317C331.211%20280.978%20322.336%20277.786%20313.088%20277.078C303.841%20276.37%20294.573%20278.172%20286.292%20282.301C278.011%20286.429%20271.033%20292.72%20266.115%20300.49C261.197%20308.26%20258.527%20317.213%20258.396%20326.377V610.165C258.524%20618.775%20260.902%20627.21%20265.299%20634.646C269.695%20642.082%20275.961%20648.269%20283.49%20652.609C291.019%20656.949%20299.555%20659.291%20308.271%20659.415C316.986%20659.538%20325.586%20657.434%20333.238%20653.308ZM376.654%20225.765L705.175%20408.798C715.388%20414.48%20726.911%20417.468%20738.632%20417.468C750.353%20417.468%20761.877%20414.48%20772.09%20408.798L774.363%20407.537C782.054%20403.363%20788.469%20397.221%20792.937%20389.759C797.405%20382.297%20799.763%20373.79%20799.763%20365.12C799.763%20356.45%20797.405%20347.936%20792.937%20340.474C788.469%20333.013%20782.054%20326.877%20774.363%20322.703L338.75%2079.9887C331.202%2074.6902%20322.333%2071.5264%20313.1%2070.8391C303.866%2070.1518%20294.618%2071.9677%20286.351%2076.089C278.084%2080.2103%20271.112%2086.4774%20266.186%2094.2237C261.26%20101.97%20258.566%20110.901%20258.396%20120.048V124.763C258.353%20126.786%20257.777%20128.763%20256.726%20130.5C255.675%20132.236%20254.185%20133.673%20252.401%20134.667C250.618%20135.661%20248.603%20136.177%20246.555%20136.168C244.507%20136.159%20242.497%20135.629%20240.722%20134.619L193.185%20108.143C191.064%20106.995%20189.37%20105.21%20188.348%20103.044C187.326%20100.878%20187.03%2098.4452%20187.503%2096.1016C191.953%2076.7875%20201.039%2058.8154%20213.995%2043.6988C226.951%2028.5821%20243.397%2016.7651%20261.946%209.2456C280.494%201.72608%20300.6%20-1.27525%20320.569%200.493518C340.538%202.26229%20359.784%208.75025%20376.682%2019.4095L811.046%20261.445C829.737%20271.63%20845.335%20286.568%20856.227%20304.705C867.119%20322.842%20872.909%20343.524%20872.999%20364.613C873.089%20385.702%20867.475%20406.431%20856.738%20424.657C846.001%20442.884%20830.53%20457.948%20811.926%20468.288L294.111%20756.757C283.328%20762.679%20274.336%20771.333%20268.059%20781.827C261.782%20792.321%20258.446%20804.276%20258.396%20816.466C258.566%20825.612%20261.26%20834.544%20266.186%20842.29C271.112%20850.036%20278.084%20856.303%20286.351%20860.425C294.618%20864.546%20303.866%20866.362%20313.1%20865.675C322.333%20864.987%20331.202%20861.823%20338.75%20856.525L774.363%20613.811C782.054%20609.636%20788.469%20603.501%20792.937%20596.039C797.405%20588.577%20799.763%20580.063%20799.763%20571.394C799.763%20562.724%20797.405%20554.217%20792.937%20546.755C788.469%20539.293%20782.054%20533.151%20774.363%20528.977L770.13%20526.619C768.353%20525.648%20766.872%20524.228%20765.841%20522.5C764.81%20520.772%20764.266%20518.803%20764.266%20516.798C764.266%20514.792%20764.81%20512.816%20765.841%20511.089C766.872%20509.361%20768.353%20507.941%20770.13%20506.97L817.58%20480.521C819.72%20479.322%20822.18%20478.801%20824.629%20479.027C827.078%20479.253%20829.398%20480.219%20831.276%20481.789C845.94%20494.233%20857.336%20510%20864.489%20527.743C871.642%20545.485%20874.34%20564.671%20872.352%20583.668C870.364%20602.665%20863.749%20620.904%20853.072%20636.825C842.396%20652.746%20827.977%20665.88%20811.046%20675.096L376.682%20917.104C358.172%20928.886%20336.826%20935.6%20314.829%20936.555C292.831%20937.51%20270.972%20932.678%20251.487%20922.546C232.002%20912.414%20215.593%20897.344%20203.936%20878.888C192.279%20860.433%20185.794%20839.252%20185.145%20817.507V235.758C185.098%20225.013%20182.158%20214.475%20176.625%20205.225C171.092%20195.975%20163.166%20188.345%20153.662%20183.122C146.113%20177.824%20137.245%20174.667%20128.012%20173.979C118.778%20173.292%20109.529%20175.101%20101.263%20179.222C92.9958%20183.344%2086.0237%20189.618%2081.0976%20197.364C76.1715%20205.11%2073.4782%20214.035%2073.3074%20223.181V713.27C73.4731%20722.42%2076.1631%20731.351%2081.0872%20739.102C86.0113%20746.852%2092.9827%20753.132%20101.25%20757.257C109.518%20761.382%20118.769%20763.193%20128.005%20762.507C137.24%20761.821%20146.111%20758.664%20153.662%20753.364C155.435%20752.356%20157.442%20751.818%20159.488%20751.808C161.534%20751.798%20163.547%20752.311%20165.33%20753.303C167.113%20754.294%20168.603%20755.73%20169.656%20757.463C170.709%20759.195%20171.288%20761.165%20171.336%20763.185V815.904C171.319%20818.32%20170.53%20820.674%20169.08%20822.62C167.631%20824.566%20165.596%20826.005%20163.266%20826.739C144.844%20832.993%20125.184%20834.845%20105.898%20832.14C86.6124%20829.435%2068.25%20822.254%2052.3178%20811.181C36.3857%20800.109%2023.3377%20785.461%2014.2434%20768.442C5.14902%20751.423%200.267694%20732.514%200%20713.27V223.181C0.404047%20201.956%206.38337%20181.199%2017.3529%20162.945C28.3223%20144.69%2043.9053%20129.567%2062.5733%20119.054C81.2413%20108.542%20102.354%20103.006%20123.842%20102.983C145.329%20102.96%20166.453%20108.452%20185.145%20118.924C249%20154.539%20312.846%20190.142%20376.682%20225.738L376.654%20225.765Z'%20fill='var(--fill-0,%20%2306064D)'/%3e%3cpath%20id='Path%2018566'%20d='M325.649%20559.51C325.634%20562.916%20326.572%20566.254%20328.358%20569.167C330.144%20572.08%20332.708%20574.449%20335.77%20576.014C338.831%20577.579%20342.272%20578.279%20345.71%20578.036C349.149%20577.793%20352.451%20576.616%20355.256%20574.636L515.822%20483.038C518.667%20481.417%20521.029%20479.089%20522.671%20476.28C524.313%20473.471%20525.179%20470.285%20525.179%20467.041C525.179%20463.797%20524.313%20460.605%20522.671%20457.796C521.029%20454.987%20518.667%20452.659%20515.822%20451.038L355.256%20359.439C352.446%20357.469%20349.142%20356.297%20345.705%20356.061C342.268%20355.824%20338.832%20356.53%20335.773%20358.096C332.714%20359.662%20330.152%20362.032%20328.366%20364.943C326.58%20367.854%20325.639%20371.189%20325.649%20374.593V559.51Z'%20fill='var(--fill-0,%20%2318F040)'/%3e%3c/g%3e%3c/svg%3e", k6 = Array.from({ length: 12 }, (e, r) => r);
@@ -13871,7 +13888,7 @@ const Vo = (e) => e === void 0 || e === "" ? [] : Array.isArray(e) ? e : [e], H6
13871
13888
  }
13872
13889
  );
13873
13890
  H6.displayName = "Accordion";
13874
- const $6 = G(({ className: e, items: r = [], totalLabel: t, totalValue: s, note: a, ...o }, l) => /* @__PURE__ */ N("div", { ref: l, className: E("bfrs-rounded-xl bfrs-border bfrs-border-border bfrs-bg-primary-soft bfrs-px-4 bfrs-py-3", e), ...o, children: [
13891
+ const z6 = G(({ className: e, items: r = [], totalLabel: t, totalValue: s, note: a, ...o }, l) => /* @__PURE__ */ N("div", { ref: l, className: E("bfrs-rounded-xl bfrs-border bfrs-border-border bfrs-bg-primary-soft bfrs-px-4 bfrs-py-3", e), ...o, children: [
13875
13892
  /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-flex-wrap bfrs-items-center bfrs-gap-x-5 bfrs-gap-y-2", children: [
13876
13893
  r.map((c, f) => /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-items-center bfrs-gap-1.5 bfrs-text-xs bfrs-text-text-secondary", children: [
13877
13894
  /* @__PURE__ */ i("span", { children: c.label }),
@@ -13884,8 +13901,8 @@ const $6 = G(({ className: e, items: r = [], totalLabel: t, totalValue: s, note:
13884
13901
  ] }),
13885
13902
  a && /* @__PURE__ */ i("div", { className: "bfrs-mt-1 bfrs-text-xs bfrs-text-text-muted", children: a })
13886
13903
  ] }));
13887
- $6.displayName = "SummaryBar";
13888
- const z6 = G(({ className: e, title: r, description: t, status: s, statusTone: a = "success", metadata: o = [], actions: l = [], onAction: c, ...f }, d) => /* @__PURE__ */ N("div", { ref: d, className: E("bfrs-rounded-xl bfrs-border bfrs-border-border bfrs-bg-surface-card bfrs-px-4 bfrs-py-3", e), ...f, children: [
13904
+ z6.displayName = "SummaryBar";
13905
+ const $6 = G(({ className: e, title: r, description: t, status: s, statusTone: a = "success", metadata: o = [], actions: l = [], onAction: c, ...f }, d) => /* @__PURE__ */ N("div", { ref: d, className: E("bfrs-rounded-xl bfrs-border bfrs-border-border bfrs-bg-surface-card bfrs-px-4 bfrs-py-3", e), ...f, children: [
13889
13906
  /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-items-start bfrs-gap-3", children: [
13890
13907
  /* @__PURE__ */ N("div", { className: "bfrs-min-w-0 bfrs-flex-1", children: [
13891
13908
  /* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-min-w-0 bfrs-flex-wrap bfrs-items-center bfrs-gap-2", children: [
@@ -13895,7 +13912,7 @@ const z6 = G(({ className: e, title: r, description: t, status: s, statusTone: a
13895
13912
  t && /* @__PURE__ */ i("div", { className: "bfrs-mt-1 bfrs-text-xs bfrs-leading-5 bfrs-text-text-secondary", children: t })
13896
13913
  ] }),
13897
13914
  l.length > 0 && /* @__PURE__ */ i("div", { className: "bfrs-flex bfrs-shrink-0 bfrs-items-center bfrs-gap-1", children: l.map(
13898
- (b) => b.icon ? /* @__PURE__ */ i(ze, { icon: b.icon, "aria-label": b.ariaLabel ?? String(b.label), variant: b.variant ?? "ghost", size: "sm", disabled: b.disabled, onClick: () => c == null ? void 0 : c(b) }, b.id) : /* @__PURE__ */ i(we, { variant: b.variant ?? "ghost", size: "sm", disabled: b.disabled, leftIcon: /* @__PURE__ */ i(A1, { size: 13 }), onClick: () => c == null ? void 0 : c(b), children: b.label }, b.id)
13915
+ (b) => b.icon ? /* @__PURE__ */ i($e, { icon: b.icon, "aria-label": b.ariaLabel ?? String(b.label), variant: b.variant ?? "ghost", size: "sm", disabled: b.disabled, onClick: () => c == null ? void 0 : c(b) }, b.id) : /* @__PURE__ */ i(we, { variant: b.variant ?? "ghost", size: "sm", disabled: b.disabled, leftIcon: /* @__PURE__ */ i(A1, { size: 13 }), onClick: () => c == null ? void 0 : c(b), children: b.label }, b.id)
13899
13916
  ) })
13900
13917
  ] }),
13901
13918
  o.length > 0 && /* @__PURE__ */ i("dl", { className: "bfrs-mt-3 bfrs-grid bfrs-gap-2 md:bfrs-grid-cols-2", children: o.map((b, u) => /* @__PURE__ */ N("div", { className: "bfrs-min-w-0", children: [
@@ -13903,7 +13920,7 @@ const z6 = G(({ className: e, title: r, description: t, status: s, statusTone: a
13903
13920
  /* @__PURE__ */ i("dd", { className: "bfrs-mt-0.5 bfrs-truncate bfrs-text-xs bfrs-font-medium bfrs-text-text-primary", children: b.value })
13904
13921
  ] }, u)) })
13905
13922
  ] }));
13906
- z6.displayName = "EntityDisplayCard";
13923
+ $6.displayName = "EntityDisplayCard";
13907
13924
  function B6(e) {
13908
13925
  return `${typeof e.label == "string" ? e.label : ""} ${e.keywords ?? ""}`.toLowerCase();
13909
13926
  }
@@ -13991,7 +14008,7 @@ function G6({
13991
14008
  children: [
13992
14009
  !t && e,
13993
14010
  a && /* @__PURE__ */ i(
13994
- ze,
14011
+ $e,
13995
14012
  {
13996
14013
  "aria-label": o,
13997
14014
  title: o,
@@ -14177,7 +14194,7 @@ export {
14177
14194
  x8 as Drawer,
14178
14195
  s4 as Dropdown,
14179
14196
  _c as EmptyState,
14180
- z6 as EntityDisplayCard,
14197
+ $6 as EntityDisplayCard,
14181
14198
  Fc as ErrorState,
14182
14199
  c6 as FieldLabel,
14183
14200
  sp as FileDropzone,
@@ -14189,7 +14206,7 @@ export {
14189
14206
  Ed as Grid,
14190
14207
  f6 as HelperText,
14191
14208
  Ga as Icon,
14192
- ze as IconButton,
14209
+ $e as IconButton,
14193
14210
  Hp as InfoCard,
14194
14211
  d6 as InlineError,
14195
14212
  Pi as Input,
@@ -14223,12 +14240,12 @@ export {
14223
14240
  F6 as StepProgressCard,
14224
14241
  O6 as StepProgressCardSkeleton,
14225
14242
  Dm as SuggestInput,
14226
- $6 as SummaryBar,
14243
+ z6 as SummaryBar,
14227
14244
  yp as Switch,
14228
14245
  c4 as TableBulkActions,
14229
14246
  f4 as TableColumnVisibility,
14230
14247
  Hh as TableEmptyState,
14231
- $h as TableErrorState,
14248
+ zh as TableErrorState,
14232
14249
  Bh as TablePagination,
14233
14250
  l4 as TableRowActions,
14234
14251
  Gh as TableSkeleton,
@@ -14236,7 +14253,7 @@ export {
14236
14253
  d4 as Tabs,
14237
14254
  bn as Text,
14238
14255
  L1 as Textarea,
14239
- zp as Tip,
14256
+ $p as Tip,
14240
14257
  Oc as ToastContext,
14241
14258
  a8 as ToastManager,
14242
14259
  e4 as ToastProvider,
@@ -14281,8 +14298,8 @@ export {
14281
14298
  Z4 as spacing,
14282
14299
  ur as startOfDay,
14283
14300
  H4 as tableDensities,
14284
- $4 as typography,
14301
+ z4 as typography,
14285
14302
  Q6 as useToast,
14286
- z4 as zIndex
14303
+ $4 as zIndex
14287
14304
  };
14288
14305
  //# sourceMappingURL=index.js.map