@factorialco/f0-react 13.11.1 → 13.12.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArchiveThumbnail-BKLyYbOq.js → ArchiveThumbnail-DmnSGwhP.js} +1 -1
- package/dist/{ArchiveViewer-Cz5T16vE.js → ArchiveViewer-RNMB3M36.js} +2 -2
- package/dist/{ChatPostComposerDialog-C67F4elc.js → ChatPostComposerDialog-Z8gG_J2L.js} +2 -2
- package/dist/{CoachmarkProvider-BuWFPpmG.js → CoachmarkProvider-fehx7Q_o.js} +23651 -23539
- package/dist/{CodeThumbnail-D-wJheIP.js → CodeThumbnail-C6HoRhcZ.js} +1 -1
- package/dist/{CodeViewer-gDQOS6iI.js → CodeViewer-BZRBu6at.js} +4 -4
- package/dist/{DocumentToolbar-DLK2n_-s.js → DocumentToolbar-BHrbd-HZ.js} +4 -4
- package/dist/{DocxViewer-9hhmeMbJ.js → DocxViewer-V8WC-PWo.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CbHR_I3P.js → F0AiProcessingOverlay-ReygG6pE.js} +172 -172
- package/dist/{F0Alert-BibfCJRG.js → F0Alert-D4m2sucP.js} +3 -3
- package/dist/F0AudioPlayer-Wj-PKKtF.js +2 -0
- package/dist/{F0Button-Cql35ZB4.js → F0Button-DliApWoo.js} +5764 -5335
- package/dist/{F0CanvasPanel-DjbzJ4if.js → F0CanvasPanel-BKvyk32z.js} +9616 -9564
- package/dist/{F0DocumentViewer-DdQaLXAs.js → F0DocumentViewer-B2vIyYsn.js} +2 -2
- package/dist/{F0DocumentViewer-Biac8pVX.js → F0DocumentViewer-CSJh6Ed7.js} +1 -1
- package/dist/{F0Map-BgIwfjqD.js → F0Map-DClia8fc.js} +56 -56
- package/dist/{F0Select-qyqqfXH7.js → F0Select-DLK87Tv6.js} +187 -187
- package/dist/{F0Text-DulwHmaW.js → F0Text-Cb-FVBzx.js} +1 -1
- package/dist/F0VideoPlayer-CsCI9jzU.js +1 -0
- package/dist/{F0VideoPlayer-BbmoKHh4.js → F0VideoPlayer-WyWePBV8.js} +2 -2
- package/dist/{HtmlThumbnail-lVNYvRe4.js → HtmlThumbnail-B_9tldlm.js} +1 -1
- package/dist/{HtmlViewer-DTorB5Ni.js → HtmlViewer-BVkwk56S.js} +6 -6
- package/dist/LayoutGroup-gwem4ADm.js +57 -0
- package/dist/{Map-B6eQeS3P.js → Map-BDMz636c.js} +7 -7
- package/dist/{PdfThumbnail-Ds_9D-7B.js → PdfThumbnail-CHPvHqdQ.js} +1 -1
- package/dist/{PdfViewer-e2eSdSp-.js → PdfViewer-CBs15JQG.js} +6 -6
- package/dist/{SandboxedHtmlFrame-C6RrQ2yQ.js → SandboxedHtmlFrame-CWcJ_fWA.js} +1 -1
- package/dist/{SheetViewer-CSkVsC3-.js → SheetViewer-BaqxWzpW.js} +3 -3
- package/dist/{TextViewer-10UG7pXL.js → TextViewer-DdEtdDZH.js} +2 -2
- package/dist/ai.js +3 -3
- package/dist/component-status.js +1 -1
- package/dist/{dist-BJcZ_X3W.js → dist-2k-bLufS.js} +1 -1
- package/dist/experimental.d.ts +2 -2
- package/dist/experimental.js +502 -502
- package/dist/f0.d.ts +1 -1
- package/dist/f0.js +202 -202
- package/dist/{highlight-CKsTraEJ.js → highlight-BFih_ytR.js} +1 -1
- package/dist/{maplibre-DZrUxuUr.js → maplibre-DYSBHNua.js} +1 -1
- package/dist/{pdfWorker-Dhn7-lDq.js → pdfWorker-C4oRZ-W-.js} +1 -1
- package/dist/{scrollarea-NoqKFiLU.js → scrollarea-B6RGaKme.js} +1 -1
- package/dist/{toolbarStyles-BgK2AYri.js → toolbarStyles-Bm2pq-KH.js} +1 -1
- package/dist/{types-BD4eJ3Ek.d.ts → types-Dp-ibo8p.d.ts} +2 -17
- package/dist/{useData-DPmbJ0Mf.js → useData-CuyhVJ87.js} +2 -2
- package/icons/animated/PalmTree.js +2 -2
- package/package.json +3 -2
- package/dist/F0AudioPlayer-CWwt7LV6.js +0 -2
- package/dist/F0VideoPlayer-y0zqezdL.js +0 -1
- package/dist/LayoutGroup-OL4BUDqc.js +0 -57
|
@@ -2,15 +2,15 @@ import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
|
|
|
2
2
|
import { a as r, i, r as a } from "./i18n-provider-C_jciu_6.js";
|
|
3
3
|
import { n as o, t as s } from "./skeleton-BEiQvWC1.js";
|
|
4
4
|
import { L as c, R as l, d as u, i as d, n as f, r as p, t as m } from "./tooltip-BX4dSfeL.js";
|
|
5
|
-
import { D as h, E as g, F as _,
|
|
5
|
+
import { D as h, E as g, F as _, K as v, N as y, U as b, d as x, h as S, n as C, r as w, t as T, w as E } from "./F0Button-DliApWoo.js";
|
|
6
6
|
import { n as D, o as O, t as k } from "./F0Icon-Dw-YD4Mz.js";
|
|
7
|
-
import { B as A, F as j, H as M, L as ee, M as te, N as ne, R as re, V as ie, _ as ae, a as oe, f as se, i as N, l as ce, p as le, u as ue, y as de } from "./useData-
|
|
7
|
+
import { B as A, F as j, H as M, L as ee, M as te, N as ne, R as re, V as ie, _ as ae, a as oe, f as se, i as N, l as ce, p as le, u as ue, y as de } from "./useData-CuyhVJ87.js";
|
|
8
8
|
import { t as fe } from "./Check-DAp9gCRh.js";
|
|
9
9
|
import { a as pe, i as me, r as he, t as ge } from "./dist-DJwNiwmx.js";
|
|
10
10
|
import { n as _e, t as ve } from "./LockLocked-gdodYvT_.js";
|
|
11
11
|
import "./purify.es-ZpfdAuNV.js";
|
|
12
12
|
import { $ as ye, G as be, J as xe, K as Se, O as Ce, Q as we, W as Te, X as Ee, Y as De, Z as Oe, _ as ke, a as Ae, at as je, b as Me, ct as Ne, d as Pe, dt as Fe, et as Ie, ft as Le, g as Re, gt as ze, ht as Be, i as Ve, it as He, lt as Ue, mt as We, nt as Ge, ot as Ke, p as qe, pt as Je, q as Ye, rt as Xe, st as Ze, t as Qe, tt as $e, w as et, y as tt } from "./popover-Cd6ZZfjD.js";
|
|
13
|
-
import { c as nt, l as P, n as rt, t as it } from "./scrollarea-
|
|
13
|
+
import { c as nt, l as P, n as rt, t as it } from "./scrollarea-B6RGaKme.js";
|
|
14
14
|
import { t as at } from "./dist-Cuwaibqg.js";
|
|
15
15
|
import * as F from "react";
|
|
16
16
|
import ot, { Component as st, Fragment as ct, cloneElement as lt, createContext as ut, forwardRef as I, useCallback as L, useContext as dt, useEffect as R, useId as ft, useImperativeHandle as pt, useLayoutEffect as mt, useMemo as z, useReducer as ht, useRef as B, useState as V } from "react";
|
|
@@ -1972,7 +1972,7 @@ var Ms = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
1972
1972
|
className: c("inline-flex w-fit max-w-full flex-row items-center justify-start gap-1 py-0.5 pr-2 font-medium text-f1-foreground", l === "md" && "text-base", l === "sm" && "text-sm", !t && "aspect-square w-6 items-center justify-center p-1", e ? "pl-1" : "pl-2", s === "rounded" && "rounded-full", s === "square" && "rounded-sm", i),
|
|
1973
1973
|
children: [
|
|
1974
1974
|
e,
|
|
1975
|
-
t && !u ? /* @__PURE__ */ H(
|
|
1975
|
+
t && !u ? /* @__PURE__ */ H(w, {
|
|
1976
1976
|
tag: "span",
|
|
1977
1977
|
lines: 1,
|
|
1978
1978
|
className: d ? "text-f1-foreground-disabled" : void 0,
|
|
@@ -1989,7 +1989,7 @@ var Ms = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
1989
1989
|
className: "text-base font-medium text-f1-foreground-secondary",
|
|
1990
1990
|
children: a
|
|
1991
1991
|
}) : null,
|
|
1992
|
-
o ? /* @__PURE__ */ H(
|
|
1992
|
+
o ? /* @__PURE__ */ H(y, {
|
|
1993
1993
|
description: o,
|
|
1994
1994
|
children: /* @__PURE__ */ H(k, {
|
|
1995
1995
|
icon: Lt,
|
|
@@ -2001,7 +2001,7 @@ var Ms = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
2001
2001
|
Ls.displayName = "BaseTag";
|
|
2002
2002
|
//#endregion
|
|
2003
2003
|
//#region src/elements/tags/F0TagRaw/F0TagRaw.tsx
|
|
2004
|
-
var Rs = I(({ text: e, additionalAccessibleText: t, icon: n, onlyIcon: r, info: i, className: a, size: o }, s) => (
|
|
2004
|
+
var Rs = I(({ text: e, additionalAccessibleText: t, icon: n, onlyIcon: r, info: i, className: a, size: o }, s) => (x(e, { disallowEmpty: !0 }, { componentName: "F0TagRaw" }), /* @__PURE__ */ H(Ls, {
|
|
2005
2005
|
ref: s,
|
|
2006
2006
|
className: c("border-[1px] border-solid border-f1-border-secondary", a),
|
|
2007
2007
|
size: o,
|
|
@@ -2023,7 +2023,7 @@ var zs = r(Rs), Bs = {
|
|
|
2023
2023
|
critical: yt,
|
|
2024
2024
|
positive: pe
|
|
2025
2025
|
}, Vs = I(({ text: e, level: t, info: n }, r) => {
|
|
2026
|
-
|
|
2026
|
+
x(e, {
|
|
2027
2027
|
disallowEmpty: !0,
|
|
2028
2028
|
disallowEmojis: !0
|
|
2029
2029
|
}, { componentName: "F0TagAlert" });
|
|
@@ -2052,7 +2052,7 @@ var zs = r(Rs), Bs = {
|
|
|
2052
2052
|
});
|
|
2053
2053
|
});
|
|
2054
2054
|
Vs.displayName = "F0TagAlert";
|
|
2055
|
-
var Hs = r(Vs), Us = I(({ text: e, additionalAccessibleText: t, variant: n, icon: r }, i) => (
|
|
2055
|
+
var Hs = r(Vs), Us = I(({ text: e, additionalAccessibleText: t, variant: n, icon: r }, i) => (x(e, { disallowEmpty: !0 }, { componentName: "F0TagStatus" }), /* @__PURE__ */ H(Ls, {
|
|
2056
2056
|
ref: i,
|
|
2057
2057
|
className: c({
|
|
2058
2058
|
neutral: "bg-f1-background-secondary text-f1-foreground-secondary",
|
|
@@ -48462,7 +48462,7 @@ var zC = (e) => e == null || typeof e == "object" && "value" in e && (e.value ==
|
|
|
48462
48462
|
});
|
|
48463
48463
|
});
|
|
48464
48464
|
qC.displayName = "F0TagBalance";
|
|
48465
|
-
var JC = r(qC), YC = I(({ avatar: e, text: t, deactivated: n }, r) => (
|
|
48465
|
+
var JC = r(qC), YC = I(({ avatar: e, text: t, deactivated: n }, r) => (x(t, { disallowEmpty: !0 }, { componentName: "F0TagAvatar" }), /* @__PURE__ */ H(Ls, {
|
|
48466
48466
|
ref: r,
|
|
48467
48467
|
deactivated: n,
|
|
48468
48468
|
className: "border-[1px] border-solid border-f1-border-secondary py-[1px] pl-[1px]",
|
|
@@ -48487,7 +48487,7 @@ var XC = I(({ name: e, src: t }, n) => /* @__PURE__ */ H(YC, {
|
|
|
48487
48487
|
}));
|
|
48488
48488
|
XC.displayName = "F0TagCompany";
|
|
48489
48489
|
var ZC = r(XC), QC = I(({ text: e, info: t, ...n }, r) => {
|
|
48490
|
-
|
|
48490
|
+
x(e, { disallowEmpty: !0 }, { componentName: "F0TagDot" });
|
|
48491
48491
|
let i = "color" in n && n.color ? `hsl(${at[n.color][50]})` : "customColor" in n && n.customColor;
|
|
48492
48492
|
return i ? /* @__PURE__ */ H(Ls, {
|
|
48493
48493
|
ref: r,
|
|
@@ -48562,7 +48562,7 @@ function cw({ size: e, className: t }) {
|
|
|
48562
48562
|
cy: "16",
|
|
48563
48563
|
r: "12",
|
|
48564
48564
|
className: "stroke-f1-background-secondary"
|
|
48565
|
-
}), /* @__PURE__ */ H(
|
|
48565
|
+
}), /* @__PURE__ */ H(b.circle, {
|
|
48566
48566
|
cx: "16",
|
|
48567
48567
|
cy: "16",
|
|
48568
48568
|
r: "12",
|
|
@@ -48697,8 +48697,8 @@ var lw = r(o("Spinner", cw)), uw = O({
|
|
|
48697
48697
|
sm: "text-xs",
|
|
48698
48698
|
md: "text-sm",
|
|
48699
48699
|
lg: "text-sm"
|
|
48700
|
-
} } }), gw = I(({ onSelectedChange: e, selected: t, label: n, disabled: r = !1, icon: i, size: a = "md", variant: o = "compact", tooltip: s, color: u, withBorder: d = !1, className: f, defaultSelected: p = !1, ...m },
|
|
48701
|
-
let
|
|
48700
|
+
} } }), gw = I(({ onSelectedChange: e, selected: t, label: n, disabled: r = !1, icon: i, size: a = "md", variant: o = "compact", tooltip: s, color: u, withBorder: d = !1, className: f, defaultSelected: p = !1, ...m }, y) => {
|
|
48701
|
+
let x = !Array.isArray(i), [S, C] = x ? [i, i] : i, [w, T] = Array.isArray(n) ? n : [n, n], E = z(() => x ? void 0 : {
|
|
48702
48702
|
initial: {
|
|
48703
48703
|
opacity: 0,
|
|
48704
48704
|
scale: .8
|
|
@@ -48715,11 +48715,11 @@ var lw = r(o("Spinner", cw)), uw = O({
|
|
|
48715
48715
|
duration: .25,
|
|
48716
48716
|
ease: "easeOut"
|
|
48717
48717
|
}
|
|
48718
|
-
}, [
|
|
48718
|
+
}, [x]), [D, O] = V(p), A = t !== void 0, j = {
|
|
48719
48719
|
selected: A ? t : D,
|
|
48720
48720
|
onSelectedChange: A ? e : O
|
|
48721
|
-
}, M = j.selected ?
|
|
48722
|
-
ref:
|
|
48721
|
+
}, M = j.selected ? T : w, ee = z(() => o === "expanded" && a === "lg" ? (console.warn("F0ButtonToggle: lg size is not supported for expanded variant"), "md") : a, [a, o]), te = typeof s == "object" ? s : s ? { description: s } : void 0, ne = /* @__PURE__ */ U(ge, {
|
|
48722
|
+
ref: y,
|
|
48723
48723
|
pressed: j.selected,
|
|
48724
48724
|
onPressedChange: j.onSelectedChange,
|
|
48725
48725
|
disabled: r,
|
|
@@ -48733,27 +48733,27 @@ var lw = r(o("Spinner", cw)), uw = O({
|
|
|
48733
48733
|
}), u && (j.selected ? pw[u] : mw), f),
|
|
48734
48734
|
...m,
|
|
48735
48735
|
"data-state": j.selected ? "on" : "off",
|
|
48736
|
-
children: [/* @__PURE__ */ H(
|
|
48736
|
+
children: [/* @__PURE__ */ H(v, {
|
|
48737
48737
|
initial: !1,
|
|
48738
48738
|
children: /* @__PURE__ */ H("div", {
|
|
48739
48739
|
className: "main relative flex flex-col items-center justify-center",
|
|
48740
|
-
children: j.selected ? /* @__PURE__ */ H(
|
|
48740
|
+
children: j.selected ? /* @__PURE__ */ H(b.div, {
|
|
48741
48741
|
className: "absolute flex items-center justify-center",
|
|
48742
|
-
...
|
|
48742
|
+
...E,
|
|
48743
48743
|
children: /* @__PURE__ */ H(k, {
|
|
48744
|
-
icon:
|
|
48744
|
+
icon: C,
|
|
48745
48745
|
size: ee
|
|
48746
48746
|
})
|
|
48747
|
-
}, "icon-on") : /* @__PURE__ */ H(
|
|
48747
|
+
}, "icon-on") : /* @__PURE__ */ H(b.div, {
|
|
48748
48748
|
className: "absolute flex items-center justify-center",
|
|
48749
|
-
...
|
|
48749
|
+
...E,
|
|
48750
48750
|
children: /* @__PURE__ */ H(k, {
|
|
48751
|
-
icon:
|
|
48751
|
+
icon: S,
|
|
48752
48752
|
size: ee
|
|
48753
48753
|
})
|
|
48754
48754
|
}, "icon-off")
|
|
48755
48755
|
})
|
|
48756
|
-
}), o === "expanded" ? /* @__PURE__ */ H(
|
|
48756
|
+
}), o === "expanded" ? /* @__PURE__ */ H(v, {
|
|
48757
48757
|
initial: !1,
|
|
48758
48758
|
children: /* @__PURE__ */ H("span", {
|
|
48759
48759
|
className: c("max-w-full truncate", hw({ size: ee })),
|
|
@@ -49179,7 +49179,7 @@ var pT = (e, t) => {
|
|
|
49179
49179
|
src: e.src
|
|
49180
49180
|
},
|
|
49181
49181
|
size: "xs"
|
|
49182
|
-
}), /* @__PURE__ */ H(
|
|
49182
|
+
}), /* @__PURE__ */ H(w, {
|
|
49183
49183
|
className: c("min-w-0 flex-1 text-f1-foreground", i && "break-words"),
|
|
49184
49184
|
tag: "span",
|
|
49185
49185
|
lines: n,
|
|
@@ -49297,7 +49297,7 @@ var pT = (e, t) => {
|
|
|
49297
49297
|
size: "xs",
|
|
49298
49298
|
flag: e.code,
|
|
49299
49299
|
"aria-label": n
|
|
49300
|
-
}), /* @__PURE__ */ H(
|
|
49300
|
+
}), /* @__PURE__ */ H(w, {
|
|
49301
49301
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
49302
49302
|
tag: "span",
|
|
49303
49303
|
children: n
|
|
@@ -49413,7 +49413,7 @@ var BT = (e, t) => {
|
|
|
49413
49413
|
}) : aT(zT(e), t);
|
|
49414
49414
|
}, VT = (e) => typeof e == "object" && e && "lines" in e ? e.lines : void 0, HT = (e) => (typeof e == "object" && !!e && "full" in e && e.full) ?? !1, UT = (e, t) => {
|
|
49415
49415
|
let n = ww(e, "text")?.toString() || "", r = Cw(e, "text"), i = HT(e), a = t.visualization === "editableTable" && t.maxWidth !== void 0, o = a ? 1 : VT(e) || 3;
|
|
49416
|
-
return /* @__PURE__ */ H(
|
|
49416
|
+
return /* @__PURE__ */ H(w, {
|
|
49417
49417
|
className: c(a ? "whitespace-nowrap text-f1-foreground" : "whitespace-pre-wrap break-words text-f1-foreground", r && "text-f1-foreground-secondary", t.visualization === "table" && xw.multiline),
|
|
49418
49418
|
lines: o,
|
|
49419
49419
|
disabled: i && !a,
|
|
@@ -49469,7 +49469,7 @@ var BT = (e, t) => {
|
|
|
49469
49469
|
deactivated: e.deactivated
|
|
49470
49470
|
},
|
|
49471
49471
|
size: "xs"
|
|
49472
|
-
}), /* @__PURE__ */ H(
|
|
49472
|
+
}), /* @__PURE__ */ H(w, {
|
|
49473
49473
|
className: c("min-w-0 flex-1", e.deactivated ? "text-f1-foreground/[0.61]" : "text-f1-foreground"),
|
|
49474
49474
|
tag: "span",
|
|
49475
49475
|
children: n
|
|
@@ -49861,7 +49861,7 @@ var YE = ({ count: e, list: t }) => {
|
|
|
49861
49861
|
className: "flex max-h-[220px] w-fit flex-col",
|
|
49862
49862
|
children: t.map((e, t) => /* @__PURE__ */ H("div", {
|
|
49863
49863
|
className: "flex w-max max-w-72 items-center gap-1.5 px-2 py-1 [&:first-child]:pt-2 [&:last-child]:pb-2",
|
|
49864
|
-
children: e.description ? /* @__PURE__ */ H(
|
|
49864
|
+
children: e.description ? /* @__PURE__ */ H(y, {
|
|
49865
49865
|
label: e.description,
|
|
49866
49866
|
children: /* @__PURE__ */ H("div", { children: /* @__PURE__ */ H(aw, { tag: e }) })
|
|
49867
49867
|
}) : /* @__PURE__ */ H(aw, { tag: e })
|
|
@@ -49897,7 +49897,7 @@ XE.displayName = "F0TagList";
|
|
|
49897
49897
|
var ZE = r(XE), QE = {
|
|
49898
49898
|
text: (e, t) => {
|
|
49899
49899
|
let n = ww(e, "text"), r = Cw(e, "text"), i = n?.toString() ?? "";
|
|
49900
|
-
return /* @__PURE__ */ H(
|
|
49900
|
+
return /* @__PURE__ */ H(w, {
|
|
49901
49901
|
lines: 1,
|
|
49902
49902
|
tag: "span",
|
|
49903
49903
|
className: c("text-f1-foreground", r && "text-f1-foreground-secondary", t.visualization === "table" && xw.text),
|
|
@@ -49931,7 +49931,7 @@ var ZE = r(XE), QE = {
|
|
|
49931
49931
|
src: e.src
|
|
49932
49932
|
},
|
|
49933
49933
|
size: "xs"
|
|
49934
|
-
}), /* @__PURE__ */ H(
|
|
49934
|
+
}), /* @__PURE__ */ H(w, {
|
|
49935
49935
|
className: c("min-w-0 flex-1 text-f1-foreground", i && "break-words"),
|
|
49936
49936
|
tag: "span",
|
|
49937
49937
|
lines: n,
|
|
@@ -50094,7 +50094,7 @@ var pD = sD, mD = lD, hD = F.forwardRef(({ className: e, indeterminate: t, disab
|
|
|
50094
50094
|
checked: o.checked,
|
|
50095
50095
|
onCheckedChange: o.onCheckedChange,
|
|
50096
50096
|
disabled: n,
|
|
50097
|
-
children: /* @__PURE__ */ H(
|
|
50097
|
+
children: /* @__PURE__ */ H(v, { children: /* @__PURE__ */ H(mD, {
|
|
50098
50098
|
className: "absolute inset-0 z-[2] flex items-center justify-center text-current transition-none",
|
|
50099
50099
|
children: t ? /* @__PURE__ */ H(k, {
|
|
50100
50100
|
icon: re,
|
|
@@ -51489,7 +51489,7 @@ function Bk({ mode: e, selected: t, onSelect: n, month: r, onMonthChange: i, mot
|
|
|
51489
51489
|
from: e.from,
|
|
51490
51490
|
to: e.to
|
|
51491
51491
|
}) : n(null);
|
|
51492
|
-
}, [n, t]),
|
|
51492
|
+
}, [n, t]), y = {
|
|
51493
51493
|
hidden: (e) => ({
|
|
51494
51494
|
opacity: 0,
|
|
51495
51495
|
x: e === 1 ? 40 : -40
|
|
@@ -51503,12 +51503,12 @@ function Bk({ mode: e, selected: t, onSelect: n, month: r, onMonthChange: i, mot
|
|
|
51503
51503
|
x: e === 1 ? -40 : 40
|
|
51504
51504
|
})
|
|
51505
51505
|
};
|
|
51506
|
-
return e === "single" ? /* @__PURE__ */ H(
|
|
51506
|
+
return e === "single" ? /* @__PURE__ */ H(v, {
|
|
51507
51507
|
mode: "popLayout",
|
|
51508
51508
|
initial: !1,
|
|
51509
51509
|
custom: a,
|
|
51510
|
-
children: /* @__PURE__ */ H(
|
|
51511
|
-
variants:
|
|
51510
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
51511
|
+
variants: y,
|
|
51512
51512
|
custom: a,
|
|
51513
51513
|
initial: "hidden",
|
|
51514
51514
|
animate: "visible",
|
|
@@ -51534,12 +51534,12 @@ function Bk({ mode: e, selected: t, onSelect: n, month: r, onMonthChange: i, mot
|
|
|
51534
51534
|
modifiers: g
|
|
51535
51535
|
})
|
|
51536
51536
|
}, r.toISOString())
|
|
51537
|
-
}) : /* @__PURE__ */ H(
|
|
51537
|
+
}) : /* @__PURE__ */ H(v, {
|
|
51538
51538
|
mode: "popLayout",
|
|
51539
51539
|
initial: !1,
|
|
51540
51540
|
custom: a,
|
|
51541
|
-
children: /* @__PURE__ */ H(
|
|
51542
|
-
variants:
|
|
51541
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
51542
|
+
variants: y,
|
|
51543
51543
|
custom: a,
|
|
51544
51544
|
initial: "hidden",
|
|
51545
51545
|
animate: "visible",
|
|
@@ -51704,20 +51704,20 @@ var Jk = (e) => e < 6 ? 1 : 2, Yk = (e, t) => {
|
|
|
51704
51704
|
start: i,
|
|
51705
51705
|
end: a
|
|
51706
51706
|
}) || Tl(r.from, i) && !!r.to && wl(r.to, a) : i ? Jk(i.getMonth()) === e && i.getFullYear() === n : !1;
|
|
51707
|
-
}, _ = (e, t) => e === f && t === d,
|
|
51707
|
+
}, _ = (e, t) => e === f && t === d, y = (e, n) => {
|
|
51708
51708
|
if (!t || !Kk(t) || !t.from) return !1;
|
|
51709
51709
|
let r = t.from;
|
|
51710
51710
|
return Jk(r.getMonth()) === e && r.getFullYear() === n;
|
|
51711
|
-
},
|
|
51711
|
+
}, x = (e, n) => {
|
|
51712
51712
|
if (!t || !Kk(t) || !t.to) return !1;
|
|
51713
51713
|
let r = t.to;
|
|
51714
51714
|
return Jk(r.getMonth()) === e && r.getFullYear() === n;
|
|
51715
51715
|
};
|
|
51716
|
-
return /* @__PURE__ */ H(
|
|
51716
|
+
return /* @__PURE__ */ H(v, {
|
|
51717
51717
|
mode: "popLayout",
|
|
51718
51718
|
initial: !1,
|
|
51719
51719
|
custom: o,
|
|
51720
|
-
children: /* @__PURE__ */ H(
|
|
51720
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
51721
51721
|
className: "flex flex-col gap-4",
|
|
51722
51722
|
custom: o,
|
|
51723
51723
|
variants: {
|
|
@@ -51754,7 +51754,7 @@ var Jk = (e) => e < 6 ? 1 : 2, Yk = (e, t) => {
|
|
|
51754
51754
|
}), /* @__PURE__ */ H("div", {
|
|
51755
51755
|
className: "flex flex-1",
|
|
51756
51756
|
children: s.map((n) => {
|
|
51757
|
-
let r = g(n, t), o = _(n, t), s =
|
|
51757
|
+
let r = g(n, t), o = _(n, t), s = y(n, t), u = x(n, t), d = Yk(n, t), f = i && Tl(d.from, i) || a && d.to && wl(d.to, a);
|
|
51758
51758
|
return /* @__PURE__ */ U("button", {
|
|
51759
51759
|
onClick: () => h(n, t),
|
|
51760
51760
|
disabled: f,
|
|
@@ -52433,11 +52433,11 @@ function aj({ mode: e, selected: t, onSelect: n, year: r, motionDirection: i = 1
|
|
|
52433
52433
|
start: t.from,
|
|
52434
52434
|
end: t.to
|
|
52435
52435
|
}) : t.from ? t.from.getMonth() === e && t.from.getFullYear() === r : !1 : t.getMonth() === e && t.getFullYear() === r : !1, g = (e) => !t || !Kk(t) || !t.from ? !1 : t.from.getMonth() === e && t.from.getFullYear() === r, _ = (e) => !t || !Kk(t) || !t.to ? !1 : t.to.getMonth() === e && t.to.getFullYear() === r;
|
|
52436
|
-
return /* @__PURE__ */ H(
|
|
52436
|
+
return /* @__PURE__ */ H(v, {
|
|
52437
52437
|
mode: "popLayout",
|
|
52438
52438
|
initial: !1,
|
|
52439
52439
|
custom: i,
|
|
52440
|
-
children: /* @__PURE__ */ H(
|
|
52440
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
52441
52441
|
className: c("grid gap-y-3", l ? "grid-cols-2 gap-y-2" : "grid-cols-3"),
|
|
52442
52442
|
custom: i,
|
|
52443
52443
|
variants: {
|
|
@@ -52705,11 +52705,11 @@ function Mj({ periods: e, header: t, year: n, motionDirection: r = 1, selected:
|
|
|
52705
52705
|
children: [t ? /* @__PURE__ */ H("div", {
|
|
52706
52706
|
className: "px-2 font-medium text-f1-foreground-secondary",
|
|
52707
52707
|
children: t
|
|
52708
|
-
}) : null, /* @__PURE__ */ H(
|
|
52708
|
+
}) : null, /* @__PURE__ */ H(v, {
|
|
52709
52709
|
mode: "popLayout",
|
|
52710
52710
|
initial: !1,
|
|
52711
52711
|
custom: r,
|
|
52712
|
-
children: /* @__PURE__ */ H(
|
|
52712
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
52713
52713
|
className: c("grid max-h-72 grid-cols-2 overflow-y-auto", d ? "gap-0.5" : "gap-1"),
|
|
52714
52714
|
custom: r,
|
|
52715
52715
|
variants: {
|
|
@@ -52873,20 +52873,20 @@ var Fj = (e) => {
|
|
|
52873
52873
|
start: i,
|
|
52874
52874
|
end: a
|
|
52875
52875
|
}) || Tl(r.from, i) && wl(r.to, a) : i ? Lj(i.getMonth()) === e && i.getFullYear() === n : !1;
|
|
52876
|
-
}, _ = (e, t) => e === f && t === d,
|
|
52876
|
+
}, _ = (e, t) => e === f && t === d, y = (e, n) => {
|
|
52877
52877
|
if (!t || !Kk(t) || !t.from) return !1;
|
|
52878
52878
|
let r = t.from;
|
|
52879
52879
|
return Lj(r.getMonth()) === e && r.getFullYear() === n;
|
|
52880
|
-
},
|
|
52880
|
+
}, x = (e, n) => {
|
|
52881
52881
|
if (!t || !Kk(t) || !t.to) return !1;
|
|
52882
52882
|
let r = t.to;
|
|
52883
52883
|
return Lj(r.getMonth()) === e && r.getFullYear() === n;
|
|
52884
52884
|
};
|
|
52885
|
-
return /* @__PURE__ */ H(
|
|
52885
|
+
return /* @__PURE__ */ H(v, {
|
|
52886
52886
|
mode: "popLayout",
|
|
52887
52887
|
initial: !1,
|
|
52888
52888
|
custom: i,
|
|
52889
|
-
children: /* @__PURE__ */ H(
|
|
52889
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
52890
52890
|
className: "flex flex-col gap-4",
|
|
52891
52891
|
custom: i,
|
|
52892
52892
|
variants: {
|
|
@@ -52923,7 +52923,7 @@ var Fj = (e) => {
|
|
|
52923
52923
|
}), /* @__PURE__ */ H("div", {
|
|
52924
52924
|
className: "flex flex-1",
|
|
52925
52925
|
children: s.map((n) => {
|
|
52926
|
-
let r = g(n, t), i = _(n, t), s =
|
|
52926
|
+
let r = g(n, t), i = _(n, t), s = y(n, t), u = x(n, t), d = zj(n, t), f = a && Tl(d.from, a) || o && d.to && wl(d.to, o);
|
|
52927
52927
|
return /* @__PURE__ */ U("button", {
|
|
52928
52928
|
onClick: () => h(n, t),
|
|
52929
52929
|
disabled: f,
|
|
@@ -53098,11 +53098,11 @@ function $j({ selected: e, onSelect: t, month: n, onMonthChange: r, motionDirect
|
|
|
53098
53098
|
minDate: a,
|
|
53099
53099
|
maxDate: o
|
|
53100
53100
|
});
|
|
53101
|
-
return /* @__PURE__ */ H(
|
|
53101
|
+
return /* @__PURE__ */ H(v, {
|
|
53102
53102
|
mode: "popLayout",
|
|
53103
53103
|
initial: !1,
|
|
53104
53104
|
custom: i,
|
|
53105
|
-
children: /* @__PURE__ */ H(
|
|
53105
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
53106
53106
|
variants: f,
|
|
53107
53107
|
custom: i,
|
|
53108
53108
|
initial: "hidden",
|
|
@@ -53265,11 +53265,11 @@ function cM({ mode: e, selected: t, onSelect: n, decade: r, motionDirection: i =
|
|
|
53265
53265
|
start: t.from,
|
|
53266
53266
|
end: t.to
|
|
53267
53267
|
}) : t.from ? t.from.getFullYear() === e : !1 : t.getFullYear() === e : !1, m = (e) => e === s.getFullYear(), h = (e) => !t || !Kk(t) || !t.from ? !1 : t.from.getFullYear() === e, g = (e) => !t || !Kk(t) || !t.to ? !1 : t.to.getFullYear() === e, _ = (e) => e < u || e >= u + 10;
|
|
53268
|
-
return /* @__PURE__ */ H(
|
|
53268
|
+
return /* @__PURE__ */ H(v, {
|
|
53269
53269
|
mode: "popLayout",
|
|
53270
53270
|
initial: !1,
|
|
53271
53271
|
custom: i,
|
|
53272
|
-
children: /* @__PURE__ */ H(
|
|
53272
|
+
children: /* @__PURE__ */ H(b.div, {
|
|
53273
53273
|
className: "grid grid-cols-4 gap-y-3",
|
|
53274
53274
|
custom: i,
|
|
53275
53275
|
variants: {
|
|
@@ -53421,7 +53421,7 @@ function vM(e) {
|
|
|
53421
53421
|
//#region src/elements/F0InputField/AppendTag.tsx
|
|
53422
53422
|
var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
53423
53423
|
className: c("flex h-[24px] max-w-20 items-center gap-2 rounded-sm border border-solid border-f1-border px-2 py-0.5 font-medium text-f1-foreground-secondary"),
|
|
53424
|
-
children: /* @__PURE__ */ H(
|
|
53424
|
+
children: /* @__PURE__ */ H(w, {
|
|
53425
53425
|
tag: "span",
|
|
53426
53426
|
children: e
|
|
53427
53427
|
})
|
|
@@ -53539,7 +53539,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53539
53539
|
icon: a,
|
|
53540
53540
|
size: "sm"
|
|
53541
53541
|
}) : null,
|
|
53542
|
-
/* @__PURE__ */ H(
|
|
53542
|
+
/* @__PURE__ */ H(w, {
|
|
53543
53543
|
className: "shrink-1 min-w-0",
|
|
53544
53544
|
children: e
|
|
53545
53545
|
}),
|
|
@@ -53591,7 +53591,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53591
53591
|
class: "hover:border-f1-border-critical-bold"
|
|
53592
53592
|
}
|
|
53593
53593
|
]
|
|
53594
|
-
}), MM = I(({ children: e, disabled: t, readonly: n, label: r, labelIcon: i, hideLabel: a = !1, className: o, required: s, error: u, status: d, hint: f, size: p, icon: m, canGrow: h = !1, value: g, loading: _ = !1, loadingIndicator:
|
|
53594
|
+
}), MM = I(({ children: e, disabled: t, readonly: n, label: r, labelIcon: i, hideLabel: a = !1, className: o, required: s, error: u, status: d, hint: f, size: p, icon: m, canGrow: h = !1, value: g, loading: _ = !1, loadingIndicator: y, placeholder: x, clearable: S = !1, isEmpty: C = OM, emptyValue: w = DM, lengthProvider: T = kM, maxLength: E, hideMaxLength: D = !1, append: O, hidePlaceholder: j = !1, valueSlot: M, clearKeepsText: ee = !1, canClear: te, onClickPlaceholder: ne, onClickChildren: re, onClickContent: ie, name: ae, role: oe, appendTag: se, avatar: N, "aria-controls": ce, "aria-expanded": ue, "aria-activedescendant": de, "aria-autocomplete": fe, "aria-describedby": pe, buttonToggle: me, transparent: he, variant: ge = "field", editing: _e = !1, inlineText: ve, onBlurWithin: ye, ...be }, xe) => {
|
|
53595
53595
|
let Se = ge === "inline", Ce = p ?? (Se ? "md" : "sm"), we = ft(), Te = be.id ?? we, Ee = t || n, [De, Oe] = V(g);
|
|
53596
53596
|
f && (d = {
|
|
53597
53597
|
type: "default",
|
|
@@ -53600,21 +53600,21 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53600
53600
|
type: "error",
|
|
53601
53601
|
message: typeof u == "string" ? u : void 0
|
|
53602
53602
|
}), r || console.error("F0InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."), R(() => {
|
|
53603
|
-
Oe(
|
|
53603
|
+
Oe(E && g && T(g) > E ? g?.substring(0, E) : g);
|
|
53604
53604
|
}, [
|
|
53605
53605
|
g,
|
|
53606
|
-
|
|
53607
|
-
|
|
53606
|
+
T,
|
|
53607
|
+
E
|
|
53608
53608
|
]);
|
|
53609
53609
|
let ke = (e) => {
|
|
53610
|
-
let t = (typeof e == "string" ? e : e.target.value) ??
|
|
53611
|
-
if (
|
|
53612
|
-
if (typeof t == "string") t = t.substring(0,
|
|
53610
|
+
let t = (typeof e == "string" ? e : e.target.value) ?? w;
|
|
53611
|
+
if (E && T(t) > E) {
|
|
53612
|
+
if (typeof t == "string") t = t.substring(0, E);
|
|
53613
53613
|
else return;
|
|
53614
53614
|
}
|
|
53615
53615
|
Oe(t), be.onChange?.(t);
|
|
53616
53616
|
}, Ae = () => {
|
|
53617
|
-
ee || ke(
|
|
53617
|
+
ee || ke(w), be.onClear?.(), Se && Re.current?.focus();
|
|
53618
53618
|
}, je = (e) => {
|
|
53619
53619
|
t || ie?.(e);
|
|
53620
53620
|
}, Me = () => {
|
|
@@ -53630,7 +53630,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53630
53630
|
}, 100)), () => {
|
|
53631
53631
|
Le.current &&= (clearInterval(Le.current), null);
|
|
53632
53632
|
}), [Pe, Be]);
|
|
53633
|
-
let Ve = d?.message ? `${Te}-messages` : void 0, He = [pe ?? e.props["aria-describedby"], Ve].filter(Boolean).join(" ") || void 0, Ue = O || se || me, We = te ?? !
|
|
53633
|
+
let Ve = d?.message ? `${Te}-messages` : void 0, He = [pe ?? e.props["aria-describedby"], Ve].filter(Boolean).join(" ") || void 0, Ue = O || se || me, We = te ?? !C(De), Ge = M != null && OM(De) && !Pe;
|
|
53634
53634
|
return Se && !_e ? /* @__PURE__ */ U("div", {
|
|
53635
53635
|
className: c("flex h-full w-full flex-col gap-2", o),
|
|
53636
53636
|
ref: xe,
|
|
@@ -53647,7 +53647,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53647
53647
|
label: r,
|
|
53648
53648
|
hideLabel: a,
|
|
53649
53649
|
text: De == null || De === "" ? "" : ve ?? De,
|
|
53650
|
-
placeholder:
|
|
53650
|
+
placeholder: x,
|
|
53651
53651
|
size: Ce
|
|
53652
53652
|
}),
|
|
53653
53653
|
/* @__PURE__ */ H(TM, {
|
|
@@ -53660,7 +53660,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53660
53660
|
ref: xe,
|
|
53661
53661
|
onBlur: ye,
|
|
53662
53662
|
children: [
|
|
53663
|
-
!a && r ||
|
|
53663
|
+
!a && r || E && !D ? /* @__PURE__ */ H("div", {
|
|
53664
53664
|
className: c("flex max-w-full items-center", AM({ size: Ce })),
|
|
53665
53665
|
children: /* @__PURE__ */ U("div", {
|
|
53666
53666
|
className: c("flex min-w-0 flex-1 flex-row gap-4"),
|
|
@@ -53672,12 +53672,12 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53672
53672
|
icon: i,
|
|
53673
53673
|
className: "min-w-0 flex-1",
|
|
53674
53674
|
disabled: t
|
|
53675
|
-
}) : null,
|
|
53675
|
+
}) : null, E && !D && !Ee ? /* @__PURE__ */ U("div", {
|
|
53676
53676
|
className: "text-right text-f1-foreground-secondary",
|
|
53677
53677
|
children: [
|
|
53678
|
-
|
|
53678
|
+
T(De),
|
|
53679
53679
|
"/",
|
|
53680
|
-
|
|
53680
|
+
E
|
|
53681
53681
|
]
|
|
53682
53682
|
}) : null]
|
|
53683
53683
|
})
|
|
@@ -53738,7 +53738,7 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53738
53738
|
...d?.type === "error" && { "aria-invalid": !0 },
|
|
53739
53739
|
id: Te,
|
|
53740
53740
|
value: De ?? "",
|
|
53741
|
-
"aria-label": r ||
|
|
53741
|
+
"aria-label": r || x || "no-label",
|
|
53742
53742
|
"aria-busy": _,
|
|
53743
53743
|
"aria-disabled": Ee,
|
|
53744
53744
|
name: ae,
|
|
@@ -53747,21 +53747,21 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53747
53747
|
}),
|
|
53748
53748
|
/* @__PURE__ */ H("div", {
|
|
53749
53749
|
"data-slot": "placeholder",
|
|
53750
|
-
className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !h && "bottom-0", h && "items-start", (m || N) && "pl-8", (m || N) && Ce === "md" && "pl-9", xM({ size: Ce }),
|
|
53750
|
+
className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !h && "bottom-0", h && "items-start", (m || N) && "pl-8", (m || N) && Ce === "md" && "pl-9", xM({ size: Ce }), x && !j && !Ge && C(De) && !Pe ? "opacity-100" : "opacity-0"),
|
|
53751
53751
|
onClick: Ne,
|
|
53752
53752
|
"aria-hidden": "true",
|
|
53753
|
-
title:
|
|
53753
|
+
title: x,
|
|
53754
53754
|
children: /* @__PURE__ */ H("span", {
|
|
53755
53755
|
className: "min-w-0 truncate",
|
|
53756
|
-
children:
|
|
53756
|
+
children: x
|
|
53757
53757
|
})
|
|
53758
53758
|
}),
|
|
53759
|
-
|
|
53759
|
+
S || Ue || _ ? /* @__PURE__ */ U("div", {
|
|
53760
53760
|
className: c("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", Ce === "md" && "pr-[7px]", "relative"),
|
|
53761
53761
|
children: [
|
|
53762
|
-
|
|
53762
|
+
S && !Ee ? /* @__PURE__ */ H(v, {
|
|
53763
53763
|
initial: We,
|
|
53764
|
-
children: We ? /* @__PURE__ */ H(
|
|
53764
|
+
children: We ? /* @__PURE__ */ H(b.button, {
|
|
53765
53765
|
initial: { opacity: 0 },
|
|
53766
53766
|
animate: { opacity: 1 },
|
|
53767
53767
|
exit: { opacity: 0 },
|
|
@@ -53796,9 +53796,9 @@ var yM = ({ text: e }) => /* @__PURE__ */ H("div", {
|
|
|
53796
53796
|
}) : null
|
|
53797
53797
|
]
|
|
53798
53798
|
}) : null,
|
|
53799
|
-
/* @__PURE__ */ H(
|
|
53800
|
-
className: c("pointer-events-none flex h-6 w-6 items-center justify-center",
|
|
53801
|
-
style: { right: typeof
|
|
53799
|
+
/* @__PURE__ */ H(v, { children: _ ? /* @__PURE__ */ H("div", {
|
|
53800
|
+
className: c("pointer-events-none flex h-6 w-6 items-center justify-center", y?.asOverlay && c("absolute right-2 top-1/2 -translate-y-1/2", "bg-gradient-to-l from-[#FFFFFF] from-0% dark:from-[#192231]", "via-[#FFFFFF] via-60% dark:via-[#192231]", "to-transparent to-100%", Ce === "md" && "right-3"), xM({ size: Ce })),
|
|
53801
|
+
style: { right: typeof y?.offset == "number" ? y?.offset + (Ce === "md" ? 6 : 0) : void 0 },
|
|
53802
53802
|
children: /* @__PURE__ */ H(lw, {
|
|
53803
53803
|
size: "small",
|
|
53804
53804
|
className: "mt-[1px]"
|
|
@@ -54409,7 +54409,7 @@ function JM({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54409
54409
|
//#endregion
|
|
54410
54410
|
//#region src/elements/ChevronToggle/ChevronToggle.tsx
|
|
54411
54411
|
var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation: i = 0, openRotation: a = 180 }) => {
|
|
54412
|
-
let o =
|
|
54412
|
+
let o = S();
|
|
54413
54413
|
return /* @__PURE__ */ H("div", {
|
|
54414
54414
|
style: {
|
|
54415
54415
|
transform: `rotate(${e ? a : i}deg)`,
|
|
@@ -54459,9 +54459,9 @@ var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54459
54459
|
}, [o]);
|
|
54460
54460
|
let S = () => {
|
|
54461
54461
|
x(!b), u?.(!b);
|
|
54462
|
-
},
|
|
54462
|
+
}, C = () => {
|
|
54463
54463
|
d ? S() : f && m?.(!p);
|
|
54464
|
-
},
|
|
54464
|
+
}, T = d && /* @__PURE__ */ H("span", {
|
|
54465
54465
|
className: "text-f1-icon-secondary",
|
|
54466
54466
|
"data-testid": "group-header-chevron",
|
|
54467
54467
|
children: /* @__PURE__ */ H(YM, {
|
|
@@ -54471,11 +54471,11 @@ var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54471
54471
|
openRotation: v
|
|
54472
54472
|
})
|
|
54473
54473
|
}), D = (e) => {
|
|
54474
|
-
(e.key === "Enter" || e.key === " ") && (e.key === " " && e.preventDefault(),
|
|
54474
|
+
(e.key === "Enter" || e.key === " ") && (e.key === " " && e.preventDefault(), C());
|
|
54475
54475
|
}, O = d || f;
|
|
54476
54476
|
return /* @__PURE__ */ U("div", {
|
|
54477
54477
|
className: c("pointer-events-auto flex items-center gap-2", O && l("rounded"), h),
|
|
54478
|
-
onClick:
|
|
54478
|
+
onClick: C,
|
|
54479
54479
|
...O && {
|
|
54480
54480
|
role: "button",
|
|
54481
54481
|
tabIndex: 0,
|
|
@@ -54483,7 +54483,7 @@ var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54483
54483
|
},
|
|
54484
54484
|
"aria-expanded": d ? b : void 0,
|
|
54485
54485
|
children: [
|
|
54486
|
-
g === "leading" ?
|
|
54486
|
+
g === "leading" ? T : null,
|
|
54487
54487
|
f ? /* @__PURE__ */ H(_D, {
|
|
54488
54488
|
checked: !!p,
|
|
54489
54489
|
indeterminate: p === "indeterminate",
|
|
@@ -54511,7 +54511,7 @@ var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54511
54511
|
/* @__PURE__ */ H(XM, {
|
|
54512
54512
|
resolve: t,
|
|
54513
54513
|
fallback: /* @__PURE__ */ H(s, { className: "h-4 w-5" }),
|
|
54514
|
-
children: (e) => e !== void 0 && /* @__PURE__ */ H(
|
|
54514
|
+
children: (e) => e !== void 0 && /* @__PURE__ */ H(E, { value: e })
|
|
54515
54515
|
}),
|
|
54516
54516
|
r === void 0 ? null : /* @__PURE__ */ H(XM, {
|
|
54517
54517
|
resolve: r,
|
|
@@ -54531,11 +54531,11 @@ var YM = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54531
54531
|
})]
|
|
54532
54532
|
}, `${e.label}-${t}`))] }) : null
|
|
54533
54533
|
}),
|
|
54534
|
-
g === "trailing" ?
|
|
54534
|
+
g === "trailing" ? T : null,
|
|
54535
54535
|
i === void 0 ? null : /* @__PURE__ */ H(XM, {
|
|
54536
54536
|
resolve: i,
|
|
54537
54537
|
fallback: /* @__PURE__ */ H(s, { className: "h-4 w-32" }),
|
|
54538
|
-
children: (e) => e ? /* @__PURE__ */ H(
|
|
54538
|
+
children: (e) => e ? /* @__PURE__ */ H(w, {
|
|
54539
54539
|
className: "flex-1 text-base text-f1-foreground-secondary",
|
|
54540
54540
|
children: e
|
|
54541
54541
|
}) : null
|
|
@@ -56232,12 +56232,12 @@ var sF = 8, cF = [
|
|
|
56232
56232
|
"select:not([disabled])",
|
|
56233
56233
|
"textarea:not([disabled])",
|
|
56234
56234
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
56235
|
-
].join(","), lF = (e) => Array.from(e.querySelectorAll(cF)).filter((e) => (e.tabIndex >= 0 || e.getAttribute("role") === "searchbox") && !e.matches("[data-radix-scroll-area-viewport]") && !e.closest("[hidden], [aria-hidden=\"true\"], [inert], [role=\"listbox\"]")), uF = I(({ items: e = void 0, className: t, children: n, position: r = "popper", taller: i = !1, emptyMessage: a, emptyAction: o, spaciousEmptyState: s, onScrollBottom: l, onScrollTop: u, isLoadingMore: d, isLoading: f, scrollMargin: p, forceMinHeight: m, fitContentWidth: h = !1, showLoadingIndicator: g, asChild: _, portalContainer: v, bottom: y, "aria-label": b, "aria-labelledby":
|
|
56235
|
+
].join(","), lF = (e) => Array.from(e.querySelectorAll(cF)).filter((e) => (e.tabIndex >= 0 || e.getAttribute("role") === "searchbox") && !e.matches("[data-radix-scroll-area-viewport]") && !e.closest("[hidden], [aria-hidden=\"true\"], [inert], [role=\"listbox\"]")), uF = I(({ items: e = void 0, className: t, children: n, position: r = "popper", taller: i = !1, emptyMessage: a, emptyAction: o, spaciousEmptyState: s, onScrollBottom: l, onScrollTop: u, isLoadingMore: d, isLoading: f, scrollMargin: p, forceMinHeight: m, fitContentWidth: h = !1, showLoadingIndicator: g, asChild: _, portalContainer: v, bottom: y, "aria-label": b, "aria-labelledby": x, "aria-describedby": C, ...w }, T) => {
|
|
56236
56236
|
let E = dt(NM), D = E.portalContainer && (E.position === "center" || E.position === "fullscreen"), O = v === void 0 ? D ? E.portalContainer : void 0 : v, k = B(null), A = B(null), j = Array.isArray(e), M = z(() => j ? e.every((e) => !e.value && e.type !== "group-header") : !n, [
|
|
56237
56237
|
j,
|
|
56238
56238
|
e,
|
|
56239
56239
|
n
|
|
56240
|
-
]), ee =
|
|
56240
|
+
]), ee = S(), [te, ne] = V(ee), [re, ie] = V(!1), { value: ae, open: oe, as: se } = dt($M), N = se === "list", ce = z(() => new Set((Array.isArray(ae) ? ae : [ae]).filter((e) => e !== void 0)), [ae]), le = z(() => e?.findIndex((e) => e.value !== void 0 && ce.has(e.value)) ?? -1, [e, ce]), ue = oF({
|
|
56241
56241
|
count: e?.length || 0,
|
|
56242
56242
|
getScrollElement: () => k.current,
|
|
56243
56243
|
estimateSize: (t) => e?.[t]?.height || 0,
|
|
@@ -56367,7 +56367,7 @@ var sF = 8, cF = [
|
|
|
56367
56367
|
children: N ? /* @__PURE__ */ H(OP, {
|
|
56368
56368
|
asChild: !0,
|
|
56369
56369
|
"aria-label": b,
|
|
56370
|
-
"aria-labelledby":
|
|
56370
|
+
"aria-labelledby": x,
|
|
56371
56371
|
"aria-describedby": C,
|
|
56372
56372
|
children: /* @__PURE__ */ H("div", {
|
|
56373
56373
|
className: "min-h-0 p-1",
|
|
@@ -56376,7 +56376,7 @@ var sF = 8, cF = [
|
|
|
56376
56376
|
}) : /* @__PURE__ */ H(OP, {
|
|
56377
56377
|
asChild: !0,
|
|
56378
56378
|
"aria-label": b,
|
|
56379
|
-
"aria-labelledby":
|
|
56379
|
+
"aria-labelledby": x,
|
|
56380
56380
|
"aria-describedby": C,
|
|
56381
56381
|
children: /* @__PURE__ */ H(kP, {
|
|
56382
56382
|
asChild: !0,
|
|
@@ -56452,13 +56452,13 @@ var pF = ut(null), mF = I(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56452
56452
|
fallback: /* @__PURE__ */ H(s, { className: "h-4 w-4" }),
|
|
56453
56453
|
children: (e) => /* @__PURE__ */ H("div", {
|
|
56454
56454
|
className: "flex h-[24px] items-center",
|
|
56455
|
-
children: /* @__PURE__ */ H(
|
|
56455
|
+
children: /* @__PURE__ */ H(w, {
|
|
56456
56456
|
className: "text-f1-foreground-secondary",
|
|
56457
56457
|
children: f(e)
|
|
56458
56458
|
})
|
|
56459
56459
|
})
|
|
56460
56460
|
})
|
|
56461
|
-
}), i ? o && /* @__PURE__ */ H(
|
|
56461
|
+
}), i ? o && /* @__PURE__ */ H(C, {
|
|
56462
56462
|
variant: "ghost",
|
|
56463
56463
|
size: "sm",
|
|
56464
56464
|
label: u.actions.clear,
|
|
@@ -56483,21 +56483,21 @@ var pF = ut(null), mF = I(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56483
56483
|
return !e && !t ? null : /* @__PURE__ */ U("div", {
|
|
56484
56484
|
className: "flex w-full flex-row justify-between items-center gap-2 border-0 border-t border-solid border-f1-border-secondary p-2",
|
|
56485
56485
|
children: [
|
|
56486
|
-
e?.map((e) => /* @__PURE__ */ H(
|
|
56486
|
+
e?.map((e) => /* @__PURE__ */ H(T, {
|
|
56487
56487
|
variant: e.variant,
|
|
56488
56488
|
onClick: e.onClick,
|
|
56489
56489
|
icon: e.icon,
|
|
56490
56490
|
label: e.label,
|
|
56491
56491
|
disabled: e.disabled
|
|
56492
56492
|
}, e.label)),
|
|
56493
|
-
i ? /* @__PURE__ */ H(
|
|
56493
|
+
i ? /* @__PURE__ */ H(T, {
|
|
56494
56494
|
onClick: r,
|
|
56495
56495
|
label: s.filters.cancel,
|
|
56496
56496
|
variant: "ghost"
|
|
56497
56497
|
}) : null,
|
|
56498
56498
|
t ? /* @__PURE__ */ H("div", {
|
|
56499
56499
|
className: i ? "" : "ml-auto",
|
|
56500
|
-
children: /* @__PURE__ */ H(
|
|
56500
|
+
children: /* @__PURE__ */ H(T, {
|
|
56501
56501
|
onClick: n,
|
|
56502
56502
|
label: o ?? s.select.applySelection
|
|
56503
56503
|
})
|
|
@@ -56577,7 +56577,7 @@ function CF({ count: e, noTooltip: t, onSpelledOutChange: n }) {
|
|
|
56577
56577
|
let r = a();
|
|
56578
56578
|
return SF(n, !1), /* @__PURE__ */ H("div", {
|
|
56579
56579
|
className: "flex w-full items-center gap-1 text-left",
|
|
56580
|
-
children: /* @__PURE__ */ H(
|
|
56580
|
+
children: /* @__PURE__ */ H(w, {
|
|
56581
56581
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
56582
56582
|
noTooltip: t,
|
|
56583
56583
|
children: `${e} ${e === 1 ? r.status.selected.singular : r.status.selected.plural}`.toLowerCase()
|
|
@@ -56606,7 +56606,7 @@ function TF({ selection: e, totalSelectedCount: t, allSelected: n, noTooltip: r,
|
|
|
56606
56606
|
let o = a(), s = t ?? e.length;
|
|
56607
56607
|
return SF(i, s === 0 && e.length === 0 || n !== !0 && null), s === 0 && e.length === 0 ? null : n === !0 ? /* @__PURE__ */ H("div", {
|
|
56608
56608
|
className: "flex w-full items-center gap-1 text-left",
|
|
56609
|
-
children: /* @__PURE__ */ H(
|
|
56609
|
+
children: /* @__PURE__ */ H(w, {
|
|
56610
56610
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
56611
56611
|
noTooltip: r,
|
|
56612
56612
|
children: `${o.status.selected.all} (${s})`
|
|
@@ -56639,7 +56639,7 @@ var OF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
56639
56639
|
}) : !c && n && n > 0 ? /* @__PURE__ */ H("div", {
|
|
56640
56640
|
className: "flex min-w-0 flex-1 justify-start gap-1.5",
|
|
56641
56641
|
ref: s,
|
|
56642
|
-
children: /* @__PURE__ */ H(
|
|
56642
|
+
children: /* @__PURE__ */ H(w, {
|
|
56643
56643
|
tag: "span",
|
|
56644
56644
|
className: "text-left text-f1-foreground-secondary",
|
|
56645
56645
|
noTooltip: a,
|
|
@@ -56667,7 +56667,7 @@ var OF = I(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
56667
56667
|
className: "h-5 shrink-0 text-f1-icon",
|
|
56668
56668
|
children: /* @__PURE__ */ H(k, { icon: c.icon })
|
|
56669
56669
|
}) : null,
|
|
56670
|
-
/* @__PURE__ */ H(
|
|
56670
|
+
/* @__PURE__ */ H(w, {
|
|
56671
56671
|
ref: u,
|
|
56672
56672
|
tag: "span",
|
|
56673
56673
|
className: "text-left text-f1-foreground",
|
|
@@ -56692,7 +56692,7 @@ function AF({ item: e, onDeselect: t }) {
|
|
|
56692
56692
|
size: "sm",
|
|
56693
56693
|
className: "shrink-0 text-f1-icon"
|
|
56694
56694
|
}) : null,
|
|
56695
|
-
/* @__PURE__ */ H(
|
|
56695
|
+
/* @__PURE__ */ H(w, {
|
|
56696
56696
|
className: "text-sm",
|
|
56697
56697
|
children: e.label
|
|
56698
56698
|
})
|
|
@@ -56808,7 +56808,7 @@ var NF = /^\+\d{1,4}$/, PF = /* @__PURE__ */ new Set(), FF = (e) => e.type === "
|
|
|
56808
56808
|
className: "flex min-w-0 flex-1 flex-col",
|
|
56809
56809
|
children: [/* @__PURE__ */ U("div", {
|
|
56810
56810
|
className: "flex min-w-0 items-baseline gap-1.5",
|
|
56811
|
-
children: [/* @__PURE__ */ H(
|
|
56811
|
+
children: [/* @__PURE__ */ H(w, {
|
|
56812
56812
|
lines: 2,
|
|
56813
56813
|
className: "font-medium",
|
|
56814
56814
|
children: e.label
|
|
@@ -56816,7 +56816,7 @@ var NF = /^\+\d{1,4}$/, PF = /* @__PURE__ */ new Set(), FF = (e) => e.type === "
|
|
|
56816
56816
|
className: "whitespace-nowrap text-f1-foreground-secondary",
|
|
56817
56817
|
children: FF(e.metadata)
|
|
56818
56818
|
}) : null]
|
|
56819
|
-
}), e.description ? /* @__PURE__ */ H(
|
|
56819
|
+
}), e.description ? /* @__PURE__ */ H(w, {
|
|
56820
56820
|
lines: 2,
|
|
56821
56821
|
className: "text-f1-foreground-secondary",
|
|
56822
56822
|
children: e.description
|
|
@@ -56864,7 +56864,7 @@ var NF = /^\+\d{1,4}$/, PF = /* @__PURE__ */ new Set(), FF = (e) => e.type === "
|
|
|
56864
56864
|
order: e.groupBy[r]?.defaultDirection ?? t?.order ?? "asc"
|
|
56865
56865
|
})
|
|
56866
56866
|
})
|
|
56867
|
-
}), t?.field ? /* @__PURE__ */ H(
|
|
56867
|
+
}), t?.field ? /* @__PURE__ */ H(T, {
|
|
56868
56868
|
hideLabel: !0,
|
|
56869
56869
|
label: i.collections.grouping.toggleDirection,
|
|
56870
56870
|
variant: "outline",
|
|
@@ -57142,7 +57142,7 @@ var QF = 366, $F = (e) => {
|
|
|
57142
57142
|
children: e
|
|
57143
57143
|
}), /* @__PURE__ */ U("div", {
|
|
57144
57144
|
className: c("flex items-center", s ? "gap-1" : "gap-2"),
|
|
57145
|
-
children: [/* @__PURE__ */ H(
|
|
57145
|
+
children: [/* @__PURE__ */ H(T, {
|
|
57146
57146
|
onClick: () => u(-1),
|
|
57147
57147
|
variant: "outline",
|
|
57148
57148
|
label: d.navigation.previous,
|
|
@@ -57150,7 +57150,7 @@ var QF = 366, $F = (e) => {
|
|
|
57150
57150
|
icon: wt,
|
|
57151
57151
|
size: "sm",
|
|
57152
57152
|
disabled: !l(-1)
|
|
57153
|
-
}), /* @__PURE__ */ H(
|
|
57153
|
+
}), /* @__PURE__ */ H(T, {
|
|
57154
57154
|
onClick: () => u(1),
|
|
57155
57155
|
variant: "outline",
|
|
57156
57156
|
label: d.navigation.next,
|
|
@@ -57333,7 +57333,7 @@ function sI({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
57333
57333
|
})
|
|
57334
57334
|
}), r ? null : /* @__PURE__ */ H("div", {
|
|
57335
57335
|
className: "sticky bottom-0 left-0 right-0 z-20 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary bg-f1-background/80 p-2 backdrop-blur-[8px]",
|
|
57336
|
-
children: /* @__PURE__ */ H(
|
|
57336
|
+
children: /* @__PURE__ */ H(T, {
|
|
57337
57337
|
variant: "ghost",
|
|
57338
57338
|
label: "Clear",
|
|
57339
57339
|
onClick: () => a(),
|
|
@@ -57449,7 +57449,7 @@ function hI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled:
|
|
|
57449
57449
|
onClick: i ? void 0 : n,
|
|
57450
57450
|
children: [/* @__PURE__ */ H("span", {
|
|
57451
57451
|
className: "min-w-0 flex-1",
|
|
57452
|
-
children: /* @__PURE__ */ H(
|
|
57452
|
+
children: /* @__PURE__ */ H(w, { children: e.label })
|
|
57453
57453
|
}), /* @__PURE__ */ H(mI, {
|
|
57454
57454
|
label: e.label,
|
|
57455
57455
|
isSelected: t,
|
|
@@ -57571,7 +57571,7 @@ var jI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
57571
57571
|
let i = a(), o = n ? `${e}. ${i.status.selected.singular}` : e;
|
|
57572
57572
|
return /* @__PURE__ */ U("div", {
|
|
57573
57573
|
className: "relative shrink-0",
|
|
57574
|
-
children: [/* @__PURE__ */ H(
|
|
57574
|
+
children: [/* @__PURE__ */ H(T, {
|
|
57575
57575
|
variant: "ghost",
|
|
57576
57576
|
size: "sm",
|
|
57577
57577
|
onClick: r,
|
|
@@ -57587,7 +57587,7 @@ var jI = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
57587
57587
|
});
|
|
57588
57588
|
};
|
|
57589
57589
|
function MI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i, onFilterChange: o, allFiltersValue: s, cacheKey: u, searchTerm: d, searchRevision: f, ancestorMatchesSearch: p = !1, disabled: m }) {
|
|
57590
|
-
let [h, g] = V(!1), [_, v] = V(null), y = a(), b = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: x, visibleChildren: S, hasMatchingChild:
|
|
57590
|
+
let [h, g] = V(!1), [_, v] = V(null), y = a(), b = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: x, visibleChildren: S, hasMatchingChild: C } = DI(e, d, p), T = _?.revision === f ? _.expanded : C, E = d ? T : h, D = () => {
|
|
57591
57591
|
d ? v({
|
|
57592
57592
|
revision: f,
|
|
57593
57593
|
expanded: !E
|
|
@@ -57627,7 +57627,7 @@ function MI({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
57627
57627
|
onClick: m ? void 0 : n,
|
|
57628
57628
|
children: [/* @__PURE__ */ H("span", {
|
|
57629
57629
|
className: "min-w-0 flex-1",
|
|
57630
|
-
children: /* @__PURE__ */ H(
|
|
57630
|
+
children: /* @__PURE__ */ H(w, { children: e.label })
|
|
57631
57631
|
}), /* @__PURE__ */ H(mI, {
|
|
57632
57632
|
label: e.label,
|
|
57633
57633
|
isSelected: t,
|
|
@@ -57665,7 +57665,7 @@ function NI({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSel
|
|
|
57665
57665
|
className: c("flex w-full items-center justify-between gap-1 pb-1", u),
|
|
57666
57666
|
children: [/* @__PURE__ */ H("span", {
|
|
57667
57667
|
className: "min-w-0 flex-1",
|
|
57668
|
-
children: /* @__PURE__ */ H(
|
|
57668
|
+
children: /* @__PURE__ */ H(w, {
|
|
57669
57669
|
className: "text-f1-foreground-secondary",
|
|
57670
57670
|
children: m
|
|
57671
57671
|
})
|
|
@@ -58008,12 +58008,12 @@ function ZI({ children: e, extraContent: t, inputWidth: n, trailingAction: r })
|
|
|
58008
58008
|
]
|
|
58009
58009
|
});
|
|
58010
58010
|
}
|
|
58011
|
-
var QI = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i = !1, step: o, min: s, max: l, onChange: u, units: d, extraContent: f, inputWidth: p, popover: m, label: h, hint: g, error: _, status: v, hideLabel: y = !1, disabled: b, readonly: x, loading: S, onBlur: C, variant:
|
|
58011
|
+
var QI = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i = !1, step: o, min: s, max: l, onChange: u, units: d, extraContent: f, inputWidth: p, popover: m, label: h, hint: g, error: _, status: v, hideLabel: y = !1, disabled: b, readonly: x, loading: S, onBlur: C, variant: w, editing: E = !1, onBlurWithin: D, onPressEnter: O, onPressEscape: k, ...A }, j) {
|
|
58012
58012
|
let M = a(), ee = ft(), te = t ?? ee, [ne, re] = Le({
|
|
58013
58013
|
prop: m?.open,
|
|
58014
58014
|
defaultProp: !1,
|
|
58015
58015
|
onChange: m?.onOpenChange
|
|
58016
|
-
}), [ie, ae] = V(!1), [oe, se] = V(() => n == null ? "" : UI(n, e, r, i)), [N, ce] = V(n ?? null), le =
|
|
58016
|
+
}), [ie, ae] = V(!1), [oe, se] = V(() => n == null ? "" : UI(n, e, r, i)), [N, ce] = V(n ?? null), le = w === "inline", ue = z(() => KI(M, {
|
|
58017
58017
|
hint: g,
|
|
58018
58018
|
min: s,
|
|
58019
58019
|
max: l,
|
|
@@ -58088,7 +58088,7 @@ var QI = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58088
58088
|
inputMode: r === 0 ? "numeric" : "decimal",
|
|
58089
58089
|
onChange: we,
|
|
58090
58090
|
...A,
|
|
58091
|
-
variant:
|
|
58091
|
+
variant: w,
|
|
58092
58092
|
editing: E,
|
|
58093
58093
|
inlineText: xe,
|
|
58094
58094
|
onKeyDown: qI(le, O, k),
|
|
@@ -58121,7 +58121,7 @@ var QI = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58121
58121
|
onOpenChange: ye,
|
|
58122
58122
|
children: [/* @__PURE__ */ H(Ae, {
|
|
58123
58123
|
asChild: !0,
|
|
58124
|
-
children: /* @__PURE__ */ H(
|
|
58124
|
+
children: /* @__PURE__ */ H(T, {
|
|
58125
58125
|
variant: "outline",
|
|
58126
58126
|
icon: e,
|
|
58127
58127
|
disabled: ve,
|
|
@@ -58143,7 +58143,7 @@ var QI = I(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58143
58143
|
/* @__PURE__ */ H(ZI, {
|
|
58144
58144
|
extraContent: f,
|
|
58145
58145
|
inputWidth: p,
|
|
58146
|
-
trailingAction: a ? /* @__PURE__ */ H(
|
|
58146
|
+
trailingAction: a ? /* @__PURE__ */ H(T, {
|
|
58147
58147
|
variant: "default",
|
|
58148
58148
|
icon: s,
|
|
58149
58149
|
label: o,
|
|
@@ -58300,7 +58300,7 @@ function $I({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58300
58300
|
}) : null]
|
|
58301
58301
|
}), r ? null : /* @__PURE__ */ H("div", {
|
|
58302
58302
|
className: "sticky bottom-0 left-0 right-0 z-20 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary bg-f1-background/80 p-2 backdrop-blur-[8px]",
|
|
58303
|
-
children: /* @__PURE__ */ H(
|
|
58303
|
+
children: /* @__PURE__ */ H(T, {
|
|
58304
58304
|
variant: "ghost",
|
|
58305
58305
|
label: o.actions.clear,
|
|
58306
58306
|
onClick: () => c(),
|
|
@@ -58468,7 +58468,7 @@ var sL = {
|
|
|
58468
58468
|
//#endregion
|
|
58469
58469
|
//#region src/blocks/OneFilterPicker/components/FilterChipButton.tsx
|
|
58470
58470
|
function uL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disabled: o = !1 }) {
|
|
58471
|
-
let [c, l] = V(!0), u =
|
|
58471
|
+
let [c, l] = V(!0), u = S(), d = cL(e.type), f = a(), [p, m] = V({ label: "" });
|
|
58472
58472
|
return R(() => {
|
|
58473
58473
|
(async () => {
|
|
58474
58474
|
if (n === void 0) return;
|
|
@@ -58492,7 +58492,7 @@ function uL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
|
|
|
58492
58492
|
n,
|
|
58493
58493
|
d,
|
|
58494
58494
|
e
|
|
58495
|
-
]), /* @__PURE__ */ H(
|
|
58495
|
+
]), /* @__PURE__ */ H(b.div, {
|
|
58496
58496
|
layout: !0,
|
|
58497
58497
|
initial: !u && {
|
|
58498
58498
|
opacity: 0,
|
|
@@ -58522,7 +58522,7 @@ function uL({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
|
|
|
58522
58522
|
//#region src/blocks/OneFilterPicker/components/FiltersChipsList.tsx
|
|
58523
58523
|
var dL = (e, t) => e ? {} : t;
|
|
58524
58524
|
function fL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, onClearAll: i, hideChips: o = !1, resultCount: s, quickFilterChip: c, onQuickFilterChipSelect: l, disabled: u = !1 }) {
|
|
58525
|
-
let d = a(), f =
|
|
58525
|
+
let d = a(), f = S(), p = lL(e, t, d), m = !o && p.length > 0, h = m || c !== void 0;
|
|
58526
58526
|
if (!h) return null;
|
|
58527
58527
|
let g = () => {
|
|
58528
58528
|
c?.onRemove(), i();
|
|
@@ -58534,10 +58534,10 @@ function fL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
58534
58534
|
className: "mt-2 flex items-center gap-2",
|
|
58535
58535
|
children: [/* @__PURE__ */ U("div", {
|
|
58536
58536
|
className: "flex flex-wrap items-center gap-2",
|
|
58537
|
-
children: [s !== void 0 && h ? /* @__PURE__ */ H(zs, { text: d.t(s === 1 ? "filters.resultsFor.one" : "filters.resultsFor.other", { count: s }) }) : null, /* @__PURE__ */ U(
|
|
58537
|
+
children: [s !== void 0 && h ? /* @__PURE__ */ H(zs, { text: d.t(s === 1 ? "filters.resultsFor.one" : "filters.resultsFor.other", { count: s }) }) : null, /* @__PURE__ */ U(v, {
|
|
58538
58538
|
presenceAffectsLayout: !0,
|
|
58539
58539
|
initial: !1,
|
|
58540
|
-
children: [c ? /* @__PURE__ */ H(
|
|
58540
|
+
children: [c ? /* @__PURE__ */ H(b.div, {
|
|
58541
58541
|
layout: !0,
|
|
58542
58542
|
initial: !f && {
|
|
58543
58543
|
opacity: 0,
|
|
@@ -58577,7 +58577,7 @@ function fL({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
58577
58577
|
}, `filter-${String(i)}`);
|
|
58578
58578
|
}) : null]
|
|
58579
58579
|
})]
|
|
58580
|
-
}), u ? null : /* @__PURE__ */ H(
|
|
58580
|
+
}), u ? null : /* @__PURE__ */ H(T, {
|
|
58581
58581
|
variant: "neutral",
|
|
58582
58582
|
label: d.actions.clear,
|
|
58583
58583
|
size: "sm",
|
|
@@ -58621,7 +58621,7 @@ function pL({ selectedFilterKey: e, definition: t, tempFilters: n, onFilterChang
|
|
|
58621
58621
|
//#endregion
|
|
58622
58622
|
//#region src/blocks/OneFilterPicker/components/FilterList.tsx
|
|
58623
58623
|
function mL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelect: r, isCompactMode: i, onClickApplyFilters: o, quickFilterLabel: s, quickFilterIcon: u, quickFilterSelected: d, onQuickFilterSelect: f }) {
|
|
58624
|
-
let p = a(), m = ft(), h =
|
|
58624
|
+
let p = a(), m = ft(), h = S(), g = i ? it : rt, _ = z(() => {
|
|
58625
58625
|
let t = /* @__PURE__ */ new Map();
|
|
58626
58626
|
for (let [n, r] of Object.entries(e)) if (r.type === "in" && "options" in r) {
|
|
58627
58627
|
let e = AI(r);
|
|
@@ -58647,7 +58647,7 @@ function mL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
58647
58647
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
58648
58648
|
children: [
|
|
58649
58649
|
u ? /* @__PURE__ */ H(k, { icon: u }) : null,
|
|
58650
|
-
/* @__PURE__ */ H(
|
|
58650
|
+
/* @__PURE__ */ H(w, {
|
|
58651
58651
|
className: "flex-1 text-left text-f1-foreground",
|
|
58652
58652
|
children: s
|
|
58653
58653
|
}),
|
|
@@ -58670,11 +58670,11 @@ function mL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
58670
58670
|
children: [/* @__PURE__ */ U("div", {
|
|
58671
58671
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
58672
58672
|
children: [
|
|
58673
|
-
/* @__PURE__ */ H(
|
|
58673
|
+
/* @__PURE__ */ H(w, {
|
|
58674
58674
|
className: "flex-1 text-left text-f1-foreground",
|
|
58675
58675
|
children: a.label
|
|
58676
58676
|
}),
|
|
58677
|
-
/* @__PURE__ */ H(
|
|
58677
|
+
/* @__PURE__ */ H(v, { children: g ? /* @__PURE__ */ H(b.span, {
|
|
58678
58678
|
className: "h-2 w-2 shrink-0 rounded-full bg-f1-background-selected-bold",
|
|
58679
58679
|
initial: !h && {
|
|
58680
58680
|
opacity: 0,
|
|
@@ -58702,7 +58702,7 @@ function mL({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
58702
58702
|
}),
|
|
58703
58703
|
i ? /* @__PURE__ */ H("div", {
|
|
58704
58704
|
className: "-mx-2 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
58705
|
-
children: /* @__PURE__ */ H(
|
|
58705
|
+
children: /* @__PURE__ */ H(T, {
|
|
58706
58706
|
onClick: o,
|
|
58707
58707
|
label: p.filters.applyFilters
|
|
58708
58708
|
})
|
|
@@ -58748,11 +58748,11 @@ function hL({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
58748
58748
|
]
|
|
58749
58749
|
}), u || s ? /* @__PURE__ */ U("div", {
|
|
58750
58750
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
58751
|
-
children: [s ? /* @__PURE__ */ H(
|
|
58751
|
+
children: [s ? /* @__PURE__ */ H(T, {
|
|
58752
58752
|
onClick: s,
|
|
58753
58753
|
label: _.collections.emptyStates.noResults.clearFilters,
|
|
58754
58754
|
variant: "outline"
|
|
58755
|
-
}) : null, u ? /* @__PURE__ */ H(
|
|
58755
|
+
}) : null, u ? /* @__PURE__ */ H(T, {
|
|
58756
58756
|
onClick: o,
|
|
58757
58757
|
label: d ?? _.filters.applyFilters
|
|
58758
58758
|
}) : null]
|
|
@@ -58787,22 +58787,22 @@ function bL({ id: e, text: t }) {
|
|
|
58787
58787
|
className: "sr-only"
|
|
58788
58788
|
});
|
|
58789
58789
|
}
|
|
58790
|
-
var xL = I((e, t) => /* @__PURE__ */ H(
|
|
58790
|
+
var xL = I((e, t) => /* @__PURE__ */ H(C, {
|
|
58791
58791
|
...e,
|
|
58792
58792
|
ref: t
|
|
58793
58793
|
}));
|
|
58794
58794
|
xL.displayName = "DescribedFilterButton";
|
|
58795
58795
|
function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpenChange: o, hideLabel: s, mode: c = "default", displayCounter: l = !1, quickFilter: u, disabled: d = !1 }) {
|
|
58796
|
-
let f = t ?? e, p = Object.keys(e)[0] ?? null, [m, h] = V(c === "compact" ? null : p), [g, _] = V(!1),
|
|
58796
|
+
let f = t ?? e, p = Object.keys(e)[0] ?? null, [m, h] = V(c === "compact" ? null : p), [g, _] = V(!1), y = () => {
|
|
58797
58797
|
h(null), _(!0);
|
|
58798
|
-
},
|
|
58798
|
+
}, x = (e) => {
|
|
58799
58799
|
j((t) => ({
|
|
58800
58800
|
...t,
|
|
58801
58801
|
...e
|
|
58802
58802
|
}));
|
|
58803
|
-
},
|
|
58803
|
+
}, S = (e) => {
|
|
58804
58804
|
_(!1), h(e);
|
|
58805
|
-
},
|
|
58805
|
+
}, w = a(), E = dt(NM), D = E.portalContainer && (E.position === "center" || E.position === "fullscreen") ? E.portalContainer : void 0, [O, k] = Le({
|
|
58806
58806
|
prop: i,
|
|
58807
58807
|
defaultProp: !1,
|
|
58808
58808
|
onChange: o
|
|
@@ -58818,7 +58818,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58818
58818
|
}, ne = (e) => te(e, !1), re = B(!1);
|
|
58819
58819
|
pt(u?.panelRef, () => ({
|
|
58820
58820
|
open: () => {
|
|
58821
|
-
d || (c !== "compact" &&
|
|
58821
|
+
d || (c !== "compact" && y(), M.current || (re.current = !0, k(!0)));
|
|
58822
58822
|
},
|
|
58823
58823
|
close: () => {
|
|
58824
58824
|
M.current && ne(!1);
|
|
@@ -58834,11 +58834,11 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58834
58834
|
[e]: t
|
|
58835
58835
|
}));
|
|
58836
58836
|
}, oe = () => {
|
|
58837
|
-
g && u?.onApply?.() === !1 || (r(gL(f, A,
|
|
58837
|
+
g && u?.onApply?.() === !1 || (r(gL(f, A, w)), te(!1, !0));
|
|
58838
58838
|
}, se = () => {
|
|
58839
58839
|
j(_L(f)), u?.chip?.onRemove();
|
|
58840
58840
|
}, N = () => {
|
|
58841
|
-
m ? h(null) : (r(gL(f, A,
|
|
58841
|
+
m ? h(null) : (r(gL(f, A, w)), te(!1, !0));
|
|
58842
58842
|
}, ce = () => {
|
|
58843
58843
|
j(n), ne(!1);
|
|
58844
58844
|
}, le = () => {
|
|
@@ -58849,7 +58849,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58849
58849
|
O && (re.current = !1);
|
|
58850
58850
|
let n = () => Object.entries(A || {}).find(([t, n]) => e[t] ? !cL(e[t].type).isEmpty(n, {
|
|
58851
58851
|
schema: e[t],
|
|
58852
|
-
i18n:
|
|
58852
|
+
i18n: w
|
|
58853
58853
|
}) : !1);
|
|
58854
58854
|
if (O && c === "default") {
|
|
58855
58855
|
let r = n();
|
|
@@ -58867,11 +58867,11 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58867
58867
|
let ue = z(() => Object.entries(e).reduce((e, [t, n]) => {
|
|
58868
58868
|
let r = cL(n.type);
|
|
58869
58869
|
return Math.max(e, r?.formHeight || yL);
|
|
58870
|
-
}, 0), [e]), de = ft(), fe = `${de}-active-filters-description`, pe = z(() => lL(f, n,
|
|
58870
|
+
}, 0), [e]), de = ft(), fe = `${de}-active-filters-description`, pe = z(() => lL(f, n, w), [
|
|
58871
58871
|
f,
|
|
58872
58872
|
n,
|
|
58873
|
-
|
|
58874
|
-
]), me = pe.length === 0 ? void 0 : pe.length, he = z(() => pe.length > 0 ?
|
|
58873
|
+
w
|
|
58874
|
+
]), me = pe.length === 0 ? void 0 : pe.length, he = z(() => pe.length > 0 ? w.t("filters.activeFilters", { filters: pe.map((e) => f[e].label).join(", ") }) : void 0, [pe, f]);
|
|
58875
58875
|
if (c === "inline") {
|
|
58876
58876
|
let t = !!Object.values(A).length;
|
|
58877
58877
|
return /* @__PURE__ */ U("div", {
|
|
@@ -58880,7 +58880,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58880
58880
|
className: "relative",
|
|
58881
58881
|
children: [/* @__PURE__ */ H(xL, {
|
|
58882
58882
|
variant: "outline",
|
|
58883
|
-
label:
|
|
58883
|
+
label: w.filters.label,
|
|
58884
58884
|
"aria-describedby": he ? fe : void 0,
|
|
58885
58885
|
append: he ? /* @__PURE__ */ H(bL, {
|
|
58886
58886
|
id: fe,
|
|
@@ -58894,10 +58894,10 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58894
58894
|
hideLabel: !0,
|
|
58895
58895
|
tooltip: he
|
|
58896
58896
|
}), t ? /* @__PURE__ */ H("div", { className: "absolute right-0 top-0 aspect-square w-2 rounded-full border border-solid border-f1-background bg-f1-background-selected-bold" }) : null]
|
|
58897
|
-
}), /* @__PURE__ */ H(
|
|
58897
|
+
}), /* @__PURE__ */ H(v, {
|
|
58898
58898
|
mode: "popLayout",
|
|
58899
58899
|
propagate: !1,
|
|
58900
|
-
children: O ? /* @__PURE__ */ H(
|
|
58900
|
+
children: O ? /* @__PURE__ */ H(b.div, {
|
|
58901
58901
|
initial: {
|
|
58902
58902
|
opacity: 0,
|
|
58903
58903
|
y: 8
|
|
@@ -58921,16 +58921,16 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58921
58921
|
children: [
|
|
58922
58922
|
/* @__PURE__ */ U("div", {
|
|
58923
58923
|
className: "flex shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary px-2 py-1.5",
|
|
58924
|
-
children: [/* @__PURE__ */ H(
|
|
58924
|
+
children: [/* @__PURE__ */ H(C, {
|
|
58925
58925
|
variant: "ghost",
|
|
58926
58926
|
icon: xt,
|
|
58927
|
-
label:
|
|
58927
|
+
label: w.filters.label,
|
|
58928
58928
|
hideLabel: !0,
|
|
58929
58929
|
size: "sm",
|
|
58930
58930
|
onClick: ce
|
|
58931
58931
|
}), /* @__PURE__ */ H("span", {
|
|
58932
58932
|
className: "text-base font-medium text-f1-foreground",
|
|
58933
|
-
children:
|
|
58933
|
+
children: w.filters.label
|
|
58934
58934
|
})]
|
|
58935
58935
|
}),
|
|
58936
58936
|
/* @__PURE__ */ U("div", {
|
|
@@ -58940,16 +58940,16 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58940
58940
|
definition: e,
|
|
58941
58941
|
tempFilters: A,
|
|
58942
58942
|
selectedFilterKey: m,
|
|
58943
|
-
onFilterSelect:
|
|
58943
|
+
onFilterSelect: S,
|
|
58944
58944
|
onClickApplyFilters: oe,
|
|
58945
58945
|
quickFilterLabel: u?.label,
|
|
58946
58946
|
quickFilterIcon: u?.icon,
|
|
58947
58947
|
quickFilterSelected: g,
|
|
58948
|
-
onQuickFilterSelect:
|
|
58948
|
+
onQuickFilterSelect: y
|
|
58949
58949
|
}),
|
|
58950
58950
|
g && u ? /* @__PURE__ */ H("div", {
|
|
58951
58951
|
className: "flex-1 min-w-0 overflow-hidden p-3",
|
|
58952
|
-
children: u.render({ stage:
|
|
58952
|
+
children: u.render({ stage: x })
|
|
58953
58953
|
}) : null,
|
|
58954
58954
|
m ? /* @__PURE__ */ H("div", {
|
|
58955
58955
|
className: "flex-1 min-w-0 overflow-hidden",
|
|
@@ -58964,9 +58964,9 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58964
58964
|
}),
|
|
58965
58965
|
/* @__PURE__ */ H("div", {
|
|
58966
58966
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2 bg-f1-background",
|
|
58967
|
-
children: /* @__PURE__ */ H(
|
|
58967
|
+
children: /* @__PURE__ */ H(T, {
|
|
58968
58968
|
onClick: oe,
|
|
58969
|
-
label:
|
|
58969
|
+
label: w.filters.applyFilters
|
|
58970
58970
|
})
|
|
58971
58971
|
})
|
|
58972
58972
|
]
|
|
@@ -58976,9 +58976,9 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58976
58976
|
});
|
|
58977
58977
|
}
|
|
58978
58978
|
if (c === "compact") {
|
|
58979
|
-
let t = !!Object.values(A).length, n = m ?
|
|
58979
|
+
let t = !!Object.values(A).length, n = m ? w.t("filters.filteringBy", { label: e[m].label }) : w.t("filters.availableFilters"), r = /* @__PURE__ */ U("div", {
|
|
58980
58980
|
className: "flex items-center gap-2 pl-1.5 py-1.5",
|
|
58981
|
-
children: [/* @__PURE__ */ H(
|
|
58981
|
+
children: [/* @__PURE__ */ H(T, {
|
|
58982
58982
|
label: "Back",
|
|
58983
58983
|
icon: xt,
|
|
58984
58984
|
hideLabel: !0,
|
|
@@ -58988,9 +58988,9 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58988
58988
|
}), n]
|
|
58989
58989
|
}), i = /* @__PURE__ */ H(gt, { children: m ? /* @__PURE__ */ H("div", {
|
|
58990
58990
|
className: "sticky bottom-0 left-0 right-0 z-30 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2 bg-f1-background",
|
|
58991
|
-
children: /* @__PURE__ */ H(
|
|
58991
|
+
children: /* @__PURE__ */ H(T, {
|
|
58992
58992
|
onClick: le,
|
|
58993
|
-
label:
|
|
58993
|
+
label: w.filters.applySelection
|
|
58994
58994
|
})
|
|
58995
58995
|
}) : null });
|
|
58996
58996
|
return /* @__PURE__ */ U("div", {
|
|
@@ -58999,7 +58999,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
58999
58999
|
className: "relative",
|
|
59000
59000
|
children: [/* @__PURE__ */ H(xL, {
|
|
59001
59001
|
variant: "outline",
|
|
59002
|
-
label:
|
|
59002
|
+
label: w.filters.label,
|
|
59003
59003
|
"aria-describedby": he ? fe : void 0,
|
|
59004
59004
|
append: he ? /* @__PURE__ */ H(bL, {
|
|
59005
59005
|
id: fe,
|
|
@@ -59013,10 +59013,10 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59013
59013
|
hideLabel: !0,
|
|
59014
59014
|
tooltip: he
|
|
59015
59015
|
}), t ? /* @__PURE__ */ H("div", { className: "absolute right-0 top-0 aspect-square w-2 rounded-full border border-solid border-f1-background bg-f1-background-selected-bold" }) : null]
|
|
59016
|
-
}), /* @__PURE__ */ H(
|
|
59016
|
+
}), /* @__PURE__ */ H(v, {
|
|
59017
59017
|
mode: "popLayout",
|
|
59018
59018
|
propagate: !1,
|
|
59019
|
-
children: O ? /* @__PURE__ */ H(
|
|
59019
|
+
children: O ? /* @__PURE__ */ H(b.div, {
|
|
59020
59020
|
initial: {
|
|
59021
59021
|
opacity: 0,
|
|
59022
59022
|
y: 8
|
|
@@ -59041,7 +59041,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59041
59041
|
r,
|
|
59042
59042
|
/* @__PURE__ */ H("div", {
|
|
59043
59043
|
className: "flex flex-1 min-h-0 max-h-full",
|
|
59044
|
-
children: m ? /* @__PURE__ */ H(
|
|
59044
|
+
children: m ? /* @__PURE__ */ H(b.div, {
|
|
59045
59045
|
initial: { opacity: 0 },
|
|
59046
59046
|
animate: { opacity: 1 },
|
|
59047
59047
|
exit: { opacity: 0 },
|
|
@@ -59054,7 +59054,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59054
59054
|
onFilterChange: ae,
|
|
59055
59055
|
isCompactMode: !0
|
|
59056
59056
|
})
|
|
59057
|
-
}, "filter-content") : /* @__PURE__ */ H(
|
|
59057
|
+
}, "filter-content") : /* @__PURE__ */ H(b.div, {
|
|
59058
59058
|
initial: { opacity: 0 },
|
|
59059
59059
|
animate: { opacity: 1 },
|
|
59060
59060
|
exit: { opacity: 0 },
|
|
@@ -59087,7 +59087,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59087
59087
|
asChild: !0,
|
|
59088
59088
|
children: /* @__PURE__ */ H(xL, {
|
|
59089
59089
|
variant: "outline",
|
|
59090
|
-
label:
|
|
59090
|
+
label: w.filters.label,
|
|
59091
59091
|
"aria-describedby": he ? fe : void 0,
|
|
59092
59092
|
append: he ? /* @__PURE__ */ H(bL, {
|
|
59093
59093
|
id: fe,
|
|
@@ -59105,17 +59105,17 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59105
59105
|
align: "start",
|
|
59106
59106
|
side: "bottom",
|
|
59107
59107
|
id: de,
|
|
59108
|
-
"aria-label":
|
|
59108
|
+
"aria-label": w.filters.label,
|
|
59109
59109
|
container: D,
|
|
59110
59110
|
children: /* @__PURE__ */ H(hL, {
|
|
59111
59111
|
filters: e,
|
|
59112
59112
|
tempFilters: A,
|
|
59113
59113
|
selectedFilterKey: m,
|
|
59114
|
-
onFilterSelect:
|
|
59114
|
+
onFilterSelect: S,
|
|
59115
59115
|
quickFilter: u,
|
|
59116
59116
|
quickFilterSelected: g,
|
|
59117
|
-
onQuickFilterSelect:
|
|
59118
|
-
onStageFilters:
|
|
59117
|
+
onQuickFilterSelect: y,
|
|
59118
|
+
onStageFilters: x,
|
|
59119
59119
|
onFilterChange: ae,
|
|
59120
59120
|
onApply: oe,
|
|
59121
59121
|
onClear: se,
|
|
@@ -59126,7 +59126,7 @@ function SL({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59126
59126
|
});
|
|
59127
59127
|
}
|
|
59128
59128
|
var CL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: o, disabled: l = !1 }) => {
|
|
59129
|
-
let u = a(), f = !!o && !l, h = !!n && !l, [g, _] = V(!1),
|
|
59129
|
+
let u = a(), f = !!o && !l, h = !!n && !l, [g, _] = V(!1), y = /* @__PURE__ */ U(b.label, {
|
|
59130
59130
|
layout: !0,
|
|
59131
59131
|
transition: {
|
|
59132
59132
|
duration: .15,
|
|
@@ -59150,14 +59150,14 @@ var CL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59150
59150
|
t === void 0 ? null : /* @__PURE__ */ H(XM, {
|
|
59151
59151
|
resolve: t,
|
|
59152
59152
|
fallback: /* @__PURE__ */ H(s, { className: "h-4 w-4" }),
|
|
59153
|
-
children: (e) => e !== void 0 && /* @__PURE__ */ H(
|
|
59153
|
+
children: (e) => e !== void 0 && /* @__PURE__ */ H(E, {
|
|
59154
59154
|
value: e,
|
|
59155
59155
|
type: r ? "selected" : "default"
|
|
59156
59156
|
})
|
|
59157
59157
|
}),
|
|
59158
|
-
f ? /* @__PURE__ */ H(
|
|
59158
|
+
f ? /* @__PURE__ */ H(v, {
|
|
59159
59159
|
initial: !1,
|
|
59160
|
-
children: g ? /* @__PURE__ */ H(
|
|
59160
|
+
children: g ? /* @__PURE__ */ H(b.span, {
|
|
59161
59161
|
className: "-my-0.5 -ml-1.5 -mr-1 flex items-center gap-0.5 overflow-hidden",
|
|
59162
59162
|
initial: {
|
|
59163
59163
|
opacity: 0,
|
|
@@ -59175,7 +59175,7 @@ var CL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59175
59175
|
duration: .15,
|
|
59176
59176
|
ease: "easeOut"
|
|
59177
59177
|
},
|
|
59178
|
-
children: o ? /* @__PURE__ */ H(
|
|
59178
|
+
children: o ? /* @__PURE__ */ H(T, {
|
|
59179
59179
|
variant: "ghost",
|
|
59180
59180
|
size: "sm",
|
|
59181
59181
|
hideLabel: !0,
|
|
@@ -59191,14 +59191,14 @@ var CL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59191
59191
|
});
|
|
59192
59192
|
return i ? /* @__PURE__ */ U(p, { children: [/* @__PURE__ */ H(d, {
|
|
59193
59193
|
delay: 400,
|
|
59194
|
-
render:
|
|
59194
|
+
render: y
|
|
59195
59195
|
}), /* @__PURE__ */ H(m, {
|
|
59196
59196
|
className: "max-w-xs",
|
|
59197
59197
|
children: /* @__PURE__ */ H("p", {
|
|
59198
59198
|
className: "font-normal",
|
|
59199
59199
|
children: i
|
|
59200
59200
|
})
|
|
59201
|
-
})] }) :
|
|
59201
|
+
})] }) : y;
|
|
59202
59202
|
}), wL = (e, t) => {
|
|
59203
59203
|
let n = e.filter;
|
|
59204
59204
|
if (typeof n != "object" || !n || Array.isArray(n)) return !1;
|
|
@@ -59285,7 +59285,7 @@ var CL = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59285
59285
|
children: [t.label, a === void 0 ? null : /* @__PURE__ */ H(XM, {
|
|
59286
59286
|
resolve: a,
|
|
59287
59287
|
fallback: /* @__PURE__ */ H(s, { className: "h-4 w-6" }),
|
|
59288
|
-
children: (e) => e !== void 0 && /* @__PURE__ */ H(
|
|
59288
|
+
children: (e) => e !== void 0 && /* @__PURE__ */ H(E, {
|
|
59289
59289
|
value: e,
|
|
59290
59290
|
type: r ? "selected" : "default"
|
|
59291
59291
|
})
|
|
@@ -59507,9 +59507,9 @@ var PL = NL, FL = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
|
59507
59507
|
};
|
|
59508
59508
|
return /* @__PURE__ */ H(rt, { children: /* @__PURE__ */ H("div", {
|
|
59509
59509
|
className: "flex gap-1 border-0 p-2",
|
|
59510
|
-
children: /* @__PURE__ */ H(
|
|
59510
|
+
children: /* @__PURE__ */ H(v, {
|
|
59511
59511
|
mode: "popLayout",
|
|
59512
|
-
children: r.map((e) => /* @__PURE__ */ H(
|
|
59512
|
+
children: r.map((e) => /* @__PURE__ */ H(b.div, {
|
|
59513
59513
|
layout: !0,
|
|
59514
59514
|
initial: {
|
|
59515
59515
|
opacity: 0,
|
|
@@ -59573,7 +59573,7 @@ var IL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59573
59573
|
currentGrouping: o,
|
|
59574
59574
|
onGroupingChange: s
|
|
59575
59575
|
})]
|
|
59576
|
-
}), /* @__PURE__ */ H(
|
|
59576
|
+
}), /* @__PURE__ */ H(v, { children: c && LL(l) ? /* @__PURE__ */ H(b.div, {
|
|
59577
59577
|
initial: {
|
|
59578
59578
|
opacity: 0,
|
|
59579
59579
|
height: 0
|
|
@@ -59740,7 +59740,7 @@ var IL = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
59740
59740
|
});
|
|
59741
59741
|
});
|
|
59742
59742
|
GL.displayName = "InlineSelectTrigger";
|
|
59743
|
-
var KL = I(function({ variant: e = "field", placeholder: t, onChange: n, withApplySelection: r = !1, applySelectionLabel: o, onChangeSelectedOption: s, value: l, options: u = [], mapOptions: d, children: f, disabled: p, open: m, defaultOpen: h, hideLabel: g, onOpenChange: v, showSearchBox: y, onSearchChange: b, searchBoxPlaceholder: x, searchEmptyMessage: S, searchEmptyAction: C, spaciousEmptyState:
|
|
59743
|
+
var KL = I(function({ variant: e = "field", placeholder: t, onChange: n, withApplySelection: r = !1, applySelectionLabel: o, onChangeSelectedOption: s, value: l, options: u = [], mapOptions: d, children: f, disabled: p, open: m, defaultOpen: h, hideLabel: g, onOpenChange: v, showSearchBox: y, onSearchChange: b, searchBoxPlaceholder: x, searchEmptyMessage: S, searchEmptyAction: C, spaciousEmptyState: w, size: E, actions: D, onCreate: O, onFiltersChange: k, source: A, label: j, icon: M, labelIcon: ee, clearable: te, loading: ne, name: re, error: ie, status: ae, hint: oe, required: se, multiple: ce, portalContainer: le, asList: ue = !1, showPreview: de = !1, hideArrow: fe = !1, preserveSelectionOnDatasetChange: pe = !0, fitContentWidth: me, getSelectedLabel: he, dataTestId: ge, ..._e }, ve) {
|
|
59744
59744
|
let ye = ft(), be = E ?? "sm", xe = dt(NM), Se = xe.portalContainer && (xe.position === "center" || xe.position === "fullscreen"), Ce = le === void 0 ? Se ? xe.portalContainer : void 0 : le, we = "onSelectItems" in _e ? _e.onSelectItems : void 0, Te = "disableSelectAll" in _e && _e.disableSelectAll, [Ee, De] = Le({
|
|
59745
59745
|
prop: m,
|
|
59746
59746
|
defaultProp: h,
|
|
@@ -60184,7 +60184,7 @@ var KL = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60184
60184
|
}) : t();
|
|
60185
60185
|
} : void 0, En = tt ? rn.t("select.createWithValue", { value: tt }) : rn.select.create, Dn = C ?? (Tn && tt?.trim() ? /* @__PURE__ */ H("div", {
|
|
60186
60186
|
className: "flex w-full",
|
|
60187
|
-
children: /* @__PURE__ */ H(
|
|
60187
|
+
children: /* @__PURE__ */ H(T, {
|
|
60188
60188
|
type: "button",
|
|
60189
60189
|
variant: "outline",
|
|
60190
60190
|
onClick: () => Tn(tt.trim()),
|
|
@@ -60208,7 +60208,7 @@ var KL = I(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60208
60208
|
taller: !!A?.filters,
|
|
60209
60209
|
emptyMessage: S ?? (O && tt?.trim() ? rn.select.createEmptyMessage ?? rn.select.noResults : rn.select.noResults),
|
|
60210
60210
|
emptyAction: Dn,
|
|
60211
|
-
spaciousEmptyState:
|
|
60211
|
+
spaciousEmptyState: w,
|
|
60212
60212
|
bottom: Wt ? null : /* @__PURE__ */ H(gF, {
|
|
60213
60213
|
actions: Ht,
|
|
60214
60214
|
showApplyButton: Ct,
|