@bfrs/agentic-components 0.3.0 → 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/BFRS_AGENTIC_COMPONENTS.md +18 -1
- package/README.md +15 -1
- package/dist/components/ui/patterns/ChatComposer/ChatComposer.d.ts +4 -0
- package/dist/components/ui/primitives/Text/Text.d.ts +4 -2
- package/dist/custom-elements.js +1064 -1037
- package/dist/custom-elements.js.map +1 -1
- package/dist/font/sfprofonts/SF-Pro-Display-Black.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-BlackItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Bold.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-BoldItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Heavy.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-HeavyItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Light.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-LightItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Medium.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-MediumItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Regular.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-RegularItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Semibold.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-SemiboldItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Thin.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-ThinItalic.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-Ultralight.otf +0 -0
- package/dist/font/sfprofonts/SF-Pro-Display-UltralightItalic.otf +0 -0
- package/dist/fonts.css +152 -0
- package/dist/index.js +281 -253
- package/dist/index.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +8 -2
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
|
|
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
|
|
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
|
-
},
|
|
308
|
-
const r = (t) => t[e] ||
|
|
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,
|
|
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,
|
|
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
|
-
},
|
|
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()],
|
|
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 = () => [
|
|
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],
|
|
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",
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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: [
|
|
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),
|
|
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(
|
|
3028
|
+
return s.startsWith(za) ? {
|
|
3029
3029
|
...t,
|
|
3030
|
-
baseClassName: s.slice(
|
|
3031
|
-
} : s.startsWith(
|
|
3030
|
+
baseClassName: s.slice(za.length)
|
|
3031
|
+
} : s.startsWith($a) ? {
|
|
3032
3032
|
...t,
|
|
3033
|
-
baseClassName: `-${s.slice(
|
|
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 =
|
|
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
|
},
|
|
@@ -3230,6 +3230,7 @@ const Cd = je("bfrs-tracking-normal", {
|
|
|
3230
3230
|
title: "bfrs-text-xl bfrs-font-semibold bfrs-leading-snug",
|
|
3231
3231
|
body: "bfrs-text-base bfrs-font-normal bfrs-leading-7",
|
|
3232
3232
|
"body-sm": "bfrs-text-sm bfrs-font-normal bfrs-leading-[1.45]",
|
|
3233
|
+
"body-xs": "bfrs-text-[12px] bfrs-font-normal bfrs-leading-[1.4]",
|
|
3233
3234
|
caption: "bfrs-text-xs bfrs-font-normal bfrs-leading-normal",
|
|
3234
3235
|
label: "bfrs-text-[10px] bfrs-font-bold bfrs-uppercase bfrs-leading-normal bfrs-tracking-[0.16em]"
|
|
3235
3236
|
},
|
|
@@ -3241,6 +3242,15 @@ const Cd = je("bfrs-tracking-normal", {
|
|
|
3241
3242
|
danger: "bfrs-text-danger",
|
|
3242
3243
|
success: "bfrs-text-success",
|
|
3243
3244
|
accent: "bfrs-text-accent"
|
|
3245
|
+
},
|
|
3246
|
+
// Optional override for each variant's default weight — e.g. make a small
|
|
3247
|
+
// caption bold, or a large heading normal. Applied after the variant class,
|
|
3248
|
+
// so it wins the font-weight conflict via tailwind-merge in cn().
|
|
3249
|
+
weight: {
|
|
3250
|
+
normal: "bfrs-font-normal",
|
|
3251
|
+
medium: "bfrs-font-medium",
|
|
3252
|
+
semibold: "bfrs-font-semibold",
|
|
3253
|
+
bold: "bfrs-font-bold"
|
|
3244
3254
|
}
|
|
3245
3255
|
},
|
|
3246
3256
|
defaultVariants: {
|
|
@@ -3255,11 +3265,12 @@ const Cd = je("bfrs-tracking-normal", {
|
|
|
3255
3265
|
title: "p",
|
|
3256
3266
|
body: "p",
|
|
3257
3267
|
"body-sm": "p",
|
|
3268
|
+
"body-xs": "p",
|
|
3258
3269
|
caption: "p",
|
|
3259
3270
|
label: "span"
|
|
3260
|
-
}, bn = G(({ as: e, className: r, variant: t, tone: s,
|
|
3261
|
-
const
|
|
3262
|
-
return /* @__PURE__ */ i(
|
|
3271
|
+
}, bn = G(({ as: e, className: r, variant: t, tone: s, weight: a, ...o }, l) => {
|
|
3272
|
+
const c = t ?? "body", f = e ?? Md[c];
|
|
3273
|
+
return /* @__PURE__ */ i(f, { ref: l, className: E(Cd({ variant: c, tone: s, weight: a }), r), ...o });
|
|
3263
3274
|
});
|
|
3264
3275
|
bn.displayName = "Text";
|
|
3265
3276
|
const Ad = {
|
|
@@ -3391,8 +3402,8 @@ const Dd = je(
|
|
|
3391
3402
|
)
|
|
3392
3403
|
);
|
|
3393
3404
|
we.displayName = "Button";
|
|
3394
|
-
const
|
|
3395
|
-
|
|
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";
|
|
3396
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: [
|
|
3397
3408
|
r,
|
|
3398
3409
|
t && /* @__PURE__ */ i("span", { className: "bfrs-ml-1 bfrs-text-danger", "aria-hidden": "true", children: "*" })
|
|
@@ -3579,7 +3590,7 @@ const Id = /* @__PURE__ */ new Map([
|
|
|
3579
3590
|
"thin",
|
|
3580
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" }))
|
|
3581
3592
|
]
|
|
3582
|
-
]),
|
|
3593
|
+
]), zd = /* @__PURE__ */ new Map([
|
|
3583
3594
|
[
|
|
3584
3595
|
"bold",
|
|
3585
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" }))
|
|
@@ -3604,7 +3615,7 @@ const Id = /* @__PURE__ */ new Map([
|
|
|
3604
3615
|
"thin",
|
|
3605
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" }))
|
|
3606
3617
|
]
|
|
3607
|
-
]),
|
|
3618
|
+
]), $d = /* @__PURE__ */ new Map([
|
|
3608
3619
|
[
|
|
3609
3620
|
"bold",
|
|
3610
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" }))
|
|
@@ -4332,9 +4343,9 @@ const p1 = ri, ti = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, {
|
|
|
4332
4343
|
ti.displayName = "CaretDownIcon";
|
|
4333
4344
|
const Zr = ti, si = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: Hd }));
|
|
4334
4345
|
si.displayName = "CaretLeftIcon";
|
|
4335
|
-
const ni = si, ai = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights:
|
|
4346
|
+
const ni = si, ai = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: zd }));
|
|
4336
4347
|
ai.displayName = "CaretRightIcon";
|
|
4337
|
-
const Tn = ai, oi = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights:
|
|
4348
|
+
const Tn = ai, oi = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: $d }));
|
|
4338
4349
|
oi.displayName = "CaretUpIcon";
|
|
4339
4350
|
const h1 = oi, ii = n.forwardRef((e, r) => /* @__PURE__ */ n.createElement(fe, { ref: r, ...e, weights: Bd }));
|
|
4340
4351
|
ii.displayName = "CheckIcon";
|
|
@@ -4468,11 +4479,11 @@ const er = Ri, T1 = je(
|
|
|
4468
4479
|
"aria-invalid": k,
|
|
4469
4480
|
"aria-describedby": M,
|
|
4470
4481
|
...V
|
|
4471
|
-
},
|
|
4482
|
+
}, z) => {
|
|
4472
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(
|
|
4473
4484
|
"input",
|
|
4474
4485
|
{
|
|
4475
|
-
ref:
|
|
4486
|
+
ref: z,
|
|
4476
4487
|
id: H,
|
|
4477
4488
|
value: w,
|
|
4478
4489
|
defaultValue: C,
|
|
@@ -4670,7 +4681,7 @@ function oe(...e) {
|
|
|
4670
4681
|
// @__NO_SIDE_EFFECTS__
|
|
4671
4682
|
function Vr(e) {
|
|
4672
4683
|
const r = /* @__PURE__ */ Z1(e), t = n.forwardRef((s, a) => {
|
|
4673
|
-
const { children: o, ...l } = s, c = n.Children.toArray(o), f = c.find(
|
|
4684
|
+
const { children: o, ...l } = s, c = n.Children.toArray(o), f = c.find(z1);
|
|
4674
4685
|
if (f) {
|
|
4675
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);
|
|
4676
4687
|
return /* @__PURE__ */ i(r, { ...l, ref: a, children: n.isValidElement(d) ? n.cloneElement(d, void 0, b) : null });
|
|
@@ -4684,7 +4695,7 @@ function Z1(e) {
|
|
|
4684
4695
|
const r = n.forwardRef((t, s) => {
|
|
4685
4696
|
const { children: a, ...o } = t;
|
|
4686
4697
|
if (n.isValidElement(a)) {
|
|
4687
|
-
const l = B1(a), c =
|
|
4698
|
+
const l = B1(a), c = $1(o, a.props);
|
|
4688
4699
|
return a.type !== n.Fragment && (c.ref = s ? cs(s, l) : l), n.cloneElement(a, c);
|
|
4689
4700
|
}
|
|
4690
4701
|
return n.Children.count(a) > 1 ? n.Children.only(null) : null;
|
|
@@ -4697,10 +4708,10 @@ function H1(e) {
|
|
|
4697
4708
|
const r = ({ children: t }) => /* @__PURE__ */ i(Ce, { children: t });
|
|
4698
4709
|
return r.displayName = `${e}.Slottable`, r.__radixId = Vi, r;
|
|
4699
4710
|
}
|
|
4700
|
-
function
|
|
4711
|
+
function z1(e) {
|
|
4701
4712
|
return n.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === Vi;
|
|
4702
4713
|
}
|
|
4703
|
-
function
|
|
4714
|
+
function $1(e, r) {
|
|
4704
4715
|
const t = { ...r };
|
|
4705
4716
|
for (const s in r) {
|
|
4706
4717
|
const a = e[s], o = r[s];
|
|
@@ -4822,11 +4833,11 @@ var U1 = "DismissableLayer", un = "dismissableLayer.update", K1 = "dismissableLa
|
|
|
4822
4833
|
onDismiss: c,
|
|
4823
4834
|
...f
|
|
4824
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) => {
|
|
4825
|
-
const M = k.target, V = [...d.branches].some((
|
|
4836
|
+
const M = k.target, V = [...d.branches].some((z) => z.contains(M));
|
|
4826
4837
|
!C || V || (a == null || a(k), l == null || l(k), k.defaultPrevented || c == null || c());
|
|
4827
4838
|
}, m), S = Q1((k) => {
|
|
4828
4839
|
const M = k.target;
|
|
4829
|
-
[...d.branches].some((
|
|
4840
|
+
[...d.branches].some((z) => z.contains(M)) || (o == null || o(k), l == null || l(k), k.defaultPrevented || c == null || c());
|
|
4830
4841
|
}, m);
|
|
4831
4842
|
return j1((k) => {
|
|
4832
4843
|
y === d.layers.size - 1 && (s == null || s(k), !k.defaultPrevented && c && (k.preventDefault(), c()));
|
|
@@ -5359,7 +5370,7 @@ const xb = 50, yb = async (e, r, t) => {
|
|
|
5359
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));
|
|
5360
5371
|
let k = S ? S[w] : 0;
|
|
5361
5372
|
(!k || !await (l.isElement == null ? void 0 : l.isElement(S))) && (k = c.floating[w] || o.floating[v]);
|
|
5362
|
-
const M = C / 2 - A / 2, V = k / 2 - h[v] / 2 - 1,
|
|
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;
|
|
5363
5374
|
return {
|
|
5364
5375
|
[p]: m[p] + I,
|
|
5365
5376
|
data: {
|
|
@@ -5399,12 +5410,12 @@ const xb = 50, yb = async (e, r, t) => {
|
|
|
5399
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";
|
|
5400
5411
|
!m && S && A.push(...hb(c, h, v, C));
|
|
5401
5412
|
const k = [c, ...A], M = await f.detectOverflow(r, g), V = [];
|
|
5402
|
-
let
|
|
5413
|
+
let z = ((s = o.flip) == null ? void 0 : s.overflows) || [];
|
|
5403
5414
|
if (b && V.push(M[x]), u) {
|
|
5404
5415
|
const D = db(a, l, C);
|
|
5405
5416
|
V.push(M[D[0]], M[D[1]]);
|
|
5406
5417
|
}
|
|
5407
|
-
if (
|
|
5418
|
+
if (z = [...z, {
|
|
5408
5419
|
placement: a,
|
|
5409
5420
|
overflows: V
|
|
5410
5421
|
}], !V.every((D) => D <= 0)) {
|
|
@@ -5412,22 +5423,22 @@ const xb = 50, yb = async (e, r, t) => {
|
|
|
5412
5423
|
const D = (((R = o.flip) == null ? void 0 : R.index) || 0) + 1, j = k[D];
|
|
5413
5424
|
if (j && (!(u === "alignment" ? y !== Je(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
5414
5425
|
// overflows the main axis.
|
|
5415
|
-
|
|
5426
|
+
z.every((O) => Je(O.placement) === y ? O.overflows[0] > 0 : !0)))
|
|
5416
5427
|
return {
|
|
5417
5428
|
data: {
|
|
5418
5429
|
index: D,
|
|
5419
|
-
overflows:
|
|
5430
|
+
overflows: z
|
|
5420
5431
|
},
|
|
5421
5432
|
reset: {
|
|
5422
5433
|
placement: j
|
|
5423
5434
|
}
|
|
5424
5435
|
};
|
|
5425
|
-
let L = (H =
|
|
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;
|
|
5426
5437
|
if (!L)
|
|
5427
5438
|
switch (p) {
|
|
5428
5439
|
case "bestFit": {
|
|
5429
5440
|
var Y;
|
|
5430
|
-
const I = (Y =
|
|
5441
|
+
const I = (Y = z.filter((O) => {
|
|
5431
5442
|
if (S) {
|
|
5432
5443
|
const T = Je(O.placement);
|
|
5433
5444
|
return T === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -5680,8 +5691,8 @@ const Mb = function(e) {
|
|
|
5680
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;
|
|
5681
5692
|
let k = C, M = A;
|
|
5682
5693
|
if ((t = r.middlewareData.shift) != null && t.enabled.x && (M = w), (s = r.middlewareData.shift) != null && s.enabled.y && (k = y), S && !m) {
|
|
5683
|
-
const
|
|
5684
|
-
p ? M = v - 2 * (
|
|
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));
|
|
5685
5696
|
}
|
|
5686
5697
|
await f({
|
|
5687
5698
|
...r,
|
|
@@ -5749,14 +5760,14 @@ function bs(e) {
|
|
|
5749
5760
|
}
|
|
5750
5761
|
const Pb = /transform|translate|scale|rotate|perspective|filter/, Vb = /paint|layout|strict|content/, Sr = (e) => !!e && e !== "none";
|
|
5751
5762
|
let Us;
|
|
5752
|
-
function
|
|
5763
|
+
function zn(e) {
|
|
5753
5764
|
const r = Be(e) ? We(e) : e;
|
|
5754
|
-
return Sr(r.transform) || Sr(r.translate) || Sr(r.scale) || Sr(r.rotate) || Sr(r.perspective) ||
|
|
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 || "");
|
|
5755
5766
|
}
|
|
5756
5767
|
function Db(e) {
|
|
5757
5768
|
let r = gr(e);
|
|
5758
5769
|
for (; cr(r) && !Jr(r); ) {
|
|
5759
|
-
if (
|
|
5770
|
+
if (zn(r))
|
|
5760
5771
|
return r;
|
|
5761
5772
|
if (bs(r))
|
|
5762
5773
|
return null;
|
|
@@ -5764,7 +5775,7 @@ function Db(e) {
|
|
|
5764
5775
|
}
|
|
5765
5776
|
return null;
|
|
5766
5777
|
}
|
|
5767
|
-
function
|
|
5778
|
+
function $n() {
|
|
5768
5779
|
return Us == null && (Us = typeof CSS < "u" && CSS.supports && CSS.supports("-webkit-backdrop-filter", "none")), Us;
|
|
5769
5780
|
}
|
|
5770
5781
|
function Jr(e) {
|
|
@@ -5840,9 +5851,9 @@ function Xr(e) {
|
|
|
5840
5851
|
};
|
|
5841
5852
|
}
|
|
5842
5853
|
const Tb = /* @__PURE__ */ Qe(0);
|
|
5843
|
-
function
|
|
5854
|
+
function zi(e) {
|
|
5844
5855
|
const r = Ve(e);
|
|
5845
|
-
return
|
|
5856
|
+
return !$n() || !r.visualViewport ? Tb : {
|
|
5846
5857
|
x: r.visualViewport.offsetLeft,
|
|
5847
5858
|
y: r.visualViewport.offsetTop
|
|
5848
5859
|
};
|
|
@@ -5855,7 +5866,7 @@ function Dr(e, r, t, s) {
|
|
|
5855
5866
|
const a = e.getBoundingClientRect(), o = Bn(e);
|
|
5856
5867
|
let l = Qe(1);
|
|
5857
5868
|
r && (s ? Be(s) && (l = Xr(s)) : l = Xr(e));
|
|
5858
|
-
const c = Ib(o, t, s) ?
|
|
5869
|
+
const c = Ib(o, t, s) ? zi(o) : Qe(0);
|
|
5859
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;
|
|
5860
5871
|
if (o) {
|
|
5861
5872
|
const m = Ve(o), p = s && Be(s) ? Ve(s) : s;
|
|
@@ -5876,7 +5887,7 @@ function ms(e, r) {
|
|
|
5876
5887
|
const t = us(e).scrollLeft;
|
|
5877
5888
|
return r ? r.left + t : Dr(tr(e)).left + t;
|
|
5878
5889
|
}
|
|
5879
|
-
function
|
|
5890
|
+
function $i(e, r) {
|
|
5880
5891
|
const t = e.getBoundingClientRect(), s = t.left + r.scrollLeft - ms(e, t), a = t.top + r.scrollTop;
|
|
5881
5892
|
return {
|
|
5882
5893
|
x: s,
|
|
@@ -5902,7 +5913,7 @@ function Lb(e) {
|
|
|
5902
5913
|
const p = Dr(s);
|
|
5903
5914
|
d = Xr(s), b.x = p.x + s.clientLeft, b.y = p.y + s.clientTop;
|
|
5904
5915
|
}
|
|
5905
|
-
const m = l && !u && !o ?
|
|
5916
|
+
const m = l && !u && !o ? $i(l, f) : Qe(0);
|
|
5906
5917
|
return {
|
|
5907
5918
|
width: t.width * d.x,
|
|
5908
5919
|
height: t.height * d.y,
|
|
@@ -5930,7 +5941,7 @@ function Ob(e, r) {
|
|
|
5930
5941
|
let o = s.clientWidth, l = s.clientHeight, c = 0, f = 0;
|
|
5931
5942
|
if (a) {
|
|
5932
5943
|
o = a.width, l = a.height;
|
|
5933
|
-
const b =
|
|
5944
|
+
const b = $n();
|
|
5934
5945
|
(!b || b && r === "fixed") && (c = a.offsetLeft, f = a.offsetTop);
|
|
5935
5946
|
}
|
|
5936
5947
|
const d = ms(s);
|
|
@@ -5963,7 +5974,7 @@ function co(e, r, t) {
|
|
|
5963
5974
|
else if (Be(r))
|
|
5964
5975
|
s = Zb(r, t);
|
|
5965
5976
|
else {
|
|
5966
|
-
const a =
|
|
5977
|
+
const a = zi(e);
|
|
5967
5978
|
s = {
|
|
5968
5979
|
x: r.x - a.x,
|
|
5969
5980
|
y: r.y - a.y,
|
|
@@ -5985,12 +5996,12 @@ function Hb(e, r) {
|
|
|
5985
5996
|
const o = We(e).position === "fixed";
|
|
5986
5997
|
let l = o ? gr(e) : e;
|
|
5987
5998
|
for (; Be(l) && !Jr(l); ) {
|
|
5988
|
-
const c = We(l), f =
|
|
5999
|
+
const c = We(l), f = zn(l);
|
|
5989
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);
|
|
5990
6001
|
}
|
|
5991
6002
|
return r.set(e, s), s;
|
|
5992
6003
|
}
|
|
5993
|
-
function
|
|
6004
|
+
function zb(e) {
|
|
5994
6005
|
let {
|
|
5995
6006
|
element: r,
|
|
5996
6007
|
boundary: t,
|
|
@@ -6010,7 +6021,7 @@ function $b(e) {
|
|
|
6010
6021
|
y: f
|
|
6011
6022
|
};
|
|
6012
6023
|
}
|
|
6013
|
-
function
|
|
6024
|
+
function $b(e) {
|
|
6014
6025
|
const {
|
|
6015
6026
|
width: r,
|
|
6016
6027
|
height: t
|
|
@@ -6036,7 +6047,7 @@ function Bb(e, r, t) {
|
|
|
6036
6047
|
f.x = p.x + r.clientLeft, f.y = p.y + r.clientTop;
|
|
6037
6048
|
} else a && d();
|
|
6038
6049
|
o && !s && a && d();
|
|
6039
|
-
const b = a && !s && !o ?
|
|
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;
|
|
6040
6051
|
return {
|
|
6041
6052
|
x: u,
|
|
6042
6053
|
y: m,
|
|
@@ -6071,7 +6082,7 @@ function Wi(e, r) {
|
|
|
6071
6082
|
let s = fo(e, r);
|
|
6072
6083
|
for (; s && Rb(s) && Ks(s); )
|
|
6073
6084
|
s = fo(s, r);
|
|
6074
|
-
return s && Jr(s) && Ks(s) &&
|
|
6085
|
+
return s && Jr(s) && Ks(s) && !zn(s) ? t : s || Db(e) || t;
|
|
6075
6086
|
}
|
|
6076
6087
|
const Wb = async function(e) {
|
|
6077
6088
|
const r = this.getOffsetParent || Wi, t = this.getDimensions, s = await t(e.floating);
|
|
@@ -6091,11 +6102,11 @@ function Gb(e) {
|
|
|
6091
6102
|
const jb = {
|
|
6092
6103
|
convertOffsetParentRelativeRectToViewportRelativeRect: Lb,
|
|
6093
6104
|
getDocumentElement: tr,
|
|
6094
|
-
getClippingRect:
|
|
6105
|
+
getClippingRect: zb,
|
|
6095
6106
|
getOffsetParent: Wi,
|
|
6096
6107
|
getElementRects: Wb,
|
|
6097
6108
|
getClientRects: _b,
|
|
6098
|
-
getDimensions:
|
|
6109
|
+
getDimensions: $b,
|
|
6099
6110
|
getScale: Xr,
|
|
6100
6111
|
isElement: Be,
|
|
6101
6112
|
isRTL: Gb
|
|
@@ -6270,7 +6281,7 @@ function nu(e) {
|
|
|
6270
6281
|
O !== S.current && (S.current = O, h(O));
|
|
6271
6282
|
}, []), w = n.useCallback((O) => {
|
|
6272
6283
|
O !== k.current && (k.current = O, x(O));
|
|
6273
|
-
}, []), C = o || v, A = l || g, S = n.useRef(null), k = n.useRef(null), M = n.useRef(b), V = f != null,
|
|
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(() => {
|
|
6274
6285
|
if (!S.current || !k.current)
|
|
6275
6286
|
return;
|
|
6276
6287
|
const O = {
|
|
@@ -6303,11 +6314,11 @@ function nu(e) {
|
|
|
6303
6314
|
D.current = !1;
|
|
6304
6315
|
}), []), Ut(() => {
|
|
6305
6316
|
if (C && (S.current = C), A && (k.current = A), C && A) {
|
|
6306
|
-
if (
|
|
6307
|
-
return
|
|
6317
|
+
if (z.current)
|
|
6318
|
+
return z.current(C, A, Y);
|
|
6308
6319
|
Y();
|
|
6309
6320
|
}
|
|
6310
|
-
}, [C, A, Y,
|
|
6321
|
+
}, [C, A, Y, z, V]);
|
|
6311
6322
|
const j = n.useMemo(() => ({
|
|
6312
6323
|
reference: S,
|
|
6313
6324
|
floating: k,
|
|
@@ -6468,7 +6479,7 @@ var qi = "PopperAnchor", Ji = n.forwardRef(
|
|
|
6468
6479
|
Ji.displayName = qi;
|
|
6469
6480
|
var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
|
|
6470
6481
|
(e, r) => {
|
|
6471
|
-
var
|
|
6482
|
+
var $, te, K, re, se, Q;
|
|
6472
6483
|
const {
|
|
6473
6484
|
__scopePopper: t,
|
|
6474
6485
|
side: s = "bottom",
|
|
@@ -6484,8 +6495,8 @@ var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
|
|
|
6484
6495
|
updatePositionStrategy: p = "optimized",
|
|
6485
6496
|
onPlaced: v,
|
|
6486
6497
|
...h
|
|
6487
|
-
} = 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 : ""),
|
|
6488
|
-
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,
|
|
6489
6500
|
boundary: R.filter(xu),
|
|
6490
6501
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
6491
6502
|
altBoundary: H
|
|
@@ -6523,7 +6534,7 @@ var Gn = "PopperContent", [hu, gu] = Ki(Gn), Qi = n.forwardRef(
|
|
|
6523
6534
|
Ne(() => {
|
|
6524
6535
|
I && (J == null || J());
|
|
6525
6536
|
}, [I, J]);
|
|
6526
|
-
const Z = (
|
|
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();
|
|
6527
6538
|
return Ne(() => {
|
|
6528
6539
|
x && ie(window.getComputedStyle(x).zIndex);
|
|
6529
6540
|
}, [x]), /* @__PURE__ */ i(
|
|
@@ -6951,7 +6962,7 @@ var Hu = function() {
|
|
|
6951
6962
|
if (typeof __webpack_nonce__ < "u")
|
|
6952
6963
|
return __webpack_nonce__;
|
|
6953
6964
|
};
|
|
6954
|
-
function
|
|
6965
|
+
function zu() {
|
|
6955
6966
|
if (!document)
|
|
6956
6967
|
return null;
|
|
6957
6968
|
var e = document.createElement("style");
|
|
@@ -6959,7 +6970,7 @@ function $u() {
|
|
|
6959
6970
|
var r = Hu();
|
|
6960
6971
|
return r && e.setAttribute("nonce", r), e;
|
|
6961
6972
|
}
|
|
6962
|
-
function
|
|
6973
|
+
function $u(e, r) {
|
|
6963
6974
|
e.styleSheet ? e.styleSheet.cssText = r : e.appendChild(document.createTextNode(r));
|
|
6964
6975
|
}
|
|
6965
6976
|
function Bu(e) {
|
|
@@ -6970,7 +6981,7 @@ var Wu = function() {
|
|
|
6970
6981
|
var e = 0, r = null;
|
|
6971
6982
|
return {
|
|
6972
6983
|
add: function(t) {
|
|
6973
|
-
e == 0 && (r =
|
|
6984
|
+
e == 0 && (r = zu()) && ($u(r, t), Bu(r)), e++;
|
|
6974
6985
|
},
|
|
6975
6986
|
remove: function() {
|
|
6976
6987
|
e--, !e && r && (r.parentNode && r.parentNode.removeChild(r), r = null);
|
|
@@ -7075,12 +7086,12 @@ var Wu = function() {
|
|
|
7075
7086
|
}, gn = !1;
|
|
7076
7087
|
if (typeof window < "u")
|
|
7077
7088
|
try {
|
|
7078
|
-
var
|
|
7089
|
+
var zt = Object.defineProperty({}, "passive", {
|
|
7079
7090
|
get: function() {
|
|
7080
7091
|
return gn = !0, !0;
|
|
7081
7092
|
}
|
|
7082
7093
|
});
|
|
7083
|
-
window.addEventListener("test",
|
|
7094
|
+
window.addEventListener("test", zt, zt), window.removeEventListener("test", zt, zt);
|
|
7084
7095
|
} catch {
|
|
7085
7096
|
gn = !1;
|
|
7086
7097
|
}
|
|
@@ -7147,7 +7158,7 @@ var Gr = gn ? { passive: !1 } : !1, Qu = function(e) {
|
|
|
7147
7158
|
f && (r.contains(c) || r === c)
|
|
7148
7159
|
);
|
|
7149
7160
|
return (b && Math.abs(u) < 1 || !b && Math.abs(m) < 1) && (d = !0), d;
|
|
7150
|
-
},
|
|
7161
|
+
}, $t = function(e) {
|
|
7151
7162
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
7152
7163
|
}, go = function(e) {
|
|
7153
7164
|
return [e.deltaX, e.deltaY];
|
|
@@ -7181,11 +7192,11 @@ function c2(e) {
|
|
|
7181
7192
|
var c = n.useCallback(function(h, g) {
|
|
7182
7193
|
if ("touches" in h && h.touches.length === 2 || h.type === "wheel" && h.ctrlKey)
|
|
7183
7194
|
return !l.current.allowPinchZoom;
|
|
7184
|
-
var x =
|
|
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";
|
|
7185
7196
|
if ("touches" in h && k === "h" && S.type === "range")
|
|
7186
7197
|
return !1;
|
|
7187
|
-
var M = window.getSelection(), V = M && M.anchorNode,
|
|
7188
|
-
if (
|
|
7198
|
+
var M = window.getSelection(), V = M && M.anchorNode, z = V ? V === S || V.contains(S) : !1;
|
|
7199
|
+
if (z)
|
|
7189
7200
|
return !1;
|
|
7190
7201
|
var R = ho(k, S);
|
|
7191
7202
|
if (!R)
|
|
@@ -7199,7 +7210,7 @@ function c2(e) {
|
|
|
7199
7210
|
}, []), f = n.useCallback(function(h) {
|
|
7200
7211
|
var g = h;
|
|
7201
7212
|
if (!(!jr.length || jr[jr.length - 1] !== o)) {
|
|
7202
|
-
var x = "deltaY" in g ? go(g) :
|
|
7213
|
+
var x = "deltaY" in g ? go(g) : $t(g), y = r.current.filter(function(A) {
|
|
7203
7214
|
return A.name === g.type && (A.target === g.target || g.target === A.shadowParent) && o2(A.delta, x);
|
|
7204
7215
|
})[0];
|
|
7205
7216
|
if (y && y.should) {
|
|
@@ -7221,11 +7232,11 @@ function c2(e) {
|
|
|
7221
7232
|
});
|
|
7222
7233
|
}, 1);
|
|
7223
7234
|
}, []), b = n.useCallback(function(h) {
|
|
7224
|
-
t.current =
|
|
7235
|
+
t.current = $t(h), s.current = void 0;
|
|
7225
7236
|
}, []), u = n.useCallback(function(h) {
|
|
7226
7237
|
d(h.type, go(h), h.target, c(h, e.lockRef.current));
|
|
7227
7238
|
}, []), m = n.useCallback(function(h) {
|
|
7228
|
-
d(h.type,
|
|
7239
|
+
d(h.type, $t(h), h.target, c(h, e.lockRef.current));
|
|
7229
7240
|
}, []);
|
|
7230
7241
|
n.useEffect(function() {
|
|
7231
7242
|
return jr.push(o), e.setCallbacks({
|
|
@@ -7280,7 +7291,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
|
|
|
7280
7291
|
defaultProp: a ?? !1,
|
|
7281
7292
|
onChange: o,
|
|
7282
7293
|
caller: Tr
|
|
7283
|
-
}), [V,
|
|
7294
|
+
}), [V, z] = Ge({
|
|
7284
7295
|
prop: l,
|
|
7285
7296
|
defaultProp: c,
|
|
7286
7297
|
onChange: f,
|
|
@@ -7299,7 +7310,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
|
|
|
7299
7310
|
onValueNodeHasChildrenChange: A,
|
|
7300
7311
|
contentId: Te(),
|
|
7301
7312
|
value: V,
|
|
7302
|
-
onValueChange:
|
|
7313
|
+
onValueChange: z,
|
|
7303
7314
|
open: k,
|
|
7304
7315
|
onOpenChange: M,
|
|
7305
7316
|
dir: S,
|
|
@@ -7331,7 +7342,7 @@ var b2 = [" ", "Enter", "ArrowUp", "ArrowDown"], u2 = [" ", "Enter"], Tr = "Sele
|
|
|
7331
7342
|
name: b,
|
|
7332
7343
|
autoComplete: u,
|
|
7333
7344
|
value: V,
|
|
7334
|
-
onChange: (L) =>
|
|
7345
|
+
onChange: (L) => z(L.target.value),
|
|
7335
7346
|
disabled: m,
|
|
7336
7347
|
form: v,
|
|
7337
7348
|
children: [
|
|
@@ -7454,16 +7465,16 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7454
7465
|
avoidCollisions: g,
|
|
7455
7466
|
//
|
|
7456
7467
|
...x
|
|
7457
|
-
} = e, y = yr(Ir, t), [w, C] = n.useState(null), [A, S] = n.useState(null), k = oe(r, (
|
|
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(
|
|
7458
7469
|
null
|
|
7459
7470
|
), H = Es(t), [Y, D] = n.useState(!1), j = n.useRef(!1);
|
|
7460
7471
|
n.useEffect(() => {
|
|
7461
7472
|
if (w) return ys(w);
|
|
7462
7473
|
}, [w]), fs();
|
|
7463
7474
|
const L = n.useCallback(
|
|
7464
|
-
(
|
|
7475
|
+
($) => {
|
|
7465
7476
|
const [te, ...K] = H().map((Q) => Q.ref.current), [re] = K.slice(-1), se = document.activeElement;
|
|
7466
|
-
for (const Q of
|
|
7477
|
+
for (const Q of $)
|
|
7467
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;
|
|
7468
7479
|
},
|
|
7469
7480
|
[H, A]
|
|
@@ -7477,39 +7488,39 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7477
7488
|
const { onOpenChange: O, triggerPointerDownPosRef: T } = y;
|
|
7478
7489
|
n.useEffect(() => {
|
|
7479
7490
|
if (w) {
|
|
7480
|
-
let
|
|
7491
|
+
let $ = { x: 0, y: 0 };
|
|
7481
7492
|
const te = (re) => {
|
|
7482
7493
|
var se, Q;
|
|
7483
|
-
|
|
7494
|
+
$ = {
|
|
7484
7495
|
x: Math.abs(Math.round(re.pageX) - (((se = T.current) == null ? void 0 : se.x) ?? 0)),
|
|
7485
7496
|
y: Math.abs(Math.round(re.pageY) - (((Q = T.current) == null ? void 0 : Q.y) ?? 0))
|
|
7486
7497
|
};
|
|
7487
7498
|
}, K = (re) => {
|
|
7488
|
-
|
|
7499
|
+
$.x <= 10 && $.y <= 10 ? re.preventDefault() : w.contains(re.target) || O(!1), document.removeEventListener("pointermove", te), T.current = null;
|
|
7489
7500
|
};
|
|
7490
7501
|
return T.current !== null && (document.addEventListener("pointermove", te), document.addEventListener("pointerup", K, { capture: !0, once: !0 })), () => {
|
|
7491
7502
|
document.removeEventListener("pointermove", te), document.removeEventListener("pointerup", K, { capture: !0 });
|
|
7492
7503
|
};
|
|
7493
7504
|
}
|
|
7494
7505
|
}, [w, O, T]), n.useEffect(() => {
|
|
7495
|
-
const
|
|
7496
|
-
return window.addEventListener("blur",
|
|
7497
|
-
window.removeEventListener("blur",
|
|
7506
|
+
const $ = () => O(!1);
|
|
7507
|
+
return window.addEventListener("blur", $), window.addEventListener("resize", $), () => {
|
|
7508
|
+
window.removeEventListener("blur", $), window.removeEventListener("resize", $);
|
|
7498
7509
|
};
|
|
7499
7510
|
}, [O]);
|
|
7500
|
-
const [P, J] = Ll((
|
|
7501
|
-
const te = H().filter((se) => !se.disabled), K = te.find((se) => se.ref.current === document.activeElement), re = _l(te,
|
|
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);
|
|
7502
7513
|
re && setTimeout(() => re.ref.current.focus());
|
|
7503
7514
|
}), Z = n.useCallback(
|
|
7504
|
-
(
|
|
7515
|
+
($, te, K) => {
|
|
7505
7516
|
const re = !j.current && !K;
|
|
7506
|
-
(y.value !== void 0 && y.value === te || re) && (V(
|
|
7517
|
+
(y.value !== void 0 && y.value === te || re) && (V($), re && (j.current = !0));
|
|
7507
7518
|
},
|
|
7508
7519
|
[y.value]
|
|
7509
7520
|
), q = n.useCallback(() => w == null ? void 0 : w.focus(), [w]), le = n.useCallback(
|
|
7510
|
-
(
|
|
7521
|
+
($, te, K) => {
|
|
7511
7522
|
const re = !j.current && !K;
|
|
7512
|
-
(y.value !== void 0 && y.value === te || re) && R(
|
|
7523
|
+
(y.value !== void 0 && y.value === te || re) && R($);
|
|
7513
7524
|
},
|
|
7514
7525
|
[y.value]
|
|
7515
7526
|
), ce = s === "popper" ? vn : El, ie = ce === vn ? {
|
|
@@ -7536,7 +7547,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7536
7547
|
onItemLeave: q,
|
|
7537
7548
|
itemTextRefCallback: le,
|
|
7538
7549
|
focusSelectedItem: I,
|
|
7539
|
-
selectedItemText:
|
|
7550
|
+
selectedItemText: z,
|
|
7540
7551
|
position: s,
|
|
7541
7552
|
isPositioned: Y,
|
|
7542
7553
|
searchRef: P,
|
|
@@ -7545,12 +7556,12 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7545
7556
|
{
|
|
7546
7557
|
asChild: !0,
|
|
7547
7558
|
trapped: y.open,
|
|
7548
|
-
onMountAutoFocus: (
|
|
7549
|
-
|
|
7559
|
+
onMountAutoFocus: ($) => {
|
|
7560
|
+
$.preventDefault();
|
|
7550
7561
|
},
|
|
7551
|
-
onUnmountAutoFocus: F(a, (
|
|
7562
|
+
onUnmountAutoFocus: F(a, ($) => {
|
|
7552
7563
|
var te;
|
|
7553
|
-
(te = y.trigger) == null || te.focus({ preventScroll: !0 }),
|
|
7564
|
+
(te = y.trigger) == null || te.focus({ preventScroll: !0 }), $.preventDefault();
|
|
7554
7565
|
}),
|
|
7555
7566
|
children: /* @__PURE__ */ i(
|
|
7556
7567
|
tt,
|
|
@@ -7559,7 +7570,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7559
7570
|
disableOutsidePointerEvents: !0,
|
|
7560
7571
|
onEscapeKeyDown: o,
|
|
7561
7572
|
onPointerDownOutside: l,
|
|
7562
|
-
onFocusOutside: (
|
|
7573
|
+
onFocusOutside: ($) => $.preventDefault(),
|
|
7563
7574
|
onDismiss: () => y.onOpenChange(!1),
|
|
7564
7575
|
children: /* @__PURE__ */ i(
|
|
7565
7576
|
ce,
|
|
@@ -7568,7 +7579,7 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7568
7579
|
id: y.contentId,
|
|
7569
7580
|
"data-state": y.open ? "open" : "closed",
|
|
7570
7581
|
dir: y.dir,
|
|
7571
|
-
onContextMenu: (
|
|
7582
|
+
onContextMenu: ($) => $.preventDefault(),
|
|
7572
7583
|
...x,
|
|
7573
7584
|
...ie,
|
|
7574
7585
|
onPlaced: () => D(!0),
|
|
@@ -7581,15 +7592,15 @@ var He = 10, [wl, wr] = ot(Ir), y2 = "SelectContentImpl", w2 = /* @__PURE__ */ V
|
|
|
7581
7592
|
outline: "none",
|
|
7582
7593
|
...x.style
|
|
7583
7594
|
},
|
|
7584
|
-
onKeyDown: F(x.onKeyDown, (
|
|
7585
|
-
const te =
|
|
7586
|
-
if (
|
|
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)) {
|
|
7587
7598
|
let re = H().filter((se) => !se.disabled).map((se) => se.ref.current);
|
|
7588
|
-
if (["ArrowUp", "End"].includes(
|
|
7589
|
-
const se =
|
|
7599
|
+
if (["ArrowUp", "End"].includes($.key) && (re = re.slice().reverse()), ["ArrowUp", "ArrowDown"].includes($.key)) {
|
|
7600
|
+
const se = $.target, Q = re.indexOf(se);
|
|
7590
7601
|
re = re.slice(Q + 1);
|
|
7591
7602
|
}
|
|
7592
|
-
setTimeout(() => L(re)),
|
|
7603
|
+
setTimeout(() => L(re)), $.preventDefault();
|
|
7593
7604
|
}
|
|
7594
7605
|
})
|
|
7595
7606
|
}
|
|
@@ -7606,9 +7617,9 @@ Nl.displayName = y2;
|
|
|
7606
7617
|
var N2 = "SelectItemAlignedPosition", El = n.forwardRef((e, r) => {
|
|
7607
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(() => {
|
|
7608
7619
|
if (o.trigger && o.valueNode && c && d && h && g && x) {
|
|
7609
|
-
const k = o.trigger.getBoundingClientRect(), M = d.getBoundingClientRect(), V = o.valueNode.getBoundingClientRect(),
|
|
7620
|
+
const k = o.trigger.getBoundingClientRect(), M = d.getBoundingClientRect(), V = o.valueNode.getBoundingClientRect(), z = x.getBoundingClientRect();
|
|
7610
7621
|
if (o.dir !== "rtl") {
|
|
7611
|
-
const se =
|
|
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, [
|
|
7612
7623
|
He,
|
|
7613
7624
|
// Prevents the content from going off the starting edge of the
|
|
7614
7625
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -7619,13 +7630,13 @@ var N2 = "SelectItemAlignedPosition", El = n.forwardRef((e, r) => {
|
|
|
7619
7630
|
]);
|
|
7620
7631
|
c.style.minWidth = pe + "px", c.style.left = De + "px";
|
|
7621
7632
|
} else {
|
|
7622
|
-
const se = M.right -
|
|
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, [
|
|
7623
7634
|
He,
|
|
7624
7635
|
Math.max(He, Ke - Fe)
|
|
7625
7636
|
]);
|
|
7626
7637
|
c.style.minWidth = pe + "px", c.style.right = De + "px";
|
|
7627
7638
|
}
|
|
7628
|
-
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,
|
|
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;
|
|
7629
7640
|
if (te <= le) {
|
|
7630
7641
|
const se = R.length > 0 && g === R[R.length - 1].ref.current;
|
|
7631
7642
|
c.style.bottom = "0px";
|
|
@@ -8060,7 +8071,7 @@ function _l(e, r, t) {
|
|
|
8060
8071
|
function _2(e, r) {
|
|
8061
8072
|
return e.map((t, s) => e[(r + s) % e.length]);
|
|
8062
8073
|
}
|
|
8063
|
-
var F2 = ul, O2 = pl, Z2 = gl, H2 = vl,
|
|
8074
|
+
var F2 = ul, O2 = pl, Z2 = gl, H2 = vl, z2 = xl, $2 = yl, B2 = Cl, W2 = Sl, G2 = Rl, j2 = Vl;
|
|
8064
8075
|
function U2(e, r) {
|
|
8065
8076
|
return n.useReducer((t, s) => r[t][s] ?? t, e);
|
|
8066
8077
|
}
|
|
@@ -8245,12 +8256,12 @@ var Cn = "TooltipTrigger", Hl = n.forwardRef(
|
|
|
8245
8256
|
Hl.displayName = Cn;
|
|
8246
8257
|
var Kn = "TooltipPortal", [Q2, em] = Ms(Kn, {
|
|
8247
8258
|
forceMount: void 0
|
|
8248
|
-
}),
|
|
8259
|
+
}), zl = (e) => {
|
|
8249
8260
|
const { __scopeTooltip: r, forceMount: t, children: s, container: a } = e, o = Et(Kn, r);
|
|
8250
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 }) }) });
|
|
8251
8262
|
};
|
|
8252
|
-
|
|
8253
|
-
var Qr = "TooltipContent",
|
|
8263
|
+
zl.displayName = Kn;
|
|
8264
|
+
var Qr = "TooltipContent", $l = n.forwardRef(
|
|
8254
8265
|
(e, r) => {
|
|
8255
8266
|
const t = em(Qr, e.__scopeTooltip), { forceMount: s = t.forceMount, side: a = "top", ...o } = e, l = Et(Qr, e.__scopeTooltip);
|
|
8256
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 }) });
|
|
@@ -8333,7 +8344,7 @@ var Qr = "TooltipContent", zl = n.forwardRef(
|
|
|
8333
8344
|
);
|
|
8334
8345
|
}
|
|
8335
8346
|
);
|
|
8336
|
-
|
|
8347
|
+
$l.displayName = Qr;
|
|
8337
8348
|
var Wl = "TooltipArrow", Gl = n.forwardRef(
|
|
8338
8349
|
(e, r) => {
|
|
8339
8350
|
const { __scopeTooltip: t, ...s } = e, a = As(t);
|
|
@@ -8436,7 +8447,7 @@ function fm(e) {
|
|
|
8436
8447
|
}
|
|
8437
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);
|
|
8438
8449
|
}
|
|
8439
|
-
var dm = Ol, bm = Zl, um = Hl, mm =
|
|
8450
|
+
var dm = Ol, bm = Zl, um = Hl, mm = zl, pm = $l, hm = Gl;
|
|
8440
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))]";
|
|
8441
8452
|
function Jn({ content: e, children: r, side: t = "top", delayDuration: s = 350, disabled: a = !1 }) {
|
|
8442
8453
|
return /* @__PURE__ */ i(dm, { delayDuration: s, children: /* @__PURE__ */ N(bm, { open: a ? !1 : void 0, children: [
|
|
@@ -8465,11 +8476,11 @@ const ym = G(
|
|
|
8465
8476
|
const p = l !== void 0, [v, h] = ae(c), g = p ? l : v, x = (k = e.find((M) => M.value === g)) == null ? void 0 : k.label, y = Fr(null), [w, C] = ae(!1);
|
|
8466
8477
|
Pr(() => {
|
|
8467
8478
|
const M = y.current;
|
|
8468
|
-
if (!M || typeof ResizeObserver > "u") return;
|
|
8479
|
+
if (!M || typeof globalThis.ResizeObserver > "u") return;
|
|
8469
8480
|
const V = () => C(M.scrollWidth > M.clientWidth + 1);
|
|
8470
8481
|
V();
|
|
8471
|
-
const
|
|
8472
|
-
return
|
|
8482
|
+
const z = new globalThis.ResizeObserver(V);
|
|
8483
|
+
return z.observe(M), () => z.disconnect();
|
|
8473
8484
|
}, [x]);
|
|
8474
8485
|
const A = (M) => {
|
|
8475
8486
|
p || h(M), f == null || f(M);
|
|
@@ -8496,8 +8507,8 @@ const ym = G(
|
|
|
8496
8507
|
);
|
|
8497
8508
|
return /* @__PURE__ */ N(F2, { value: l, defaultValue: c, onValueChange: A, ...u, children: [
|
|
8498
8509
|
x ? /* @__PURE__ */ i(Jn, { content: x, disabled: !w, children: S }) : S,
|
|
8499
|
-
/* @__PURE__ */ i(
|
|
8500
|
-
|
|
8510
|
+
/* @__PURE__ */ i(z2, { children: /* @__PURE__ */ i(_e, { children: /* @__PURE__ */ i(
|
|
8511
|
+
$2,
|
|
8501
8512
|
{
|
|
8502
8513
|
position: "popper",
|
|
8503
8514
|
sideOffset: 6,
|
|
@@ -8765,7 +8776,7 @@ const Pm = G(
|
|
|
8765
8776
|
g(R), R || (y(""), C(0));
|
|
8766
8777
|
}, V = (R) => {
|
|
8767
8778
|
t == null || t(R), M(!1);
|
|
8768
|
-
},
|
|
8779
|
+
}, z = (R) => {
|
|
8769
8780
|
if (!h && ["ArrowDown", "Enter", " "].includes(R.key)) {
|
|
8770
8781
|
R.preventDefault(), M(!0);
|
|
8771
8782
|
return;
|
|
@@ -8790,7 +8801,7 @@ const Pm = G(
|
|
|
8790
8801
|
S ? "bfrs-text-text-primary" : "bfrs-text-text-disabled",
|
|
8791
8802
|
b
|
|
8792
8803
|
),
|
|
8793
|
-
onKeyDown:
|
|
8804
|
+
onKeyDown: z,
|
|
8794
8805
|
children: [
|
|
8795
8806
|
/* @__PURE__ */ i("span", { className: "bfrs-truncate", children: (S == null ? void 0 : S.label) ?? s }),
|
|
8796
8807
|
/* @__PURE__ */ N("span", { className: "bfrs-flex bfrs-items-center bfrs-gap-1 bfrs-text-text-muted", children: [
|
|
@@ -8822,7 +8833,7 @@ const Pm = G(
|
|
|
8822
8833
|
var H;
|
|
8823
8834
|
R.preventDefault(), (H = A.current) == null || H.focus();
|
|
8824
8835
|
},
|
|
8825
|
-
onKeyDown:
|
|
8836
|
+
onKeyDown: z,
|
|
8826
8837
|
className: E(
|
|
8827
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",
|
|
8828
8839
|
Xn
|
|
@@ -8886,7 +8897,7 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
|
|
|
8886
8897
|
"aria-describedby": v,
|
|
8887
8898
|
"aria-invalid": h
|
|
8888
8899
|
}, g) => {
|
|
8889
|
-
const [x, y] = ae(!1), [w, C] = ae(""), [A, S] = ae(0), [k, M] = ae(() => en(t)), V = Fr(null),
|
|
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(
|
|
8890
8901
|
() => e.filter((Z) => Z.label.toLowerCase().includes(w.toLowerCase())),
|
|
8891
8902
|
[e, w]
|
|
8892
8903
|
), I = (Z) => {
|
|
@@ -8896,10 +8907,10 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
|
|
|
8896
8907
|
r === void 0 && M(q), s == null || s(q);
|
|
8897
8908
|
}, T = (Z) => {
|
|
8898
8909
|
if (R.has(Z)) {
|
|
8899
|
-
O(
|
|
8910
|
+
O(z.filter((q) => q !== Z));
|
|
8900
8911
|
return;
|
|
8901
8912
|
}
|
|
8902
|
-
O([
|
|
8913
|
+
O([...z, Z]);
|
|
8903
8914
|
}, P = (Z) => {
|
|
8904
8915
|
if (!x && ["ArrowDown", "Enter", " "].includes(Z.key)) {
|
|
8905
8916
|
Z.preventDefault(), I(!0);
|
|
@@ -9033,7 +9044,7 @@ const en = (e) => Array.from(new Set(e)), Vm = G(
|
|
|
9033
9044
|
Vm.displayName = "MultiSelect";
|
|
9034
9045
|
const Dm = G(
|
|
9035
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) => {
|
|
9036
|
-
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),
|
|
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) => {
|
|
9037
9048
|
S.current = D, typeof h == "function" ? h(D) : h && (h.current = D);
|
|
9038
9049
|
}, R = (D) => {
|
|
9039
9050
|
r === void 0 && x(D), s == null || s(D);
|
|
@@ -9046,7 +9057,7 @@ const Dm = G(
|
|
|
9046
9057
|
/* @__PURE__ */ i(Rm, { asChild: !0, children: /* @__PURE__ */ i(
|
|
9047
9058
|
"input",
|
|
9048
9059
|
{
|
|
9049
|
-
ref:
|
|
9060
|
+
ref: z,
|
|
9050
9061
|
id: m,
|
|
9051
9062
|
value: k,
|
|
9052
9063
|
disabled: d,
|
|
@@ -9168,8 +9179,8 @@ var Zm = n.forwardRef((e, r) => {
|
|
|
9168
9179
|
onFocus: F(e.onFocus, (M) => {
|
|
9169
9180
|
const V = !A.current;
|
|
9170
9181
|
if (M.target === M.currentTarget && V && !x) {
|
|
9171
|
-
const
|
|
9172
|
-
if (M.currentTarget.dispatchEvent(
|
|
9182
|
+
const z = new CustomEvent(rn, Im);
|
|
9183
|
+
if (M.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
|
|
9173
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(
|
|
9174
9185
|
Boolean
|
|
9175
9186
|
).map((L) => L.ref.current);
|
|
@@ -9220,7 +9231,7 @@ var Zm = n.forwardRef((e, r) => {
|
|
|
9220
9231
|
return;
|
|
9221
9232
|
}
|
|
9222
9233
|
if (g.target !== g.currentTarget) return;
|
|
9223
|
-
const x =
|
|
9234
|
+
const x = $m(g, b.orientation, b.dir);
|
|
9224
9235
|
if (x !== void 0) {
|
|
9225
9236
|
if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
|
|
9226
9237
|
g.preventDefault();
|
|
@@ -9252,11 +9263,11 @@ var Hm = {
|
|
|
9252
9263
|
PageDown: "last",
|
|
9253
9264
|
End: "last"
|
|
9254
9265
|
};
|
|
9255
|
-
function
|
|
9266
|
+
function zm(e, r) {
|
|
9256
9267
|
return r !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
9257
9268
|
}
|
|
9258
|
-
function
|
|
9259
|
-
const s =
|
|
9269
|
+
function $m(e, r, t) {
|
|
9270
|
+
const s = zm(e.key, t);
|
|
9260
9271
|
if (!(r === "vertical" && ["ArrowLeft", "ArrowRight"].includes(s)) && !(r === "horizontal" && ["ArrowUp", "ArrowDown"].includes(s)))
|
|
9261
9272
|
return Hm[s];
|
|
9262
9273
|
}
|
|
@@ -9686,7 +9697,7 @@ const yo = {
|
|
|
9686
9697
|
actionClassName: y,
|
|
9687
9698
|
...w
|
|
9688
9699
|
}, C) => {
|
|
9689
|
-
const [A, S] = ae(s), [k, M] = ae("idle"), V = Fr(),
|
|
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);
|
|
9690
9701
|
Pr(() => () => {
|
|
9691
9702
|
V.current !== void 0 && window.clearTimeout(V.current);
|
|
9692
9703
|
}, []);
|
|
@@ -9701,10 +9712,10 @@ const yo = {
|
|
|
9701
9712
|
c == null || c(O);
|
|
9702
9713
|
}
|
|
9703
9714
|
};
|
|
9704
|
-
return
|
|
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: [
|
|
9705
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 }),
|
|
9706
9717
|
!H && /* @__PURE__ */ i(
|
|
9707
|
-
|
|
9718
|
+
$e,
|
|
9708
9719
|
{
|
|
9709
9720
|
type: "button",
|
|
9710
9721
|
"aria-label": v,
|
|
@@ -9718,7 +9729,7 @@ const yo = {
|
|
|
9718
9729
|
),
|
|
9719
9730
|
H && t && /* @__PURE__ */ N(Ce, { children: [
|
|
9720
9731
|
/* @__PURE__ */ i(
|
|
9721
|
-
|
|
9732
|
+
$e,
|
|
9722
9733
|
{
|
|
9723
9734
|
type: "button",
|
|
9724
9735
|
"aria-label": k === "copied" ? g : h,
|
|
@@ -10186,7 +10197,7 @@ const wp = {
|
|
|
10186
10197
|
"aria-valuetext": w,
|
|
10187
10198
|
...C
|
|
10188
10199
|
}, A) => {
|
|
10189
|
-
const S = _r(), k = o ?? S, M = p ? `${k}-helper` : void 0, V = v ? `${k}-error` : void 0,
|
|
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;
|
|
10190
10201
|
return /* @__PURE__ */ N("div", { className: E("bfrs-w-full", r, e), children: [
|
|
10191
10202
|
(m || R !== void 0) && /* @__PURE__ */ N("div", { className: "bfrs-mb-2 bfrs-flex bfrs-items-center bfrs-justify-between bfrs-gap-3", children: [
|
|
10192
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", {}),
|
|
@@ -10203,7 +10214,7 @@ const wp = {
|
|
|
10203
10214
|
max: d,
|
|
10204
10215
|
step: b,
|
|
10205
10216
|
disabled: u,
|
|
10206
|
-
"aria-describedby":
|
|
10217
|
+
"aria-describedby": z,
|
|
10207
10218
|
"aria-invalid": y ?? !!v,
|
|
10208
10219
|
"aria-valuetext": w ?? Ep(R),
|
|
10209
10220
|
className: E(
|
|
@@ -10559,7 +10570,7 @@ const Zp = {
|
|
|
10559
10570
|
o && /* @__PURE__ */ i("span", { className: "bfrs-shrink-0", children: o })
|
|
10560
10571
|
] }));
|
|
10561
10572
|
Hp.displayName = "InfoCard";
|
|
10562
|
-
const
|
|
10573
|
+
const zp = {
|
|
10563
10574
|
neutral: "bfrs-bg-surface-muted bfrs-text-text-secondary",
|
|
10564
10575
|
primary: "bfrs-bg-primary-soft bfrs-text-primary",
|
|
10565
10576
|
brand: "bfrs-bg-primary-soft bfrs-text-primary",
|
|
@@ -10567,8 +10578,8 @@ const $p = {
|
|
|
10567
10578
|
warning: "bfrs-bg-warning-soft bfrs-text-warning-contrast",
|
|
10568
10579
|
danger: "bfrs-bg-danger-soft bfrs-text-danger-contrast",
|
|
10569
10580
|
info: "bfrs-bg-info-soft bfrs-text-info-contrast"
|
|
10570
|
-
},
|
|
10571
|
-
|
|
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";
|
|
10572
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, {
|
|
10573
10584
|
variants: {
|
|
10574
10585
|
variant: {
|
|
@@ -10777,17 +10788,17 @@ function a8({ toasts: e, onDismiss: r, placement: t = "bottom-center", className
|
|
|
10777
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)) });
|
|
10778
10789
|
}
|
|
10779
10790
|
function e4({ children: e, placement: r = "bottom-center", maxToasts: t = 4, defaultDuration: s = 2600, className: a }) {
|
|
10780
|
-
const [o, l] = ae([]), c = Fr(0), f =
|
|
10791
|
+
const [o, l] = ae([]), c = Fr(0), f = ze((g) => {
|
|
10781
10792
|
l((x) => x.filter((y) => y.id !== g));
|
|
10782
|
-
}, []), d =
|
|
10793
|
+
}, []), d = ze(() => {
|
|
10783
10794
|
l([]);
|
|
10784
|
-
}, []), b =
|
|
10795
|
+
}, []), b = ze(
|
|
10785
10796
|
(g) => {
|
|
10786
10797
|
const x = t8(g, s), y = x.id ?? `toast-${Date.now()}-${c.current++}`, w = { ...x, id: y };
|
|
10787
10798
|
return l((C) => [...C.filter((A) => A.id !== y), w].slice(-t)), y;
|
|
10788
10799
|
},
|
|
10789
10800
|
[s, t]
|
|
10790
|
-
), u =
|
|
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(
|
|
10791
10802
|
() => ({ toasts: o, toast: b, success: u, warning: m, danger: p, info: v, dismiss: f, clear: d }),
|
|
10792
10803
|
[d, p, f, v, u, b, o, m]
|
|
10793
10804
|
);
|
|
@@ -10828,9 +10839,9 @@ var Ds = "Dialog", [Zc] = Se(Ds), [o8, Ue] = Zc(Ds), Hc = (e) => {
|
|
|
10828
10839
|
);
|
|
10829
10840
|
};
|
|
10830
10841
|
Hc.displayName = Ds;
|
|
10831
|
-
var
|
|
10842
|
+
var zc = "DialogTrigger", $c = n.forwardRef(
|
|
10832
10843
|
(e, r) => {
|
|
10833
|
-
const { __scopeDialog: t, ...s } = e, a = Ue(
|
|
10844
|
+
const { __scopeDialog: t, ...s } = e, a = Ue(zc, t), o = oe(r, a.triggerRef);
|
|
10834
10845
|
return /* @__PURE__ */ i(
|
|
10835
10846
|
X.button,
|
|
10836
10847
|
{
|
|
@@ -10846,7 +10857,7 @@ var $c = "DialogTrigger", zc = n.forwardRef(
|
|
|
10846
10857
|
);
|
|
10847
10858
|
}
|
|
10848
10859
|
);
|
|
10849
|
-
|
|
10860
|
+
$c.displayName = zc;
|
|
10850
10861
|
var ia = "DialogPortal", [i8, Bc] = Zc(ia, {
|
|
10851
10862
|
forceMount: void 0
|
|
10852
10863
|
}), Wc = (e) => {
|
|
@@ -11021,7 +11032,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${r.do
|
|
|
11021
11032
|
const a = (o = e.current) == null ? void 0 : o.getAttribute("aria-describedby");
|
|
11022
11033
|
r && a && (document.getElementById(r) || console.warn(s));
|
|
11023
11034
|
}, [s, e, r]), null;
|
|
11024
|
-
}, rf = Hc, tf =
|
|
11035
|
+
}, rf = Hc, tf = $c, sf = Wc, nf = Gc, af = jc, of = Kc, lf = Xc, cf = Jc;
|
|
11025
11036
|
const p8 = {
|
|
11026
11037
|
sm: "bfrs-max-w-sm",
|
|
11027
11038
|
md: "bfrs-max-w-lg",
|
|
@@ -11076,7 +11087,7 @@ function h8({
|
|
|
11076
11087
|
o && /* @__PURE__ */ i(of, { className: "bfrs-text-base bfrs-font-bold bfrs-text-text-primary", children: o }),
|
|
11077
11088
|
l && /* @__PURE__ */ i(lf, { className: "bfrs-mt-1 bfrs-text-sm bfrs-leading-5 bfrs-text-text-muted", children: l })
|
|
11078
11089
|
] }),
|
|
11079
|
-
b && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i(
|
|
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 }) })
|
|
11080
11091
|
] }),
|
|
11081
11092
|
/* @__PURE__ */ i("div", { className: "bfrs-min-h-0 bfrs-overflow-auto bfrs-px-5 bfrs-py-4", children: c }),
|
|
11082
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 })
|
|
@@ -11147,7 +11158,7 @@ function x8({
|
|
|
11147
11158
|
o && /* @__PURE__ */ i(of, { className: "bfrs-text-base bfrs-font-bold bfrs-text-text-primary", children: o }),
|
|
11148
11159
|
l && /* @__PURE__ */ i(lf, { className: "bfrs-mt-1 bfrs-text-sm bfrs-leading-5 bfrs-text-text-muted", children: l })
|
|
11149
11160
|
] }),
|
|
11150
|
-
u && /* @__PURE__ */ i(cf, { asChild: !0, children: /* @__PURE__ */ i(
|
|
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 }) })
|
|
11151
11162
|
] }),
|
|
11152
11163
|
/* @__PURE__ */ i("div", { className: "bfrs-min-h-0 bfrs-flex-1 bfrs-overflow-auto bfrs-px-5 bfrs-py-4", children: c }),
|
|
11153
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 })
|
|
@@ -11167,7 +11178,7 @@ var kn = ["Enter", " "], y8 = ["ArrowDown", "PageUp", "Home"], ff = ["ArrowUp",
|
|
|
11167
11178
|
M8,
|
|
11168
11179
|
xr,
|
|
11169
11180
|
it
|
|
11170
|
-
]), Ts = xr(), bf = it(), [A8,
|
|
11181
|
+
]), Ts = xr(), bf = it(), [A8, zr] = Hr(Rt), [k8, Pt] = Hr(Rt), uf = (e) => {
|
|
11171
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);
|
|
11172
11183
|
return n.useEffect(() => {
|
|
11173
11184
|
const p = () => {
|
|
@@ -11209,18 +11220,18 @@ fa.displayName = S8;
|
|
|
11209
11220
|
var da = "MenuPortal", [R8, mf] = Hr(da, {
|
|
11210
11221
|
forceMount: void 0
|
|
11211
11222
|
}), pf = (e) => {
|
|
11212
|
-
const { __scopeMenu: r, forceMount: t, children: s, container: a } = e, o =
|
|
11223
|
+
const { __scopeMenu: r, forceMount: t, children: s, container: a } = e, o = zr(da, r);
|
|
11213
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 }) }) });
|
|
11214
11225
|
};
|
|
11215
11226
|
pf.displayName = da;
|
|
11216
11227
|
var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
|
|
11217
11228
|
(e, r) => {
|
|
11218
|
-
const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o =
|
|
11229
|
+
const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o = zr(Ie, e.__scopeMenu), l = Pt(Ie, e.__scopeMenu);
|
|
11219
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 }) }) }) });
|
|
11220
11231
|
}
|
|
11221
11232
|
), V8 = n.forwardRef(
|
|
11222
11233
|
(e, r) => {
|
|
11223
|
-
const t =
|
|
11234
|
+
const t = zr(Ie, e.__scopeMenu), s = n.useRef(null), a = oe(r, s);
|
|
11224
11235
|
return n.useEffect(() => {
|
|
11225
11236
|
const o = s.current;
|
|
11226
11237
|
if (o) return ys(o);
|
|
@@ -11242,7 +11253,7 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
|
|
|
11242
11253
|
);
|
|
11243
11254
|
}
|
|
11244
11255
|
), D8 = n.forwardRef((e, r) => {
|
|
11245
|
-
const t =
|
|
11256
|
+
const t = zr(Ie, e.__scopeMenu);
|
|
11246
11257
|
return /* @__PURE__ */ i(
|
|
11247
11258
|
ua,
|
|
11248
11259
|
{
|
|
@@ -11271,11 +11282,11 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
|
|
|
11271
11282
|
onDismiss: p,
|
|
11272
11283
|
disableOutsideScroll: v,
|
|
11273
11284
|
...h
|
|
11274
|
-
} = e, g =
|
|
11275
|
-
var
|
|
11276
|
-
const P =
|
|
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;
|
|
11277
11288
|
(function K(re) {
|
|
11278
|
-
|
|
11289
|
+
z.current = re, window.clearTimeout(V.current), re !== "" && (V.current = window.setTimeout(() => K(""), 1e3));
|
|
11279
11290
|
})(P), ie && setTimeout(() => ie.focus());
|
|
11280
11291
|
};
|
|
11281
11292
|
n.useEffect(() => () => window.clearTimeout(V.current), []), fs();
|
|
@@ -11287,7 +11298,7 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
|
|
|
11287
11298
|
P8,
|
|
11288
11299
|
{
|
|
11289
11300
|
scope: t,
|
|
11290
|
-
searchRef:
|
|
11301
|
+
searchRef: z,
|
|
11291
11302
|
onItemEnter: n.useCallback(
|
|
11292
11303
|
(T) => {
|
|
11293
11304
|
O(T) && T.preventDefault();
|
|
@@ -11363,11 +11374,11 @@ var Ie = "MenuContent", [P8, ba] = Hr(Ie), hf = n.forwardRef(
|
|
|
11363
11374
|
const le = k.current;
|
|
11364
11375
|
if (T.target !== le || !w8.includes(T.key)) return;
|
|
11365
11376
|
T.preventDefault();
|
|
11366
|
-
const ie = C().filter((
|
|
11377
|
+
const ie = C().filter(($) => !$.disabled).map(($) => $.ref.current);
|
|
11367
11378
|
ff.includes(T.key) && ie.reverse(), B8(ie);
|
|
11368
11379
|
}),
|
|
11369
11380
|
onBlur: F(e.onBlur, (T) => {
|
|
11370
|
-
T.currentTarget.contains(T.target) || (window.clearTimeout(V.current),
|
|
11381
|
+
T.currentTarget.contains(T.target) || (window.clearTimeout(V.current), z.current = "");
|
|
11371
11382
|
}),
|
|
11372
11383
|
onPointerMove: F(
|
|
11373
11384
|
e.onPointerMove,
|
|
@@ -11571,16 +11582,16 @@ var H8 = "MenuSeparator", Af = n.forwardRef(
|
|
|
11571
11582
|
}
|
|
11572
11583
|
);
|
|
11573
11584
|
Af.displayName = H8;
|
|
11574
|
-
var
|
|
11585
|
+
var z8 = "MenuArrow", kf = n.forwardRef(
|
|
11575
11586
|
(e, r) => {
|
|
11576
11587
|
const { __scopeMenu: t, ...s } = e, a = Ts(t);
|
|
11577
11588
|
return /* @__PURE__ */ i(vs, { ...a, ...s, ref: r });
|
|
11578
11589
|
}
|
|
11579
11590
|
);
|
|
11580
|
-
kf.displayName =
|
|
11581
|
-
var
|
|
11591
|
+
kf.displayName = z8;
|
|
11592
|
+
var $8 = "MenuSub", [t4, Sf] = Hr($8), ut = "MenuSubTrigger", Rf = n.forwardRef(
|
|
11582
11593
|
(e, r) => {
|
|
11583
|
-
const t =
|
|
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(() => {
|
|
11584
11595
|
l.current && window.clearTimeout(l.current), l.current = null;
|
|
11585
11596
|
}, []);
|
|
11586
11597
|
return n.useEffect(() => b, [b]), n.useEffect(() => {
|
|
@@ -11651,7 +11662,7 @@ var z8 = "MenuSub", [t4, Sf] = Hr(z8), ut = "MenuSubTrigger", Rf = n.forwardRef(
|
|
|
11651
11662
|
Rf.displayName = ut;
|
|
11652
11663
|
var Pf = "MenuSubContent", Vf = n.forwardRef(
|
|
11653
11664
|
(e, r) => {
|
|
11654
|
-
const t = mf(Ie, e.__scopeMenu), { forceMount: s = t.forceMount, ...a } = e, o =
|
|
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);
|
|
11655
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(
|
|
11656
11667
|
ua,
|
|
11657
11668
|
{
|
|
@@ -11840,18 +11851,18 @@ var mh = "DropdownMenuLabel", Hf = n.forwardRef(
|
|
|
11840
11851
|
}
|
|
11841
11852
|
);
|
|
11842
11853
|
Hf.displayName = mh;
|
|
11843
|
-
var ph = "DropdownMenuItem",
|
|
11854
|
+
var ph = "DropdownMenuItem", zf = n.forwardRef(
|
|
11844
11855
|
(e, r) => {
|
|
11845
11856
|
const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
|
|
11846
11857
|
return /* @__PURE__ */ i(eh, { ...a, ...s, ref: r });
|
|
11847
11858
|
}
|
|
11848
11859
|
);
|
|
11849
|
-
|
|
11850
|
-
var hh = "DropdownMenuCheckboxItem",
|
|
11860
|
+
zf.displayName = ph;
|
|
11861
|
+
var hh = "DropdownMenuCheckboxItem", $f = n.forwardRef((e, r) => {
|
|
11851
11862
|
const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
|
|
11852
11863
|
return /* @__PURE__ */ i(rh, { ...a, ...s, ref: r });
|
|
11853
11864
|
});
|
|
11854
|
-
|
|
11865
|
+
$f.displayName = hh;
|
|
11855
11866
|
var gh = "DropdownMenuRadioGroup", vh = n.forwardRef((e, r) => {
|
|
11856
11867
|
const { __scopeDropdownMenu: t, ...s } = e, a = Ae(t);
|
|
11857
11868
|
return /* @__PURE__ */ i(th, { ...a, ...s, ref: r });
|
|
@@ -11904,7 +11915,7 @@ var Sh = "DropdownMenuSubContent", Rh = n.forwardRef((e, r) => {
|
|
|
11904
11915
|
);
|
|
11905
11916
|
});
|
|
11906
11917
|
Rh.displayName = Sh;
|
|
11907
|
-
var ga = If, va = _f, xa = Ff, ya = Zf, Ph = Hf, Wf =
|
|
11918
|
+
var ga = If, va = _f, xa = Ff, ya = Zf, Ph = Hf, Wf = zf, Vh = $f, Dh = Bf;
|
|
11908
11919
|
function s4({ trigger: e, items: r, align: t = "end", size: s = "md", className: a }) {
|
|
11909
11920
|
return /* @__PURE__ */ N(ga, { children: [
|
|
11910
11921
|
/* @__PURE__ */ i(va, { asChild: !0, children: e }),
|
|
@@ -12056,10 +12067,10 @@ Zh.displayName = "MetricCard";
|
|
|
12056
12067
|
function Hh({ title: e = "No records found", description: r, action: t, colSpan: s = 1, className: a }) {
|
|
12057
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 }) }) });
|
|
12058
12069
|
}
|
|
12059
|
-
function
|
|
12070
|
+
function zh({ title: e = "Unable to load records", description: r, action: t, colSpan: s = 1, className: a }) {
|
|
12060
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 }) }) });
|
|
12061
12072
|
}
|
|
12062
|
-
function
|
|
12073
|
+
function $h(e, r) {
|
|
12063
12074
|
if (r <= 7) return Array.from({ length: r }, (s, a) => a + 1);
|
|
12064
12075
|
const t = [1];
|
|
12065
12076
|
e > 3 && t.push("...");
|
|
@@ -12078,7 +12089,7 @@ function Bh({
|
|
|
12078
12089
|
itemLabel: c = "items",
|
|
12079
12090
|
className: f
|
|
12080
12091
|
}) {
|
|
12081
|
-
const d =
|
|
12092
|
+
const d = $h(e, Math.max(1, r));
|
|
12082
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: [
|
|
12083
12094
|
/* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-items-center bfrs-gap-2 bfrs-text-xs bfrs-text-text-muted", children: [
|
|
12084
12095
|
l && t && /* @__PURE__ */ N(Ce, { children: [
|
|
@@ -12200,7 +12211,7 @@ function o4({
|
|
|
12200
12211
|
onPinLeadingColumnChange: k,
|
|
12201
12212
|
enableColumnReordering: M = !0,
|
|
12202
12213
|
resetKey: V,
|
|
12203
|
-
showSortIcon:
|
|
12214
|
+
showSortIcon: z = "always",
|
|
12204
12215
|
leadingColumn: R,
|
|
12205
12216
|
rowActions: H,
|
|
12206
12217
|
rowActionsHeader: Y = "Action",
|
|
@@ -12217,7 +12228,7 @@ function o4({
|
|
|
12217
12228
|
headerClassName: le,
|
|
12218
12229
|
rowClassName: ce,
|
|
12219
12230
|
cellClassName: ie,
|
|
12220
|
-
onRowClick:
|
|
12231
|
+
onRowClick: $,
|
|
12221
12232
|
"aria-label": te = "Data table"
|
|
12222
12233
|
}) {
|
|
12223
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]);
|
|
@@ -12277,19 +12288,19 @@ function o4({
|
|
|
12277
12288
|
}, b0 = (_, U) => {
|
|
12278
12289
|
M && (_.preventDefault(), Er(U));
|
|
12279
12290
|
}, u0 = (_, U) => {
|
|
12280
|
-
var Ee,
|
|
12291
|
+
var Ee, $r;
|
|
12281
12292
|
if (!M) return;
|
|
12282
12293
|
if (_.preventDefault(), De === null || De === U) {
|
|
12283
12294
|
Ye(null), Er(null);
|
|
12284
12295
|
return;
|
|
12285
12296
|
}
|
|
12286
|
-
const ge = (Ee = me[De]) == null ? void 0 : Ee.id, be = (
|
|
12297
|
+
const ge = (Ee = me[De]) == null ? void 0 : Ee.id, be = ($r = me[U]) == null ? void 0 : $r.id;
|
|
12287
12298
|
ge && be && (c0(Yh(v ?? se, ge, be)), De < ke && Aa(Math.min(ke, U + 1))), Ye(null), Er(null);
|
|
12288
12299
|
}, Hs = (_, U = 20) => ({
|
|
12289
12300
|
position: "sticky",
|
|
12290
12301
|
left: _,
|
|
12291
12302
|
zIndex: U
|
|
12292
|
-
}),
|
|
12303
|
+
}), zs = (_, U = 10) => ({
|
|
12293
12304
|
position: "sticky",
|
|
12294
12305
|
left: _,
|
|
12295
12306
|
zIndex: U
|
|
@@ -12345,13 +12356,13 @@ function o4({
|
|
|
12345
12356
|
}
|
|
12346
12357
|
),
|
|
12347
12358
|
me.map((_, U) => {
|
|
12348
|
-
const ge = (he == null ? void 0 : he.columnId) === _.id, be = U < ke, Ee = U === ke - 1,
|
|
12359
|
+
const ge = (he == null ? void 0 : he.columnId) === _.id, be = U < ke, Ee = U === ke - 1, $r = {
|
|
12349
12360
|
width: _.width,
|
|
12350
12361
|
minWidth: _.minWidth ?? _.width,
|
|
12351
12362
|
textAlign: _.align,
|
|
12352
12363
|
...be ? Hs(Ra(U), 22) : {},
|
|
12353
12364
|
..._.headerStyle
|
|
12354
|
-
}, Mr = d && _.sortable, Br = Mr &&
|
|
12365
|
+
}, Mr = d && _.sortable, Br = Mr && z === "always" && !ge, ye = Mr && ge && z !== "never";
|
|
12355
12366
|
return /* @__PURE__ */ i(
|
|
12356
12367
|
"th",
|
|
12357
12368
|
{
|
|
@@ -12375,7 +12386,7 @@ function o4({
|
|
|
12375
12386
|
be && !Ee && "bfrs-shadow-none",
|
|
12376
12387
|
_.headerClassName
|
|
12377
12388
|
),
|
|
12378
|
-
style:
|
|
12389
|
+
style: $r,
|
|
12379
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: [
|
|
12380
12391
|
Mr ? /* @__PURE__ */ N(
|
|
12381
12392
|
"button",
|
|
@@ -12417,21 +12428,21 @@ function o4({
|
|
|
12417
12428
|
}
|
|
12418
12429
|
)
|
|
12419
12430
|
] }) }),
|
|
12420
|
-
/* @__PURE__ */ i("tbody", { children: s ? /* @__PURE__ */ i(Gh, { rows: 5, columns: Tt, density: J }) : a ? /* @__PURE__ */ i(
|
|
12421
|
-
const ge = Os(_, U), be = I.includes(ge), Ee = Fs === ge,
|
|
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");
|
|
12422
12433
|
return /* @__PURE__ */ N(
|
|
12423
12434
|
"tr",
|
|
12424
12435
|
{
|
|
12425
|
-
className: E("bfrs-group/row bfrs-bg-surface-card bfrs-transition hover:bfrs-bg-surface-app", be && "bfrs-bg-surface-app",
|
|
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),
|
|
12426
12437
|
onMouseEnter: () => Vt(ge),
|
|
12427
12438
|
onMouseLeave: () => Vt(null),
|
|
12428
|
-
onClick: () =>
|
|
12439
|
+
onClick: () => $ == null ? void 0 : $(_),
|
|
12429
12440
|
children: [
|
|
12430
12441
|
Dt && /* @__PURE__ */ i(
|
|
12431
12442
|
"td",
|
|
12432
12443
|
{
|
|
12433
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)]"),
|
|
12434
|
-
style: { width: Rr, minWidth: Rr, ...Cr ?
|
|
12445
|
+
style: { width: Rr, minWidth: Rr, ...Cr ? zs(0, 14) : {} },
|
|
12435
12446
|
onClick: (ye) => ye.stopPropagation(),
|
|
12436
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 }) })
|
|
12437
12448
|
}
|
|
@@ -12443,7 +12454,7 @@ function o4({
|
|
|
12443
12454
|
style: {
|
|
12444
12455
|
width: R.width,
|
|
12445
12456
|
minWidth: R.minWidth ?? R.width ?? nn,
|
|
12446
|
-
...Re ?
|
|
12457
|
+
...Re ? zs(Cr ? Rr : 0, 13) : {},
|
|
12447
12458
|
...R.style
|
|
12448
12459
|
},
|
|
12449
12460
|
onClick: L ? (ye) => ye.stopPropagation() : void 0,
|
|
@@ -12471,7 +12482,7 @@ function o4({
|
|
|
12471
12482
|
width: ye.width,
|
|
12472
12483
|
minWidth: ye.minWidth ?? ye.width,
|
|
12473
12484
|
textAlign: ye.align,
|
|
12474
|
-
...Da ?
|
|
12485
|
+
...Da ? zs(Ra(Oe), 12) : {},
|
|
12475
12486
|
...ye.style
|
|
12476
12487
|
},
|
|
12477
12488
|
children: ye.cell ? ye.cell(_, { value: Va, rowIndex: U, selected: be, hovered: Ee }) : String(Va ?? "")
|
|
@@ -12555,7 +12566,7 @@ function l4({ row: e, getItems: r, label: t = "Row actions" }) {
|
|
|
12555
12566
|
return /* @__PURE__ */ i(
|
|
12556
12567
|
qh,
|
|
12557
12568
|
{
|
|
12558
|
-
trigger: /* @__PURE__ */ i(
|
|
12569
|
+
trigger: /* @__PURE__ */ i($e, { "aria-label": t, icon: /* @__PURE__ */ i(w1, { size: 18, weight: "bold" }), variant: "ghost", size: "sm" }),
|
|
12559
12570
|
items: r(e)
|
|
12560
12571
|
}
|
|
12561
12572
|
);
|
|
@@ -12871,7 +12882,7 @@ const i6 = G(
|
|
|
12871
12882
|
...m,
|
|
12872
12883
|
children: [
|
|
12873
12884
|
/* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-min-w-0 bfrs-items-start bfrs-gap-3", children: [
|
|
12874
|
-
o && /* @__PURE__ */ i(
|
|
12885
|
+
o && /* @__PURE__ */ i($e, { "aria-label": l, icon: /* @__PURE__ */ i(u1, { size: 16 }), size: "sm", variant: "outline", onClick: o }),
|
|
12875
12886
|
/* @__PURE__ */ N("div", { className: "bfrs-min-w-0", children: [
|
|
12876
12887
|
a,
|
|
12877
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 }),
|
|
@@ -13199,18 +13210,18 @@ function N6({
|
|
|
13199
13210
|
cancelLabel: k = "Cancel",
|
|
13200
13211
|
clearLabel: M = "Clear",
|
|
13201
13212
|
formatDate: V = n0,
|
|
13202
|
-
formatRange:
|
|
13213
|
+
formatRange: z,
|
|
13203
13214
|
triggerClassName: R,
|
|
13204
13215
|
contentClassName: H,
|
|
13205
13216
|
calendarClassName: Y,
|
|
13206
13217
|
...D
|
|
13207
13218
|
}) {
|
|
13208
|
-
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(), [
|
|
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(
|
|
13209
13220
|
(ee) => {
|
|
13210
13221
|
x === void 0 && T(ee), w == null || w(ee);
|
|
13211
13222
|
},
|
|
13212
13223
|
[x, w]
|
|
13213
|
-
), ue =
|
|
13224
|
+
), ue = ze(
|
|
13214
13225
|
(ee) => {
|
|
13215
13226
|
r === void 0 && L(ee), s == null || s(ee);
|
|
13216
13227
|
},
|
|
@@ -13220,16 +13231,16 @@ function N6({
|
|
|
13220
13231
|
P && (le(I), Z(I.preset ?? (Ur(I) ? Ze : "")), ie(void 0), te(!1), re(on(I, v)));
|
|
13221
13232
|
}, [I, v, P]);
|
|
13222
13233
|
const pe = xe(() => {
|
|
13223
|
-
if (
|
|
13224
|
-
return
|
|
13234
|
+
if (z)
|
|
13235
|
+
return z(I);
|
|
13225
13236
|
const ee = w6(a, I.preset);
|
|
13226
13237
|
return ee && I.preset !== Ze ? ee : Ur(I) ? Sn(I.from, I.to) ? V(I.from) : `${V(I.from)} - ${V(I.to)}` : o;
|
|
13227
|
-
}, [I, V,
|
|
13238
|
+
}, [I, V, z, o, a]), Fe = ze(
|
|
13228
13239
|
(ee) => {
|
|
13229
13240
|
const me = ur(ee), ke = u ? ur(u) : void 0, Re = m ? ur(m) : void 0;
|
|
13230
|
-
return !!(ke && rt(me, ke) < 0 || Re && rt(me, Re) > 0 ||
|
|
13241
|
+
return !!(ke && rt(me, ke) < 0 || Re && rt(me, Re) > 0 || $ && q.from && p && g6(me, q.from) + 1 > p);
|
|
13231
13242
|
},
|
|
13232
|
-
[
|
|
13243
|
+
[$, q.from, m, p, u]
|
|
13233
13244
|
), Ke = (ee) => {
|
|
13234
13245
|
if (ee.disabled) return;
|
|
13235
13246
|
const me = ee.getRange(), ke = Rn(me.from, me.to);
|
|
@@ -13243,7 +13254,7 @@ function N6({
|
|
|
13243
13254
|
}, Ye = (ee) => {
|
|
13244
13255
|
if (Fe(ee)) return;
|
|
13245
13256
|
const me = ur(ee);
|
|
13246
|
-
if (
|
|
13257
|
+
if (!$ || !q.from || q.to) {
|
|
13247
13258
|
le({ preset: Ze, from: me, to: void 0 }), Z(Ze), te(!0);
|
|
13248
13259
|
return;
|
|
13249
13260
|
}
|
|
@@ -13341,7 +13352,7 @@ function N6({
|
|
|
13341
13352
|
from: q.from,
|
|
13342
13353
|
to: q.to,
|
|
13343
13354
|
hovered: ce,
|
|
13344
|
-
awaitingTo:
|
|
13355
|
+
awaitingTo: $,
|
|
13345
13356
|
isDateDisabled: Fe,
|
|
13346
13357
|
onSelectDate: Ye,
|
|
13347
13358
|
onHoverDate: ie,
|
|
@@ -13358,7 +13369,7 @@ function N6({
|
|
|
13358
13369
|
from: q.from,
|
|
13359
13370
|
to: q.to,
|
|
13360
13371
|
hovered: ce,
|
|
13361
|
-
awaitingTo:
|
|
13372
|
+
awaitingTo: $,
|
|
13362
13373
|
isDateDisabled: Fe,
|
|
13363
13374
|
onSelectDate: Ye,
|
|
13364
13375
|
onHoverDate: ie,
|
|
@@ -13443,29 +13454,46 @@ function p4({
|
|
|
13443
13454
|
) });
|
|
13444
13455
|
}
|
|
13445
13456
|
const E6 = G(
|
|
13446
|
-
({ className: e, value: r, onValueChange: t, onSubmit: s, loading: a, disabled: o,
|
|
13447
|
-
m
|
|
13448
|
-
|
|
13449
|
-
|
|
13450
|
-
/* @__PURE__ */ i(
|
|
13451
|
-
"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",
|
|
13452
13461
|
{
|
|
13453
|
-
|
|
13454
|
-
|
|
13455
|
-
disabled: o,
|
|
13456
|
-
placeholder: f,
|
|
13457
|
-
rows: 1,
|
|
13458
|
-
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",
|
|
13459
|
-
onChange: (m) => t(m.target.value),
|
|
13460
|
-
onKeyDown: (m) => {
|
|
13461
|
-
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());
|
|
13462
13464
|
},
|
|
13463
|
-
|
|
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
|
+
]
|
|
13464
13494
|
}
|
|
13465
|
-
)
|
|
13466
|
-
|
|
13467
|
-
/* @__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() })
|
|
13468
|
-
] })
|
|
13495
|
+
);
|
|
13496
|
+
}
|
|
13469
13497
|
);
|
|
13470
13498
|
E6.displayName = "ChatComposer";
|
|
13471
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);
|
|
@@ -13860,7 +13888,7 @@ const Vo = (e) => e === void 0 || e === "" ? [] : Array.isArray(e) ? e : [e], H6
|
|
|
13860
13888
|
}
|
|
13861
13889
|
);
|
|
13862
13890
|
H6.displayName = "Accordion";
|
|
13863
|
-
const
|
|
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: [
|
|
13864
13892
|
/* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-flex-wrap bfrs-items-center bfrs-gap-x-5 bfrs-gap-y-2", children: [
|
|
13865
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: [
|
|
13866
13894
|
/* @__PURE__ */ i("span", { children: c.label }),
|
|
@@ -13873,8 +13901,8 @@ const $6 = G(({ className: e, items: r = [], totalLabel: t, totalValue: s, note:
|
|
|
13873
13901
|
] }),
|
|
13874
13902
|
a && /* @__PURE__ */ i("div", { className: "bfrs-mt-1 bfrs-text-xs bfrs-text-text-muted", children: a })
|
|
13875
13903
|
] }));
|
|
13876
|
-
|
|
13877
|
-
const
|
|
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: [
|
|
13878
13906
|
/* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-items-start bfrs-gap-3", children: [
|
|
13879
13907
|
/* @__PURE__ */ N("div", { className: "bfrs-min-w-0 bfrs-flex-1", children: [
|
|
13880
13908
|
/* @__PURE__ */ N("div", { className: "bfrs-flex bfrs-min-w-0 bfrs-flex-wrap bfrs-items-center bfrs-gap-2", children: [
|
|
@@ -13884,7 +13912,7 @@ const z6 = G(({ className: e, title: r, description: t, status: s, statusTone: a
|
|
|
13884
13912
|
t && /* @__PURE__ */ i("div", { className: "bfrs-mt-1 bfrs-text-xs bfrs-leading-5 bfrs-text-text-secondary", children: t })
|
|
13885
13913
|
] }),
|
|
13886
13914
|
l.length > 0 && /* @__PURE__ */ i("div", { className: "bfrs-flex bfrs-shrink-0 bfrs-items-center bfrs-gap-1", children: l.map(
|
|
13887
|
-
(b) => b.icon ? /* @__PURE__ */ i(
|
|
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)
|
|
13888
13916
|
) })
|
|
13889
13917
|
] }),
|
|
13890
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: [
|
|
@@ -13892,7 +13920,7 @@ const z6 = G(({ className: e, title: r, description: t, status: s, statusTone: a
|
|
|
13892
13920
|
/* @__PURE__ */ i("dd", { className: "bfrs-mt-0.5 bfrs-truncate bfrs-text-xs bfrs-font-medium bfrs-text-text-primary", children: b.value })
|
|
13893
13921
|
] }, u)) })
|
|
13894
13922
|
] }));
|
|
13895
|
-
|
|
13923
|
+
$6.displayName = "EntityDisplayCard";
|
|
13896
13924
|
function B6(e) {
|
|
13897
13925
|
return `${typeof e.label == "string" ? e.label : ""} ${e.keywords ?? ""}`.toLowerCase();
|
|
13898
13926
|
}
|
|
@@ -13980,11 +14008,11 @@ function G6({
|
|
|
13980
14008
|
children: [
|
|
13981
14009
|
!t && e,
|
|
13982
14010
|
a && /* @__PURE__ */ i(
|
|
13983
|
-
|
|
14011
|
+
$e,
|
|
13984
14012
|
{
|
|
13985
14013
|
"aria-label": o,
|
|
13986
14014
|
title: o,
|
|
13987
|
-
variant: "
|
|
14015
|
+
variant: "secondary",
|
|
13988
14016
|
size: "sm",
|
|
13989
14017
|
className: E(
|
|
13990
14018
|
"bfrs-size-[26px] bfrs-rounded-[6px] bfrs-bg-surface-card bfrs-text-text-muted hover:bfrs-bg-primary-soft",
|
|
@@ -14166,7 +14194,7 @@ export {
|
|
|
14166
14194
|
x8 as Drawer,
|
|
14167
14195
|
s4 as Dropdown,
|
|
14168
14196
|
_c as EmptyState,
|
|
14169
|
-
|
|
14197
|
+
$6 as EntityDisplayCard,
|
|
14170
14198
|
Fc as ErrorState,
|
|
14171
14199
|
c6 as FieldLabel,
|
|
14172
14200
|
sp as FileDropzone,
|
|
@@ -14178,7 +14206,7 @@ export {
|
|
|
14178
14206
|
Ed as Grid,
|
|
14179
14207
|
f6 as HelperText,
|
|
14180
14208
|
Ga as Icon,
|
|
14181
|
-
|
|
14209
|
+
$e as IconButton,
|
|
14182
14210
|
Hp as InfoCard,
|
|
14183
14211
|
d6 as InlineError,
|
|
14184
14212
|
Pi as Input,
|
|
@@ -14212,12 +14240,12 @@ export {
|
|
|
14212
14240
|
F6 as StepProgressCard,
|
|
14213
14241
|
O6 as StepProgressCardSkeleton,
|
|
14214
14242
|
Dm as SuggestInput,
|
|
14215
|
-
|
|
14243
|
+
z6 as SummaryBar,
|
|
14216
14244
|
yp as Switch,
|
|
14217
14245
|
c4 as TableBulkActions,
|
|
14218
14246
|
f4 as TableColumnVisibility,
|
|
14219
14247
|
Hh as TableEmptyState,
|
|
14220
|
-
|
|
14248
|
+
zh as TableErrorState,
|
|
14221
14249
|
Bh as TablePagination,
|
|
14222
14250
|
l4 as TableRowActions,
|
|
14223
14251
|
Gh as TableSkeleton,
|
|
@@ -14225,7 +14253,7 @@ export {
|
|
|
14225
14253
|
d4 as Tabs,
|
|
14226
14254
|
bn as Text,
|
|
14227
14255
|
L1 as Textarea,
|
|
14228
|
-
|
|
14256
|
+
$p as Tip,
|
|
14229
14257
|
Oc as ToastContext,
|
|
14230
14258
|
a8 as ToastManager,
|
|
14231
14259
|
e4 as ToastProvider,
|
|
@@ -14270,8 +14298,8 @@ export {
|
|
|
14270
14298
|
Z4 as spacing,
|
|
14271
14299
|
ur as startOfDay,
|
|
14272
14300
|
H4 as tableDensities,
|
|
14273
|
-
|
|
14301
|
+
z4 as typography,
|
|
14274
14302
|
Q6 as useToast,
|
|
14275
|
-
|
|
14303
|
+
$4 as zIndex
|
|
14276
14304
|
};
|
|
14277
14305
|
//# sourceMappingURL=index.js.map
|