@factorialco/f0-react 16.37.0 → 16.37.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ArchiveThumbnail-B5Dl5Q9X.js → ArchiveThumbnail-CmxVg6Qg.js} +3 -3
- package/dist/{ArchiveViewer-BWXLfy7V.js → ArchiveViewer-Dh5Q8kqC.js} +2 -2
- package/dist/{ChatPostComposerDialog-hyp6Uc8_.js → ChatPostComposerDialog-DZu6Ki0B.js} +2 -2
- package/dist/{CoachmarkProvider-DvSnMVVi.js → CoachmarkProvider--mh08dHJ.js} +22080 -22185
- package/dist/{CodeThumbnail-Cuizh-RB.js → CodeThumbnail-DL9mzI-m.js} +1 -1
- package/dist/{CodeViewer-CZWHBtzf.js → CodeViewer-CgoiN8zP.js} +4 -4
- package/dist/{DocumentToolbar-Cn_57QPa.js → DocumentToolbar-DbY19x0N.js} +4 -4
- package/dist/{DocxViewer-BN2ecxHS.js → DocxViewer-B0yAaoyL.js} +1 -1
- package/dist/{F0AiProcessingOverlay-CfwqrMV8.js → F0AiProcessingOverlay-C-wJZY3B.js} +404 -404
- package/dist/{F0Alert-zGVsZU3d.js → F0Alert-CjCxfO5U.js} +7 -7
- package/dist/F0AudioPlayer-2XYmhjAg.js +2 -0
- package/dist/{F0CanvasPanel-dXb8-rhq.js → F0CanvasPanel-3UaFqQPm.js} +9172 -9032
- package/dist/{F0DocumentViewer-HHvOYMsL.js → F0DocumentViewer-CRM648IU.js} +2 -2
- package/dist/{F0DocumentViewer-B9fmg99J.js → F0DocumentViewer-xKhfg1xv.js} +1 -1
- package/dist/{F0Map-e9RVw1Yg.js → F0Map-Ba01T3fx.js} +64 -64
- package/dist/{F0Select-C1fUoqO7.js → F0Select-D6a3zqGM.js} +786 -786
- package/dist/{F0VideoPlayer-ry8CK8dn.js → F0VideoPlayer-DekywICI.js} +23 -23
- package/dist/F0VideoPlayer-MJe3t44z.js +1 -0
- package/dist/{HtmlViewer-D6_MWaRV.js → HtmlViewer-CBctOpaY.js} +4 -4
- package/dist/{Map-DPseWXSp.js → Map-Ci5Z-3Eg.js} +3 -3
- package/dist/{PdfThumbnail-BC4traVy.js → PdfThumbnail-E90M_nXl.js} +1 -1
- package/dist/{PdfViewer-D6SsMxHm.js → PdfViewer-CtDyKQNZ.js} +7 -7
- package/dist/{SheetViewer-CJjTQxfC.js → SheetViewer-CLy7Q01x.js} +3 -3
- package/dist/{TextViewer-B02XN_z7.js → TextViewer-D763I9Qq.js} +1 -1
- package/dist/ai.js +2 -2
- package/dist/component-status.js +1 -1
- package/dist/experimental.d.ts +3 -1
- package/dist/experimental.js +5911 -5914
- package/dist/f0.js +302 -302
- package/dist/{highlight-DLWpKbXb.js → highlight-D-UmcSng.js} +1 -1
- package/dist/{maplibre-YG1dP9_K.js → maplibre-toPNwSEp.js} +1 -1
- package/dist/{pdfWorker-C0d-B1qd.js → pdfWorker-B4vsWnwd.js} +1 -1
- package/package.json +1 -1
- package/dist/F0AudioPlayer-fmPyhdk_.js +0 -2
- package/dist/F0VideoPlayer-Tq2TsGJL.js +0 -1
|
@@ -2,9 +2,9 @@ import { o as e, r as t, t as n } from "./rolldown-runtime-BItFwnF5.js";
|
|
|
2
2
|
import { a as r, i, r as a } from "./i18n-provider-CnVpBH9I.js";
|
|
3
3
|
import { n as o, t as s } from "./skeleton-B2Nqp_5d.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
|
|
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 T, q as E, r as D, t as O, z as k } from "./F0Button-CRX5bM7l.js";
|
|
6
|
+
import { a as A, o as j, t as M, u as ee } from "./createIcon-DRrxxnkK.js";
|
|
7
|
+
import { H as te, I as ne, N as re, P as ie, R as ae, U as oe, V as se, a as N, b as ce, 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-i0Sxq9o0.js";
|
|
8
8
|
import { t as _e } from "./Check-C_yDxMGY.js";
|
|
9
9
|
import { a as ve, i as ye, r as be, t as xe } from "./dist-BB49d7CP.js";
|
|
10
10
|
import { t as Se } from "./ExternalLink-Fo1hQrhp.js";
|
|
@@ -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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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 = M({
|
|
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, T) {
|
|
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 E = o;
|
|
1922
1922
|
case g:
|
|
1923
|
-
var
|
|
1924
|
-
if (
|
|
1925
|
-
var
|
|
1926
|
-
if (
|
|
1927
|
-
x |= l,
|
|
1928
|
-
var
|
|
1929
|
-
return
|
|
1923
|
+
var D = x & c;
|
|
1924
|
+
if (E ||= s, e.size != t.size && !D) return !1;
|
|
1925
|
+
var O = T.get(e);
|
|
1926
|
+
if (O) return O == t;
|
|
1927
|
+
x |= l, T.set(e, t);
|
|
1928
|
+
var k = a(E(e), E(t), x, C, w, T);
|
|
1929
|
+
return T.delete(e), k;
|
|
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]", T = "[object Uint8Array]", E = "[object Uint8ClampedArray]", D = "[object Uint16Array]", O = "[object Uint32Array]", k = {};
|
|
2017
|
+
k[b] = k[x] = k[S] = k[C] = k[w] = k[T] = k[E] = k[D] = k[O] = !0, k[a] = k[o] = k[v] = k[s] = k[y] = k[c] = k[l] = k[u] = k[d] = k[f] = k[p] = k[m] = k[h] = k[g] = k[_] = !1;
|
|
2018
|
+
function A(e) {
|
|
2019
|
+
return i(e) && r(e.length) && !!k[n(e)];
|
|
2020
2020
|
}
|
|
2021
|
-
t.exports =
|
|
2021
|
+
t.exports = A;
|
|
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, T = x == S;
|
|
2147
|
+
if (T && c(e)) {
|
|
2148
2148
|
if (!c(t)) return !1;
|
|
2149
2149
|
y = !0, C = !1;
|
|
2150
2150
|
}
|
|
2151
|
-
if (
|
|
2151
|
+
if (T && !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 E = C && m.call(e, "__wrapped__"), D = w && m.call(t, "__wrapped__");
|
|
2154
|
+
if (E || D) {
|
|
2155
|
+
var O = E ? e.value() : e, k = D ? t.value() : t;
|
|
2156
|
+
return v ||= new n(), _(O, k, h, g, v);
|
|
2157
2157
|
}
|
|
2158
2158
|
}
|
|
2159
|
-
return
|
|
2159
|
+
return T ? (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(k, {
|
|
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(D, {
|
|
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(A, {
|
|
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(A, {
|
|
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(A, {
|
|
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(A, {
|
|
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(A, {
|
|
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]", T = "[object AsyncFunction]", E = "[object Boolean]", D = "[object Date]", O = "[object DOMException]", k = "[object Error]", A = "[object Function]", j = "[object GeneratorFunction]", M = "[object Map]", ee = "[object Number]", te = "[object Null]", ne = "[object Object]", re = "[object Promise]", ie = "[object Proxy]", ae = "[object RegExp]", oe = "[object Set]", se = "[object String]", N = "[object Symbol]", ce = "[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[E] = Rt[fe] = Rt[D] = Rt[k] = Rt[A] = Rt[M] = Rt[ee] = Rt[ne] = Rt[ae] = Rt[oe] = Rt[se] = 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[E] = zt[D] = zt[pe] = zt[me] = zt[he] = zt[ge] = zt[_e] = zt[M] = zt[ee] = zt[ne] = zt[ae] = zt[oe] = zt[se] = zt[N] = zt[ve] = zt[ye] = zt[be] = zt[xe] = !0, zt[k] = zt[A] = 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 == A || f == j;
|
|
45844
45844
|
if (Ql(e)) return za(e, c);
|
|
45845
|
-
if (f ==
|
|
45845
|
+
if (f == ne || 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 ? ce : te : 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) == D;
|
|
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 ? ne : c, l = l == C ? ne : l;
|
|
46012
|
+
var u = c == ne, d = l == ne, 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) == M;
|
|
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) == ae;
|
|
46055
46055
|
}
|
|
46056
46056
|
function Gi(e) {
|
|
46057
|
-
return lu(e) && Ho(e) ==
|
|
46057
|
+
return lu(e) && Ho(e) == oe;
|
|
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 == M ? Xn(t) : n == oe ? 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:
|
|
46697
46696
|
case E:
|
|
46698
|
-
case
|
|
46699
|
-
case
|
|
46697
|
+
case D:
|
|
46698
|
+
case ee: return Wl(+e, +t);
|
|
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;
|
|
46700
46703
|
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 N: 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()) != M || Xt && Ho(Xt.resolve()) != re || Qt && Ho(new Qt()) != oe || $t && Ho(new $t()) != le) && (Ho = function(e) {
|
|
46805
|
+
var t = Oi(e), r = t == ne ? 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 M;
|
|
46809
|
+
case cr: return re;
|
|
46810
|
+
case dr: return oe;
|
|
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 E:
|
|
46861
|
+
case D: 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 M: return new r();
|
|
46873
|
+
case ee:
|
|
46874
|
+
case se: return new r(e);
|
|
46875
|
+
case ae: return Ha(e);
|
|
46876
|
+
case oe: return new r();
|
|
46877
|
+
case N: 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 == M || t == oe ? 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) == E;
|
|
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 == M || t == oe) 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 == k || t == O || 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 == A || t == j || t == T || t == ie;
|
|
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) == ee;
|
|
47705
47705
|
}
|
|
47706
47706
|
function vu(e) {
|
|
47707
|
-
if (!lu(e) || Oi(e) !=
|
|
47707
|
+
if (!lu(e) || Oi(e) != ne) 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) == se;
|
|
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) == N;
|
|
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 == M ? Xn : t == oe ? $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(A, {
|
|
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 = ee({
|
|
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(E.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(A, {
|
|
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(D, {
|
|
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(A, {
|
|
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 = ee({
|
|
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 = te({
|
|
|
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(A, {
|
|
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 = te({
|
|
|
49094
49094
|
tabIndex: 0,
|
|
49095
49095
|
"aria-label": "Close",
|
|
49096
49096
|
"aria-describedby": s,
|
|
49097
|
-
children: /* @__PURE__ */ V(
|
|
49098
|
-
icon:
|
|
49097
|
+
children: /* @__PURE__ */ V(A, {
|
|
49098
|
+
icon: se,
|
|
49099
49099
|
size: "sm"
|
|
49100
49100
|
})
|
|
49101
49101
|
}) : null]
|
|
49102
49102
|
});
|
|
49103
|
-
}), pT =
|
|
49103
|
+
}), pT = ee({
|
|
49104
49104
|
variants: {
|
|
49105
49105
|
size: {
|
|
49106
49106
|
sm: "h-6",
|
|
@@ -49153,7 +49153,7 @@ var lT = r(cT), uT = r(cT), dT = te({
|
|
|
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 = ee({ 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 = te({
|
|
|
49175
49175
|
duration: .25,
|
|
49176
49176
|
ease: "easeOut"
|
|
49177
49177
|
}
|
|
49178
|
-
}, [_]), [
|
|
49179
|
-
selected:
|
|
49180
|
-
onSelectedChange:
|
|
49181
|
-
},
|
|
49178
|
+
}, [_]), [T, D] = B(p), O = t !== void 0, j = {
|
|
49179
|
+
selected: O ? t : T,
|
|
49180
|
+
onSelectedChange: O ? e : D
|
|
49181
|
+
}, M = j.selected ? S : x, ee = R(() => o === "expanded" && a === "lg" ? (console.warn("F0ButtonToggle: lg size is not supported for expanded variant"), "md") : a, [a, o]), te = typeof s == "object" ? s : s ? { description: s } : void 0, ne = /* @__PURE__ */ H(xe, {
|
|
49182
49182
|
ref: g,
|
|
49183
|
-
pressed:
|
|
49184
|
-
onPressedChange:
|
|
49183
|
+
pressed: j.selected,
|
|
49184
|
+
onPressedChange: j.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": M,
|
|
49187
|
+
title: M,
|
|
49188
|
+
className: c("aspect-square px-0", "flex flex-col items-center justify-center gap-2", l(), w({ variant: j.selected ? "selected" : "ghost" }), h({ size: ee }), pT({
|
|
49189
|
+
size: ee,
|
|
49190
49190
|
variant: o,
|
|
49191
49191
|
withBorder: d,
|
|
49192
|
-
selected:
|
|
49193
|
-
}), u && (
|
|
49192
|
+
selected: j.selected
|
|
49193
|
+
}), u && (j.selected ? mT[u] : hT), f),
|
|
49194
49194
|
...m,
|
|
49195
|
-
"data-state":
|
|
49195
|
+
"data-state": j.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: j.selected ? /* @__PURE__ */ V(E.div, {
|
|
49201
49201
|
className: "absolute flex items-center justify-center",
|
|
49202
49202
|
...C,
|
|
49203
|
-
children: /* @__PURE__ */ V(
|
|
49203
|
+
children: /* @__PURE__ */ V(A, {
|
|
49204
49204
|
icon: y,
|
|
49205
|
-
size:
|
|
49205
|
+
size: ee
|
|
49206
49206
|
})
|
|
49207
|
-
}, "icon-on") : /* @__PURE__ */ V(
|
|
49207
|
+
}, "icon-on") : /* @__PURE__ */ V(E.div, {
|
|
49208
49208
|
className: "absolute flex items-center justify-center",
|
|
49209
49209
|
...C,
|
|
49210
|
-
children: /* @__PURE__ */ V(
|
|
49210
|
+
children: /* @__PURE__ */ V(A, {
|
|
49211
49211
|
icon: v,
|
|
49212
|
-
size:
|
|
49212
|
+
size: ee
|
|
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: ee })),
|
|
49220
|
+
children: M
|
|
49221
49221
|
})
|
|
49222
49222
|
}) : null]
|
|
49223
49223
|
});
|
|
49224
|
-
return
|
|
49225
|
-
...
|
|
49224
|
+
return te ? /* @__PURE__ */ V(k, {
|
|
49225
|
+
...te,
|
|
49226
49226
|
openOnPointer: r,
|
|
49227
|
-
children:
|
|
49228
|
-
}) :
|
|
49227
|
+
children: ne
|
|
49228
|
+
}) : ne;
|
|
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(re, {
|
|
49515
49515
|
display: "flex",
|
|
49516
49516
|
alignItems: "start",
|
|
49517
49517
|
gap: "md",
|
|
49518
|
-
children: [/* @__PURE__ */ V(
|
|
49518
|
+
children: [/* @__PURE__ */ V(re, {
|
|
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(re, { 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(D, {
|
|
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(D, {
|
|
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(A, {
|
|
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(ce, { 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(A, {
|
|
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(D, {
|
|
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(D, {
|
|
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(D, {
|
|
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(D, {
|
|
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(A, {
|
|
50589
50589
|
icon: ge,
|
|
50590
50590
|
size: "sm"
|
|
50591
|
-
}) : /* @__PURE__ */ V(
|
|
50591
|
+
}) : /* @__PURE__ */ V(A, {
|
|
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(E.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(E.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(E.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(E.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(E.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(E.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(E.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(E.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(D, {
|
|
53914
53914
|
tag: "span",
|
|
53915
53915
|
children: e
|
|
53916
53916
|
})
|
|
53917
|
-
}), HN = ["sm", "md"], UN =
|
|
53917
|
+
}), HN = ["sm", "md"], UN = ee({
|
|
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 = ee({
|
|
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(A, {
|
|
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(A, {
|
|
54028
54028
|
icon: a,
|
|
54029
54029
|
size: "sm"
|
|
54030
54030
|
}) : null,
|
|
54031
|
-
/* @__PURE__ */ V(
|
|
54031
|
+
/* @__PURE__ */ V(D, {
|
|
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 = ee({
|
|
54042
54042
|
base: "",
|
|
54043
54043
|
variants: { size: {
|
|
54044
54044
|
sm: "gap-1",
|
|
54045
54045
|
md: "gap-2"
|
|
54046
54046
|
} }
|
|
54047
|
-
}), $N =
|
|
54047
|
+
}), $N = ee({
|
|
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,7 +54080,7 @@ 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, clearable: x = !1, isEmpty: S = XN, emptyValue: C = YN, lengthProvider: w = ZN, maxLength:
|
|
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, clearable: x = !1, isEmpty: S = XN, emptyValue: C = YN, lengthProvider: w = ZN, maxLength: T, hideMaxLength: D = !1, append: O, hidePlaceholder: k = !1, valueSlot: j, clearKeepsText: M = !1, canClear: ee, onClickPlaceholder: te, onClickChildren: ne, onClickContent: re, name: ie, role: ae, appendTag: oe, avatar: N, "aria-controls": ce, "aria-expanded": le, "aria-activedescendant": ue, "aria-autocomplete": fe, "aria-describedby": pe, buttonToggle: me, transparent: he, variant: ge = "field", editing: _e = !1, inlineText: ve, onBlurWithin: ye, ...be }, xe) => {
|
|
54084
54084
|
let Se = ge === "inline", Ce = p ?? (Se ? "md" : "sm"), we = yt(), Ee = be.id ?? we, De = t || n, [Oe, ke] = B(g);
|
|
54085
54085
|
f && (d = {
|
|
54086
54086
|
type: "default",
|
|
@@ -54089,27 +54089,27 @@ 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
|
-
ke(
|
|
54092
|
+
ke(T && g && w(g) > T ? g?.substring(0, T) : g);
|
|
54093
54093
|
}, [
|
|
54094
54094
|
g,
|
|
54095
54095
|
w,
|
|
54096
|
-
|
|
54096
|
+
T
|
|
54097
54097
|
]);
|
|
54098
54098
|
let Ae = (e) => {
|
|
54099
54099
|
let t = (typeof e == "string" ? e : e.target.value) ?? C;
|
|
54100
|
-
if (
|
|
54101
|
-
if (typeof t == "string") t = t.substring(0,
|
|
54100
|
+
if (T && w(t) > T) {
|
|
54101
|
+
if (typeof t == "string") t = t.substring(0, T);
|
|
54102
54102
|
else return;
|
|
54103
54103
|
}
|
|
54104
54104
|
ke(t), be.onChange?.(t);
|
|
54105
54105
|
}, je = () => {
|
|
54106
|
-
|
|
54106
|
+
M || Ae(C), be.onClear?.(), Se && ze.current?.focus();
|
|
54107
54107
|
}, Me = (e) => {
|
|
54108
|
-
t ||
|
|
54108
|
+
t || re?.(e);
|
|
54109
54109
|
}, Ne = () => {
|
|
54110
|
-
t || re?.();
|
|
54111
|
-
}, Pe = () => {
|
|
54112
54110
|
t || ne?.();
|
|
54111
|
+
}, Pe = () => {
|
|
54112
|
+
t || te?.();
|
|
54113
54113
|
}, [Fe, Ie] = B(!1), Le = (e) => {
|
|
54114
54114
|
e.animationName === "autofill" && Ie(!0);
|
|
54115
54115
|
}, Re = z(null), ze = z(null), Be = Te(be.inputRef, ze);
|
|
@@ -54119,7 +54119,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54119
54119
|
}, 100)), () => {
|
|
54120
54120
|
Re.current &&= (clearInterval(Re.current), null);
|
|
54121
54121
|
}), [Fe, Be]);
|
|
54122
|
-
let Ve = d?.message ? `${Ee}-messages` : void 0, He = [pe ?? e.props["aria-describedby"], Ve].filter(Boolean).join(" ") || void 0, Ue =
|
|
54122
|
+
let Ve = d?.message ? `${Ee}-messages` : void 0, He = [pe ?? e.props["aria-describedby"], Ve].filter(Boolean).join(" ") || void 0, Ue = O || oe || me, We = ee ?? !S(Oe), Ge = j != null && XN(Oe) && !Fe;
|
|
54123
54123
|
return Se && !_e ? /* @__PURE__ */ H("div", {
|
|
54124
54124
|
className: c("flex h-full w-full flex-col gap-2", o),
|
|
54125
54125
|
ref: xe,
|
|
@@ -54149,7 +54149,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54149
54149
|
ref: xe,
|
|
54150
54150
|
onBlur: ye,
|
|
54151
54151
|
children: [
|
|
54152
|
-
!a && r ||
|
|
54152
|
+
!a && r || T && !D ? /* @__PURE__ */ V("div", {
|
|
54153
54153
|
className: c("flex max-w-full items-center", QN({ size: Ce })),
|
|
54154
54154
|
children: /* @__PURE__ */ H("div", {
|
|
54155
54155
|
className: c("flex min-w-0 flex-1 flex-row gap-4"),
|
|
@@ -54161,12 +54161,12 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54161
54161
|
icon: i,
|
|
54162
54162
|
className: "min-w-0 flex-1",
|
|
54163
54163
|
disabled: t
|
|
54164
|
-
}) : null,
|
|
54164
|
+
}) : null, T && !D && !De ? /* @__PURE__ */ H("div", {
|
|
54165
54165
|
className: "text-right text-f1-foreground-secondary",
|
|
54166
54166
|
children: [
|
|
54167
54167
|
w(Oe),
|
|
54168
54168
|
"/",
|
|
54169
|
-
|
|
54169
|
+
T
|
|
54170
54170
|
]
|
|
54171
54171
|
}) : null]
|
|
54172
54172
|
})
|
|
@@ -54190,22 +54190,22 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54190
54190
|
className: "pointer-events-auto relative flex h-full w-full min-w-0 flex-1",
|
|
54191
54191
|
onClick: Me,
|
|
54192
54192
|
children: [
|
|
54193
|
-
m ||
|
|
54193
|
+
m || N ? /* @__PURE__ */ H("div", {
|
|
54194
54194
|
"data-slot": "icon",
|
|
54195
54195
|
className: c("pointer-events-none absolute left-2 top-[5px] my-auto h-5 w-5 shrink-0", Ce === "md" && "left-3 top-[9px]"),
|
|
54196
|
-
children: [m ? /* @__PURE__ */ V(
|
|
54196
|
+
children: [m ? /* @__PURE__ */ V(A, {
|
|
54197
54197
|
onClick: Me,
|
|
54198
54198
|
icon: m,
|
|
54199
54199
|
color: "default"
|
|
54200
|
-
}) : null,
|
|
54201
|
-
avatar:
|
|
54200
|
+
}) : null, N ? /* @__PURE__ */ V(de, {
|
|
54201
|
+
avatar: N,
|
|
54202
54202
|
size: "xs"
|
|
54203
54203
|
}) : null]
|
|
54204
54204
|
}) : null,
|
|
54205
54205
|
Ge ? /* @__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 ||
|
|
54208
|
-
children:
|
|
54207
|
+
className: c("pointer-events-none flex min-w-0 shrink items-center pr-0", "pl-3", (m || N) && "pl-8", (m || N) && Ce === "md" && "pl-9", UN({ size: Ce })),
|
|
54208
|
+
children: j
|
|
54209
54209
|
}) : null,
|
|
54210
54210
|
/* @__PURE__ */ V("div", {
|
|
54211
54211
|
onClick: Ne,
|
|
@@ -54217,10 +54217,10 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54217
54217
|
onAnimationStart: Le,
|
|
54218
54218
|
disabled: De,
|
|
54219
54219
|
readOnly: n,
|
|
54220
|
-
role:
|
|
54220
|
+
role: ae,
|
|
54221
54221
|
ref: Be,
|
|
54222
|
-
"aria-controls":
|
|
54223
|
-
"aria-expanded":
|
|
54222
|
+
"aria-controls": ce,
|
|
54223
|
+
"aria-expanded": ae === "combobox" ? le : void 0,
|
|
54224
54224
|
"aria-activedescendant": ue,
|
|
54225
54225
|
"aria-autocomplete": fe,
|
|
54226
54226
|
...He !== void 0 && { "aria-describedby": He },
|
|
@@ -54230,13 +54230,13 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54230
54230
|
"aria-label": r || y || "no-label",
|
|
54231
54231
|
"aria-busy": _,
|
|
54232
54232
|
"aria-disabled": De,
|
|
54233
|
-
name:
|
|
54234
|
-
className: c("h-full w-full min-w-0 px-3 text-f1-foreground", "[&::-webkit-search-cancel-button]:hidden", (m ||
|
|
54233
|
+
name: ie,
|
|
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) && Ce === "md" && "pl-9", Ge && "pl-0", t && "cursor-not-allowed", e.props.className, UN({ size: Ce }))
|
|
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 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !h && "bottom-0", h && "items-start", (m ||
|
|
54239
|
+
className: c("pointer-events-none absolute inset-x-0 top-[1px] z-10 flex flex-1 justify-start overflow-hidden px-3 text-f1-foreground-secondary transition-opacity", !h && "bottom-0", h && "items-start", (m || N) && "pl-8", (m || N) && Ce === "md" && "pl-9", UN({ size: Ce }), y && !k && !Ge && S(Oe) && !Fe ? "opacity-100" : "opacity-0"),
|
|
54240
54240
|
onClick: Pe,
|
|
54241
54241
|
"aria-hidden": "true",
|
|
54242
54242
|
title: y,
|
|
@@ -54250,7 +54250,7 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54250
54250
|
children: [
|
|
54251
54251
|
x && !De ? /* @__PURE__ */ V(b, {
|
|
54252
54252
|
initial: We,
|
|
54253
|
-
children: We ? /* @__PURE__ */ V(
|
|
54253
|
+
children: We ? /* @__PURE__ */ V(E.button, {
|
|
54254
54254
|
initial: { opacity: 0 },
|
|
54255
54255
|
animate: { opacity: 1 },
|
|
54256
54256
|
exit: { opacity: 0 },
|
|
@@ -54266,8 +54266,8 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54266
54266
|
onClick: (e) => {
|
|
54267
54267
|
e.stopPropagation(), je();
|
|
54268
54268
|
},
|
|
54269
|
-
children: /* @__PURE__ */ V(
|
|
54270
|
-
icon:
|
|
54269
|
+
children: /* @__PURE__ */ V(A, {
|
|
54270
|
+
icon: se,
|
|
54271
54271
|
color: "default",
|
|
54272
54272
|
size: "md"
|
|
54273
54273
|
})
|
|
@@ -54276,8 +54276,8 @@ var VN = ({ text: e }) => /* @__PURE__ */ V("div", {
|
|
|
54276
54276
|
Ue ? /* @__PURE__ */ H("div", {
|
|
54277
54277
|
className: "flex min-h-6 min-w-6 items-center justify-center self-center",
|
|
54278
54278
|
children: [
|
|
54279
|
-
|
|
54280
|
-
|
|
54279
|
+
O,
|
|
54280
|
+
oe ? /* @__PURE__ */ V(VN, { text: oe }) : null,
|
|
54281
54281
|
me ? /* @__PURE__ */ V(yT, {
|
|
54282
54282
|
label: me.label,
|
|
54283
54283
|
icon: me.icon,
|
|
@@ -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, T] = B(!1), E = R(() => c, d), D = 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)]), [O, k] = B(r ?? n ?? D);
|
|
54388
54388
|
return L(() => {
|
|
54389
|
-
l?.mandatory && !
|
|
54389
|
+
l?.mandatory && !O?.field && k(r ?? n ?? D);
|
|
54390
54390
|
}, [
|
|
54391
54391
|
l?.mandatory,
|
|
54392
|
-
|
|
54393
|
-
|
|
54392
|
+
O?.field,
|
|
54393
|
+
D
|
|
54394
54394
|
]), jo(() => {
|
|
54395
|
-
|
|
54395
|
+
k(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: T,
|
|
54409
|
+
dataAdapter: E,
|
|
54410
|
+
setCurrentGrouping: k,
|
|
54411
|
+
currentGrouping: O,
|
|
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, T] = B(!1), [E, D] = B(null), O = z(!1), k = z(""), A = z(!1), j = z(!0), M = z(n.currentFilters), ee = z(n.currentSortings), te = n.debouncedCurrentSearch, ne = z(te), re = z(l), ie = z(""), ae = z(""), oe = z(!1), se = z(!1), N = z(void 0), ce = 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 === ce && ce > 0, [ce, 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 && !O.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 && E !== null ? Math.max(0, Math.max(E, p) - he) : me, [
|
|
54514
|
+
E,
|
|
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: ce
|
|
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
|
+
ce
|
|
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
|
+
T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), oe.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 && D((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 || (T(!1), O.current = !1, D(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 (T(t), O.current = t, D(t ? ce : 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
|
+
ce,
|
|
54763
54763
|
m,
|
|
54764
54764
|
e,
|
|
54765
54765
|
Ie,
|
|
54766
54766
|
Ne,
|
|
54767
54767
|
Me
|
|
54768
54768
|
]), Be = I(() => {
|
|
54769
|
-
|
|
54769
|
+
T(!1), O.current = !1, D(null), C(/* @__PURE__ */ new Map()), oe.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
|
+
A.current ? e !== k.current && (k.current = e, je(i)) : (A.current = !0, k.current = e);
|
|
54783
54783
|
}, [
|
|
54784
54784
|
i,
|
|
54785
54785
|
Ae,
|
|
54786
54786
|
je
|
|
54787
54787
|
]), L(() => {
|
|
54788
|
-
if (
|
|
54789
|
-
|
|
54788
|
+
if (j.current) {
|
|
54789
|
+
j.current = !1, M.current = n.currentFilters, ee.current = n.currentSortings, ne.current = te, re.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(M.current), t = JSON.stringify(n.currentSortings) !== JSON.stringify(ee.current), r = te !== ne.current, i = JSON.stringify(l) !== JSON.stringify(re.current);
|
|
54793
|
+
(e || t || r || i) && (!v && (!u || w) && (se.current = !0, Be()), M.current = n.currentFilters, ee.current = n.currentSortings, ne.current = te, re.current = l);
|
|
54794
54794
|
}, [
|
|
54795
54795
|
n.currentFilters,
|
|
54796
54796
|
n.currentSortings,
|
|
54797
|
-
|
|
54797
|
+
te,
|
|
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
|
+
N.current = le;
|
|
54807
54807
|
return;
|
|
54808
54808
|
}
|
|
54809
|
-
let e =
|
|
54810
|
-
e === void 0 || le !== e && (w || Be()),
|
|
54809
|
+
let e = N.current;
|
|
54810
|
+
e === void 0 || le !== e && (w || Be()), N.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
|
+
oe.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 !== ie.current && (ie.current = n, se.current ? se.current = !1 : (m ? Ve(e) : h && !y && Me(t, oe.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 && (T(!1), O.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 !== ae.current && (ae.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: ce,
|
|
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(A, {
|
|
54922
|
+
icon: te,
|
|
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
|
+
}, T = 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
|
+
}), E = (e) => {
|
|
54976
54976
|
(e.key === "Enter" || e.key === " ") && (e.key === " " && e.preventDefault(), w());
|
|
54977
|
-
},
|
|
54977
|
+
}, O = 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", O && l("rounded"), h),
|
|
54980
54980
|
onClick: w,
|
|
54981
|
-
...
|
|
54981
|
+
...O && {
|
|
54982
54982
|
role: "button",
|
|
54983
54983
|
tabIndex: 0,
|
|
54984
|
-
onKeyDown:
|
|
54984
|
+
onKeyDown: E
|
|
54985
54985
|
},
|
|
54986
54986
|
"aria-expanded": d ? x : void 0,
|
|
54987
54987
|
children: [
|
|
54988
|
-
_ === "leading" ?
|
|
54988
|
+
_ === "leading" ? T : 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" ? T : 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(D, {
|
|
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), [T, E] = Pe({
|
|
55141
55141
|
prop: r,
|
|
55142
55142
|
defaultProp: i ?? !1,
|
|
55143
55143
|
onChange: a,
|
|
55144
55144
|
caller: MP
|
|
55145
|
-
}), [
|
|
55145
|
+
}), [D, O] = Pe({
|
|
55146
55146
|
prop: o,
|
|
55147
55147
|
defaultProp: s,
|
|
55148
55148
|
onChange: c,
|
|
55149
55149
|
caller: MP
|
|
55150
|
-
}),
|
|
55150
|
+
}), k = P.useRef(null), A = !v || h || !!v.closest("form"), [j, M] = P.useState(/* @__PURE__ */ new Set()), ee = Array.from(j).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: D,
|
|
55164
|
+
onValueChange: (e) => O(e),
|
|
55165
55165
|
onItemCheckChange: l,
|
|
55166
|
-
open:
|
|
55167
|
-
onOpenChange:
|
|
55166
|
+
open: T,
|
|
55167
|
+
onOpenChange: E,
|
|
55168
55168
|
dir: w,
|
|
55169
|
-
triggerPointerDownPosRef:
|
|
55169
|
+
triggerPointerDownPosRef: k,
|
|
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
|
+
M((t) => new Set(t).add(e));
|
|
55178
55178
|
}, []),
|
|
55179
55179
|
onNativeOptionRemove: P.useCallback((e) => {
|
|
55180
|
-
|
|
55180
|
+
M((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
|
+
}), A ? /* @__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: D,
|
|
55194
55194
|
onChange: (e) => {
|
|
55195
|
-
|
|
55195
|
+
O(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: [D === void 0 ? /* @__PURE__ */ V("option", { value: "" }) : null, Array.from(j)]
|
|
55201
|
+
}, ee) : 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, T] = P.useState(null), E = Te(t, (e) => C(e)), [D, O] = P.useState(null), [k, A] = P.useState(null), j = PP(n), [M, ee] = P.useState(!1), te = P.useRef(!1), ne = P.useRef(null);
|
|
55302
55302
|
P.useEffect(() => {
|
|
55303
|
-
if (S && (
|
|
55303
|
+
if (S && (ne.current &&= (ne.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 ne.current = e, () => {
|
|
55306
|
+
e && e(), ne.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 re = P.useCallback((e) => {
|
|
55317
|
+
let [t, ...n] = j().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
|
+
}, [j, w]), ie = 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 || re([D, S]);
|
|
55322
55322
|
}, [
|
|
55323
|
-
|
|
55324
|
-
|
|
55323
|
+
re,
|
|
55324
|
+
D,
|
|
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
|
+
]), ae = P.useRef(!1), oe = P.useRef(null), se = P.useRef(ie);
|
|
55328
|
+
se.current = ie, P.useEffect(() => {
|
|
55329
|
+
if (!x.open) ae.current = !1, oe.current = null;
|
|
55330
|
+
else if (M && !ae.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 || D !== null && (r || j().some((e) => e.ref.current === D && 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 = oe.current;
|
|
55334
55334
|
if (r && n !== a) {
|
|
55335
|
-
|
|
55335
|
+
ae.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) ae.current = !0, o && se.current(n === a);
|
|
55340
55340
|
else {
|
|
55341
55341
|
if (!o) {
|
|
55342
|
-
|
|
55342
|
+
ae.current = !0;
|
|
55343
55343
|
return;
|
|
55344
55344
|
}
|
|
55345
|
-
|
|
55346
|
-
e ||
|
|
55345
|
+
oe.current = S, D && (t = setTimeout(() => {
|
|
55346
|
+
e || ae.current || (document.activeElement === oe.current ? (D.focus(), !e && document.activeElement === D && (oe.current = D)) : ae.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,
|
|
55361
55360
|
j,
|
|
55362
|
-
|
|
55361
|
+
M,
|
|
55362
|
+
D
|
|
55363
55363
|
]);
|
|
55364
|
-
let { onOpenChange:
|
|
55364
|
+
let { onOpenChange: N, triggerPointerDownPosRef: ce } = 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) - (ce.current?.x ?? 0)),
|
|
55373
|
+
y: Math.abs(Math.round(t.pageY) - (ce.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) || N(!1), document.removeEventListener("pointermove", t), ce.current = null;
|
|
55377
55377
|
};
|
|
55378
|
-
return
|
|
55378
|
+
return ce.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
|
+
N,
|
|
55388
|
+
ce
|
|
55389
55389
|
]), P.useEffect(() => {
|
|
55390
|
-
let e = () =>
|
|
55390
|
+
let e = () => N(!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
|
+
}, [N]);
|
|
55395
55395
|
let [le, ue] = WF((e) => {
|
|
55396
|
-
let t =
|
|
55396
|
+
let t = j().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 = !te.current && !n;
|
|
55400
|
+
(x.value !== void 0 && r.includes(t) || i) && (O(e), i && (te.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 = !te.current && !n;
|
|
55403
|
+
(x.value !== void 0 && x.value === t || r) && A(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: () => ee(!0),
|
|
55423
|
+
ref: E,
|
|
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 = j().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(() => re(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: T,
|
|
55447
55447
|
itemRefCallback: de,
|
|
55448
|
-
selectedItem:
|
|
55448
|
+
selectedItem: D,
|
|
55449
55449
|
onItemLeave: fe,
|
|
55450
55450
|
itemTextRefCallback: pe,
|
|
55451
|
-
focusSelectedItem:
|
|
55452
|
-
selectedItemText:
|
|
55451
|
+
focusSelectedItem: ie,
|
|
55452
|
+
selectedItemText: k,
|
|
55453
55453
|
position: r,
|
|
55454
|
-
isPositioned:
|
|
55454
|
+
isPositioned: M,
|
|
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), T = parseInt(C.paddingBottom, 10), E = e.top + e.height / 2 - eF, D = c - E, O = g.offsetHeight / 2, k = g.offsetTop + O, A = m + v + k, j = x - A;
|
|
55504
|
+
if (A <= E) {
|
|
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 = A + Math.max(D, O + (e ? T : 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(E, m + h.offsetTop + (e ? w : 0) + O) + j;
|
|
55513
|
+
s.style.height = t + "px", h.scrollTop = A - E + 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 }, T) => {
|
|
56738
|
+
let E = vt(tP), D = E.portalContainer && (E.position === "center" || E.position === "fullscreen"), O = v === void 0 ? D ? E.portalContainer : void 0 : v, k = z(null), A = z(null), j = Array.isArray(e), M = R(() => j ? e.every((e) => !e.value && e.type !== "group-header") : !n, [
|
|
56739
|
+
j,
|
|
56740
56740
|
e,
|
|
56741
56741
|
n
|
|
56742
|
-
]),
|
|
56742
|
+
]), ee = S(), [te, ne] = B(ee), [re, ie] = B(!1), { value: ae, open: oe, as: se } = vt(SP), N = se === "list", ce = R(() => new Set((Array.isArray(ae) ? ae : [ae]).filter((e) => e !== void 0)), [ae]), le = R(() => e?.findIndex((e) => e.value !== void 0 && ce.has(e.value)) ?? -1, [e, ce]), ue = N || ee || re, de = kI({
|
|
56743
56743
|
count: e?.length || 0,
|
|
56744
|
-
getScrollElement: () =>
|
|
56744
|
+
getScrollElement: () => k.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
|
+
oe || (ie(!1), ne(!0));
|
|
56753
|
+
}, [oe]), L(() => {
|
|
56754
|
+
N || de.measure();
|
|
56755
56755
|
}, [
|
|
56756
56756
|
de,
|
|
56757
|
-
|
|
56758
|
-
|
|
56757
|
+
re,
|
|
56758
|
+
N
|
|
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
|
+
!oe && !N && (fe.current = !1);
|
|
56763
|
+
}, [oe, N]), L(function() {
|
|
56764
|
+
ue && (oe || N) && (!fe.current && le >= 0 ? (fe.current = !0, setTimeout(() => {
|
|
56765
|
+
!de.scrollElement && k.current ? (fe.current = !1, me()) : (de.scrollToIndex(le, { align: "center" }), ne(!0));
|
|
56766
|
+
})) : ne(!0));
|
|
56767
56767
|
}, [
|
|
56768
|
-
|
|
56769
|
-
|
|
56768
|
+
N,
|
|
56769
|
+
oe,
|
|
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" && (A.current = r);
|
|
56779
|
+
let i = r ?? (A.current?.isConnected ? A.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 = M ? /* @__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
|
+
}) : j ? /* @__PURE__ */ V("div", {
|
|
56797
|
+
className: c(!N && "transition-opacity delay-100", N || te ? "" : "opacity-0", !N && 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: T,
|
|
56826
56826
|
asChild: _,
|
|
56827
|
-
disableScrollLock:
|
|
56828
|
-
inline:
|
|
56829
|
-
className: c("relative z-50 text-f1-foreground",
|
|
56830
|
-
position:
|
|
56831
|
-
side:
|
|
56832
|
-
sideOffset:
|
|
56827
|
+
disableScrollLock: N || !!O,
|
|
56828
|
+
inline: N,
|
|
56829
|
+
className: c("relative z-50 text-f1-foreground", N ? "flex w-full h-full flex-col" : "flex min-w-[8rem] flex-col overflow-hidden", !N && "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", !N && 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", !N && 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)]"), !N && r === "popper" && m && "min-w-[32rem] w-[calc(var(--radix-select-trigger-width)+12rem)]", !N && (i ? "max-h-[412px]" : "max-h-[320px]"), !N && j && !te && "opacity-0", t),
|
|
56830
|
+
position: N ? "item-aligned" : r,
|
|
56831
|
+
side: N ? void 0 : "bottom",
|
|
56832
|
+
sideOffset: N ? 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
|
+
!re && e.currentTarget.contains(e.target) && ie(!0);
|
|
56842
56842
|
},
|
|
56843
56843
|
children: /* @__PURE__ */ H("div", {
|
|
56844
56844
|
className: "flex min-h-0 flex-1 flex-col",
|
|
56845
|
-
style:
|
|
56845
|
+
style: N ? 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
|
+
N && !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", N && "flex flex-col overflow-hidden flex-1 min-h-0"),
|
|
56858
56858
|
children: [
|
|
56859
|
-
!
|
|
56859
|
+
!N || 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: k,
|
|
56868
|
+
className: c("flex h-full flex-col", M ? "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: N ? /* @__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", M && "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
|
+
M && o || y ? /* @__PURE__ */ H("div", {
|
|
56897
56897
|
className: "shrink-0",
|
|
56898
|
-
children: [
|
|
56898
|
+
children: [M && 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 N ? ye : /* @__PURE__ */ V(YF, {
|
|
56907
|
+
container: O,
|
|
56908
|
+
children: /* @__PURE__ */ H(Ct, { children: [oe && !O ? /* @__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,16 +56939,17 @@ 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(j, {
|
|
56943
56943
|
icon: fn,
|
|
56944
56944
|
size: "lg"
|
|
56945
56945
|
})
|
|
56946
56946
|
});
|
|
56947
|
-
}), RI = ({ selectedCount: e, indeterminate: t, value: n, onChange: r, hideCheckbox: i = !1, items: o, paddingTop: l = !1 }) => {
|
|
56948
|
-
let
|
|
56947
|
+
}), RI = ({ selectedCount: e, indeterminate: t, value: n, onChange: r, hideCheckbox: i = !1, items: o, paddingTop: l = !1, keepFocusOnClick: u = !1 }) => {
|
|
56948
|
+
let d = a(), f = (e) => {
|
|
56949
56949
|
r(!t && e);
|
|
56950
|
-
},
|
|
56950
|
+
}, p = (e) => `${e} ${e === 1 ? d.status.selected.singular.toLowerCase() : d.status.selected.plural.toLowerCase()}`;
|
|
56951
56951
|
return /* @__PURE__ */ H("div", {
|
|
56952
|
+
onMouseDown: u ? (e) => e.preventDefault() : void 0,
|
|
56952
56953
|
className: c("flex items-center gap-2 pr-2 pl-4", l ? "pt-3 pb-1" : "py-1"),
|
|
56953
56954
|
children: [/* @__PURE__ */ V("div", {
|
|
56954
56955
|
className: "flex-1 whitespace-nowrap",
|
|
@@ -56957,27 +56958,27 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56957
56958
|
fallback: /* @__PURE__ */ V(s, { className: "h-4 w-4" }),
|
|
56958
56959
|
children: (e) => /* @__PURE__ */ V("div", {
|
|
56959
56960
|
className: "flex h-[24px] items-center",
|
|
56960
|
-
children: /* @__PURE__ */ V(
|
|
56961
|
+
children: /* @__PURE__ */ V(D, {
|
|
56961
56962
|
className: "text-f1-foreground-secondary",
|
|
56962
|
-
children:
|
|
56963
|
+
children: p(e)
|
|
56963
56964
|
})
|
|
56964
56965
|
})
|
|
56965
56966
|
})
|
|
56966
|
-
}), i ? o && /* @__PURE__ */ V(
|
|
56967
|
+
}), i ? o && /* @__PURE__ */ V(T, {
|
|
56967
56968
|
variant: "ghost",
|
|
56968
56969
|
size: "sm",
|
|
56969
|
-
label:
|
|
56970
|
-
onClick: () =>
|
|
56970
|
+
label: d.actions.clear,
|
|
56971
|
+
onClick: () => f(!1),
|
|
56971
56972
|
className: "z-10",
|
|
56972
56973
|
disabled: o.length === 0
|
|
56973
56974
|
}) : /* @__PURE__ */ V("div", {
|
|
56974
56975
|
className: "shrink-0 pr-1",
|
|
56975
56976
|
children: /* @__PURE__ */ V(MO, {
|
|
56976
56977
|
id: "select-all",
|
|
56977
|
-
title:
|
|
56978
|
+
title: d.actions.selectAll,
|
|
56978
56979
|
checked: t || n,
|
|
56979
56980
|
indeterminate: t,
|
|
56980
|
-
onCheckedChange:
|
|
56981
|
+
onCheckedChange: f,
|
|
56981
56982
|
presentational: !0,
|
|
56982
56983
|
hideLabel: !0
|
|
56983
56984
|
})
|
|
@@ -56988,21 +56989,21 @@ var II = _t(null), LI = F(function({ disabled: e, open: t, size: n = "sm", class
|
|
|
56988
56989
|
return !e && !t ? null : /* @__PURE__ */ H("div", {
|
|
56989
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",
|
|
56990
56991
|
children: [
|
|
56991
|
-
e?.map((e) => /* @__PURE__ */ V(
|
|
56992
|
+
e?.map((e) => /* @__PURE__ */ V(O, {
|
|
56992
56993
|
variant: e.variant,
|
|
56993
56994
|
onClick: e.onClick,
|
|
56994
56995
|
icon: e.icon,
|
|
56995
56996
|
label: e.label,
|
|
56996
56997
|
disabled: e.disabled
|
|
56997
56998
|
}, e.label)),
|
|
56998
|
-
i ? /* @__PURE__ */ V(
|
|
56999
|
+
i ? /* @__PURE__ */ V(O, {
|
|
56999
57000
|
onClick: r,
|
|
57000
57001
|
label: s.filters.cancel,
|
|
57001
57002
|
variant: "ghost"
|
|
57002
57003
|
}) : null,
|
|
57003
57004
|
t ? /* @__PURE__ */ V("div", {
|
|
57004
57005
|
className: i ? "" : "ml-auto",
|
|
57005
|
-
children: /* @__PURE__ */ V(
|
|
57006
|
+
children: /* @__PURE__ */ V(O, {
|
|
57006
57007
|
onClick: n,
|
|
57007
57008
|
label: o ?? s.select.applySelection
|
|
57008
57009
|
})
|
|
@@ -57091,7 +57092,7 @@ function JI({ count: e, noTooltip: t, onSpelledOutChange: n }) {
|
|
|
57091
57092
|
let r = a();
|
|
57092
57093
|
return qI(n, !1), /* @__PURE__ */ V("div", {
|
|
57093
57094
|
className: "flex w-full items-center gap-1 text-left",
|
|
57094
|
-
children: /* @__PURE__ */ V(
|
|
57095
|
+
children: /* @__PURE__ */ V(D, {
|
|
57095
57096
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
57096
57097
|
noTooltip: t,
|
|
57097
57098
|
children: `${e} ${e === 1 ? r.status.selected.singular : r.status.selected.plural}`.toLowerCase()
|
|
@@ -57120,7 +57121,7 @@ function XI({ selection: e, totalSelectedCount: t, allSelected: n, noTooltip: r,
|
|
|
57120
57121
|
let o = a(), s = t ?? e.length;
|
|
57121
57122
|
return qI(i, s === 0 && e.length === 0 || n !== !0 && null), s === 0 && e.length === 0 ? null : n === !0 ? /* @__PURE__ */ V("div", {
|
|
57122
57123
|
className: "flex w-full items-center gap-1 text-left",
|
|
57123
|
-
children: /* @__PURE__ */ V(
|
|
57124
|
+
children: /* @__PURE__ */ V(D, {
|
|
57124
57125
|
className: "min-w-0 flex-1 text-f1-foreground",
|
|
57125
57126
|
noTooltip: r,
|
|
57126
57127
|
children: `${o.status.selected.all} (${s})`
|
|
@@ -57153,7 +57154,7 @@ var $I = F(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
57153
57154
|
}) : !c && n && n > 0 ? /* @__PURE__ */ V("div", {
|
|
57154
57155
|
className: "flex min-w-0 flex-1 justify-start gap-1.5",
|
|
57155
57156
|
ref: s,
|
|
57156
|
-
children: /* @__PURE__ */ V(
|
|
57157
|
+
children: /* @__PURE__ */ V(D, {
|
|
57157
57158
|
tag: "span",
|
|
57158
57159
|
className: "text-left text-f1-foreground-secondary",
|
|
57159
57160
|
noTooltip: a,
|
|
@@ -57179,9 +57180,9 @@ var $I = F(function({ selection: e, multiple: t, totalSelectedCount: n, allSelec
|
|
|
57179
57180
|
}) : null,
|
|
57180
57181
|
c.icon && !i ? /* @__PURE__ */ V("div", {
|
|
57181
57182
|
className: "h-5 shrink-0 text-f1-icon",
|
|
57182
|
-
children: /* @__PURE__ */ V(
|
|
57183
|
+
children: /* @__PURE__ */ V(A, { icon: c.icon })
|
|
57183
57184
|
}) : null,
|
|
57184
|
-
/* @__PURE__ */ V(
|
|
57185
|
+
/* @__PURE__ */ V(D, {
|
|
57185
57186
|
ref: u,
|
|
57186
57187
|
tag: "span",
|
|
57187
57188
|
className: "text-left text-f1-foreground",
|
|
@@ -57201,12 +57202,12 @@ function tL({ item: e, onDeselect: t }) {
|
|
|
57201
57202
|
avatar: e.avatar,
|
|
57202
57203
|
size: "xs"
|
|
57203
57204
|
}) : null,
|
|
57204
|
-
e.icon ? /* @__PURE__ */ V(
|
|
57205
|
+
e.icon ? /* @__PURE__ */ V(A, {
|
|
57205
57206
|
icon: e.icon,
|
|
57206
57207
|
size: "sm",
|
|
57207
57208
|
className: "shrink-0 text-f1-icon"
|
|
57208
57209
|
}) : null,
|
|
57209
|
-
/* @__PURE__ */ V(
|
|
57210
|
+
/* @__PURE__ */ V(D, {
|
|
57210
57211
|
className: "text-sm",
|
|
57211
57212
|
children: e.label
|
|
57212
57213
|
})
|
|
@@ -57219,8 +57220,8 @@ function tL({ item: e, onDeselect: t }) {
|
|
|
57219
57220
|
onClick: (n) => {
|
|
57220
57221
|
n.preventDefault(), n.stopPropagation(), t(String(e.value));
|
|
57221
57222
|
},
|
|
57222
|
-
children: /* @__PURE__ */ V(
|
|
57223
|
-
icon:
|
|
57223
|
+
children: /* @__PURE__ */ V(A, {
|
|
57224
|
+
icon: se,
|
|
57224
57225
|
color: "default",
|
|
57225
57226
|
size: "md"
|
|
57226
57227
|
})
|
|
@@ -57283,7 +57284,7 @@ var rL = P.forwardRef(({ className: e, children: t, ...n }, r) => {
|
|
|
57283
57284
|
hideLabel: !0
|
|
57284
57285
|
}) : o && /* @__PURE__ */ V(tI, {
|
|
57285
57286
|
className: "flex text-f1-icon-selected",
|
|
57286
|
-
children: /* @__PURE__ */ V(
|
|
57287
|
+
children: /* @__PURE__ */ V(A, {
|
|
57287
57288
|
icon: ve,
|
|
57288
57289
|
size: "md"
|
|
57289
57290
|
})
|
|
@@ -57303,6 +57304,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57303
57304
|
onPointerMove: i && !e.disabled ? (e) => {
|
|
57304
57305
|
e.preventDefault(), i.setActive(r);
|
|
57305
57306
|
} : void 0,
|
|
57307
|
+
onMouseDown: i ? (e) => e.preventDefault() : void 0,
|
|
57306
57308
|
className: c(e.external && "group", "data-[active=true]:after:bg-f1-background-hover data-[active=true]:after:text-f1-foreground data-[active=true]:after:opacity-100", "focus:data-[state=checked]:after:bg-f1-background-selected-bold/10 dark:focus:data-[state=checked]:after:bg-f1-background-selected-bold/20", "data-[active=true]:data-[state=checked]:after:bg-f1-background-selected-bold/10 dark:data-[active=true]:data-[state=checked]:after:bg-f1-background-selected-bold/20"),
|
|
57307
57309
|
children: /* @__PURE__ */ H("div", {
|
|
57308
57310
|
className: `flex w-full gap-1.5 ${e.description ? "items-start" : "items-center"}`,
|
|
@@ -57316,13 +57318,13 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57316
57318
|
}) : null,
|
|
57317
57319
|
e.icon ? /* @__PURE__ */ V("div", {
|
|
57318
57320
|
className: "flex shrink-0 items-center text-f1-icon",
|
|
57319
|
-
children: /* @__PURE__ */ V(
|
|
57321
|
+
children: /* @__PURE__ */ V(A, { icon: e.icon })
|
|
57320
57322
|
}) : null,
|
|
57321
57323
|
n ? null : /* @__PURE__ */ H("div", {
|
|
57322
57324
|
className: "flex min-w-0 flex-1 flex-col",
|
|
57323
57325
|
children: [/* @__PURE__ */ H("div", {
|
|
57324
57326
|
className: "flex min-w-0 items-baseline gap-1.5",
|
|
57325
|
-
children: [/* @__PURE__ */ V(
|
|
57327
|
+
children: [/* @__PURE__ */ V(D, {
|
|
57326
57328
|
lines: 2,
|
|
57327
57329
|
className: "font-medium",
|
|
57328
57330
|
children: e.label
|
|
@@ -57330,7 +57332,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57330
57332
|
className: "whitespace-nowrap text-f1-foreground-secondary",
|
|
57331
57333
|
children: oL(e.metadata)
|
|
57332
57334
|
}) : null]
|
|
57333
|
-
}), e.description ? /* @__PURE__ */ V(
|
|
57335
|
+
}), e.description ? /* @__PURE__ */ V(D, {
|
|
57334
57336
|
lines: 2,
|
|
57335
57337
|
className: "text-f1-foreground-secondary",
|
|
57336
57338
|
children: e.description
|
|
@@ -57379,7 +57381,7 @@ var iL = /^\+\d{1,4}$/, aL = /* @__PURE__ */ new Set(), oL = (e) => e.type === "
|
|
|
57379
57381
|
order: e.groupBy[r]?.defaultDirection ?? t?.order ?? "asc"
|
|
57380
57382
|
})
|
|
57381
57383
|
})
|
|
57382
|
-
}), t?.field ? /* @__PURE__ */ V(
|
|
57384
|
+
}), t?.field ? /* @__PURE__ */ V(O, {
|
|
57383
57385
|
hideLabel: !0,
|
|
57384
57386
|
label: i.collections.grouping.toggleDirection,
|
|
57385
57387
|
variant: "outline",
|
|
@@ -57467,7 +57469,7 @@ var mL = (e) => {
|
|
|
57467
57469
|
render() {
|
|
57468
57470
|
return this.state.hasError ? this.props.fallback ?? null : this.props.children;
|
|
57469
57471
|
}
|
|
57470
|
-
}, _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: T, onClickContent: E, hideLabel: D, name: O, onFocus: k, onBlur: A, onBlurWithin: j, onKeyDown: M, readonly: ee, buttonToggle: te, transparent: ne, variant: re, editing: ie, inlineText: ae, autocomplete: oe, "aria-controls": se, "aria-expanded": N, "aria-activedescendant": ce, "aria-autocomplete": le, ...ue }, de) => /* @__PURE__ */ V(eP, {
|
|
57471
57473
|
label: n,
|
|
57472
57474
|
icon: i,
|
|
57473
57475
|
labelIcon: r,
|
|
@@ -57484,37 +57486,37 @@ var mL = (e) => {
|
|
|
57484
57486
|
placeholder: f || "",
|
|
57485
57487
|
size: h,
|
|
57486
57488
|
role: C,
|
|
57487
|
-
"aria-controls":
|
|
57488
|
-
"aria-expanded":
|
|
57489
|
-
"aria-activedescendant":
|
|
57489
|
+
"aria-controls": se,
|
|
57490
|
+
"aria-expanded": N,
|
|
57491
|
+
"aria-activedescendant": ce,
|
|
57490
57492
|
"aria-autocomplete": le,
|
|
57491
57493
|
isEmpty: _,
|
|
57492
57494
|
emptyValue: v,
|
|
57493
57495
|
maxLength: y,
|
|
57494
57496
|
hideMaxLength: b,
|
|
57495
57497
|
append: x,
|
|
57496
|
-
lengthProvider:
|
|
57498
|
+
lengthProvider: T,
|
|
57497
57499
|
hidePlaceholder: t === "file",
|
|
57498
|
-
hideLabel:
|
|
57500
|
+
hideLabel: D,
|
|
57499
57501
|
onChange: S,
|
|
57500
|
-
onClickContent:
|
|
57501
|
-
name:
|
|
57502
|
+
onClickContent: E,
|
|
57503
|
+
name: O,
|
|
57502
57504
|
appendTag: w,
|
|
57503
|
-
onFocus:
|
|
57504
|
-
onBlur:
|
|
57505
|
-
onBlurWithin:
|
|
57505
|
+
onFocus: k,
|
|
57506
|
+
onBlur: A,
|
|
57507
|
+
onBlurWithin: j,
|
|
57506
57508
|
inputRef: de,
|
|
57507
|
-
readonly:
|
|
57508
|
-
buttonToggle:
|
|
57509
|
-
transparent:
|
|
57510
|
-
variant:
|
|
57511
|
-
editing:
|
|
57512
|
-
inlineText:
|
|
57509
|
+
readonly: ee,
|
|
57510
|
+
buttonToggle: te,
|
|
57511
|
+
transparent: ne,
|
|
57512
|
+
variant: re,
|
|
57513
|
+
editing: ie,
|
|
57514
|
+
inlineText: ae,
|
|
57513
57515
|
children: /* @__PURE__ */ V("input", {
|
|
57514
57516
|
type: t,
|
|
57515
|
-
autoComplete:
|
|
57517
|
+
autoComplete: oe,
|
|
57516
57518
|
...ue,
|
|
57517
|
-
onKeyDown:
|
|
57519
|
+
onKeyDown: M,
|
|
57518
57520
|
className: c("[&::-webkit-search-cancel-button]:hidden", "w-full shrink placeholder:-z-10 disabled:cursor-not-allowed", C === "combobox" && "cursor-text")
|
|
57519
57521
|
})
|
|
57520
57522
|
}));
|
|
@@ -57657,7 +57659,7 @@ var CL = 366, wL = (e) => {
|
|
|
57657
57659
|
children: e
|
|
57658
57660
|
}), /* @__PURE__ */ H("div", {
|
|
57659
57661
|
className: c("flex items-center", s ? "gap-1" : "gap-2"),
|
|
57660
|
-
children: [/* @__PURE__ */ V(
|
|
57662
|
+
children: [/* @__PURE__ */ V(O, {
|
|
57661
57663
|
onClick: () => u(-1),
|
|
57662
57664
|
variant: "outline",
|
|
57663
57665
|
label: d.navigation.previous,
|
|
@@ -57665,7 +57667,7 @@ var CL = 366, wL = (e) => {
|
|
|
57665
57667
|
icon: on,
|
|
57666
57668
|
size: "sm",
|
|
57667
57669
|
disabled: !l(-1)
|
|
57668
|
-
}), /* @__PURE__ */ V(
|
|
57670
|
+
}), /* @__PURE__ */ V(O, {
|
|
57669
57671
|
onClick: () => u(1),
|
|
57670
57672
|
variant: "outline",
|
|
57671
57673
|
label: d.navigation.next,
|
|
@@ -57685,121 +57687,121 @@ var CL = 366, wL = (e) => {
|
|
|
57685
57687
|
r,
|
|
57686
57688
|
c,
|
|
57687
57689
|
l
|
|
57688
|
-
]), [b, x] = B(y), [S, C] = B(i), [w,
|
|
57690
|
+
]), [b, x] = B(y), [S, C] = B(i), [w, T] = B(1), E = R(() => BN({
|
|
57689
57691
|
weekStartsOn: v,
|
|
57690
57692
|
periods: h
|
|
57691
57693
|
})[t], [
|
|
57692
57694
|
t,
|
|
57693
57695
|
v,
|
|
57694
57696
|
h
|
|
57695
|
-
]),
|
|
57696
|
-
C(e),
|
|
57697
|
-
let t =
|
|
57698
|
-
t !==
|
|
57699
|
-
}, [
|
|
57697
|
+
]), D = I((e) => {
|
|
57698
|
+
C(e), N(E.toRangeString(e, g));
|
|
57699
|
+
let t = E.getViewDateFromDate(e instanceof Date ? e : e?.from || e?.to || y);
|
|
57700
|
+
t !== E.getViewDateFromDate(b) && x(t);
|
|
57701
|
+
}, [E, y]);
|
|
57700
57702
|
L(() => {
|
|
57701
|
-
|
|
57703
|
+
D(i);
|
|
57702
57704
|
}, [i]);
|
|
57703
|
-
let
|
|
57704
|
-
if (!
|
|
57705
|
-
let t =
|
|
57706
|
-
return t >=
|
|
57705
|
+
let O = () => E.label(b, g, _.locale), k = E.calendarView === "day" || E.calendarView === "week" ? "month-year" : E.calendarView === "month" || E.calendarView === "periods" ? "year" : null, A = E.getViewDateBounds?.(), j = qA(c, A?.min), M = JA(l, A?.max), ee = k ? yL((/* @__PURE__ */ new Date()).getFullYear(), j, M, b.getFullYear()) : null, te = (e) => {
|
|
57706
|
+
if (!ee) return !0;
|
|
57707
|
+
let t = E.navigateUIView(b, e).getFullYear();
|
|
57708
|
+
return t >= ee.fromYear && t <= ee.toYear;
|
|
57709
|
+
}, ne = (e) => {
|
|
57710
|
+
if (!te(e)) return;
|
|
57711
|
+
let t = E.navigateUIView(b, e);
|
|
57712
|
+
T(e), x(t);
|
|
57707
57713
|
}, re = (e) => {
|
|
57708
|
-
|
|
57709
|
-
|
|
57710
|
-
ee(e), x(t);
|
|
57711
|
-
}, ie = (e) => {
|
|
57712
|
-
ee(e.getTime() >= b.getTime() ? 1 : -1), x(e);
|
|
57713
|
-
}, ae = vt(vL), oe = (t) => {
|
|
57714
|
+
T(e.getTime() >= b.getTime() ? 1 : -1), x(e);
|
|
57715
|
+
}, ie = vt(vL), ae = (t) => {
|
|
57714
57716
|
let n = e === "range" && t !== null && !(t instanceof Date) && t.to === void 0;
|
|
57715
|
-
|
|
57716
|
-
},
|
|
57717
|
-
e && (e =
|
|
57718
|
-
}, [
|
|
57717
|
+
oe(t), ie?.(!n);
|
|
57718
|
+
}, oe = (e) => {
|
|
57719
|
+
e && (e = E.toRange(e), D(e), n?.(e));
|
|
57720
|
+
}, [se, N] = B({
|
|
57719
57721
|
from: "",
|
|
57720
57722
|
to: ""
|
|
57721
|
-
}), [
|
|
57723
|
+
}), [ce, le] = B({
|
|
57722
57724
|
from: !1,
|
|
57723
57725
|
to: !1
|
|
57724
57726
|
}), ue = (e) => {
|
|
57725
|
-
fe(e,
|
|
57726
|
-
}, de = I((e) => e ? aj(e,
|
|
57727
|
+
fe(e, se);
|
|
57728
|
+
}, de = I((e) => e ? aj(e, E, {
|
|
57727
57729
|
minDate: c,
|
|
57728
57730
|
maxDate: l,
|
|
57729
57731
|
disabledDates: t === "day" ? u : void 0
|
|
57730
57732
|
}) : !1, [
|
|
57731
|
-
|
|
57733
|
+
E,
|
|
57732
57734
|
c,
|
|
57733
57735
|
l,
|
|
57734
57736
|
t,
|
|
57735
57737
|
u
|
|
57736
57738
|
]), fe = (e, t) => {
|
|
57737
|
-
let n =
|
|
57739
|
+
let n = E.fromString(t, g), r = !de(n?.[e]);
|
|
57738
57740
|
le((t) => ({
|
|
57739
57741
|
...t,
|
|
57740
57742
|
[e]: r
|
|
57741
|
-
})), r ||
|
|
57743
|
+
})), r || oe(n);
|
|
57742
57744
|
};
|
|
57743
57745
|
L(() => {
|
|
57744
57746
|
let t = YA(S);
|
|
57745
57747
|
if (!t) return;
|
|
57746
|
-
let n = e === "range" ?
|
|
57747
|
-
m ?
|
|
57748
|
-
}, [
|
|
57749
|
-
let e = YA(S), { from: t, to: n } =
|
|
57748
|
+
let n = e === "range" ? E.toRange(t) : E.toRange(t.from);
|
|
57749
|
+
m ? D(n) : oe(n);
|
|
57750
|
+
}, [E]), L(() => {
|
|
57751
|
+
let e = YA(S), { from: t, to: n } = E.toRangeString(e || {
|
|
57750
57752
|
from: /* @__PURE__ */ new Date(),
|
|
57751
57753
|
to: void 0
|
|
57752
57754
|
}, g);
|
|
57753
|
-
|
|
57755
|
+
N({
|
|
57754
57756
|
from: t || "",
|
|
57755
57757
|
to: n || ""
|
|
57756
57758
|
});
|
|
57757
|
-
}, [
|
|
57759
|
+
}, [E, S]);
|
|
57758
57760
|
let pe = (e, t) => {
|
|
57759
|
-
let n =
|
|
57760
|
-
for (let e = 0; r && e < CL && !de(r) && aj(r,
|
|
57761
|
+
let n = se[e] ? E.fromString(se[e], g) : void 0, r = n ? E.navigate(n.from, t) : void 0;
|
|
57762
|
+
for (let e = 0; r && e < CL && !de(r) && aj(r, E, {
|
|
57761
57763
|
minDate: c,
|
|
57762
57764
|
maxDate: l
|
|
57763
|
-
}); e++) r =
|
|
57765
|
+
}); e++) r = E.navigate(r, t);
|
|
57764
57766
|
if (de(r)) {
|
|
57765
57767
|
let t = {
|
|
57766
|
-
...
|
|
57767
|
-
[e]:
|
|
57768
|
+
...se,
|
|
57769
|
+
[e]: E.toRangeString(r, g).from
|
|
57768
57770
|
};
|
|
57769
|
-
fe(e, t),
|
|
57771
|
+
fe(e, t), N(t);
|
|
57770
57772
|
}
|
|
57771
|
-
}, me = s && !
|
|
57773
|
+
}, me = s && !E.hideDateInput;
|
|
57772
57774
|
return /* @__PURE__ */ H("div", {
|
|
57773
57775
|
className: "flex flex-col",
|
|
57774
57776
|
children: [
|
|
57775
57777
|
me ? /* @__PURE__ */ V(EL, {
|
|
57776
57778
|
mode: e,
|
|
57777
|
-
value:
|
|
57779
|
+
value: se,
|
|
57778
57780
|
error: {
|
|
57779
|
-
from: !!
|
|
57780
|
-
to: !!
|
|
57781
|
+
from: !!ce.from,
|
|
57782
|
+
to: !!ce.to
|
|
57781
57783
|
},
|
|
57782
|
-
onChange:
|
|
57784
|
+
onChange: N,
|
|
57783
57785
|
onCommit: ue,
|
|
57784
57786
|
onNavigate: pe
|
|
57785
57787
|
}) : null,
|
|
57786
57788
|
o ? /* @__PURE__ */ V(DL, {
|
|
57787
|
-
label:
|
|
57788
|
-
dropdowns:
|
|
57789
|
+
label: O(),
|
|
57790
|
+
dropdowns: k,
|
|
57789
57791
|
viewDate: b,
|
|
57790
|
-
onViewDateChange:
|
|
57791
|
-
minDate:
|
|
57792
|
-
maxDate:
|
|
57792
|
+
onViewDateChange: re,
|
|
57793
|
+
minDate: j,
|
|
57794
|
+
maxDate: M,
|
|
57793
57795
|
compact: f,
|
|
57794
|
-
canNavigate:
|
|
57795
|
-
onNavigate:
|
|
57796
|
+
canNavigate: te,
|
|
57797
|
+
onNavigate: ne
|
|
57796
57798
|
}) : null,
|
|
57797
57799
|
/* @__PURE__ */ V("div", {
|
|
57798
57800
|
className: "relative",
|
|
57799
|
-
children:
|
|
57801
|
+
children: E.render({
|
|
57800
57802
|
mode: e,
|
|
57801
57803
|
selected: S,
|
|
57802
|
-
onSelect:
|
|
57804
|
+
onSelect: ae,
|
|
57803
57805
|
month: b,
|
|
57804
57806
|
onMonthChange: x,
|
|
57805
57807
|
motionDirection: w,
|
|
@@ -57848,7 +57850,7 @@ function ML({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
57848
57850
|
})
|
|
57849
57851
|
}), r ? null : /* @__PURE__ */ V("div", {
|
|
57850
57852
|
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]",
|
|
57851
|
-
children: /* @__PURE__ */ V(
|
|
57853
|
+
children: /* @__PURE__ */ V(O, {
|
|
57852
57854
|
variant: "ghost",
|
|
57853
57855
|
label: "Clear",
|
|
57854
57856
|
onClick: () => a(),
|
|
@@ -57877,13 +57879,13 @@ var NL = (e, t) => !e || "from" in e && !e.from && t.schema.options.mode === "si
|
|
|
57877
57879
|
isEmpty: NL,
|
|
57878
57880
|
chipLabel: (e, t) => wL(jL(t.schema.options, PL).view).toString(e, t.i18n),
|
|
57879
57881
|
formHeight: 520
|
|
57880
|
-
}, IL = F((e, t) => /* @__PURE__ */ V(
|
|
57882
|
+
}, IL = F((e, t) => /* @__PURE__ */ V(ie, {
|
|
57881
57883
|
...e,
|
|
57882
57884
|
ref: t,
|
|
57883
57885
|
className: c(e.className, "animate-spin")
|
|
57884
57886
|
}));
|
|
57885
57887
|
IL.displayName = "LoadingIcon";
|
|
57886
|
-
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 =
|
|
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 = ne, role: u = "searchbox", onKeyDown: d, "aria-controls": f, "aria-expanded": p, "aria-activedescendant": m, "aria-autocomplete": h, ...g }, _) => {
|
|
57887
57889
|
let v = z(null);
|
|
57888
57890
|
bt(_, () => v.current), L(() => {
|
|
57889
57891
|
let e = v.current;
|
|
@@ -57965,7 +57967,7 @@ function BL({ option: e, isSelected: t, onToggle: n, isCompactMode: r, disabled:
|
|
|
57965
57967
|
onClick: i ? void 0 : n,
|
|
57966
57968
|
children: [/* @__PURE__ */ V("span", {
|
|
57967
57969
|
className: "min-w-0 flex-1",
|
|
57968
|
-
children: /* @__PURE__ */ V(
|
|
57970
|
+
children: /* @__PURE__ */ V(D, { children: e.label })
|
|
57969
57971
|
}), /* @__PURE__ */ V(zL, {
|
|
57970
57972
|
label: e.label,
|
|
57971
57973
|
isSelected: t,
|
|
@@ -58008,7 +58010,7 @@ function XL({ schema: e, search: t }) {
|
|
|
58008
58010
|
enabled: !0,
|
|
58009
58011
|
sync: !0
|
|
58010
58012
|
}
|
|
58011
|
-
} : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } =
|
|
58013
|
+
} : { dataAdapter: { fetchData: async () => ({ records: [] }) } }, [u]), { data: f, isInitialLoading: p, loadMore: m, isLoadingMore: h, paginationInfo: g } = N({
|
|
58012
58014
|
...d,
|
|
58013
58015
|
currentSearch: t
|
|
58014
58016
|
}, {}, [u]), _ = I(async (t = !1) => {
|
|
@@ -58091,11 +58093,11 @@ var rR = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
58091
58093
|
let i = a(), o = n ? `${e}. ${i.status.selected.singular}` : e;
|
|
58092
58094
|
return /* @__PURE__ */ H("div", {
|
|
58093
58095
|
className: "relative shrink-0",
|
|
58094
|
-
children: [/* @__PURE__ */ V(
|
|
58096
|
+
children: [/* @__PURE__ */ V(O, {
|
|
58095
58097
|
variant: "ghost",
|
|
58096
58098
|
size: "sm",
|
|
58097
58099
|
onClick: r,
|
|
58098
|
-
icon: t ?
|
|
58100
|
+
icon: t ? te : cn,
|
|
58099
58101
|
label: e,
|
|
58100
58102
|
"aria-label": o,
|
|
58101
58103
|
"aria-expanded": t,
|
|
@@ -58107,39 +58109,39 @@ var rR = ({ label: e, expanded: t, hasSelectedDescendant: n, onToggle: r }) => {
|
|
|
58107
58109
|
});
|
|
58108
58110
|
};
|
|
58109
58111
|
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 }) {
|
|
58110
|
-
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),
|
|
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), T = v?.revision === f ? v.expanded : w, E = d ? T : g, O = () => {
|
|
58111
58113
|
d ? y({
|
|
58112
58114
|
revision: f,
|
|
58113
|
-
expanded: !
|
|
58115
|
+
expanded: !E
|
|
58114
58116
|
}) : _((e) => !e);
|
|
58115
|
-
},
|
|
58116
|
-
if (!
|
|
58117
|
-
let i =
|
|
58117
|
+
}, k = e.children?.filterKey, A = k && s ? s[k] ?? [] : [], j = I((t, n, r) => {
|
|
58118
|
+
if (!k || !o) return;
|
|
58119
|
+
let i = A.includes(t);
|
|
58118
58120
|
if (!i && r) return;
|
|
58119
58121
|
if (!i) {
|
|
58120
58122
|
GL(u, t, n);
|
|
58121
58123
|
let r = `${e.label} > ${n}`;
|
|
58122
|
-
qL(
|
|
58124
|
+
qL(k, t, r);
|
|
58123
58125
|
}
|
|
58124
|
-
let a = i ?
|
|
58125
|
-
o(
|
|
58126
|
+
let a = i ? A.filter((e) => e !== t) : [...A, t];
|
|
58127
|
+
o(k, a);
|
|
58126
58128
|
}, [
|
|
58127
|
-
O,
|
|
58128
58129
|
k,
|
|
58130
|
+
A,
|
|
58129
58131
|
o,
|
|
58130
58132
|
u,
|
|
58131
58133
|
e.label
|
|
58132
|
-
]),
|
|
58134
|
+
]), M = x && $L(e, s), ee = b.t(E ? "actions.collapseItem" : "actions.expandItem", { title: e.label });
|
|
58133
58135
|
return /* @__PURE__ */ H("div", {
|
|
58134
58136
|
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"),
|
|
58135
58137
|
children: [/* @__PURE__ */ H("div", {
|
|
58136
58138
|
className: "flex flex-row items-center overflow-hidden min-w-0",
|
|
58137
58139
|
style: { paddingLeft: `${i * 24}px` },
|
|
58138
58140
|
children: [x ? /* @__PURE__ */ V(rR, {
|
|
58139
|
-
label:
|
|
58140
|
-
expanded:
|
|
58141
|
-
hasSelectedDescendant:
|
|
58142
|
-
onToggle:
|
|
58141
|
+
label: ee,
|
|
58142
|
+
expanded: E,
|
|
58143
|
+
hasSelectedDescendant: M,
|
|
58144
|
+
onToggle: O
|
|
58143
58145
|
}) : null, /* @__PURE__ */ V("div", {
|
|
58144
58146
|
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()),
|
|
58145
58147
|
"aria-disabled": m || void 0,
|
|
@@ -58148,7 +58150,7 @@ function iR({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
58148
58150
|
onClick: m ? void 0 : n,
|
|
58149
58151
|
children: [/* @__PURE__ */ V("span", {
|
|
58150
58152
|
className: "min-w-0 flex-1",
|
|
58151
|
-
children: /* @__PURE__ */ V(
|
|
58153
|
+
children: /* @__PURE__ */ V(D, { children: e.label })
|
|
58152
58154
|
}), /* @__PURE__ */ V(zL, {
|
|
58153
58155
|
label: e.label,
|
|
58154
58156
|
isSelected: t,
|
|
@@ -58158,12 +58160,12 @@ function iR({ option: e, isSelected: t, onToggle: n, isCompactMode: r, depth: i,
|
|
|
58158
58160
|
})]
|
|
58159
58161
|
})
|
|
58160
58162
|
})]
|
|
58161
|
-
}),
|
|
58162
|
-
let t =
|
|
58163
|
+
}), E && x ? /* @__PURE__ */ V("div", { children: C.map((e) => {
|
|
58164
|
+
let t = A.includes(e.value);
|
|
58163
58165
|
return /* @__PURE__ */ V(iR, {
|
|
58164
58166
|
option: e,
|
|
58165
58167
|
isSelected: t,
|
|
58166
|
-
onToggle: () =>
|
|
58168
|
+
onToggle: () => j(e.value, e.label, e.disabled),
|
|
58167
58169
|
isCompactMode: r,
|
|
58168
58170
|
depth: i + 1,
|
|
58169
58171
|
onFilterChange: o,
|
|
@@ -58189,7 +58191,7 @@ function aR({ selectedCount: e, totalSelected: t, maxSelected: n, allFilteredSel
|
|
|
58189
58191
|
className: c("flex w-full items-center justify-between gap-1 pb-1", d),
|
|
58190
58192
|
children: [/* @__PURE__ */ V("span", {
|
|
58191
58193
|
className: "min-w-0 flex-1",
|
|
58192
|
-
children: /* @__PURE__ */ V(
|
|
58194
|
+
children: /* @__PURE__ */ V(D, {
|
|
58193
58195
|
className: "text-f1-foreground-secondary",
|
|
58194
58196
|
children: h
|
|
58195
58197
|
})
|
|
@@ -58280,42 +58282,42 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58280
58282
|
x,
|
|
58281
58283
|
h,
|
|
58282
58284
|
C
|
|
58283
|
-
]),
|
|
58285
|
+
]), T = R(() => [.../* @__PURE__ */ new Set([...nR(e), ...tR(h)])], [e, h]), E = R(() => T.reduce((e, t) => {
|
|
58284
58286
|
let n = o?.[t];
|
|
58285
58287
|
return e + (Array.isArray(n) ? n.length : 0);
|
|
58286
|
-
}, 0), [
|
|
58288
|
+
}, 0), [T, o]), D = E > 0, O = oR({
|
|
58287
58289
|
isLoading: g,
|
|
58288
58290
|
error: _,
|
|
58289
58291
|
optionCount: h.length,
|
|
58290
58292
|
hasSource: x
|
|
58291
58293
|
});
|
|
58292
|
-
if (
|
|
58293
|
-
state:
|
|
58294
|
+
if (O) return /* @__PURE__ */ V(sR, {
|
|
58295
|
+
state: O,
|
|
58294
58296
|
onRetry: () => v(!0)
|
|
58295
58297
|
});
|
|
58296
|
-
let
|
|
58298
|
+
let k = h.length > 0 || x, j = e.options.maxSelected, M = j !== void 0, ee = M && t.length >= j, te = w.filter((e) => !e.disabled), ne = te.length > 0 && te.every((e) => t.includes(e.value)), re = (t.length > 0 || D) && !ne, ie = () => {
|
|
58297
58299
|
let e = [...t ?? []];
|
|
58298
|
-
|
|
58300
|
+
te.forEach((t) => {
|
|
58299
58301
|
e.includes(t.value) || (e.push(t.value), GL(b, t.value, t.label));
|
|
58300
58302
|
}), n(e);
|
|
58301
|
-
},
|
|
58302
|
-
n([]), i &&
|
|
58303
|
+
}, ae = () => {
|
|
58304
|
+
n([]), i && T.forEach((e) => {
|
|
58303
58305
|
i(e, []);
|
|
58304
58306
|
});
|
|
58305
|
-
},
|
|
58306
|
-
|
|
58307
|
-
},
|
|
58307
|
+
}, oe = (e) => {
|
|
58308
|
+
M || re ? ae() : e ? ie() : ae();
|
|
58309
|
+
}, se = () => {
|
|
58308
58310
|
!g && y && m.current && y();
|
|
58309
|
-
},
|
|
58311
|
+
}, N = (e) => !t.includes(e.value) && (ee || !!e.disabled), ce = (e) => {
|
|
58310
58312
|
let r = t.includes(e.value);
|
|
58311
|
-
|
|
58312
|
-
}, le = t.length +
|
|
58313
|
+
N(e) || (r || GL(b, e.value, e.label), n(r ? t.filter((t) => t !== e.value) : [...t, e.value]));
|
|
58314
|
+
}, le = t.length + E, ue = e.options.disabledHint, de = !!ue && eR(w), fe = w.some((e) => !!e.children?.options.length);
|
|
58313
58315
|
return /* @__PURE__ */ H("div", {
|
|
58314
58316
|
className: "flex max-h-full w-full flex-col flex-1 min-h-0",
|
|
58315
58317
|
role: "group",
|
|
58316
58318
|
"aria-label": e.label,
|
|
58317
58319
|
children: [
|
|
58318
|
-
|
|
58320
|
+
k ? /* @__PURE__ */ V("div", {
|
|
58319
58321
|
className: "rounded-tr-xl p-2",
|
|
58320
58322
|
children: /* @__PURE__ */ V(LL, {
|
|
58321
58323
|
placeholder: s.filters.inFilter.searchPlaceholder,
|
|
@@ -58327,16 +58329,16 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58327
58329
|
/* @__PURE__ */ V(aR, {
|
|
58328
58330
|
selectedCount: t.length,
|
|
58329
58331
|
totalSelected: le,
|
|
58330
|
-
maxSelected:
|
|
58331
|
-
allFilteredSelected:
|
|
58332
|
-
isIndeterminate:
|
|
58333
|
-
canSelectAll:
|
|
58332
|
+
maxSelected: j,
|
|
58333
|
+
allFilteredSelected: ne,
|
|
58334
|
+
isIndeterminate: re,
|
|
58335
|
+
canSelectAll: te.length > 0,
|
|
58334
58336
|
isCompactMode: r,
|
|
58335
|
-
onCheckedChange:
|
|
58337
|
+
onCheckedChange: oe
|
|
58336
58338
|
}),
|
|
58337
58339
|
/* @__PURE__ */ H(ot, {
|
|
58338
58340
|
className: c("[&>div]:pb-2", r && "px-1", r ? "max-h-[360px]" : "flex-1 min-h-0"),
|
|
58339
|
-
onScrollBottom:
|
|
58341
|
+
onScrollBottom: se,
|
|
58340
58342
|
scrollMargin: 50,
|
|
58341
58343
|
children: [
|
|
58342
58344
|
w.length === 0 && !g ? /* @__PURE__ */ V("div", {
|
|
@@ -58346,8 +58348,8 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58346
58348
|
fe ? w.map((e) => /* @__PURE__ */ V(iR, {
|
|
58347
58349
|
option: e,
|
|
58348
58350
|
isSelected: t.includes(e.value),
|
|
58349
|
-
onToggle: () =>
|
|
58350
|
-
disabled:
|
|
58351
|
+
onToggle: () => ce(e),
|
|
58352
|
+
disabled: N(e),
|
|
58351
58353
|
disabledHintId: de ? S : void 0,
|
|
58352
58354
|
isCompactMode: r,
|
|
58353
58355
|
depth: 0,
|
|
@@ -58359,8 +58361,8 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58359
58361
|
}, String(e.value))) : w.map((e) => /* @__PURE__ */ V(BL, {
|
|
58360
58362
|
option: e,
|
|
58361
58363
|
isSelected: t.includes(e.value),
|
|
58362
|
-
onToggle: () =>
|
|
58363
|
-
disabled:
|
|
58364
|
+
onToggle: () => ce(e),
|
|
58365
|
+
disabled: N(e),
|
|
58364
58366
|
disabledHintId: de ? S : void 0,
|
|
58365
58367
|
isCompactMode: r
|
|
58366
58368
|
}, String(e.value))),
|
|
@@ -58372,7 +58374,7 @@ function cR({ schema: e, value: t, onChange: n, isCompactMode: r, onFilterChange
|
|
|
58372
58374
|
}),
|
|
58373
58375
|
de ? /* @__PURE__ */ H("div", {
|
|
58374
58376
|
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"),
|
|
58375
|
-
children: [/* @__PURE__ */ V(
|
|
58377
|
+
children: [/* @__PURE__ */ V(A, {
|
|
58376
58378
|
icon: Mn,
|
|
58377
58379
|
size: "md"
|
|
58378
58380
|
}), /* @__PURE__ */ V("p", {
|
|
@@ -58454,7 +58456,7 @@ var dR = o("Switch", uR), fR = ({ onClickArrow: e, step: t, disabled: n }) => !t
|
|
|
58454
58456
|
className: "h-3 cursor-pointer",
|
|
58455
58457
|
role: "button",
|
|
58456
58458
|
"aria-label": "Increase",
|
|
58457
|
-
children: /* @__PURE__ */ V(
|
|
58459
|
+
children: /* @__PURE__ */ V(j, {
|
|
58458
58460
|
size: "sm",
|
|
58459
58461
|
icon: un
|
|
58460
58462
|
})
|
|
@@ -58463,7 +58465,7 @@ var dR = o("Switch", uR), fR = ({ onClickArrow: e, step: t, disabled: n }) => !t
|
|
|
58463
58465
|
className: "h-3 cursor-pointer",
|
|
58464
58466
|
role: "button",
|
|
58465
58467
|
"aria-label": "Decrease",
|
|
58466
|
-
children: /* @__PURE__ */ V(
|
|
58468
|
+
children: /* @__PURE__ */ V(j, {
|
|
58467
58469
|
size: "sm",
|
|
58468
58470
|
icon: pc
|
|
58469
58471
|
})
|
|
@@ -58547,12 +58549,12 @@ function CR({ children: e, extraContent: t, inputWidth: n, trailingAction: r })
|
|
|
58547
58549
|
]
|
|
58548
58550
|
});
|
|
58549
58551
|
}
|
|
58550
|
-
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:
|
|
58551
|
-
let
|
|
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: T = !1, onBlurWithin: E, onPressEnter: D, onPressEscape: k, ...A }, j) {
|
|
58553
|
+
let M = a(), ee = yt(), te = t ?? ee, [ne, re] = Pe({
|
|
58552
58554
|
prop: m?.open,
|
|
58553
58555
|
defaultProp: !1,
|
|
58554
58556
|
onChange: m?.onOpenChange
|
|
58555
|
-
}), [
|
|
58557
|
+
}), [ie, ae] = B(!1), [oe, se] = B(() => n == null ? "" : hR(n, e, r, i)), [N, ce] = B(n ?? null), le = w === "inline", ue = R(() => vR(M, {
|
|
58556
58558
|
hint: g,
|
|
58557
58559
|
min: s,
|
|
58558
58560
|
max: l,
|
|
@@ -58563,20 +58565,20 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58563
58565
|
l,
|
|
58564
58566
|
le
|
|
58565
58567
|
]), 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) => {
|
|
58566
|
-
e && ve ||
|
|
58568
|
+
e && ve || re(e);
|
|
58567
58569
|
};
|
|
58568
58570
|
L(() => {
|
|
58569
|
-
fe &&
|
|
58571
|
+
fe && ne && ce(n ?? null);
|
|
58570
58572
|
}, [
|
|
58571
58573
|
fe,
|
|
58572
|
-
|
|
58574
|
+
ne,
|
|
58573
58575
|
n
|
|
58574
58576
|
]);
|
|
58575
|
-
let be = fe ?
|
|
58577
|
+
let be = fe ? N : n, xe = gR(be, e, {
|
|
58576
58578
|
maxDecimals: r,
|
|
58577
58579
|
grouping: i,
|
|
58578
58580
|
units: d
|
|
58579
|
-
}), Se = R(() => fe ? (e) =>
|
|
58581
|
+
}), Se = R(() => fe ? (e) => ce(e) : u, [fe, u]), Ce = I((e) => {
|
|
58580
58582
|
let t = e.nativeEvent.data;
|
|
58581
58583
|
if (!t) return;
|
|
58582
58584
|
let n = e.currentTarget, i = n.selectionStart ?? 0, a = n.selectionEnd ?? 0;
|
|
@@ -58586,16 +58588,16 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58586
58588
|
if (!t) return;
|
|
58587
58589
|
let { value: n } = t;
|
|
58588
58590
|
if (n === null) {
|
|
58589
|
-
|
|
58591
|
+
se(t.formattedValue), Se?.(null);
|
|
58590
58592
|
return;
|
|
58591
58593
|
}
|
|
58592
58594
|
let i = Math.max(s ?? -Infinity, Math.min(l ?? Infinity, n));
|
|
58593
58595
|
if (i === n) {
|
|
58594
|
-
|
|
58596
|
+
se(t.formattedValue), Se?.(n);
|
|
58595
58597
|
return;
|
|
58596
58598
|
}
|
|
58597
58599
|
let a = mR(i.toString(), { maxDecimals: r });
|
|
58598
|
-
|
|
58600
|
+
se(a?.formattedValue ?? ""), Se?.(a?.value ?? null);
|
|
58599
58601
|
}, Te = (t) => () => {
|
|
58600
58602
|
if (!o) return;
|
|
58601
58603
|
if (be == null) return we(hR(o, e, r));
|
|
@@ -58603,35 +58605,35 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58603
58605
|
s != null && n < s || l != null && n > l || we(hR(n, e, r));
|
|
58604
58606
|
};
|
|
58605
58607
|
L(() => {
|
|
58606
|
-
if (i && !
|
|
58607
|
-
|
|
58608
|
+
if (i && !ie) {
|
|
58609
|
+
se(be == null ? "" : hR(be, e, r, !0));
|
|
58608
58610
|
return;
|
|
58609
58611
|
}
|
|
58610
|
-
let t = mR(
|
|
58611
|
-
be !== void 0 && be !== (t?.value ?? null) &&
|
|
58612
|
+
let t = mR(oe, { maxDecimals: r });
|
|
58613
|
+
be !== void 0 && be !== (t?.value ?? null) && se(be == null ? "" : hR(be, e, r));
|
|
58612
58614
|
}, [
|
|
58613
|
-
|
|
58615
|
+
oe,
|
|
58614
58616
|
be,
|
|
58615
58617
|
e,
|
|
58616
58618
|
r,
|
|
58617
|
-
|
|
58619
|
+
ie,
|
|
58618
58620
|
i
|
|
58619
58621
|
]);
|
|
58620
58622
|
let Ee = he ? { type: he.type } : void 0, De = /* @__PURE__ */ V("div", {
|
|
58621
58623
|
className: c("group relative", { "h-full w-full": le }),
|
|
58622
58624
|
children: /* @__PURE__ */ V(_L, {
|
|
58623
58625
|
type: "text",
|
|
58624
|
-
ref:
|
|
58625
|
-
id:
|
|
58626
|
-
value:
|
|
58626
|
+
ref: j,
|
|
58627
|
+
id: te,
|
|
58628
|
+
value: oe,
|
|
58627
58629
|
inputMode: r === 0 ? "numeric" : "decimal",
|
|
58628
58630
|
onChange: we,
|
|
58629
|
-
...
|
|
58631
|
+
...A,
|
|
58630
58632
|
variant: w,
|
|
58631
|
-
editing:
|
|
58633
|
+
editing: T,
|
|
58632
58634
|
inlineText: xe,
|
|
58633
|
-
onKeyDown: yR(le,
|
|
58634
|
-
onBlurWithin:
|
|
58635
|
+
onKeyDown: yR(le, D, k),
|
|
58636
|
+
onBlurWithin: E,
|
|
58635
58637
|
label: pe ? h ?? "" : h,
|
|
58636
58638
|
hideLabel: y || pe,
|
|
58637
58639
|
hint: pe ? "" : ue,
|
|
@@ -58640,9 +58642,9 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58640
58642
|
disabled: b,
|
|
58641
58643
|
loading: S,
|
|
58642
58644
|
readonly: x,
|
|
58643
|
-
onFocus: () =>
|
|
58645
|
+
onFocus: () => ae(!0),
|
|
58644
58646
|
onBlur: (e) => {
|
|
58645
|
-
|
|
58647
|
+
ae(!1), C?.(e);
|
|
58646
58648
|
},
|
|
58647
58649
|
onBeforeInput: Ce,
|
|
58648
58650
|
appendTag: d,
|
|
@@ -58654,13 +58656,13 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58654
58656
|
})
|
|
58655
58657
|
});
|
|
58656
58658
|
if (m !== void 0) {
|
|
58657
|
-
let { icon: e = rn, side: t = "bottom", align: n = "start", triggerLabel: r, apply: i } = m, a = fe, o = i?.label ??
|
|
58659
|
+
let { icon: e = rn, side: t = "bottom", align: n = "start", triggerLabel: r, apply: i } = m, a = fe, o = i?.label ?? M.actions.apply, s = i?.icon ?? _e, l = i?.closeOnApply ?? !0;
|
|
58658
58660
|
return /* @__PURE__ */ H(Qe, {
|
|
58659
|
-
open:
|
|
58661
|
+
open: ne,
|
|
58660
58662
|
onOpenChange: ye,
|
|
58661
58663
|
children: [/* @__PURE__ */ V(qe, {
|
|
58662
58664
|
asChild: !0,
|
|
58663
|
-
children: /* @__PURE__ */ V(
|
|
58665
|
+
children: /* @__PURE__ */ V(O, {
|
|
58664
58666
|
variant: "outline",
|
|
58665
58667
|
icon: e,
|
|
58666
58668
|
disabled: ve,
|
|
@@ -58676,18 +58678,18 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58676
58678
|
children: [
|
|
58677
58679
|
me ? /* @__PURE__ */ V(xR, {
|
|
58678
58680
|
label: h,
|
|
58679
|
-
htmlFor:
|
|
58681
|
+
htmlFor: te,
|
|
58680
58682
|
disabled: ve
|
|
58681
58683
|
}) : null,
|
|
58682
58684
|
/* @__PURE__ */ V(CR, {
|
|
58683
58685
|
extraContent: f,
|
|
58684
58686
|
inputWidth: p,
|
|
58685
|
-
trailingAction: a ? /* @__PURE__ */ V(
|
|
58687
|
+
trailingAction: a ? /* @__PURE__ */ V(O, {
|
|
58686
58688
|
variant: "default",
|
|
58687
58689
|
icon: s,
|
|
58688
58690
|
label: o,
|
|
58689
58691
|
onClick: () => {
|
|
58690
|
-
u?.(
|
|
58692
|
+
u?.(N), l && ye(!1);
|
|
58691
58693
|
}
|
|
58692
58694
|
}) : void 0,
|
|
58693
58695
|
children: De
|
|
@@ -58703,7 +58705,7 @@ var wR = F(function({ locale: e, id: t, value: n, maxDecimals: r, grouping: i =
|
|
|
58703
58705
|
children: [
|
|
58704
58706
|
me ? /* @__PURE__ */ V(xR, {
|
|
58705
58707
|
label: h,
|
|
58706
|
-
htmlFor:
|
|
58708
|
+
htmlFor: te,
|
|
58707
58709
|
disabled: ve
|
|
58708
58710
|
}) : null,
|
|
58709
58711
|
/* @__PURE__ */ V(CR, {
|
|
@@ -58839,7 +58841,7 @@ function TR({ value: e, onChange: t, schema: n, isCompactMode: r }) {
|
|
|
58839
58841
|
}) : null]
|
|
58840
58842
|
}), r ? null : /* @__PURE__ */ V("div", {
|
|
58841
58843
|
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]",
|
|
58842
|
-
children: /* @__PURE__ */ V(
|
|
58844
|
+
children: /* @__PURE__ */ V(O, {
|
|
58843
58845
|
variant: "ghost",
|
|
58844
58846
|
label: o.actions.clear,
|
|
58845
58847
|
onClick: () => c(),
|
|
@@ -59031,7 +59033,7 @@ function IR({ filter: e, filterKey: t, value: n, onSelect: r, onRemove: i, disab
|
|
|
59031
59033
|
n,
|
|
59032
59034
|
d,
|
|
59033
59035
|
e
|
|
59034
|
-
]), /* @__PURE__ */ V(
|
|
59036
|
+
]), /* @__PURE__ */ V(E.div, {
|
|
59035
59037
|
layout: !0,
|
|
59036
59038
|
initial: !u && {
|
|
59037
59039
|
opacity: 0,
|
|
@@ -59076,7 +59078,7 @@ function RR({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
59076
59078
|
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, {
|
|
59077
59079
|
presenceAffectsLayout: !0,
|
|
59078
59080
|
initial: !1,
|
|
59079
|
-
children: [c ? /* @__PURE__ */ V(
|
|
59081
|
+
children: [c ? /* @__PURE__ */ V(E.div, {
|
|
59080
59082
|
layout: !0,
|
|
59081
59083
|
initial: !f && {
|
|
59082
59084
|
opacity: 0,
|
|
@@ -59116,7 +59118,7 @@ function RR({ filters: e, value: t = {}, onFilterSelect: n, onFilterRemove: r, o
|
|
|
59116
59118
|
}, `filter-${String(i)}`);
|
|
59117
59119
|
}) : null]
|
|
59118
59120
|
})]
|
|
59119
|
-
}), u ? null : /* @__PURE__ */ V(
|
|
59121
|
+
}), u ? null : /* @__PURE__ */ V(O, {
|
|
59120
59122
|
variant: "neutral",
|
|
59121
59123
|
label: d.actions.clear,
|
|
59122
59124
|
size: "sm",
|
|
@@ -59169,11 +59171,11 @@ function BR({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDesc
|
|
|
59169
59171
|
children: [/* @__PURE__ */ H("div", {
|
|
59170
59172
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
59171
59173
|
children: [
|
|
59172
|
-
/* @__PURE__ */ V(
|
|
59174
|
+
/* @__PURE__ */ V(D, {
|
|
59173
59175
|
className: "flex-1 text-left text-f1-foreground",
|
|
59174
59176
|
children: e
|
|
59175
59177
|
}),
|
|
59176
|
-
/* @__PURE__ */ V(b, { children: t ? /* @__PURE__ */ V(
|
|
59178
|
+
/* @__PURE__ */ V(b, { children: t ? /* @__PURE__ */ V(E.span, {
|
|
59177
59179
|
className: "h-2 w-2 shrink-0 rounded-full bg-f1-background-selected-bold",
|
|
59178
59180
|
initial: !u && {
|
|
59179
59181
|
opacity: 0,
|
|
@@ -59188,7 +59190,7 @@ function BR({ label: e, isActive: t, isSelected: n, isCompactMode: r, activeDesc
|
|
|
59188
59190
|
scale: .7
|
|
59189
59191
|
}
|
|
59190
59192
|
}) : null }),
|
|
59191
|
-
r ? /* @__PURE__ */ V(
|
|
59193
|
+
r ? /* @__PURE__ */ V(A, { icon: cn }) : null
|
|
59192
59194
|
]
|
|
59193
59195
|
}), t ? /* @__PURE__ */ V("span", {
|
|
59194
59196
|
id: i,
|
|
@@ -59244,12 +59246,12 @@ function VR({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
59244
59246
|
children: /* @__PURE__ */ H("div", {
|
|
59245
59247
|
className: "flex w-full items-center justify-start gap-2.5 overflow-hidden",
|
|
59246
59248
|
children: [
|
|
59247
|
-
u ? /* @__PURE__ */ V(
|
|
59248
|
-
/* @__PURE__ */ V(
|
|
59249
|
+
u ? /* @__PURE__ */ V(A, { icon: u }) : null,
|
|
59250
|
+
/* @__PURE__ */ V(D, {
|
|
59249
59251
|
className: "flex-1 text-left text-f1-foreground",
|
|
59250
59252
|
children: s
|
|
59251
59253
|
}),
|
|
59252
|
-
i ? /* @__PURE__ */ V(
|
|
59254
|
+
i ? /* @__PURE__ */ V(A, { icon: cn }) : null
|
|
59253
59255
|
]
|
|
59254
59256
|
})
|
|
59255
59257
|
}) : null, y.map((e, t) => {
|
|
@@ -59278,7 +59280,7 @@ function VR({ definition: e, tempFilters: t, selectedFilterKey: n, onFilterSelec
|
|
|
59278
59280
|
}),
|
|
59279
59281
|
i ? /* @__PURE__ */ V("div", {
|
|
59280
59282
|
className: "-mx-2 flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
59281
|
-
children: /* @__PURE__ */ V(
|
|
59283
|
+
children: /* @__PURE__ */ V(O, {
|
|
59282
59284
|
onClick: o,
|
|
59283
59285
|
label: p.filters.applyFilters
|
|
59284
59286
|
})
|
|
@@ -59324,11 +59326,11 @@ function HR({ filters: e, tempFilters: t, selectedFilterKey: n, onFilterSelect:
|
|
|
59324
59326
|
]
|
|
59325
59327
|
}), u || s ? /* @__PURE__ */ H("div", {
|
|
59326
59328
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2",
|
|
59327
|
-
children: [s ? /* @__PURE__ */ V(
|
|
59329
|
+
children: [s ? /* @__PURE__ */ V(O, {
|
|
59328
59330
|
onClick: s,
|
|
59329
59331
|
label: _.collections.emptyStates.noResults.clearFilters,
|
|
59330
59332
|
variant: "outline"
|
|
59331
|
-
}) : null, u ? /* @__PURE__ */ V(
|
|
59333
|
+
}) : null, u ? /* @__PURE__ */ V(O, {
|
|
59332
59334
|
onClick: o,
|
|
59333
59335
|
label: d ?? _.filters.applyFilters
|
|
59334
59336
|
}) : null]
|
|
@@ -59363,7 +59365,7 @@ function qR({ id: e, text: t }) {
|
|
|
59363
59365
|
className: "sr-only"
|
|
59364
59366
|
});
|
|
59365
59367
|
}
|
|
59366
|
-
var JR = F((e, t) => /* @__PURE__ */ V(
|
|
59368
|
+
var JR = F((e, t) => /* @__PURE__ */ V(T, {
|
|
59367
59369
|
...e,
|
|
59368
59370
|
ref: t
|
|
59369
59371
|
}));
|
|
@@ -59372,62 +59374,62 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59372
59374
|
let f = t ?? e, p = Object.keys(e)[0] ?? null, [m, h] = B(c === "compact" ? null : p), [g, _] = B(!1), v = () => {
|
|
59373
59375
|
h(null), _(!0);
|
|
59374
59376
|
}, y = (e) => {
|
|
59375
|
-
|
|
59377
|
+
j((t) => ({
|
|
59376
59378
|
...t,
|
|
59377
59379
|
...e
|
|
59378
59380
|
}));
|
|
59379
59381
|
}, x = (e) => {
|
|
59380
59382
|
_(!1), h(e);
|
|
59381
|
-
}, S = a(), C = vt(tP), w = C.portalContainer && (C.position === "center" || C.position === "fullscreen") ? C.portalContainer : void 0, [
|
|
59383
|
+
}, S = a(), C = vt(tP), w = C.portalContainer && (C.position === "center" || C.position === "fullscreen") ? C.portalContainer : void 0, [D, k] = Pe({
|
|
59382
59384
|
prop: i,
|
|
59383
59385
|
defaultProp: !1,
|
|
59384
59386
|
onChange: o
|
|
59385
|
-
}), [
|
|
59387
|
+
}), [A, j] = B(n), M = z(D);
|
|
59386
59388
|
L(() => {
|
|
59387
|
-
|
|
59388
|
-
}, [
|
|
59389
|
-
let
|
|
59390
|
-
let r =
|
|
59391
|
-
|
|
59392
|
-
|
|
59393
|
-
}, 150)) :
|
|
59394
|
-
},
|
|
59389
|
+
M.current = D;
|
|
59390
|
+
}, [D]);
|
|
59391
|
+
let ee = z(!1), te = (e, t) => {
|
|
59392
|
+
let r = M.current;
|
|
59393
|
+
ee.current || (r ? (ee.current = !0, j(n), k(!1), u?.onPanelClose?.(t), setTimeout(() => {
|
|
59394
|
+
ee.current = !1;
|
|
59395
|
+
}, 150)) : k(e));
|
|
59396
|
+
}, ne = (e) => te(e, !1), re = z(!1);
|
|
59395
59397
|
bt(u?.panelRef, () => ({
|
|
59396
59398
|
open: () => {
|
|
59397
|
-
d || (c !== "compact" && v(),
|
|
59399
|
+
d || (c !== "compact" && v(), M.current || (re.current = !0, k(!0)));
|
|
59398
59400
|
},
|
|
59399
59401
|
close: () => {
|
|
59400
|
-
|
|
59402
|
+
M.current && ne(!1);
|
|
59401
59403
|
}
|
|
59402
59404
|
}));
|
|
59403
|
-
let
|
|
59405
|
+
let ie = z(n);
|
|
59404
59406
|
L(() => {
|
|
59405
|
-
(0, GR.default)(
|
|
59407
|
+
(0, GR.default)(ie.current, n) || (ie.current = n, j(n));
|
|
59406
59408
|
}, [n]);
|
|
59407
|
-
let
|
|
59408
|
-
|
|
59409
|
+
let ae = (e, t) => {
|
|
59410
|
+
j((n) => ({
|
|
59409
59411
|
...n,
|
|
59410
59412
|
[e]: t
|
|
59411
59413
|
}));
|
|
59414
|
+
}, oe = () => {
|
|
59415
|
+
g && u?.onApply?.() === !1 || (r(UR(f, A, S)), te(!1, !0));
|
|
59412
59416
|
}, se = () => {
|
|
59413
|
-
|
|
59414
|
-
}, ce = () => {
|
|
59415
|
-
A(WR(f)), u?.chip?.onRemove();
|
|
59416
|
-
}, M = () => {
|
|
59417
|
-
m ? h(null) : (r(UR(f, k, S)), ne(!1, !0));
|
|
59417
|
+
j(WR(f)), u?.chip?.onRemove();
|
|
59418
59418
|
}, N = () => {
|
|
59419
|
-
|
|
59419
|
+
m ? h(null) : (r(UR(f, A, S)), te(!1, !0));
|
|
59420
|
+
}, ce = () => {
|
|
59421
|
+
j(n), ne(!1);
|
|
59420
59422
|
}, le = () => {
|
|
59421
|
-
|
|
59423
|
+
N();
|
|
59422
59424
|
};
|
|
59423
59425
|
L(() => {
|
|
59424
|
-
let t =
|
|
59425
|
-
|
|
59426
|
-
let n = () => Object.entries(
|
|
59426
|
+
let t = re.current;
|
|
59427
|
+
D && (re.current = !1);
|
|
59428
|
+
let n = () => Object.entries(A || {}).find(([t, n]) => e[t] ? !PR(e[t].type).isEmpty(n, {
|
|
59427
59429
|
schema: e[t],
|
|
59428
59430
|
i18n: S
|
|
59429
59431
|
}) : !1);
|
|
59430
|
-
if (
|
|
59432
|
+
if (D && c === "default") {
|
|
59431
59433
|
let r = n();
|
|
59432
59434
|
if (u && (t || u.active || !r)) {
|
|
59433
59435
|
_(!0), h(null);
|
|
@@ -59439,7 +59441,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59439
59441
|
h(t);
|
|
59440
59442
|
}
|
|
59441
59443
|
}
|
|
59442
|
-
}, [
|
|
59444
|
+
}, [D]);
|
|
59443
59445
|
let ue = R(() => Object.entries(e).reduce((e, [t, n]) => {
|
|
59444
59446
|
let r = PR(n.type);
|
|
59445
59447
|
return Math.max(e, r?.formHeight || KR);
|
|
@@ -59449,7 +59451,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59449
59451
|
S
|
|
59450
59452
|
]), 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]);
|
|
59451
59453
|
if (c === "inline") {
|
|
59452
|
-
let t = !!Object.values(
|
|
59454
|
+
let t = !!Object.values(A).length;
|
|
59453
59455
|
return /* @__PURE__ */ H("div", {
|
|
59454
59456
|
className: "flex items-center gap-2",
|
|
59455
59457
|
children: [/* @__PURE__ */ H("div", {
|
|
@@ -59463,17 +59465,17 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59463
59465
|
text: he
|
|
59464
59466
|
}) : void 0,
|
|
59465
59467
|
icon: En,
|
|
59466
|
-
pressed:
|
|
59468
|
+
pressed: D,
|
|
59467
59469
|
disabled: d,
|
|
59468
|
-
onClick: () =>
|
|
59469
|
-
"aria-controls":
|
|
59470
|
+
onClick: () => ne(!D),
|
|
59471
|
+
"aria-controls": D ? de : void 0,
|
|
59470
59472
|
hideLabel: !0,
|
|
59471
59473
|
tooltip: he
|
|
59472
59474
|
}), 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]
|
|
59473
59475
|
}), /* @__PURE__ */ V(b, {
|
|
59474
59476
|
mode: "popLayout",
|
|
59475
59477
|
propagate: !1,
|
|
59476
|
-
children:
|
|
59478
|
+
children: D ? /* @__PURE__ */ V(E.div, {
|
|
59477
59479
|
initial: {
|
|
59478
59480
|
opacity: 0,
|
|
59479
59481
|
y: 8
|
|
@@ -59497,13 +59499,13 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59497
59499
|
children: [
|
|
59498
59500
|
/* @__PURE__ */ H("div", {
|
|
59499
59501
|
className: "flex shrink-0 items-center gap-2 border-0 border-b border-solid border-f1-border-secondary px-2 py-1.5",
|
|
59500
|
-
children: [/* @__PURE__ */ V(
|
|
59502
|
+
children: [/* @__PURE__ */ V(T, {
|
|
59501
59503
|
variant: "ghost",
|
|
59502
59504
|
icon: $t,
|
|
59503
59505
|
label: S.filters.label,
|
|
59504
59506
|
hideLabel: !0,
|
|
59505
59507
|
size: "sm",
|
|
59506
|
-
onClick:
|
|
59508
|
+
onClick: ce
|
|
59507
59509
|
}), /* @__PURE__ */ V("span", {
|
|
59508
59510
|
className: "text-base font-medium text-f1-foreground",
|
|
59509
59511
|
children: S.filters.label
|
|
@@ -59514,10 +59516,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59514
59516
|
children: [
|
|
59515
59517
|
/* @__PURE__ */ V(VR, {
|
|
59516
59518
|
definition: e,
|
|
59517
|
-
tempFilters:
|
|
59519
|
+
tempFilters: A,
|
|
59518
59520
|
selectedFilterKey: m,
|
|
59519
59521
|
onFilterSelect: x,
|
|
59520
|
-
onClickApplyFilters:
|
|
59522
|
+
onClickApplyFilters: oe,
|
|
59521
59523
|
quickFilterLabel: u?.label,
|
|
59522
59524
|
quickFilterIcon: u?.icon,
|
|
59523
59525
|
quickFilterSelected: g,
|
|
@@ -59532,16 +59534,16 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59532
59534
|
children: /* @__PURE__ */ V(zR, {
|
|
59533
59535
|
selectedFilterKey: m,
|
|
59534
59536
|
definition: e,
|
|
59535
|
-
tempFilters:
|
|
59536
|
-
onFilterChange:
|
|
59537
|
+
tempFilters: A,
|
|
59538
|
+
onFilterChange: ae
|
|
59537
59539
|
})
|
|
59538
59540
|
}) : null
|
|
59539
59541
|
]
|
|
59540
59542
|
}),
|
|
59541
59543
|
/* @__PURE__ */ V("div", {
|
|
59542
59544
|
className: "flex items-center justify-end gap-2 border border-solid border-transparent border-t-f1-border-secondary p-2 bg-f1-background",
|
|
59543
|
-
children: /* @__PURE__ */ V(
|
|
59544
|
-
onClick:
|
|
59545
|
+
children: /* @__PURE__ */ V(O, {
|
|
59546
|
+
onClick: oe,
|
|
59545
59547
|
label: S.filters.applyFilters
|
|
59546
59548
|
})
|
|
59547
59549
|
})
|
|
@@ -59552,19 +59554,19 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59552
59554
|
});
|
|
59553
59555
|
}
|
|
59554
59556
|
if (c === "compact") {
|
|
59555
|
-
let t = !!Object.values(
|
|
59557
|
+
let t = !!Object.values(A).length, n = m ? S.t("filters.filteringBy", { label: e[m].label }) : S.t("filters.availableFilters"), r = /* @__PURE__ */ H("div", {
|
|
59556
59558
|
className: "flex items-center gap-2 pl-1.5 py-1.5",
|
|
59557
|
-
children: [/* @__PURE__ */ V(
|
|
59559
|
+
children: [/* @__PURE__ */ V(O, {
|
|
59558
59560
|
label: "Back",
|
|
59559
59561
|
icon: $t,
|
|
59560
59562
|
hideLabel: !0,
|
|
59561
59563
|
variant: "ghost",
|
|
59562
59564
|
size: "sm",
|
|
59563
|
-
onClick:
|
|
59565
|
+
onClick: N
|
|
59564
59566
|
}), n]
|
|
59565
59567
|
}), i = /* @__PURE__ */ V(Ct, { children: m ? /* @__PURE__ */ V("div", {
|
|
59566
59568
|
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",
|
|
59567
|
-
children: /* @__PURE__ */ V(
|
|
59569
|
+
children: /* @__PURE__ */ V(O, {
|
|
59568
59570
|
onClick: le,
|
|
59569
59571
|
label: S.filters.applySelection
|
|
59570
59572
|
})
|
|
@@ -59582,17 +59584,17 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59582
59584
|
text: he
|
|
59583
59585
|
}) : void 0,
|
|
59584
59586
|
icon: En,
|
|
59585
|
-
pressed:
|
|
59587
|
+
pressed: D,
|
|
59586
59588
|
disabled: d,
|
|
59587
|
-
onClick: () =>
|
|
59588
|
-
"aria-controls":
|
|
59589
|
+
onClick: () => ne(!D),
|
|
59590
|
+
"aria-controls": D ? de : void 0,
|
|
59589
59591
|
hideLabel: !0,
|
|
59590
59592
|
tooltip: he
|
|
59591
59593
|
}), 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]
|
|
59592
59594
|
}), /* @__PURE__ */ V(b, {
|
|
59593
59595
|
mode: "popLayout",
|
|
59594
59596
|
propagate: !1,
|
|
59595
|
-
children:
|
|
59597
|
+
children: D ? /* @__PURE__ */ V(E.div, {
|
|
59596
59598
|
initial: {
|
|
59597
59599
|
opacity: 0,
|
|
59598
59600
|
y: 8
|
|
@@ -59617,7 +59619,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59617
59619
|
r,
|
|
59618
59620
|
/* @__PURE__ */ V("div", {
|
|
59619
59621
|
className: "flex flex-1 min-h-0 max-h-full",
|
|
59620
|
-
children: m ? /* @__PURE__ */ V(
|
|
59622
|
+
children: m ? /* @__PURE__ */ V(E.div, {
|
|
59621
59623
|
initial: { opacity: 0 },
|
|
59622
59624
|
animate: { opacity: 1 },
|
|
59623
59625
|
exit: { opacity: 0 },
|
|
@@ -59626,11 +59628,11 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59626
59628
|
children: /* @__PURE__ */ V(zR, {
|
|
59627
59629
|
selectedFilterKey: m,
|
|
59628
59630
|
definition: e,
|
|
59629
|
-
tempFilters:
|
|
59630
|
-
onFilterChange:
|
|
59631
|
+
tempFilters: A,
|
|
59632
|
+
onFilterChange: ae,
|
|
59631
59633
|
isCompactMode: !0
|
|
59632
59634
|
})
|
|
59633
|
-
}, "filter-content") : /* @__PURE__ */ V(
|
|
59635
|
+
}, "filter-content") : /* @__PURE__ */ V(E.div, {
|
|
59634
59636
|
initial: { opacity: 0 },
|
|
59635
59637
|
animate: { opacity: 1 },
|
|
59636
59638
|
exit: { opacity: 0 },
|
|
@@ -59638,10 +59640,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59638
59640
|
className: "h-full w-full bg-f1-background",
|
|
59639
59641
|
children: /* @__PURE__ */ V(VR, {
|
|
59640
59642
|
definition: e,
|
|
59641
|
-
tempFilters:
|
|
59643
|
+
tempFilters: A,
|
|
59642
59644
|
selectedFilterKey: m,
|
|
59643
59645
|
onFilterSelect: (e) => h(e),
|
|
59644
|
-
onClickApplyFilters:
|
|
59646
|
+
onClickApplyFilters: oe,
|
|
59645
59647
|
isCompactMode: !0
|
|
59646
59648
|
})
|
|
59647
59649
|
}, "filter-list")
|
|
@@ -59656,8 +59658,8 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59656
59658
|
return /* @__PURE__ */ V("div", {
|
|
59657
59659
|
className: "flex items-center gap-2",
|
|
59658
59660
|
children: /* @__PURE__ */ H(Qe, {
|
|
59659
|
-
open:
|
|
59660
|
-
onOpenChange:
|
|
59661
|
+
open: D,
|
|
59662
|
+
onOpenChange: ne,
|
|
59661
59663
|
modal: !0,
|
|
59662
59664
|
children: [/* @__PURE__ */ V(qe, {
|
|
59663
59665
|
asChild: !0,
|
|
@@ -59670,10 +59672,10 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59670
59672
|
text: he
|
|
59671
59673
|
}) : void 0,
|
|
59672
59674
|
icon: En,
|
|
59673
|
-
pressed:
|
|
59675
|
+
pressed: D,
|
|
59674
59676
|
disabled: d,
|
|
59675
59677
|
hideLabel: s,
|
|
59676
|
-
"aria-controls":
|
|
59678
|
+
"aria-controls": D ? de : void 0,
|
|
59677
59679
|
counterValue: l ? me : void 0
|
|
59678
59680
|
})
|
|
59679
59681
|
}), /* @__PURE__ */ V(Je, {
|
|
@@ -59685,16 +59687,16 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59685
59687
|
container: w,
|
|
59686
59688
|
children: /* @__PURE__ */ V(HR, {
|
|
59687
59689
|
filters: e,
|
|
59688
|
-
tempFilters:
|
|
59690
|
+
tempFilters: A,
|
|
59689
59691
|
selectedFilterKey: m,
|
|
59690
59692
|
onFilterSelect: x,
|
|
59691
59693
|
quickFilter: u,
|
|
59692
59694
|
quickFilterSelected: g,
|
|
59693
59695
|
onQuickFilterSelect: v,
|
|
59694
59696
|
onStageFilters: y,
|
|
59695
|
-
onFilterChange:
|
|
59696
|
-
onApply:
|
|
59697
|
-
onClear:
|
|
59697
|
+
onFilterChange: ae,
|
|
59698
|
+
onApply: oe,
|
|
59699
|
+
onClear: se,
|
|
59698
59700
|
height: ue || KR
|
|
59699
59701
|
})
|
|
59700
59702
|
})]
|
|
@@ -59702,7 +59704,7 @@ function YR({ filters: e, allFilters: t, value: n, onChange: r, isOpen: i, onOpe
|
|
|
59702
59704
|
});
|
|
59703
59705
|
}
|
|
59704
59706
|
var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, description: i, onEdit: o, disabled: l = !1 }) => {
|
|
59705
|
-
let u = a(), f = !!o && !l, h = !!n && !l, [_, v] = B(!1), y = /* @__PURE__ */ H(
|
|
59707
|
+
let u = a(), f = !!o && !l, h = !!n && !l, [_, v] = B(!1), y = /* @__PURE__ */ H(E.label, {
|
|
59706
59708
|
layout: !0,
|
|
59707
59709
|
transition: {
|
|
59708
59710
|
duration: .15,
|
|
@@ -59733,7 +59735,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59733
59735
|
}),
|
|
59734
59736
|
f ? /* @__PURE__ */ V(b, {
|
|
59735
59737
|
initial: !1,
|
|
59736
|
-
children: _ ? /* @__PURE__ */ V(
|
|
59738
|
+
children: _ ? /* @__PURE__ */ V(E.span, {
|
|
59737
59739
|
className: "-my-0.5 -ml-1.5 -mr-1 flex items-center gap-0.5 overflow-hidden",
|
|
59738
59740
|
initial: {
|
|
59739
59741
|
opacity: 0,
|
|
@@ -59751,12 +59753,12 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59751
59753
|
duration: .15,
|
|
59752
59754
|
ease: "easeOut"
|
|
59753
59755
|
},
|
|
59754
|
-
children: o ? /* @__PURE__ */ V(
|
|
59756
|
+
children: o ? /* @__PURE__ */ V(O, {
|
|
59755
59757
|
variant: "ghost",
|
|
59756
59758
|
size: "sm",
|
|
59757
59759
|
hideLabel: !0,
|
|
59758
59760
|
label: u.actions.editPreset,
|
|
59759
|
-
icon:
|
|
59761
|
+
icon: ae,
|
|
59760
59762
|
onClick: ((e) => (t) => {
|
|
59761
59763
|
t.preventDefault(), t.stopPropagation(), e();
|
|
59762
59764
|
})(o)
|
|
@@ -59825,8 +59827,8 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59825
59827
|
"data-visible": n,
|
|
59826
59828
|
onClick: () => p?.(),
|
|
59827
59829
|
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()),
|
|
59828
|
-
children: [/* @__PURE__ */ V(
|
|
59829
|
-
icon:
|
|
59830
|
+
children: [/* @__PURE__ */ V(A, {
|
|
59831
|
+
icon: oe,
|
|
59830
59832
|
size: "sm"
|
|
59831
59833
|
}), h.actions.saveAsPreset]
|
|
59832
59834
|
});
|
|
@@ -59847,8 +59849,8 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59847
59849
|
type: "button",
|
|
59848
59850
|
onClick: () => p?.(),
|
|
59849
59851
|
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()),
|
|
59850
|
-
children: [/* @__PURE__ */ V(
|
|
59851
|
-
icon:
|
|
59852
|
+
children: [/* @__PURE__ */ V(A, {
|
|
59853
|
+
icon: oe,
|
|
59852
59854
|
size: "sm"
|
|
59853
59855
|
}), h.actions.saveAsPreset]
|
|
59854
59856
|
});
|
|
@@ -59870,7 +59872,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59870
59872
|
}, w = (e, t, n = !0) => /* @__PURE__ */ V(s, {
|
|
59871
59873
|
className: "h-8 w-32 rounded-md",
|
|
59872
59874
|
"data-visible": n
|
|
59873
|
-
}, t),
|
|
59875
|
+
}, t), T = (e, t) => /* @__PURE__ */ H("div", {
|
|
59874
59876
|
className: "flex w-full items-center justify-between rounded-sm p-2",
|
|
59875
59877
|
"data-visible": !0,
|
|
59876
59878
|
children: [/* @__PURE__ */ V(s, { className: "h-4 w-24" }), /* @__PURE__ */ V(s, { className: "h-4 w-6" })]
|
|
@@ -59880,7 +59882,7 @@ var XR = o("Preset", ({ label: e, number: t, onClick: n, selected: r, descriptio
|
|
|
59880
59882
|
return /* @__PURE__ */ V(le, {
|
|
59881
59883
|
items: e,
|
|
59882
59884
|
renderListItem: w,
|
|
59883
|
-
renderDropdownItem:
|
|
59885
|
+
renderDropdownItem: T,
|
|
59884
59886
|
className: "min-w-0 flex-1"
|
|
59885
59887
|
});
|
|
59886
59888
|
}
|
|
@@ -60111,7 +60113,7 @@ var cz = sz, lz = ({ filters: e, currentFilters: t, onFiltersChange: n }) => {
|
|
|
60111
60113
|
className: "flex gap-1 border-0 p-2",
|
|
60112
60114
|
children: /* @__PURE__ */ V(b, {
|
|
60113
60115
|
mode: "popLayout",
|
|
60114
|
-
children: r.map((e) => /* @__PURE__ */ V(
|
|
60116
|
+
children: r.map((e) => /* @__PURE__ */ V(E.div, {
|
|
60115
60117
|
layout: !0,
|
|
60116
60118
|
initial: {
|
|
60117
60119
|
opacity: 0,
|
|
@@ -60175,7 +60177,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60175
60177
|
currentGrouping: o,
|
|
60176
60178
|
onGroupingChange: s
|
|
60177
60179
|
})]
|
|
60178
|
-
}), /* @__PURE__ */ V(b, { children: c && dz(l) ? /* @__PURE__ */ V(
|
|
60180
|
+
}), /* @__PURE__ */ V(b, { children: c && dz(l) ? /* @__PURE__ */ V(E.div, {
|
|
60179
60181
|
initial: {
|
|
60180
60182
|
opacity: 0,
|
|
60181
60183
|
height: 0
|
|
@@ -60200,89 +60202,85 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60200
60202
|
})
|
|
60201
60203
|
}) : null })]
|
|
60202
60204
|
});
|
|
60203
|
-
}, dz = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), fz = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u,
|
|
60204
|
-
let [
|
|
60205
|
+
}, dz = (e) => Object.entries(e).some(([, e]) => e == null ? !1 : Array.isArray(e) ? e.length > 0 : e !== ""), fz = ({ enabled: e, open: t, restingText: n, onOpen: r, onClose: i, onSearchChange: a, onSearchReset: o, onCloseEmpty: s, closeWasRequested: c, onActiveMove: l, onSelectActive: u, triggerRef: d }) => {
|
|
60206
|
+
let [f, p] = B(n), [m, h] = B(!1), g = z(null);
|
|
60205
60207
|
L(() => {
|
|
60206
|
-
e && !
|
|
60208
|
+
e && !m && p(n);
|
|
60207
60209
|
}, [
|
|
60208
|
-
|
|
60210
|
+
m,
|
|
60209
60211
|
e,
|
|
60210
60212
|
n
|
|
60211
60213
|
]);
|
|
60212
|
-
let
|
|
60213
|
-
let e =
|
|
60214
|
+
let _ = I(() => {
|
|
60215
|
+
let e = g.current?.getAttribute("aria-controls");
|
|
60214
60216
|
return (e ? document.getElementById(e) : null)?.closest("[data-radix-select-content]") ?? null;
|
|
60215
|
-
}, []),
|
|
60216
|
-
|
|
60217
|
+
}, []), v = I((e) => {
|
|
60218
|
+
h(!0), p(e), a(e), t || r();
|
|
60217
60219
|
}, [
|
|
60218
60220
|
r,
|
|
60219
60221
|
a,
|
|
60220
60222
|
t
|
|
60221
|
-
]),
|
|
60222
|
-
|
|
60223
|
+
]), y = I(() => {
|
|
60224
|
+
p(n), m && (h(!1), o());
|
|
60223
60225
|
}, [
|
|
60224
|
-
|
|
60226
|
+
m,
|
|
60225
60227
|
o,
|
|
60226
60228
|
n
|
|
60227
|
-
]),
|
|
60228
|
-
|
|
60229
|
-
}, []),
|
|
60230
|
-
|
|
60231
|
-
}, []),
|
|
60232
|
-
|
|
60233
|
-
}, [
|
|
60234
|
-
|
|
60235
|
-
}, [
|
|
60229
|
+
]), b = I(() => {
|
|
60230
|
+
g.current?.focus({ preventScroll: !0 });
|
|
60231
|
+
}, []), x = z(!0), S = I(() => {
|
|
60232
|
+
x.current && g.current?.value && g.current.select();
|
|
60233
|
+
}, []), C = I(() => {
|
|
60234
|
+
x.current = !0, S();
|
|
60235
|
+
}, [S]), w = I(() => {
|
|
60236
|
+
S(), x.current = !1;
|
|
60237
|
+
}, [S]), T = z(t);
|
|
60236
60238
|
L(() => {
|
|
60237
60239
|
let n = T.current;
|
|
60238
60240
|
if (T.current = t, !e || !n || t || !c()) return;
|
|
60239
|
-
|
|
60241
|
+
m && f === "" && s(), y();
|
|
60240
60242
|
let r = document.activeElement;
|
|
60241
|
-
r instanceof HTMLElement && r !== document.body && !
|
|
60243
|
+
r instanceof HTMLElement && r !== document.body && !d.current?.contains(r) || g.current?.focus({ preventScroll: !0 });
|
|
60242
60244
|
}, [
|
|
60243
60245
|
c,
|
|
60244
|
-
|
|
60245
|
-
|
|
60246
|
+
f,
|
|
60247
|
+
m,
|
|
60246
60248
|
e,
|
|
60247
60249
|
s,
|
|
60248
60250
|
t,
|
|
60249
|
-
|
|
60250
|
-
|
|
60251
|
+
y,
|
|
60252
|
+
d
|
|
60251
60253
|
]);
|
|
60252
60254
|
let E = I((e) => {
|
|
60253
|
-
if (!t && !
|
|
60255
|
+
if (!t && !m) return;
|
|
60254
60256
|
let n = e.relatedTarget;
|
|
60255
|
-
n instanceof Node && (
|
|
60257
|
+
n instanceof Node && (d.current?.contains(n) || _()?.contains(n)) || (t ? n && i() : (m && f === "" && s(), y()));
|
|
60256
60258
|
}, [
|
|
60257
|
-
|
|
60258
|
-
|
|
60259
|
+
f,
|
|
60260
|
+
m,
|
|
60259
60261
|
i,
|
|
60260
60262
|
s,
|
|
60261
60263
|
t,
|
|
60262
|
-
|
|
60263
|
-
|
|
60264
|
-
|
|
60264
|
+
_,
|
|
60265
|
+
y,
|
|
60266
|
+
d
|
|
60265
60267
|
]), D = I(() => {
|
|
60266
|
-
let e =
|
|
60268
|
+
let e = _();
|
|
60267
60269
|
if (!e) return !1;
|
|
60268
60270
|
let [t] = MI(e);
|
|
60269
60271
|
return t ? (t.focus(), !0) : !1;
|
|
60270
|
-
}, [
|
|
60272
|
+
}, [_]);
|
|
60271
60273
|
return {
|
|
60272
|
-
draft:
|
|
60273
|
-
inputRef:
|
|
60274
|
-
focusInput:
|
|
60275
|
-
resetText:
|
|
60276
|
-
handleChange:
|
|
60277
|
-
handleFocus:
|
|
60278
|
-
handleClick:
|
|
60274
|
+
draft: f,
|
|
60275
|
+
inputRef: g,
|
|
60276
|
+
focusInput: b,
|
|
60277
|
+
resetText: y,
|
|
60278
|
+
handleChange: v,
|
|
60279
|
+
handleFocus: C,
|
|
60280
|
+
handleClick: w,
|
|
60279
60281
|
handleBlur: E,
|
|
60280
60282
|
handleKeyDown: I((e) => {
|
|
60281
|
-
if (
|
|
60282
|
-
if (e.key === "Backspace" && e.currentTarget.value === "") {
|
|
60283
|
-
d() && e.preventDefault();
|
|
60284
|
-
return;
|
|
60285
|
-
}
|
|
60283
|
+
if (x.current = !1, e.defaultPrevented || e.nativeEvent.isComposing) return;
|
|
60286
60284
|
if (e.key === "Tab" && !e.shiftKey && t) {
|
|
60287
60285
|
D() && e.preventDefault();
|
|
60288
60286
|
return;
|
|
@@ -60292,7 +60290,6 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60292
60290
|
}, [
|
|
60293
60291
|
D,
|
|
60294
60292
|
l,
|
|
60295
|
-
d,
|
|
60296
60293
|
r,
|
|
60297
60294
|
u,
|
|
60298
60295
|
t
|
|
@@ -60308,7 +60305,7 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60308
60305
|
].some((e) => e?.toLowerCase().includes(n));
|
|
60309
60306
|
}, gz = (e) => {
|
|
60310
60307
|
if (e.type !== "separator" && e.tag !== void 0 && typeof e.tag != "string") return e.tag.type;
|
|
60311
|
-
}, _z =
|
|
60308
|
+
}, _z = ee({
|
|
60312
60309
|
base: "flex flex-col rounded-md border border-solid bg-f1-background max-h-full",
|
|
60313
60310
|
variants: { status: {
|
|
60314
60311
|
default: "border-f1-border-secondary",
|
|
@@ -60334,15 +60331,15 @@ var uz = ({ showSearchBox: e, searchBoxPlaceholder: t, onSearchChange: n, search
|
|
|
60334
60331
|
}), /* @__PURE__ */ V("span", {
|
|
60335
60332
|
className: "flex size-4 shrink-0 items-center justify-center text-f1-icon",
|
|
60336
60333
|
"aria-hidden": "true",
|
|
60337
|
-
children: /* @__PURE__ */ V(
|
|
60338
|
-
icon:
|
|
60334
|
+
children: /* @__PURE__ */ V(A, {
|
|
60335
|
+
icon: te,
|
|
60339
60336
|
size: "sm"
|
|
60340
60337
|
})
|
|
60341
60338
|
})]
|
|
60342
60339
|
});
|
|
60343
60340
|
});
|
|
60344
60341
|
yz.displayName = "InlineSelectTrigger";
|
|
60345
|
-
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:
|
|
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: T, onCreate: E, onFiltersChange: D, source: A, label: j, icon: M, labelIcon: ee, clearable: te, loading: ne, name: re, error: ie, status: ae, hint: oe, required: se, multiple: ce, portalContainer: le, asList: ue = !1, showPreview: de = !1, hideArrow: fe = !1, preserveSelectionOnDatasetChange: pe = !0, fitContentWidth: me, getSelectedLabel: he, dataTestId: ge, ..._e }, ve) {
|
|
60346
60343
|
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({
|
|
60347
60344
|
prop: m,
|
|
60348
60345
|
defaultProp: h,
|
|
@@ -60360,17 +60357,17 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60360
60357
|
}
|
|
60361
60358
|
}, [l]);
|
|
60362
60359
|
let We = R(() => {
|
|
60363
|
-
if (
|
|
60360
|
+
if (A && !["infinite-scroll", "no-pagination"].includes(aP(A.dataAdapter))) throw Error("Select component only supports `infinite-scroll` or `no-pagination` pagination types");
|
|
60364
60361
|
return {
|
|
60365
|
-
...
|
|
60366
|
-
dataAdapter:
|
|
60362
|
+
...A,
|
|
60363
|
+
dataAdapter: A ? A.dataAdapter : { fetchData: ({ search: e }) => {
|
|
60367
60364
|
let t = "searchFn" in _e && _e.searchFn ? _e.searchFn : hz;
|
|
60368
60365
|
return { records: u.filter((n) => t(n, e) ?? !0) };
|
|
60369
60366
|
} }
|
|
60370
60367
|
};
|
|
60371
60368
|
}, [
|
|
60372
60369
|
u,
|
|
60373
|
-
|
|
60370
|
+
A,
|
|
60374
60371
|
"searchFn" in _e && _e.searchFn
|
|
60375
60372
|
]), Ge = e === "field" && !ue && !f, Ke = !!v, qe = sP({
|
|
60376
60373
|
...We,
|
|
@@ -60381,15 +60378,15 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60381
60378
|
},
|
|
60382
60379
|
search: Ke ? {
|
|
60383
60380
|
enabled: Ke,
|
|
60384
|
-
sync: !
|
|
60381
|
+
sync: !A
|
|
60385
60382
|
} : void 0
|
|
60386
60383
|
}, [u]), Je = I((e) => {
|
|
60387
|
-
if (
|
|
60384
|
+
if (A) {
|
|
60388
60385
|
if (!d) throw Error("mapOptions is required when using a source");
|
|
60389
60386
|
return d(e);
|
|
60390
60387
|
}
|
|
60391
60388
|
return e;
|
|
60392
|
-
}, [d,
|
|
60389
|
+
}, [d, A]), { data: Ye, isInitialLoading: Xe, loadMore: Ze, isLoadingMore: Qe, isLoading: $e, paginationInfo: et } = N(qe), { currentSearch: tt, setCurrentSearch: nt } = qe, rt = Ke && Ge && !qe.filters, it = Ke && !rt, at = z(/* @__PURE__ */ new Map()), ot = R(() => {
|
|
60393
60390
|
let e = [];
|
|
60394
60391
|
for (let t of Ye.records) {
|
|
60395
60392
|
let n = Je(t);
|
|
@@ -60424,7 +60421,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60424
60421
|
data: Ye,
|
|
60425
60422
|
paginationInfo: et,
|
|
60426
60423
|
source: qe,
|
|
60427
|
-
selectionMode:
|
|
60424
|
+
selectionMode: ce ? "multi" : "single",
|
|
60428
60425
|
onSelectItems: we,
|
|
60429
60426
|
selectedState: st,
|
|
60430
60427
|
disableSelectAll: Ee,
|
|
@@ -60481,11 +60478,11 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60481
60478
|
}, []);
|
|
60482
60479
|
L(() => xt, [xt]);
|
|
60483
60480
|
let St = (e) => {
|
|
60484
|
-
xt(),
|
|
60481
|
+
xt(), A ? bt.current = setTimeout(() => {
|
|
60485
60482
|
bt.current = null, F(e);
|
|
60486
60483
|
}, mz) : F(e);
|
|
60487
|
-
}, wt =
|
|
60488
|
-
if (!
|
|
60484
|
+
}, wt = ce && !ue, Tt = !!(r && wt), Et = z(!1), Dt = z(!0), Ot = z(null), kt = z(null), At = I((e, t) => {
|
|
60485
|
+
if (!ce && !te && !t && Ve[0] === e) return;
|
|
60489
60486
|
Et.current = !0, lt(e, t);
|
|
60490
60487
|
let n = ot[String(e)];
|
|
60491
60488
|
n && (t ? at.current.set(String(e), n.option) : at.current.delete(String(e)), Tt || s?.(n.option, t));
|
|
@@ -60494,14 +60491,14 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60494
60491
|
s,
|
|
60495
60492
|
ot,
|
|
60496
60493
|
lt,
|
|
60497
|
-
|
|
60498
|
-
|
|
60494
|
+
ce,
|
|
60495
|
+
te,
|
|
60499
60496
|
Ve
|
|
60500
60497
|
]), jt = z(!1), Mt = I((e) => {
|
|
60501
60498
|
Et.current = !0, jt.current = e, ct(e);
|
|
60502
60499
|
}, [ct]), Nt = I((e) => {
|
|
60503
|
-
if (e) return
|
|
60504
|
-
}, [
|
|
60500
|
+
if (e) return A ? e : e.item;
|
|
60501
|
+
}, [A]), Pt = I(() => {
|
|
60505
60502
|
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));
|
|
60506
60503
|
return {
|
|
60507
60504
|
values: e.map((e) => {
|
|
@@ -60518,11 +60515,11 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60518
60515
|
Nt,
|
|
60519
60516
|
Je,
|
|
60520
60517
|
ut.items,
|
|
60521
|
-
|
|
60518
|
+
A
|
|
60522
60519
|
]);
|
|
60523
60520
|
jo(() => {
|
|
60524
60521
|
if (!Et.current) Dt.current &&= !1;
|
|
60525
|
-
else if (!
|
|
60522
|
+
else if (!ce && !De && !ue && nt(void 0), ce) {
|
|
60526
60523
|
let { values: e, originalItems: t, options: r } = Pt();
|
|
60527
60524
|
He(Array.from(new Set(e.map(String))));
|
|
60528
60525
|
let i = e.map(String).sort().join("\0");
|
|
@@ -60542,7 +60539,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60542
60539
|
Tt,
|
|
60543
60540
|
Je,
|
|
60544
60541
|
ut,
|
|
60545
|
-
|
|
60542
|
+
A
|
|
60546
60543
|
]);
|
|
60547
60544
|
let Ft = z(() => {});
|
|
60548
60545
|
Ft.current = (e) => {
|
|
@@ -60580,12 +60577,12 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60580
60577
|
Lt.cancel(), Ft.current(!0);
|
|
60581
60578
|
}, [Lt]), Vt = I(() => {
|
|
60582
60579
|
zt(!1);
|
|
60583
|
-
}, [zt]), Ht = R(() =>
|
|
60580
|
+
}, [zt]), Ht = R(() => T?.map((e) => ({
|
|
60584
60581
|
...e,
|
|
60585
60582
|
onClick: () => {
|
|
60586
60583
|
zt(!1), e.onClick();
|
|
60587
60584
|
}
|
|
60588
|
-
})), [
|
|
60585
|
+
})), [T, zt]), Ut = I(() => {
|
|
60589
60586
|
if (Tt) {
|
|
60590
60587
|
let e = ft(ut), { values: t, originalItems: r, options: i } = Pt();
|
|
60591
60588
|
pt(e) !== pt(mt.current) && (mt.current = e, n?.(t, r, i)), Re.current = !0;
|
|
@@ -60708,7 +60705,7 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60708
60705
|
disabled: p,
|
|
60709
60706
|
open: De,
|
|
60710
60707
|
onOpenChange: zt
|
|
60711
|
-
}, sn =
|
|
60708
|
+
}, sn = ce ? {
|
|
60712
60709
|
...on,
|
|
60713
60710
|
value: an,
|
|
60714
60711
|
multiple: !0,
|
|
@@ -60735,37 +60732,29 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60735
60732
|
}, [cn]), un = I(() => {
|
|
60736
60733
|
if (!Ae) return !1;
|
|
60737
60734
|
let e = Ve.includes(Ae);
|
|
60738
|
-
return Et.current = !0, At(Ae, !
|
|
60735
|
+
return Et.current = !0, At(Ae, !ce || !e), ce || zt(!1), !0;
|
|
60739
60736
|
}, [
|
|
60740
60737
|
Ae,
|
|
60741
60738
|
Ve,
|
|
60742
|
-
|
|
60743
|
-
At
|
|
60744
|
-
]), dn = I(() => {
|
|
60745
|
-
let e = Ve[Ve.length - 1];
|
|
60746
|
-
return !N || !e ? !1 : (Et.current = !0, At(e, !1), !0);
|
|
60747
|
-
}, [
|
|
60748
|
-
Ve,
|
|
60749
|
-
N,
|
|
60739
|
+
ce,
|
|
60750
60740
|
At
|
|
60751
|
-
]),
|
|
60741
|
+
]), dn = !ce && ht[0] ? String(WI(ht[0])) : "", fn = ce ? Math.max(Ve.length, P.selectedItemsCount) : +!!Ve[0], pn = fn > 0, mn = () => {
|
|
60752
60742
|
Et.current = !0, dt(), at.current.clear(), s?.(void 0, !1);
|
|
60753
|
-
}, { draft:
|
|
60743
|
+
}, { draft: hn, inputRef: gn, focusInput: _n, resetText: vn, handleChange: yn, handleFocus: bn, handleClick: xn, handleBlur: Sn, handleKeyDown: Cn } = fz({
|
|
60754
60744
|
enabled: rt,
|
|
60755
60745
|
open: !!De,
|
|
60756
|
-
restingText: rt ?
|
|
60746
|
+
restingText: rt ? dn : "",
|
|
60757
60747
|
onOpen: Bt,
|
|
60758
60748
|
onClose: () => zt(!1),
|
|
60759
60749
|
onActiveMove: ln,
|
|
60760
60750
|
onSelectActive: un,
|
|
60761
|
-
onBackspaceOnEmpty: dn,
|
|
60762
60751
|
onSearchChange: St,
|
|
60763
60752
|
onSearchReset: () => {
|
|
60764
60753
|
xt(), nt(void 0), y?.("");
|
|
60765
60754
|
},
|
|
60766
60755
|
closeWasRequested: () => ke.current === !1,
|
|
60767
60756
|
onCloseEmpty: () => {
|
|
60768
|
-
!
|
|
60757
|
+
!ce && te && pn && mn();
|
|
60769
60758
|
},
|
|
60770
60759
|
triggerRef: Ne
|
|
60771
60760
|
});
|
|
@@ -60776,39 +60765,49 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60776
60765
|
rt,
|
|
60777
60766
|
Me
|
|
60778
60767
|
]);
|
|
60779
|
-
let
|
|
60768
|
+
let wn = E ? (e) => {
|
|
60780
60769
|
let t = () => {
|
|
60781
|
-
nt(void 0), rt &&
|
|
60782
|
-
}, n =
|
|
60770
|
+
nt(void 0), rt && vn();
|
|
60771
|
+
}, n = E(e);
|
|
60783
60772
|
n && typeof n.then == "function" ? n.then(t, (e) => {
|
|
60784
60773
|
console.warn("[F0Select] onCreate failed:", e);
|
|
60785
60774
|
}) : t();
|
|
60786
|
-
} : void 0,
|
|
60775
|
+
} : void 0, Tn = tt ? rn.t("select.createWithValue", { value: tt }) : rn.select.create, En = S ?? (wn && tt?.trim() ? /* @__PURE__ */ V("div", {
|
|
60787
60776
|
className: "flex w-full",
|
|
60788
|
-
children: /* @__PURE__ */ V(
|
|
60777
|
+
children: /* @__PURE__ */ V(O, {
|
|
60789
60778
|
type: "button",
|
|
60790
60779
|
variant: "outline",
|
|
60791
|
-
onClick: () =>
|
|
60780
|
+
onClick: () => wn(tt.trim()),
|
|
60792
60781
|
icon: In,
|
|
60793
|
-
label:
|
|
60782
|
+
label: Tn
|
|
60794
60783
|
})
|
|
60795
|
-
}) : void 0),
|
|
60784
|
+
}) : void 0), Dn = /* @__PURE__ */ V(NI, {
|
|
60796
60785
|
items: tn,
|
|
60797
60786
|
onKeyDown: rt ? (e) => {
|
|
60798
60787
|
if (e.key !== "Tab" || !e.shiftKey) return;
|
|
60799
60788
|
let [t] = MI(e.currentTarget);
|
|
60800
|
-
t && t === e.target && (e.preventDefault(),
|
|
60789
|
+
t && t === e.target && (e.preventDefault(), _n());
|
|
60801
60790
|
} : void 0,
|
|
60802
60791
|
keepTriggerAccessible: rt,
|
|
60803
|
-
"aria-label":
|
|
60792
|
+
"aria-label": j,
|
|
60804
60793
|
onPointerDownOutside: rt ? (e) => {
|
|
60805
|
-
let t = e.detail.originalEvent
|
|
60806
|
-
t instanceof Node && Ne.current?.contains(t)
|
|
60794
|
+
let { target: t, clientX: n, clientY: r } = e.detail.originalEvent;
|
|
60795
|
+
if (t instanceof Node && Ne.current?.contains(t)) {
|
|
60796
|
+
e.preventDefault();
|
|
60797
|
+
return;
|
|
60798
|
+
}
|
|
60799
|
+
let i = (e) => {
|
|
60800
|
+
let t = e?.getBoundingClientRect();
|
|
60801
|
+
return !!t && n >= t.left && n <= t.right && r >= t.top && r <= t.bottom;
|
|
60802
|
+
};
|
|
60803
|
+
if (i(Fe.current)) return;
|
|
60804
|
+
let a = Array.from(Ne.current?.querySelectorAll("button") ?? []).find((e) => i(e)), o = i(gn.current) || i(Ne.current?.querySelector("[data-slot=\"value\"]"));
|
|
60805
|
+
(a || o) && (e.preventDefault(), e.detail.originalEvent.preventDefault(), a?.click(), _n(), a || xn());
|
|
60807
60806
|
} : void 0,
|
|
60808
60807
|
fitContentWidth: _t,
|
|
60809
|
-
taller: !!
|
|
60810
|
-
emptyMessage: x ?? (
|
|
60811
|
-
emptyAction:
|
|
60808
|
+
taller: !!A?.filters,
|
|
60809
|
+
emptyMessage: x ?? (E && tt?.trim() ? rn.select.createEmptyMessage ?? rn.select.noResults : rn.select.noResults),
|
|
60810
|
+
emptyAction: En,
|
|
60812
60811
|
spaciousEmptyState: C,
|
|
60813
60812
|
bottom: Wt ? null : /* @__PURE__ */ V(zI, {
|
|
60814
60813
|
actions: Ht,
|
|
@@ -60829,21 +60828,22 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60829
60828
|
filters: qe.filters,
|
|
60830
60829
|
currentFilters: qe.currentFilters,
|
|
60831
60830
|
onFiltersChange: (e) => {
|
|
60832
|
-
qe.setCurrentFilters(e),
|
|
60831
|
+
qe.setCurrentFilters(e), D?.(e);
|
|
60833
60832
|
},
|
|
60834
60833
|
asList: ue,
|
|
60835
60834
|
onFiltersOpenChange: Gt,
|
|
60836
60835
|
showPreview: de
|
|
60837
|
-
}),
|
|
60836
|
+
}), ce && !tt && !Wt ? /* @__PURE__ */ V(RI, {
|
|
60838
60837
|
selectedCount: P.selectedItemsCount,
|
|
60839
60838
|
indeterminate: ut.allSelected === "indeterminate" || ut.allSelected === !1 && P.selectedItemsCount > 0,
|
|
60840
60839
|
value: !!ut.allSelected,
|
|
60841
60840
|
onChange: Mt,
|
|
60842
60841
|
hideCheckbox: Ee,
|
|
60843
60842
|
items: ht,
|
|
60844
|
-
paddingTop: !it && !qe.filters
|
|
60843
|
+
paddingTop: !it && !qe.filters,
|
|
60844
|
+
keepFocusOnClick: rt
|
|
60845
60845
|
}) : null] }),
|
|
60846
|
-
right:
|
|
60846
|
+
right: ce && !Wt && de ? /* @__PURE__ */ V(nL, {
|
|
60847
60847
|
items: ht,
|
|
60848
60848
|
onDeselect: (e) => At(e, !1),
|
|
60849
60849
|
allSelected: ut.allSelected,
|
|
@@ -60857,22 +60857,22 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60857
60857
|
isLoading: $e,
|
|
60858
60858
|
showLoadingIndicator: !!f,
|
|
60859
60859
|
portalContainer: Ce
|
|
60860
|
-
}),
|
|
60861
|
-
multiple:
|
|
60862
|
-
totalSelectedCount:
|
|
60860
|
+
}), On = `${ye}-selection`, [kn, An] = B(!1), jn = /* @__PURE__ */ V($I, {
|
|
60861
|
+
multiple: ce,
|
|
60862
|
+
totalSelectedCount: fn,
|
|
60863
60863
|
allSelected: ut.allSelected,
|
|
60864
60864
|
selection: ht,
|
|
60865
|
-
hideItemIcon: !!
|
|
60865
|
+
hideItemIcon: !!M,
|
|
60866
60866
|
noTooltip: !0,
|
|
60867
|
-
onSpelledOutChange:
|
|
60868
|
-
}),
|
|
60867
|
+
onSpelledOutChange: An
|
|
60868
|
+
}), Mn = KI(ht.map(WI).filter(Boolean), fn, (e) => rn.t("toc.moreResults", { count: e })), Nn = (e) => {
|
|
60869
60869
|
let t = /* @__PURE__ */ V("div", {
|
|
60870
60870
|
className: c("w-full min-w-0", !!f && "h-full", rt && De && "relative z-50"),
|
|
60871
60871
|
children: e
|
|
60872
60872
|
});
|
|
60873
|
-
return /* @__PURE__ */ V(
|
|
60874
|
-
label: g ?
|
|
60875
|
-
description:
|
|
60873
|
+
return /* @__PURE__ */ V(k, {
|
|
60874
|
+
label: g ? j : void 0,
|
|
60875
|
+
description: kn || rt && De ? "" : Mn,
|
|
60876
60876
|
children: t
|
|
60877
60877
|
});
|
|
60878
60878
|
};
|
|
@@ -60881,29 +60881,29 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60881
60881
|
children: /* @__PURE__ */ H("div", {
|
|
60882
60882
|
className: c("flex w-full max-h-full flex-col gap-2", p && "cursor-not-allowed opacity-50"),
|
|
60883
60883
|
children: [
|
|
60884
|
-
|
|
60885
|
-
label:
|
|
60886
|
-
required:
|
|
60884
|
+
j && !g ? /* @__PURE__ */ V(JN, {
|
|
60885
|
+
label: j,
|
|
60886
|
+
required: se,
|
|
60887
60887
|
htmlFor: ye,
|
|
60888
|
-
icon:
|
|
60888
|
+
icon: ee,
|
|
60889
60889
|
disabled: p
|
|
60890
60890
|
}) : null,
|
|
60891
60891
|
/* @__PURE__ */ V("div", {
|
|
60892
|
-
className: c("flex-1 min-h-0", _z({ status:
|
|
60892
|
+
className: c("flex-1 min-h-0", _z({ status: ie ? "error" : ae?.type ? ae?.type : "default" })),
|
|
60893
60893
|
children: /* @__PURE__ */ V(rI, {
|
|
60894
60894
|
...sn,
|
|
60895
|
-
children:
|
|
60895
|
+
children: Dn
|
|
60896
60896
|
})
|
|
60897
60897
|
}),
|
|
60898
|
-
/* @__PURE__ */ V(qN, { status:
|
|
60898
|
+
/* @__PURE__ */ V(qN, { status: ae })
|
|
60899
60899
|
]
|
|
60900
60900
|
})
|
|
60901
60901
|
});
|
|
60902
|
-
let
|
|
60902
|
+
let Pn = /* @__PURE__ */ H(rI, {
|
|
60903
60903
|
...sn,
|
|
60904
60904
|
children: [e === "inline" ? /* @__PURE__ */ V(yz, {
|
|
60905
60905
|
ref: Ie,
|
|
60906
|
-
label:
|
|
60906
|
+
label: j,
|
|
60907
60907
|
placeholder: t,
|
|
60908
60908
|
selection: ht,
|
|
60909
60909
|
hasValue: !!Ve[0]
|
|
@@ -60913,50 +60913,50 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60913
60913
|
"aria-autocomplete": rt ? "list" : void 0,
|
|
60914
60914
|
children: f ? /* @__PURE__ */ V("div", {
|
|
60915
60915
|
className: "flex h-full w-full items-center justify-between",
|
|
60916
|
-
"aria-label":
|
|
60916
|
+
"aria-label": j || t,
|
|
60917
60917
|
children: f
|
|
60918
60918
|
}) : /* @__PURE__ */ V(eP, {
|
|
60919
|
-
label:
|
|
60920
|
-
error:
|
|
60921
|
-
required:
|
|
60922
|
-
status:
|
|
60923
|
-
hint:
|
|
60924
|
-
icon:
|
|
60925
|
-
labelIcon:
|
|
60919
|
+
label: j,
|
|
60920
|
+
error: ie,
|
|
60921
|
+
required: se,
|
|
60922
|
+
status: ae,
|
|
60923
|
+
hint: oe,
|
|
60924
|
+
icon: M,
|
|
60925
|
+
labelIcon: ee,
|
|
60926
60926
|
hideLabel: g,
|
|
60927
|
-
value: rt ?
|
|
60928
|
-
isEmpty: (e) => rt ? !e :
|
|
60929
|
-
canClear: rt ?
|
|
60930
|
-
onChange: rt ?
|
|
60931
|
-
onBlur: rt ?
|
|
60927
|
+
value: rt ? hn : ce ? fn.toString() : Ve[0] ?? void 0,
|
|
60928
|
+
isEmpty: (e) => rt ? !e : ce ? !e || +(e ?? 0) == 0 : !e,
|
|
60929
|
+
canClear: rt ? pn : void 0,
|
|
60930
|
+
onChange: rt ? yn : void 0,
|
|
60931
|
+
onBlur: rt ? Sn : void 0,
|
|
60932
60932
|
clearKeepsText: rt,
|
|
60933
60933
|
"aria-activedescendant": rt && De && Ae ? Me(Ae) : void 0,
|
|
60934
|
-
"aria-describedby": rt &&
|
|
60935
|
-
inputRef: rt ?
|
|
60936
|
-
valueSlot: rt &&
|
|
60937
|
-
id:
|
|
60934
|
+
"aria-describedby": rt && ce && pn && !hn ? On : void 0,
|
|
60935
|
+
inputRef: rt ? gn : void 0,
|
|
60936
|
+
valueSlot: rt && ce && pn ? /* @__PURE__ */ V("span", {
|
|
60937
|
+
id: On,
|
|
60938
60938
|
"aria-hidden": "true",
|
|
60939
60939
|
className: "contents",
|
|
60940
|
-
children:
|
|
60940
|
+
children: jn
|
|
60941
60941
|
}) : void 0,
|
|
60942
|
-
onClear:
|
|
60942
|
+
onClear: mn,
|
|
60943
60943
|
placeholder: (rt ? t || b || rn.toc.search : t) || "",
|
|
60944
60944
|
disabled: p,
|
|
60945
|
-
clearable:
|
|
60945
|
+
clearable: te,
|
|
60946
60946
|
size: gt,
|
|
60947
60947
|
loadingIndicator: {
|
|
60948
60948
|
asOverlay: !0,
|
|
60949
|
-
offset: fe ?
|
|
60949
|
+
offset: fe ? te && pn ? 26 : void 0 : 34
|
|
60950
60950
|
},
|
|
60951
|
-
loading: Xe ||
|
|
60952
|
-
name: rt ? void 0 :
|
|
60951
|
+
loading: Xe || ne || $e,
|
|
60952
|
+
name: rt ? void 0 : re,
|
|
60953
60953
|
onClickContent: (e) => {
|
|
60954
60954
|
if (rt) {
|
|
60955
60955
|
if (e.target instanceof Node && Fe.current?.contains(e.target)) {
|
|
60956
|
-
zt(!De),
|
|
60956
|
+
zt(!De), _n();
|
|
60957
60957
|
return;
|
|
60958
60958
|
}
|
|
60959
|
-
De || zt(!0),
|
|
60959
|
+
De || zt(!0), _n(), xn();
|
|
60960
60960
|
} else zt(!De);
|
|
60961
60961
|
},
|
|
60962
60962
|
append: fe ? void 0 : /* @__PURE__ */ V(LI, {
|
|
@@ -60968,16 +60968,16 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60968
60968
|
children: rt ? /* @__PURE__ */ V("input", {
|
|
60969
60969
|
type: "text",
|
|
60970
60970
|
autoComplete: "off",
|
|
60971
|
-
onKeyDown:
|
|
60972
|
-
onFocus:
|
|
60971
|
+
onKeyDown: Cn,
|
|
60972
|
+
onFocus: bn,
|
|
60973
60973
|
className: "w-full shrink cursor-text bg-transparent placeholder:-z-10 disabled:cursor-not-allowed"
|
|
60974
60974
|
}) : /* @__PURE__ */ V("button", {
|
|
60975
60975
|
className: "flex w-full items-center justify-between",
|
|
60976
|
-
"aria-label":
|
|
60976
|
+
"aria-label": j || t,
|
|
60977
60977
|
onClick: (e) => {
|
|
60978
60978
|
e.preventDefault();
|
|
60979
60979
|
},
|
|
60980
|
-
children:
|
|
60980
|
+
children: pn ? jn : null
|
|
60981
60981
|
})
|
|
60982
60982
|
})
|
|
60983
60983
|
}), De ? /* @__PURE__ */ V(II.Provider, {
|
|
@@ -60985,13 +60985,13 @@ var bz = F(function({ variant: e = "field", placeholder: t, onChange: n, withApp
|
|
|
60985
60985
|
value: Ae,
|
|
60986
60986
|
setActive: je
|
|
60987
60987
|
} : null,
|
|
60988
|
-
children:
|
|
60988
|
+
children: Dn
|
|
60989
60989
|
}) : null]
|
|
60990
60990
|
});
|
|
60991
60991
|
return /* @__PURE__ */ V(i, {
|
|
60992
60992
|
dataTestId: ge,
|
|
60993
|
-
children: e === "inline" ?
|
|
60993
|
+
children: e === "inline" ? Pn : Nn(Pn)
|
|
60994
60994
|
});
|
|
60995
60995
|
}), xz = o("F0Select", bz);
|
|
60996
60996
|
//#endregion
|
|
60997
|
-
export { qN as $,
|
|
60997
|
+
export { qN as $, sc as $n, Dw as $t, LI as A, ol as An, En as Ar, NT as At, yP as B, G as Bn, on as Br, dT as Bt, hL as C, bu as Cn, jo as Cr, kD as Ct, rL as D, gl as Dn, Mn as Dr, tD as Dt, lL as E, yl as En, Pn as Er, rD as Et, xI as F, Qc as Fn, gn as Fr, wT as Ft, oP as G, Pc as Gn, Yt as Gr, $w as Gt, _P as H, Bc as Hn, tn as Hr, aT as Ht, bI as I, Zc as In, mn as Ir, xT as It, tP as J, Ec as Jn, qw as Jt, aP as K, Nc as Kn, Zw as Kt, rI as L, Gc as Ln, fn as Lr, yT as Lt, NI as M, Yc as Mn, Sn as Mr, kT as Mt, kI as N, Jc as Nn, bn as Nr, AT as Nt, $I as O, ml as On, An as Or, KE as Ot, mI as P, $c as Pn, vn as Pr, ET as Pt, JN as Q, dc as Qn, Iw as Qt, xP as R, Wc as Rn, un as Rr, _T as Rt, gL as S, jd as Sn, Po as Sr, rO as St, uL as T, Il as Tn, In as Tr, xD as Tt, fP as U, Lc as Un, $t as Ur, nT as Ut, vP as V, Hc as Vn, rn as Vr, uT as Vt, uP as W, Ic as Wn, Zt as Wr, tT as Wt, rP as X, pc as Xn, Bw as Xt, nP as Y, Dc as Yn, Ww as Yt, eP as Z, fc as Zn, Lw as Zt, AL as _, SC as _n, Zo as _r, lO as _t, tz as a, Aw as an, Ws as ar, SM as at, vL as b, Rd as bn, Ko as br, nO as bt, VR as c, Pw as cn, Ns as cr, rj as ct, PR as d, kC as dn, Es as dr, RA as dt, Tw as en, nc as er, GN as et, jR as f, DC as fn, Ts as fr, MO as ft, RL as g, TC as gn, rs as gr, uO as gt, LL as h, CC as hn, ys as hr, fO as ht, nz as i, Nw as in, Gs as ir, FN as it, PI as j, tl as jn, wn as jr, PT as jt, WI as k, dl as kn, On as kr, yE as kt, zR as l, YC as ln, Ms as lr, nj as lt, dR as m, OC as mn, xs as mr, pO as mt, bz as n, Mw as nn, Qs as nr, BN as nt, UR as o, Ew as on, Vs as or, lj as ot, wR as p, EC as pn, ws as pr, AO as pt, sP as q, Oc as qn, Yw as qt, cz as r, kw as rn, qs as rr, PN as rt, HR as s, Ow as sn, zs as sr, aj as st, xz as t, Cw as tn, tc as tr, HN as tt, FR as u, JC as un, As as ur, VA as ut, TL as v, Vd as vn, Xo as vr, sO as vt, fL as w, Z as wn, Rn as wr, OD as wt, _L as x, Fd as xn, Go as xr, iO as xt, wL as y, Hd as yn, Yo as yr, aO as yt, bP as z, Uc as zn, cn as zr, fT as zt };
|