@factorialco/f0-react 16.37.2 → 16.39.0
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-CmxVg6Qg.js → ArchiveThumbnail-BuomQ0jm.js} +7 -7
- package/dist/{ArchiveViewer-Dh5Q8kqC.js → ArchiveViewer-Cb1a_yK5.js} +6 -6
- package/dist/{ChatPostComposerDialog-DZu6Ki0B.js → ChatPostComposerDialog-BgqLmmZS.js} +3 -3
- package/dist/{Check-C_yDxMGY.js → Check-Cg2vvL5g.js} +1 -1
- package/dist/{CoachmarkProvider--mh08dHJ.js → CoachmarkProvider-DXJ3wMBS.js} +14164 -14155
- package/dist/{CodeThumbnail-DL9mzI-m.js → CodeThumbnail-bnwIB0Q2.js} +1 -1
- package/dist/{CodeViewer-CgoiN8zP.js → CodeViewer-DVL3P-jF.js} +6 -6
- package/dist/{DocumentToolbar-DbY19x0N.js → DocumentToolbar-7s9QNMWY.js} +5 -5
- package/dist/{DocxViewer-B0yAaoyL.js → DocxViewer-Bn22Gst6.js} +3 -3
- package/dist/{Ellipsis-CQUxNnJr.js → Ellipsis-Bxq1iUUk.js} +1 -1
- package/dist/{ExternalLink-Fo1hQrhp.js → ExternalLink-0G_eeFcn.js} +1 -1
- package/dist/{F0AiProcessingOverlay-C-wJZY3B.js → F0AiProcessingOverlay-B6DLMrO7.js} +466 -466
- package/dist/{F0Alert-CjCxfO5U.js → F0Alert-m54uY33f.js} +6 -6
- package/dist/F0AudioPlayer-Ck9Vyjrb.js +2 -0
- package/dist/{F0Button-CRX5bM7l.js → F0Button-fMxOyyNk.js} +3 -3
- package/dist/{F0CanvasPanel-3UaFqQPm.js → F0CanvasPanel-CfPdTW_o.js} +8790 -8744
- package/dist/{F0DocumentViewer-CRM648IU.js → F0DocumentViewer-C_E6pFUZ.js} +4 -4
- package/dist/{F0DocumentViewer-xKhfg1xv.js → F0DocumentViewer-FuhnkhM-.js} +1 -1
- package/dist/{F0Map-Ba01T3fx.js → F0Map-ByX3wxFv.js} +70 -70
- package/dist/{F0Select-D6a3zqGM.js → F0Select-BCUynP2p.js} +769 -768
- package/dist/{F0Text-nln_5mr_.js → F0Text-CnmiWNAg.js} +2 -2
- package/dist/F0VideoPlayer-BshnHziC.js +1 -0
- package/dist/{F0VideoPlayer-DekywICI.js → F0VideoPlayer-DGHxduSr.js} +23 -23
- package/dist/{HtmlThumbnail-DLR_pxKp.js → HtmlThumbnail-Bo575heu.js} +1 -1
- package/dist/{HtmlViewer-CBctOpaY.js → HtmlViewer-Q3xUMpkP.js} +9 -9
- package/dist/{LayoutGroup-DjozJ14S.js → LayoutGroup-OcrcUDNP.js} +1 -1
- package/dist/{LockLocked-eJV3xZDn.js → LockLocked-BmvISDv1.js} +1 -1
- package/dist/{Map-Ci5Z-3Eg.js → Map-FBPV6r6b.js} +12 -12
- package/dist/{PdfThumbnail-E90M_nXl.js → PdfThumbnail-QkmwtnOA.js} +1 -1
- package/dist/{PdfViewer-CtDyKQNZ.js → PdfViewer-D4NjCixG.js} +8 -8
- package/dist/{SandboxedHtmlFrame-BVvitEn4.js → SandboxedHtmlFrame-4npl5pHT.js} +3 -3
- package/dist/{SheetViewer-CLy7Q01x.js → SheetViewer-RsRTbw7A.js} +6 -6
- package/dist/{TextViewer-D763I9Qq.js → TextViewer-BvwaMVDG.js} +4 -4
- package/dist/ai.d.ts +3 -3
- package/dist/ai.js +5 -5
- package/dist/component-status.js +4 -4
- package/dist/{createIcon-DRrxxnkK.js → createIcon-iM5M-dE_.js} +1 -1
- package/dist/{dist-CFLvAnX2.js → dist-CGYo25BY.js} +2 -2
- package/dist/{dist-CDjojOPL.js → dist-CUKjZKvr.js} +1 -1
- package/dist/{dist-B9Q5wICd.js → dist-CngBJJ6S.js} +4 -4
- package/dist/{dist-BB49d7CP.js → dist-D83RDDAb.js} +2 -2
- package/dist/{dist-BlR9WJJ8.js → dist-DDAe_kuu.js} +1 -1
- package/dist/experimental.d.ts +136 -30
- package/dist/experimental.js +7291 -6592
- package/dist/{exports-B363KqBU.d.ts → exports-DYl7Pf17.d.ts} +1 -1
- package/dist/f0.d.ts +5 -5
- package/dist/f0.js +1639 -1637
- package/dist/{highlight-D-UmcSng.js → highlight-CJDVXMe_.js} +7 -7
- package/dist/{i18n-provider-CnVpBH9I.js → i18n-provider-Bx71VZQH.js} +1 -1
- package/dist/{i18n-provider-defaults-Bh7XGTvG.d.ts → i18n-provider-defaults-BhcttUkN.d.ts} +44 -3
- package/dist/{i18n-provider-defaults-DCJs6SOs.js → i18n-provider-defaults-Dlzuk_lt.js} +38 -3
- package/dist/i18n-provider-defaults.d.ts +1 -1
- package/dist/i18n-provider-defaults.js +1 -1
- package/dist/{index-BWn4S6tf.d.ts → index-C7sLtTlR.d.ts} +47 -7
- package/dist/{index-BPqcoGhj.d.ts → index-DOU2q_xI.d.ts} +19 -8
- package/dist/{localized-7ETR3yDx.js → localized-DkdWx-Vy.js} +1 -1
- package/dist/{maplibre-toPNwSEp.js → maplibre-Dgbj9gtn.js} +1 -1
- package/dist/{pdfWorker-B4vsWnwd.js → pdfWorker-BlDYyNbC.js} +1 -1
- package/dist/{popover-gRMsK8nl.js → popover-BGv1b-fc.js} +1 -1
- package/dist/{skeleton-B2Nqp_5d.js → skeleton-BsSrazKY.js} +1 -1
- package/dist/styles.css +1 -1
- package/dist/{toolbarStyles-fzsbc4zM.js → toolbarStyles-DGeMchhq.js} +1 -1
- package/dist/{useData-i0Sxq9o0.js → useData-CmFkOA0P.js} +6 -6
- package/package.json +1 -1
- package/dist/F0AudioPlayer-2XYmhjAg.js +0 -2
- package/dist/F0VideoPlayer-MJe3t44z.js +0 -1
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
|
|
2
|
-
import { a as r, i, r as a } from "./i18n-provider-
|
|
3
|
-
import { n as o, t as s } from "./skeleton-
|
|
2
|
+
import { a as r, i, r as a } from "./i18n-provider-Bx71VZQH.js";
|
|
3
|
+
import { n as o, t as s } from "./skeleton-BsSrazKY.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-NXXT56H4.js";
|
|
5
|
-
import { A as h, E as g, H as _, L as v, O as y, X as b, d as x, h as S, j as C, k as w, n as
|
|
6
|
-
import { a as
|
|
7
|
-
import { H as
|
|
8
|
-
import { t as _e } from "./Check-
|
|
9
|
-
import { a as ve, i as ye, r as be, t as xe } from "./dist-
|
|
10
|
-
import { t as Se } from "./ExternalLink-
|
|
11
|
-
import { n as Ce, t as we } from "./LockLocked-
|
|
5
|
+
import { A as h, E as g, H as _, L as v, O as y, X as b, d as x, h as S, j as C, k as w, n as ee, q as T, r as E, t as D, z as O } from "./F0Button-fMxOyyNk.js";
|
|
6
|
+
import { a as k, o as A, t as j, u as te } from "./createIcon-iM5M-dE_.js";
|
|
7
|
+
import { H as ne, I as re, N as ie, P as ae, R as oe, U as se, V as ce, a as M, b as N, f as le, i as ue, m as de, o as fe, p as pe, u as me, v as he, z as ge } from "./useData-CmFkOA0P.js";
|
|
8
|
+
import { t as _e } from "./Check-Cg2vvL5g.js";
|
|
9
|
+
import { a as ve, i as ye, r as be, t as xe } from "./dist-D83RDDAb.js";
|
|
10
|
+
import { t as Se } from "./ExternalLink-0G_eeFcn.js";
|
|
11
|
+
import { n as Ce, t as we } from "./LockLocked-BmvISDv1.js";
|
|
12
12
|
import "./purify.es-CJ7gZxxn.js";
|
|
13
|
-
import { $ as Te, A as Ee, B as De, D as Oe, E as ke, F as Ae, G as je, H as Me, I as Ne, J as Pe, L as Fe, M as Ie, N as Le, O as Re, P as ze, Q as Be, R as Ve, U as He, V as Ue, W as We, Y as Ge, Z as Ke, a as qe, i as Je, j as Ye, k as Xe, q as Ze, t as Qe, z as $e } from "./popover-
|
|
14
|
-
import { b as et, c as tt, d as nt, g as rt, h as it, n as at, r as ot, t as st, u as ct, v as lt, y as ut } from "./dist-
|
|
13
|
+
import { $ as Te, A as Ee, B as De, D as Oe, E as ke, F as Ae, G as je, H as Me, I as Ne, J as Pe, L as Fe, M as Ie, N as Le, O as Re, P as ze, Q as Be, R as Ve, U as He, V as Ue, W as We, Y as Ge, Z as Ke, a as qe, i as Je, j as Ye, k as Xe, q as Ze, t as Qe, z as $e } from "./popover-BGv1b-fc.js";
|
|
14
|
+
import { b as et, c as tt, d as nt, g as rt, h as it, n as at, r as ot, t as st, u as ct, v as lt, y as ut } from "./dist-CGYo25BY.js";
|
|
15
15
|
import { t as dt } from "./dist-DMTFO2gF.js";
|
|
16
16
|
import * as P from "react";
|
|
17
17
|
import ft, { Children as pt, Component as mt, Fragment as ht, cloneElement as gt, createContext as _t, forwardRef as F, useCallback as I, useContext as vt, useEffect as L, useId as yt, useImperativeHandle as bt, useLayoutEffect as xt, useMemo as R, useReducer as St, useRef as z, useState as B } from "react";
|
|
@@ -318,7 +318,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
318
318
|
fill: "currentColor",
|
|
319
319
|
d: "M12 20C16.4183 20 20 16.4183 20 12C20 7.58172 16.4183 4 12 4C7.58172 4 4 7.58172 4 12C4 16.4183 7.58172 20 12 20ZM11.0325 8.05964C10.9888 7.49582 11.4345 7.01416 12 7.01416C12.5655 7.01416 13.0112 7.49582 12.9675 8.05964L12.6647 11.9598C12.6377 12.3069 12.3482 12.5748 12 12.5748C11.6518 12.5748 11.3623 12.3069 11.3353 11.9598L11.0325 8.05964ZM13 15.001C13 15.5533 12.5523 16.001 12 16.001C11.4477 16.001 11 15.5533 11 15.001C11 14.4487 11.4477 14.001 12 14.001C12.5523 14.001 13 14.4487 13 15.001Z"
|
|
320
320
|
})
|
|
321
|
-
})), Yt =
|
|
321
|
+
})), Yt = j({
|
|
322
322
|
v1: Jt,
|
|
323
323
|
v2: Et
|
|
324
324
|
}, "AlertCircle"), Xt = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -338,7 +338,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
338
338
|
strokeLinejoin: "round",
|
|
339
339
|
d: "M12 5L12 18.5"
|
|
340
340
|
})]
|
|
341
|
-
})), Zt =
|
|
341
|
+
})), Zt = j({
|
|
342
342
|
v1: Xt,
|
|
343
343
|
v2: Dt
|
|
344
344
|
}, "ArrowDown"), Qt = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -358,7 +358,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
358
358
|
strokeLinejoin: "round",
|
|
359
359
|
d: "M19 12L5.50002 12"
|
|
360
360
|
})]
|
|
361
|
-
})), $t =
|
|
361
|
+
})), $t = j({
|
|
362
362
|
v1: Qt,
|
|
363
363
|
v2: Ot
|
|
364
364
|
}, "ArrowLeft"), en = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -378,7 +378,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
378
378
|
strokeLinejoin: "round",
|
|
379
379
|
d: "M12 19L12 5.50002"
|
|
380
380
|
})]
|
|
381
|
-
})), tn =
|
|
381
|
+
})), tn = j({
|
|
382
382
|
v1: en,
|
|
383
383
|
v2: kt
|
|
384
384
|
}, "ArrowUp"), nn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -417,7 +417,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
417
417
|
d: "M14 16H6"
|
|
418
418
|
})
|
|
419
419
|
]
|
|
420
|
-
})), rn =
|
|
420
|
+
})), rn = j({
|
|
421
421
|
v1: nn,
|
|
422
422
|
v2: At
|
|
423
423
|
}, "Calculator"), an = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -437,7 +437,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
437
437
|
strokeLinejoin: "round",
|
|
438
438
|
d: "M15 18L9 12"
|
|
439
439
|
})]
|
|
440
|
-
})), on =
|
|
440
|
+
})), on = j({
|
|
441
441
|
v1: an,
|
|
442
442
|
v2: jt
|
|
443
443
|
}, "ChevronLeft"), sn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -457,7 +457,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
457
457
|
strokeLinejoin: "round",
|
|
458
458
|
d: "M9 18L15 12"
|
|
459
459
|
})]
|
|
460
|
-
})), cn =
|
|
460
|
+
})), cn = j({
|
|
461
461
|
v1: sn,
|
|
462
462
|
v2: Mt
|
|
463
463
|
}, "ChevronRight"), ln = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -477,7 +477,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
477
477
|
strokeLinejoin: "round",
|
|
478
478
|
d: "M6 14L12 8"
|
|
479
479
|
})]
|
|
480
|
-
})), un =
|
|
480
|
+
})), un = j({
|
|
481
481
|
v1: ln,
|
|
482
482
|
v2: Nt
|
|
483
483
|
}, "ChevronUp"), dn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -498,7 +498,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
498
498
|
stroke: "currentColor",
|
|
499
499
|
d: "M15.5 13.75L12 10.25L8.5 13.75"
|
|
500
500
|
})]
|
|
501
|
-
})), fn =
|
|
501
|
+
})), fn = j({
|
|
502
502
|
v1: dn,
|
|
503
503
|
v2: Pt
|
|
504
504
|
}, "DropdownOpen"), pn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -518,7 +518,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
518
518
|
strokeLinejoin: "round",
|
|
519
519
|
d: "M19 14H5"
|
|
520
520
|
})]
|
|
521
|
-
})), mn =
|
|
521
|
+
})), mn = j({
|
|
522
522
|
v1: pn,
|
|
523
523
|
v2: Ft
|
|
524
524
|
}, "Equal"), hn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -538,7 +538,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
538
538
|
strokeLinejoin: "round",
|
|
539
539
|
d: "M4.66667 14.5998C7.11112 11.8508 9.55556 12.6553 12 14.6667C14.4445 16.678 16.8889 17.4826 19.3333 14.7336"
|
|
540
540
|
})]
|
|
541
|
-
})), gn =
|
|
541
|
+
})), gn = j({
|
|
542
542
|
v1: hn,
|
|
543
543
|
v2: It
|
|
544
544
|
}, "EqualApproximately"), _n = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -558,7 +558,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
558
558
|
strokeLinejoin: "round",
|
|
559
559
|
d: "M6 16L18 10.5L6 5"
|
|
560
560
|
})]
|
|
561
|
-
})), vn =
|
|
561
|
+
})), vn = j({
|
|
562
562
|
v1: _n,
|
|
563
563
|
v2: Lt
|
|
564
564
|
}, "EqualGreater"), yn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -578,7 +578,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
578
578
|
strokeLinejoin: "round",
|
|
579
579
|
d: "M18 16L6 10.5L18 5"
|
|
580
580
|
})]
|
|
581
|
-
})), bn =
|
|
581
|
+
})), bn = j({
|
|
582
582
|
v1: yn,
|
|
583
583
|
v2: Rt
|
|
584
584
|
}, "EqualLess"), xn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -615,7 +615,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
615
615
|
d: "M6.47681 10.543L4.00002 13.0159"
|
|
616
616
|
})
|
|
617
617
|
]
|
|
618
|
-
})), Sn =
|
|
618
|
+
})), Sn = j({
|
|
619
619
|
v1: xn,
|
|
620
620
|
v2: zt
|
|
621
621
|
}, "EyeInvisible"), Cn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -634,7 +634,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
634
634
|
r: 2.35,
|
|
635
635
|
stroke: "currentColor"
|
|
636
636
|
})]
|
|
637
|
-
})), wn =
|
|
637
|
+
})), wn = j({
|
|
638
638
|
v1: Cn,
|
|
639
639
|
v2: Bt
|
|
640
640
|
}, "EyeVisible"), Tn = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -647,7 +647,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
647
647
|
stroke: "currentColor",
|
|
648
648
|
d: "M5.41496 6.65079C4.85896 6.00212 5.31987 5 6.17422 5H17.8258C18.6801 5 19.141 6.00212 18.585 6.65079L14.2407 11.7191C14.0854 11.9004 14 12.1312 14 12.3699V16.5C14 16.8148 13.8518 17.1111 13.6 17.3L11.6 18.8C10.9408 19.2944 10 18.824 10 18V12.3699C10 12.1312 9.91461 11.9004 9.75926 11.7191L5.41496 6.65079Z"
|
|
649
649
|
})
|
|
650
|
-
})), En =
|
|
650
|
+
})), En = j({
|
|
651
651
|
v1: Tn,
|
|
652
652
|
v2: Vt
|
|
653
653
|
}, "Filter"), Dn = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -662,7 +662,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
662
662
|
strokeLinejoin: "round",
|
|
663
663
|
d: "M6 19L19 12L6 5"
|
|
664
664
|
})
|
|
665
|
-
})), On =
|
|
665
|
+
})), On = j({
|
|
666
666
|
v1: Dn,
|
|
667
667
|
v2: Ht
|
|
668
668
|
}, "Greater"), kn = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -677,7 +677,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
677
677
|
d: "M20 12C20 16.4183 16.4183 20 12 20C7.58172 20 4 16.4183 4 12C4 7.58172 7.58172 4 12 4C16.4183 4 20 7.58172 20 12ZM11.35 9.10001C11.35 9.45899 11.641 9.75001 12 9.75001C12.359 9.75001 12.65 9.45899 12.65 9.10001V9.00001C12.65 8.64102 12.359 8.35001 12 8.35001C11.641 8.35001 11.35 8.64102 11.35 9.00001V9.10001ZM11.35 15.1C11.35 15.459 11.641 15.75 12 15.75C12.359 15.75 12.65 15.459 12.65 15.1V12.1C12.65 11.741 12.359 11.45 12 11.45C11.641 11.45 11.35 11.741 11.35 12.1L11.35 15.1Z",
|
|
678
678
|
clipRule: "evenodd"
|
|
679
679
|
})
|
|
680
|
-
})), An =
|
|
680
|
+
})), An = j({
|
|
681
681
|
v1: kn,
|
|
682
682
|
v2: Ut
|
|
683
683
|
}, "InfoCircle"), jn = F((e, t) => /* @__PURE__ */ H("svg", {
|
|
@@ -706,7 +706,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
706
706
|
d: "M12 9V9.1"
|
|
707
707
|
})
|
|
708
708
|
]
|
|
709
|
-
})), Mn =
|
|
709
|
+
})), Mn = j({
|
|
710
710
|
v1: jn,
|
|
711
711
|
v2: Wt
|
|
712
712
|
}, "InfoCircleLine"), Nn = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -721,7 +721,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
721
721
|
strokeLinejoin: "round",
|
|
722
722
|
d: "M18 19L5 12L18 5"
|
|
723
723
|
})
|
|
724
|
-
})), Pn =
|
|
724
|
+
})), Pn = j({
|
|
725
725
|
v1: Nn,
|
|
726
726
|
v2: Gt
|
|
727
727
|
}, "Less"), Fn = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -736,7 +736,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
736
736
|
d: "M12.65 5.00001C12.65 4.64102 12.359 4.35001 12 4.35001C11.641 4.35001 11.35 4.64102 11.35 5.00001V11.35H5C4.64102 11.35 4.35 11.641 4.35 12C4.35 12.359 4.64102 12.65 5 12.65H11.35V19C11.35 19.359 11.641 19.65 12 19.65C12.359 19.65 12.65 19.359 12.65 19V12.65H19C19.359 12.65 19.65 12.359 19.65 12C19.65 11.641 19.359 11.35 19 11.35H12.65V5.00001Z",
|
|
737
737
|
clipRule: "evenodd"
|
|
738
738
|
})
|
|
739
|
-
})), In =
|
|
739
|
+
})), In = j({
|
|
740
740
|
v1: Fn,
|
|
741
741
|
v2: Kt
|
|
742
742
|
}, "Plus"), Ln = F((e, t) => /* @__PURE__ */ V("svg", {
|
|
@@ -751,7 +751,7 @@ var Et = F((e, t) => V("svg", {
|
|
|
751
751
|
d: "M5.39903 19C3.87406 19 2.91012 17.3618 3.65071 16.0287L10.2517 4.14697C11.0137 2.77535 12.9863 2.77535 13.7483 4.14697L20.3493 16.0287C21.0899 17.3618 20.1259 19 18.601 19H5.39903ZM12 7.5C11.4345 7.5 10.9888 7.98166 11.0325 8.54549L11.3353 12.4456C11.3623 12.7927 11.6518 13.0607 12 13.0607C12.3482 13.0607 12.6377 12.7927 12.6647 12.4456L12.9675 8.54549C13.0112 7.98166 12.5655 7.5 12 7.5ZM12 16.4869C12.5523 16.4869 13 16.0391 13 15.4869C13 14.9346 12.5523 14.4869 12 14.4869C11.4477 14.4869 11 14.9346 11 15.4869C11 16.0391 11.4477 16.4869 12 16.4869Z",
|
|
752
752
|
clipRule: "evenodd"
|
|
753
753
|
})
|
|
754
|
-
})), Rn =
|
|
754
|
+
})), Rn = j({
|
|
755
755
|
v1: Ln,
|
|
756
756
|
v2: qt
|
|
757
757
|
}, "Warning"), zn = typeof global == "object" && global && global.Object === Object && global, Bn = typeof self == "object" && self && self.Object === Object && self, Vn = zn || Bn || Function("return this")(), Hn = Vn.Symbol, Un = Object.prototype, Wn = Un.hasOwnProperty, Gn = Un.toString, Kn = Hn ? Hn.toStringTag : void 0;
|
|
@@ -1906,7 +1906,7 @@ var No = /* @__PURE__ */ n(((e, t) => {
|
|
|
1906
1906
|
t.exports = n;
|
|
1907
1907
|
})), js = /* @__PURE__ */ n(((e, t) => {
|
|
1908
1908
|
var n = Ko(), r = Os(), i = Po(), a = Ds(), o = ks(), s = As(), c = 1, l = 2, u = "[object Boolean]", d = "[object Date]", f = "[object Error]", p = "[object Map]", m = "[object Number]", h = "[object RegExp]", g = "[object Set]", _ = "[object String]", v = "[object Symbol]", y = "[object ArrayBuffer]", b = "[object DataView]", x = n ? n.prototype : void 0, S = x ? x.valueOf : void 0;
|
|
1909
|
-
function C(e, t, n, x, C, w,
|
|
1909
|
+
function C(e, t, n, x, C, w, ee) {
|
|
1910
1910
|
switch (n) {
|
|
1911
1911
|
case b:
|
|
1912
1912
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
@@ -1918,15 +1918,15 @@ var No = /* @__PURE__ */ n(((e, t) => {
|
|
|
1918
1918
|
case f: return e.name == t.name && e.message == t.message;
|
|
1919
1919
|
case h:
|
|
1920
1920
|
case _: return e == t + "";
|
|
1921
|
-
case p: var
|
|
1921
|
+
case p: var T = o;
|
|
1922
1922
|
case g:
|
|
1923
|
-
var
|
|
1924
|
-
if (
|
|
1925
|
-
var
|
|
1926
|
-
if (
|
|
1927
|
-
x |= l,
|
|
1928
|
-
var
|
|
1929
|
-
return
|
|
1923
|
+
var E = x & c;
|
|
1924
|
+
if (T ||= s, e.size != t.size && !E) return !1;
|
|
1925
|
+
var D = ee.get(e);
|
|
1926
|
+
if (D) return D == t;
|
|
1927
|
+
x |= l, ee.set(e, t);
|
|
1928
|
+
var O = a(T(e), T(t), x, C, w, ee);
|
|
1929
|
+
return ee.delete(e), O;
|
|
1930
1930
|
case v: if (S) return S.call(e) == S.call(t);
|
|
1931
1931
|
}
|
|
1932
1932
|
return !1;
|
|
@@ -2013,12 +2013,12 @@ var No = /* @__PURE__ */ n(((e, t) => {
|
|
|
2013
2013
|
}
|
|
2014
2014
|
t.exports = n;
|
|
2015
2015
|
})), Ks = /* @__PURE__ */ n(((e, t) => {
|
|
2016
|
-
var n = Yo(), r = Gs(), i = zs(), a = "[object Arguments]", o = "[object Array]", s = "[object Boolean]", c = "[object Date]", l = "[object Error]", u = "[object Function]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object RegExp]", h = "[object Set]", g = "[object String]", _ = "[object WeakMap]", v = "[object ArrayBuffer]", y = "[object DataView]", b = "[object Float32Array]", x = "[object Float64Array]", S = "[object Int8Array]", C = "[object Int16Array]", w = "[object Int32Array]",
|
|
2017
|
-
|
|
2018
|
-
function
|
|
2019
|
-
return i(e) && r(e.length) && !!
|
|
2016
|
+
var n = Yo(), r = Gs(), i = zs(), a = "[object Arguments]", o = "[object Array]", s = "[object Boolean]", c = "[object Date]", l = "[object Error]", u = "[object Function]", d = "[object Map]", f = "[object Number]", p = "[object Object]", m = "[object RegExp]", h = "[object Set]", g = "[object String]", _ = "[object WeakMap]", v = "[object ArrayBuffer]", y = "[object DataView]", b = "[object Float32Array]", x = "[object Float64Array]", S = "[object Int8Array]", C = "[object Int16Array]", w = "[object Int32Array]", ee = "[object Uint8Array]", T = "[object Uint8ClampedArray]", E = "[object Uint16Array]", D = "[object Uint32Array]", O = {};
|
|
2017
|
+
O[b] = O[x] = O[S] = O[C] = O[w] = O[ee] = O[T] = O[E] = O[D] = !0, O[a] = O[o] = O[v] = O[s] = O[y] = O[c] = O[l] = O[u] = O[d] = O[f] = O[p] = O[m] = O[h] = O[g] = O[_] = !1;
|
|
2018
|
+
function k(e) {
|
|
2019
|
+
return i(e) && r(e.length) && !!O[n(e)];
|
|
2020
2020
|
}
|
|
2021
|
-
t.exports =
|
|
2021
|
+
t.exports = k;
|
|
2022
2022
|
})), qs = /* @__PURE__ */ n(((e, t) => {
|
|
2023
2023
|
function n(e) {
|
|
2024
2024
|
return function(t) {
|
|
@@ -2143,20 +2143,20 @@ var No = /* @__PURE__ */ n(((e, t) => {
|
|
|
2143
2143
|
function h(e, t, h, g, _, v) {
|
|
2144
2144
|
var y = s(e), b = s(t), x = y ? f : o(e), S = b ? f : o(t);
|
|
2145
2145
|
x = x == d ? p : x, S = S == d ? p : S;
|
|
2146
|
-
var C = x == p, w = S == p,
|
|
2147
|
-
if (
|
|
2146
|
+
var C = x == p, w = S == p, ee = x == S;
|
|
2147
|
+
if (ee && c(e)) {
|
|
2148
2148
|
if (!c(t)) return !1;
|
|
2149
2149
|
y = !0, C = !1;
|
|
2150
2150
|
}
|
|
2151
|
-
if (
|
|
2151
|
+
if (ee && !C) return v ||= new n(), y || l(e) ? r(e, t, h, g, _, v) : i(e, t, x, h, g, _, v);
|
|
2152
2152
|
if (!(h & u)) {
|
|
2153
|
-
var
|
|
2154
|
-
if (
|
|
2155
|
-
var
|
|
2156
|
-
return v ||= new n(), _(
|
|
2153
|
+
var T = C && m.call(e, "__wrapped__"), E = w && m.call(t, "__wrapped__");
|
|
2154
|
+
if (T || E) {
|
|
2155
|
+
var D = T ? e.value() : e, O = E ? t.value() : t;
|
|
2156
|
+
return v ||= new n(), _(D, O, h, g, v);
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
return
|
|
2159
|
+
return ee ? (v ||= new n(), a(e, t, h, g, _, v)) : !1;
|
|
2160
2160
|
}
|
|
2161
2161
|
t.exports = h;
|
|
2162
2162
|
})), dc = /* @__PURE__ */ n(((e, t) => {
|
|
@@ -2315,7 +2315,7 @@ var kc = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
2315
2315
|
if (r?.length) return { items: r };
|
|
2316
2316
|
}, Nc = ({ tooltip: e, children: t }) => {
|
|
2317
2317
|
let n = Mc(e);
|
|
2318
|
-
return n ? /* @__PURE__ */ V(
|
|
2318
|
+
return n ? /* @__PURE__ */ V(O, {
|
|
2319
2319
|
instant: !0,
|
|
2320
2320
|
...n,
|
|
2321
2321
|
children: t
|
|
@@ -2329,7 +2329,7 @@ var kc = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
2329
2329
|
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),
|
|
2330
2330
|
children: [
|
|
2331
2331
|
e,
|
|
2332
|
-
t && !u ? /* @__PURE__ */ V(
|
|
2332
|
+
t && !u ? /* @__PURE__ */ V(E, {
|
|
2333
2333
|
tag: "span",
|
|
2334
2334
|
lines: 1,
|
|
2335
2335
|
className: d ? "text-f1-foreground-disabled" : void 0,
|
|
@@ -2348,7 +2348,7 @@ var kc = (e) => typeof e == "string" ? e : [e.title, e.description].filter(Boole
|
|
|
2348
2348
|
}) : null,
|
|
2349
2349
|
o ? /* @__PURE__ */ V(v, {
|
|
2350
2350
|
description: o,
|
|
2351
|
-
children: /* @__PURE__ */ V(
|
|
2351
|
+
children: /* @__PURE__ */ V(k, {
|
|
2352
2352
|
icon: Mn,
|
|
2353
2353
|
size: "md"
|
|
2354
2354
|
})
|
|
@@ -2362,7 +2362,7 @@ var Fc = F(({ text: e, additionalAccessibleText: t, icon: n, onlyIcon: r, info:
|
|
|
2362
2362
|
ref: s,
|
|
2363
2363
|
className: c("border-[1px] border-solid border-f1-border-secondary", a),
|
|
2364
2364
|
size: o,
|
|
2365
|
-
left: n ? /* @__PURE__ */ V(
|
|
2365
|
+
left: n ? /* @__PURE__ */ V(k, {
|
|
2366
2366
|
icon: n,
|
|
2367
2367
|
size: "sm",
|
|
2368
2368
|
className: "text-f1-icon",
|
|
@@ -2381,7 +2381,7 @@ function Lc({ revealOnHighlight: e = !1 }) {
|
|
|
2381
2381
|
return /* @__PURE__ */ V("span", {
|
|
2382
2382
|
"data-external-arrow": "",
|
|
2383
2383
|
className: c("ml-auto flex shrink-0 self-center pl-2", e && "opacity-0 transition-opacity duration-75 group-hover:opacity-100 group-data-[active=true]:opacity-100 group-data-[highlighted]:opacity-100 [@media(hover:none)]:opacity-100"),
|
|
2384
|
-
children: /* @__PURE__ */ V(
|
|
2384
|
+
children: /* @__PURE__ */ V(k, {
|
|
2385
2385
|
icon: Se,
|
|
2386
2386
|
size: "md",
|
|
2387
2387
|
color: "secondary"
|
|
@@ -2414,7 +2414,7 @@ var Rc = {
|
|
|
2414
2414
|
critical: "bg-f1-background-critical text-f1-foreground-critical",
|
|
2415
2415
|
positive: "bg-f1-background-positive text-f1-foreground-positive"
|
|
2416
2416
|
}[t]),
|
|
2417
|
-
left: /* @__PURE__ */ V(
|
|
2417
|
+
left: /* @__PURE__ */ V(k, {
|
|
2418
2418
|
icon: Rc[t],
|
|
2419
2419
|
size: "md",
|
|
2420
2420
|
"aria-hidden": !0,
|
|
@@ -2434,7 +2434,7 @@ var Bc = r(zc), Vc = F(({ text: e, additionalAccessibleText: t, variant: n, icon
|
|
|
2434
2434
|
warning: "bg-f1-background-warning text-f1-foreground-warning",
|
|
2435
2435
|
critical: "bg-f1-background-critical text-f1-foreground-critical"
|
|
2436
2436
|
}[n]),
|
|
2437
|
-
left: r ? /* @__PURE__ */ V(
|
|
2437
|
+
left: r ? /* @__PURE__ */ V(k, {
|
|
2438
2438
|
icon: r,
|
|
2439
2439
|
size: "sm",
|
|
2440
2440
|
className: {
|
|
@@ -45099,7 +45099,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
45099
45099
|
["partial", u],
|
|
45100
45100
|
["partialRight", d],
|
|
45101
45101
|
["rearg", p]
|
|
45102
|
-
], C = "[object Arguments]", w = "[object Array]",
|
|
45102
|
+
], C = "[object Arguments]", w = "[object Array]", ee = "[object AsyncFunction]", T = "[object Boolean]", E = "[object Date]", D = "[object DOMException]", O = "[object Error]", k = "[object Function]", A = "[object GeneratorFunction]", j = "[object Map]", te = "[object Number]", ne = "[object Null]", re = "[object Object]", ie = "[object Promise]", ae = "[object Proxy]", oe = "[object RegExp]", se = "[object Set]", ce = "[object String]", M = "[object Symbol]", N = "[object Undefined]", le = "[object WeakMap]", ue = "[object WeakSet]", de = "[object ArrayBuffer]", fe = "[object DataView]", pe = "[object Float32Array]", me = "[object Float64Array]", he = "[object Int8Array]", ge = "[object Int16Array]", _e = "[object Int32Array]", ve = "[object Uint8Array]", ye = "[object Uint8ClampedArray]", be = "[object Uint16Array]", xe = "[object Uint32Array]", Se = /\b__p \+= '';/g, Ce = /\b(__p \+=) '' \+/g, we = /(__e\(.*?\)|\b__t\)) \+\n'';/g, Te = /&(?:amp|lt|gt|quot|#39);/g, Ee = /[&<>"']/g, De = RegExp(Te.source), Oe = RegExp(Ee.source), ke = /<%-([\s\S]+?)%>/g, Ae = /<%([\s\S]+?)%>/g, je = /<%=([\s\S]+?)%>/g, Me = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, Ne = /^\w*$/, Pe = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Fe = /[\\^$.*+?()[\]{}|]/g, Ie = RegExp(Fe.source), Le = /^\s+/, Re = /\s/, ze = /\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/, Be = /\{\n\/\* \[wrapped with (.+)\] \*/, Ve = /,? & /, He = /[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g, Ue = /[()=,{}\[\]\/\s]/, We = /\\(\\)?/g, Ge = /\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g, Ke = /\w*$/, qe = /^[-+]0x[0-9a-f]+$/i, Je = /^0b[01]+$/i, Ye = /^\[object .+?Constructor\]$/, Xe = /^0o[0-7]+$/i, Ze = /^(?:0|[1-9]\d*)$/, Qe = /[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g, $e = /($^)/, et = /['\n\r\u2028\u2029\\]/g, tt = "\\ud800-\\udfff", nt = "\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff", rt = "\\u2700-\\u27bf", it = "a-z\\xdf-\\xf6\\xf8-\\xff", at = "\\xac\\xb1\\xd7\\xf7", ot = "\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf", st = "\\u2000-\\u206f", ct = " \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000", lt = "A-Z\\xc0-\\xd6\\xd8-\\xde", ut = "\\ufe0e\\ufe0f", dt = at + ot + st + ct, P = "['’]", ft = "[" + tt + "]", pt = "[" + dt + "]", mt = "[" + nt + "]", ht = "\\d+", gt = "[" + rt + "]", _t = "[" + it + "]", F = "[^" + tt + dt + ht + rt + it + lt + "]", I = "\\ud83c[\\udffb-\\udfff]", vt = "(?:" + mt + "|" + I + ")", L = "[^" + tt + "]", yt = "(?:\\ud83c[\\udde6-\\uddff]){2}", bt = "[\\ud800-\\udbff][\\udc00-\\udfff]", xt = "[" + lt + "]", R = "\\u200d", St = "(?:" + _t + "|" + F + ")", z = "(?:" + xt + "|" + F + ")", B = "(?:" + P + "(?:d|ll|m|re|s|t|ve))?", Ct = "(?:" + P + "(?:D|LL|M|RE|S|T|VE))?", V = vt + "?", H = "[" + ut + "]?", wt = "(?:" + R + "(?:" + [
|
|
45103
45103
|
L,
|
|
45104
45104
|
yt,
|
|
45105
45105
|
bt
|
|
@@ -45131,9 +45131,9 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
45131
45131
|
ht,
|
|
45132
45132
|
Ot
|
|
45133
45133
|
].join("|"), "g"), Pt = RegExp("[" + R + tt + nt + ut + "]"), Ft = /[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/, It = /* @__PURE__ */ "Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout".split("."), Lt = -1, Rt = {};
|
|
45134
|
-
Rt[pe] = Rt[me] = Rt[he] = Rt[ge] = Rt[_e] = Rt[ve] = Rt[ye] = Rt[be] = Rt[xe] = !0, Rt[C] = Rt[w] = Rt[de] = Rt[
|
|
45134
|
+
Rt[pe] = Rt[me] = Rt[he] = Rt[ge] = Rt[_e] = Rt[ve] = Rt[ye] = Rt[be] = Rt[xe] = !0, Rt[C] = Rt[w] = Rt[de] = Rt[T] = Rt[fe] = Rt[E] = Rt[O] = Rt[k] = Rt[j] = Rt[te] = Rt[re] = Rt[oe] = Rt[se] = Rt[ce] = Rt[le] = !1;
|
|
45135
45135
|
var zt = {};
|
|
45136
|
-
zt[C] = zt[w] = zt[de] = zt[fe] = zt[
|
|
45136
|
+
zt[C] = zt[w] = zt[de] = zt[fe] = zt[T] = zt[E] = zt[pe] = zt[me] = zt[he] = zt[ge] = zt[_e] = zt[j] = zt[te] = zt[re] = zt[oe] = zt[se] = zt[ce] = zt[M] = zt[ve] = zt[ye] = zt[be] = zt[xe] = !0, zt[O] = zt[k] = zt[le] = !1;
|
|
45137
45137
|
var Bt = {
|
|
45138
45138
|
À: "A",
|
|
45139
45139
|
Á: "A",
|
|
@@ -45840,9 +45840,9 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
45840
45840
|
if (d) {
|
|
45841
45841
|
if (s = Ko(e), !c) return Ya(e, s);
|
|
45842
45842
|
} else {
|
|
45843
|
-
var f = Ho(e), p = f ==
|
|
45843
|
+
var f = Ho(e), p = f == k || f == A;
|
|
45844
45844
|
if (Ql(e)) return za(e, c);
|
|
45845
|
-
if (f ==
|
|
45845
|
+
if (f == re || f == C || p && !a) {
|
|
45846
45846
|
if (s = l || p ? {} : qo(e), !c) return l ? Qa(e, ai(s, e)) : Za(e, ii(s, e));
|
|
45847
45847
|
} else {
|
|
45848
45848
|
if (!zt[f]) return a ? e : {};
|
|
@@ -45951,7 +45951,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
45951
45951
|
return X(e) ? r : gn(r, n(e));
|
|
45952
45952
|
}
|
|
45953
45953
|
function Oi(e) {
|
|
45954
|
-
return e == null ? e === n ?
|
|
45954
|
+
return e == null ? e === n ? N : ne : Ct && Ct in it(e) ? zo(e) : us(e);
|
|
45955
45955
|
}
|
|
45956
45956
|
function ki(e, t) {
|
|
45957
45957
|
return e > t;
|
|
@@ -46001,15 +46001,15 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46001
46001
|
return lu(e) && Oi(e) == de;
|
|
46002
46002
|
}
|
|
46003
46003
|
function Ri(e) {
|
|
46004
|
-
return lu(e) && Oi(e) ==
|
|
46004
|
+
return lu(e) && Oi(e) == E;
|
|
46005
46005
|
}
|
|
46006
46006
|
function zi(e, t, n, r, i) {
|
|
46007
46007
|
return e === t ? !0 : e == null || t == null || !lu(e) && !lu(t) ? e !== e && t !== t : Bi(e, t, n, r, zi, i);
|
|
46008
46008
|
}
|
|
46009
46009
|
function Bi(e, t, n, r, i, a) {
|
|
46010
46010
|
var o = X(e), s = X(t), c = o ? w : Ho(e), l = s ? w : Ho(t);
|
|
46011
|
-
c = c == C ?
|
|
46012
|
-
var u = c ==
|
|
46011
|
+
c = c == C ? re : c, l = l == C ? re : l;
|
|
46012
|
+
var u = c == re, d = l == re, f = c == l;
|
|
46013
46013
|
if (f && Ql(e)) {
|
|
46014
46014
|
if (!Ql(t)) return !1;
|
|
46015
46015
|
o = !0, u = !1;
|
|
@@ -46025,7 +46025,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46025
46025
|
return f ? (a ||= new Wr(), ko(e, t, n, r, i, a)) : !1;
|
|
46026
46026
|
}
|
|
46027
46027
|
function Vi(e) {
|
|
46028
|
-
return lu(e) && Ho(e) ==
|
|
46028
|
+
return lu(e) && Ho(e) == j;
|
|
46029
46029
|
}
|
|
46030
46030
|
function Hi(e, t, r, i) {
|
|
46031
46031
|
var a = r.length, o = a, s = !i;
|
|
@@ -46051,10 +46051,10 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46051
46051
|
return !Z(e) || ns(e) ? !1 : (ou(e) ? F : Ye).test(Cs(e));
|
|
46052
46052
|
}
|
|
46053
46053
|
function Wi(e) {
|
|
46054
|
-
return lu(e) && Oi(e) ==
|
|
46054
|
+
return lu(e) && Oi(e) == oe;
|
|
46055
46055
|
}
|
|
46056
46056
|
function Gi(e) {
|
|
46057
|
-
return lu(e) && Ho(e) ==
|
|
46057
|
+
return lu(e) && Ho(e) == se;
|
|
46058
46058
|
}
|
|
46059
46059
|
function Ki(e) {
|
|
46060
46060
|
return lu(e) && cu(e.length) && !!Rt[Oi(e)];
|
|
@@ -46623,7 +46623,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46623
46623
|
function So(e) {
|
|
46624
46624
|
return function(t) {
|
|
46625
46625
|
var n = Ho(t);
|
|
46626
|
-
return n ==
|
|
46626
|
+
return n == j ? Xn(t) : n == se ? er(t) : Fn(t, e(t));
|
|
46627
46627
|
};
|
|
46628
46628
|
}
|
|
46629
46629
|
function Co(e, t, i, a, f, p, m, h) {
|
|
@@ -46693,14 +46693,14 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46693
46693
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset) return !1;
|
|
46694
46694
|
e = e.buffer, t = t.buffer;
|
|
46695
46695
|
case de: return !(e.byteLength != t.byteLength || !a(new L(e), new L(t)));
|
|
46696
|
+
case T:
|
|
46696
46697
|
case E:
|
|
46697
|
-
case
|
|
46698
|
-
case
|
|
46699
|
-
case k: return e.name == t.name && e.message == t.message;
|
|
46700
|
-
case ae:
|
|
46701
|
-
case se: return e == t + "";
|
|
46702
|
-
case M: var s = Xn;
|
|
46698
|
+
case te: return Wl(+e, +t);
|
|
46699
|
+
case O: return e.name == t.name && e.message == t.message;
|
|
46703
46700
|
case oe:
|
|
46701
|
+
case ce: return e == t + "";
|
|
46702
|
+
case j: var s = Xn;
|
|
46703
|
+
case se:
|
|
46704
46704
|
var c = r & 1;
|
|
46705
46705
|
if (s ||= $n, e.size != t.size && !c) return !1;
|
|
46706
46706
|
var l = o.get(e);
|
|
@@ -46708,7 +46708,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46708
46708
|
r |= 2, o.set(e, t);
|
|
46709
46709
|
var u = Do(s(e), s(t), r, i, a, o);
|
|
46710
46710
|
return o.delete(e), u;
|
|
46711
|
-
case
|
|
46711
|
+
case M: if (mr) return mr.call(e) == mr.call(t);
|
|
46712
46712
|
}
|
|
46713
46713
|
return !1;
|
|
46714
46714
|
}
|
|
@@ -46801,13 +46801,13 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46801
46801
|
for (var t = []; e;) gn(t, Bo(e)), e = bt(e);
|
|
46802
46802
|
return t;
|
|
46803
46803
|
} : jf, Ho = Oi;
|
|
46804
|
-
(qt && Ho(new qt(/* @__PURE__ */ new ArrayBuffer(1))) != fe || Yt && Ho(new Yt()) !=
|
|
46805
|
-
var t = Oi(e), r = t ==
|
|
46804
|
+
(qt && Ho(new qt(/* @__PURE__ */ new ArrayBuffer(1))) != fe || Yt && Ho(new Yt()) != j || Xt && Ho(Xt.resolve()) != ie || Qt && Ho(new Qt()) != se || $t && Ho(new $t()) != le) && (Ho = function(e) {
|
|
46805
|
+
var t = Oi(e), r = t == re ? e.constructor : n, i = r ? Cs(r) : "";
|
|
46806
46806
|
if (i) switch (i) {
|
|
46807
46807
|
case tr: return fe;
|
|
46808
|
-
case sr: return
|
|
46809
|
-
case cr: return
|
|
46810
|
-
case dr: return
|
|
46808
|
+
case sr: return j;
|
|
46809
|
+
case cr: return ie;
|
|
46810
|
+
case dr: return se;
|
|
46811
46811
|
case fr: return le;
|
|
46812
46812
|
}
|
|
46813
46813
|
return t;
|
|
@@ -46857,8 +46857,8 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46857
46857
|
var r = e.constructor;
|
|
46858
46858
|
switch (t) {
|
|
46859
46859
|
case de: return Ba(e);
|
|
46860
|
-
case
|
|
46861
|
-
case
|
|
46860
|
+
case T:
|
|
46861
|
+
case E: return new r(+e);
|
|
46862
46862
|
case fe: return Va(e, n);
|
|
46863
46863
|
case pe:
|
|
46864
46864
|
case me:
|
|
@@ -46869,12 +46869,12 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
46869
46869
|
case ye:
|
|
46870
46870
|
case be:
|
|
46871
46871
|
case xe: return Wa(e, n);
|
|
46872
|
-
case
|
|
46873
|
-
case
|
|
46874
|
-
case
|
|
46875
|
-
case
|
|
46876
|
-
case
|
|
46877
|
-
case
|
|
46872
|
+
case j: return new r();
|
|
46873
|
+
case te:
|
|
46874
|
+
case ce: return new r(e);
|
|
46875
|
+
case oe: return Ha(e);
|
|
46876
|
+
case se: return new r();
|
|
46877
|
+
case M: return Ua(e);
|
|
46878
46878
|
}
|
|
46879
46879
|
}
|
|
46880
46880
|
function Yo(e, t) {
|
|
@@ -47422,7 +47422,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47422
47422
|
if (e == null) return 0;
|
|
47423
47423
|
if (Yl(e)) return Su(e) ? rr(e) : e.length;
|
|
47424
47424
|
var t = Ho(e);
|
|
47425
|
-
return t ==
|
|
47425
|
+
return t == j || t == se ? e.size : Ji(e).length;
|
|
47426
47426
|
}
|
|
47427
47427
|
function gl(e, t, r) {
|
|
47428
47428
|
var i = X(e) ? yn : ba;
|
|
@@ -47631,7 +47631,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47631
47631
|
return lu(e) && Yl(e);
|
|
47632
47632
|
}
|
|
47633
47633
|
function Zl(e) {
|
|
47634
|
-
return e === !0 || e === !1 || lu(e) && Oi(e) ==
|
|
47634
|
+
return e === !0 || e === !1 || lu(e) && Oi(e) == T;
|
|
47635
47635
|
}
|
|
47636
47636
|
var Ql = kt || Mf, $l = tn ? Ln(tn) : Ri;
|
|
47637
47637
|
function eu(e) {
|
|
@@ -47641,7 +47641,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47641
47641
|
if (e == null) return !0;
|
|
47642
47642
|
if (Yl(e) && (X(e) || typeof e == "string" || typeof e.splice == "function" || Ql(e) || wu(e) || ql(e))) return !e.length;
|
|
47643
47643
|
var t = Ho(e);
|
|
47644
|
-
if (t ==
|
|
47644
|
+
if (t == j || t == se) return !e.size;
|
|
47645
47645
|
if (is(e)) return !Ji(e).length;
|
|
47646
47646
|
for (var n in e) if (ft.call(e, n)) return !1;
|
|
47647
47647
|
return !0;
|
|
@@ -47657,7 +47657,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47657
47657
|
function iu(e) {
|
|
47658
47658
|
if (!lu(e)) return !1;
|
|
47659
47659
|
var t = Oi(e);
|
|
47660
|
-
return t ==
|
|
47660
|
+
return t == O || t == D || typeof e.message == "string" && typeof e.name == "string" && !vu(e);
|
|
47661
47661
|
}
|
|
47662
47662
|
function au(e) {
|
|
47663
47663
|
return typeof e == "number" && Mt(e);
|
|
@@ -47665,7 +47665,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47665
47665
|
function ou(e) {
|
|
47666
47666
|
if (!Z(e)) return !1;
|
|
47667
47667
|
var t = Oi(e);
|
|
47668
|
-
return t ==
|
|
47668
|
+
return t == k || t == A || t == ee || t == ae;
|
|
47669
47669
|
}
|
|
47670
47670
|
function su(e) {
|
|
47671
47671
|
return typeof e == "number" && e == Q(e);
|
|
@@ -47701,10 +47701,10 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47701
47701
|
return e == null;
|
|
47702
47702
|
}
|
|
47703
47703
|
function _u(e) {
|
|
47704
|
-
return typeof e == "number" || lu(e) && Oi(e) ==
|
|
47704
|
+
return typeof e == "number" || lu(e) && Oi(e) == te;
|
|
47705
47705
|
}
|
|
47706
47706
|
function vu(e) {
|
|
47707
|
-
if (!lu(e) || Oi(e) !=
|
|
47707
|
+
if (!lu(e) || Oi(e) != re) return !1;
|
|
47708
47708
|
var t = bt(e);
|
|
47709
47709
|
if (t === null) return !0;
|
|
47710
47710
|
var n = ft.call(t, "constructor") && t.constructor;
|
|
@@ -47716,10 +47716,10 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47716
47716
|
}
|
|
47717
47717
|
var xu = an ? Ln(an) : Gi;
|
|
47718
47718
|
function Su(e) {
|
|
47719
|
-
return typeof e == "string" || !X(e) && lu(e) && Oi(e) ==
|
|
47719
|
+
return typeof e == "string" || !X(e) && lu(e) && Oi(e) == ce;
|
|
47720
47720
|
}
|
|
47721
47721
|
function Cu(e) {
|
|
47722
|
-
return typeof e == "symbol" || lu(e) && Oi(e) ==
|
|
47722
|
+
return typeof e == "symbol" || lu(e) && Oi(e) == M;
|
|
47723
47723
|
}
|
|
47724
47724
|
var wu = on ? Ln(on) : Ki;
|
|
47725
47725
|
function Tu(e) {
|
|
@@ -47739,7 +47739,7 @@ var YC = /* @__PURE__ */ n(((e, t, n) => {
|
|
|
47739
47739
|
if (Yl(e)) return Su(e) ? ir(e) : Ya(e);
|
|
47740
47740
|
if (B && e[B]) return Yn(e[B]());
|
|
47741
47741
|
var t = Ho(e);
|
|
47742
|
-
return (t ==
|
|
47742
|
+
return (t == j ? Xn : t == se ? $n : wd)(e);
|
|
47743
47743
|
}
|
|
47744
47744
|
function ju(e) {
|
|
47745
47745
|
return e ? (e = Nu(e), e === h || e === -Infinity ? (e < 0 ? -1 : 1) * _ : e === e ? e : 0) : e === 0 ? e : 0;
|
|
@@ -48812,7 +48812,7 @@ var Fw = (e) => e == null || typeof e == "object" && "value" in e && (e.value ==
|
|
|
48812
48812
|
...u.numericValue,
|
|
48813
48813
|
units: "%",
|
|
48814
48814
|
unitsPosition: "append"
|
|
48815
|
-
}, u.formatterOptions), l.formatter(l.numericValue, l.formatterOptions)].filter(Boolean).join(" · "), h = `${g} balance`, m = g === "neutral" ? null : /* @__PURE__ */ V(
|
|
48815
|
+
}, u.formatterOptions), l.formatter(l.numericValue, l.formatterOptions)].filter(Boolean).join(" · "), h = `${g} balance`, m = g === "neutral" ? null : /* @__PURE__ */ V(k, {
|
|
48816
48816
|
icon: Vw[e],
|
|
48817
48817
|
size: "sm",
|
|
48818
48818
|
className: c({
|
|
@@ -48911,7 +48911,7 @@ var $w = r(Qw), eT = (e) => {
|
|
|
48911
48911
|
if (t === "status") return /* @__PURE__ */ V(Hc, { ...e });
|
|
48912
48912
|
if (t === "balance") return /* @__PURE__ */ V(Ww, { ...e });
|
|
48913
48913
|
if (t === "raw") return /* @__PURE__ */ V(Ic, { ...e });
|
|
48914
|
-
}, tT = ({ tag: e }) => eT(e) || "Invalid tag type", nT = r(tT), rT =
|
|
48914
|
+
}, tT = ({ tag: e }) => eT(e) || "Invalid tag type", nT = r(tT), rT = te({
|
|
48915
48915
|
base: "flex select-none items-center justify-center text-f1-foreground-secondary",
|
|
48916
48916
|
variants: { size: {
|
|
48917
48917
|
small: "h-4 w-4 [&_circle]:stroke-[4]",
|
|
@@ -48938,7 +48938,7 @@ function iT({ size: e, className: t }) {
|
|
|
48938
48938
|
cy: "16",
|
|
48939
48939
|
r: "12",
|
|
48940
48940
|
className: "stroke-f1-background-secondary"
|
|
48941
|
-
}), /* @__PURE__ */ V(
|
|
48941
|
+
}), /* @__PURE__ */ V(T.circle, {
|
|
48942
48942
|
cx: "16",
|
|
48943
48943
|
cy: "16",
|
|
48944
48944
|
r: "12",
|
|
@@ -48998,7 +48998,7 @@ var aT = r(o("Spinner", iT)), oT = F(function({ children: e, href: t, target: n,
|
|
|
48998
48998
|
onClick: d,
|
|
48999
48999
|
children: [e, f ? /* @__PURE__ */ H(Ct, { children: [/* @__PURE__ */ V("span", {
|
|
49000
49000
|
className: "ml-1 inline-block align-text-bottom",
|
|
49001
|
-
children: /* @__PURE__ */ V(
|
|
49001
|
+
children: /* @__PURE__ */ V(k, {
|
|
49002
49002
|
icon: Se,
|
|
49003
49003
|
size: "sm",
|
|
49004
49004
|
"aria-hidden": !0
|
|
@@ -49038,14 +49038,14 @@ var aT = r(o("Spinner", iT)), oT = F(function({ children: e, href: t, target: n,
|
|
|
49038
49038
|
ref: t,
|
|
49039
49039
|
...h,
|
|
49040
49040
|
variant: s,
|
|
49041
|
-
children: [f === void 0 ? /* @__PURE__ */ V("span", { children: r }) : /* @__PURE__ */ V(
|
|
49041
|
+
children: [f === void 0 ? /* @__PURE__ */ V("span", { children: r }) : /* @__PURE__ */ V(E, {
|
|
49042
49042
|
lines: 1,
|
|
49043
49043
|
tag: "span",
|
|
49044
49044
|
className: "-mb-1 pb-1",
|
|
49045
49045
|
noTooltip: !!u.tooltip || !!u.disabled,
|
|
49046
49046
|
delay: 300,
|
|
49047
49047
|
children: f
|
|
49048
|
-
}), d ? /* @__PURE__ */ H(Ct, { children: [/* @__PURE__ */ V(
|
|
49048
|
+
}), d ? /* @__PURE__ */ H(Ct, { children: [/* @__PURE__ */ V(k, {
|
|
49049
49049
|
icon: Se,
|
|
49050
49050
|
size: "sm",
|
|
49051
49051
|
"aria-hidden": !0
|
|
@@ -49056,7 +49056,7 @@ var aT = r(o("Spinner", iT)), oT = F(function({ children: e, href: t, target: n,
|
|
|
49056
49056
|
});
|
|
49057
49057
|
});
|
|
49058
49058
|
cT.displayName = "F0Link";
|
|
49059
|
-
var lT = r(cT), uT = r(cT), dT =
|
|
49059
|
+
var lT = r(cT), uT = r(cT), dT = te({
|
|
49060
49060
|
base: "flex items-center gap-1 rounded-full border border-solid border-f1-border px-2 py-0.5 font-medium",
|
|
49061
49061
|
variants: { variant: {
|
|
49062
49062
|
default: "",
|
|
@@ -49069,7 +49069,7 @@ var lT = r(cT), uT = r(cT), dT = ee({
|
|
|
49069
49069
|
size: "xs"
|
|
49070
49070
|
}) : null, /* @__PURE__ */ H("div", {
|
|
49071
49071
|
className: "flex items-center gap-0.5",
|
|
49072
|
-
children: [o ? /* @__PURE__ */ V(
|
|
49072
|
+
children: [o ? /* @__PURE__ */ V(k, {
|
|
49073
49073
|
icon: o,
|
|
49074
49074
|
size: "sm"
|
|
49075
49075
|
}) : null, /* @__PURE__ */ V("span", {
|
|
@@ -49094,13 +49094,13 @@ var lT = r(cT), uT = r(cT), dT = ee({
|
|
|
49094
49094
|
tabIndex: 0,
|
|
49095
49095
|
"aria-label": "Close",
|
|
49096
49096
|
"aria-describedby": s,
|
|
49097
|
-
children: /* @__PURE__ */ V(
|
|
49098
|
-
icon:
|
|
49097
|
+
children: /* @__PURE__ */ V(k, {
|
|
49098
|
+
icon: ce,
|
|
49099
49099
|
size: "sm"
|
|
49100
49100
|
})
|
|
49101
49101
|
}) : null]
|
|
49102
49102
|
});
|
|
49103
|
-
}), pT =
|
|
49103
|
+
}), pT = te({
|
|
49104
49104
|
variants: {
|
|
49105
49105
|
size: {
|
|
49106
49106
|
sm: "h-6",
|
|
@@ -49153,7 +49153,7 @@ var lT = r(cT), uT = r(cT), dT = ee({
|
|
|
49153
49153
|
"mood-neutral": c("bg-[hsl(var(--mood-neutral)/0.1)] hover:bg-[hsl(var(--mood-neutral)/0.2)]", "border-[hsl(var(--mood-neutral)/0.6)]", "text-f1-icon-mood-neutral hover:text-f1-icon-mood-neutral"),
|
|
49154
49154
|
"mood-positive": c("bg-[hsl(var(--mood-positive)/0.1)] hover:bg-[hsl(var(--mood-positive)/0.2)]", "border-[hsl(var(--mood-positive)/0.6)]", "text-f1-icon-mood-positive hover:text-f1-icon-mood-positive"),
|
|
49155
49155
|
"mood-super-positive": c("bg-[hsl(var(--mood-super-positive)/0.1)] hover:bg-[hsl(var(--mood-super-positive)/0.2)]", "border-[hsl(var(--mood-super-positive)/0.6)]", "text-f1-icon-mood-super-positive hover:text-f1-icon-mood-super-positive")
|
|
49156
|
-
}, hT = "text-f1-icon", gT =
|
|
49156
|
+
}, hT = "text-f1-icon", gT = te({ variants: { size: {
|
|
49157
49157
|
sm: "text-xs",
|
|
49158
49158
|
md: "text-sm",
|
|
49159
49159
|
lg: "text-sm"
|
|
@@ -49175,57 +49175,57 @@ var lT = r(cT), uT = r(cT), dT = ee({
|
|
|
49175
49175
|
duration: .25,
|
|
49176
49176
|
ease: "easeOut"
|
|
49177
49177
|
}
|
|
49178
|
-
}, [_]), [
|
|
49179
|
-
selected:
|
|
49180
|
-
onSelectedChange:
|
|
49181
|
-
},
|
|
49178
|
+
}, [_]), [ee, E] = B(p), D = t !== void 0, A = {
|
|
49179
|
+
selected: D ? t : ee,
|
|
49180
|
+
onSelectedChange: D ? e : E
|
|
49181
|
+
}, j = A.selected ? S : x, te = R(() => o === "expanded" && a === "lg" ? (console.warn("F0ButtonToggle: lg size is not supported for expanded variant"), "md") : a, [a, o]), ne = typeof s == "object" ? s : s ? { description: s } : void 0, re = /* @__PURE__ */ H(xe, {
|
|
49182
49182
|
ref: g,
|
|
49183
|
-
pressed:
|
|
49184
|
-
onPressedChange:
|
|
49183
|
+
pressed: A.selected,
|
|
49184
|
+
onPressedChange: A.onSelectedChange,
|
|
49185
49185
|
disabled: r,
|
|
49186
|
-
"aria-label":
|
|
49187
|
-
title:
|
|
49188
|
-
className: c("aspect-square px-0", "flex flex-col items-center justify-center gap-2", l(), w({ variant:
|
|
49189
|
-
size:
|
|
49186
|
+
"aria-label": j,
|
|
49187
|
+
title: j,
|
|
49188
|
+
className: c("aspect-square px-0", "flex flex-col items-center justify-center gap-2", l(), w({ variant: A.selected ? "selected" : "ghost" }), h({ size: te }), pT({
|
|
49189
|
+
size: te,
|
|
49190
49190
|
variant: o,
|
|
49191
49191
|
withBorder: d,
|
|
49192
|
-
selected:
|
|
49193
|
-
}), u && (
|
|
49192
|
+
selected: A.selected
|
|
49193
|
+
}), u && (A.selected ? mT[u] : hT), f),
|
|
49194
49194
|
...m,
|
|
49195
|
-
"data-state":
|
|
49195
|
+
"data-state": A.selected ? "on" : "off",
|
|
49196
49196
|
children: [/* @__PURE__ */ V(b, {
|
|
49197
49197
|
initial: !1,
|
|
49198
49198
|
children: /* @__PURE__ */ V("div", {
|
|
49199
49199
|
className: "main relative flex flex-col items-center justify-center",
|
|
49200
|
-
children:
|
|
49200
|
+
children: A.selected ? /* @__PURE__ */ V(T.div, {
|
|
49201
49201
|
className: "absolute flex items-center justify-center",
|
|
49202
49202
|
...C,
|
|
49203
|
-
children: /* @__PURE__ */ V(
|
|
49203
|
+
children: /* @__PURE__ */ V(k, {
|
|
49204
49204
|
icon: y,
|
|
49205
|
-
size:
|
|
49205
|
+
size: te
|
|
49206
49206
|
})
|
|
49207
|
-
}, "icon-on") : /* @__PURE__ */ V(
|
|
49207
|
+
}, "icon-on") : /* @__PURE__ */ V(T.div, {
|
|
49208
49208
|
className: "absolute flex items-center justify-center",
|
|
49209
49209
|
...C,
|
|
49210
|
-
children: /* @__PURE__ */ V(
|
|
49210
|
+
children: /* @__PURE__ */ V(k, {
|
|
49211
49211
|
icon: v,
|
|
49212
|
-
size:
|
|
49212
|
+
size: te
|
|
49213
49213
|
})
|
|
49214
49214
|
}, "icon-off")
|
|
49215
49215
|
})
|
|
49216
49216
|
}), o === "expanded" ? /* @__PURE__ */ V(b, {
|
|
49217
49217
|
initial: !1,
|
|
49218
49218
|
children: /* @__PURE__ */ V("span", {
|
|
49219
|
-
className: c("max-w-full truncate", gT({ size:
|
|
49220
|
-
children:
|
|
49219
|
+
className: c("max-w-full truncate", gT({ size: te })),
|
|
49220
|
+
children: j
|
|
49221
49221
|
})
|
|
49222
49222
|
}) : null]
|
|
49223
49223
|
});
|
|
49224
|
-
return
|
|
49225
|
-
...
|
|
49224
|
+
return ne ? /* @__PURE__ */ V(O, {
|
|
49225
|
+
...ne,
|
|
49226
49226
|
openOnPointer: r,
|
|
49227
|
-
children:
|
|
49228
|
-
}) :
|
|
49227
|
+
children: re
|
|
49228
|
+
}) : re;
|
|
49229
49229
|
});
|
|
49230
49230
|
_T.displayName = "F0ButtonToggleInternal";
|
|
49231
49231
|
//#endregion
|
|
@@ -49511,17 +49511,17 @@ function lE({ point: e, scaleMax: t, formatLabel: n, formatValue: r, formatToolt
|
|
|
49511
49511
|
className: "max-w-xs",
|
|
49512
49512
|
side: "top",
|
|
49513
49513
|
sideOffset: 6,
|
|
49514
|
-
children: /* @__PURE__ */ H(
|
|
49514
|
+
children: /* @__PURE__ */ H(ie, {
|
|
49515
49515
|
display: "flex",
|
|
49516
49516
|
alignItems: "start",
|
|
49517
49517
|
gap: "md",
|
|
49518
|
-
children: [/* @__PURE__ */ V(
|
|
49518
|
+
children: [/* @__PURE__ */ V(ie, {
|
|
49519
49519
|
display: "flex",
|
|
49520
49520
|
alignItems: "center",
|
|
49521
49521
|
height: "5",
|
|
49522
49522
|
shrink: !1,
|
|
49523
49523
|
children: /* @__PURE__ */ V(cE, { shape: u })
|
|
49524
|
-
}), /* @__PURE__ */ H(
|
|
49524
|
+
}), /* @__PURE__ */ H(ie, { children: [/* @__PURE__ */ V("p", {
|
|
49525
49525
|
className: "font-semibold",
|
|
49526
49526
|
children: c
|
|
49527
49527
|
}), a ? /* @__PURE__ */ V("p", {
|
|
@@ -49644,7 +49644,7 @@ var vE = (e, t) => {
|
|
|
49644
49644
|
src: e.src
|
|
49645
49645
|
},
|
|
49646
49646
|
size: "xs"
|
|
49647
|
-
}), /* @__PURE__ */ V(
|
|
49647
|
+
}), /* @__PURE__ */ V(E, {
|
|
49648
49648
|
className: c("min-w-0 flex-1 text-f1-foreground", i && "break-words"),
|
|
49649
49649
|
tag: "span",
|
|
49650
49650
|
lines: n,
|
|
@@ -49753,7 +49753,7 @@ var vE = (e, t) => {
|
|
|
49753
49753
|
size: "xs",
|
|
49754
49754
|
flag: e.code,
|
|
49755
49755
|
"aria-label": n
|
|
49756
|
-
}), /* @__PURE__ */ V(
|
|
49756
|
+
}), /* @__PURE__ */ V(E, {
|
|
49757
49757
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
49758
49758
|
tag: "span",
|
|
49759
49759
|
children: n
|
|
@@ -49772,7 +49772,7 @@ var vE = (e, t) => {
|
|
|
49772
49772
|
let { deltaStatus: t } = e, n = NE[t];
|
|
49773
49773
|
return /* @__PURE__ */ H("div", {
|
|
49774
49774
|
className: "flex items-center gap-1 pt-0.5",
|
|
49775
|
-
children: [/* @__PURE__ */ V(
|
|
49775
|
+
children: [/* @__PURE__ */ V(k, {
|
|
49776
49776
|
icon: n,
|
|
49777
49777
|
color: t === "positive" ? "positive" : "critical"
|
|
49778
49778
|
}), /* @__PURE__ */ V("span", {
|
|
@@ -49790,7 +49790,7 @@ var vE = (e, t) => {
|
|
|
49790
49790
|
className: "text-f1-text-default text-md flex items-center gap-2 font-medium",
|
|
49791
49791
|
"data-cell-type": "file",
|
|
49792
49792
|
children: [
|
|
49793
|
-
/* @__PURE__ */ V(
|
|
49793
|
+
/* @__PURE__ */ V(N, { file: e }),
|
|
49794
49794
|
" ",
|
|
49795
49795
|
/* @__PURE__ */ V("span", { children: e.name })
|
|
49796
49796
|
]
|
|
@@ -49800,7 +49800,7 @@ var vE = (e, t) => {
|
|
|
49800
49800
|
tooltip: e.tooltip,
|
|
49801
49801
|
children: /* @__PURE__ */ H("div", {
|
|
49802
49802
|
className: "inline-flex items-center gap-2",
|
|
49803
|
-
children: [/* @__PURE__ */ V(
|
|
49803
|
+
children: [/* @__PURE__ */ V(k, {
|
|
49804
49804
|
icon: e.icon,
|
|
49805
49805
|
"aria-label": e.hideLabel ? e.label : void 0
|
|
49806
49806
|
}), e.hideLabel ? /* @__PURE__ */ V("span", {
|
|
@@ -49869,7 +49869,7 @@ var GE = (e, t) => {
|
|
|
49869
49869
|
}) : uE(WE(e), t);
|
|
49870
49870
|
}, KE = (e) => TT(e, "text")?.toString() ?? "", qE = (e, t) => {
|
|
49871
49871
|
let n = wT(e, "text"), r = KE(e);
|
|
49872
|
-
return /* @__PURE__ */ V(
|
|
49872
|
+
return /* @__PURE__ */ V(E, {
|
|
49873
49873
|
lines: 1,
|
|
49874
49874
|
tag: "span",
|
|
49875
49875
|
className: c("text-f1-foreground", n && "text-f1-foreground-secondary", t.visualization === "table" && ST.text),
|
|
@@ -49884,7 +49884,7 @@ var GE = (e, t) => {
|
|
|
49884
49884
|
children: e.label
|
|
49885
49885
|
}), YE = (e) => typeof e == "object" && e && "lines" in e ? e.lines : void 0, XE = (e) => (typeof e == "object" && !!e && "full" in e && e.full) ?? !1, ZE = (e, t) => {
|
|
49886
49886
|
let n = TT(e, "text")?.toString() || "", r = wT(e, "text"), i = XE(e), a = t.visualization === "editableTable" && t.maxWidth !== void 0, o = a ? 1 : YE(e) || 3;
|
|
49887
|
-
return /* @__PURE__ */ V(
|
|
49887
|
+
return /* @__PURE__ */ V(E, {
|
|
49888
49888
|
className: c(a ? "whitespace-nowrap text-f1-foreground" : "whitespace-pre-wrap break-words text-f1-foreground", r && "text-f1-foreground-secondary", t.visualization === "table" && ST.multiline),
|
|
49889
49889
|
lines: o,
|
|
49890
49890
|
disabled: i && !a,
|
|
@@ -49938,7 +49938,7 @@ var GE = (e, t) => {
|
|
|
49938
49938
|
lastName: e.lastName.toString()
|
|
49939
49939
|
},
|
|
49940
49940
|
size: "xs"
|
|
49941
|
-
}), /* @__PURE__ */ V(
|
|
49941
|
+
}), /* @__PURE__ */ V(E, {
|
|
49942
49942
|
className: c("min-w-0 flex-1", e.deactivated ? "text-f1-foreground/[0.61]" : "text-f1-foreground"),
|
|
49943
49943
|
tag: "span",
|
|
49944
49944
|
children: n
|
|
@@ -50396,7 +50396,7 @@ var sO = r(oO), cO = (e) => /* @__PURE__ */ V(sO, {
|
|
|
50396
50396
|
src: e.src
|
|
50397
50397
|
},
|
|
50398
50398
|
size: "xs"
|
|
50399
|
-
}), /* @__PURE__ */ V(
|
|
50399
|
+
}), /* @__PURE__ */ V(E, {
|
|
50400
50400
|
className: c("min-w-0 flex-1 text-f1-foreground", i && "break-words"),
|
|
50401
50401
|
tag: "span",
|
|
50402
50402
|
lines: n,
|
|
@@ -50585,10 +50585,10 @@ var EO = bO, DO = SO, OO = (e, t) => t && e ? "indeterminate" : e, kO = (e, t) =
|
|
|
50585
50585
|
disabled: n,
|
|
50586
50586
|
children: /* @__PURE__ */ V(b, { children: /* @__PURE__ */ V(DO, {
|
|
50587
50587
|
className: "absolute inset-0 z-[2] flex items-center justify-center text-current transition-none",
|
|
50588
|
-
children: t ? /* @__PURE__ */ V(
|
|
50588
|
+
children: t ? /* @__PURE__ */ V(k, {
|
|
50589
50589
|
icon: ge,
|
|
50590
50590
|
size: "sm"
|
|
50591
|
-
}) : /* @__PURE__ */ V(
|
|
50591
|
+
}) : /* @__PURE__ */ V(k, {
|
|
50592
50592
|
icon: _e,
|
|
50593
50593
|
size: "sm"
|
|
50594
50594
|
})
|
|
@@ -51996,7 +51996,7 @@ function cj({ mode: e, selected: t, onSelect: n, month: r, onMonthChange: i, mot
|
|
|
51996
51996
|
mode: "popLayout",
|
|
51997
51997
|
initial: !1,
|
|
51998
51998
|
custom: a,
|
|
51999
|
-
children: /* @__PURE__ */ V(
|
|
51999
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
52000
52000
|
variants: v,
|
|
52001
52001
|
custom: a,
|
|
52002
52002
|
initial: "hidden",
|
|
@@ -52027,7 +52027,7 @@ function cj({ mode: e, selected: t, onSelect: n, month: r, onMonthChange: i, mot
|
|
|
52027
52027
|
mode: "popLayout",
|
|
52028
52028
|
initial: !1,
|
|
52029
52029
|
custom: a,
|
|
52030
|
-
children: /* @__PURE__ */ V(
|
|
52030
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
52031
52031
|
variants: v,
|
|
52032
52032
|
custom: a,
|
|
52033
52033
|
initial: "hidden",
|
|
@@ -52206,7 +52206,7 @@ var gj = (e) => e < 6 ? 1 : 2, _j = (e, t) => {
|
|
|
52206
52206
|
mode: "popLayout",
|
|
52207
52207
|
initial: !1,
|
|
52208
52208
|
custom: o,
|
|
52209
|
-
children: /* @__PURE__ */ V(
|
|
52209
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
52210
52210
|
className: "flex flex-col gap-4",
|
|
52211
52211
|
custom: o,
|
|
52212
52212
|
variants: {
|
|
@@ -52926,7 +52926,7 @@ function DM({ mode: e, selected: t, onSelect: n, year: r, motionDirection: i = 1
|
|
|
52926
52926
|
mode: "popLayout",
|
|
52927
52927
|
initial: !1,
|
|
52928
52928
|
custom: i,
|
|
52929
|
-
children: /* @__PURE__ */ V(
|
|
52929
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
52930
52930
|
className: c("grid gap-y-3", l ? "grid-cols-2 gap-y-2" : "grid-cols-3"),
|
|
52931
52931
|
custom: i,
|
|
52932
52932
|
variants: {
|
|
@@ -53198,7 +53198,7 @@ function eN({ periods: e, header: t, year: n, motionDirection: r = 1, selected:
|
|
|
53198
53198
|
mode: "popLayout",
|
|
53199
53199
|
initial: !1,
|
|
53200
53200
|
custom: r,
|
|
53201
|
-
children: /* @__PURE__ */ V(
|
|
53201
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
53202
53202
|
className: c("grid max-h-72 grid-cols-2 overflow-y-auto", d ? "gap-0.5" : "gap-1"),
|
|
53203
53203
|
custom: r,
|
|
53204
53204
|
variants: {
|
|
@@ -53375,7 +53375,7 @@ var rN = (e) => {
|
|
|
53375
53375
|
mode: "popLayout",
|
|
53376
53376
|
initial: !1,
|
|
53377
53377
|
custom: i,
|
|
53378
|
-
children: /* @__PURE__ */ V(
|
|
53378
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
53379
53379
|
className: "flex flex-col gap-4",
|
|
53380
53380
|
custom: i,
|
|
53381
53381
|
variants: {
|
|
@@ -53591,7 +53591,7 @@ function xN({ selected: e, onSelect: t, month: n, onMonthChange: r, motionDirect
|
|
|
53591
53591
|
mode: "popLayout",
|
|
53592
53592
|
initial: !1,
|
|
53593
53593
|
custom: i,
|
|
53594
|
-
children: /* @__PURE__ */ V(
|
|
53594
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
53595
53595
|
variants: f,
|
|
53596
53596
|
custom: i,
|
|
53597
53597
|
initial: "hidden",
|
|
@@ -53758,7 +53758,7 @@ function AN({ mode: e, selected: t, onSelect: n, decade: r, motionDirection: i =
|
|
|
53758
53758
|
mode: "popLayout",
|
|
53759
53759
|
initial: !1,
|
|
53760
53760
|
custom: i,
|
|
53761
|
-
children: /* @__PURE__ */ V(
|
|
53761
|
+
children: /* @__PURE__ */ V(T.div, {
|
|
53762
53762
|
className: "grid grid-cols-4 gap-y-3",
|
|
53763
53763
|
custom: i,
|
|
53764
53764
|
variants: {
|
|
@@ -53910,18 +53910,18 @@ function BN(e) {
|
|
|
53910
53910
|
//#region src/elements/F0InputField/AppendTag.tsx
|
|
53911
53911
|
var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
53912
53912
|
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"),
|
|
53913
|
-
children: /* @__PURE__ */ V(
|
|
53913
|
+
children: /* @__PURE__ */ V(E, {
|
|
53914
53914
|
tag: "span",
|
|
53915
53915
|
children: e
|
|
53916
53916
|
})
|
|
53917
|
-
}), HN = ["sm", "md"], UN =
|
|
53917
|
+
}), HN = ["sm", "md"], UN = te({
|
|
53918
53918
|
base: "",
|
|
53919
53919
|
variants: { size: {
|
|
53920
53920
|
sm: "py-1",
|
|
53921
53921
|
md: "py-2"
|
|
53922
53922
|
} },
|
|
53923
53923
|
defaultVariants: { size: "md" }
|
|
53924
|
-
}), WN =
|
|
53924
|
+
}), WN = te({
|
|
53925
53925
|
base: "",
|
|
53926
53926
|
variants: {
|
|
53927
53927
|
canGrow: {
|
|
@@ -54006,7 +54006,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54006
54006
|
return r.length > 0 && /* @__PURE__ */ H("div", {
|
|
54007
54007
|
id: t,
|
|
54008
54008
|
className: c("flex", n && "items-start", "gap-1"),
|
|
54009
|
-
children: [i ? /* @__PURE__ */ V(
|
|
54009
|
+
children: [i ? /* @__PURE__ */ V(k, {
|
|
54010
54010
|
icon: i,
|
|
54011
54011
|
color: KN[e.type].iconColor || "currentColor"
|
|
54012
54012
|
}) : null, /* @__PURE__ */ V("ul", {
|
|
@@ -54024,11 +54024,11 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54024
54024
|
"aria-label": e,
|
|
54025
54025
|
"aria-disabled": o,
|
|
54026
54026
|
children: [
|
|
54027
|
-
a ? /* @__PURE__ */ V(
|
|
54027
|
+
a ? /* @__PURE__ */ V(k, {
|
|
54028
54028
|
icon: a,
|
|
54029
54029
|
size: "sm"
|
|
54030
54030
|
}) : null,
|
|
54031
|
-
/* @__PURE__ */ V(
|
|
54031
|
+
/* @__PURE__ */ V(E, {
|
|
54032
54032
|
className: "shrink-1 min-w-0",
|
|
54033
54033
|
children: e
|
|
54034
54034
|
}),
|
|
@@ -54038,13 +54038,13 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54038
54038
|
children: "*"
|
|
54039
54039
|
}) : null
|
|
54040
54040
|
]
|
|
54041
|
-
}), YN = "", XN = (e) => e === YN || e ? e.toString().length === 0 : !0, ZN = (e) => e ? e.toString().length : 0, QN =
|
|
54041
|
+
}), YN = "", XN = (e) => e === YN || e ? e.toString().length === 0 : !0, ZN = (e) => e ? e.toString().length : 0, QN = te({
|
|
54042
54042
|
base: "",
|
|
54043
54043
|
variants: { size: {
|
|
54044
54044
|
sm: "gap-1",
|
|
54045
54045
|
md: "gap-2"
|
|
54046
54046
|
} }
|
|
54047
|
-
}), $N =
|
|
54047
|
+
}), $N = te({
|
|
54048
54048
|
base: "focus-within:ring-2 focus-within:ring-offset-0 focus-within:transition-none active:transition-none",
|
|
54049
54049
|
variants: {
|
|
54050
54050
|
status: {
|
|
@@ -54080,8 +54080,8 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54080
54080
|
class: "hover:border-f1-border-critical-bold"
|
|
54081
54081
|
}
|
|
54082
54082
|
]
|
|
54083
|
-
}), eP = F(({ 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: v, placeholder: y,
|
|
54084
|
-
let
|
|
54083
|
+
}), eP = F(({ 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: v, placeholder: y, textAlign: x = "start", clearable: S = !1, isEmpty: C = XN, emptyValue: w = YN, lengthProvider: ee = ZN, maxLength: E, hideMaxLength: D = !1, append: O, hidePlaceholder: A = !1, valueSlot: j, clearKeepsText: te = !1, canClear: ne, onClickPlaceholder: re, onClickChildren: ie, onClickContent: ae, name: oe, role: se, appendTag: M, avatar: N, "aria-controls": le, "aria-expanded": ue, "aria-activedescendant": fe, "aria-autocomplete": pe, "aria-describedby": me, buttonToggle: he, transparent: ge, variant: _e = "field", editing: ve = !1, inlineText: ye, onBlurWithin: be, ...xe }, Se) => {
|
|
54084
|
+
let Ce = _e === "inline", we = p ?? (Ce ? "md" : "sm"), Ee = yt(), De = xe.id ?? Ee, Oe = t || n, [ke, Ae] = B(g);
|
|
54085
54085
|
f && (d = {
|
|
54086
54086
|
type: "default",
|
|
54087
54087
|
message: f
|
|
@@ -54089,45 +54089,45 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54089
54089
|
type: "error",
|
|
54090
54090
|
message: typeof u == "string" ? u : void 0
|
|
54091
54091
|
}), r || console.error("F0InputField: label is required for accessibility reasons. If you don't want to show a label, set hideLabel to true."), L(() => {
|
|
54092
|
-
|
|
54092
|
+
Ae(E && g && ee(g) > E ? g?.substring(0, E) : g);
|
|
54093
54093
|
}, [
|
|
54094
54094
|
g,
|
|
54095
|
-
|
|
54096
|
-
|
|
54095
|
+
ee,
|
|
54096
|
+
E
|
|
54097
54097
|
]);
|
|
54098
|
-
let
|
|
54099
|
-
let t = (typeof e == "string" ? e : e.target.value) ??
|
|
54100
|
-
if (
|
|
54101
|
-
if (typeof t == "string") t = t.substring(0,
|
|
54098
|
+
let je = (e) => {
|
|
54099
|
+
let t = (typeof e == "string" ? e : e.target.value) ?? w;
|
|
54100
|
+
if (E && ee(t) > E) {
|
|
54101
|
+
if (typeof t == "string") t = t.substring(0, E);
|
|
54102
54102
|
else return;
|
|
54103
54103
|
}
|
|
54104
|
-
|
|
54105
|
-
},
|
|
54106
|
-
|
|
54107
|
-
},
|
|
54108
|
-
t ||
|
|
54109
|
-
}, Ne = () => {
|
|
54110
|
-
t || ne?.();
|
|
54104
|
+
Ae(t), xe.onChange?.(t);
|
|
54105
|
+
}, Me = () => {
|
|
54106
|
+
te || je(w), xe.onClear?.(), Ce && Be.current?.focus();
|
|
54107
|
+
}, Ne = (e) => {
|
|
54108
|
+
t || ae?.(e);
|
|
54111
54109
|
}, Pe = () => {
|
|
54112
|
-
t ||
|
|
54113
|
-
},
|
|
54114
|
-
|
|
54115
|
-
},
|
|
54116
|
-
|
|
54117
|
-
|
|
54118
|
-
|
|
54110
|
+
t || ie?.();
|
|
54111
|
+
}, Fe = () => {
|
|
54112
|
+
t || re?.();
|
|
54113
|
+
}, [Ie, Le] = B(!1), Re = (e) => {
|
|
54114
|
+
e.animationName === "autofill" && Le(!0);
|
|
54115
|
+
}, ze = z(null), Be = z(null), Ve = Te(xe.inputRef, Be);
|
|
54116
|
+
L(() => (Ie && !ze.current && (ze.current = setInterval(() => {
|
|
54117
|
+
let e = Be.current;
|
|
54118
|
+
e && (e.matches(":-webkit-autofill") || e.matches(":autofill") || (Le(!1), ze.current &&= (clearInterval(ze.current), null)));
|
|
54119
54119
|
}, 100)), () => {
|
|
54120
|
-
|
|
54121
|
-
}), [
|
|
54122
|
-
let
|
|
54123
|
-
return
|
|
54120
|
+
ze.current &&= (clearInterval(ze.current), null);
|
|
54121
|
+
}), [Ie, Ve]);
|
|
54122
|
+
let He = d?.message ? `${De}-messages` : void 0, Ue = [me ?? e.props["aria-describedby"], He].filter(Boolean).join(" ") || void 0, We = O || M || he, Ge = ne ?? !C(ke), Ke = j != null && XN(ke) && !Ie;
|
|
54123
|
+
return Ce && !ve ? /* @__PURE__ */ H("div", {
|
|
54124
54124
|
className: c("flex h-full w-full flex-col gap-2", o),
|
|
54125
|
-
ref:
|
|
54125
|
+
ref: Se,
|
|
54126
54126
|
children: [
|
|
54127
54127
|
!a && r ? /* @__PURE__ */ V(JN, {
|
|
54128
54128
|
label: r,
|
|
54129
54129
|
required: s,
|
|
54130
|
-
htmlFor:
|
|
54130
|
+
htmlFor: De,
|
|
54131
54131
|
icon: i,
|
|
54132
54132
|
className: "min-w-0 flex-1",
|
|
54133
54133
|
disabled: t
|
|
@@ -54135,44 +54135,44 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54135
54135
|
/* @__PURE__ */ V(GN, {
|
|
54136
54136
|
label: r,
|
|
54137
54137
|
hideLabel: a,
|
|
54138
|
-
text:
|
|
54138
|
+
text: ke == null || ke === "" ? "" : ye ?? ke,
|
|
54139
54139
|
placeholder: y,
|
|
54140
|
-
size:
|
|
54140
|
+
size: we
|
|
54141
54141
|
}),
|
|
54142
54142
|
/* @__PURE__ */ V(qN, {
|
|
54143
54143
|
status: d,
|
|
54144
|
-
id:
|
|
54144
|
+
id: He
|
|
54145
54145
|
})
|
|
54146
54146
|
]
|
|
54147
54147
|
}) : /* @__PURE__ */ H("div", {
|
|
54148
|
-
className: c("flex flex-col gap-2", "pointer-events-none", t && "cursor-not-allowed",
|
|
54149
|
-
ref:
|
|
54150
|
-
onBlur:
|
|
54148
|
+
className: c("flex flex-col gap-2", "pointer-events-none", t && "cursor-not-allowed", Ce && "h-full w-full", ge && "bg-transparent h-full w-full", o),
|
|
54149
|
+
ref: Se,
|
|
54150
|
+
onBlur: be,
|
|
54151
54151
|
children: [
|
|
54152
|
-
!a && r ||
|
|
54153
|
-
className: c("flex max-w-full items-center", QN({ size:
|
|
54152
|
+
!a && r || E && !D ? /* @__PURE__ */ V("div", {
|
|
54153
|
+
className: c("flex max-w-full items-center", QN({ size: we })),
|
|
54154
54154
|
children: /* @__PURE__ */ H("div", {
|
|
54155
54155
|
className: c("flex min-w-0 flex-1 flex-row gap-4"),
|
|
54156
54156
|
"data-testid": "input-field-top",
|
|
54157
54157
|
children: [!a && r ? /* @__PURE__ */ V(JN, {
|
|
54158
54158
|
label: r,
|
|
54159
54159
|
required: s,
|
|
54160
|
-
htmlFor:
|
|
54160
|
+
htmlFor: De,
|
|
54161
54161
|
icon: i,
|
|
54162
54162
|
className: "min-w-0 flex-1",
|
|
54163
54163
|
disabled: t
|
|
54164
|
-
}) : null,
|
|
54164
|
+
}) : null, E && !D && !Oe ? /* @__PURE__ */ H("div", {
|
|
54165
54165
|
className: "text-right text-f1-foreground-secondary",
|
|
54166
54166
|
children: [
|
|
54167
|
-
|
|
54167
|
+
ee(ke),
|
|
54168
54168
|
"/",
|
|
54169
|
-
|
|
54169
|
+
E
|
|
54170
54170
|
]
|
|
54171
54171
|
}) : null]
|
|
54172
54172
|
})
|
|
54173
54173
|
}) : null,
|
|
54174
54174
|
/* @__PURE__ */ V("div", {
|
|
54175
|
-
className: c("relative transition-all",
|
|
54175
|
+
className: c("relative transition-all", Ce ? "h-full" : "h-fit", !Oe && !t && "hover:border-f1-border-hover", !ge && [
|
|
54176
54176
|
"border-[1px] border-solid border-f1-border bg-f1-background",
|
|
54177
54177
|
"group focus-within:border-f1-border-hover focus-within:ring-1 focus-within:ring-f1-border-hover",
|
|
54178
54178
|
"focus-within:outline-none focus-within:ring-1 focus-within:ring-offset-1",
|
|
@@ -54181,20 +54181,20 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54181
54181
|
disabled: t || n
|
|
54182
54182
|
}),
|
|
54183
54183
|
WN({
|
|
54184
|
-
size:
|
|
54185
|
-
canGrow: h ||
|
|
54184
|
+
size: we,
|
|
54185
|
+
canGrow: h || Ce
|
|
54186
54186
|
})
|
|
54187
|
-
], "active-within:border-f1-border active-within:ring-1 active-within:ring-f1-border-hover", n && "border-f1-border-secondary bg-f1-background-secondary", t && "cursor-not-allowed bg-f1-background-tertiary",
|
|
54187
|
+
], "active-within:border-f1-border active-within:ring-1 active-within:ring-f1-border-hover", n && "border-f1-border-secondary bg-f1-background-secondary", t && "cursor-not-allowed bg-f1-background-tertiary", ge && "h-full w-full "),
|
|
54188
54188
|
"data-testid": "input-field-wrapper",
|
|
54189
54189
|
children: /* @__PURE__ */ H("div", {
|
|
54190
54190
|
className: "pointer-events-auto relative flex h-full w-full min-w-0 flex-1",
|
|
54191
|
-
onClick:
|
|
54191
|
+
onClick: Ne,
|
|
54192
54192
|
children: [
|
|
54193
54193
|
m || N ? /* @__PURE__ */ H("div", {
|
|
54194
54194
|
"data-slot": "icon",
|
|
54195
|
-
className: c("pointer-events-none absolute left-2 top-[5px] my-auto h-5 w-5 shrink-0",
|
|
54196
|
-
children: [m ? /* @__PURE__ */ V(
|
|
54197
|
-
onClick:
|
|
54195
|
+
className: c("pointer-events-none absolute left-2 top-[5px] my-auto h-5 w-5 shrink-0", we === "md" && "left-3 top-[9px]"),
|
|
54196
|
+
children: [m ? /* @__PURE__ */ V(k, {
|
|
54197
|
+
onClick: Ne,
|
|
54198
54198
|
icon: m,
|
|
54199
54199
|
color: "default"
|
|
54200
54200
|
}) : null, N ? /* @__PURE__ */ V(de, {
|
|
@@ -54202,42 +54202,42 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54202
54202
|
size: "xs"
|
|
54203
54203
|
}) : null]
|
|
54204
54204
|
}) : null,
|
|
54205
|
-
|
|
54205
|
+
Ke ? /* @__PURE__ */ V("div", {
|
|
54206
54206
|
"data-slot": "value",
|
|
54207
|
-
className: c("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (m || N) && "pl-8", (m || N) &&
|
|
54207
|
+
className: c("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", UN({ size: we })),
|
|
54208
54208
|
children: j
|
|
54209
54209
|
}) : null,
|
|
54210
54210
|
/* @__PURE__ */ V("div", {
|
|
54211
|
-
onClick:
|
|
54211
|
+
onClick: Pe,
|
|
54212
54212
|
className: "w-full min-w-0 flex-1",
|
|
54213
54213
|
children: gt(e, {
|
|
54214
|
-
onChange:
|
|
54215
|
-
onBlur:
|
|
54216
|
-
onFocus:
|
|
54217
|
-
onAnimationStart:
|
|
54218
|
-
disabled:
|
|
54214
|
+
onChange: je,
|
|
54215
|
+
onBlur: xe.onBlur,
|
|
54216
|
+
onFocus: xe.onFocus,
|
|
54217
|
+
onAnimationStart: Re,
|
|
54218
|
+
disabled: Oe,
|
|
54219
54219
|
readOnly: n,
|
|
54220
|
-
role:
|
|
54221
|
-
ref:
|
|
54222
|
-
"aria-controls":
|
|
54223
|
-
"aria-expanded":
|
|
54224
|
-
"aria-activedescendant":
|
|
54225
|
-
"aria-autocomplete":
|
|
54226
|
-
...
|
|
54220
|
+
role: se,
|
|
54221
|
+
ref: Ve,
|
|
54222
|
+
"aria-controls": le,
|
|
54223
|
+
"aria-expanded": se === "combobox" ? ue : void 0,
|
|
54224
|
+
"aria-activedescendant": fe,
|
|
54225
|
+
"aria-autocomplete": pe,
|
|
54226
|
+
...Ue !== void 0 && { "aria-describedby": Ue },
|
|
54227
54227
|
...d?.type === "error" && { "aria-invalid": !0 },
|
|
54228
|
-
id:
|
|
54229
|
-
value:
|
|
54228
|
+
id: De,
|
|
54229
|
+
value: ke ?? "",
|
|
54230
54230
|
"aria-label": r || y || "no-label",
|
|
54231
54231
|
"aria-busy": _,
|
|
54232
|
-
"aria-disabled":
|
|
54233
|
-
name:
|
|
54234
|
-
className: c("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (m || N) && "pl-8", (m || N) &&
|
|
54232
|
+
"aria-disabled": Oe,
|
|
54233
|
+
name: oe,
|
|
54234
|
+
className: c("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", Ke && "pl-0", x === "center" && "text-center", t && "cursor-not-allowed", e.props.className, UN({ size: we }))
|
|
54235
54235
|
})
|
|
54236
54236
|
}),
|
|
54237
54237
|
/* @__PURE__ */ V("div", {
|
|
54238
54238
|
"data-slot": "placeholder",
|
|
54239
|
-
className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1
|
|
54240
|
-
onClick:
|
|
54239
|
+
className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", x === "center" ? "justify-center" : "justify-start", !h && "bottom-0", h && "items-start", (m || N) && "pl-8", (m || N) && we === "md" && "pl-9", UN({ size: we }), y && !A && !Ke && C(ke) && !Ie ? "opacity-100" : "opacity-0"),
|
|
54240
|
+
onClick: Fe,
|
|
54241
54241
|
"aria-hidden": "true",
|
|
54242
54242
|
title: y,
|
|
54243
54243
|
children: /* @__PURE__ */ V("span", {
|
|
@@ -54245,12 +54245,12 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54245
54245
|
children: y
|
|
54246
54246
|
})
|
|
54247
54247
|
}),
|
|
54248
|
-
|
|
54249
|
-
className: c("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]",
|
|
54248
|
+
S || We || _ ? /* @__PURE__ */ H("div", {
|
|
54249
|
+
className: c("flex h-fit min-w-6 items-center gap-1.5 self-center pr-[3px]", we === "md" && "pr-[7px]", "relative"),
|
|
54250
54250
|
children: [
|
|
54251
|
-
|
|
54252
|
-
initial:
|
|
54253
|
-
children:
|
|
54251
|
+
S && !Oe ? /* @__PURE__ */ V(b, {
|
|
54252
|
+
initial: Ge,
|
|
54253
|
+
children: Ge ? /* @__PURE__ */ V(T.button, {
|
|
54254
54254
|
initial: { opacity: 0 },
|
|
54255
54255
|
animate: { opacity: 1 },
|
|
54256
54256
|
exit: { opacity: 0 },
|
|
@@ -54264,33 +54264,33 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54264
54264
|
e.preventDefault();
|
|
54265
54265
|
},
|
|
54266
54266
|
onClick: (e) => {
|
|
54267
|
-
e.stopPropagation(),
|
|
54267
|
+
e.stopPropagation(), Me();
|
|
54268
54268
|
},
|
|
54269
|
-
children: /* @__PURE__ */ V(
|
|
54270
|
-
icon:
|
|
54269
|
+
children: /* @__PURE__ */ V(k, {
|
|
54270
|
+
icon: ce,
|
|
54271
54271
|
color: "default",
|
|
54272
54272
|
size: "md"
|
|
54273
54273
|
})
|
|
54274
54274
|
}) : null
|
|
54275
54275
|
}) : null,
|
|
54276
|
-
|
|
54276
|
+
We ? /* @__PURE__ */ H("div", {
|
|
54277
54277
|
className: "flex min-h-6 min-w-6 items-center justify-center self-center",
|
|
54278
54278
|
children: [
|
|
54279
54279
|
O,
|
|
54280
|
-
|
|
54281
|
-
|
|
54282
|
-
label:
|
|
54283
|
-
icon:
|
|
54284
|
-
selected:
|
|
54285
|
-
disabled:
|
|
54286
|
-
onSelectedChange:
|
|
54280
|
+
M ? /* @__PURE__ */ V(VN, { text: M }) : null,
|
|
54281
|
+
he ? /* @__PURE__ */ V(yT, {
|
|
54282
|
+
label: he.label,
|
|
54283
|
+
icon: he.icon,
|
|
54284
|
+
selected: he.selected,
|
|
54285
|
+
disabled: he.disabled,
|
|
54286
|
+
onSelectedChange: he.onChange,
|
|
54287
54287
|
size: "sm"
|
|
54288
54288
|
}) : null
|
|
54289
54289
|
]
|
|
54290
54290
|
}) : null,
|
|
54291
54291
|
/* @__PURE__ */ V(b, { children: _ ? /* @__PURE__ */ V("div", {
|
|
54292
|
-
className: c("pointer-events-none flex h-6 w-6 items-center justify-center", v?.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%",
|
|
54293
|
-
style: { right: typeof v?.offset == "number" ? v?.offset + (
|
|
54292
|
+
className: c("pointer-events-none flex h-6 w-6 items-center justify-center", v?.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%", we === "md" && "right-3"), UN({ size: we })),
|
|
54293
|
+
style: { right: typeof v?.offset == "number" ? v?.offset + (we === "md" ? 6 : 0) : void 0 },
|
|
54294
54294
|
children: /* @__PURE__ */ V(aT, {
|
|
54295
54295
|
size: "small",
|
|
54296
54296
|
className: "mt-[1px]"
|
|
@@ -54303,7 +54303,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54303
54303
|
}),
|
|
54304
54304
|
/* @__PURE__ */ V(qN, {
|
|
54305
54305
|
status: d,
|
|
54306
|
-
id:
|
|
54306
|
+
id: He
|
|
54307
54307
|
})
|
|
54308
54308
|
]
|
|
54309
54309
|
});
|
|
@@ -54381,18 +54381,18 @@ function sP({ defaultFilters: e = {}, currentFilters: t, defaultGrouping: n, cur
|
|
|
54381
54381
|
v.sync,
|
|
54382
54382
|
S
|
|
54383
54383
|
]);
|
|
54384
|
-
let C = R(() => i, d), [w,
|
|
54384
|
+
let C = R(() => i, d), [w, ee] = B(!1), T = R(() => c, d), E = R(() => l?.mandatory ? {
|
|
54385
54385
|
field: Object.keys(l.groupBy)[0],
|
|
54386
54386
|
order: "asc"
|
|
54387
|
-
} : void 0, [JSON.stringify(l)]), [
|
|
54387
|
+
} : void 0, [JSON.stringify(l)]), [D, O] = B(r ?? n ?? E);
|
|
54388
54388
|
return L(() => {
|
|
54389
|
-
l?.mandatory && !
|
|
54389
|
+
l?.mandatory && !D?.field && O(r ?? n ?? E);
|
|
54390
54390
|
}, [
|
|
54391
54391
|
l?.mandatory,
|
|
54392
|
-
|
|
54393
|
-
|
|
54392
|
+
D?.field,
|
|
54393
|
+
E
|
|
54394
54394
|
]), jo(() => {
|
|
54395
|
-
|
|
54395
|
+
O(r);
|
|
54396
54396
|
}, [r]), {
|
|
54397
54397
|
...u,
|
|
54398
54398
|
filters: C,
|
|
@@ -54405,10 +54405,10 @@ function sP({ defaultFilters: e = {}, currentFilters: t, defaultGrouping: n, cur
|
|
|
54405
54405
|
setCurrentSearch: b,
|
|
54406
54406
|
debouncedCurrentSearch: x,
|
|
54407
54407
|
isLoading: w,
|
|
54408
|
-
setIsLoading:
|
|
54409
|
-
dataAdapter:
|
|
54410
|
-
setCurrentGrouping:
|
|
54411
|
-
currentGrouping:
|
|
54408
|
+
setIsLoading: ee,
|
|
54409
|
+
dataAdapter: T,
|
|
54410
|
+
setCurrentGrouping: O,
|
|
54411
|
+
currentGrouping: D,
|
|
54412
54412
|
grouping: l
|
|
54413
54413
|
};
|
|
54414
54414
|
}
|
|
@@ -54462,7 +54462,7 @@ var cP = (e) => e.flatMap((e) => [e, ...cP(e.subGroups ?? [])]), lP = (e, t) =>
|
|
|
54462
54462
|
//#endregion
|
|
54463
54463
|
//#region src/blocks/datasource/useSelectable/useSelectable.ts
|
|
54464
54464
|
function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi", selectedState: i, onSelectItems: a, disableSelectAll: o, isSearchActive: s = !1, allPagesSelection: c, navigationFilters: l, preserveSelectionOnDatasetChange: u = !1, getRenderedSelectableEntries: d, getRowsBelow: f, renderedSelectableCount: p = 0 }) {
|
|
54465
|
-
let m = e.type === "grouped", h = r === "multi", g = n.selectable, _ = I((e) => n.selectionDisabled?.(e) === !0, [n]), v = o ?? n.disableSelectAll ?? !1, y = !(c ?? n.allPagesSelection ?? !1), [b, x] = B(pP(i)), [S, C] = B(/* @__PURE__ */ new Map()), [w,
|
|
54465
|
+
let m = e.type === "grouped", h = r === "multi", g = n.selectable, _ = I((e) => n.selectionDisabled?.(e) === !0, [n]), v = o ?? n.disableSelectAll ?? !1, y = !(c ?? n.allPagesSelection ?? !1), [b, x] = B(pP(i)), [S, C] = B(/* @__PURE__ */ new Map()), [w, ee] = B(!1), [T, E] = B(null), D = z(!1), O = z(""), k = z(!1), A = z(!0), j = z(n.currentFilters), te = z(n.currentSortings), ne = n.debouncedCurrentSearch, re = z(ne), ie = z(l), ae = z(""), oe = z(""), se = z(!1), ce = z(!1), M = z(void 0), N = R(() => {
|
|
54466
54466
|
if (y) return e.records?.length || 0;
|
|
54467
54467
|
let n = t ? ue(t).records ?? 0 : e.records?.length ?? 0;
|
|
54468
54468
|
return Math.max(n, p);
|
|
@@ -54475,13 +54475,13 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54475
54475
|
let e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Map();
|
|
54476
54476
|
for (let [n, r] of b.items?.entries() || []) r.checked ? e.set(n, r.item) : t.set(n, r.item);
|
|
54477
54477
|
return [e, t];
|
|
54478
|
-
}, [b.items]), me = de.size, he = pe.size, ge = R(() => me ===
|
|
54478
|
+
}, [b.items]), me = de.size, he = pe.size, ge = R(() => me === N && N > 0, [N, me]), _e = R(() => v ? !1 : s ? w && me > 0 : (w || ge) && me > 0, [
|
|
54479
54479
|
v,
|
|
54480
54480
|
w,
|
|
54481
54481
|
ge,
|
|
54482
54482
|
me,
|
|
54483
54483
|
s
|
|
54484
|
-
]), ve = R(() => v || s && !
|
|
54484
|
+
]), ve = R(() => v || s && !D.current || !w ? !1 : he === 0 || "indeterminate", [
|
|
54485
54485
|
v,
|
|
54486
54486
|
w,
|
|
54487
54487
|
he,
|
|
@@ -54510,8 +54510,8 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54510
54510
|
e,
|
|
54511
54511
|
b.items,
|
|
54512
54512
|
g
|
|
54513
|
-
]), Se = R(() => w &&
|
|
54514
|
-
|
|
54513
|
+
]), Se = R(() => w && T !== null ? Math.max(0, Math.max(T, p) - he) : me, [
|
|
54514
|
+
T,
|
|
54515
54515
|
he,
|
|
54516
54516
|
me,
|
|
54517
54517
|
w,
|
|
@@ -54540,7 +54540,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54540
54540
|
groupsStatus: Te,
|
|
54541
54541
|
filters: n.currentFilters || {},
|
|
54542
54542
|
selectedCount: Se,
|
|
54543
|
-
totalKnownItemsCount:
|
|
54543
|
+
totalKnownItemsCount: N
|
|
54544
54544
|
}), [
|
|
54545
54545
|
ve,
|
|
54546
54546
|
Ce,
|
|
@@ -54550,7 +54550,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54550
54550
|
Te,
|
|
54551
54551
|
n.currentFilters,
|
|
54552
54552
|
Se,
|
|
54553
|
-
|
|
54553
|
+
N
|
|
54554
54554
|
]), De = {
|
|
54555
54555
|
checked: w || ye,
|
|
54556
54556
|
indeterminate: ye,
|
|
@@ -54697,7 +54697,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54697
54697
|
]), Re = I((t) => {
|
|
54698
54698
|
if (!h) return;
|
|
54699
54699
|
if (!t && w) {
|
|
54700
|
-
|
|
54700
|
+
ee(!1), D.current = !1, E(null), C(/* @__PURE__ */ new Map()), se.current = !1, x(() => ({
|
|
54701
54701
|
allSelected: !1,
|
|
54702
54702
|
items: /* @__PURE__ */ new Map(),
|
|
54703
54703
|
groups: /* @__PURE__ */ new Map()
|
|
@@ -54705,14 +54705,14 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54705
54705
|
return;
|
|
54706
54706
|
}
|
|
54707
54707
|
let n = m && e.type === "grouped" ? [] : Ie(), r = n.length || e.records?.length || 0;
|
|
54708
|
-
if (t &&
|
|
54708
|
+
if (t && E((e) => e === null ? r : e), m && e.type === "grouped") {
|
|
54709
54709
|
let n = e.groups.map((e) => e.key);
|
|
54710
54710
|
n.length > 0 && Ne(n, t);
|
|
54711
54711
|
} else {
|
|
54712
54712
|
let e = n.map(([e]) => e), r = n.map(([, e]) => e);
|
|
54713
54713
|
e.length > 0 && Me(e, t, !1, r);
|
|
54714
54714
|
}
|
|
54715
|
-
t || (
|
|
54715
|
+
t || (ee(!1), D.current = !1, E(null));
|
|
54716
54716
|
}, [
|
|
54717
54717
|
h,
|
|
54718
54718
|
w,
|
|
@@ -54723,7 +54723,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54723
54723
|
Me
|
|
54724
54724
|
]), ze = I((t) => {
|
|
54725
54725
|
if (h) {
|
|
54726
|
-
if (
|
|
54726
|
+
if (ee(t), D.current = t, E(t ? N : null), m && e.type === "grouped") {
|
|
54727
54727
|
let n = e.groups.map((e) => e.key);
|
|
54728
54728
|
n.length > 0 && Ne(n, t);
|
|
54729
54729
|
} else if (t) {
|
|
@@ -54759,14 +54759,14 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54759
54759
|
}
|
|
54760
54760
|
}, [
|
|
54761
54761
|
h,
|
|
54762
|
-
|
|
54762
|
+
N,
|
|
54763
54763
|
m,
|
|
54764
54764
|
e,
|
|
54765
54765
|
Ie,
|
|
54766
54766
|
Ne,
|
|
54767
54767
|
Me
|
|
54768
54768
|
]), Be = I(() => {
|
|
54769
|
-
|
|
54769
|
+
ee(!1), D.current = !1, E(null), C(/* @__PURE__ */ new Map()), se.current = !1, x(() => ({
|
|
54770
54770
|
allSelected: !1,
|
|
54771
54771
|
items: /* @__PURE__ */ new Map(),
|
|
54772
54772
|
groups: /* @__PURE__ */ new Map()
|
|
@@ -54779,22 +54779,22 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54779
54779
|
}));
|
|
54780
54780
|
}, [ve]), L(() => {
|
|
54781
54781
|
let e = Ae(i);
|
|
54782
|
-
|
|
54782
|
+
k.current ? e !== O.current && (O.current = e, je(i)) : (k.current = !0, O.current = e);
|
|
54783
54783
|
}, [
|
|
54784
54784
|
i,
|
|
54785
54785
|
Ae,
|
|
54786
54786
|
je
|
|
54787
54787
|
]), L(() => {
|
|
54788
|
-
if (
|
|
54789
|
-
|
|
54788
|
+
if (A.current) {
|
|
54789
|
+
A.current = !1, j.current = n.currentFilters, te.current = n.currentSortings, re.current = ne, ie.current = l;
|
|
54790
54790
|
return;
|
|
54791
54791
|
}
|
|
54792
|
-
let e = JSON.stringify(n.currentFilters) !== JSON.stringify(
|
|
54793
|
-
(e || t || r || i) && (!v && (!u || w) && (
|
|
54792
|
+
let e = JSON.stringify(n.currentFilters) !== JSON.stringify(j.current), t = JSON.stringify(n.currentSortings) !== JSON.stringify(te.current), r = ne !== re.current, i = JSON.stringify(l) !== JSON.stringify(ie.current);
|
|
54793
|
+
(e || t || r || i) && (!v && (!u || w) && (ce.current = !0, Be()), j.current = n.currentFilters, te.current = n.currentSortings, re.current = ne, ie.current = l);
|
|
54794
54794
|
}, [
|
|
54795
54795
|
n.currentFilters,
|
|
54796
54796
|
n.currentSortings,
|
|
54797
|
-
|
|
54797
|
+
ne,
|
|
54798
54798
|
l,
|
|
54799
54799
|
Be,
|
|
54800
54800
|
v,
|
|
@@ -54803,11 +54803,11 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54803
54803
|
]), L(() => {
|
|
54804
54804
|
if (!y) return;
|
|
54805
54805
|
if (t?.type === "infinite-scroll") {
|
|
54806
|
-
|
|
54806
|
+
M.current = le;
|
|
54807
54807
|
return;
|
|
54808
54808
|
}
|
|
54809
|
-
let e =
|
|
54810
|
-
e === void 0 || le !== e && (w || Be()),
|
|
54809
|
+
let e = M.current;
|
|
54810
|
+
e === void 0 || le !== e && (w || Be()), M.current = le;
|
|
54811
54811
|
}, [
|
|
54812
54812
|
le,
|
|
54813
54813
|
w,
|
|
@@ -54815,7 +54815,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54815
54815
|
y,
|
|
54816
54816
|
t?.type
|
|
54817
54817
|
]), L(() => {
|
|
54818
|
-
|
|
54818
|
+
se.current = _e;
|
|
54819
54819
|
}, [_e]);
|
|
54820
54820
|
let Ve = I((e) => {
|
|
54821
54821
|
for (let t of e) {
|
|
@@ -54833,7 +54833,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54833
54833
|
let e = ke();
|
|
54834
54834
|
if (e.length === 0) return;
|
|
54835
54835
|
let t = e.map((e) => g?.(e)).filter((e) => e !== void 0), n = t.join(",");
|
|
54836
|
-
n !==
|
|
54836
|
+
n !== ae.current && (ae.current = n, ce.current ? ce.current = !1 : (m ? Ve(e) : h && !y && Me(t, se.current, !0), x((t) => {
|
|
54837
54837
|
let n = !1, r = new Map(t.items);
|
|
54838
54838
|
for (let [t, i] of r.entries()) if (i.item === void 0) {
|
|
54839
54839
|
let a = e.find((e) => {
|
|
@@ -54861,7 +54861,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54861
54861
|
y,
|
|
54862
54862
|
Ve
|
|
54863
54863
|
]), L(() => {
|
|
54864
|
-
me === 0 && (
|
|
54864
|
+
me === 0 && (ee(!1), D.current = !1);
|
|
54865
54865
|
}, [me]), L(() => {
|
|
54866
54866
|
let e = JSON.stringify({
|
|
54867
54867
|
allSelectedCheck: w,
|
|
@@ -54870,7 +54870,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54870
54870
|
checkedCount: me,
|
|
54871
54871
|
resolvedItems: Ce.map(({ item: e, checked: t }) => [g?.(e), t])
|
|
54872
54872
|
});
|
|
54873
|
-
e !==
|
|
54873
|
+
e !== oe.current && (oe.current = e, a?.({
|
|
54874
54874
|
allSelected: ve,
|
|
54875
54875
|
itemsStatus: Ce,
|
|
54876
54876
|
selectedIds: we,
|
|
@@ -54899,7 +54899,7 @@ function _P({ data: e, paginationInfo: t, source: n, selectionMode: r = "multi",
|
|
|
54899
54899
|
handleSelectGroupChange: Ne,
|
|
54900
54900
|
selectionMeta: {
|
|
54901
54901
|
selectedItemsCount: Se,
|
|
54902
|
-
totalKnownItemsCount:
|
|
54902
|
+
totalKnownItemsCount: N,
|
|
54903
54903
|
checkedItems: Array.from(de.values()),
|
|
54904
54904
|
uncheckedItems: Array.from(pe.values())
|
|
54905
54905
|
},
|
|
@@ -54918,8 +54918,8 @@ var vP = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54918
54918
|
transition: o ? "none" : "transform 200ms ease-out"
|
|
54919
54919
|
},
|
|
54920
54920
|
className: c("flex h-3 w-3 shrink-0 items-center justify-center", n && "cursor-not-allowed opacity-50", t),
|
|
54921
|
-
children: /* @__PURE__ */ V(
|
|
54922
|
-
icon:
|
|
54921
|
+
children: /* @__PURE__ */ V(k, {
|
|
54922
|
+
icon: ne,
|
|
54923
54923
|
size: r,
|
|
54924
54924
|
"aria-hidden": !0
|
|
54925
54925
|
})
|
|
@@ -54963,7 +54963,7 @@ var vP = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54963
54963
|
S(!x), u?.(!x);
|
|
54964
54964
|
}, w = () => {
|
|
54965
54965
|
d ? C() : f && m?.(!p);
|
|
54966
|
-
},
|
|
54966
|
+
}, ee = d && /* @__PURE__ */ V("span", {
|
|
54967
54967
|
className: "text-f1-icon-secondary",
|
|
54968
54968
|
"data-testid": "group-header-chevron",
|
|
54969
54969
|
children: /* @__PURE__ */ V(vP, {
|
|
@@ -54972,20 +54972,20 @@ var vP = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
54972
54972
|
closedRotation: v,
|
|
54973
54973
|
openRotation: y
|
|
54974
54974
|
})
|
|
54975
|
-
}),
|
|
54975
|
+
}), T = (e) => {
|
|
54976
54976
|
(e.key === "Enter" || e.key === " ") && (e.key === " " && e.preventDefault(), w());
|
|
54977
|
-
},
|
|
54977
|
+
}, D = d || f;
|
|
54978
54978
|
return /* @__PURE__ */ H("div", {
|
|
54979
|
-
className: c("pointer-events-auto flex items-center gap-2",
|
|
54979
|
+
className: c("pointer-events-auto flex items-center gap-2", D && l("rounded"), h),
|
|
54980
54980
|
onClick: w,
|
|
54981
|
-
...
|
|
54981
|
+
...D && {
|
|
54982
54982
|
role: "button",
|
|
54983
54983
|
tabIndex: 0,
|
|
54984
|
-
onKeyDown:
|
|
54984
|
+
onKeyDown: T
|
|
54985
54985
|
},
|
|
54986
54986
|
"aria-expanded": d ? x : void 0,
|
|
54987
54987
|
children: [
|
|
54988
|
-
_ === "leading" ?
|
|
54988
|
+
_ === "leading" ? ee : null,
|
|
54989
54989
|
f ? /* @__PURE__ */ V(MO, {
|
|
54990
54990
|
checked: !!p,
|
|
54991
54991
|
indeterminate: p === "indeterminate",
|
|
@@ -55033,11 +55033,11 @@ var vP = ({ open: e, className: t, disabled: n, size: r = "xs", closedRotation:
|
|
|
55033
55033
|
})]
|
|
55034
55034
|
}, `${e.label}-${t}`))] }) : null
|
|
55035
55035
|
}),
|
|
55036
|
-
_ === "trailing" ?
|
|
55036
|
+
_ === "trailing" ? ee : null,
|
|
55037
55037
|
i === void 0 ? null : /* @__PURE__ */ V(yP, {
|
|
55038
55038
|
resolve: i,
|
|
55039
55039
|
fallback: /* @__PURE__ */ V(s, { className: "h-4 w-32" }),
|
|
55040
|
-
children: (e) => e ? /* @__PURE__ */ V(
|
|
55040
|
+
children: (e) => e ? /* @__PURE__ */ V(E, {
|
|
55041
55041
|
className: "flex-1 text-base text-f1-foreground-secondary",
|
|
55042
55042
|
children: e
|
|
55043
55043
|
}) : null
|
|
@@ -55137,17 +55137,17 @@ var kP = /* @__PURE__ */ new Set([
|
|
|
55137
55137
|
"ArrowUp",
|
|
55138
55138
|
"ArrowDown"
|
|
55139
55139
|
]), AP = /* @__PURE__ */ new Set([" ", "Enter"]), jP = 50, MP = "Select", [NP, PP, FP] = We(MP), [IP, LP] = wP(MP, [FP, Ne]), RP = Ne(), [zP, BP] = IP(MP), [VP, HP] = IP(MP), UP = (e) => {
|
|
55140
|
-
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, onItemCheckChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, multiple: g } = e, _ = RP(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [S, C] = P.useState(!1), w = He(u), [
|
|
55140
|
+
let { __scopeSelect: t, children: n, open: r, defaultOpen: i, onOpenChange: a, value: o, defaultValue: s, onValueChange: c, onItemCheckChange: l, dir: u, name: d, autoComplete: f, disabled: p, required: m, form: h, multiple: g } = e, _ = RP(t), [v, y] = P.useState(null), [b, x] = P.useState(null), [S, C] = P.useState(!1), w = He(u), [ee, T] = Pe({
|
|
55141
55141
|
prop: r,
|
|
55142
55142
|
defaultProp: i ?? !1,
|
|
55143
55143
|
onChange: a,
|
|
55144
55144
|
caller: MP
|
|
55145
|
-
}), [
|
|
55145
|
+
}), [E, D] = Pe({
|
|
55146
55146
|
prop: o,
|
|
55147
55147
|
defaultProp: s,
|
|
55148
55148
|
onChange: c,
|
|
55149
55149
|
caller: MP
|
|
55150
|
-
}),
|
|
55150
|
+
}), O = P.useRef(null), k = !v || h || !!v.closest("form"), [A, j] = P.useState(/* @__PURE__ */ new Set()), te = Array.from(A).map((e) => e.props.value).join(";");
|
|
55151
55151
|
return /* @__PURE__ */ V(Ae, {
|
|
55152
55152
|
..._,
|
|
55153
55153
|
children: /* @__PURE__ */ H(zP, {
|
|
@@ -55160,13 +55160,13 @@ var kP = /* @__PURE__ */ new Set([
|
|
|
55160
55160
|
valueNodeHasChildren: S,
|
|
55161
55161
|
onValueNodeHasChildrenChange: C,
|
|
55162
55162
|
contentId: Ve(),
|
|
55163
|
-
value:
|
|
55164
|
-
onValueChange: (e) =>
|
|
55163
|
+
value: E,
|
|
55164
|
+
onValueChange: (e) => D(e),
|
|
55165
55165
|
onItemCheckChange: l,
|
|
55166
|
-
open:
|
|
55167
|
-
onOpenChange:
|
|
55166
|
+
open: ee,
|
|
55167
|
+
onOpenChange: T,
|
|
55168
55168
|
dir: w,
|
|
55169
|
-
triggerPointerDownPosRef:
|
|
55169
|
+
triggerPointerDownPosRef: O,
|
|
55170
55170
|
disabled: p,
|
|
55171
55171
|
multiple: g,
|
|
55172
55172
|
children: [/* @__PURE__ */ V(NP.Provider, {
|
|
@@ -55174,31 +55174,31 @@ var kP = /* @__PURE__ */ new Set([
|
|
|
55174
55174
|
children: /* @__PURE__ */ V(VP, {
|
|
55175
55175
|
scope: e.__scopeSelect,
|
|
55176
55176
|
onNativeOptionAdd: P.useCallback((e) => {
|
|
55177
|
-
|
|
55177
|
+
j((t) => new Set(t).add(e));
|
|
55178
55178
|
}, []),
|
|
55179
55179
|
onNativeOptionRemove: P.useCallback((e) => {
|
|
55180
|
-
|
|
55180
|
+
j((t) => {
|
|
55181
55181
|
let n = new Set(t);
|
|
55182
55182
|
return n.delete(e), n;
|
|
55183
55183
|
});
|
|
55184
55184
|
}, []),
|
|
55185
55185
|
children: n
|
|
55186
55186
|
})
|
|
55187
|
-
}),
|
|
55187
|
+
}), k ? /* @__PURE__ */ H(HF, {
|
|
55188
55188
|
"aria-hidden": !0,
|
|
55189
55189
|
required: m,
|
|
55190
55190
|
tabIndex: -1,
|
|
55191
55191
|
name: d,
|
|
55192
55192
|
autoComplete: f,
|
|
55193
|
-
value:
|
|
55193
|
+
value: E,
|
|
55194
55194
|
onChange: (e) => {
|
|
55195
|
-
|
|
55195
|
+
D(g ? Array.from(e.currentTarget.selectedOptions).map((e) => e.value) : e.target.value);
|
|
55196
55196
|
},
|
|
55197
55197
|
disabled: p,
|
|
55198
55198
|
form: h,
|
|
55199
55199
|
multiple: g,
|
|
55200
|
-
children: [
|
|
55201
|
-
},
|
|
55200
|
+
children: [E === void 0 ? /* @__PURE__ */ V("option", { value: "" }) : null, Array.from(A)]
|
|
55201
|
+
}, te) : null]
|
|
55202
55202
|
})
|
|
55203
55203
|
});
|
|
55204
55204
|
};
|
|
@@ -55298,12 +55298,12 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55298
55298
|
allowPinchZoom: !0,
|
|
55299
55299
|
children: t
|
|
55300
55300
|
}), oF = P.forwardRef((e, t) => {
|
|
55301
|
-
let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, disableScrollLock: s = !1, inline: c = !1, keepTriggerAccessible: l = !1, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: _, hideWhenDetached: v, avoidCollisions: y, ...b } = e, x = BP(QP, n), [S, C] = P.useState(null), [w,
|
|
55301
|
+
let { __scopeSelect: n, position: r = "item-aligned", onCloseAutoFocus: i, onEscapeKeyDown: a, onPointerDownOutside: o, disableScrollLock: s = !1, inline: c = !1, keepTriggerAccessible: l = !1, side: u, sideOffset: d, align: f, alignOffset: p, arrowPadding: m, collisionBoundary: h, collisionPadding: g, sticky: _, hideWhenDetached: v, avoidCollisions: y, ...b } = e, x = BP(QP, n), [S, C] = P.useState(null), [w, ee] = P.useState(null), T = Te(t, (e) => C(e)), [E, D] = P.useState(null), [O, k] = P.useState(null), A = PP(n), [j, te] = P.useState(!1), ne = P.useRef(!1), re = P.useRef(null);
|
|
55302
55302
|
P.useEffect(() => {
|
|
55303
|
-
if (S && (
|
|
55303
|
+
if (S && (re.current &&= (re.current(), null), x.open && r === "popper")) {
|
|
55304
55304
|
let e = Xe(l && x.trigger ? [S, x.trigger] : S);
|
|
55305
|
-
return
|
|
55306
|
-
e && e(),
|
|
55305
|
+
return re.current = e, () => {
|
|
55306
|
+
e && e(), re.current = null;
|
|
55307
55307
|
};
|
|
55308
55308
|
}
|
|
55309
55309
|
}, [
|
|
@@ -55313,37 +55313,37 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55313
55313
|
l,
|
|
55314
55314
|
r
|
|
55315
55315
|
]), De();
|
|
55316
|
-
let
|
|
55317
|
-
let [t, ...n] =
|
|
55316
|
+
let ie = P.useCallback((e) => {
|
|
55317
|
+
let [t, ...n] = A().map((e) => e.ref.current), [r] = n.slice(-1), i = document.activeElement;
|
|
55318
55318
|
for (let n of e) if (n === i || (n?.scrollIntoView({ block: "nearest" }), n === t && w && (w.scrollTop = 0), n === r && w && (w.scrollTop = w.scrollHeight), n?.focus(), document.activeElement !== i)) return;
|
|
55319
|
-
}, [
|
|
55319
|
+
}, [A, w]), ae = P.useCallback((e = !1) => {
|
|
55320
55320
|
let t = document.activeElement;
|
|
55321
|
-
t instanceof HTMLElement && t !== S && S?.contains(t) && !e || x.multiple ||
|
|
55321
|
+
t instanceof HTMLElement && t !== S && S?.contains(t) && !e || x.multiple || ie([E, S]);
|
|
55322
55322
|
}, [
|
|
55323
|
-
|
|
55324
|
-
|
|
55323
|
+
ie,
|
|
55324
|
+
E,
|
|
55325
55325
|
S,
|
|
55326
55326
|
x.multiple
|
|
55327
|
-
]),
|
|
55328
|
-
|
|
55329
|
-
if (!x.open)
|
|
55330
|
-
else if (
|
|
55331
|
-
let e = !1, t, n = new Set((Array.isArray(x.value) ? x.value : [x.value]).filter((e) => e !== void 0)), r = x.value === void 0 || x.value === "", i = x.multiple ||
|
|
55327
|
+
]), oe = P.useRef(!1), se = P.useRef(null), ce = P.useRef(ae);
|
|
55328
|
+
ce.current = ae, P.useEffect(() => {
|
|
55329
|
+
if (!x.open) oe.current = !1, se.current = null;
|
|
55330
|
+
else if (j && !oe.current) {
|
|
55331
|
+
let e = !1, t, n = new Set((Array.isArray(x.value) ? x.value : [x.value]).filter((e) => e !== void 0)), r = x.value === void 0 || x.value === "", i = x.multiple || E !== null && (r || A().some((e) => e.ref.current === E && n.has(e.value))), a = setTimeout(() => {
|
|
55332
55332
|
if (e) return;
|
|
55333
|
-
let n = document.activeElement, r = n instanceof HTMLElement && n !== S && S?.contains(n), a =
|
|
55333
|
+
let n = document.activeElement, r = n instanceof HTMLElement && n !== S && S?.contains(n), a = se.current;
|
|
55334
55334
|
if (r && n !== a) {
|
|
55335
|
-
|
|
55335
|
+
oe.current = !0;
|
|
55336
55336
|
return;
|
|
55337
55337
|
}
|
|
55338
55338
|
let o = a ? n === a : n === S || n === x.trigger || n === document.body;
|
|
55339
|
-
if (i)
|
|
55339
|
+
if (i) oe.current = !0, o && ce.current(n === a);
|
|
55340
55340
|
else {
|
|
55341
55341
|
if (!o) {
|
|
55342
|
-
|
|
55342
|
+
oe.current = !0;
|
|
55343
55343
|
return;
|
|
55344
55344
|
}
|
|
55345
|
-
|
|
55346
|
-
e ||
|
|
55345
|
+
se.current = S, E && (t = setTimeout(() => {
|
|
55346
|
+
e || oe.current || (document.activeElement === se.current ? (E.focus(), !e && document.activeElement === E && (se.current = E)) : oe.current = !0);
|
|
55347
55347
|
}, jP)), S?.focus();
|
|
55348
55348
|
}
|
|
55349
55349
|
}, 0);
|
|
@@ -55357,11 +55357,11 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55357
55357
|
x.trigger,
|
|
55358
55358
|
x.value,
|
|
55359
55359
|
S,
|
|
55360
|
+
A,
|
|
55360
55361
|
j,
|
|
55361
|
-
|
|
55362
|
-
D
|
|
55362
|
+
E
|
|
55363
55363
|
]);
|
|
55364
|
-
let { onOpenChange:
|
|
55364
|
+
let { onOpenChange: M, triggerPointerDownPosRef: N } = x;
|
|
55365
55365
|
P.useEffect(() => {
|
|
55366
55366
|
if (S) {
|
|
55367
55367
|
let e = {
|
|
@@ -55369,13 +55369,13 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55369
55369
|
y: 0
|
|
55370
55370
|
}, t = (t) => {
|
|
55371
55371
|
e = {
|
|
55372
|
-
x: Math.abs(Math.round(t.pageX) - (
|
|
55373
|
-
y: Math.abs(Math.round(t.pageY) - (
|
|
55372
|
+
x: Math.abs(Math.round(t.pageX) - (N.current?.x ?? 0)),
|
|
55373
|
+
y: Math.abs(Math.round(t.pageY) - (N.current?.y ?? 0))
|
|
55374
55374
|
};
|
|
55375
55375
|
}, n = (n) => {
|
|
55376
|
-
e.x <= 10 && e.y <= 10 ? n.preventDefault() : S.contains(n.target) ||
|
|
55376
|
+
e.x <= 10 && e.y <= 10 ? n.preventDefault() : S.contains(n.target) || M(!1), document.removeEventListener("pointermove", t), N.current = null;
|
|
55377
55377
|
};
|
|
55378
|
-
return
|
|
55378
|
+
return N.current !== null && (document.addEventListener("pointermove", t), document.addEventListener("pointerup", n, {
|
|
55379
55379
|
capture: !0,
|
|
55380
55380
|
once: !0
|
|
55381
55381
|
})), () => {
|
|
@@ -55384,23 +55384,23 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55384
55384
|
}
|
|
55385
55385
|
}, [
|
|
55386
55386
|
S,
|
|
55387
|
-
|
|
55388
|
-
|
|
55387
|
+
M,
|
|
55388
|
+
N
|
|
55389
55389
|
]), P.useEffect(() => {
|
|
55390
|
-
let e = () =>
|
|
55390
|
+
let e = () => M(!1);
|
|
55391
55391
|
return window.addEventListener("blur", e), window.addEventListener("resize", e), () => {
|
|
55392
55392
|
window.removeEventListener("blur", e), window.removeEventListener("resize", e);
|
|
55393
55393
|
};
|
|
55394
|
-
}, [
|
|
55394
|
+
}, [M]);
|
|
55395
55395
|
let [le, ue] = WF((e) => {
|
|
55396
|
-
let t =
|
|
55396
|
+
let t = A().filter((e) => !e.disabled), n = GF(t, e, t.find((e) => e.ref.current === document.activeElement));
|
|
55397
55397
|
n && setTimeout(() => n.ref.current.focus());
|
|
55398
55398
|
}), de = P.useCallback((e, t, n) => {
|
|
55399
|
-
let r = (Array.isArray(x.value) ? x.value : [x.value]).filter((e) => e !== void 0), i = !
|
|
55400
|
-
(x.value !== void 0 && r.includes(t) || i) && (
|
|
55399
|
+
let r = (Array.isArray(x.value) ? x.value : [x.value]).filter((e) => e !== void 0), i = !ne.current && !n;
|
|
55400
|
+
(x.value !== void 0 && r.includes(t) || i) && (D(e), i && (ne.current = !0));
|
|
55401
55401
|
}, [x.value]), fe = P.useCallback(() => S?.focus(), [S]), pe = P.useCallback((e, t, n) => {
|
|
55402
|
-
let r = !
|
|
55403
|
-
(x.value !== void 0 && x.value === t || r) &&
|
|
55402
|
+
let r = !ne.current && !n;
|
|
55403
|
+
(x.value !== void 0 && x.value === t || r) && k(e);
|
|
55404
55404
|
}, [x.value]), me = r === "popper" ? fF : uF, he = me === fF ? {
|
|
55405
55405
|
side: u,
|
|
55406
55406
|
sideOffset: d,
|
|
@@ -55419,8 +55419,8 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55419
55419
|
onContextMenu: (e) => e.preventDefault(),
|
|
55420
55420
|
...b,
|
|
55421
55421
|
...he,
|
|
55422
|
-
onPlaced: () =>
|
|
55423
|
-
ref:
|
|
55422
|
+
onPlaced: () => te(!0),
|
|
55423
|
+
ref: T,
|
|
55424
55424
|
style: {
|
|
55425
55425
|
display: "flex",
|
|
55426
55426
|
flexDirection: "column",
|
|
@@ -55430,12 +55430,12 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55430
55430
|
onKeyDown: Be(b.onKeyDown, (e) => {
|
|
55431
55431
|
let t = e.ctrlKey || e.altKey || e.metaKey, n = e.target instanceof HTMLElement && e.target.getAttribute("role") === "searchbox";
|
|
55432
55432
|
if (e.key === "Tab" && e.preventDefault(), !t && !n && e.key.length === 1 && ue(e.key), ["ArrowUp", "ArrowDown"].includes(e.key) || !n && ["Home", "End"].includes(e.key)) {
|
|
55433
|
-
let t =
|
|
55433
|
+
let t = A().filter((e) => !e.disabled).map((e) => e.ref.current);
|
|
55434
55434
|
if (["ArrowUp", "End"].includes(e.key) && (t = t.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(e.key)) {
|
|
55435
55435
|
let n = e.target, r = t.indexOf(n);
|
|
55436
55436
|
t = t.slice(r + 1);
|
|
55437
55437
|
}
|
|
55438
|
-
setTimeout(() =>
|
|
55438
|
+
setTimeout(() => ie(t)), e.preventDefault();
|
|
55439
55439
|
}
|
|
55440
55440
|
})
|
|
55441
55441
|
});
|
|
@@ -55443,15 +55443,15 @@ var eF = 10, [tF, nF] = IP(QP), rF = "SelectContentImpl", iF = Ze("SelectContent
|
|
|
55443
55443
|
scope: n,
|
|
55444
55444
|
content: S,
|
|
55445
55445
|
viewport: w,
|
|
55446
|
-
onViewportChange:
|
|
55446
|
+
onViewportChange: ee,
|
|
55447
55447
|
itemRefCallback: de,
|
|
55448
|
-
selectedItem:
|
|
55448
|
+
selectedItem: E,
|
|
55449
55449
|
onItemLeave: fe,
|
|
55450
55450
|
itemTextRefCallback: pe,
|
|
55451
|
-
focusSelectedItem:
|
|
55452
|
-
selectedItemText:
|
|
55451
|
+
focusSelectedItem: ae,
|
|
55452
|
+
selectedItemText: O,
|
|
55453
55453
|
position: r,
|
|
55454
|
-
isPositioned:
|
|
55454
|
+
isPositioned: j,
|
|
55455
55455
|
searchRef: le,
|
|
55456
55456
|
children: /* @__PURE__ */ V(aF, {
|
|
55457
55457
|
disableScrollLock: s,
|
|
@@ -55500,17 +55500,17 @@ var lF = "SelectItemAlignedPosition", uF = P.forwardRef((e, t) => {
|
|
|
55500
55500
|
let r = t.right - i.right, a = window.innerWidth - n.right - r, o = window.innerWidth - e.right - a, c = e.width + o, l = Math.max(c, t.width), u = window.innerWidth - eF, d = be(a, [eF, Math.max(eF, u - l)]);
|
|
55501
55501
|
s.style.minWidth = c + "px", s.style.right = d + "px";
|
|
55502
55502
|
}
|
|
55503
|
-
let o = f(), c = window.innerHeight - 20, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10),
|
|
55504
|
-
if (
|
|
55503
|
+
let o = f(), c = window.innerHeight - 20, u = h.scrollHeight, d = window.getComputedStyle(l), m = parseInt(d.borderTopWidth, 10), v = parseInt(d.paddingTop, 10), y = parseInt(d.borderBottomWidth, 10), b = parseInt(d.paddingBottom, 10), x = m + v + u + b + y, S = Math.min(g.offsetHeight * 5, x), C = window.getComputedStyle(h), w = parseInt(C.paddingTop, 10), ee = parseInt(C.paddingBottom, 10), T = e.top + e.height / 2 - eF, E = c - T, D = g.offsetHeight / 2, O = g.offsetTop + D, k = m + v + O, A = x - k;
|
|
55504
|
+
if (k <= T) {
|
|
55505
55505
|
let e = o.length > 0 && g === o[o.length - 1].ref.current;
|
|
55506
55506
|
s.style.bottom = "0px";
|
|
55507
|
-
let t = l.clientHeight - h.offsetTop - h.offsetHeight, n =
|
|
55507
|
+
let t = l.clientHeight - h.offsetTop - h.offsetHeight, n = k + Math.max(E, D + (e ? ee : 0) + t + y);
|
|
55508
55508
|
s.style.height = n + "px";
|
|
55509
55509
|
} else {
|
|
55510
55510
|
let e = o.length > 0 && g === o[0].ref.current;
|
|
55511
55511
|
s.style.top = "0px";
|
|
55512
|
-
let t = Math.max(
|
|
55513
|
-
s.style.height = t + "px", h.scrollTop =
|
|
55512
|
+
let t = Math.max(T, m + h.offsetTop + (e ? w : 0) + D) + A;
|
|
55513
|
+
s.style.height = t + "px", h.scrollTop = k - T + h.offsetTop;
|
|
55514
55514
|
}
|
|
55515
55515
|
s.style.margin = `${eF}px 0`, s.style.minHeight = S + "px", s.style.maxHeight = c + "px", r?.(), requestAnimationFrame(() => p.current = !0);
|
|
55516
55516
|
}
|
|
@@ -56734,14 +56734,14 @@ var AI = 8, jI = [
|
|
|
56734
56734
|
"select:not([disabled])",
|
|
56735
56735
|
"textarea:not([disabled])",
|
|
56736
56736
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
56737
|
-
].join(","), MI = (e) => Array.from(e.querySelectorAll(jI)).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\"]")), NI = F(({ 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 },
|
|
56738
|
-
let
|
|
56739
|
-
|
|
56737
|
+
].join(","), MI = (e) => Array.from(e.querySelectorAll(jI)).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\"]")), NI = F(({ 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 }, ee) => {
|
|
56738
|
+
let T = vt(tP), E = T.portalContainer && (T.position === "center" || T.position === "fullscreen"), D = v === void 0 ? E ? T.portalContainer : void 0 : v, O = z(null), k = z(null), A = Array.isArray(e), j = R(() => A ? e.every((e) => !e.value && e.type !== "group-header") : !n, [
|
|
56739
|
+
A,
|
|
56740
56740
|
e,
|
|
56741
56741
|
n
|
|
56742
|
-
]),
|
|
56742
|
+
]), te = S(), [ne, re] = B(te), [ie, ae] = B(!1), { value: oe, open: se, as: ce } = vt(SP), M = ce === "list", N = R(() => new Set((Array.isArray(oe) ? oe : [oe]).filter((e) => e !== void 0)), [oe]), le = R(() => e?.findIndex((e) => e.value !== void 0 && N.has(e.value)) ?? -1, [e, N]), ue = M || te || ie, de = kI({
|
|
56743
56743
|
count: e?.length || 0,
|
|
56744
|
-
getScrollElement: () =>
|
|
56744
|
+
getScrollElement: () => O.current,
|
|
56745
56745
|
estimateSize: (t) => e?.[t]?.height || 0,
|
|
56746
56746
|
getItemKey: (t) => e?.[t]?.key ?? t,
|
|
56747
56747
|
overscan: 5,
|
|
@@ -56749,24 +56749,24 @@ var AI = 8, jI = [
|
|
|
56749
56749
|
enabled: ue
|
|
56750
56750
|
});
|
|
56751
56751
|
L(() => {
|
|
56752
|
-
|
|
56753
|
-
}, [
|
|
56754
|
-
|
|
56752
|
+
se || (ae(!1), re(!0));
|
|
56753
|
+
}, [se]), L(() => {
|
|
56754
|
+
M || de.measure();
|
|
56755
56755
|
}, [
|
|
56756
56756
|
de,
|
|
56757
|
-
|
|
56758
|
-
|
|
56757
|
+
ie,
|
|
56758
|
+
M
|
|
56759
56759
|
]);
|
|
56760
56760
|
let fe = z(!1), [pe, me] = St((e) => e + 1, 0);
|
|
56761
56761
|
L(function() {
|
|
56762
|
-
!
|
|
56763
|
-
}, [
|
|
56764
|
-
ue && (
|
|
56765
|
-
!de.scrollElement &&
|
|
56766
|
-
})) :
|
|
56762
|
+
!se && !M && (fe.current = !1);
|
|
56763
|
+
}, [se, M]), L(function() {
|
|
56764
|
+
ue && (se || M) && (!fe.current && le >= 0 ? (fe.current = !0, setTimeout(() => {
|
|
56765
|
+
!de.scrollElement && O.current ? (fe.current = !1, me()) : (de.scrollToIndex(le, { align: "center" }), re(!0));
|
|
56766
|
+
})) : re(!0));
|
|
56767
56767
|
}, [
|
|
56768
|
-
|
|
56769
|
-
|
|
56768
|
+
M,
|
|
56769
|
+
se,
|
|
56770
56770
|
le,
|
|
56771
56771
|
de,
|
|
56772
56772
|
ue,
|
|
@@ -56775,14 +56775,14 @@ var AI = 8, jI = [
|
|
|
56775
56775
|
let he = de.getVirtualItems(), ge = (e) => {
|
|
56776
56776
|
if (w.onKeyDown?.(e), e.defaultPrevented || e.key !== "Tab") return;
|
|
56777
56777
|
let t = e.target, n = e.currentTarget, r = t.closest("[role=\"option\"]");
|
|
56778
|
-
r && r.getAttribute("aria-disabled") !== "true" && (
|
|
56779
|
-
let i = r ?? (
|
|
56778
|
+
r && r.getAttribute("aria-disabled") !== "true" && (k.current = r);
|
|
56779
|
+
let i = r ?? (k.current?.isConnected ? k.current : n.querySelector("[role=\"option\"][data-highlighted]:not([aria-disabled=\"true\"]), [role=\"option\"][data-state=\"checked\"]:not([aria-disabled=\"true\"]), [role=\"option\"]:not([aria-disabled=\"true\"])")), a = MI(n), o = !r && t !== n && !t.closest("[role=\"listbox\"]") ? t : void 0, s = Array.from(/* @__PURE__ */ new Set([
|
|
56780
56780
|
...a,
|
|
56781
56781
|
...i ? [i] : [],
|
|
56782
56782
|
...o ? [o] : []
|
|
56783
56783
|
])).sort((e, t) => e.compareDocumentPosition(t) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1), c = r ?? t, l = s.indexOf(c), u = l >= 0 ? s[l + (e.shiftKey ? -1 : 1)] : void 0;
|
|
56784
56784
|
u && (e.preventDefault(), u.focus());
|
|
56785
|
-
}, _e =
|
|
56785
|
+
}, _e = j ? /* @__PURE__ */ V("div", {
|
|
56786
56786
|
className: c("flex h-full w-full flex-col items-center justify-center", s ? c("px-2 pt-8", o ? "pb-1" : "pb-8") : "p-2"),
|
|
56787
56787
|
children: /* @__PURE__ */ V("div", {
|
|
56788
56788
|
role: "option",
|
|
@@ -56793,8 +56793,8 @@ var AI = 8, jI = [
|
|
|
56793
56793
|
content: a || "-"
|
|
56794
56794
|
})
|
|
56795
56795
|
})
|
|
56796
|
-
}) :
|
|
56797
|
-
className: c(!
|
|
56796
|
+
}) : A ? /* @__PURE__ */ V("div", {
|
|
56797
|
+
className: c(!M && "transition-opacity delay-100", M || ne ? "" : "opacity-0", !M && m ? "min-h-[412px]" : ""),
|
|
56798
56798
|
style: {
|
|
56799
56799
|
height: de.getTotalSize() + AI,
|
|
56800
56800
|
width: "100%",
|
|
@@ -56822,14 +56822,14 @@ var AI = 8, jI = [
|
|
|
56822
56822
|
}, t.key))
|
|
56823
56823
|
})
|
|
56824
56824
|
}) : /* @__PURE__ */ V("div", { children: n }), ve = f && !d, ye = /* @__PURE__ */ V(XF, {
|
|
56825
|
-
ref:
|
|
56825
|
+
ref: ee,
|
|
56826
56826
|
asChild: _,
|
|
56827
|
-
disableScrollLock:
|
|
56828
|
-
inline:
|
|
56829
|
-
className: c("relative z-50 text-f1-foreground",
|
|
56830
|
-
position:
|
|
56831
|
-
side:
|
|
56832
|
-
sideOffset:
|
|
56827
|
+
disableScrollLock: M || !!D,
|
|
56828
|
+
inline: M,
|
|
56829
|
+
className: c("relative z-50 text-f1-foreground", M ? "flex w-full h-full flex-col" : "flex min-w-[8rem] flex-col overflow-hidden", !M && "rounded-md border border-solid border-f1-border-secondary bg-f1-background shadow-md data-[state=closed]:fade-out-0 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 motion-safe:data-[state=open]:animate-in motion-safe:data-[state=closed]:animate-out motion-safe:data-[state=open]:fade-in-0 motion-safe:data-[state=closed]:zoom-out-95 motion-safe:data-[state=open]:zoom-in-95 motion-safe:data-[side=bottom]:slide-in-from-top-2", !M && r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1", !M && r === "popper" && !m && (h ? "w-max min-w-[var(--radix-select-trigger-width)] max-w-select-available" : "min-w-80 w-[var(--radix-select-trigger-width)]"), !M && r === "popper" && m && "min-w-[32rem] w-[calc(var(--radix-select-trigger-width)+12rem)]", !M && (i ? "max-h-[412px]" : "max-h-[320px]"), !M && A && !ne && "opacity-0", t),
|
|
56830
|
+
position: M ? "item-aligned" : r,
|
|
56831
|
+
side: M ? void 0 : "bottom",
|
|
56832
|
+
sideOffset: M ? void 0 : 4,
|
|
56833
56833
|
collisionPadding: 16,
|
|
56834
56834
|
avoidCollisions: !0,
|
|
56835
56835
|
...w,
|
|
@@ -56838,25 +56838,25 @@ var AI = 8, jI = [
|
|
|
56838
56838
|
w.onCloseAutoFocus && typeof w.onCloseAutoFocus == "function" && w.onCloseAutoFocus(e), e.preventDefault();
|
|
56839
56839
|
},
|
|
56840
56840
|
onAnimationStart: (e) => {
|
|
56841
|
-
!
|
|
56841
|
+
!ie && e.currentTarget.contains(e.target) && ae(!0);
|
|
56842
56842
|
},
|
|
56843
56843
|
children: /* @__PURE__ */ H("div", {
|
|
56844
56844
|
className: "flex min-h-0 flex-1 flex-col",
|
|
56845
|
-
style:
|
|
56845
|
+
style: M ? void 0 : {
|
|
56846
56846
|
maxHeight: "var(--radix-select-content-available-height, 100%)",
|
|
56847
56847
|
...m ? { minHeight: "min(412px, var(--radix-select-content-available-height, 412px))" } : {}
|
|
56848
56848
|
},
|
|
56849
56849
|
children: [
|
|
56850
|
-
|
|
56850
|
+
M && !w.right ? /* @__PURE__ */ V("div", {
|
|
56851
56851
|
className: "flex-shrink-0",
|
|
56852
56852
|
children: w.top
|
|
56853
56853
|
}) : null,
|
|
56854
56854
|
/* @__PURE__ */ H("div", {
|
|
56855
56855
|
className: "flex min-h-0 flex-1 flex-row overflow-hidden",
|
|
56856
56856
|
children: [/* @__PURE__ */ H("div", {
|
|
56857
|
-
className: c("relative flex flex-1 min-h-0 min-w-0 flex-col overflow-hidden",
|
|
56857
|
+
className: c("relative flex flex-1 min-h-0 min-w-0 flex-col overflow-hidden", M && "flex flex-col overflow-hidden flex-1 min-h-0"),
|
|
56858
56858
|
children: [
|
|
56859
|
-
!
|
|
56859
|
+
!M || w.right ? w.top : null,
|
|
56860
56860
|
g && ve ? /* @__PURE__ */ V("div", {
|
|
56861
56861
|
className: "absolute inset-0 flex cursor-progress items-center justify-center",
|
|
56862
56862
|
"aria-live": "polite",
|
|
@@ -56864,12 +56864,12 @@ var AI = 8, jI = [
|
|
|
56864
56864
|
children: /* @__PURE__ */ V(aT, {})
|
|
56865
56865
|
}) : null,
|
|
56866
56866
|
/* @__PURE__ */ V(ot, {
|
|
56867
|
-
viewportRef:
|
|
56868
|
-
className: c("flex h-full flex-col",
|
|
56867
|
+
viewportRef: O,
|
|
56868
|
+
className: c("flex h-full flex-col", j ? "justify-center" : "pb-1", ve && "select-none opacity-10 transition-opacity"),
|
|
56869
56869
|
onScrollBottom: l,
|
|
56870
56870
|
onScrollTop: u,
|
|
56871
56871
|
scrollMargin: p,
|
|
56872
|
-
children:
|
|
56872
|
+
children: M ? /* @__PURE__ */ V(ZF, {
|
|
56873
56873
|
asChild: !0,
|
|
56874
56874
|
"aria-label": b,
|
|
56875
56875
|
"aria-labelledby": x,
|
|
@@ -56885,7 +56885,7 @@ var AI = 8, jI = [
|
|
|
56885
56885
|
"aria-describedby": C,
|
|
56886
56886
|
children: /* @__PURE__ */ V(QF, {
|
|
56887
56887
|
asChild: !0,
|
|
56888
|
-
className: c("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full",
|
|
56888
|
+
className: c("p-1", r === "popper" && "h-[var(--radix-select-trigger-height)] w-full", j && "flex h-full"),
|
|
56889
56889
|
children: _e
|
|
56890
56890
|
})
|
|
56891
56891
|
})
|
|
@@ -56893,9 +56893,9 @@ var AI = 8, jI = [
|
|
|
56893
56893
|
]
|
|
56894
56894
|
}), w.right]
|
|
56895
56895
|
}),
|
|
56896
|
-
|
|
56896
|
+
j && o || y ? /* @__PURE__ */ H("div", {
|
|
56897
56897
|
className: "shrink-0",
|
|
56898
|
-
children: [
|
|
56898
|
+
children: [j && o ? /* @__PURE__ */ V("div", {
|
|
56899
56899
|
className: c("w-full p-2", s ? "px-2 pb-8 pt-0" : "border-0 border-t border-solid border-f1-border-secondary"),
|
|
56900
56900
|
children: o
|
|
56901
56901
|
}) : null, y]
|
|
@@ -56903,9 +56903,9 @@ var AI = 8, jI = [
|
|
|
56903
56903
|
]
|
|
56904
56904
|
})
|
|
56905
56905
|
});
|
|
56906
|
-
return
|
|
56907
|
-
container:
|
|
56908
|
-
children: /* @__PURE__ */ H(Ct, { children: [
|
|
56906
|
+
return M ? ye : /* @__PURE__ */ V(YF, {
|
|
56907
|
+
container: D,
|
|
56908
|
+
children: /* @__PURE__ */ H(Ct, { children: [se && !D ? /* @__PURE__ */ V("div", {
|
|
56909
56909
|
"data-f0-select-overlay": "",
|
|
56910
56910
|
className: "pointer-events-auto fixed inset-0 z-40",
|
|
56911
56911
|
onClick: (e) => {
|
|
@@ -56939,7 +56939,7 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56939
56939
|
ref: i,
|
|
56940
56940
|
"data-testid": "select-arrow",
|
|
56941
56941
|
className: c(!e && "cursor-pointer", "origin-center transition-transform duration-200", "flex items-center justify-center", !t && "rotate-180", n === "md" && "scale-110", r),
|
|
56942
|
-
children: /* @__PURE__ */ V(
|
|
56942
|
+
children: /* @__PURE__ */ V(A, {
|
|
56943
56943
|
icon: fn,
|
|
56944
56944
|
size: "lg"
|
|
56945
56945
|
})
|
|
@@ -56958,13 +56958,13 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56958
56958
|
fallback: /* @__PURE__ */ V(s, { className: "h-4 w-4" }),
|
|
56959
56959
|
children: (e) => /* @__PURE__ */ V("div", {
|
|
56960
56960
|
className: "flex h-[24px] items-center",
|
|
56961
|
-
children: /* @__PURE__ */ V(
|
|
56961
|
+
children: /* @__PURE__ */ V(E, {
|
|
56962
56962
|
className: "text-f1-foreground-secondary",
|
|
56963
56963
|
children: p(e)
|
|
56964
56964
|
})
|
|
56965
56965
|
})
|
|
56966
56966
|
})
|
|
56967
|
-
}), i ? o && /* @__PURE__ */ V(
|
|
56967
|
+
}), i ? o && /* @__PURE__ */ V(ee, {
|
|
56968
56968
|
variant: "ghost",
|
|
56969
56969
|
size: "sm",
|
|
56970
56970
|
label: d.actions.clear,
|
|
@@ -56989,21 +56989,21 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56989
56989
|
return !e && !t ? null : /* @__PURE__ */ H("div", {
|
|
56990
56990
|
className: "flex w-full flex-row justify-between items-center gap-2 border-0 border-t border-solid border-f1-border-secondary p-2",
|
|
56991
56991
|
children: [
|
|
56992
|
-
e?.map((e) => /* @__PURE__ */ V(
|
|
56992
|
+
e?.map((e) => /* @__PURE__ */ V(D, {
|
|
56993
56993
|
variant: e.variant,
|
|
56994
56994
|
onClick: e.onClick,
|
|
56995
56995
|
icon: e.icon,
|
|
56996
56996
|
label: e.label,
|
|
56997
56997
|
disabled: e.disabled
|
|
56998
56998
|
}, e.label)),
|
|
56999
|
-
i ? /* @__PURE__ */ V(
|
|
56999
|
+
i ? /* @__PURE__ */ V(D, {
|
|
57000
57000
|
onClick: r,
|
|
57001
57001
|
label: s.filters.cancel,
|
|
57002
57002
|
variant: "ghost"
|
|
57003
57003
|
}) : null,
|
|
57004
57004
|
t ? /* @__PURE__ */ V("div", {
|
|
57005
57005
|
className: i ? "" : "ml-auto",
|
|
57006
|
-
children: /* @__PURE__ */ V(
|
|
57006
|
+
children: /* @__PURE__ */ V(D, {
|
|
57007
57007
|
onClick: n,
|
|
57008
57008
|
label: o ?? s.select.applySelection
|
|
57009
57009
|
})
|
|
@@ -57092,7 +57092,7 @@ function JI({ count: e, noTooltip: t, onSpelledOutChange: n }) {
|
|
|
57092
57092
|
let r = a();
|
|
57093
57093
|
return qI(n, !1), /* @__PURE__ */ V("div", {
|
|
57094
57094
|
className: "flex w-full items-center gap-1 text-left",
|
|
57095
|
-
children: /* @__PURE__ */ V(
|
|
57095
|
+
children: /* @__PURE__ */ V(E, {
|
|
57096
57096
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
57097
57097
|
noTooltip: t,
|
|
57098
57098
|
children: `${e} ${e === 1 ? r.status.selected.singular : r.status.selected.plural}`.toLowerCase()
|
|
@@ -57121,7 +57121,7 @@ function XI({ selection: e, totalSelectedCount: t, allSelected: n, noTooltip: r,
|
|
|
57121
57121
|
let o = a(), s = t ?? e.length;
|
|
57122
57122
|
return qI(i, s === 0 && e.length === 0 || n !== !0 && null), s === 0 && e.length === 0 ? null : n === !0 ? /* @__PURE__ */ V("div", {
|
|
57123
57123
|
className: "flex w-full items-center gap-1 text-left",
|
|
57124
|
-
children: /* @__PURE__ */ V(
|
|
57124
|
+
children: /* @__PURE__ */ V(E, {
|
|
57125
57125
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
57126
57126
|
noTooltip: r,
|
|
57127
57127
|
children: `${o.status.selected.all} (${s})`
|
|
@@ -57154,7 +57154,7 @@ var $I = F(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
57154
57154
|
}) : !c && n && n > 0 ? /* @__PURE__ */ V("div", {
|
|
57155
57155
|
className: "flex min-w-0 flex-1 justify-start gap-1.5",
|
|
57156
57156
|
ref: s,
|
|
57157
|
-
children: /* @__PURE__ */ V(
|
|
57157
|
+
children: /* @__PURE__ */ V(E, {
|
|
57158
57158
|
tag: "span",
|
|
57159
57159
|
className: "text-left text-f1-foreground-secondary",
|
|
57160
57160
|
noTooltip: a,
|
|
@@ -57180,9 +57180,9 @@ var $I = F(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
57180
57180
|
}) : null,
|
|
57181
57181
|
c.icon && !i ? /* @__PURE__ */ V("div", {
|
|
57182
57182
|
className: "h-5 shrink-0 text-f1-icon",
|
|
57183
|
-
children: /* @__PURE__ */ V(
|
|
57183
|
+
children: /* @__PURE__ */ V(k, { icon: c.icon })
|
|
57184
57184
|
}) : null,
|
|
57185
|
-
/* @__PURE__ */ V(
|
|
57185
|
+
/* @__PURE__ */ V(E, {
|
|
57186
57186
|
ref: u,
|
|
57187
57187
|
tag: "span",
|
|
57188
57188
|
className: "text-left text-f1-foreground",
|
|
@@ -57202,12 +57202,12 @@ function tL({ item: e, onDeselect: t }) {
|
|
|
57202
57202
|
avatar: e.avatar,
|
|
57203
57203
|
size: "xs"
|
|
57204
57204
|
}) : null,
|
|
57205
|
-
e.icon ? /* @__PURE__ */ V(
|
|
57205
|
+
e.icon ? /* @__PURE__ */ V(k, {
|
|
57206
57206
|
icon: e.icon,
|
|
57207
57207
|
size: "sm",
|
|
57208
57208
|
className: "shrink-0 text-f1-icon"
|
|
57209
57209
|
}) : null,
|
|
57210
|
-
/* @__PURE__ */ V(
|
|
57210
|
+
/* @__PURE__ */ V(E, {
|
|
57211
57211
|
className: "text-sm",
|
|
57212
57212
|
children: e.label
|
|
57213
57213
|
})
|
|
@@ -57220,8 +57220,8 @@ function tL({ item: e, onDeselect: t }) {
|
|
|
57220
57220
|
onClick: (n) => {
|
|
57221
57221
|
n.preventDefault(), n.stopPropagation(), t(String(e.value));
|
|
57222
57222
|
},
|
|
57223
|
-
children: /* @__PURE__ */ V(
|
|
57224
|
-
icon:
|
|
57223
|
+
children: /* @__PURE__ */ V(k, {
|
|
57224
|
+
icon: ce,
|
|
57225
57225
|
color: "default",
|
|
57226
57226
|
size: "md"
|
|
57227
57227
|
})
|
|
@@ -57284,7 +57284,7 @@ var rL = P.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
57284
57284
|
hideLabel: !0
|
|
57285
57285
|
}) : o && /* @__PURE__ */ V(tI, {
|
|
57286
57286
|
className: "flex text-f1-icon-selected",
|
|
57287
|
-
children: /* @__PURE__ */ V(
|
|
57287
|
+
children: /* @__PURE__ */ V(k, {
|
|
57288
57288
|
icon: ve,
|
|
57289
57289
|
size: "md"
|
|
57290
57290
|
})
|
|
@@ -57318,13 +57318,13 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57318
57318
|
}) : null,
|
|
57319
57319
|
e.icon ? /* @__PURE__ */ V("div", {
|
|
57320
57320
|
className: "flex shrink-0 items-center text-f1-icon",
|
|
57321
|
-
children: /* @__PURE__ */ V(
|
|
57321
|
+
children: /* @__PURE__ */ V(k, { icon: e.icon })
|
|
57322
57322
|
}) : null,
|
|
57323
57323
|
n ? null : /* @__PURE__ */ H("div", {
|
|
57324
57324
|
className: "flex min-w-0 flex-1 flex-col",
|
|
57325
57325
|
children: [/* @__PURE__ */ H("div", {
|
|
57326
57326
|
className: "flex min-w-0 items-baseline gap-1.5",
|
|
57327
|
-
children: [/* @__PURE__ */ V(
|
|
57327
|
+
children: [/* @__PURE__ */ V(E, {
|
|
57328
57328
|
lines: 2,
|
|
57329
57329
|
className: "font-medium",
|
|
57330
57330
|
children: e.label
|
|
@@ -57332,7 +57332,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57332
57332
|
className: "whitespace-nowrap text-f1-foreground-secondary",
|
|
57333
57333
|
children: oL(e.metadata)
|
|
57334
57334
|
}) : null]
|
|
57335
|
-
}), e.description ? /* @__PURE__ */ V(
|
|
57335
|
+
}), e.description ? /* @__PURE__ */ V(E, {
|
|
57336
57336
|
lines: 2,
|
|
57337
57337
|
className: "text-f1-foreground-secondary",
|
|
57338
57338
|
children: e.description
|
|
@@ -57381,7 +57381,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57381
57381
|
order: e.groupBy[r]?.defaultDirection ?? t?.order ?? "asc"
|
|
57382
57382
|
})
|
|
57383
57383
|
})
|
|
57384
|
-
}), t?.field ? /* @__PURE__ */ V(
|
|
57384
|
+
}), t?.field ? /* @__PURE__ */ V(D, {
|
|
57385
57385
|
hideLabel: !0,
|
|
57386
57386
|
label: i.collections.grouping.toggleDirection,
|
|
57387
57387
|
variant: "outline",
|
|
@@ -57469,7 +57469,7 @@ var mL = (e) => {
|
|
|
57469
57469
|
render() {
|
|
57470
57470
|
return this.state.hasError ? this.props.fallback ?? null : this.props.children;
|
|
57471
57471
|
}
|
|
57472
|
-
}, _L = P.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider:
|
|
57472
|
+
}, _L = P.forwardRef(({ className: e, type: t, label: n, labelIcon: r, icon: i, error: a, status: o, hint: s, disabled: l, required: u, value: d, placeholder: f, clearable: p, onClear: m, size: h, loading: g, isEmpty: _, emptyValue: v, maxLength: y, hideMaxLength: b, append: x, onChange: S, role: C, appendTag: w, lengthProvider: ee, onClickContent: T, hideLabel: E, name: D, onFocus: O, onBlur: k, onBlurWithin: A, onKeyDown: j, readonly: te, buttonToggle: ne, transparent: re, variant: ie, editing: ae, inlineText: oe, textAlign: se, hidePickerIndicator: ce = !1, autocomplete: M, "aria-controls": N, "aria-expanded": le, "aria-activedescendant": ue, "aria-autocomplete": de, ...fe }, pe) => /* @__PURE__ */ V(eP, {
|
|
57473
57473
|
label: n,
|
|
57474
57474
|
icon: i,
|
|
57475
57475
|
labelIcon: r,
|
|
@@ -57486,38 +57486,39 @@ var mL = (e) => {
|
|
|
57486
57486
|
placeholder: f || "",
|
|
57487
57487
|
size: h,
|
|
57488
57488
|
role: C,
|
|
57489
|
-
"aria-controls":
|
|
57490
|
-
"aria-expanded":
|
|
57491
|
-
"aria-activedescendant":
|
|
57492
|
-
"aria-autocomplete":
|
|
57489
|
+
"aria-controls": N,
|
|
57490
|
+
"aria-expanded": le,
|
|
57491
|
+
"aria-activedescendant": ue,
|
|
57492
|
+
"aria-autocomplete": de,
|
|
57493
57493
|
isEmpty: _,
|
|
57494
57494
|
emptyValue: v,
|
|
57495
57495
|
maxLength: y,
|
|
57496
57496
|
hideMaxLength: b,
|
|
57497
57497
|
append: x,
|
|
57498
|
-
lengthProvider:
|
|
57498
|
+
lengthProvider: ee,
|
|
57499
57499
|
hidePlaceholder: t === "file",
|
|
57500
|
-
hideLabel:
|
|
57500
|
+
hideLabel: E,
|
|
57501
57501
|
onChange: S,
|
|
57502
|
-
onClickContent:
|
|
57503
|
-
name:
|
|
57502
|
+
onClickContent: T,
|
|
57503
|
+
name: D,
|
|
57504
57504
|
appendTag: w,
|
|
57505
|
-
onFocus:
|
|
57506
|
-
onBlur:
|
|
57507
|
-
onBlurWithin:
|
|
57508
|
-
inputRef:
|
|
57509
|
-
readonly:
|
|
57510
|
-
buttonToggle:
|
|
57511
|
-
transparent:
|
|
57512
|
-
variant:
|
|
57513
|
-
editing:
|
|
57514
|
-
inlineText:
|
|
57505
|
+
onFocus: O,
|
|
57506
|
+
onBlur: k,
|
|
57507
|
+
onBlurWithin: A,
|
|
57508
|
+
inputRef: pe,
|
|
57509
|
+
readonly: te,
|
|
57510
|
+
buttonToggle: ne,
|
|
57511
|
+
transparent: re,
|
|
57512
|
+
variant: ie,
|
|
57513
|
+
editing: ae,
|
|
57514
|
+
inlineText: oe,
|
|
57515
|
+
textAlign: se,
|
|
57515
57516
|
children: /* @__PURE__ */ V("input", {
|
|
57516
57517
|
type: t,
|
|
57517
|
-
autoComplete:
|
|
57518
|
-
...
|
|
57519
|
-
onKeyDown:
|
|
57520
|
-
className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", C === "combobox" && "cursor-text")
|
|
57518
|
+
autoComplete: M,
|
|
57519
|
+
...fe,
|
|
57520
|
+
onKeyDown: j,
|
|
57521
|
+
className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", t === "time" && ce && "[&::-webkit-calendar-picker-indicator]:hidden", C === "combobox" && "cursor-text")
|
|
57521
57522
|
})
|
|
57522
57523
|
}));
|
|
57523
57524
|
_L.displayName = "Input";
|
|
@@ -57659,7 +57660,7 @@ var CL = 366, wL = (e) => {
|
|
|
57659
57660
|
children: e
|
|
57660
57661
|
}), /* @__PURE__ */ H("div", {
|
|
57661
57662
|
className: c("flex items-center", s ? "gap-1" : "gap-2"),
|
|
57662
|
-
children: [/* @__PURE__ */ V(
|
|
57663
|
+
children: [/* @__PURE__ */ V(D, {
|
|
57663
57664
|
onClick: () => u(-1),
|
|
57664
57665
|
variant: "outline",
|
|
57665
57666
|
label: d.navigation.previous,
|
|
@@ -57667,7 +57668,7 @@ var CL = 366, wL = (e) => {
|
|
|
57667
57668
|
icon: on,
|
|
57668
57669
|
size: "sm",
|
|
57669
57670
|
disabled: !l(-1)
|
|
57670
|
-
}), /* @__PURE__ */ V(
|
|
57671
|
+
}), /* @__PURE__ */ V(D, {
|
|
57671
57672
|
onClick: () => u(1),
|
|
57672
57673
|
variant: "outline",
|
|
57673
57674
|
label: d.navigation.next,
|
|
@@ -57687,121 +57688,121 @@ var CL = 366, wL = (e) => {
|
|
|
57687
57688
|
r,
|
|
57688
57689
|
c,
|
|
57689
57690
|
l
|
|
57690
|
-
]), [b, x] = B(y), [S, C] = B(i), [w,
|
|
57691
|
+
]), [b, x] = B(y), [S, C] = B(i), [w, ee] = B(1), T = R(() => BN({
|
|
57691
57692
|
weekStartsOn: v,
|
|
57692
57693
|
periods: h
|
|
57693
57694
|
})[t], [
|
|
57694
57695
|
t,
|
|
57695
57696
|
v,
|
|
57696
57697
|
h
|
|
57697
|
-
]),
|
|
57698
|
-
C(e),
|
|
57699
|
-
let t =
|
|
57700
|
-
t !==
|
|
57701
|
-
}, [
|
|
57698
|
+
]), E = I((e) => {
|
|
57699
|
+
C(e), M(T.toRangeString(e, g));
|
|
57700
|
+
let t = T.getViewDateFromDate(e instanceof Date ? e : e?.from || e?.to || y);
|
|
57701
|
+
t !== T.getViewDateFromDate(b) && x(t);
|
|
57702
|
+
}, [T, y]);
|
|
57702
57703
|
L(() => {
|
|
57703
|
-
|
|
57704
|
+
E(i);
|
|
57704
57705
|
}, [i]);
|
|
57705
|
-
let
|
|
57706
|
-
if (!
|
|
57707
|
-
let t =
|
|
57708
|
-
return t >=
|
|
57709
|
-
}, ne = (e) => {
|
|
57710
|
-
if (!te(e)) return;
|
|
57711
|
-
let t = E.navigateUIView(b, e);
|
|
57712
|
-
T(e), x(t);
|
|
57706
|
+
let D = () => T.label(b, g, _.locale), O = T.calendarView === "day" || T.calendarView === "week" ? "month-year" : T.calendarView === "month" || T.calendarView === "periods" ? "year" : null, k = T.getViewDateBounds?.(), A = qA(c, k?.min), j = JA(l, k?.max), te = O ? yL((/* @__PURE__ */ new Date()).getFullYear(), A, j, b.getFullYear()) : null, ne = (e) => {
|
|
57707
|
+
if (!te) return !0;
|
|
57708
|
+
let t = T.navigateUIView(b, e).getFullYear();
|
|
57709
|
+
return t >= te.fromYear && t <= te.toYear;
|
|
57713
57710
|
}, re = (e) => {
|
|
57714
|
-
|
|
57715
|
-
|
|
57711
|
+
if (!ne(e)) return;
|
|
57712
|
+
let t = T.navigateUIView(b, e);
|
|
57713
|
+
ee(e), x(t);
|
|
57714
|
+
}, ie = (e) => {
|
|
57715
|
+
ee(e.getTime() >= b.getTime() ? 1 : -1), x(e);
|
|
57716
|
+
}, ae = vt(vL), oe = (t) => {
|
|
57716
57717
|
let n = e === "range" && t !== null && !(t instanceof Date) && t.to === void 0;
|
|
57717
|
-
|
|
57718
|
-
},
|
|
57719
|
-
e && (e =
|
|
57720
|
-
}, [
|
|
57718
|
+
se(t), ae?.(!n);
|
|
57719
|
+
}, se = (e) => {
|
|
57720
|
+
e && (e = T.toRange(e), E(e), n?.(e));
|
|
57721
|
+
}, [ce, M] = B({
|
|
57721
57722
|
from: "",
|
|
57722
57723
|
to: ""
|
|
57723
|
-
}), [
|
|
57724
|
+
}), [N, le] = B({
|
|
57724
57725
|
from: !1,
|
|
57725
57726
|
to: !1
|
|
57726
57727
|
}), ue = (e) => {
|
|
57727
|
-
fe(e,
|
|
57728
|
-
}, de = I((e) => e ? aj(e,
|
|
57728
|
+
fe(e, ce);
|
|
57729
|
+
}, de = I((e) => e ? aj(e, T, {
|
|
57729
57730
|
minDate: c,
|
|
57730
57731
|
maxDate: l,
|
|
57731
57732
|
disabledDates: t === "day" ? u : void 0
|
|
57732
57733
|
}) : !1, [
|
|
57733
|
-
|
|
57734
|
+
T,
|
|
57734
57735
|
c,
|
|
57735
57736
|
l,
|
|
57736
57737
|
t,
|
|
57737
57738
|
u
|
|
57738
57739
|
]), fe = (e, t) => {
|
|
57739
|
-
let n =
|
|
57740
|
+
let n = T.fromString(t, g), r = !de(n?.[e]);
|
|
57740
57741
|
le((t) => ({
|
|
57741
57742
|
...t,
|
|
57742
57743
|
[e]: r
|
|
57743
|
-
})), r ||
|
|
57744
|
+
})), r || se(n);
|
|
57744
57745
|
};
|
|
57745
57746
|
L(() => {
|
|
57746
57747
|
let t = YA(S);
|
|
57747
57748
|
if (!t) return;
|
|
57748
|
-
let n = e === "range" ?
|
|
57749
|
-
m ?
|
|
57750
|
-
}, [
|
|
57751
|
-
let e = YA(S), { from: t, to: n } =
|
|
57749
|
+
let n = e === "range" ? T.toRange(t) : T.toRange(t.from);
|
|
57750
|
+
m ? E(n) : se(n);
|
|
57751
|
+
}, [T]), L(() => {
|
|
57752
|
+
let e = YA(S), { from: t, to: n } = T.toRangeString(e || {
|
|
57752
57753
|
from: /* @__PURE__ */ new Date(),
|
|
57753
57754
|
to: void 0
|
|
57754
57755
|
}, g);
|
|
57755
|
-
|
|
57756
|
+
M({
|
|
57756
57757
|
from: t || "",
|
|
57757
57758
|
to: n || ""
|
|
57758
57759
|
});
|
|
57759
|
-
}, [
|
|
57760
|
+
}, [T, S]);
|
|
57760
57761
|
let pe = (e, t) => {
|
|
57761
|
-
let n =
|
|
57762
|
-
for (let e = 0; r && e < CL && !de(r) && aj(r,
|
|
57762
|
+
let n = ce[e] ? T.fromString(ce[e], g) : void 0, r = n ? T.navigate(n.from, t) : void 0;
|
|
57763
|
+
for (let e = 0; r && e < CL && !de(r) && aj(r, T, {
|
|
57763
57764
|
minDate: c,
|
|
57764
57765
|
maxDate: l
|
|
57765
|
-
}); e++) r =
|
|
57766
|
+
}); e++) r = T.navigate(r, t);
|
|
57766
57767
|
if (de(r)) {
|
|
57767
57768
|
let t = {
|
|
57768
|
-
...
|
|
57769
|
-
[e]:
|
|
57769
|
+
...ce,
|
|
57770
|
+
[e]: T.toRangeString(r, g).from
|
|
57770
57771
|
};
|
|
57771
|
-
fe(e, t),
|
|
57772
|
+
fe(e, t), M(t);
|
|
57772
57773
|
}
|
|
57773
|
-
}, me = s && !
|
|
57774
|
+
}, me = s && !T.hideDateInput;
|
|
57774
57775
|
return /* @__PURE__ */ H("div", {
|
|
57775
57776
|
className: "flex flex-col",
|
|
57776
57777
|
children: [
|
|
57777
57778
|
me ? /* @__PURE__ */ V(EL, {
|
|
57778
57779
|
mode: e,
|
|
57779
|
-
value:
|
|
57780
|
+
value: ce,
|
|
57780
57781
|
error: {
|
|
57781
|
-
from: !!
|
|
57782
|
-
to: !!
|
|
57782
|
+
from: !!N.from,
|
|
57783
|
+
to: !!N.to
|
|
57783
57784
|
},
|
|
57784
|
-
onChange:
|
|
57785
|
+
onChange: M,
|
|
57785
57786
|
onCommit: ue,
|
|
57786
57787
|
onNavigate: pe
|
|
57787
57788
|
}) : null,
|
|
57788
57789
|
o ? /* @__PURE__ */ V(DL, {
|
|
57789
|
-
label:
|
|
57790
|
-
dropdowns:
|
|
57790
|
+
label: D(),
|
|
57791
|
+
dropdowns: O,
|
|
57791
57792
|
viewDate: b,
|
|
57792
|
-
onViewDateChange:
|
|
57793
|
-
minDate:
|
|
57794
|
-
maxDate:
|
|
57793
|
+
onViewDateChange: ie,
|
|
57794
|
+
minDate: A,
|
|
57795
|
+
maxDate: j,
|
|
57795
57796
|
compact: f,
|
|
57796
|
-
canNavigate:
|
|
57797
|
-
onNavigate:
|
|
57797
|
+
canNavigate: ne,
|
|
57798
|
+
onNavigate: re
|
|
57798
57799
|
}) : null,
|
|
57799
57800
|
/* @__PURE__ */ V("div", {
|
|
57800
57801
|
className: "relative",
|
|
57801
|
-
children:
|
|
57802
|
+
children: T.render({
|
|
57802
57803
|
mode: e,
|
|
57803
57804
|
selected: S,
|
|
57804
|
-
onSelect:
|
|
57805
|
+
onSelect: oe,
|
|
57805
57806
|
month: b,
|
|
57806
57807
|
onMonthChange: x,
|
|
57807
57808
|
motionDirection: w,
|
|
@@ -57850,7 +57851,7 @@ function ML({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
57850
57851
|
})
|
|
57851
57852
|
}), r ? null : /* @__PURE__ */ V("div", {
|
|
57852
57853
|
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]",
|
|
57853
|
-
children: /* @__PURE__ */ V(
|
|
57854
|
+
children: /* @__PURE__ */ V(D, {
|
|
57854
57855
|
variant: "ghost",
|
|
57855
57856
|
label: "Clear",
|
|
57856
57857
|
onClick: () => a(),
|
|
@@ -57879,13 +57880,13 @@ var NL = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "si
|
|
|
57879
57880
|
isEmpty: NL,
|
|
57880
57881
|
chipLabel: (e, t) => wL(jL(t.schema.options, PL).view).toString(e, t.i18n),
|
|
57881
57882
|
formHeight: 520
|
|
57882
|
-
}, IL = F((e, t) => /* @__PURE__ */ V(
|
|
57883
|
+
}, IL = F((e, t) => /* @__PURE__ */ V(ae, {
|
|
57883
57884
|
...e,
|
|
57884
57885
|
ref: t,
|
|
57885
57886
|
className: c(e.className, "animate-spin")
|
|
57886
57887
|
}));
|
|
57887
57888
|
IL.displayName = "LoadingIcon";
|
|
57888
|
-
var LL = F(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, size: a = "sm", debounceTime: o = 0, clearable: s = !1, tabIndex: c = -1, icon: l =
|
|
57889
|
+
var LL = F(({ value: e, threshold: t = 0, onChange: n, onBlur: r, onFocus: i, size: a = "sm", debounceTime: o = 0, clearable: s = !1, tabIndex: c = -1, icon: l = re, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
|
|
57889
57890
|
let v = z(null);
|
|
57890
57891
|
bt(_, () => v.current), L(() => {
|
|
57891
57892
|
let e = v.current;
|
|
@@ -57967,7 +57968,7 @@ function BL({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled:
|
|
|
57967
57968
|
onClick: i ? void 0 : n,
|
|
57968
57969
|
children: [/* @__PURE__ */ V("span", {
|
|
57969
57970
|
className: "min-w-0 flex-1",
|
|
57970
|
-
children: /* @__PURE__ */ V(
|
|
57971
|
+
children: /* @__PURE__ */ V(E, { children: e.label })
|
|
57971
57972
|
}), /* @__PURE__ */ V(zL, {
|
|
57972
57973
|
label: e.label,
|
|
57973
57974
|
isSelected: t,
|
|
@@ -58010,7 +58011,7 @@ function XL({ schema: e, search: t }) {
|
|
|
58010
58011
|
enabled: !0,
|
|
58011
58012
|
sync: !0
|
|
58012
58013
|
}
|
|
58013
|
-
} : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } =
|
|
58014
|
+
} : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } = M({
|
|
58014
58015
|
...d,
|
|
58015
58016
|
currentSearch: t
|
|
58016
58017
|
}, {}, [u]), _ = I(async (t = !1) => {
|
|
@@ -58093,11 +58094,11 @@ var rR = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
58093
58094
|
let i = a(), o = n ? `${e}. ${i.status.selected.singular}` : e;
|
|
58094
58095
|
return /* @__PURE__ */ H("div", {
|
|
58095
58096
|
className: "relative shrink-0",
|
|
58096
|
-
children: [/* @__PURE__ */ V(
|
|
58097
|
+
children: [/* @__PURE__ */ V(D, {
|
|
58097
58098
|
variant: "ghost",
|
|
58098
58099
|
size: "sm",
|
|
58099
58100
|
onClick: r,
|
|
58100
|
-
icon: t ?
|
|
58101
|
+
icon: t ? ne : cn,
|
|
58101
58102
|
label: e,
|
|
58102
58103
|
"aria-label": o,
|
|
58103
58104
|
"aria-expanded": t,
|
|
@@ -58109,39 +58110,39 @@ var rR = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
58109
58110
|
});
|
|
58110
58111
|
};
|
|
58111
58112
|
function iR({ 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, disabledHintId: h }) {
|
|
58112
|
-
let [g, _] = B(!1), [v, y] = B(null), b = a(), x = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: S, visibleChildren: C, hasMatchingChild: w } = QL(e, d, p),
|
|
58113
|
+
let [g, _] = B(!1), [v, y] = B(null), b = a(), x = (e.children?.options ?? []).length > 0, { subtreeMatchesSearch: S, visibleChildren: C, hasMatchingChild: w } = QL(e, d, p), ee = v?.revision === f ? v.expanded : w, T = d ? ee : g, D = () => {
|
|
58113
58114
|
d ? y({
|
|
58114
58115
|
revision: f,
|
|
58115
|
-
expanded: !
|
|
58116
|
+
expanded: !T
|
|
58116
58117
|
}) : _((e) => !e);
|
|
58117
|
-
},
|
|
58118
|
-
if (!
|
|
58119
|
-
let i =
|
|
58118
|
+
}, O = e.children?.filterKey, k = O && s ? s[O] ?? [] : [], A = I((t, n, r) => {
|
|
58119
|
+
if (!O || !o) return;
|
|
58120
|
+
let i = k.includes(t);
|
|
58120
58121
|
if (!i && r) return;
|
|
58121
58122
|
if (!i) {
|
|
58122
58123
|
GL(u, t, n);
|
|
58123
58124
|
let r = `${e.label} > ${n}`;
|
|
58124
|
-
qL(
|
|
58125
|
+
qL(O, t, r);
|
|
58125
58126
|
}
|
|
58126
|
-
let a = i ?
|
|
58127
|
-
o(
|
|
58127
|
+
let a = i ? k.filter((e) => e !== t) : [...k, t];
|
|
58128
|
+
o(O, a);
|
|
58128
58129
|
}, [
|
|
58130
|
+
O,
|
|
58129
58131
|
k,
|
|
58130
|
-
A,
|
|
58131
58132
|
o,
|
|
58132
58133
|
u,
|
|
58133
58134
|
e.label
|
|
58134
|
-
]),
|
|
58135
|
+
]), j = x && $L(e, s), te = b.t(T ? "actions.collapseItem" : "actions.expandItem", { title: e.label });
|
|
58135
58136
|
return /* @__PURE__ */ H("div", {
|
|
58136
58137
|
className: c("w-full", i === 0 && !r && "px-2", i === 0 && "border-0 border-b border-solid border-f1-border-secondary last:border-b-0"),
|
|
58137
58138
|
children: [/* @__PURE__ */ H("div", {
|
|
58138
58139
|
className: "flex flex-row items-center overflow-hidden min-w-0",
|
|
58139
58140
|
style: { paddingLeft: `${i * 24}px` },
|
|
58140
58141
|
children: [x ? /* @__PURE__ */ V(rR, {
|
|
58141
|
-
label:
|
|
58142
|
-
expanded:
|
|
58143
|
-
hasSelectedDescendant:
|
|
58144
|
-
onToggle:
|
|
58142
|
+
label: te,
|
|
58143
|
+
expanded: T,
|
|
58144
|
+
hasSelectedDescendant: j,
|
|
58145
|
+
onToggle: D
|
|
58145
58146
|
}) : null, /* @__PURE__ */ V("div", {
|
|
58146
58147
|
className: c("flex min-w-0 flex-1 cursor-pointer appearance-none items-center gap-1 rounded p-1.5 font-medium transition-colors hover:bg-f1-background-secondary", r && "py-1 pr-1", m && "cursor-not-allowed text-f1-foreground-secondary hover:bg-transparent", l()),
|
|
58147
58148
|
"aria-disabled": m || void 0,
|
|
@@ -58150,7 +58151,7 @@ function iR({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
58150
58151
|
onClick: m ? void 0 : n,
|
|
58151
58152
|
children: [/* @__PURE__ */ V("span", {
|
|
58152
58153
|
className: "min-w-0 flex-1",
|
|
58153
|
-
children: /* @__PURE__ */ V(
|
|
58154
|
+
children: /* @__PURE__ */ V(E, { children: e.label })
|
|
58154
58155
|
}), /* @__PURE__ */ V(zL, {
|
|
58155
58156
|
label: e.label,
|
|
58156
58157
|
isSelected: t,
|
|
@@ -58160,12 +58161,12 @@ function iR({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
58160
58161
|
})]
|
|
58161
58162
|
})
|
|
58162
58163
|
})]
|
|
58163
|
-
}),
|
|
58164
|
-
let t =
|
|
58164
|
+
}), T && x ? /* @__PURE__ */ V("div", { children: C.map((e) => {
|
|
58165
|
+
let t = k.includes(e.value);
|
|
58165
58166
|
return /* @__PURE__ */ V(iR, {
|
|
58166
58167
|
option: e,
|
|
58167
58168
|
isSelected: t,
|
|
58168
|
-
onToggle: () =>
|
|
58169
|
+
onToggle: () => A(e.value, e.label, e.disabled),
|
|
58169
58170
|
isCompactMode: r,
|
|
58170
58171
|
depth: i + 1,
|
|
58171
58172
|
onFilterChange: o,
|
|
@@ -58191,7 +58192,7 @@ function aR({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSel
|
|
|
58191
58192
|
className: c("flex w-full items-center justify-between gap-1 pb-1", d),
|
|
58192
58193
|
children: [/* @__PURE__ */ V("span", {
|
|
58193
58194
|
className: "min-w-0 flex-1",
|
|
58194
|
-
children: /* @__PURE__ */ V(
|
|
58195
|
+
children: /* @__PURE__ */ V(E, {
|
|
58195
58196
|
className: "text-f1-foreground-secondary",
|
|
58196
58197
|
children: h
|
|
58197
58198
|
})
|
|
@@ -58282,42 +58283,42 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58282
58283
|
x,
|
|
58283
58284
|
h,
|
|
58284
58285
|
C
|
|
58285
|
-
]),
|
|
58286
|
+
]), ee = R(() => [.../* @__PURE__ */ new Set([...nR(e), ...tR(h)])], [e, h]), T = R(() => ee.reduce((e, t) => {
|
|
58286
58287
|
let n = o?.[t];
|
|
58287
58288
|
return e + (Array.isArray(n) ? n.length : 0);
|
|
58288
|
-
}, 0), [
|
|
58289
|
+
}, 0), [ee, o]), E = T > 0, D = oR({
|
|
58289
58290
|
isLoading: g,
|
|
58290
58291
|
error: _,
|
|
58291
58292
|
optionCount: h.length,
|
|
58292
58293
|
hasSource: x
|
|
58293
58294
|
});
|
|
58294
|
-
if (
|
|
58295
|
-
state:
|
|
58295
|
+
if (D) return /* @__PURE__ */ V(sR, {
|
|
58296
|
+
state: D,
|
|
58296
58297
|
onRetry: () => v(!0)
|
|
58297
58298
|
});
|
|
58298
|
-
let
|
|
58299
|
+
let O = h.length > 0 || x, A = e.options.maxSelected, j = A !== void 0, te = j && t.length >= A, ne = w.filter((e) => !e.disabled), re = ne.length > 0 && ne.every((e) => t.includes(e.value)), ie = (t.length > 0 || E) && !re, ae = () => {
|
|
58299
58300
|
let e = [...t ?? []];
|
|
58300
|
-
|
|
58301
|
+
ne.forEach((t) => {
|
|
58301
58302
|
e.includes(t.value) || (e.push(t.value), GL(b, t.value, t.label));
|
|
58302
58303
|
}), n(e);
|
|
58303
|
-
},
|
|
58304
|
-
n([]), i &&
|
|
58304
|
+
}, oe = () => {
|
|
58305
|
+
n([]), i && ee.forEach((e) => {
|
|
58305
58306
|
i(e, []);
|
|
58306
58307
|
});
|
|
58307
|
-
},
|
|
58308
|
-
|
|
58309
|
-
},
|
|
58308
|
+
}, se = (e) => {
|
|
58309
|
+
j || ie ? oe() : e ? ae() : oe();
|
|
58310
|
+
}, ce = () => {
|
|
58310
58311
|
!g && y && m.current && y();
|
|
58311
|
-
},
|
|
58312
|
+
}, M = (e) => !t.includes(e.value) && (te || !!e.disabled), N = (e) => {
|
|
58312
58313
|
let r = t.includes(e.value);
|
|
58313
|
-
|
|
58314
|
-
}, le = t.length +
|
|
58314
|
+
M(e) || (r || GL(b, e.value, e.label), n(r ? t.filter((t) => t !== e.value) : [...t, e.value]));
|
|
58315
|
+
}, le = t.length + T, ue = e.options.disabledHint, de = !!ue && eR(w), fe = w.some((e) => !!e.children?.options.length);
|
|
58315
58316
|
return /* @__PURE__ */ H("div", {
|
|
58316
58317
|
className: "flex max-h-full w-full flex-col flex-1 min-h-0",
|
|
58317
58318
|
role: "group",
|
|
58318
58319
|
"aria-label": e.label,
|
|
58319
58320
|
children: [
|
|
58320
|
-
|
|
58321
|
+
O ? /* @__PURE__ */ V("div", {
|
|
58321
58322
|
className: "rounded-tr-xl p-2",
|
|
58322
58323
|
children: /* @__PURE__ */ V(LL, {
|
|
58323
58324
|
placeholder: s.filters.inFilter.searchPlaceholder,
|
|
@@ -58329,16 +58330,16 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58329
58330
|
/* @__PURE__ */ V(aR, {
|
|
58330
58331
|
selectedCount: t.length,
|
|
58331
58332
|
totalSelected: le,
|
|
58332
|
-
maxSelected:
|
|
58333
|
-
allFilteredSelected:
|
|
58334
|
-
isIndeterminate:
|
|
58335
|
-
canSelectAll:
|
|
58333
|
+
maxSelected: A,
|
|
58334
|
+
allFilteredSelected: re,
|
|
58335
|
+
isIndeterminate: ie,
|
|
58336
|
+
canSelectAll: ne.length > 0,
|
|
58336
58337
|
isCompactMode: r,
|
|
58337
|
-
onCheckedChange:
|
|
58338
|
+
onCheckedChange: se
|
|
58338
58339
|
}),
|
|
58339
58340
|
/* @__PURE__ */ H(ot, {
|
|
58340
58341
|
className: c("[&>div]:pb-2", r && "px-1", r ? "max-h-[360px]" : "flex-1 min-h-0"),
|
|
58341
|
-
onScrollBottom:
|
|
58342
|
+
onScrollBottom: ce,
|
|
58342
58343
|
scrollMargin: 50,
|
|
58343
58344
|
children: [
|
|
58344
58345
|
w.length === 0 && !g ? /* @__PURE__ */ V("div", {
|
|
@@ -58348,8 +58349,8 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58348
58349
|
fe ? w.map((e) => /* @__PURE__ */ V(iR, {
|
|
58349
58350
|
option: e,
|
|
58350
58351
|
isSelected: t.includes(e.value),
|
|
58351
|
-
onToggle: () =>
|
|
58352
|
-
disabled:
|
|
58352
|
+
onToggle: () => N(e),
|
|
58353
|
+
disabled: M(e),
|
|
58353
58354
|
disabledHintId: de ? S : void 0,
|
|
58354
58355
|
isCompactMode: r,
|
|
58355
58356
|
depth: 0,
|
|
@@ -58361,8 +58362,8 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58361
58362
|
}, String(e.value))) : w.map((e) => /* @__PURE__ */ V(BL, {
|
|
58362
58363
|
option: e,
|
|
58363
58364
|
isSelected: t.includes(e.value),
|
|
58364
|
-
onToggle: () =>
|
|
58365
|
-
disabled:
|
|
58365
|
+
onToggle: () => N(e),
|
|
58366
|
+
disabled: M(e),
|
|
58366
58367
|
disabledHintId: de ? S : void 0,
|
|
58367
58368
|
isCompactMode: r
|
|
58368
58369
|
}, String(e.value))),
|
|
@@ -58374,7 +58375,7 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58374
58375
|
}),
|
|
58375
58376
|
de ? /* @__PURE__ */ H("div", {
|
|
58376
58377
|
className: c("flex w-0 min-w-full shrink-0 items-start gap-2 border-0 border-t border-solid border-f1-border-secondary py-3 text-f1-foreground-secondary", r ? "px-2" : "px-3.5"),
|
|
58377
|
-
children: [/* @__PURE__ */ V(
|
|
58378
|
+
children: [/* @__PURE__ */ V(k, {
|
|
58378
58379
|
icon: Mn,
|
|
58379
58380
|
size: "md"
|
|
58380
58381
|
}), /* @__PURE__ */ V("p", {
|
|
@@ -58456,7 +58457,7 @@ var dR = o("Switch", uR), fR = ({ onClickArrow: e, step: t, disabled: n }) => !t
|
|
|
58456
58457
|
className: "h-3 cursor-pointer",
|
|
58457
58458
|
role: "button",
|
|
58458
58459
|
"aria-label": "Increase",
|
|
58459
|
-
children: /* @__PURE__ */ V(
|
|
58460
|
+
children: /* @__PURE__ */ V(A, {
|
|
58460
58461
|
size: "sm",
|
|
58461
58462
|
icon: un
|
|
58462
58463
|
})
|
|
@@ -58465,7 +58466,7 @@ var dR = o("Switch", uR), fR = ({ onClickArrow: e, step: t, disabled: n }) => !t
|
|
|
58465
58466
|
className: "h-3 cursor-pointer",
|
|
58466
58467
|
role: "button",
|
|
58467
58468
|
"aria-label": "Decrease",
|
|
58468
|
-
children: /* @__PURE__ */ V(
|
|
58469
|
+
children: /* @__PURE__ */ V(A, {
|
|
58469
58470
|
size: "sm",
|
|
58470
58471
|
icon: pc
|
|
58471
58472
|
})
|
|
@@ -58549,12 +58550,12 @@ function CR({ children: e, extraContent: t, inputWidth: n, trailingAction: r })
|
|
|
58549
58550
|
]
|
|
58550
58551
|
});
|
|
58551
58552
|
}
|
|
58552
|
-
var wR = F(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:
|
|
58553
|
-
let
|
|
58553
|
+
var wR = F(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: ee = !1, onBlurWithin: T, onPressEnter: E, onPressEscape: O, ...k }, A) {
|
|
58554
|
+
let j = a(), te = yt(), ne = t ?? te, [re, ie] = Pe({
|
|
58554
58555
|
prop: m?.open,
|
|
58555
58556
|
defaultProp: !1,
|
|
58556
58557
|
onChange: m?.onOpenChange
|
|
58557
|
-
}), [
|
|
58558
|
+
}), [ae, oe] = B(!1), [se, ce] = B(() => n == null ? "" : hR(n, e, r, i)), [M, N] = B(n ?? null), le = w === "inline", ue = R(() => vR(j, {
|
|
58558
58559
|
hint: g,
|
|
58559
58560
|
min: s,
|
|
58560
58561
|
max: l,
|
|
@@ -58565,20 +58566,20 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58565
58566
|
l,
|
|
58566
58567
|
le
|
|
58567
58568
|
]), de = !!f, fe = m?.commitMode === "deferred", pe = m !== void 0 || de, me = !y && h != null, he = bR(ue, _, v), ge = pe && he != null, ve = !!(b || x || S), ye = (e) => {
|
|
58568
|
-
e && ve ||
|
|
58569
|
+
e && ve || ie(e);
|
|
58569
58570
|
};
|
|
58570
58571
|
L(() => {
|
|
58571
|
-
fe &&
|
|
58572
|
+
fe && re && N(n ?? null);
|
|
58572
58573
|
}, [
|
|
58573
58574
|
fe,
|
|
58574
|
-
|
|
58575
|
+
re,
|
|
58575
58576
|
n
|
|
58576
58577
|
]);
|
|
58577
|
-
let be = fe ?
|
|
58578
|
+
let be = fe ? M : n, xe = gR(be, e, {
|
|
58578
58579
|
maxDecimals: r,
|
|
58579
58580
|
grouping: i,
|
|
58580
58581
|
units: d
|
|
58581
|
-
}), Se = R(() => fe ? (e) =>
|
|
58582
|
+
}), Se = R(() => fe ? (e) => N(e) : u, [fe, u]), Ce = I((e) => {
|
|
58582
58583
|
let t = e.nativeEvent.data;
|
|
58583
58584
|
if (!t) return;
|
|
58584
58585
|
let n = e.currentTarget, i = n.selectionStart ?? 0, a = n.selectionEnd ?? 0;
|
|
@@ -58588,16 +58589,16 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58588
58589
|
if (!t) return;
|
|
58589
58590
|
let { value: n } = t;
|
|
58590
58591
|
if (n === null) {
|
|
58591
|
-
|
|
58592
|
+
ce(t.formattedValue), Se?.(null);
|
|
58592
58593
|
return;
|
|
58593
58594
|
}
|
|
58594
58595
|
let i = Math.max(s ?? -Infinity, Math.min(l ?? Infinity, n));
|
|
58595
58596
|
if (i === n) {
|
|
58596
|
-
|
|
58597
|
+
ce(t.formattedValue), Se?.(n);
|
|
58597
58598
|
return;
|
|
58598
58599
|
}
|
|
58599
58600
|
let a = mR(i.toString(), { maxDecimals: r });
|
|
58600
|
-
|
|
58601
|
+
ce(a?.formattedValue ?? ""), Se?.(a?.value ?? null);
|
|
58601
58602
|
}, Te = (t) => () => {
|
|
58602
58603
|
if (!o) return;
|
|
58603
58604
|
if (be == null) return we(hR(o, e, r));
|
|
@@ -58605,35 +58606,35 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58605
58606
|
s != null && n < s || l != null && n > l || we(hR(n, e, r));
|
|
58606
58607
|
};
|
|
58607
58608
|
L(() => {
|
|
58608
|
-
if (i && !
|
|
58609
|
-
|
|
58609
|
+
if (i && !ae) {
|
|
58610
|
+
ce(be == null ? "" : hR(be, e, r, !0));
|
|
58610
58611
|
return;
|
|
58611
58612
|
}
|
|
58612
|
-
let t = mR(
|
|
58613
|
-
be !== void 0 && be !== (t?.value ?? null) &&
|
|
58613
|
+
let t = mR(se, { maxDecimals: r });
|
|
58614
|
+
be !== void 0 && be !== (t?.value ?? null) && ce(be == null ? "" : hR(be, e, r));
|
|
58614
58615
|
}, [
|
|
58615
|
-
|
|
58616
|
+
se,
|
|
58616
58617
|
be,
|
|
58617
58618
|
e,
|
|
58618
58619
|
r,
|
|
58619
|
-
|
|
58620
|
+
ae,
|
|
58620
58621
|
i
|
|
58621
58622
|
]);
|
|
58622
58623
|
let Ee = he ? { type: he.type } : void 0, De = /* @__PURE__ */ V("div", {
|
|
58623
58624
|
className: c("group relative", { "h-full w-full": le }),
|
|
58624
58625
|
children: /* @__PURE__ */ V(_L, {
|
|
58625
58626
|
type: "text",
|
|
58626
|
-
ref:
|
|
58627
|
-
id:
|
|
58628
|
-
value:
|
|
58627
|
+
ref: A,
|
|
58628
|
+
id: ne,
|
|
58629
|
+
value: se,
|
|
58629
58630
|
inputMode: r === 0 ? "numeric" : "decimal",
|
|
58630
58631
|
onChange: we,
|
|
58631
|
-
...
|
|
58632
|
+
...k,
|
|
58632
58633
|
variant: w,
|
|
58633
|
-
editing:
|
|
58634
|
+
editing: ee,
|
|
58634
58635
|
inlineText: xe,
|
|
58635
|
-
onKeyDown: yR(le,
|
|
58636
|
-
onBlurWithin:
|
|
58636
|
+
onKeyDown: yR(le, E, O),
|
|
58637
|
+
onBlurWithin: T,
|
|
58637
58638
|
label: pe ? h ?? "" : h,
|
|
58638
58639
|
hideLabel: y || pe,
|
|
58639
58640
|
hint: pe ? "" : ue,
|
|
@@ -58642,9 +58643,9 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58642
58643
|
disabled: b,
|
|
58643
58644
|
loading: S,
|
|
58644
58645
|
readonly: x,
|
|
58645
|
-
onFocus: () =>
|
|
58646
|
+
onFocus: () => oe(!0),
|
|
58646
58647
|
onBlur: (e) => {
|
|
58647
|
-
|
|
58648
|
+
oe(!1), C?.(e);
|
|
58648
58649
|
},
|
|
58649
58650
|
onBeforeInput: Ce,
|
|
58650
58651
|
appendTag: d,
|
|
@@ -58656,13 +58657,13 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58656
58657
|
})
|
|
58657
58658
|
});
|
|
58658
58659
|
if (m !== void 0) {
|
|
58659
|
-
let { icon: e = rn, side: t = "bottom", align: n = "start", triggerLabel: r, apply: i } = m, a = fe, o = i?.label ??
|
|
58660
|
+
let { icon: e = rn, side: t = "bottom", align: n = "start", triggerLabel: r, apply: i } = m, a = fe, o = i?.label ?? j.actions.apply, s = i?.icon ?? _e, l = i?.closeOnApply ?? !0;
|
|
58660
58661
|
return /* @__PURE__ */ H(Qe, {
|
|
58661
|
-
open:
|
|
58662
|
+
open: re,
|
|
58662
58663
|
onOpenChange: ye,
|
|
58663
58664
|
children: [/* @__PURE__ */ V(qe, {
|
|
58664
58665
|
asChild: !0,
|
|
58665
|
-
children: /* @__PURE__ */ V(
|
|
58666
|
+
children: /* @__PURE__ */ V(D, {
|
|
58666
58667
|
variant: "outline",
|
|
58667
58668
|
icon: e,
|
|
58668
58669
|
disabled: ve,
|
|
@@ -58678,18 +58679,18 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58678
58679
|
children: [
|
|
58679
58680
|
me ? /* @__PURE__ */ V(xR, {
|
|
58680
58681
|
label: h,
|
|
58681
|
-
htmlFor:
|
|
58682
|
+
htmlFor: ne,
|
|
58682
58683
|
disabled: ve
|
|
58683
58684
|
}) : null,
|
|
58684
58685
|
/* @__PURE__ */ V(CR, {
|
|
58685
58686
|
extraContent: f,
|
|
58686
58687
|
inputWidth: p,
|
|
58687
|
-
trailingAction: a ? /* @__PURE__ */ V(
|
|
58688
|
+
trailingAction: a ? /* @__PURE__ */ V(D, {
|
|
58688
58689
|
variant: "default",
|
|
58689
58690
|
icon: s,
|
|
58690
58691
|
label: o,
|
|
58691
58692
|
onClick: () => {
|
|
58692
|
-
u?.(
|
|
58693
|
+
u?.(M), l && ye(!1);
|
|
58693
58694
|
}
|
|
58694
58695
|
}) : void 0,
|
|
58695
58696
|
children: De
|
|
@@ -58705,7 +58706,7 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58705
58706
|
children: [
|
|
58706
58707
|
me ? /* @__PURE__ */ V(xR, {
|
|
58707
58708
|
label: h,
|
|
58708
|
-
htmlFor:
|
|
58709
|
+
htmlFor: ne,
|
|
58709
58710
|
disabled: ve
|
|
58710
58711
|
}) : null,
|
|
58711
58712
|
/* @__PURE__ */ V(CR, {
|
|
@@ -58841,7 +58842,7 @@ function TR({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58841
58842
|
}) : null]
|
|
58842
58843
|
}), r ? null : /* @__PURE__ */ V("div", {
|
|
58843
58844
|
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]",
|
|
58844
|
-
children: /* @__PURE__ */ V(
|
|
58845
|
+
children: /* @__PURE__ */ V(D, {
|
|
58845
58846
|
variant: "ghost",
|
|
58846
58847
|
label: o.actions.clear,
|
|
58847
58848
|
onClick: () => c(),
|
|
@@ -59033,7 +59034,7 @@ function IR({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
|
|
|
59033
59034
|
n,
|
|
59034
59035
|
d,
|
|
59035
59036
|
e
|
|
59036
|
-
]), /* @__PURE__ */ V(
|
|
59037
|
+
]), /* @__PURE__ */ V(T.div, {
|
|
59037
59038
|
layout: !0,
|
|
59038
59039
|
initial: !u && {
|
|
59039
59040
|
opacity: 0,
|
|
@@ -59078,7 +59079,7 @@ function RR({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
59078
59079
|
children: [s !== void 0 && h ? /* @__PURE__ */ V(Ic, { text: d.t(s === 1 ? "filters.resultsFor.one" : "filters.resultsFor.other", { count: s }) }) : null, /* @__PURE__ */ H(b, {
|
|
59079
59080
|
presenceAffectsLayout: !0,
|
|
59080
59081
|
initial: !1,
|
|
59081
|
-
children: [c ? /* @__PURE__ */ V(
|
|
59082
|
+
children: [c ? /* @__PURE__ */ V(T.div, {
|
|
59082
59083
|
layout: !0,
|
|
59083
59084
|
initial: !f && {
|
|
59084
59085
|
opacity: 0,
|
|
@@ -59118,7 +59119,7 @@ function RR({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
59118
59119
|
}, `filter-${String(i)}`);
|
|
59119
59120
|
}) : null]
|
|
59120
59121
|
})]
|
|
59121
|
-
}), u ? null : /* @__PURE__ */ V(
|
|
59122
|
+
}), u ? null : /* @__PURE__ */ V(D, {
|
|
59122
59123
|
variant: "neutral",
|
|
59123
59124
|
label: d.actions.clear,
|
|
59124
59125
|
size: "sm",
|
|
@@ -59171,11 +59172,11 @@ function BR({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDesc
|
|
|
59171
59172
|
children: [/* @__PURE__ */ H("div", {
|
|
59172
59173
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
59173
59174
|
children: [
|
|
59174
|
-
/* @__PURE__ */ V(
|
|
59175
|
+
/* @__PURE__ */ V(E, {
|
|
59175
59176
|
className: "flex-1 text-left text-f1-foreground",
|
|
59176
59177
|
children: e
|
|
59177
59178
|
}),
|
|
59178
|
-
/* @__PURE__ */ V(b, { children: t ? /* @__PURE__ */ V(
|
|
59179
|
+
/* @__PURE__ */ V(b, { children: t ? /* @__PURE__ */ V(T.span, {
|
|
59179
59180
|
className: "h-2 w-2 shrink-0 rounded-full bg-f1-background-selected-bold",
|
|
59180
59181
|
initial: !u && {
|
|
59181
59182
|
opacity: 0,
|
|
@@ -59190,7 +59191,7 @@ function BR({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDesc
|
|
|
59190
59191
|
scale: .7
|
|
59191
59192
|
}
|
|
59192
59193
|
}) : null }),
|
|
59193
|
-
r ? /* @__PURE__ */ V(
|
|
59194
|
+
r ? /* @__PURE__ */ V(k, { icon: cn }) : null
|
|
59194
59195
|
]
|
|
59195
59196
|
}), t ? /* @__PURE__ */ V("span", {
|
|
59196
59197
|
id: i,
|
|
@@ -59246,12 +59247,12 @@ function VR({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
59246
59247
|
children: /* @__PURE__ */ H("div", {
|
|
59247
59248
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
59248
59249
|
children: [
|
|
59249
|
-
u ? /* @__PURE__ */ V(
|
|
59250
|
-
/* @__PURE__ */ V(
|
|
59250
|
+
u ? /* @__PURE__ */ V(k, { icon: u }) : null,
|
|
59251
|
+
/* @__PURE__ */ V(E, {
|
|
59251
59252
|
className: "flex-1 text-left text-f1-foreground",
|
|
59252
59253
|
children: s
|
|
59253
59254
|
}),
|
|
59254
|
-
i ? /* @__PURE__ */ V(
|
|
59255
|
+
i ? /* @__PURE__ */ V(k, { icon: cn }) : null
|
|
59255
59256
|
]
|
|
59256
59257
|
})
|
|
59257
59258
|
}) : null, y.map((e, t) => {
|
|
@@ -59280,7 +59281,7 @@ function VR({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
59280
59281
|
}),
|
|
59281
59282
|
i ? /* @__PURE__ */ V("div", {
|
|
59282
59283
|
className: "-mx-2 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
59283
|
-
children: /* @__PURE__ */ V(
|
|
59284
|
+
children: /* @__PURE__ */ V(D, {
|
|
59284
59285
|
onClick: o,
|
|
59285
59286
|
label: p.filters.applyFilters
|
|
59286
59287
|
})
|
|
@@ -59326,11 +59327,11 @@ function HR({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
59326
59327
|
]
|
|
59327
59328
|
}), u || s ? /* @__PURE__ */ H("div", {
|
|
59328
59329
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
59329
|
-
children: [s ? /* @__PURE__ */ V(
|
|
59330
|
+
children: [s ? /* @__PURE__ */ V(D, {
|
|
59330
59331
|
onClick: s,
|
|
59331
59332
|
label: _.collections.emptyStates.noResults.clearFilters,
|
|
59332
59333
|
variant: "outline"
|
|
59333
|
-
}) : null, u ? /* @__PURE__ */ V(
|
|
59334
|
+
}) : null, u ? /* @__PURE__ */ V(D, {
|
|
59334
59335
|
onClick: o,
|
|
59335
59336
|
label: d ?? _.filters.applyFilters
|
|
59336
59337
|
}) : null]
|
|
@@ -59365,7 +59366,7 @@ function qR({ id: e, text: t }) {
|
|
|
59365
59366
|
className: "sr-only"
|
|
59366
59367
|
});
|
|
59367
59368
|
}
|
|
59368
|
-
var JR = F((e, t) => /* @__PURE__ */ V(
|
|
59369
|
+
var JR = F((e, t) => /* @__PURE__ */ V(ee, {
|
|
59369
59370
|
...e,
|
|
59370
59371
|
ref: t
|
|
59371
59372
|
}));
|
|
@@ -59374,62 +59375,62 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59374
59375
|
let f = t ?? e, p = Object.keys(e)[0] ?? null, [m, h] = B(c === "compact" ? null : p), [g, _] = B(!1), v = () => {
|
|
59375
59376
|
h(null), _(!0);
|
|
59376
59377
|
}, y = (e) => {
|
|
59377
|
-
|
|
59378
|
+
A((t) => ({
|
|
59378
59379
|
...t,
|
|
59379
59380
|
...e
|
|
59380
59381
|
}));
|
|
59381
59382
|
}, x = (e) => {
|
|
59382
59383
|
_(!1), h(e);
|
|
59383
|
-
}, S = a(), C = vt(tP), w = C.portalContainer && (C.position === "center" || C.position === "fullscreen") ? C.portalContainer : void 0, [
|
|
59384
|
+
}, S = a(), C = vt(tP), w = C.portalContainer && (C.position === "center" || C.position === "fullscreen") ? C.portalContainer : void 0, [E, O] = Pe({
|
|
59384
59385
|
prop: i,
|
|
59385
59386
|
defaultProp: !1,
|
|
59386
59387
|
onChange: o
|
|
59387
|
-
}), [
|
|
59388
|
+
}), [k, A] = B(n), j = z(E);
|
|
59388
59389
|
L(() => {
|
|
59389
|
-
|
|
59390
|
-
}, [
|
|
59391
|
-
let
|
|
59392
|
-
let r =
|
|
59393
|
-
|
|
59394
|
-
|
|
59395
|
-
}, 150)) :
|
|
59396
|
-
},
|
|
59390
|
+
j.current = E;
|
|
59391
|
+
}, [E]);
|
|
59392
|
+
let te = z(!1), ne = (e, t) => {
|
|
59393
|
+
let r = j.current;
|
|
59394
|
+
te.current || (r ? (te.current = !0, A(n), O(!1), u?.onPanelClose?.(t), setTimeout(() => {
|
|
59395
|
+
te.current = !1;
|
|
59396
|
+
}, 150)) : O(e));
|
|
59397
|
+
}, re = (e) => ne(e, !1), ie = z(!1);
|
|
59397
59398
|
bt(u?.panelRef, () => ({
|
|
59398
59399
|
open: () => {
|
|
59399
|
-
d || (c !== "compact" && v(),
|
|
59400
|
+
d || (c !== "compact" && v(), j.current || (ie.current = !0, O(!0)));
|
|
59400
59401
|
},
|
|
59401
59402
|
close: () => {
|
|
59402
|
-
|
|
59403
|
+
j.current && re(!1);
|
|
59403
59404
|
}
|
|
59404
59405
|
}));
|
|
59405
|
-
let
|
|
59406
|
+
let ae = z(n);
|
|
59406
59407
|
L(() => {
|
|
59407
|
-
(0, GR.default)(
|
|
59408
|
+
(0, GR.default)(ae.current, n) || (ae.current = n, A(n));
|
|
59408
59409
|
}, [n]);
|
|
59409
|
-
let
|
|
59410
|
-
|
|
59410
|
+
let oe = (e, t) => {
|
|
59411
|
+
A((n) => ({
|
|
59411
59412
|
...n,
|
|
59412
59413
|
[e]: t
|
|
59413
59414
|
}));
|
|
59414
|
-
}, oe = () => {
|
|
59415
|
-
g && u?.onApply?.() === !1 || (r(UR(f, A, S)), te(!1, !0));
|
|
59416
59415
|
}, se = () => {
|
|
59417
|
-
|
|
59418
|
-
}, N = () => {
|
|
59419
|
-
m ? h(null) : (r(UR(f, A, S)), te(!1, !0));
|
|
59416
|
+
g && u?.onApply?.() === !1 || (r(UR(f, k, S)), ne(!1, !0));
|
|
59420
59417
|
}, ce = () => {
|
|
59421
|
-
|
|
59418
|
+
A(WR(f)), u?.chip?.onRemove();
|
|
59419
|
+
}, M = () => {
|
|
59420
|
+
m ? h(null) : (r(UR(f, k, S)), ne(!1, !0));
|
|
59421
|
+
}, N = () => {
|
|
59422
|
+
A(n), re(!1);
|
|
59422
59423
|
}, le = () => {
|
|
59423
|
-
|
|
59424
|
+
M();
|
|
59424
59425
|
};
|
|
59425
59426
|
L(() => {
|
|
59426
|
-
let t =
|
|
59427
|
-
|
|
59428
|
-
let n = () => Object.entries(
|
|
59427
|
+
let t = ie.current;
|
|
59428
|
+
E && (ie.current = !1);
|
|
59429
|
+
let n = () => Object.entries(k || {}).find(([t, n]) => e[t] ? !PR(e[t].type).isEmpty(n, {
|
|
59429
59430
|
schema: e[t],
|
|
59430
59431
|
i18n: S
|
|
59431
59432
|
}) : !1);
|
|
59432
|
-
if (
|
|
59433
|
+
if (E && c === "default") {
|
|
59433
59434
|
let r = n();
|
|
59434
59435
|
if (u && (t || u.active || !r)) {
|
|
59435
59436
|
_(!0), h(null);
|
|
@@ -59441,7 +59442,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59441
59442
|
h(t);
|
|
59442
59443
|
}
|
|
59443
59444
|
}
|
|
59444
|
-
}, [
|
|
59445
|
+
}, [E]);
|
|
59445
59446
|
let ue = R(() => Object.entries(e).reduce((e, [t, n]) => {
|
|
59446
59447
|
let r = PR(n.type);
|
|
59447
59448
|
return Math.max(e, r?.formHeight || KR);
|
|
@@ -59451,7 +59452,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59451
59452
|
S
|
|
59452
59453
|
]), me = pe.length === 0 ? void 0 : pe.length, he = R(() => pe.length > 0 ? S.t("filters.activeFilters", { filters: pe.map((e) => f[e].label).join(", ") }) : void 0, [pe, f]);
|
|
59453
59454
|
if (c === "inline") {
|
|
59454
|
-
let t = !!Object.values(
|
|
59455
|
+
let t = !!Object.values(k).length;
|
|
59455
59456
|
return /* @__PURE__ */ H("div", {
|
|
59456
59457
|
className: "flex items-center gap-2",
|
|
59457
59458
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -59465,17 +59466,17 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59465
59466
|
text: he
|
|
59466
59467
|
}) : void 0,
|
|
59467
59468
|
icon: En,
|
|
59468
|
-
pressed:
|
|
59469
|
+
pressed: E,
|
|
59469
59470
|
disabled: d,
|
|
59470
|
-
onClick: () =>
|
|
59471
|
-
"aria-controls":
|
|
59471
|
+
onClick: () => re(!E),
|
|
59472
|
+
"aria-controls": E ? de : void 0,
|
|
59472
59473
|
hideLabel: !0,
|
|
59473
59474
|
tooltip: he
|
|
59474
59475
|
}), t ? /* @__PURE__ */ V("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]
|
|
59475
59476
|
}), /* @__PURE__ */ V(b, {
|
|
59476
59477
|
mode: "popLayout",
|
|
59477
59478
|
propagate: !1,
|
|
59478
|
-
children:
|
|
59479
|
+
children: E ? /* @__PURE__ */ V(T.div, {
|
|
59479
59480
|
initial: {
|
|
59480
59481
|
opacity: 0,
|
|
59481
59482
|
y: 8
|
|
@@ -59499,13 +59500,13 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59499
59500
|
children: [
|
|
59500
59501
|
/* @__PURE__ */ H("div", {
|
|
59501
59502
|
className: "flex shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary px-2 py-1.5",
|
|
59502
|
-
children: [/* @__PURE__ */ V(
|
|
59503
|
+
children: [/* @__PURE__ */ V(ee, {
|
|
59503
59504
|
variant: "ghost",
|
|
59504
59505
|
icon: $t,
|
|
59505
59506
|
label: S.filters.label,
|
|
59506
59507
|
hideLabel: !0,
|
|
59507
59508
|
size: "sm",
|
|
59508
|
-
onClick:
|
|
59509
|
+
onClick: N
|
|
59509
59510
|
}), /* @__PURE__ */ V("span", {
|
|
59510
59511
|
className: "text-base font-medium text-f1-foreground",
|
|
59511
59512
|
children: S.filters.label
|
|
@@ -59516,10 +59517,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59516
59517
|
children: [
|
|
59517
59518
|
/* @__PURE__ */ V(VR, {
|
|
59518
59519
|
definition: e,
|
|
59519
|
-
tempFilters:
|
|
59520
|
+
tempFilters: k,
|
|
59520
59521
|
selectedFilterKey: m,
|
|
59521
59522
|
onFilterSelect: x,
|
|
59522
|
-
onClickApplyFilters:
|
|
59523
|
+
onClickApplyFilters: se,
|
|
59523
59524
|
quickFilterLabel: u?.label,
|
|
59524
59525
|
quickFilterIcon: u?.icon,
|
|
59525
59526
|
quickFilterSelected: g,
|
|
@@ -59534,16 +59535,16 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59534
59535
|
children: /* @__PURE__ */ V(zR, {
|
|
59535
59536
|
selectedFilterKey: m,
|
|
59536
59537
|
definition: e,
|
|
59537
|
-
tempFilters:
|
|
59538
|
-
onFilterChange:
|
|
59538
|
+
tempFilters: k,
|
|
59539
|
+
onFilterChange: oe
|
|
59539
59540
|
})
|
|
59540
59541
|
}) : null
|
|
59541
59542
|
]
|
|
59542
59543
|
}),
|
|
59543
59544
|
/* @__PURE__ */ V("div", {
|
|
59544
59545
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2 bg-f1-background",
|
|
59545
|
-
children: /* @__PURE__ */ V(
|
|
59546
|
-
onClick:
|
|
59546
|
+
children: /* @__PURE__ */ V(D, {
|
|
59547
|
+
onClick: se,
|
|
59547
59548
|
label: S.filters.applyFilters
|
|
59548
59549
|
})
|
|
59549
59550
|
})
|
|
@@ -59554,19 +59555,19 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59554
59555
|
});
|
|
59555
59556
|
}
|
|
59556
59557
|
if (c === "compact") {
|
|
59557
|
-
let t = !!Object.values(
|
|
59558
|
+
let t = !!Object.values(k).length, n = m ? S.t("filters.filteringBy", { label: e[m].label }) : S.t("filters.availableFilters"), r = /* @__PURE__ */ H("div", {
|
|
59558
59559
|
className: "flex items-center gap-2 pl-1.5 py-1.5",
|
|
59559
|
-
children: [/* @__PURE__ */ V(
|
|
59560
|
+
children: [/* @__PURE__ */ V(D, {
|
|
59560
59561
|
label: "Back",
|
|
59561
59562
|
icon: $t,
|
|
59562
59563
|
hideLabel: !0,
|
|
59563
59564
|
variant: "ghost",
|
|
59564
59565
|
size: "sm",
|
|
59565
|
-
onClick:
|
|
59566
|
+
onClick: M
|
|
59566
59567
|
}), n]
|
|
59567
59568
|
}), i = /* @__PURE__ */ V(Ct, { children: m ? /* @__PURE__ */ V("div", {
|
|
59568
59569
|
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",
|
|
59569
|
-
children: /* @__PURE__ */ V(
|
|
59570
|
+
children: /* @__PURE__ */ V(D, {
|
|
59570
59571
|
onClick: le,
|
|
59571
59572
|
label: S.filters.applySelection
|
|
59572
59573
|
})
|
|
@@ -59584,17 +59585,17 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59584
59585
|
text: he
|
|
59585
59586
|
}) : void 0,
|
|
59586
59587
|
icon: En,
|
|
59587
|
-
pressed:
|
|
59588
|
+
pressed: E,
|
|
59588
59589
|
disabled: d,
|
|
59589
|
-
onClick: () =>
|
|
59590
|
-
"aria-controls":
|
|
59590
|
+
onClick: () => re(!E),
|
|
59591
|
+
"aria-controls": E ? de : void 0,
|
|
59591
59592
|
hideLabel: !0,
|
|
59592
59593
|
tooltip: he
|
|
59593
59594
|
}), t ? /* @__PURE__ */ V("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]
|
|
59594
59595
|
}), /* @__PURE__ */ V(b, {
|
|
59595
59596
|
mode: "popLayout",
|
|
59596
59597
|
propagate: !1,
|
|
59597
|
-
children:
|
|
59598
|
+
children: E ? /* @__PURE__ */ V(T.div, {
|
|
59598
59599
|
initial: {
|
|
59599
59600
|
opacity: 0,
|
|
59600
59601
|
y: 8
|
|
@@ -59619,7 +59620,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59619
59620
|
r,
|
|
59620
59621
|
/* @__PURE__ */ V("div", {
|
|
59621
59622
|
className: "flex flex-1 min-h-0 max-h-full",
|
|
59622
|
-
children: m ? /* @__PURE__ */ V(
|
|
59623
|
+
children: m ? /* @__PURE__ */ V(T.div, {
|
|
59623
59624
|
initial: { opacity: 0 },
|
|
59624
59625
|
animate: { opacity: 1 },
|
|
59625
59626
|
exit: { opacity: 0 },
|
|
@@ -59628,11 +59629,11 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59628
59629
|
children: /* @__PURE__ */ V(zR, {
|
|
59629
59630
|
selectedFilterKey: m,
|
|
59630
59631
|
definition: e,
|
|
59631
|
-
tempFilters:
|
|
59632
|
-
onFilterChange:
|
|
59632
|
+
tempFilters: k,
|
|
59633
|
+
onFilterChange: oe,
|
|
59633
59634
|
isCompactMode: !0
|
|
59634
59635
|
})
|
|
59635
|
-
}, "filter-content") : /* @__PURE__ */ V(
|
|
59636
|
+
}, "filter-content") : /* @__PURE__ */ V(T.div, {
|
|
59636
59637
|
initial: { opacity: 0 },
|
|
59637
59638
|
animate: { opacity: 1 },
|
|
59638
59639
|
exit: { opacity: 0 },
|
|
@@ -59640,10 +59641,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59640
59641
|
className: "h-full w-full bg-f1-background",
|
|
59641
59642
|
children: /* @__PURE__ */ V(VR, {
|
|
59642
59643
|
definition: e,
|
|
59643
|
-
tempFilters:
|
|
59644
|
+
tempFilters: k,
|
|
59644
59645
|
selectedFilterKey: m,
|
|
59645
59646
|
onFilterSelect: (e) => h(e),
|
|
59646
|
-
onClickApplyFilters:
|
|
59647
|
+
onClickApplyFilters: se,
|
|
59647
59648
|
isCompactMode: !0
|
|
59648
59649
|
})
|
|
59649
59650
|
}, "filter-list")
|
|
@@ -59658,8 +59659,8 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59658
59659
|
return /* @__PURE__ */ V("div", {
|
|
59659
59660
|
className: "flex items-center gap-2",
|
|
59660
59661
|
children: /* @__PURE__ */ H(Qe, {
|
|
59661
|
-
open:
|
|
59662
|
-
onOpenChange:
|
|
59662
|
+
open: E,
|
|
59663
|
+
onOpenChange: re,
|
|
59663
59664
|
modal: !0,
|
|
59664
59665
|
children: [/* @__PURE__ */ V(qe, {
|
|
59665
59666
|
asChild: !0,
|
|
@@ -59672,10 +59673,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59672
59673
|
text: he
|
|
59673
59674
|
}) : void 0,
|
|
59674
59675
|
icon: En,
|
|
59675
|
-
pressed:
|
|
59676
|
+
pressed: E,
|
|
59676
59677
|
disabled: d,
|
|
59677
59678
|
hideLabel: s,
|
|
59678
|
-
"aria-controls":
|
|
59679
|
+
"aria-controls": E ? de : void 0,
|
|
59679
59680
|
counterValue: l ? me : void 0
|
|
59680
59681
|
})
|
|
59681
59682
|
}), /* @__PURE__ */ V(Je, {
|
|
@@ -59687,16 +59688,16 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59687
59688
|
container: w,
|
|
59688
59689
|
children: /* @__PURE__ */ V(HR, {
|
|
59689
59690
|
filters: e,
|
|
59690
|
-
tempFilters:
|
|
59691
|
+
tempFilters: k,
|
|
59691
59692
|
selectedFilterKey: m,
|
|
59692
59693
|
onFilterSelect: x,
|
|
59693
59694
|
quickFilter: u,
|
|
59694
59695
|
quickFilterSelected: g,
|
|
59695
59696
|
onQuickFilterSelect: v,
|
|
59696
59697
|
onStageFilters: y,
|
|
59697
|
-
onFilterChange:
|
|
59698
|
-
onApply:
|
|
59699
|
-
onClear:
|
|
59698
|
+
onFilterChange: oe,
|
|
59699
|
+
onApply: se,
|
|
59700
|
+
onClear: ce,
|
|
59700
59701
|
height: ue || KR
|
|
59701
59702
|
})
|
|
59702
59703
|
})]
|
|
@@ -59704,7 +59705,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59704
59705
|
});
|
|
59705
59706
|
}
|
|
59706
59707
|
var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: o, disabled: l = !1 }) => {
|
|
59707
|
-
let u = a(), f = !!o && !l, h = !!n && !l, [_, v] = B(!1), y = /* @__PURE__ */ H(
|
|
59708
|
+
let u = a(), f = !!o && !l, h = !!n && !l, [_, v] = B(!1), y = /* @__PURE__ */ H(T.label, {
|
|
59708
59709
|
layout: !0,
|
|
59709
59710
|
transition: {
|
|
59710
59711
|
duration: .15,
|
|
@@ -59735,7 +59736,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59735
59736
|
}),
|
|
59736
59737
|
f ? /* @__PURE__ */ V(b, {
|
|
59737
59738
|
initial: !1,
|
|
59738
|
-
children: _ ? /* @__PURE__ */ V(
|
|
59739
|
+
children: _ ? /* @__PURE__ */ V(T.span, {
|
|
59739
59740
|
className: "-my-0.5 -ml-1.5 -mr-1 flex items-center gap-0.5 overflow-hidden",
|
|
59740
59741
|
initial: {
|
|
59741
59742
|
opacity: 0,
|
|
@@ -59753,12 +59754,12 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59753
59754
|
duration: .15,
|
|
59754
59755
|
ease: "easeOut"
|
|
59755
59756
|
},
|
|
59756
|
-
children: o ? /* @__PURE__ */ V(
|
|
59757
|
+
children: o ? /* @__PURE__ */ V(D, {
|
|
59757
59758
|
variant: "ghost",
|
|
59758
59759
|
size: "sm",
|
|
59759
59760
|
hideLabel: !0,
|
|
59760
59761
|
label: u.actions.editPreset,
|
|
59761
|
-
icon:
|
|
59762
|
+
icon: oe,
|
|
59762
59763
|
onClick: ((e) => (t) => {
|
|
59763
59764
|
t.preventDefault(), t.stopPropagation(), e();
|
|
59764
59765
|
})(o)
|
|
@@ -59827,8 +59828,8 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59827
59828
|
"data-visible": n,
|
|
59828
59829
|
onClick: () => p?.(),
|
|
59829
59830
|
className: c("flex shrink-0 cursor-pointer items-center gap-1 whitespace-nowrap rounded px-2.5 py-1.5 font-medium text-f1-foreground opacity-60 outline-dashed outline-1 outline-f1-border transition-opacity hover:opacity-100", l()),
|
|
59830
|
-
children: [/* @__PURE__ */ V(
|
|
59831
|
-
icon:
|
|
59831
|
+
children: [/* @__PURE__ */ V(k, {
|
|
59832
|
+
icon: se,
|
|
59832
59833
|
size: "sm"
|
|
59833
59834
|
}), h.actions.saveAsPreset]
|
|
59834
59835
|
});
|
|
@@ -59849,8 +59850,8 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59849
59850
|
type: "button",
|
|
59850
59851
|
onClick: () => p?.(),
|
|
59851
59852
|
className: c("flex w-full cursor-pointer items-center gap-1 rounded-sm p-2 text-left font-medium text-f1-foreground opacity-70 hover:bg-f1-background-secondary hover:opacity-100", l()),
|
|
59852
|
-
children: [/* @__PURE__ */ V(
|
|
59853
|
-
icon:
|
|
59853
|
+
children: [/* @__PURE__ */ V(k, {
|
|
59854
|
+
icon: se,
|
|
59854
59855
|
size: "sm"
|
|
59855
59856
|
}), h.actions.saveAsPreset]
|
|
59856
59857
|
});
|
|
@@ -59872,7 +59873,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59872
59873
|
}, w = (e, t, n = !0) => /* @__PURE__ */ V(s, {
|
|
59873
59874
|
className: "h-8 w-32 rounded-md",
|
|
59874
59875
|
"data-visible": n
|
|
59875
|
-
}, t),
|
|
59876
|
+
}, t), ee = (e, t) => /* @__PURE__ */ H("div", {
|
|
59876
59877
|
className: "flex w-full items-center justify-between rounded-sm p-2",
|
|
59877
59878
|
"data-visible": !0,
|
|
59878
59879
|
children: [/* @__PURE__ */ V(s, { className: "h-4 w-24" }), /* @__PURE__ */ V(s, { className: "h-4 w-6" })]
|
|
@@ -59882,7 +59883,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59882
59883
|
return /* @__PURE__ */ V(le, {
|
|
59883
59884
|
items: e,
|
|
59884
59885
|
renderListItem: w,
|
|
59885
|
-
renderDropdownItem:
|
|
59886
|
+
renderDropdownItem: ee,
|
|
59886
59887
|
className: "min-w-0 flex-1"
|
|
59887
59888
|
});
|
|
59888
59889
|
}
|
|
@@ -60113,7 +60114,7 @@ var cz = sz, lz = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
|
60113
60114
|
className: "flex gap-1 border-0 p-2",
|
|
60114
60115
|
children: /* @__PURE__ */ V(b, {
|
|
60115
60116
|
mode: "popLayout",
|
|
60116
|
-
children: r.map((e) => /* @__PURE__ */ V(
|
|
60117
|
+
children: r.map((e) => /* @__PURE__ */ V(T.div, {
|
|
60117
60118
|
layout: !0,
|
|
60118
60119
|
initial: {
|
|
60119
60120
|
opacity: 0,
|
|
@@ -60177,7 +60178,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60177
60178
|
currentGrouping: o,
|
|
60178
60179
|
onGroupingChange: s
|
|
60179
60180
|
})]
|
|
60180
|
-
}), /* @__PURE__ */ V(b, { children: c && dz(l) ? /* @__PURE__ */ V(
|
|
60181
|
+
}), /* @__PURE__ */ V(b, { children: c && dz(l) ? /* @__PURE__ */ V(T.div, {
|
|
60181
60182
|
initial: {
|
|
60182
60183
|
opacity: 0,
|
|
60183
60184
|
height: 0
|
|
@@ -60234,10 +60235,10 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60234
60235
|
x.current = !0, S();
|
|
60235
60236
|
}, [S]), w = I(() => {
|
|
60236
60237
|
S(), x.current = !1;
|
|
60237
|
-
}, [S]),
|
|
60238
|
+
}, [S]), ee = z(t);
|
|
60238
60239
|
L(() => {
|
|
60239
|
-
let n =
|
|
60240
|
-
if (
|
|
60240
|
+
let n = ee.current;
|
|
60241
|
+
if (ee.current = t, !e || !n || t || !c()) return;
|
|
60241
60242
|
m && f === "" && s(), y();
|
|
60242
60243
|
let r = document.activeElement;
|
|
60243
60244
|
r instanceof HTMLElement && r !== document.body && !d.current?.contains(r) || g.current?.focus({ preventScroll: !0 });
|
|
@@ -60251,7 +60252,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60251
60252
|
y,
|
|
60252
60253
|
d
|
|
60253
60254
|
]);
|
|
60254
|
-
let
|
|
60255
|
+
let T = I((e) => {
|
|
60255
60256
|
if (!t && !m) return;
|
|
60256
60257
|
let n = e.relatedTarget;
|
|
60257
60258
|
n instanceof Node && (d.current?.contains(n) || _()?.contains(n)) || (t ? n && i() : (m && f === "" && s(), y()));
|
|
@@ -60264,7 +60265,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60264
60265
|
_,
|
|
60265
60266
|
y,
|
|
60266
60267
|
d
|
|
60267
|
-
]),
|
|
60268
|
+
]), E = I(() => {
|
|
60268
60269
|
let e = _();
|
|
60269
60270
|
if (!e) return !1;
|
|
60270
60271
|
let [t] = MI(e);
|
|
@@ -60278,17 +60279,17 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60278
60279
|
handleChange: v,
|
|
60279
60280
|
handleFocus: C,
|
|
60280
60281
|
handleClick: w,
|
|
60281
|
-
handleBlur:
|
|
60282
|
+
handleBlur: T,
|
|
60282
60283
|
handleKeyDown: I((e) => {
|
|
60283
60284
|
if (x.current = !1, e.defaultPrevented || e.nativeEvent.isComposing) return;
|
|
60284
60285
|
if (e.key === "Tab" && !e.shiftKey && t) {
|
|
60285
|
-
|
|
60286
|
+
E() && e.preventDefault();
|
|
60286
60287
|
return;
|
|
60287
60288
|
}
|
|
60288
60289
|
let n = e.key === "ArrowDown", i = e.key === "ArrowUp", a = e.key === "Enter";
|
|
60289
60290
|
(n || i || a) && (e.preventDefault(), t ? a ? u() : l(n ? "next" : "previous") : r());
|
|
60290
60291
|
}, [
|
|
60291
|
-
|
|
60292
|
+
E,
|
|
60292
60293
|
l,
|
|
60293
60294
|
r,
|
|
60294
60295
|
u,
|
|
@@ -60305,7 +60306,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60305
60306
|
].some((e) => e?.toLowerCase().includes(n));
|
|
60306
60307
|
}, gz = (e) => {
|
|
60307
60308
|
if (e.type !== "separator" && e.tag !== void 0 && typeof e.tag != "string") return e.tag.type;
|
|
60308
|
-
}, _z =
|
|
60309
|
+
}, _z = te({
|
|
60309
60310
|
base: "flex flex-col rounded-md border border-solid bg-f1-background max-h-full",
|
|
60310
60311
|
variants: { status: {
|
|
60311
60312
|
default: "border-f1-border-secondary",
|
|
@@ -60331,15 +60332,15 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60331
60332
|
}), /* @__PURE__ */ V("span", {
|
|
60332
60333
|
className: "flex size-4 shrink-0 items-center justify-center text-f1-icon",
|
|
60333
60334
|
"aria-hidden": "true",
|
|
60334
|
-
children: /* @__PURE__ */ V(
|
|
60335
|
-
icon:
|
|
60335
|
+
children: /* @__PURE__ */ V(k, {
|
|
60336
|
+
icon: ne,
|
|
60336
60337
|
size: "sm"
|
|
60337
60338
|
})
|
|
60338
60339
|
})]
|
|
60339
60340
|
});
|
|
60340
60341
|
});
|
|
60341
60342
|
yz.displayName = "InlineSelectTrigger";
|
|
60342
|
-
var bz = F(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: _, showSearchBox: v, onSearchChange: y, searchBoxPlaceholder: b, searchEmptyMessage: x, searchEmptyAction: S, spaciousEmptyState: C, size: w, actions:
|
|
60343
|
+
var bz = F(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: _, showSearchBox: v, onSearchChange: y, searchBoxPlaceholder: b, searchEmptyMessage: x, searchEmptyAction: S, spaciousEmptyState: C, size: w, actions: ee, onCreate: T, onFiltersChange: E, source: k, label: A, icon: j, labelIcon: te, clearable: ne, loading: re, name: ie, error: ae, status: oe, hint: se, required: ce, multiple: N, portalContainer: le, asList: ue = !1, showPreview: de = !1, hideArrow: fe = !1, preserveSelectionOnDatasetChange: pe = !0, fitContentWidth: me, getSelectedLabel: he, dataTestId: ge, ..._e }, ve) {
|
|
60343
60344
|
let ye = yt(), be = w ?? "sm", xe = vt(tP), 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, Ee = "disableSelectAll" in _e && _e.disableSelectAll, [De, Oe] = Pe({
|
|
60344
60345
|
prop: m,
|
|
60345
60346
|
defaultProp: h,
|
|
@@ -60357,17 +60358,17 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60357
60358
|
}
|
|
60358
60359
|
}, [l]);
|
|
60359
60360
|
let We = R(() => {
|
|
60360
|
-
if (
|
|
60361
|
+
if (k && !["infinite-scroll", "no-pagination"].includes(aP(k.dataAdapter))) throw Error("Select component only supports `infinite-scroll` or `no-pagination` pagination types");
|
|
60361
60362
|
return {
|
|
60362
|
-
...
|
|
60363
|
-
dataAdapter:
|
|
60363
|
+
...k,
|
|
60364
|
+
dataAdapter: k ? k.dataAdapter : { fetchData: ({ search: e }) => {
|
|
60364
60365
|
let t = "searchFn" in _e && _e.searchFn ? _e.searchFn : hz;
|
|
60365
60366
|
return { records: u.filter((n) => t(n, e) ?? !0) };
|
|
60366
60367
|
} }
|
|
60367
60368
|
};
|
|
60368
60369
|
}, [
|
|
60369
60370
|
u,
|
|
60370
|
-
|
|
60371
|
+
k,
|
|
60371
60372
|
"searchFn" in _e && _e.searchFn
|
|
60372
60373
|
]), Ge = e === "field" && !ue && !f, Ke = !!v, qe = sP({
|
|
60373
60374
|
...We,
|
|
@@ -60378,15 +60379,15 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60378
60379
|
},
|
|
60379
60380
|
search: Ke ? {
|
|
60380
60381
|
enabled: Ke,
|
|
60381
|
-
sync: !
|
|
60382
|
+
sync: !k
|
|
60382
60383
|
} : void 0
|
|
60383
60384
|
}, [u]), Je = I((e) => {
|
|
60384
|
-
if (
|
|
60385
|
+
if (k) {
|
|
60385
60386
|
if (!d) throw Error("mapOptions is required when using a source");
|
|
60386
60387
|
return d(e);
|
|
60387
60388
|
}
|
|
60388
60389
|
return e;
|
|
60389
|
-
}, [d,
|
|
60390
|
+
}, [d, k]), { data: Ye, isInitialLoading: Xe, loadMore: Ze, isLoadingMore: Qe, isLoading: $e, paginationInfo: et } = M(qe), { currentSearch: tt, setCurrentSearch: nt } = qe, rt = Ke && Ge && !qe.filters, it = Ke && !rt, at = z(/* @__PURE__ */ new Map()), ot = R(() => {
|
|
60390
60391
|
let e = [];
|
|
60391
60392
|
for (let t of Ye.records) {
|
|
60392
60393
|
let n = Je(t);
|
|
@@ -60421,7 +60422,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60421
60422
|
data: Ye,
|
|
60422
60423
|
paginationInfo: et,
|
|
60423
60424
|
source: qe,
|
|
60424
|
-
selectionMode:
|
|
60425
|
+
selectionMode: N ? "multi" : "single",
|
|
60425
60426
|
onSelectItems: we,
|
|
60426
60427
|
selectedState: st,
|
|
60427
60428
|
disableSelectAll: Ee,
|
|
@@ -60478,11 +60479,11 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60478
60479
|
}, []);
|
|
60479
60480
|
L(() => xt, [xt]);
|
|
60480
60481
|
let St = (e) => {
|
|
60481
|
-
xt(),
|
|
60482
|
+
xt(), k ? bt.current = setTimeout(() => {
|
|
60482
60483
|
bt.current = null, F(e);
|
|
60483
60484
|
}, mz) : F(e);
|
|
60484
|
-
}, wt =
|
|
60485
|
-
if (!
|
|
60485
|
+
}, wt = N && !ue, Tt = !!(r && wt), Et = z(!1), Dt = z(!0), Ot = z(null), kt = z(null), At = I((e, t) => {
|
|
60486
|
+
if (!N && !ne && !t && Ve[0] === e) return;
|
|
60486
60487
|
Et.current = !0, lt(e, t);
|
|
60487
60488
|
let n = ot[String(e)];
|
|
60488
60489
|
n && (t ? at.current.set(String(e), n.option) : at.current.delete(String(e)), Tt || s?.(n.option, t));
|
|
@@ -60491,14 +60492,14 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60491
60492
|
s,
|
|
60492
60493
|
ot,
|
|
60493
60494
|
lt,
|
|
60494
|
-
|
|
60495
|
-
|
|
60495
|
+
N,
|
|
60496
|
+
ne,
|
|
60496
60497
|
Ve
|
|
60497
60498
|
]), jt = z(!1), Mt = I((e) => {
|
|
60498
60499
|
Et.current = !0, jt.current = e, ct(e);
|
|
60499
60500
|
}, [ct]), Nt = I((e) => {
|
|
60500
|
-
if (e) return
|
|
60501
|
-
}, [
|
|
60501
|
+
if (e) return k ? e : e.item;
|
|
60502
|
+
}, [k]), Pt = I(() => {
|
|
60502
60503
|
let e = Array.from(ut.items.values() || []).filter((e) => e.checked), t = e.map((e) => e.item).filter((e) => e !== void 0), n = t.map(Nt).filter((e) => e !== void 0), r = t.map((e) => Je(e));
|
|
60503
60504
|
return {
|
|
60504
60505
|
values: e.map((e) => {
|
|
@@ -60515,11 +60516,11 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60515
60516
|
Nt,
|
|
60516
60517
|
Je,
|
|
60517
60518
|
ut.items,
|
|
60518
|
-
|
|
60519
|
+
k
|
|
60519
60520
|
]);
|
|
60520
60521
|
jo(() => {
|
|
60521
60522
|
if (!Et.current) Dt.current &&= !1;
|
|
60522
|
-
else if (!
|
|
60523
|
+
else if (!N && !De && !ue && nt(void 0), N) {
|
|
60523
60524
|
let { values: e, originalItems: t, options: r } = Pt();
|
|
60524
60525
|
He(Array.from(new Set(e.map(String))));
|
|
60525
60526
|
let i = e.map(String).sort().join("\0");
|
|
@@ -60539,7 +60540,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60539
60540
|
Tt,
|
|
60540
60541
|
Je,
|
|
60541
60542
|
ut,
|
|
60542
|
-
|
|
60543
|
+
k
|
|
60543
60544
|
]);
|
|
60544
60545
|
let Ft = z(() => {});
|
|
60545
60546
|
Ft.current = (e) => {
|
|
@@ -60577,12 +60578,12 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60577
60578
|
Lt.cancel(), Ft.current(!0);
|
|
60578
60579
|
}, [Lt]), Vt = I(() => {
|
|
60579
60580
|
zt(!1);
|
|
60580
|
-
}, [zt]), Ht = R(() =>
|
|
60581
|
+
}, [zt]), Ht = R(() => ee?.map((e) => ({
|
|
60581
60582
|
...e,
|
|
60582
60583
|
onClick: () => {
|
|
60583
60584
|
zt(!1), e.onClick();
|
|
60584
60585
|
}
|
|
60585
|
-
})), [
|
|
60586
|
+
})), [ee, zt]), Ut = I(() => {
|
|
60586
60587
|
if (Tt) {
|
|
60587
60588
|
let e = ft(ut), { values: t, originalItems: r, options: i } = Pt();
|
|
60588
60589
|
pt(e) !== pt(mt.current) && (mt.current = e, n?.(t, r, i)), Re.current = !0;
|
|
@@ -60705,7 +60706,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60705
60706
|
disabled: p,
|
|
60706
60707
|
open: De,
|
|
60707
60708
|
onOpenChange: zt
|
|
60708
|
-
}, sn =
|
|
60709
|
+
}, sn = N ? {
|
|
60709
60710
|
...on,
|
|
60710
60711
|
value: an,
|
|
60711
60712
|
multiple: !0,
|
|
@@ -60732,13 +60733,13 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60732
60733
|
}, [cn]), un = I(() => {
|
|
60733
60734
|
if (!Ae) return !1;
|
|
60734
60735
|
let e = Ve.includes(Ae);
|
|
60735
|
-
return Et.current = !0, At(Ae, !
|
|
60736
|
+
return Et.current = !0, At(Ae, !N || !e), N || zt(!1), !0;
|
|
60736
60737
|
}, [
|
|
60737
60738
|
Ae,
|
|
60738
60739
|
Ve,
|
|
60739
|
-
|
|
60740
|
+
N,
|
|
60740
60741
|
At
|
|
60741
|
-
]), dn = !
|
|
60742
|
+
]), dn = !N && ht[0] ? String(WI(ht[0])) : "", fn = N ? Math.max(Ve.length, P.selectedItemsCount) : +!!Ve[0], pn = fn > 0, mn = () => {
|
|
60742
60743
|
Et.current = !0, dt(), at.current.clear(), s?.(void 0, !1);
|
|
60743
60744
|
}, { draft: hn, inputRef: gn, focusInput: _n, resetText: vn, handleChange: yn, handleFocus: bn, handleClick: xn, handleBlur: Sn, handleKeyDown: Cn } = fz({
|
|
60744
60745
|
enabled: rt,
|
|
@@ -60754,7 +60755,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60754
60755
|
},
|
|
60755
60756
|
closeWasRequested: () => ke.current === !1,
|
|
60756
60757
|
onCloseEmpty: () => {
|
|
60757
|
-
!
|
|
60758
|
+
!N && ne && pn && mn();
|
|
60758
60759
|
},
|
|
60759
60760
|
triggerRef: Ne
|
|
60760
60761
|
});
|
|
@@ -60765,16 +60766,16 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60765
60766
|
rt,
|
|
60766
60767
|
Me
|
|
60767
60768
|
]);
|
|
60768
|
-
let wn =
|
|
60769
|
+
let wn = T ? (e) => {
|
|
60769
60770
|
let t = () => {
|
|
60770
60771
|
nt(void 0), rt && vn();
|
|
60771
|
-
}, n =
|
|
60772
|
+
}, n = T(e);
|
|
60772
60773
|
n && typeof n.then == "function" ? n.then(t, (e) => {
|
|
60773
60774
|
console.warn("[F0Select] onCreate failed:", e);
|
|
60774
60775
|
}) : t();
|
|
60775
60776
|
} : void 0, Tn = tt ? rn.t("select.createWithValue", { value: tt }) : rn.select.create, En = S ?? (wn && tt?.trim() ? /* @__PURE__ */ V("div", {
|
|
60776
60777
|
className: "flex w-full",
|
|
60777
|
-
children: /* @__PURE__ */ V(
|
|
60778
|
+
children: /* @__PURE__ */ V(D, {
|
|
60778
60779
|
type: "button",
|
|
60779
60780
|
variant: "outline",
|
|
60780
60781
|
onClick: () => wn(tt.trim()),
|
|
@@ -60789,7 +60790,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60789
60790
|
t && t === e.target && (e.preventDefault(), _n());
|
|
60790
60791
|
} : void 0,
|
|
60791
60792
|
keepTriggerAccessible: rt,
|
|
60792
|
-
"aria-label":
|
|
60793
|
+
"aria-label": A,
|
|
60793
60794
|
onPointerDownOutside: rt ? (e) => {
|
|
60794
60795
|
let { target: t, clientX: n, clientY: r } = e.detail.originalEvent;
|
|
60795
60796
|
if (t instanceof Node && Ne.current?.contains(t)) {
|
|
@@ -60805,8 +60806,8 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60805
60806
|
(a || o) && (e.preventDefault(), e.detail.originalEvent.preventDefault(), a?.click(), _n(), a || xn());
|
|
60806
60807
|
} : void 0,
|
|
60807
60808
|
fitContentWidth: _t,
|
|
60808
|
-
taller: !!
|
|
60809
|
-
emptyMessage: x ?? (
|
|
60809
|
+
taller: !!k?.filters,
|
|
60810
|
+
emptyMessage: x ?? (T && tt?.trim() ? rn.select.createEmptyMessage ?? rn.select.noResults : rn.select.noResults),
|
|
60810
60811
|
emptyAction: En,
|
|
60811
60812
|
spaciousEmptyState: C,
|
|
60812
60813
|
bottom: Wt ? null : /* @__PURE__ */ V(zI, {
|
|
@@ -60828,12 +60829,12 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60828
60829
|
filters: qe.filters,
|
|
60829
60830
|
currentFilters: qe.currentFilters,
|
|
60830
60831
|
onFiltersChange: (e) => {
|
|
60831
|
-
qe.setCurrentFilters(e),
|
|
60832
|
+
qe.setCurrentFilters(e), E?.(e);
|
|
60832
60833
|
},
|
|
60833
60834
|
asList: ue,
|
|
60834
60835
|
onFiltersOpenChange: Gt,
|
|
60835
60836
|
showPreview: de
|
|
60836
|
-
}),
|
|
60837
|
+
}), N && !tt && !Wt ? /* @__PURE__ */ V(RI, {
|
|
60837
60838
|
selectedCount: P.selectedItemsCount,
|
|
60838
60839
|
indeterminate: ut.allSelected === "indeterminate" || ut.allSelected === !1 && P.selectedItemsCount > 0,
|
|
60839
60840
|
value: !!ut.allSelected,
|
|
@@ -60843,7 +60844,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60843
60844
|
paddingTop: !it && !qe.filters,
|
|
60844
60845
|
keepFocusOnClick: rt
|
|
60845
60846
|
}) : null] }),
|
|
60846
|
-
right:
|
|
60847
|
+
right: N && !Wt && de ? /* @__PURE__ */ V(nL, {
|
|
60847
60848
|
items: ht,
|
|
60848
60849
|
onDeselect: (e) => At(e, !1),
|
|
60849
60850
|
allSelected: ut.allSelected,
|
|
@@ -60858,11 +60859,11 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60858
60859
|
showLoadingIndicator: !!f,
|
|
60859
60860
|
portalContainer: Ce
|
|
60860
60861
|
}), On = `${ye}-selection`, [kn, An] = B(!1), jn = /* @__PURE__ */ V($I, {
|
|
60861
|
-
multiple:
|
|
60862
|
+
multiple: N,
|
|
60862
60863
|
totalSelectedCount: fn,
|
|
60863
60864
|
allSelected: ut.allSelected,
|
|
60864
60865
|
selection: ht,
|
|
60865
|
-
hideItemIcon: !!
|
|
60866
|
+
hideItemIcon: !!j,
|
|
60866
60867
|
noTooltip: !0,
|
|
60867
60868
|
onSpelledOutChange: An
|
|
60868
60869
|
}), Mn = KI(ht.map(WI).filter(Boolean), fn, (e) => rn.t("toc.moreResults", { count: e })), Nn = (e) => {
|
|
@@ -60870,8 +60871,8 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60870
60871
|
className: c("w-full min-w-0", !!f && "h-full", rt && De && "relative z-50"),
|
|
60871
60872
|
children: e
|
|
60872
60873
|
});
|
|
60873
|
-
return /* @__PURE__ */ V(
|
|
60874
|
-
label: g ?
|
|
60874
|
+
return /* @__PURE__ */ V(O, {
|
|
60875
|
+
label: g ? A : void 0,
|
|
60875
60876
|
description: kn || rt && De ? "" : Mn,
|
|
60876
60877
|
children: t
|
|
60877
60878
|
});
|
|
@@ -60881,21 +60882,21 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60881
60882
|
children: /* @__PURE__ */ H("div", {
|
|
60882
60883
|
className: c("flex w-full max-h-full flex-col gap-2", p && "cursor-not-allowed opacity-50"),
|
|
60883
60884
|
children: [
|
|
60884
|
-
|
|
60885
|
-
label:
|
|
60886
|
-
required:
|
|
60885
|
+
A && !g ? /* @__PURE__ */ V(JN, {
|
|
60886
|
+
label: A,
|
|
60887
|
+
required: ce,
|
|
60887
60888
|
htmlFor: ye,
|
|
60888
|
-
icon:
|
|
60889
|
+
icon: te,
|
|
60889
60890
|
disabled: p
|
|
60890
60891
|
}) : null,
|
|
60891
60892
|
/* @__PURE__ */ V("div", {
|
|
60892
|
-
className: c("flex-1 min-h-0", _z({ status:
|
|
60893
|
+
className: c("flex-1 min-h-0", _z({ status: ae ? "error" : oe?.type ? oe?.type : "default" })),
|
|
60893
60894
|
children: /* @__PURE__ */ V(rI, {
|
|
60894
60895
|
...sn,
|
|
60895
60896
|
children: Dn
|
|
60896
60897
|
})
|
|
60897
60898
|
}),
|
|
60898
|
-
/* @__PURE__ */ V(qN, { status:
|
|
60899
|
+
/* @__PURE__ */ V(qN, { status: oe })
|
|
60899
60900
|
]
|
|
60900
60901
|
})
|
|
60901
60902
|
});
|
|
@@ -60903,7 +60904,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60903
60904
|
...sn,
|
|
60904
60905
|
children: [e === "inline" ? /* @__PURE__ */ V(yz, {
|
|
60905
60906
|
ref: Ie,
|
|
60906
|
-
label:
|
|
60907
|
+
label: A,
|
|
60907
60908
|
placeholder: t,
|
|
60908
60909
|
selection: ht,
|
|
60909
60910
|
hasValue: !!Ve[0]
|
|
@@ -60913,27 +60914,27 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60913
60914
|
"aria-autocomplete": rt ? "list" : void 0,
|
|
60914
60915
|
children: f ? /* @__PURE__ */ V("div", {
|
|
60915
60916
|
className: "flex h-full w-full items-center justify-between",
|
|
60916
|
-
"aria-label":
|
|
60917
|
+
"aria-label": A || t,
|
|
60917
60918
|
children: f
|
|
60918
60919
|
}) : /* @__PURE__ */ V(eP, {
|
|
60919
|
-
label:
|
|
60920
|
-
error:
|
|
60921
|
-
required:
|
|
60922
|
-
status:
|
|
60923
|
-
hint:
|
|
60924
|
-
icon:
|
|
60925
|
-
labelIcon:
|
|
60920
|
+
label: A,
|
|
60921
|
+
error: ae,
|
|
60922
|
+
required: ce,
|
|
60923
|
+
status: oe,
|
|
60924
|
+
hint: se,
|
|
60925
|
+
icon: j,
|
|
60926
|
+
labelIcon: te,
|
|
60926
60927
|
hideLabel: g,
|
|
60927
|
-
value: rt ? hn :
|
|
60928
|
-
isEmpty: (e) => rt ? !e :
|
|
60928
|
+
value: rt ? hn : N ? fn.toString() : Ve[0] ?? void 0,
|
|
60929
|
+
isEmpty: (e) => rt ? !e : N ? !e || +(e ?? 0) == 0 : !e,
|
|
60929
60930
|
canClear: rt ? pn : void 0,
|
|
60930
60931
|
onChange: rt ? yn : void 0,
|
|
60931
60932
|
onBlur: rt ? Sn : void 0,
|
|
60932
60933
|
clearKeepsText: rt,
|
|
60933
60934
|
"aria-activedescendant": rt && De && Ae ? Me(Ae) : void 0,
|
|
60934
|
-
"aria-describedby": rt &&
|
|
60935
|
+
"aria-describedby": rt && N && pn && !hn ? On : void 0,
|
|
60935
60936
|
inputRef: rt ? gn : void 0,
|
|
60936
|
-
valueSlot: rt &&
|
|
60937
|
+
valueSlot: rt && N && pn ? /* @__PURE__ */ V("span", {
|
|
60937
60938
|
id: On,
|
|
60938
60939
|
"aria-hidden": "true",
|
|
60939
60940
|
className: "contents",
|
|
@@ -60942,14 +60943,14 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60942
60943
|
onClear: mn,
|
|
60943
60944
|
placeholder: (rt ? t || b || rn.toc.search : t) || "",
|
|
60944
60945
|
disabled: p,
|
|
60945
|
-
clearable:
|
|
60946
|
+
clearable: ne,
|
|
60946
60947
|
size: gt,
|
|
60947
60948
|
loadingIndicator: {
|
|
60948
60949
|
asOverlay: !0,
|
|
60949
|
-
offset: fe ?
|
|
60950
|
+
offset: fe ? ne && pn ? 26 : void 0 : 34
|
|
60950
60951
|
},
|
|
60951
|
-
loading: Xe ||
|
|
60952
|
-
name: rt ? void 0 :
|
|
60952
|
+
loading: Xe || re || $e,
|
|
60953
|
+
name: rt ? void 0 : ie,
|
|
60953
60954
|
onClickContent: (e) => {
|
|
60954
60955
|
if (rt) {
|
|
60955
60956
|
if (e.target instanceof Node && Fe.current?.contains(e.target)) {
|
|
@@ -60973,7 +60974,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60973
60974
|
className: "w-full shrink cursor-text bg-transparent placeholder:-z-10 disabled:cursor-not-allowed"
|
|
60974
60975
|
}) : /* @__PURE__ */ V("button", {
|
|
60975
60976
|
className: "flex w-full items-center justify-between",
|
|
60976
|
-
"aria-label":
|
|
60977
|
+
"aria-label": A || t,
|
|
60977
60978
|
onClick: (e) => {
|
|
60978
60979
|
e.preventDefault();
|
|
60979
60980
|
},
|