@post-pioneer/ui-kit 0.1.59 → 0.1.61
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +1 -1
- package/dist/ui-kit-postpioneer.es.js +838 -838
- package/dist/ui-kit-postpioneer.umd.js +4 -4
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { jsx as f, jsxs as A, Fragment as
|
|
1
|
+
import { jsx as f, jsxs as A, Fragment as Ee } from "react/jsx-runtime";
|
|
2
2
|
import * as h from "react";
|
|
3
|
-
import M, { forwardRef as
|
|
3
|
+
import M, { forwardRef as P, useState as W, useRef as ce, useEffect as ae, useMemo as vt, useLayoutEffect as To, useCallback as Mn, Children as ot, isValidElement as Ot, createElement as V, cloneElement as In, Fragment as zo, useReducer as Mo, createContext as vn, useContext as Io } from "react";
|
|
4
4
|
import * as Zt from "react-dom";
|
|
5
5
|
import va, { flushSync as Ca } from "react-dom";
|
|
6
|
-
const ba =
|
|
6
|
+
const ba = P(
|
|
7
7
|
({ width: e = "12", height: t = "14", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
8
8
|
"svg",
|
|
9
9
|
{
|
|
@@ -28,7 +28,7 @@ const ba = L(
|
|
|
28
28
|
)
|
|
29
29
|
);
|
|
30
30
|
ba.displayName = "AlertsBellIcon";
|
|
31
|
-
const
|
|
31
|
+
const mt = P(
|
|
32
32
|
({ width: e = "7", height: t = "4", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
33
33
|
"svg",
|
|
34
34
|
{
|
|
@@ -44,8 +44,8 @@ const gt = L(
|
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
|
-
|
|
48
|
-
const On =
|
|
47
|
+
mt.displayName = "ArrowIcon";
|
|
48
|
+
const On = P(
|
|
49
49
|
({ width: e = "12", height: t = "8", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
50
50
|
"svg",
|
|
51
51
|
{
|
|
@@ -62,7 +62,7 @@ const On = L(
|
|
|
62
62
|
)
|
|
63
63
|
);
|
|
64
64
|
On.displayName = "ArrowChevronDownIcon";
|
|
65
|
-
const ya =
|
|
65
|
+
const ya = P(
|
|
66
66
|
({ width: e = "6", height: t = "10", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
67
67
|
"svg",
|
|
68
68
|
{
|
|
@@ -85,7 +85,7 @@ const ya = L(
|
|
|
85
85
|
)
|
|
86
86
|
);
|
|
87
87
|
ya.displayName = "ArrowChevronLeftIcon";
|
|
88
|
-
const xa =
|
|
88
|
+
const xa = P(
|
|
89
89
|
({ width: e = "6", height: t = "10", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
90
90
|
"svg",
|
|
91
91
|
{
|
|
@@ -108,7 +108,7 @@ const xa = L(
|
|
|
108
108
|
)
|
|
109
109
|
);
|
|
110
110
|
xa.displayName = "ArrowChevronRightIcon";
|
|
111
|
-
const Oo =
|
|
111
|
+
const Oo = P(
|
|
112
112
|
({ width: e = "12", height: t = "8", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
113
113
|
"svg",
|
|
114
114
|
{
|
|
@@ -125,7 +125,7 @@ const Oo = L(
|
|
|
125
125
|
)
|
|
126
126
|
);
|
|
127
127
|
Oo.displayName = "ArrowChevronUpIcon";
|
|
128
|
-
const Sa =
|
|
128
|
+
const Sa = P(
|
|
129
129
|
({ width: e = "20", height: t = "20", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ A(
|
|
130
130
|
"svg",
|
|
131
131
|
{
|
|
@@ -151,7 +151,7 @@ const Sa = L(
|
|
|
151
151
|
)
|
|
152
152
|
);
|
|
153
153
|
Sa.displayName = "ArrowRefreshIcon";
|
|
154
|
-
const Do =
|
|
154
|
+
const Do = P(
|
|
155
155
|
({ width: e = "18", height: t = "12", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
156
156
|
"svg",
|
|
157
157
|
{
|
|
@@ -168,7 +168,7 @@ const Do = L(
|
|
|
168
168
|
)
|
|
169
169
|
);
|
|
170
170
|
Do.displayName = "CheckIcon";
|
|
171
|
-
const
|
|
171
|
+
const Ea = P(
|
|
172
172
|
({ width: e = "16", height: t = "16", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
173
173
|
"svg",
|
|
174
174
|
{
|
|
@@ -184,8 +184,8 @@ const ka = L(
|
|
|
184
184
|
}
|
|
185
185
|
)
|
|
186
186
|
);
|
|
187
|
-
|
|
188
|
-
const
|
|
187
|
+
Ea.displayName = "FacebookIcon";
|
|
188
|
+
const La = P(
|
|
189
189
|
({ width: e = "24", height: t = "24", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
190
190
|
"svg",
|
|
191
191
|
{
|
|
@@ -209,8 +209,8 @@ const Ea = L(
|
|
|
209
209
|
}
|
|
210
210
|
)
|
|
211
211
|
);
|
|
212
|
-
|
|
213
|
-
const
|
|
212
|
+
La.displayName = "EyeIcon";
|
|
213
|
+
const Pa = P(
|
|
214
214
|
({ width: e = "26", height: t = "26", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
215
215
|
"svg",
|
|
216
216
|
{
|
|
@@ -232,8 +232,8 @@ const La = L(
|
|
|
232
232
|
}
|
|
233
233
|
)
|
|
234
234
|
);
|
|
235
|
-
|
|
236
|
-
const
|
|
235
|
+
Pa.displayName = "EyeSlashIcon";
|
|
236
|
+
const $a = P(
|
|
237
237
|
({ width: e = "14", height: t = "14", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
238
238
|
"svg",
|
|
239
239
|
{
|
|
@@ -249,8 +249,8 @@ const Pa = L(
|
|
|
249
249
|
}
|
|
250
250
|
)
|
|
251
251
|
);
|
|
252
|
-
|
|
253
|
-
const
|
|
252
|
+
$a.displayName = "InstagramIcon";
|
|
253
|
+
const Ra = P(
|
|
254
254
|
({ width: e = "16", height: t = "16", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
255
255
|
"svg",
|
|
256
256
|
{
|
|
@@ -274,8 +274,8 @@ const $a = L(
|
|
|
274
274
|
}
|
|
275
275
|
)
|
|
276
276
|
);
|
|
277
|
-
|
|
278
|
-
const
|
|
277
|
+
Ra.displayName = "ImagePhotoIcon";
|
|
278
|
+
const Na = P(
|
|
279
279
|
({ width: e = "12", height: t = "14", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
280
280
|
"svg",
|
|
281
281
|
{
|
|
@@ -299,8 +299,8 @@ const Ra = L(
|
|
|
299
299
|
}
|
|
300
300
|
)
|
|
301
301
|
);
|
|
302
|
-
|
|
303
|
-
const
|
|
302
|
+
Na.displayName = "ImagePhotoOutline";
|
|
303
|
+
const ka = P(
|
|
304
304
|
({ width: e = "24", height: t = "24", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
305
305
|
"svg",
|
|
306
306
|
{
|
|
@@ -324,8 +324,8 @@ const Na = L(
|
|
|
324
324
|
}
|
|
325
325
|
)
|
|
326
326
|
);
|
|
327
|
-
|
|
328
|
-
const Aa =
|
|
327
|
+
ka.displayName = "LogoutV1Outline";
|
|
328
|
+
const Aa = P(
|
|
329
329
|
({ width: e = "16", height: t = "16", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
330
330
|
"svg",
|
|
331
331
|
{
|
|
@@ -359,7 +359,7 @@ const Aa = L(
|
|
|
359
359
|
)
|
|
360
360
|
);
|
|
361
361
|
Aa.displayName = "MathSymbolsAddSquareV2Icon";
|
|
362
|
-
const Ta =
|
|
362
|
+
const Ta = P(
|
|
363
363
|
({ width: e = "20", height: t = "20", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
364
364
|
"svg",
|
|
365
365
|
{
|
|
@@ -384,7 +384,7 @@ const Ta = L(
|
|
|
384
384
|
)
|
|
385
385
|
);
|
|
386
386
|
Ta.displayName = "MathSymbolsXCircleContainedIcon";
|
|
387
|
-
const Dn =
|
|
387
|
+
const Dn = P(
|
|
388
388
|
({ width: e = "9", height: t = "8", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
389
389
|
"svg",
|
|
390
390
|
{
|
|
@@ -401,7 +401,7 @@ const Dn = L(
|
|
|
401
401
|
)
|
|
402
402
|
);
|
|
403
403
|
Dn.displayName = "MathSymbolXV2Icon";
|
|
404
|
-
const Vo =
|
|
404
|
+
const Vo = P(
|
|
405
405
|
({ width: e = "16", height: t = "2", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
406
406
|
"svg",
|
|
407
407
|
{
|
|
@@ -418,7 +418,7 @@ const Vo = L(
|
|
|
418
418
|
)
|
|
419
419
|
);
|
|
420
420
|
Vo.displayName = "MinusIcon";
|
|
421
|
-
const za =
|
|
421
|
+
const za = P(
|
|
422
422
|
({ width: e = "20", height: t = "16", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
423
423
|
"svg",
|
|
424
424
|
{
|
|
@@ -435,7 +435,7 @@ const za = L(
|
|
|
435
435
|
)
|
|
436
436
|
);
|
|
437
437
|
za.displayName = "OdnoklassnikiIcon";
|
|
438
|
-
const Vn =
|
|
438
|
+
const Vn = P(
|
|
439
439
|
({ width: e = "12", height: t = "12", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
440
440
|
"svg",
|
|
441
441
|
{
|
|
@@ -452,7 +452,7 @@ const Vn = L(
|
|
|
452
452
|
)
|
|
453
453
|
);
|
|
454
454
|
Vn.displayName = "RequiredIcon";
|
|
455
|
-
const Ma =
|
|
455
|
+
const Ma = P(
|
|
456
456
|
({ width: e = "18", height: t = "18", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
457
457
|
"svg",
|
|
458
458
|
{
|
|
@@ -469,7 +469,7 @@ const Ma = L(
|
|
|
469
469
|
)
|
|
470
470
|
);
|
|
471
471
|
Ma.displayName = "SearchIcon";
|
|
472
|
-
const Ho =
|
|
472
|
+
const Ho = P(
|
|
473
473
|
({ size: e = 16, color: t = "currentColor", ...n }, o) => /* @__PURE__ */ f(
|
|
474
474
|
"svg",
|
|
475
475
|
{
|
|
@@ -494,7 +494,7 @@ const Ho = L(
|
|
|
494
494
|
)
|
|
495
495
|
);
|
|
496
496
|
Ho.displayName = "SwapIcon";
|
|
497
|
-
const Ia =
|
|
497
|
+
const Ia = P(
|
|
498
498
|
({ width: e = "14", height: t = "15", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
499
499
|
"svg",
|
|
500
500
|
{
|
|
@@ -511,7 +511,7 @@ const Ia = L(
|
|
|
511
511
|
)
|
|
512
512
|
);
|
|
513
513
|
Ia.displayName = "TelegramIcon";
|
|
514
|
-
const Oa =
|
|
514
|
+
const Oa = P(
|
|
515
515
|
({ width: e = "16", height: t = "16", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
516
516
|
"svg",
|
|
517
517
|
{
|
|
@@ -528,7 +528,7 @@ const Oa = L(
|
|
|
528
528
|
)
|
|
529
529
|
);
|
|
530
530
|
Oa.displayName = "TimeCalendarV2Icon";
|
|
531
|
-
const Da =
|
|
531
|
+
const Da = P(
|
|
532
532
|
({ width: e = "14", height: t = "14", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
533
533
|
"svg",
|
|
534
534
|
{
|
|
@@ -583,7 +583,7 @@ const Va = "_accordion_1bao6_780", Ha = "_open_1bao6_789", Ba = "_disabled_1bao6
|
|
|
583
583
|
divider: es,
|
|
584
584
|
content: ts,
|
|
585
585
|
inner: ns
|
|
586
|
-
}, os = "_focus_1untv_551", rs = "_swap_1untv_633", as = "_swap__content_1untv_689", ss = "_typography_1untv_781", is = "_truncate_1untv_1017",
|
|
586
|
+
}, os = "_focus_1untv_551", rs = "_swap_1untv_633", as = "_swap__content_1untv_689", ss = "_typography_1untv_781", is = "_truncate_1untv_1017", Ne = {
|
|
587
587
|
focus: os,
|
|
588
588
|
"focus--default": "_focus--default_1untv_568",
|
|
589
589
|
"focus--danger": "_focus--danger_1untv_572",
|
|
@@ -708,7 +708,7 @@ const Va = "_accordion_1bao6_780", Ha = "_open_1bao6_789", Ba = "_disabled_1bao6
|
|
|
708
708
|
SmallText: "text-short-s-regular",
|
|
709
709
|
RegularLink: "text-long-m-regular",
|
|
710
710
|
SmallLink: "text-short-s-regular"
|
|
711
|
-
}, st =
|
|
711
|
+
}, st = P(
|
|
712
712
|
(e, t) => {
|
|
713
713
|
const {
|
|
714
714
|
as: n = "p",
|
|
@@ -722,16 +722,16 @@ const Va = "_accordion_1bao6_780", Ha = "_open_1bao6_789", Ba = "_disabled_1bao6
|
|
|
722
722
|
breakWord: u = !1,
|
|
723
723
|
fontFamily: d = "inter",
|
|
724
724
|
..._
|
|
725
|
-
} = e,
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
725
|
+
} = e, m = cs[i], w = I(
|
|
726
|
+
Ne.typography,
|
|
727
|
+
Ne[m],
|
|
728
|
+
Ne[`align-${a}`],
|
|
729
|
+
Ne[`font-${d}`],
|
|
730
730
|
{
|
|
731
|
-
[
|
|
732
|
-
[
|
|
733
|
-
[
|
|
734
|
-
[
|
|
731
|
+
[Ne.truncate]: s,
|
|
732
|
+
[Ne.multilineTruncate]: c,
|
|
733
|
+
[Ne.noWrap]: l,
|
|
734
|
+
[Ne.breakWord]: u
|
|
735
735
|
},
|
|
736
736
|
r
|
|
737
737
|
);
|
|
@@ -826,8 +826,8 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
826
826
|
})() }),
|
|
827
827
|
o && /* @__PURE__ */ f("span", { className: Qe.spinner__label, "aria-hidden": "true", children: o })
|
|
828
828
|
] });
|
|
829
|
-
},
|
|
830
|
-
focus:
|
|
829
|
+
}, ms = "_focus_1samt_550", gs = "_swap_1samt_632", ws = "_swap__content_1samt_688", vs = "_button_1samt_780", Cs = "_sizeL_1samt_805", bs = "_sizeM_1samt_809", ys = "_sizeS_1samt_813", xs = "_iconOnly_1samt_817", Ss = "_primary_1samt_829", Es = "_disabled_1samt_834", Ls = "_count_1samt_848", Ps = "_secondary_1samt_852", $s = "_ghost_1samt_875", Rs = "_link_1samt_898", Ns = "_dangerPrimary_1samt_927", ks = "_dangerSecondary_1samt_953", As = "_dangerGhost_1samt_979", Ts = "_dangerLink_1samt_1005", zs = "_open_1samt_1032", Ms = "_content_1samt_1044", Is = "_loader_1samt_1049", Os = "_text_1samt_1055", Ds = "_icon_1samt_817", Vs = "_chevron_1samt_1082", Hs = "_loading_1samt_1110", re = {
|
|
830
|
+
focus: ms,
|
|
831
831
|
"focus--default": "_focus--default_1samt_567",
|
|
832
832
|
"focus--danger": "_focus--danger_1samt_571",
|
|
833
833
|
"focus--visible": "_focus--visible_1samt_577",
|
|
@@ -837,7 +837,7 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
837
837
|
"focus--input": "_focus--input_1samt_607",
|
|
838
838
|
"focus--button": "_focus--button_1samt_612",
|
|
839
839
|
"focus--card": "_focus--card_1samt_617",
|
|
840
|
-
swap:
|
|
840
|
+
swap: gs,
|
|
841
841
|
"swap--text": "_swap--text_1samt_641",
|
|
842
842
|
"swap--icon": "_swap--icon_1samt_652",
|
|
843
843
|
"swap--icon-xs": "_swap--icon-xs_1samt_662",
|
|
@@ -857,13 +857,13 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
857
857
|
sizeS: ys,
|
|
858
858
|
iconOnly: xs,
|
|
859
859
|
primary: Ss,
|
|
860
|
-
disabled:
|
|
861
|
-
count:
|
|
862
|
-
secondary:
|
|
863
|
-
ghost:
|
|
864
|
-
link:
|
|
865
|
-
dangerPrimary:
|
|
866
|
-
dangerSecondary:
|
|
860
|
+
disabled: Es,
|
|
861
|
+
count: Ls,
|
|
862
|
+
secondary: Ps,
|
|
863
|
+
ghost: $s,
|
|
864
|
+
link: Rs,
|
|
865
|
+
dangerPrimary: Ns,
|
|
866
|
+
dangerSecondary: ks,
|
|
867
867
|
dangerGhost: As,
|
|
868
868
|
dangerLink: Ts,
|
|
869
869
|
open: zs,
|
|
@@ -884,7 +884,7 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
884
884
|
default:
|
|
885
885
|
return "s";
|
|
886
886
|
}
|
|
887
|
-
}, Cn =
|
|
887
|
+
}, Cn = P(
|
|
888
888
|
(e, t) => {
|
|
889
889
|
const {
|
|
890
890
|
size: n = "m",
|
|
@@ -898,10 +898,10 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
898
898
|
icon: u,
|
|
899
899
|
iconPosition: d = "left",
|
|
900
900
|
tooltip: _,
|
|
901
|
-
count:
|
|
901
|
+
count: m,
|
|
902
902
|
withChevron: w = !1,
|
|
903
903
|
href: p,
|
|
904
|
-
...
|
|
904
|
+
...g
|
|
905
905
|
} = e, v = d === "only" || !l && u, C = w && !v, b = [
|
|
906
906
|
re.button,
|
|
907
907
|
re[`size${n.toUpperCase()}`],
|
|
@@ -912,18 +912,18 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
912
912
|
s && re.open,
|
|
913
913
|
v && re.iconOnly,
|
|
914
914
|
c
|
|
915
|
-
].filter(Boolean).join(" "), y = () => /* @__PURE__ */ A(
|
|
915
|
+
].filter(Boolean).join(" "), y = () => /* @__PURE__ */ A(Ee, { children: [
|
|
916
916
|
/* @__PURE__ */ A("span", { className: re.content, children: [
|
|
917
917
|
u && d !== "right" && /* @__PURE__ */ f("span", { className: re.icon, children: u }),
|
|
918
918
|
l && /* @__PURE__ */ f("span", { className: re.text, children: l }),
|
|
919
919
|
u && d === "right" && /* @__PURE__ */ f("span", { className: re.icon, children: u }),
|
|
920
920
|
C && /* @__PURE__ */ f("span", { className: re.chevron }),
|
|
921
|
-
|
|
921
|
+
m !== void 0 && /* @__PURE__ */ f("span", { className: re.count, children: m > 99 ? "+99" : m })
|
|
922
922
|
] }),
|
|
923
923
|
a && /* @__PURE__ */ f("span", { className: re.loader, children: /* @__PURE__ */ f(hs, { size: Bs(n) }) })
|
|
924
924
|
] });
|
|
925
925
|
if (p) {
|
|
926
|
-
const S =
|
|
926
|
+
const S = g;
|
|
927
927
|
return r || a ? /* @__PURE__ */ f("span", { className: b, ...S, children: y() }) : /* @__PURE__ */ f(
|
|
928
928
|
"a",
|
|
929
929
|
{
|
|
@@ -935,7 +935,7 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
935
935
|
}
|
|
936
936
|
);
|
|
937
937
|
}
|
|
938
|
-
const { type: x = "button", ...
|
|
938
|
+
const { type: x = "button", ...E } = g;
|
|
939
939
|
return /* @__PURE__ */ f(
|
|
940
940
|
"button",
|
|
941
941
|
{
|
|
@@ -944,14 +944,14 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
944
944
|
className: b,
|
|
945
945
|
disabled: r || a,
|
|
946
946
|
"aria-label": v && _ ? _ : void 0,
|
|
947
|
-
...
|
|
947
|
+
...E,
|
|
948
948
|
children: y()
|
|
949
949
|
}
|
|
950
950
|
);
|
|
951
951
|
}
|
|
952
952
|
);
|
|
953
953
|
Cn.displayName = "Button";
|
|
954
|
-
const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7y_688", Us = "_divider_1gu7y_780", Zs = "_divider__text_1gu7y_852",
|
|
954
|
+
const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7y_688", Us = "_divider_1gu7y_780", Zs = "_divider__text_1gu7y_852", ke = {
|
|
955
955
|
focus: js,
|
|
956
956
|
"focus--default": "_focus--default_1gu7y_567",
|
|
957
957
|
"focus--danger": "_focus--danger_1gu7y_571",
|
|
@@ -1004,13 +1004,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1004
1004
|
...s
|
|
1005
1005
|
}) => {
|
|
1006
1006
|
const c = !!a, l = [
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
c &&
|
|
1013
|
-
c &&
|
|
1007
|
+
ke.divider,
|
|
1008
|
+
ke[`divider--${e}`],
|
|
1009
|
+
ke[`divider--${t}`],
|
|
1010
|
+
ke[`divider--${n}`],
|
|
1011
|
+
ke[`divider--${o}`],
|
|
1012
|
+
c && ke["divider--with-text"],
|
|
1013
|
+
c && ke[`divider--text-${i}`],
|
|
1014
1014
|
r
|
|
1015
1015
|
].filter(Boolean).join(" ");
|
|
1016
1016
|
return c && e === "horizontal" ? /* @__PURE__ */ f(
|
|
@@ -1020,7 +1020,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1020
1020
|
role: "separator",
|
|
1021
1021
|
"aria-orientation": e,
|
|
1022
1022
|
...s,
|
|
1023
|
-
children: /* @__PURE__ */ f("span", { className:
|
|
1023
|
+
children: /* @__PURE__ */ f("span", { className: ke.divider__text, children: a })
|
|
1024
1024
|
}
|
|
1025
1025
|
) : /* @__PURE__ */ f(
|
|
1026
1026
|
"div",
|
|
@@ -1031,7 +1031,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1031
1031
|
...s
|
|
1032
1032
|
}
|
|
1033
1033
|
);
|
|
1034
|
-
},
|
|
1034
|
+
}, b2 = ({
|
|
1035
1035
|
title: e,
|
|
1036
1036
|
count: t,
|
|
1037
1037
|
icon: n,
|
|
@@ -1042,13 +1042,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1042
1042
|
className: s,
|
|
1043
1043
|
toggleText: c = {}
|
|
1044
1044
|
}) => {
|
|
1045
|
-
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0),
|
|
1046
|
-
i || (l ? (_(
|
|
1045
|
+
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0), m = ce(null), w = () => {
|
|
1046
|
+
i || (l ? (_(m.current?.scrollHeight || 0), requestAnimationFrame(() => _(0))) : _(m.current?.scrollHeight || 0), u(!l));
|
|
1047
1047
|
};
|
|
1048
1048
|
ae(() => {
|
|
1049
|
-
if (l && d === (
|
|
1050
|
-
const
|
|
1051
|
-
return () => clearTimeout(
|
|
1049
|
+
if (l && d === (m.current?.scrollHeight || 0)) {
|
|
1050
|
+
const g = setTimeout(() => _("auto"), 250);
|
|
1051
|
+
return () => clearTimeout(g);
|
|
1052
1052
|
}
|
|
1053
1053
|
}, [l, d]);
|
|
1054
1054
|
const p = l ? c.open || "Свернуть" : c.closed || "Развернуть";
|
|
@@ -1072,19 +1072,19 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1072
1072
|
typeof t == "number" && /* @__PURE__ */ f(st, { as: "span", variant: "text-long-s-medium", className: J.count, children: t })
|
|
1073
1073
|
] }),
|
|
1074
1074
|
/* @__PURE__ */ A("div", { className: J.headerRight, children: [
|
|
1075
|
-
r.map((
|
|
1075
|
+
r.map((g, v) => /* @__PURE__ */ f(
|
|
1076
1076
|
Cn,
|
|
1077
1077
|
{
|
|
1078
1078
|
variant: "link",
|
|
1079
1079
|
size: "s",
|
|
1080
|
-
disabled:
|
|
1081
|
-
icon:
|
|
1082
|
-
iconPosition:
|
|
1083
|
-
tooltip:
|
|
1080
|
+
disabled: g.disabled,
|
|
1081
|
+
icon: g.icon || /* @__PURE__ */ f(Ho, {}),
|
|
1082
|
+
iconPosition: g.label ? "left" : "only",
|
|
1083
|
+
tooltip: g.label ? void 0 : g.label,
|
|
1084
1084
|
onClick: (C) => {
|
|
1085
|
-
C.stopPropagation(),
|
|
1085
|
+
C.stopPropagation(), g.onClick?.();
|
|
1086
1086
|
},
|
|
1087
|
-
children:
|
|
1087
|
+
children: g.label
|
|
1088
1088
|
},
|
|
1089
1089
|
v
|
|
1090
1090
|
)),
|
|
@@ -1099,14 +1099,14 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1099
1099
|
] }),
|
|
1100
1100
|
iconPosition: "right",
|
|
1101
1101
|
tooltip: p,
|
|
1102
|
-
onClick: (
|
|
1103
|
-
|
|
1102
|
+
onClick: (g) => {
|
|
1103
|
+
g.stopPropagation(), w();
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
)
|
|
1107
1107
|
] })
|
|
1108
1108
|
] }),
|
|
1109
|
-
/* @__PURE__ */ A("div", { ref:
|
|
1109
|
+
/* @__PURE__ */ A("div", { ref: m, className: J.content, style: { height: d }, children: [
|
|
1110
1110
|
/* @__PURE__ */ f("div", { className: J.dividerContainer, children: /* @__PURE__ */ f(qs, { size: "s", className: J.divider }) }),
|
|
1111
1111
|
/* @__PURE__ */ f("div", { className: J.inner, children: o })
|
|
1112
1112
|
] })
|
|
@@ -1119,7 +1119,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1119
1119
|
title: Gs,
|
|
1120
1120
|
subtitle: Ks,
|
|
1121
1121
|
content: Qs
|
|
1122
|
-
},
|
|
1122
|
+
}, y2 = ({
|
|
1123
1123
|
title: e,
|
|
1124
1124
|
subtitle: t,
|
|
1125
1125
|
children: n,
|
|
@@ -1186,13 +1186,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1186
1186
|
className: i = "",
|
|
1187
1187
|
onError: s
|
|
1188
1188
|
}) => {
|
|
1189
|
-
const c = (
|
|
1190
|
-
const w =
|
|
1189
|
+
const c = (m) => {
|
|
1190
|
+
const w = m.trim().split(" ");
|
|
1191
1191
|
return w.length === 1 ? w[0].charAt(0).toUpperCase() : `${w[0].charAt(0)}${w[w.length - 1].charAt(0)}`.toUpperCase();
|
|
1192
1192
|
}, l = () => {
|
|
1193
1193
|
if (a) return a;
|
|
1194
1194
|
if (t) {
|
|
1195
|
-
const
|
|
1195
|
+
const m = [
|
|
1196
1196
|
"var(--color-blue-gray-600)",
|
|
1197
1197
|
"var(--color-indigo-600)",
|
|
1198
1198
|
"var(--color-success-600)",
|
|
@@ -1209,8 +1209,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1209
1209
|
"var(--color-yellow-600)",
|
|
1210
1210
|
"var(--color-rose-600)",
|
|
1211
1211
|
"var(--color-pink-600)"
|
|
1212
|
-
], w = t.split("").reduce((p,
|
|
1213
|
-
return
|
|
1212
|
+
], w = t.split("").reduce((p, g) => p + g.charCodeAt(0), 0);
|
|
1213
|
+
return m[w % m.length];
|
|
1214
1214
|
}
|
|
1215
1215
|
return "var(--color-blue-gray-300)";
|
|
1216
1216
|
}, u = {
|
|
@@ -1235,8 +1235,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1235
1235
|
}
|
|
1236
1236
|
);
|
|
1237
1237
|
if (t) {
|
|
1238
|
-
const
|
|
1239
|
-
return /* @__PURE__ */ f("div", { className: Ae.avatar__initials, style: { backgroundColor: l() }, children:
|
|
1238
|
+
const m = c(t);
|
|
1239
|
+
return /* @__PURE__ */ f("div", { className: Ae.avatar__initials, style: { backgroundColor: l() }, children: m });
|
|
1240
1240
|
}
|
|
1241
1241
|
return /* @__PURE__ */ f("div", { className: Ae.avatar__placeholder, children: /* @__PURE__ */ A(
|
|
1242
1242
|
"svg",
|
|
@@ -1263,7 +1263,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1263
1263
|
"avatarGroup--overlap": "_avatarGroup--overlap_18gsw_784",
|
|
1264
1264
|
avatarGroup__item: ui,
|
|
1265
1265
|
avatarGroup__more: di
|
|
1266
|
-
},
|
|
1266
|
+
}, x2 = ({
|
|
1267
1267
|
items: e,
|
|
1268
1268
|
max: t = 5,
|
|
1269
1269
|
size: n = "m",
|
|
@@ -1288,7 +1288,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1288
1288
|
]
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
|
-
},
|
|
1291
|
+
}, S2 = ({
|
|
1292
1292
|
size: e = 80,
|
|
1293
1293
|
borderColor: t = "#D6DDFF",
|
|
1294
1294
|
borderWidth: n = 2,
|
|
@@ -1322,7 +1322,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1322
1322
|
}
|
|
1323
1323
|
)
|
|
1324
1324
|
}
|
|
1325
|
-
), fi = "_focus_3zn4h_550", _i = "_swap_3zn4h_632", pi = "_swap__content_3zn4h_688", hi = "_badge_3zn4h_780",
|
|
1325
|
+
), fi = "_focus_3zn4h_550", _i = "_swap_3zn4h_632", pi = "_swap__content_3zn4h_688", hi = "_badge_3zn4h_780", mi = "_badge__part_3zn4h_1042", Et = {
|
|
1326
1326
|
focus: fi,
|
|
1327
1327
|
"focus--default": "_focus--default_3zn4h_567",
|
|
1328
1328
|
"focus--danger": "_focus--danger_3zn4h_571",
|
|
@@ -1370,7 +1370,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1370
1370
|
"badge--rose": "_badge--rose_3zn4h_1006",
|
|
1371
1371
|
"badge--pink": "_badge--pink_3zn4h_1020",
|
|
1372
1372
|
"badge--split": "_badge--split_3zn4h_1042",
|
|
1373
|
-
badge__part:
|
|
1373
|
+
badge__part: mi,
|
|
1374
1374
|
"badge__part--gray": "_badge__part--gray_3zn4h_1051",
|
|
1375
1375
|
"badge__part--accent": "_badge__part--accent_3zn4h_1055",
|
|
1376
1376
|
"badge__part--green": "_badge__part--green_3zn4h_1059",
|
|
@@ -1387,7 +1387,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1387
1387
|
"badge__part--yellow": "_badge__part--yellow_3zn4h_1103",
|
|
1388
1388
|
"badge__part--rose": "_badge__part--rose_3zn4h_1107",
|
|
1389
1389
|
"badge__part--pink": "_badge__part--pink_3zn4h_1111"
|
|
1390
|
-
},
|
|
1390
|
+
}, E2 = ({
|
|
1391
1391
|
children: e,
|
|
1392
1392
|
color: t = "gray",
|
|
1393
1393
|
variant: n = "primary",
|
|
@@ -1395,15 +1395,15 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1395
1395
|
className: r = ""
|
|
1396
1396
|
}) => {
|
|
1397
1397
|
const a = [
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1398
|
+
Et.badge,
|
|
1399
|
+
Et[`badge--${t}`],
|
|
1400
|
+
Et[`badge--${n}`],
|
|
1401
|
+
Et[`badge--${o}`],
|
|
1402
1402
|
r
|
|
1403
1403
|
].filter(Boolean).join(" ");
|
|
1404
1404
|
return /* @__PURE__ */ f("span", { className: a, children: e });
|
|
1405
|
-
},
|
|
1406
|
-
focus:
|
|
1405
|
+
}, gi = "_focus_55oxc_550", wi = "_swap_55oxc_632", vi = "_swap__content_55oxc_688", Ci = "_dot_55oxc_780", Lt = {
|
|
1406
|
+
focus: gi,
|
|
1407
1407
|
"focus--default": "_focus--default_55oxc_567",
|
|
1408
1408
|
"focus--danger": "_focus--danger_55oxc_571",
|
|
1409
1409
|
"focus--visible": "_focus--visible_55oxc_577",
|
|
@@ -1442,7 +1442,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1442
1442
|
"color-orange": "_color-orange_55oxc_850",
|
|
1443
1443
|
"color-green": "_color-green_55oxc_863",
|
|
1444
1444
|
"color-yellow": "_color-yellow_55oxc_876"
|
|
1445
|
-
},
|
|
1445
|
+
}, L2 = ({
|
|
1446
1446
|
color: e = "gray",
|
|
1447
1447
|
size: t = "m",
|
|
1448
1448
|
variant: n = "filled",
|
|
@@ -1451,14 +1451,14 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1451
1451
|
"span",
|
|
1452
1452
|
{
|
|
1453
1453
|
className: I(
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1454
|
+
Lt.dot,
|
|
1455
|
+
Lt[`color-${e}`],
|
|
1456
|
+
Lt[`size-${t}`],
|
|
1457
|
+
Lt[`variant-${n}`],
|
|
1458
1458
|
o
|
|
1459
1459
|
)
|
|
1460
1460
|
}
|
|
1461
|
-
), bi = "_focus_1hrjy_550", yi = "_swap_1hrjy_632", xi = "_swap__content_1hrjy_688", Si = "_counter_1hrjy_780",
|
|
1461
|
+
), bi = "_focus_1hrjy_550", yi = "_swap_1hrjy_632", xi = "_swap__content_1hrjy_688", Si = "_counter_1hrjy_780", Pt = {
|
|
1462
1462
|
focus: bi,
|
|
1463
1463
|
"focus--default": "_focus--default_1hrjy_567",
|
|
1464
1464
|
"focus--danger": "_focus--danger_1hrjy_571",
|
|
@@ -1495,7 +1495,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1495
1495
|
"color-grayLight": "_color-grayLight_1hrjy_863",
|
|
1496
1496
|
"color-orange": "_color-orange_1hrjy_877",
|
|
1497
1497
|
"color-green": "_color-green_1hrjy_891"
|
|
1498
|
-
},
|
|
1498
|
+
}, P2 = ({
|
|
1499
1499
|
value: e,
|
|
1500
1500
|
color: t = "gray",
|
|
1501
1501
|
size: n = "m",
|
|
@@ -1505,16 +1505,16 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1505
1505
|
"span",
|
|
1506
1506
|
{
|
|
1507
1507
|
className: I(
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1508
|
+
Pt.counter,
|
|
1509
|
+
Pt[`color-${t}`],
|
|
1510
|
+
Pt[`size-${n}`],
|
|
1511
|
+
Pt[`variant-${o}`],
|
|
1512
1512
|
r
|
|
1513
1513
|
),
|
|
1514
1514
|
children: e
|
|
1515
1515
|
}
|
|
1516
|
-
),
|
|
1517
|
-
focus:
|
|
1516
|
+
), Ei = "_focus_y95yk_550", Li = "_swap_y95yk_632", Pi = "_swap__content_y95yk_688", $i = "_wrapper_y95yk_780", Ri = "_disabled_y95yk_789", Ni = "_input_y95yk_794", ki = "_icon_y95yk_800", Ai = "_box_y95yk_806", Ti = "_checked_y95yk_839", zi = "_indeterminate_y95yk_840", Mi = "_small_y95yk_846", Ii = "_medium_y95yk_851", Oi = "_primary_y95yk_857", Di = "_danger_y95yk_869", Vi = "_error_y95yk_894", Hi = "_label_y95yk_922", _e = {
|
|
1517
|
+
focus: Ei,
|
|
1518
1518
|
"focus--default": "_focus--default_y95yk_567",
|
|
1519
1519
|
"focus--danger": "_focus--danger_y95yk_571",
|
|
1520
1520
|
"focus--visible": "_focus--visible_y95yk_577",
|
|
@@ -1524,7 +1524,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1524
1524
|
"focus--input": "_focus--input_y95yk_607",
|
|
1525
1525
|
"focus--button": "_focus--button_y95yk_612",
|
|
1526
1526
|
"focus--card": "_focus--card_y95yk_617",
|
|
1527
|
-
swap:
|
|
1527
|
+
swap: Li,
|
|
1528
1528
|
"swap--text": "_swap--text_y95yk_641",
|
|
1529
1529
|
"swap--icon": "_swap--icon_y95yk_652",
|
|
1530
1530
|
"swap--icon-xs": "_swap--icon-xs_y95yk_662",
|
|
@@ -1532,16 +1532,16 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1532
1532
|
"swap--icon-m": "_swap--icon-m_y95yk_672",
|
|
1533
1533
|
"swap--icon-l": "_swap--icon-l_y95yk_677",
|
|
1534
1534
|
"swap--icon-xl": "_swap--icon-xl_y95yk_682",
|
|
1535
|
-
swap__content:
|
|
1535
|
+
swap__content: Pi,
|
|
1536
1536
|
"swap--group-horizontal": "_swap--group-horizontal_y95yk_697",
|
|
1537
1537
|
"swap--group-vertical": "_swap--group-vertical_y95yk_704",
|
|
1538
1538
|
"swap--with-background": "_swap--with-background_y95yk_712",
|
|
1539
1539
|
"swap--with-border": "_swap--with-border_y95yk_718",
|
|
1540
1540
|
"swap--interactive": "_swap--interactive_y95yk_726",
|
|
1541
|
-
wrapper:
|
|
1542
|
-
disabled:
|
|
1543
|
-
input:
|
|
1544
|
-
icon:
|
|
1541
|
+
wrapper: $i,
|
|
1542
|
+
disabled: Ri,
|
|
1543
|
+
input: Ni,
|
|
1544
|
+
icon: ki,
|
|
1545
1545
|
box: Ai,
|
|
1546
1546
|
checked: Ti,
|
|
1547
1547
|
indeterminate: zi,
|
|
@@ -1551,7 +1551,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1551
1551
|
danger: Di,
|
|
1552
1552
|
error: Vi,
|
|
1553
1553
|
label: Hi
|
|
1554
|
-
}, jo =
|
|
1554
|
+
}, jo = P(
|
|
1555
1555
|
({
|
|
1556
1556
|
label: e,
|
|
1557
1557
|
size: t = "medium",
|
|
@@ -1640,7 +1640,7 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
|
|
|
1640
1640
|
clickable: Ui,
|
|
1641
1641
|
disabled: Zi,
|
|
1642
1642
|
active: qi
|
|
1643
|
-
}, $
|
|
1643
|
+
}, $2 = ({
|
|
1644
1644
|
children: e,
|
|
1645
1645
|
variant: t = "default",
|
|
1646
1646
|
size: n = "m",
|
|
@@ -1662,9 +1662,9 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
|
|
|
1662
1662
|
);
|
|
1663
1663
|
return /* @__PURE__ */ f("span", { className: c, onClick: a ? void 0 : s, children: e });
|
|
1664
1664
|
};
|
|
1665
|
-
var Xi = (e) => e.type === "checkbox",
|
|
1665
|
+
var Xi = (e) => e.type === "checkbox", gt = (e) => e instanceof Date, Hn = (e) => e == null;
|
|
1666
1666
|
const Wo = (e) => typeof e == "object";
|
|
1667
|
-
var Ue = (e) => !Hn(e) && !Array.isArray(e) && Wo(e) && !
|
|
1667
|
+
var Ue = (e) => !Hn(e) && !Array.isArray(e) && Wo(e) && !gt(e), Yi = (e) => Ue(e) && e.target ? Xi(e.target) ? e.target.checked : e.target.value : e, Gi = (e) => e.substring(0, e.search(/\.\d+(\.|$)/)) || e, Ki = (e, t) => e.has(Gi(t)), Qi = (e) => {
|
|
1668
1668
|
const t = e.constructor && e.constructor.prototype;
|
|
1669
1669
|
return Ue(t) && t.hasOwnProperty("isPrototypeOf");
|
|
1670
1670
|
}, Ji = typeof window < "u" && typeof window.HTMLElement < "u" && typeof document < "u";
|
|
@@ -1754,7 +1754,7 @@ var oc = (e) => typeof e == "string", rc = (e, t, n, o, r) => oc(e) ? ie(n, e, r
|
|
|
1754
1754
|
function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
1755
1755
|
if (ro(e) || ro(t))
|
|
1756
1756
|
return e === t;
|
|
1757
|
-
if (
|
|
1757
|
+
if (gt(e) && gt(t))
|
|
1758
1758
|
return e.getTime() === t.getTime();
|
|
1759
1759
|
const o = Object.keys(e), r = Object.keys(t);
|
|
1760
1760
|
if (o.length !== r.length)
|
|
@@ -1768,7 +1768,7 @@ function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
1768
1768
|
return !1;
|
|
1769
1769
|
if (a !== "ref") {
|
|
1770
1770
|
const s = t[a];
|
|
1771
|
-
if (
|
|
1771
|
+
if (gt(i) && gt(s) || Ue(i) && Ue(s) || Array.isArray(i) && Array.isArray(s) ? !Yo(i, s, n) : i !== s)
|
|
1772
1772
|
return !1;
|
|
1773
1773
|
}
|
|
1774
1774
|
}
|
|
@@ -1777,7 +1777,7 @@ function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
1777
1777
|
function ac(e) {
|
|
1778
1778
|
const t = Bn(), { control: n = t.control, name: o, defaultValue: r, disabled: a, exact: i, compute: s } = e || {}, c = M.useRef(r), l = M.useRef(s), u = M.useRef(void 0);
|
|
1779
1779
|
l.current = s;
|
|
1780
|
-
const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [_,
|
|
1780
|
+
const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [_, m] = M.useState(l.current ? l.current(d) : d);
|
|
1781
1781
|
return Xo(() => n._subscribe({
|
|
1782
1782
|
name: o,
|
|
1783
1783
|
formState: {
|
|
@@ -1788,10 +1788,10 @@ function ac(e) {
|
|
|
1788
1788
|
if (!a) {
|
|
1789
1789
|
const p = rc(o, n._names, w.values || n._formValues, !1, c.current);
|
|
1790
1790
|
if (l.current) {
|
|
1791
|
-
const
|
|
1792
|
-
Yo(
|
|
1791
|
+
const g = l.current(p);
|
|
1792
|
+
Yo(g, u.current) || (m(g), u.current = g);
|
|
1793
1793
|
} else
|
|
1794
|
-
|
|
1794
|
+
m(p);
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
1797
|
}), [n, a, o, i]), M.useEffect(() => n._removeUnmounted()), _;
|
|
@@ -1806,7 +1806,7 @@ function jn(e) {
|
|
|
1806
1806
|
control: r,
|
|
1807
1807
|
name: n,
|
|
1808
1808
|
exact: !0
|
|
1809
|
-
}), d = M.useRef(e), _ = M.useRef(void 0),
|
|
1809
|
+
}), d = M.useRef(e), _ = M.useRef(void 0), m = M.useRef(r.register(n, {
|
|
1810
1810
|
...e.rules,
|
|
1811
1811
|
value: l,
|
|
1812
1812
|
...sn(e.disabled) ? { disabled: e.disabled } : {}
|
|
@@ -1833,13 +1833,13 @@ function jn(e) {
|
|
|
1833
1833
|
enumerable: !0,
|
|
1834
1834
|
get: () => ie(u.errors, n)
|
|
1835
1835
|
}
|
|
1836
|
-
}), [u, n]), p = M.useCallback((b) =>
|
|
1836
|
+
}), [u, n]), p = M.useCallback((b) => m.current.onChange({
|
|
1837
1837
|
target: {
|
|
1838
1838
|
value: Yi(b),
|
|
1839
1839
|
name: n
|
|
1840
1840
|
},
|
|
1841
1841
|
type: no.CHANGE
|
|
1842
|
-
}), [n]),
|
|
1842
|
+
}), [n]), g = M.useCallback(() => m.current.onBlur({
|
|
1843
1843
|
target: {
|
|
1844
1844
|
value: ie(r._formValues, n),
|
|
1845
1845
|
name: n
|
|
@@ -1858,22 +1858,22 @@ function jn(e) {
|
|
|
1858
1858
|
value: l,
|
|
1859
1859
|
...sn(o) || u.disabled ? { disabled: u.disabled || o } : {},
|
|
1860
1860
|
onChange: p,
|
|
1861
|
-
onBlur:
|
|
1861
|
+
onBlur: g,
|
|
1862
1862
|
ref: v
|
|
1863
|
-
}), [n, o, u.disabled, p,
|
|
1863
|
+
}), [n, o, u.disabled, p, g, v, l]);
|
|
1864
1864
|
return M.useEffect(() => {
|
|
1865
1865
|
const b = r._options.shouldUnregister || a, y = _.current;
|
|
1866
1866
|
y && y !== n && !s && r.unregister(y), r.register(n, {
|
|
1867
1867
|
...d.current.rules,
|
|
1868
1868
|
...sn(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
1869
1869
|
});
|
|
1870
|
-
const x = (
|
|
1871
|
-
const
|
|
1872
|
-
|
|
1870
|
+
const x = (E, S) => {
|
|
1871
|
+
const L = ie(r._fields, E);
|
|
1872
|
+
L && L._f && (L._f.mount = S);
|
|
1873
1873
|
};
|
|
1874
1874
|
if (x(n, !0), b) {
|
|
1875
|
-
const
|
|
1876
|
-
to(r._defaultValues, n,
|
|
1875
|
+
const E = Fo(ie(r._options.defaultValues, n, d.current.defaultValue));
|
|
1876
|
+
to(r._defaultValues, n, E), bn(ie(r._formValues, n)) && to(r._formValues, n, E);
|
|
1877
1877
|
}
|
|
1878
1878
|
return !s && r.register(n), _.current = n, () => {
|
|
1879
1879
|
(s ? b && !r._state.action : b) ? r.unregister(n) : x(n, !1);
|
|
@@ -1889,7 +1889,7 @@ function jn(e) {
|
|
|
1889
1889
|
fieldState: w
|
|
1890
1890
|
}), [C, u, w]);
|
|
1891
1891
|
}
|
|
1892
|
-
const
|
|
1892
|
+
const R2 = ({
|
|
1893
1893
|
name: e,
|
|
1894
1894
|
control: t,
|
|
1895
1895
|
...n
|
|
@@ -1898,31 +1898,31 @@ const Rf = ({
|
|
|
1898
1898
|
field: { value: o, onChange: r, ref: a }
|
|
1899
1899
|
} = jn({ name: e, control: t });
|
|
1900
1900
|
return /* @__PURE__ */ f(jo, { ...n, ref: a, checked: !!o, onChange: (i) => r(i.target.checked) });
|
|
1901
|
-
}, sc = "
|
|
1901
|
+
}, sc = "_focus_1balm_550", ic = "_swap_1balm_632", cc = "_swap__content_1balm_688", lc = "_root_1balm_780", uc = "_fullWidth_1balm_786", dc = "_wrapper_1balm_791", fc = "_single_1balm_808", _c = "_first_1balm_811", pc = "_middle_1balm_814", hc = "_last_1balm_818", mc = "_error_1balm_825", gc = "_outline_1balm_828", wc = "_fill_1balm_842", vc = "_small_1balm_858", Cc = "_input_1balm_861", bc = "_label_1balm_864", yc = "_medium_1balm_869", xc = "_disabled_1balm_913", Sc = "_clearButton_1balm_925", Ec = "_withPrefix_1balm_931", Lc = "_withSuffix_1balm_934", Pc = "_requiredIcon_1balm_978", $c = "_filled_1balm_990", Rc = "_innerHint_1balm_1039", Nc = "_affix_1balm_1087", kc = "_prefix_1balm_1099", Ac = "_suffix_1balm_1104", Tc = "_errorText_1balm_1113", K = {
|
|
1902
1902
|
focus: sc,
|
|
1903
|
-
"focus--default": "_focus--
|
|
1904
|
-
"focus--danger": "_focus--
|
|
1905
|
-
"focus--visible": "_focus--
|
|
1906
|
-
"focus-danger": "_focus-
|
|
1907
|
-
"focus-within--default": "_focus-within--
|
|
1908
|
-
"focus-within--danger": "_focus-within--
|
|
1909
|
-
"focus--input": "_focus--
|
|
1910
|
-
"focus--button": "_focus--
|
|
1911
|
-
"focus--card": "_focus--
|
|
1903
|
+
"focus--default": "_focus--default_1balm_567",
|
|
1904
|
+
"focus--danger": "_focus--danger_1balm_571",
|
|
1905
|
+
"focus--visible": "_focus--visible_1balm_577",
|
|
1906
|
+
"focus-danger": "_focus-danger_1balm_592",
|
|
1907
|
+
"focus-within--default": "_focus-within--default_1balm_598",
|
|
1908
|
+
"focus-within--danger": "_focus-within--danger_1balm_602",
|
|
1909
|
+
"focus--input": "_focus--input_1balm_607",
|
|
1910
|
+
"focus--button": "_focus--button_1balm_612",
|
|
1911
|
+
"focus--card": "_focus--card_1balm_617",
|
|
1912
1912
|
swap: ic,
|
|
1913
|
-
"swap--text": "_swap--
|
|
1914
|
-
"swap--icon": "_swap--
|
|
1915
|
-
"swap--icon-xs": "_swap--icon-
|
|
1916
|
-
"swap--icon-s": "_swap--icon-
|
|
1917
|
-
"swap--icon-m": "_swap--icon-
|
|
1918
|
-
"swap--icon-l": "_swap--icon-
|
|
1919
|
-
"swap--icon-xl": "_swap--icon-
|
|
1913
|
+
"swap--text": "_swap--text_1balm_641",
|
|
1914
|
+
"swap--icon": "_swap--icon_1balm_652",
|
|
1915
|
+
"swap--icon-xs": "_swap--icon-xs_1balm_662",
|
|
1916
|
+
"swap--icon-s": "_swap--icon-s_1balm_667",
|
|
1917
|
+
"swap--icon-m": "_swap--icon-m_1balm_672",
|
|
1918
|
+
"swap--icon-l": "_swap--icon-l_1balm_677",
|
|
1919
|
+
"swap--icon-xl": "_swap--icon-xl_1balm_682",
|
|
1920
1920
|
swap__content: cc,
|
|
1921
|
-
"swap--group-horizontal": "_swap--group-
|
|
1922
|
-
"swap--group-vertical": "_swap--group-
|
|
1923
|
-
"swap--with-background": "_swap--with-
|
|
1924
|
-
"swap--with-border": "_swap--with-
|
|
1925
|
-
"swap--interactive": "_swap--
|
|
1921
|
+
"swap--group-horizontal": "_swap--group-horizontal_1balm_697",
|
|
1922
|
+
"swap--group-vertical": "_swap--group-vertical_1balm_704",
|
|
1923
|
+
"swap--with-background": "_swap--with-background_1balm_712",
|
|
1924
|
+
"swap--with-border": "_swap--with-border_1balm_718",
|
|
1925
|
+
"swap--interactive": "_swap--interactive_1balm_726",
|
|
1926
1926
|
root: lc,
|
|
1927
1927
|
fullWidth: uc,
|
|
1928
1928
|
wrapper: dc,
|
|
@@ -1930,8 +1930,8 @@ const Rf = ({
|
|
|
1930
1930
|
first: _c,
|
|
1931
1931
|
middle: pc,
|
|
1932
1932
|
last: hc,
|
|
1933
|
-
error:
|
|
1934
|
-
outline:
|
|
1933
|
+
error: mc,
|
|
1934
|
+
outline: gc,
|
|
1935
1935
|
fill: wc,
|
|
1936
1936
|
small: vc,
|
|
1937
1937
|
input: Cc,
|
|
@@ -1939,16 +1939,16 @@ const Rf = ({
|
|
|
1939
1939
|
medium: yc,
|
|
1940
1940
|
disabled: xc,
|
|
1941
1941
|
clearButton: Sc,
|
|
1942
|
-
withPrefix:
|
|
1943
|
-
withSuffix:
|
|
1944
|
-
requiredIcon:
|
|
1945
|
-
filled:
|
|
1946
|
-
innerHint:
|
|
1947
|
-
affix:
|
|
1948
|
-
prefix:
|
|
1942
|
+
withPrefix: Ec,
|
|
1943
|
+
withSuffix: Lc,
|
|
1944
|
+
requiredIcon: Pc,
|
|
1945
|
+
filled: $c,
|
|
1946
|
+
innerHint: Rc,
|
|
1947
|
+
affix: Nc,
|
|
1948
|
+
prefix: kc,
|
|
1949
1949
|
suffix: Ac,
|
|
1950
1950
|
errorText: Tc
|
|
1951
|
-
}, Go =
|
|
1951
|
+
}, Go = P(
|
|
1952
1952
|
({
|
|
1953
1953
|
className: e,
|
|
1954
1954
|
disabled: t,
|
|
@@ -1963,21 +1963,21 @@ const Rf = ({
|
|
|
1963
1963
|
variant: u = "outline",
|
|
1964
1964
|
size: d = "small",
|
|
1965
1965
|
variantGroupItems: _ = "single",
|
|
1966
|
-
prefix:
|
|
1966
|
+
prefix: m,
|
|
1967
1967
|
suffix: w,
|
|
1968
1968
|
value: p,
|
|
1969
|
-
defaultValue:
|
|
1969
|
+
defaultValue: g,
|
|
1970
1970
|
onChange: v,
|
|
1971
1971
|
type: C = "text",
|
|
1972
1972
|
fullWidth: b = !0,
|
|
1973
1973
|
placeholder: y,
|
|
1974
1974
|
...x
|
|
1975
|
-
},
|
|
1976
|
-
const S = p !== void 0, [
|
|
1977
|
-
S ||
|
|
1975
|
+
}, E) => {
|
|
1976
|
+
const S = p !== void 0, [L, $] = W(g?.toString() ?? ""), N = S ? p : L, T = !!N && N.toString().length > 0, B = (D) => {
|
|
1977
|
+
S || $(D.target.value), v?.(D);
|
|
1978
1978
|
}, H = () => {
|
|
1979
1979
|
if (t) return;
|
|
1980
|
-
S ||
|
|
1980
|
+
S || $(""), v?.({
|
|
1981
1981
|
target: { value: "" },
|
|
1982
1982
|
currentTarget: { value: "" }
|
|
1983
1983
|
});
|
|
@@ -1995,19 +1995,19 @@ const Rf = ({
|
|
|
1995
1995
|
[K.disabled]: t,
|
|
1996
1996
|
[K.error]: O,
|
|
1997
1997
|
[K.filled]: T,
|
|
1998
|
-
[K.withPrefix]: !!
|
|
1998
|
+
[K.withPrefix]: !!m,
|
|
1999
1999
|
[K.withSuffix]: !!w
|
|
2000
2000
|
}
|
|
2001
2001
|
),
|
|
2002
2002
|
children: [
|
|
2003
|
-
|
|
2003
|
+
m && /* @__PURE__ */ f("div", { className: I(K.affix, K.prefix), children: m }),
|
|
2004
2004
|
/* @__PURE__ */ f(
|
|
2005
2005
|
"input",
|
|
2006
2006
|
{
|
|
2007
2007
|
id: c,
|
|
2008
|
-
ref:
|
|
2008
|
+
ref: E,
|
|
2009
2009
|
disabled: t,
|
|
2010
|
-
value:
|
|
2010
|
+
value: N,
|
|
2011
2011
|
onChange: B,
|
|
2012
2012
|
className: K.input,
|
|
2013
2013
|
type: C,
|
|
@@ -2039,7 +2039,7 @@ const Rf = ({
|
|
|
2039
2039
|
}
|
|
2040
2040
|
);
|
|
2041
2041
|
Go.displayName = "Input";
|
|
2042
|
-
const
|
|
2042
|
+
const N2 = ({
|
|
2043
2043
|
name: e,
|
|
2044
2044
|
control: t,
|
|
2045
2045
|
error: n,
|
|
@@ -2094,7 +2094,7 @@ const Nf = ({
|
|
|
2094
2094
|
inputWrapper: Bc,
|
|
2095
2095
|
horizontal: jc,
|
|
2096
2096
|
groupError: Wc
|
|
2097
|
-
}, Ko =
|
|
2097
|
+
}, Ko = P(
|
|
2098
2098
|
({
|
|
2099
2099
|
children: e,
|
|
2100
2100
|
direction: t = "vertical",
|
|
@@ -2116,15 +2116,15 @@ const Nf = ({
|
|
|
2116
2116
|
),
|
|
2117
2117
|
...i,
|
|
2118
2118
|
children: [
|
|
2119
|
-
/* @__PURE__ */ f("div", { className: I(Je.container, Je[t]), children: c.map((_,
|
|
2120
|
-
const w =
|
|
2119
|
+
/* @__PURE__ */ f("div", { className: I(Je.container, Je[t]), children: c.map((_, m) => {
|
|
2120
|
+
const w = m === 0 ? "first" : m === l - 1 ? "last" : "middle", p = M.cloneElement(_, {
|
|
2121
2121
|
variantGroupItems: w,
|
|
2122
|
-
key:
|
|
2122
|
+
key: m,
|
|
2123
2123
|
// Скрываем текст ошибки под инпутом, так как он показывается под группой
|
|
2124
2124
|
showErrorMessage: !1,
|
|
2125
2125
|
fullWidth: t === "horizontal"
|
|
2126
2126
|
});
|
|
2127
|
-
return /* @__PURE__ */ f("div", { className: Je.inputWrapper, children: p },
|
|
2127
|
+
return /* @__PURE__ */ f("div", { className: Je.inputWrapper, children: p }, m);
|
|
2128
2128
|
}) }),
|
|
2129
2129
|
a && d && /* @__PURE__ */ f(
|
|
2130
2130
|
st,
|
|
@@ -2141,7 +2141,7 @@ const Nf = ({
|
|
|
2141
2141
|
}
|
|
2142
2142
|
);
|
|
2143
2143
|
Ko.displayName = "InputGroupStack";
|
|
2144
|
-
const
|
|
2144
|
+
const k2 = ({
|
|
2145
2145
|
name: e,
|
|
2146
2146
|
control: t,
|
|
2147
2147
|
groupError: n,
|
|
@@ -2222,7 +2222,7 @@ const Af = ({
|
|
|
2222
2222
|
"align-center": "_align-center_gathj_919",
|
|
2223
2223
|
"align-end": "_align-end_gathj_922",
|
|
2224
2224
|
"align-stretch": "_align-stretch_gathj_925"
|
|
2225
|
-
},
|
|
2225
|
+
}, A2 = ({
|
|
2226
2226
|
children: e,
|
|
2227
2227
|
variant: t = "white",
|
|
2228
2228
|
layout: n = "flex",
|
|
@@ -2297,7 +2297,7 @@ const Af = ({
|
|
|
2297
2297
|
hover: sl,
|
|
2298
2298
|
"variant-filled": "_variant-filled_zdqaw_874",
|
|
2299
2299
|
"variant-outlined": "_variant-outlined_zdqaw_883"
|
|
2300
|
-
},
|
|
2300
|
+
}, T2 = ({
|
|
2301
2301
|
options: e,
|
|
2302
2302
|
value: t,
|
|
2303
2303
|
onChange: n,
|
|
@@ -2462,12 +2462,12 @@ function Wn(e, t = []) {
|
|
|
2462
2462
|
const s = h.createContext(i), c = n.length;
|
|
2463
2463
|
n = [...n, i];
|
|
2464
2464
|
const l = (d) => {
|
|
2465
|
-
const { scope: _, children:
|
|
2466
|
-
return /* @__PURE__ */ f(p.Provider, { value:
|
|
2465
|
+
const { scope: _, children: m, ...w } = d, p = _?.[e]?.[c] || s, g = h.useMemo(() => w, Object.values(w));
|
|
2466
|
+
return /* @__PURE__ */ f(p.Provider, { value: g, children: m });
|
|
2467
2467
|
};
|
|
2468
2468
|
l.displayName = a + "Provider";
|
|
2469
2469
|
function u(d, _) {
|
|
2470
|
-
const
|
|
2470
|
+
const m = _?.[e]?.[c] || s, w = h.useContext(m);
|
|
2471
2471
|
if (w) return w;
|
|
2472
2472
|
if (i !== void 0) return i;
|
|
2473
2473
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
@@ -2484,9 +2484,9 @@ function Wn(e, t = []) {
|
|
|
2484
2484
|
);
|
|
2485
2485
|
};
|
|
2486
2486
|
};
|
|
2487
|
-
return r.scopeName = e, [o,
|
|
2487
|
+
return r.scopeName = e, [o, ml(r, ...t)];
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function ml(...e) {
|
|
2490
2490
|
const t = e[0];
|
|
2491
2491
|
if (e.length === 1) return t;
|
|
2492
2492
|
const n = () => {
|
|
@@ -2504,42 +2504,42 @@ function gl(...e) {
|
|
|
2504
2504
|
};
|
|
2505
2505
|
return n.scopeName = t.scopeName, n;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function gl(e) {
|
|
2508
2508
|
const t = e + "CollectionProvider", [n, o] = Wn(t), [r, a] = n(
|
|
2509
2509
|
t,
|
|
2510
2510
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
2511
2511
|
), i = (p) => {
|
|
2512
|
-
const { scope:
|
|
2513
|
-
return /* @__PURE__ */ f(r, { scope:
|
|
2512
|
+
const { scope: g, children: v } = p, C = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
|
|
2513
|
+
return /* @__PURE__ */ f(r, { scope: g, itemMap: b, collectionRef: C, children: v });
|
|
2514
2514
|
};
|
|
2515
2515
|
i.displayName = t;
|
|
2516
2516
|
const s = e + "CollectionSlot", c = /* @__PURE__ */ Dt(s), l = M.forwardRef(
|
|
2517
|
-
(p,
|
|
2518
|
-
const { scope: v, children: C } = p, b = a(s, v), y = ne(
|
|
2517
|
+
(p, g) => {
|
|
2518
|
+
const { scope: v, children: C } = p, b = a(s, v), y = ne(g, b.collectionRef);
|
|
2519
2519
|
return /* @__PURE__ */ f(c, { ref: y, children: C });
|
|
2520
2520
|
}
|
|
2521
2521
|
);
|
|
2522
2522
|
l.displayName = s;
|
|
2523
|
-
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Dt(u),
|
|
2524
|
-
(p,
|
|
2525
|
-
const { scope: v, children: C, ...b } = p, y = M.useRef(null), x = ne(
|
|
2526
|
-
return M.useEffect(() => (
|
|
2523
|
+
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Dt(u), m = M.forwardRef(
|
|
2524
|
+
(p, g) => {
|
|
2525
|
+
const { scope: v, children: C, ...b } = p, y = M.useRef(null), x = ne(g, y), E = a(u, v);
|
|
2526
|
+
return M.useEffect(() => (E.itemMap.set(y, { ref: y, ...b }), () => void E.itemMap.delete(y))), /* @__PURE__ */ f(_, { [d]: "", ref: x, children: C });
|
|
2527
2527
|
}
|
|
2528
2528
|
);
|
|
2529
|
-
|
|
2529
|
+
m.displayName = u;
|
|
2530
2530
|
function w(p) {
|
|
2531
|
-
const
|
|
2531
|
+
const g = a(e + "CollectionConsumer", p);
|
|
2532
2532
|
return M.useCallback(() => {
|
|
2533
|
-
const C =
|
|
2533
|
+
const C = g.collectionRef.current;
|
|
2534
2534
|
if (!C) return [];
|
|
2535
2535
|
const b = Array.from(C.querySelectorAll(`[${d}]`));
|
|
2536
|
-
return Array.from(
|
|
2537
|
-
(
|
|
2536
|
+
return Array.from(g.itemMap.values()).sort(
|
|
2537
|
+
(E, S) => b.indexOf(E.ref.current) - b.indexOf(S.ref.current)
|
|
2538
2538
|
);
|
|
2539
|
-
}, [
|
|
2539
|
+
}, [g.collectionRef, g.itemMap]);
|
|
2540
2540
|
}
|
|
2541
2541
|
return [
|
|
2542
|
-
{ Provider: i, Slot: l, ItemSlot:
|
|
2542
|
+
{ Provider: i, Slot: l, ItemSlot: m },
|
|
2543
2543
|
w,
|
|
2544
2544
|
o
|
|
2545
2545
|
];
|
|
@@ -2584,12 +2584,12 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2584
2584
|
onInteractOutside: i,
|
|
2585
2585
|
onDismiss: s,
|
|
2586
2586
|
...c
|
|
2587
|
-
} = e, l = h.useContext(er), [u, d] = h.useState(null), _ = u?.ownerDocument ?? globalThis?.document, [,
|
|
2588
|
-
const
|
|
2589
|
-
!y ||
|
|
2590
|
-
}, _),
|
|
2591
|
-
const
|
|
2592
|
-
[...l.branches].some((
|
|
2587
|
+
} = e, l = h.useContext(er), [u, d] = h.useState(null), _ = u?.ownerDocument ?? globalThis?.document, [, m] = h.useState({}), w = ne(t, (S) => d(S)), p = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(g), C = u ? p.indexOf(u) : -1, b = l.layersWithOutsidePointerEventsDisabled.size > 0, y = C >= v, x = Ll((S) => {
|
|
2588
|
+
const L = S.target, $ = [...l.branches].some((N) => N.contains(L));
|
|
2589
|
+
!y || $ || (r?.(S), i?.(S), S.defaultPrevented || s?.());
|
|
2590
|
+
}, _), E = Pl((S) => {
|
|
2591
|
+
const L = S.target;
|
|
2592
|
+
[...l.branches].some((N) => N.contains(L)) || (a?.(S), i?.(S), S.defaultPrevented || s?.());
|
|
2593
2593
|
}, _);
|
|
2594
2594
|
return Cl((S) => {
|
|
2595
2595
|
C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented && s && (S.preventDefault(), s()));
|
|
@@ -2601,7 +2601,7 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2601
2601
|
}, [u, _, n, l]), h.useEffect(() => () => {
|
|
2602
2602
|
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), co());
|
|
2603
2603
|
}, [u, l]), h.useEffect(() => {
|
|
2604
|
-
const S = () =>
|
|
2604
|
+
const S = () => m({});
|
|
2605
2605
|
return document.addEventListener(yn, S), () => document.removeEventListener(yn, S);
|
|
2606
2606
|
}, []), /* @__PURE__ */ f(
|
|
2607
2607
|
G.div,
|
|
@@ -2612,8 +2612,8 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2612
2612
|
pointerEvents: b ? y ? "auto" : "none" : void 0,
|
|
2613
2613
|
...e.style
|
|
2614
2614
|
},
|
|
2615
|
-
onFocusCapture: cn(e.onFocusCapture,
|
|
2616
|
-
onBlurCapture: cn(e.onBlurCapture,
|
|
2615
|
+
onFocusCapture: cn(e.onFocusCapture, E.onFocusCapture),
|
|
2616
|
+
onBlurCapture: cn(e.onBlurCapture, E.onBlurCapture),
|
|
2617
2617
|
onPointerDownCapture: cn(
|
|
2618
2618
|
e.onPointerDownCapture,
|
|
2619
2619
|
x.onPointerDownCapture
|
|
@@ -2623,7 +2623,7 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2623
2623
|
}
|
|
2624
2624
|
);
|
|
2625
2625
|
tr.displayName = bl;
|
|
2626
|
-
var Sl = "DismissableLayerBranch",
|
|
2626
|
+
var Sl = "DismissableLayerBranch", El = h.forwardRef((e, t) => {
|
|
2627
2627
|
const n = h.useContext(er), o = h.useRef(null), r = ne(t, o);
|
|
2628
2628
|
return h.useEffect(() => {
|
|
2629
2629
|
const a = o.current;
|
|
@@ -2633,8 +2633,8 @@ var Sl = "DismissableLayerBranch", kl = h.forwardRef((e, t) => {
|
|
|
2633
2633
|
};
|
|
2634
2634
|
}, [n.branches]), /* @__PURE__ */ f(G.div, { ...e, ref: r });
|
|
2635
2635
|
});
|
|
2636
|
-
|
|
2637
|
-
function
|
|
2636
|
+
El.displayName = Sl;
|
|
2637
|
+
function Ll(e, t = globalThis?.document) {
|
|
2638
2638
|
const n = Ze(e), o = h.useRef(!1), r = h.useRef(() => {
|
|
2639
2639
|
});
|
|
2640
2640
|
return h.useEffect(() => {
|
|
@@ -2664,7 +2664,7 @@ function El(e, t = globalThis?.document) {
|
|
|
2664
2664
|
onPointerDownCapture: () => o.current = !0
|
|
2665
2665
|
};
|
|
2666
2666
|
}
|
|
2667
|
-
function
|
|
2667
|
+
function Pl(e, t = globalThis?.document) {
|
|
2668
2668
|
const n = Ze(e), o = h.useRef(!1);
|
|
2669
2669
|
return h.useEffect(() => {
|
|
2670
2670
|
const r = (a) => {
|
|
@@ -2687,7 +2687,7 @@ function nr(e, t, n, { discrete: o }) {
|
|
|
2687
2687
|
t && r.addEventListener(e, t, { once: !0 }), o ? _l(r, a) : r.dispatchEvent(a);
|
|
2688
2688
|
}
|
|
2689
2689
|
var ln = 0;
|
|
2690
|
-
function
|
|
2690
|
+
function $l() {
|
|
2691
2691
|
h.useEffect(() => {
|
|
2692
2692
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
2693
2693
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? lo()), document.body.insertAdjacentElement("beforeend", e[1] ?? lo()), ln++, () => {
|
|
@@ -2699,14 +2699,14 @@ function lo() {
|
|
|
2699
2699
|
const e = document.createElement("span");
|
|
2700
2700
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
2701
2701
|
}
|
|
2702
|
-
var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo = { bubbles: !1, cancelable: !0 },
|
|
2702
|
+
var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo = { bubbles: !1, cancelable: !0 }, Rl = "FocusScope", or = h.forwardRef((e, t) => {
|
|
2703
2703
|
const {
|
|
2704
2704
|
loop: n = !1,
|
|
2705
2705
|
trapped: o = !1,
|
|
2706
2706
|
onMountAutoFocus: r,
|
|
2707
2707
|
onUnmountAutoFocus: a,
|
|
2708
2708
|
...i
|
|
2709
|
-
} = e, [s, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)),
|
|
2709
|
+
} = e, [s, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)), m = h.useRef({
|
|
2710
2710
|
paused: !1,
|
|
2711
2711
|
pause() {
|
|
2712
2712
|
this.paused = !0;
|
|
@@ -2718,11 +2718,11 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2718
2718
|
h.useEffect(() => {
|
|
2719
2719
|
if (o) {
|
|
2720
2720
|
let p = function(b) {
|
|
2721
|
-
if (
|
|
2721
|
+
if (m.paused || !s) return;
|
|
2722
2722
|
const y = b.target;
|
|
2723
2723
|
s.contains(y) ? d.current = y : ze(d.current, { select: !0 });
|
|
2724
|
-
},
|
|
2725
|
-
if (
|
|
2724
|
+
}, g = function(b) {
|
|
2725
|
+
if (m.paused || !s) return;
|
|
2726
2726
|
const y = b.relatedTarget;
|
|
2727
2727
|
y !== null && (s.contains(y) || ze(d.current, { select: !0 }));
|
|
2728
2728
|
}, v = function(b) {
|
|
@@ -2730,48 +2730,48 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2730
2730
|
for (const x of b)
|
|
2731
2731
|
x.removedNodes.length > 0 && ze(s);
|
|
2732
2732
|
};
|
|
2733
|
-
document.addEventListener("focusin", p), document.addEventListener("focusout",
|
|
2733
|
+
document.addEventListener("focusin", p), document.addEventListener("focusout", g);
|
|
2734
2734
|
const C = new MutationObserver(v);
|
|
2735
2735
|
return s && C.observe(s, { childList: !0, subtree: !0 }), () => {
|
|
2736
|
-
document.removeEventListener("focusin", p), document.removeEventListener("focusout",
|
|
2736
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", g), C.disconnect();
|
|
2737
2737
|
};
|
|
2738
2738
|
}
|
|
2739
|
-
}, [o, s,
|
|
2739
|
+
}, [o, s, m.paused]), h.useEffect(() => {
|
|
2740
2740
|
if (s) {
|
|
2741
|
-
_o.add(
|
|
2741
|
+
_o.add(m);
|
|
2742
2742
|
const p = document.activeElement;
|
|
2743
2743
|
if (!s.contains(p)) {
|
|
2744
2744
|
const v = new CustomEvent(un, uo);
|
|
2745
|
-
s.addEventListener(un, l), s.dispatchEvent(v), v.defaultPrevented || (
|
|
2745
|
+
s.addEventListener(un, l), s.dispatchEvent(v), v.defaultPrevented || (Nl(Ml(rr(s)), { select: !0 }), document.activeElement === p && ze(s));
|
|
2746
2746
|
}
|
|
2747
2747
|
return () => {
|
|
2748
2748
|
s.removeEventListener(un, l), setTimeout(() => {
|
|
2749
2749
|
const v = new CustomEvent(dn, uo);
|
|
2750
|
-
s.addEventListener(dn, u), s.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), s.removeEventListener(dn, u), _o.remove(
|
|
2750
|
+
s.addEventListener(dn, u), s.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), s.removeEventListener(dn, u), _o.remove(m);
|
|
2751
2751
|
}, 0);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
}, [s, l, u,
|
|
2754
|
+
}, [s, l, u, m]);
|
|
2755
2755
|
const w = h.useCallback(
|
|
2756
2756
|
(p) => {
|
|
2757
|
-
if (!n && !o ||
|
|
2758
|
-
const
|
|
2759
|
-
if (
|
|
2760
|
-
const C = p.currentTarget, [b, y] =
|
|
2757
|
+
if (!n && !o || m.paused) return;
|
|
2758
|
+
const g = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, v = document.activeElement;
|
|
2759
|
+
if (g && v) {
|
|
2760
|
+
const C = p.currentTarget, [b, y] = kl(C);
|
|
2761
2761
|
b && y ? !p.shiftKey && v === y ? (p.preventDefault(), n && ze(b, { select: !0 })) : p.shiftKey && v === b && (p.preventDefault(), n && ze(y, { select: !0 })) : v === C && p.preventDefault();
|
|
2762
2762
|
}
|
|
2763
2763
|
},
|
|
2764
|
-
[n, o,
|
|
2764
|
+
[n, o, m.paused]
|
|
2765
2765
|
);
|
|
2766
2766
|
return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...i, ref: _, onKeyDown: w });
|
|
2767
2767
|
});
|
|
2768
|
-
or.displayName =
|
|
2769
|
-
function
|
|
2768
|
+
or.displayName = Rl;
|
|
2769
|
+
function Nl(e, { select: t = !1 } = {}) {
|
|
2770
2770
|
const n = document.activeElement;
|
|
2771
2771
|
for (const o of e)
|
|
2772
2772
|
if (ze(o, { select: t }), document.activeElement !== n) return;
|
|
2773
2773
|
}
|
|
2774
|
-
function
|
|
2774
|
+
function kl(e) {
|
|
2775
2775
|
const t = rr(e), n = fo(t, e), o = fo(t.reverse(), e);
|
|
2776
2776
|
return [n, o];
|
|
2777
2777
|
}
|
|
@@ -2836,7 +2836,7 @@ function Fn(e) {
|
|
|
2836
2836
|
n((o) => o ?? String(Ol++));
|
|
2837
2837
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
2838
2838
|
}
|
|
2839
|
-
const Dl = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt = Math.round,
|
|
2839
|
+
const Dl = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt = Math.round, $t = Math.floor, ye = (e) => ({
|
|
2840
2840
|
x: e,
|
|
2841
2841
|
y: e
|
|
2842
2842
|
}), Vl = {
|
|
@@ -2851,10 +2851,10 @@ const Dl = ["top", "right", "bottom", "left"], Me = Math.min, ue = Math.max, Vt
|
|
|
2851
2851
|
function xn(e, t, n) {
|
|
2852
2852
|
return ue(e, Me(t, n));
|
|
2853
2853
|
}
|
|
2854
|
-
function
|
|
2854
|
+
function Le(e, t) {
|
|
2855
2855
|
return typeof e == "function" ? e(t) : e;
|
|
2856
2856
|
}
|
|
2857
|
-
function
|
|
2857
|
+
function Pe(e) {
|
|
2858
2858
|
return e.split("-")[0];
|
|
2859
2859
|
}
|
|
2860
2860
|
function lt(e) {
|
|
@@ -2868,7 +2868,7 @@ function Zn(e) {
|
|
|
2868
2868
|
}
|
|
2869
2869
|
const Bl = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
2870
2870
|
function be(e) {
|
|
2871
|
-
return Bl.has(
|
|
2871
|
+
return Bl.has(Pe(e)) ? "y" : "x";
|
|
2872
2872
|
}
|
|
2873
2873
|
function qn(e) {
|
|
2874
2874
|
return Un(be(e));
|
|
@@ -2886,12 +2886,12 @@ function Wl(e) {
|
|
|
2886
2886
|
function Sn(e) {
|
|
2887
2887
|
return e.replace(/start|end/g, (t) => Hl[t]);
|
|
2888
2888
|
}
|
|
2889
|
-
const ho = ["left", "right"],
|
|
2889
|
+
const ho = ["left", "right"], mo = ["right", "left"], Fl = ["top", "bottom"], Ul = ["bottom", "top"];
|
|
2890
2890
|
function Zl(e, t, n) {
|
|
2891
2891
|
switch (e) {
|
|
2892
2892
|
case "top":
|
|
2893
2893
|
case "bottom":
|
|
2894
|
-
return n ? t ?
|
|
2894
|
+
return n ? t ? mo : ho : t ? ho : mo;
|
|
2895
2895
|
case "left":
|
|
2896
2896
|
case "right":
|
|
2897
2897
|
return t ? Fl : Ul;
|
|
@@ -2901,7 +2901,7 @@ function Zl(e, t, n) {
|
|
|
2901
2901
|
}
|
|
2902
2902
|
function ql(e, t, n, o) {
|
|
2903
2903
|
const r = lt(e);
|
|
2904
|
-
let a = Zl(
|
|
2904
|
+
let a = Zl(Pe(e), n === "start", o);
|
|
2905
2905
|
return r && (a = a.map((i) => i + "-" + r), t && (a = a.concat(a.map(Sn)))), a;
|
|
2906
2906
|
}
|
|
2907
2907
|
function Ht(e) {
|
|
@@ -2942,53 +2942,53 @@ function Bt(e) {
|
|
|
2942
2942
|
y: n
|
|
2943
2943
|
};
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function go(e, t, n) {
|
|
2946
2946
|
let {
|
|
2947
2947
|
reference: o,
|
|
2948
2948
|
floating: r
|
|
2949
2949
|
} = e;
|
|
2950
|
-
const a = be(t), i = qn(t), s = Zn(i), c =
|
|
2951
|
-
let
|
|
2950
|
+
const a = be(t), i = qn(t), s = Zn(i), c = Pe(t), l = a === "y", u = o.x + o.width / 2 - r.width / 2, d = o.y + o.height / 2 - r.height / 2, _ = o[s] / 2 - r[s] / 2;
|
|
2951
|
+
let m;
|
|
2952
2952
|
switch (c) {
|
|
2953
2953
|
case "top":
|
|
2954
|
-
|
|
2954
|
+
m = {
|
|
2955
2955
|
x: u,
|
|
2956
2956
|
y: o.y - r.height
|
|
2957
2957
|
};
|
|
2958
2958
|
break;
|
|
2959
2959
|
case "bottom":
|
|
2960
|
-
|
|
2960
|
+
m = {
|
|
2961
2961
|
x: u,
|
|
2962
2962
|
y: o.y + o.height
|
|
2963
2963
|
};
|
|
2964
2964
|
break;
|
|
2965
2965
|
case "right":
|
|
2966
|
-
|
|
2966
|
+
m = {
|
|
2967
2967
|
x: o.x + o.width,
|
|
2968
2968
|
y: d
|
|
2969
2969
|
};
|
|
2970
2970
|
break;
|
|
2971
2971
|
case "left":
|
|
2972
|
-
|
|
2972
|
+
m = {
|
|
2973
2973
|
x: o.x - r.width,
|
|
2974
2974
|
y: d
|
|
2975
2975
|
};
|
|
2976
2976
|
break;
|
|
2977
2977
|
default:
|
|
2978
|
-
|
|
2978
|
+
m = {
|
|
2979
2979
|
x: o.x,
|
|
2980
2980
|
y: o.y
|
|
2981
2981
|
};
|
|
2982
2982
|
}
|
|
2983
2983
|
switch (lt(t)) {
|
|
2984
2984
|
case "start":
|
|
2985
|
-
|
|
2985
|
+
m[i] -= _ * (n && l ? -1 : 1);
|
|
2986
2986
|
break;
|
|
2987
2987
|
case "end":
|
|
2988
|
-
|
|
2988
|
+
m[i] += _ * (n && l ? -1 : 1);
|
|
2989
2989
|
break;
|
|
2990
2990
|
}
|
|
2991
|
-
return
|
|
2991
|
+
return m;
|
|
2992
2992
|
}
|
|
2993
2993
|
const Yl = async (e, t, n) => {
|
|
2994
2994
|
const {
|
|
@@ -3004,10 +3004,10 @@ const Yl = async (e, t, n) => {
|
|
|
3004
3004
|
}), {
|
|
3005
3005
|
x: u,
|
|
3006
3006
|
y: d
|
|
3007
|
-
} =
|
|
3007
|
+
} = go(l, o, c), _ = o, m = {}, w = 0;
|
|
3008
3008
|
for (let p = 0; p < s.length; p++) {
|
|
3009
3009
|
const {
|
|
3010
|
-
name:
|
|
3010
|
+
name: g,
|
|
3011
3011
|
fn: v
|
|
3012
3012
|
} = s[p], {
|
|
3013
3013
|
x: C,
|
|
@@ -3020,7 +3020,7 @@ const Yl = async (e, t, n) => {
|
|
|
3020
3020
|
initialPlacement: o,
|
|
3021
3021
|
placement: _,
|
|
3022
3022
|
strategy: r,
|
|
3023
|
-
middlewareData:
|
|
3023
|
+
middlewareData: m,
|
|
3024
3024
|
rects: l,
|
|
3025
3025
|
platform: i,
|
|
3026
3026
|
elements: {
|
|
@@ -3028,10 +3028,10 @@ const Yl = async (e, t, n) => {
|
|
|
3028
3028
|
floating: t
|
|
3029
3029
|
}
|
|
3030
3030
|
});
|
|
3031
|
-
u = C ?? u, d = b ?? d,
|
|
3032
|
-
...
|
|
3033
|
-
[
|
|
3034
|
-
...g
|
|
3031
|
+
u = C ?? u, d = b ?? d, m = {
|
|
3032
|
+
...m,
|
|
3033
|
+
[g]: {
|
|
3034
|
+
...m[g],
|
|
3035
3035
|
...y
|
|
3036
3036
|
}
|
|
3037
3037
|
}, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (_ = x.placement), x.rects && (l = x.rects === !0 ? await i.getElementRects({
|
|
@@ -3041,14 +3041,14 @@ const Yl = async (e, t, n) => {
|
|
|
3041
3041
|
}) : x.rects), {
|
|
3042
3042
|
x: u,
|
|
3043
3043
|
y: d
|
|
3044
|
-
} =
|
|
3044
|
+
} = go(l, _, c)), p = -1);
|
|
3045
3045
|
}
|
|
3046
3046
|
return {
|
|
3047
3047
|
x: u,
|
|
3048
3048
|
y: d,
|
|
3049
3049
|
placement: _,
|
|
3050
3050
|
strategy: r,
|
|
3051
|
-
middlewareData:
|
|
3051
|
+
middlewareData: m
|
|
3052
3052
|
};
|
|
3053
3053
|
};
|
|
3054
3054
|
async function Ct(e, t) {
|
|
@@ -3066,9 +3066,9 @@ async function Ct(e, t) {
|
|
|
3066
3066
|
rootBoundary: u = "viewport",
|
|
3067
3067
|
elementContext: d = "floating",
|
|
3068
3068
|
altBoundary: _ = !1,
|
|
3069
|
-
padding:
|
|
3070
|
-
} =
|
|
3071
|
-
element: (n = await (a.isElement == null ? void 0 : a.isElement(
|
|
3069
|
+
padding: m = 0
|
|
3070
|
+
} = Le(t, e), w = ar(m), g = s[_ ? d === "floating" ? "reference" : "floating" : d], v = Bt(await a.getClippingRect({
|
|
3071
|
+
element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
3072
3072
|
boundary: l,
|
|
3073
3073
|
rootBoundary: u,
|
|
3074
3074
|
strategy: c
|
|
@@ -3111,20 +3111,20 @@ const Gl = (e) => ({
|
|
|
3111
3111
|
} = t, {
|
|
3112
3112
|
element: l,
|
|
3113
3113
|
padding: u = 0
|
|
3114
|
-
} =
|
|
3114
|
+
} = Le(e, t) || {};
|
|
3115
3115
|
if (l == null)
|
|
3116
3116
|
return {};
|
|
3117
3117
|
const d = ar(u), _ = {
|
|
3118
3118
|
x: n,
|
|
3119
3119
|
y: o
|
|
3120
|
-
},
|
|
3121
|
-
let S =
|
|
3122
|
-
(!S || !await (i.isElement == null ? void 0 : i.isElement(
|
|
3123
|
-
const
|
|
3120
|
+
}, m = qn(r), w = Zn(m), p = await i.getDimensions(l), g = m === "y", v = g ? "top" : "left", C = g ? "bottom" : "right", b = g ? "clientHeight" : "clientWidth", y = a.reference[w] + a.reference[m] - _[m] - a.floating[w], x = _[m] - a.reference[m], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(l));
|
|
3121
|
+
let S = E ? E[b] : 0;
|
|
3122
|
+
(!S || !await (i.isElement == null ? void 0 : i.isElement(E))) && (S = s.floating[b] || a.floating[w]);
|
|
3123
|
+
const L = y / 2 - x / 2, $ = S / 2 - p[w] / 2 - 1, N = Me(d[v], $), T = Me(d[C], $), B = N, H = S - p[w] - T, O = S / 2 - p[w] / 2 + L, j = xn(B, O, H), z = !c.arrow && lt(r) != null && O !== j && a.reference[w] / 2 - (O < B ? N : T) - p[w] / 2 < 0, D = z ? O < B ? O - B : O - H : 0;
|
|
3124
3124
|
return {
|
|
3125
|
-
[
|
|
3125
|
+
[m]: _[m] + D,
|
|
3126
3126
|
data: {
|
|
3127
|
-
[
|
|
3127
|
+
[m]: j,
|
|
3128
3128
|
centerOffset: O - j - D,
|
|
3129
3129
|
...z && {
|
|
3130
3130
|
alignmentOffset: D
|
|
@@ -3150,53 +3150,53 @@ const Gl = (e) => ({
|
|
|
3150
3150
|
mainAxis: u = !0,
|
|
3151
3151
|
crossAxis: d = !0,
|
|
3152
3152
|
fallbackPlacements: _,
|
|
3153
|
-
fallbackStrategy:
|
|
3153
|
+
fallbackStrategy: m = "bestFit",
|
|
3154
3154
|
fallbackAxisSideDirection: w = "none",
|
|
3155
3155
|
flipAlignment: p = !0,
|
|
3156
|
-
...
|
|
3157
|
-
} =
|
|
3156
|
+
...g
|
|
3157
|
+
} = Le(e, t);
|
|
3158
3158
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
3159
3159
|
return {};
|
|
3160
|
-
const v =
|
|
3161
|
-
!_ &&
|
|
3162
|
-
const S = [s, ...x],
|
|
3163
|
-
let
|
|
3164
|
-
if (u &&
|
|
3160
|
+
const v = Pe(r), C = be(s), b = Pe(s) === s, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = _ || (b || !p ? [Ht(s)] : Wl(s)), E = w !== "none";
|
|
3161
|
+
!_ && E && x.push(...ql(s, p, w, y));
|
|
3162
|
+
const S = [s, ...x], L = await Ct(t, g), $ = [];
|
|
3163
|
+
let N = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
3164
|
+
if (u && $.push(L[v]), d) {
|
|
3165
3165
|
const O = jl(r, i, y);
|
|
3166
|
-
|
|
3166
|
+
$.push(L[O[0]], L[O[1]]);
|
|
3167
3167
|
}
|
|
3168
|
-
if (
|
|
3168
|
+
if (N = [...N, {
|
|
3169
3169
|
placement: r,
|
|
3170
|
-
overflows:
|
|
3171
|
-
}],
|
|
3170
|
+
overflows: $
|
|
3171
|
+
}], !$.every((O) => O <= 0)) {
|
|
3172
3172
|
var T, B;
|
|
3173
3173
|
const O = (((T = a.flip) == null ? void 0 : T.index) || 0) + 1, j = S[O];
|
|
3174
3174
|
if (j && (!(d === "alignment" ? C !== be(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
3175
3175
|
// overflows the main axis.
|
|
3176
|
-
|
|
3176
|
+
N.every((k) => be(k.placement) === C ? k.overflows[0] > 0 : !0)))
|
|
3177
3177
|
return {
|
|
3178
3178
|
data: {
|
|
3179
3179
|
index: O,
|
|
3180
|
-
overflows:
|
|
3180
|
+
overflows: N
|
|
3181
3181
|
},
|
|
3182
3182
|
reset: {
|
|
3183
3183
|
placement: j
|
|
3184
3184
|
}
|
|
3185
3185
|
};
|
|
3186
|
-
let z = (B =
|
|
3186
|
+
let z = (B = N.filter((D) => D.overflows[0] <= 0).sort((D, k) => D.overflows[1] - k.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
3187
3187
|
if (!z)
|
|
3188
|
-
switch (
|
|
3188
|
+
switch (m) {
|
|
3189
3189
|
case "bestFit": {
|
|
3190
3190
|
var H;
|
|
3191
|
-
const D = (H =
|
|
3192
|
-
if (
|
|
3193
|
-
const F = be(
|
|
3191
|
+
const D = (H = N.filter((k) => {
|
|
3192
|
+
if (E) {
|
|
3193
|
+
const F = be(k.placement);
|
|
3194
3194
|
return F === C || // Create a bias to the `y` side axis due to horizontal
|
|
3195
3195
|
// reading directions favoring greater width.
|
|
3196
3196
|
F === "y";
|
|
3197
3197
|
}
|
|
3198
3198
|
return !0;
|
|
3199
|
-
}).map((
|
|
3199
|
+
}).map((k) => [k.placement, k.overflows.filter((F) => F > 0).reduce((F, se) => F + se, 0)]).sort((k, F) => k[1] - F[1])[0]) == null ? void 0 : H[0];
|
|
3200
3200
|
D && (z = D);
|
|
3201
3201
|
break;
|
|
3202
3202
|
}
|
|
@@ -3236,7 +3236,7 @@ const Ql = function(e) {
|
|
|
3236
3236
|
} = t, {
|
|
3237
3237
|
strategy: o = "referenceHidden",
|
|
3238
3238
|
...r
|
|
3239
|
-
} =
|
|
3239
|
+
} = Le(e, t);
|
|
3240
3240
|
switch (o) {
|
|
3241
3241
|
case "referenceHidden": {
|
|
3242
3242
|
const a = await Ct(t, {
|
|
@@ -3273,10 +3273,10 @@ async function Jl(e, t) {
|
|
|
3273
3273
|
placement: n,
|
|
3274
3274
|
platform: o,
|
|
3275
3275
|
elements: r
|
|
3276
|
-
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i =
|
|
3276
|
+
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = Pe(n), s = lt(n), c = be(n) === "y", l = sr.has(i) ? -1 : 1, u = a && c ? -1 : 1, d = Le(t, e);
|
|
3277
3277
|
let {
|
|
3278
3278
|
mainAxis: _,
|
|
3279
|
-
crossAxis:
|
|
3279
|
+
crossAxis: m,
|
|
3280
3280
|
alignmentAxis: w
|
|
3281
3281
|
} = typeof d == "number" ? {
|
|
3282
3282
|
mainAxis: d,
|
|
@@ -3287,12 +3287,12 @@ async function Jl(e, t) {
|
|
|
3287
3287
|
crossAxis: d.crossAxis || 0,
|
|
3288
3288
|
alignmentAxis: d.alignmentAxis
|
|
3289
3289
|
};
|
|
3290
|
-
return s && typeof w == "number" && (
|
|
3291
|
-
x:
|
|
3290
|
+
return s && typeof w == "number" && (m = s === "end" ? w * -1 : w), c ? {
|
|
3291
|
+
x: m * u,
|
|
3292
3292
|
y: _ * l
|
|
3293
3293
|
} : {
|
|
3294
3294
|
x: _ * l,
|
|
3295
|
-
y:
|
|
3295
|
+
y: m * u
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
3298
|
const e1 = function(e) {
|
|
@@ -3330,11 +3330,11 @@ const e1 = function(e) {
|
|
|
3330
3330
|
mainAxis: a = !0,
|
|
3331
3331
|
crossAxis: i = !1,
|
|
3332
3332
|
limiter: s = {
|
|
3333
|
-
fn: (
|
|
3333
|
+
fn: (g) => {
|
|
3334
3334
|
let {
|
|
3335
3335
|
x: v,
|
|
3336
3336
|
y: C
|
|
3337
|
-
} =
|
|
3337
|
+
} = g;
|
|
3338
3338
|
return {
|
|
3339
3339
|
x: v,
|
|
3340
3340
|
y: C
|
|
@@ -3342,22 +3342,22 @@ const e1 = function(e) {
|
|
|
3342
3342
|
}
|
|
3343
3343
|
},
|
|
3344
3344
|
...c
|
|
3345
|
-
} =
|
|
3345
|
+
} = Le(e, t), l = {
|
|
3346
3346
|
x: n,
|
|
3347
3347
|
y: o
|
|
3348
|
-
}, u = await Ct(t, c), d = be(
|
|
3349
|
-
let
|
|
3348
|
+
}, u = await Ct(t, c), d = be(Pe(r)), _ = Un(d);
|
|
3349
|
+
let m = l[_], w = l[d];
|
|
3350
3350
|
if (a) {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3351
|
+
const g = _ === "y" ? "top" : "left", v = _ === "y" ? "bottom" : "right", C = m + u[g], b = m - u[v];
|
|
3352
|
+
m = xn(C, m, b);
|
|
3353
3353
|
}
|
|
3354
3354
|
if (i) {
|
|
3355
|
-
const
|
|
3355
|
+
const g = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", C = w + u[g], b = w - u[v];
|
|
3356
3356
|
w = xn(C, w, b);
|
|
3357
3357
|
}
|
|
3358
3358
|
const p = s.fn({
|
|
3359
3359
|
...t,
|
|
3360
|
-
[_]:
|
|
3360
|
+
[_]: m,
|
|
3361
3361
|
[d]: w
|
|
3362
3362
|
});
|
|
3363
3363
|
return {
|
|
@@ -3387,12 +3387,12 @@ const e1 = function(e) {
|
|
|
3387
3387
|
offset: s = 0,
|
|
3388
3388
|
mainAxis: c = !0,
|
|
3389
3389
|
crossAxis: l = !0
|
|
3390
|
-
} =
|
|
3390
|
+
} = Le(e, t), u = {
|
|
3391
3391
|
x: n,
|
|
3392
3392
|
y: o
|
|
3393
3393
|
}, d = be(r), _ = Un(d);
|
|
3394
|
-
let
|
|
3395
|
-
const p =
|
|
3394
|
+
let m = u[_], w = u[d];
|
|
3395
|
+
const p = Le(s, t), g = typeof p == "number" ? {
|
|
3396
3396
|
mainAxis: p,
|
|
3397
3397
|
crossAxis: 0
|
|
3398
3398
|
} : {
|
|
@@ -3401,16 +3401,16 @@ const e1 = function(e) {
|
|
|
3401
3401
|
...p
|
|
3402
3402
|
};
|
|
3403
3403
|
if (c) {
|
|
3404
|
-
const b = _ === "y" ? "height" : "width", y = a.reference[_] - a.floating[b] +
|
|
3405
|
-
|
|
3404
|
+
const b = _ === "y" ? "height" : "width", y = a.reference[_] - a.floating[b] + g.mainAxis, x = a.reference[_] + a.reference[b] - g.mainAxis;
|
|
3405
|
+
m < y ? m = y : m > x && (m = x);
|
|
3406
3406
|
}
|
|
3407
3407
|
if (l) {
|
|
3408
3408
|
var v, C;
|
|
3409
|
-
const b = _ === "y" ? "width" : "height", y = sr.has(
|
|
3410
|
-
w < x ? w = x : w >
|
|
3409
|
+
const b = _ === "y" ? "width" : "height", y = sr.has(Pe(r)), x = a.reference[d] - a.floating[b] + (y && ((v = i.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 : g.crossAxis), E = a.reference[d] + a.reference[b] + (y ? 0 : ((C = i.offset) == null ? void 0 : C[d]) || 0) - (y ? g.crossAxis : 0);
|
|
3410
|
+
w < x ? w = x : w > E && (w = E);
|
|
3411
3411
|
}
|
|
3412
3412
|
return {
|
|
3413
|
-
[_]:
|
|
3413
|
+
[_]: m,
|
|
3414
3414
|
[d]: w
|
|
3415
3415
|
};
|
|
3416
3416
|
}
|
|
@@ -3430,25 +3430,25 @@ const e1 = function(e) {
|
|
|
3430
3430
|
apply: c = () => {
|
|
3431
3431
|
},
|
|
3432
3432
|
...l
|
|
3433
|
-
} =
|
|
3433
|
+
} = Le(e, t), u = await Ct(t, l), d = Pe(r), _ = lt(r), m = be(r) === "y", {
|
|
3434
3434
|
width: w,
|
|
3435
3435
|
height: p
|
|
3436
3436
|
} = a.floating;
|
|
3437
|
-
let
|
|
3438
|
-
d === "top" || d === "bottom" ? (
|
|
3439
|
-
const C = p - u.top - u.bottom, b = w - u.left - u.right, y = Me(p - u[
|
|
3440
|
-
let S = y,
|
|
3441
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
3442
|
-
const
|
|
3443
|
-
|
|
3437
|
+
let g, v;
|
|
3438
|
+
d === "top" || d === "bottom" ? (g = d, v = _ === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (v = d, g = _ === "end" ? "top" : "bottom");
|
|
3439
|
+
const C = p - u.top - u.bottom, b = w - u.left - u.right, y = Me(p - u[g], C), x = Me(w - u[v], b), E = !t.middlewareData.shift;
|
|
3440
|
+
let S = y, L = x;
|
|
3441
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = C), E && !_) {
|
|
3442
|
+
const N = ue(u.left, 0), T = ue(u.right, 0), B = ue(u.top, 0), H = ue(u.bottom, 0);
|
|
3443
|
+
m ? L = w - 2 * (N !== 0 || T !== 0 ? N + T : ue(u.left, u.right)) : S = p - 2 * (B !== 0 || H !== 0 ? B + H : ue(u.top, u.bottom));
|
|
3444
3444
|
}
|
|
3445
3445
|
await c({
|
|
3446
3446
|
...t,
|
|
3447
|
-
availableWidth:
|
|
3447
|
+
availableWidth: L,
|
|
3448
3448
|
availableHeight: S
|
|
3449
3449
|
});
|
|
3450
|
-
const
|
|
3451
|
-
return w !==
|
|
3450
|
+
const $ = await i.getDimensions(s.floating);
|
|
3451
|
+
return w !== $.width || p !== $.height ? {
|
|
3452
3452
|
reset: {
|
|
3453
3453
|
rects: !0
|
|
3454
3454
|
}
|
|
@@ -3473,7 +3473,7 @@ function Se(e) {
|
|
|
3473
3473
|
function ir(e) {
|
|
3474
3474
|
return qt() ? e instanceof Node || e instanceof de(e).Node : !1;
|
|
3475
3475
|
}
|
|
3476
|
-
function
|
|
3476
|
+
function ge(e) {
|
|
3477
3477
|
return qt() ? e instanceof Element || e instanceof de(e).Element : !1;
|
|
3478
3478
|
}
|
|
3479
3479
|
function xe(e) {
|
|
@@ -3508,7 +3508,7 @@ function Xt(e) {
|
|
|
3508
3508
|
}
|
|
3509
3509
|
const c1 = ["transform", "translate", "scale", "rotate", "perspective"], l1 = ["transform", "translate", "scale", "rotate", "perspective", "filter"], u1 = ["paint", "layout", "strict", "content"];
|
|
3510
3510
|
function Xn(e) {
|
|
3511
|
-
const t = Yn(), n =
|
|
3511
|
+
const t = Yn(), n = ge(e) ? we(e) : e;
|
|
3512
3512
|
return c1.some((o) => n[o] ? n[o] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || l1.some((o) => (n.willChange || "").includes(o)) || u1.some((o) => (n.contain || "").includes(o));
|
|
3513
3513
|
}
|
|
3514
3514
|
function d1(e) {
|
|
@@ -3533,7 +3533,7 @@ function we(e) {
|
|
|
3533
3533
|
return de(e).getComputedStyle(e);
|
|
3534
3534
|
}
|
|
3535
3535
|
function Yt(e) {
|
|
3536
|
-
return
|
|
3536
|
+
return ge(e) ? {
|
|
3537
3537
|
scrollLeft: e.scrollLeft,
|
|
3538
3538
|
scrollTop: e.scrollTop
|
|
3539
3539
|
} : {
|
|
@@ -3562,12 +3562,12 @@ function bt(e, t, n) {
|
|
|
3562
3562
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
3563
3563
|
const r = cr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = de(r);
|
|
3564
3564
|
if (a) {
|
|
3565
|
-
const s =
|
|
3565
|
+
const s = En(i);
|
|
3566
3566
|
return t.concat(i, i.visualViewport || [], yt(r) ? r : [], s && n ? bt(s) : []);
|
|
3567
3567
|
}
|
|
3568
3568
|
return t.concat(r, bt(r, [], n));
|
|
3569
3569
|
}
|
|
3570
|
-
function
|
|
3570
|
+
function En(e) {
|
|
3571
3571
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
3572
3572
|
}
|
|
3573
3573
|
function lr(e) {
|
|
@@ -3581,7 +3581,7 @@ function lr(e) {
|
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
3583
|
function Gn(e) {
|
|
3584
|
-
return
|
|
3584
|
+
return ge(e) ? e : e.contextElement;
|
|
3585
3585
|
}
|
|
3586
3586
|
function rt(e) {
|
|
3587
3587
|
const t = Gn(e);
|
|
@@ -3613,15 +3613,15 @@ function qe(e, t, n, o) {
|
|
|
3613
3613
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
3614
3614
|
const r = e.getBoundingClientRect(), a = Gn(e);
|
|
3615
3615
|
let i = ye(1);
|
|
3616
|
-
t && (o ?
|
|
3616
|
+
t && (o ? ge(o) && (i = rt(o)) : i = rt(e));
|
|
3617
3617
|
const s = p1(a, n, o) ? ur(a) : ye(0);
|
|
3618
3618
|
let c = (r.left + s.x) / i.x, l = (r.top + s.y) / i.y, u = r.width / i.x, d = r.height / i.y;
|
|
3619
3619
|
if (a) {
|
|
3620
|
-
const _ = de(a),
|
|
3621
|
-
let w = _, p =
|
|
3622
|
-
for (; p && o &&
|
|
3623
|
-
const
|
|
3624
|
-
c *=
|
|
3620
|
+
const _ = de(a), m = o && ge(o) ? de(o) : o;
|
|
3621
|
+
let w = _, p = En(w);
|
|
3622
|
+
for (; p && o && m !== w; ) {
|
|
3623
|
+
const g = rt(p), v = p.getBoundingClientRect(), C = we(p), b = v.left + (p.clientLeft + parseFloat(C.paddingLeft)) * g.x, y = v.top + (p.clientTop + parseFloat(C.paddingTop)) * g.y;
|
|
3624
|
+
c *= g.x, l *= g.y, u *= g.x, d *= g.y, c += b, l += y, w = de(p), p = En(w);
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
3627
|
return Bt({
|
|
@@ -3658,8 +3658,8 @@ function h1(e) {
|
|
|
3658
3658
|
}, l = ye(1);
|
|
3659
3659
|
const u = ye(0), d = xe(o);
|
|
3660
3660
|
if ((d || !d && !a) && ((ut(o) !== "body" || yt(i)) && (c = Yt(o)), xe(o))) {
|
|
3661
|
-
const
|
|
3662
|
-
l = rt(o), u.x =
|
|
3661
|
+
const m = qe(o);
|
|
3662
|
+
l = rt(o), u.x = m.x + o.clientLeft, u.y = m.y + o.clientTop;
|
|
3663
3663
|
}
|
|
3664
3664
|
const _ = i && !d && !a ? dr(i, c) : ye(0);
|
|
3665
3665
|
return {
|
|
@@ -3669,10 +3669,10 @@ function h1(e) {
|
|
|
3669
3669
|
y: n.y * l.y - c.scrollTop * l.y + u.y + _.y
|
|
3670
3670
|
};
|
|
3671
3671
|
}
|
|
3672
|
-
function
|
|
3672
|
+
function m1(e) {
|
|
3673
3673
|
return Array.from(e.getClientRects());
|
|
3674
3674
|
}
|
|
3675
|
-
function
|
|
3675
|
+
function g1(e) {
|
|
3676
3676
|
const t = Se(e), n = Yt(e), o = e.ownerDocument.body, r = ue(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = ue(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
3677
3677
|
let i = -n.scrollLeft + Gt(e);
|
|
3678
3678
|
const s = -n.scrollTop;
|
|
@@ -3694,7 +3694,7 @@ function w1(e, t) {
|
|
|
3694
3694
|
}
|
|
3695
3695
|
const l = Gt(o);
|
|
3696
3696
|
if (l <= 0) {
|
|
3697
|
-
const u = o.ownerDocument, d = u.body, _ = getComputedStyle(d),
|
|
3697
|
+
const u = o.ownerDocument, d = u.body, _ = getComputedStyle(d), m = u.compatMode === "CSS1Compat" && parseFloat(_.marginLeft) + parseFloat(_.marginRight) || 0, w = Math.abs(o.clientWidth - d.clientWidth - m);
|
|
3698
3698
|
w <= bo && (a -= w);
|
|
3699
3699
|
} else l <= bo && (a += l);
|
|
3700
3700
|
return {
|
|
@@ -3719,8 +3719,8 @@ function yo(e, t, n) {
|
|
|
3719
3719
|
if (t === "viewport")
|
|
3720
3720
|
o = w1(e, n);
|
|
3721
3721
|
else if (t === "document")
|
|
3722
|
-
o =
|
|
3723
|
-
else if (
|
|
3722
|
+
o = g1(Se(e));
|
|
3723
|
+
else if (ge(t))
|
|
3724
3724
|
o = C1(t, n);
|
|
3725
3725
|
else {
|
|
3726
3726
|
const r = ur(e);
|
|
@@ -3735,16 +3735,16 @@ function yo(e, t, n) {
|
|
|
3735
3735
|
}
|
|
3736
3736
|
function fr(e, t) {
|
|
3737
3737
|
const n = Ie(e);
|
|
3738
|
-
return n === t || !
|
|
3738
|
+
return n === t || !ge(n) || it(n) ? !1 : we(n).position === "fixed" || fr(n, t);
|
|
3739
3739
|
}
|
|
3740
3740
|
function b1(e, t) {
|
|
3741
3741
|
const n = t.get(e);
|
|
3742
3742
|
if (n)
|
|
3743
3743
|
return n;
|
|
3744
|
-
let o = bt(e, [], !1).filter((s) =>
|
|
3744
|
+
let o = bt(e, [], !1).filter((s) => ge(s) && ut(s) !== "body"), r = null;
|
|
3745
3745
|
const a = we(e).position === "fixed";
|
|
3746
3746
|
let i = a ? Ie(e) : e;
|
|
3747
|
-
for (;
|
|
3747
|
+
for (; ge(i) && !it(i); ) {
|
|
3748
3748
|
const s = we(i), c = Xn(i);
|
|
3749
3749
|
!c && s.position === "fixed" && (r = null), (a ? !c && !r : !c && s.position === "static" && !!r && v1.has(r.position) || yt(i) && !c && fr(e, i)) ? o = o.filter((u) => u !== i) : r = s, i = Ie(i);
|
|
3750
3750
|
}
|
|
@@ -3790,8 +3790,8 @@ function S1(e, t, n) {
|
|
|
3790
3790
|
}
|
|
3791
3791
|
if (o || !o && !a)
|
|
3792
3792
|
if ((ut(t) !== "body" || yt(r)) && (s = Yt(t)), o) {
|
|
3793
|
-
const
|
|
3794
|
-
c.x =
|
|
3793
|
+
const m = qe(t, !0, a, t);
|
|
3794
|
+
c.x = m.x + t.clientLeft, c.y = m.y + t.clientTop;
|
|
3795
3795
|
} else r && l();
|
|
3796
3796
|
a && !o && r && l();
|
|
3797
3797
|
const u = r && !o && !a ? dr(r, s) : ye(0), d = i.left + s.scrollLeft - c.x - u.x, _ = i.top + s.scrollTop - c.y - u.y;
|
|
@@ -3820,7 +3820,7 @@ function _r(e, t) {
|
|
|
3820
3820
|
if (!xe(e)) {
|
|
3821
3821
|
let r = Ie(e);
|
|
3822
3822
|
for (; r && !it(r); ) {
|
|
3823
|
-
if (
|
|
3823
|
+
if (ge(r) && !fn(r))
|
|
3824
3824
|
return r;
|
|
3825
3825
|
r = Ie(r);
|
|
3826
3826
|
}
|
|
@@ -3831,7 +3831,7 @@ function _r(e, t) {
|
|
|
3831
3831
|
o = xo(o, t);
|
|
3832
3832
|
return o && it(o) && fn(o) && !Xn(o) ? n : o || d1(e) || n;
|
|
3833
3833
|
}
|
|
3834
|
-
const
|
|
3834
|
+
const E1 = async function(e) {
|
|
3835
3835
|
const t = this.getOffsetParent || _r, n = this.getDimensions, o = await n(e.floating);
|
|
3836
3836
|
return {
|
|
3837
3837
|
reference: S1(e.reference, await t(e.floating), e.strategy),
|
|
@@ -3843,25 +3843,25 @@ const k1 = async function(e) {
|
|
|
3843
3843
|
}
|
|
3844
3844
|
};
|
|
3845
3845
|
};
|
|
3846
|
-
function
|
|
3846
|
+
function L1(e) {
|
|
3847
3847
|
return we(e).direction === "rtl";
|
|
3848
3848
|
}
|
|
3849
|
-
const
|
|
3849
|
+
const P1 = {
|
|
3850
3850
|
convertOffsetParentRelativeRectToViewportRelativeRect: h1,
|
|
3851
3851
|
getDocumentElement: Se,
|
|
3852
3852
|
getClippingRect: y1,
|
|
3853
3853
|
getOffsetParent: _r,
|
|
3854
|
-
getElementRects:
|
|
3855
|
-
getClientRects:
|
|
3854
|
+
getElementRects: E1,
|
|
3855
|
+
getClientRects: m1,
|
|
3856
3856
|
getDimensions: x1,
|
|
3857
3857
|
getScale: rt,
|
|
3858
|
-
isElement:
|
|
3859
|
-
isRTL:
|
|
3858
|
+
isElement: ge,
|
|
3859
|
+
isRTL: L1
|
|
3860
3860
|
};
|
|
3861
3861
|
function pr(e, t) {
|
|
3862
3862
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
3863
3863
|
}
|
|
3864
|
-
function
|
|
3864
|
+
function $1(e, t) {
|
|
3865
3865
|
let n = null, o;
|
|
3866
3866
|
const r = Se(e);
|
|
3867
3867
|
function a() {
|
|
@@ -3874,17 +3874,17 @@ function P1(e, t) {
|
|
|
3874
3874
|
left: u,
|
|
3875
3875
|
top: d,
|
|
3876
3876
|
width: _,
|
|
3877
|
-
height:
|
|
3877
|
+
height: m
|
|
3878
3878
|
} = l;
|
|
3879
|
-
if (s || t(), !_ || !
|
|
3879
|
+
if (s || t(), !_ || !m)
|
|
3880
3880
|
return;
|
|
3881
|
-
const w =
|
|
3882
|
-
rootMargin: -w + "px " + -p + "px " + -
|
|
3881
|
+
const w = $t(d), p = $t(r.clientWidth - (u + _)), g = $t(r.clientHeight - (d + m)), v = $t(u), b = {
|
|
3882
|
+
rootMargin: -w + "px " + -p + "px " + -g + "px " + -v + "px",
|
|
3883
3883
|
threshold: ue(0, Me(1, c)) || 1
|
|
3884
3884
|
};
|
|
3885
3885
|
let y = !0;
|
|
3886
|
-
function x(
|
|
3887
|
-
const S =
|
|
3886
|
+
function x(E) {
|
|
3887
|
+
const S = E[0].intersectionRatio;
|
|
3888
3888
|
if (S !== c) {
|
|
3889
3889
|
if (!y)
|
|
3890
3890
|
return i();
|
|
@@ -3907,7 +3907,7 @@ function P1(e, t) {
|
|
|
3907
3907
|
}
|
|
3908
3908
|
return i(!0), a;
|
|
3909
3909
|
}
|
|
3910
|
-
function
|
|
3910
|
+
function R1(e, t, n, o) {
|
|
3911
3911
|
o === void 0 && (o = {});
|
|
3912
3912
|
const {
|
|
3913
3913
|
ancestorScroll: r = !0,
|
|
@@ -3921,31 +3921,31 @@ function $1(e, t, n, o) {
|
|
|
3921
3921
|
passive: !0
|
|
3922
3922
|
}), a && v.addEventListener("resize", n);
|
|
3923
3923
|
});
|
|
3924
|
-
const d = l && s ?
|
|
3925
|
-
let _ = -1,
|
|
3926
|
-
i && (
|
|
3924
|
+
const d = l && s ? $1(l, n) : null;
|
|
3925
|
+
let _ = -1, m = null;
|
|
3926
|
+
i && (m = new ResizeObserver((v) => {
|
|
3927
3927
|
let [C] = v;
|
|
3928
|
-
C && C.target === l &&
|
|
3928
|
+
C && C.target === l && m && (m.unobserve(t), cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
|
|
3929
3929
|
var b;
|
|
3930
|
-
(b =
|
|
3930
|
+
(b = m) == null || b.observe(t);
|
|
3931
3931
|
})), n();
|
|
3932
|
-
}), l && !c &&
|
|
3932
|
+
}), l && !c && m.observe(l), m.observe(t));
|
|
3933
3933
|
let w, p = c ? qe(e) : null;
|
|
3934
|
-
c &&
|
|
3935
|
-
function
|
|
3934
|
+
c && g();
|
|
3935
|
+
function g() {
|
|
3936
3936
|
const v = qe(e);
|
|
3937
|
-
p && !pr(p, v) && n(), p = v, w = requestAnimationFrame(
|
|
3937
|
+
p && !pr(p, v) && n(), p = v, w = requestAnimationFrame(g);
|
|
3938
3938
|
}
|
|
3939
3939
|
return n(), () => {
|
|
3940
3940
|
var v;
|
|
3941
3941
|
u.forEach((C) => {
|
|
3942
3942
|
r && C.removeEventListener("scroll", n), a && C.removeEventListener("resize", n);
|
|
3943
|
-
}), d?.(), (v =
|
|
3943
|
+
}), d?.(), (v = m) == null || v.disconnect(), m = null, c && cancelAnimationFrame(w);
|
|
3944
3944
|
};
|
|
3945
3945
|
}
|
|
3946
|
-
const
|
|
3946
|
+
const N1 = e1, k1 = t1, A1 = Kl, T1 = o1, z1 = Ql, So = Gl, M1 = n1, I1 = (e, t, n) => {
|
|
3947
3947
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
3948
|
-
platform:
|
|
3948
|
+
platform: P1,
|
|
3949
3949
|
...n
|
|
3950
3950
|
}, a = {
|
|
3951
3951
|
...r.platform,
|
|
@@ -3991,7 +3991,7 @@ function jt(e, t) {
|
|
|
3991
3991
|
function hr(e) {
|
|
3992
3992
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
3993
3993
|
}
|
|
3994
|
-
function
|
|
3994
|
+
function Eo(e, t) {
|
|
3995
3995
|
const n = hr(e);
|
|
3996
3996
|
return Math.round(t * n) / n;
|
|
3997
3997
|
}
|
|
@@ -4022,21 +4022,21 @@ function V1(e) {
|
|
|
4022
4022
|
placement: t,
|
|
4023
4023
|
middlewareData: {},
|
|
4024
4024
|
isPositioned: !1
|
|
4025
|
-
}), [_,
|
|
4026
|
-
jt(_, o) ||
|
|
4027
|
-
const [w, p] = h.useState(null), [
|
|
4028
|
-
|
|
4029
|
-
}, []), b = h.useCallback((
|
|
4030
|
-
|
|
4031
|
-
}, []), y = a || w, x = i ||
|
|
4032
|
-
if (!
|
|
4025
|
+
}), [_, m] = h.useState(o);
|
|
4026
|
+
jt(_, o) || m(o);
|
|
4027
|
+
const [w, p] = h.useState(null), [g, v] = h.useState(null), C = h.useCallback((k) => {
|
|
4028
|
+
k !== E.current && (E.current = k, p(k));
|
|
4029
|
+
}, []), b = h.useCallback((k) => {
|
|
4030
|
+
k !== S.current && (S.current = k, v(k));
|
|
4031
|
+
}, []), y = a || w, x = i || g, E = h.useRef(null), S = h.useRef(null), L = h.useRef(u), $ = c != null, N = _n(c), T = _n(r), B = _n(l), H = h.useCallback(() => {
|
|
4032
|
+
if (!E.current || !S.current)
|
|
4033
4033
|
return;
|
|
4034
|
-
const
|
|
4034
|
+
const k = {
|
|
4035
4035
|
placement: t,
|
|
4036
4036
|
strategy: n,
|
|
4037
4037
|
middleware: _
|
|
4038
4038
|
};
|
|
4039
|
-
T.current && (
|
|
4039
|
+
T.current && (k.platform = T.current), I1(E.current, S.current, k).then((F) => {
|
|
4040
4040
|
const se = {
|
|
4041
4041
|
...F,
|
|
4042
4042
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -4045,14 +4045,14 @@ function V1(e) {
|
|
|
4045
4045
|
// setting it to `true` when `open === false` (must be specified).
|
|
4046
4046
|
isPositioned: B.current !== !1
|
|
4047
4047
|
};
|
|
4048
|
-
O.current && !jt(
|
|
4048
|
+
O.current && !jt(L.current, se) && (L.current = se, Zt.flushSync(() => {
|
|
4049
4049
|
d(se);
|
|
4050
4050
|
}));
|
|
4051
4051
|
});
|
|
4052
4052
|
}, [_, t, n, T, B]);
|
|
4053
4053
|
zt(() => {
|
|
4054
|
-
l === !1 &&
|
|
4055
|
-
...
|
|
4054
|
+
l === !1 && L.current.isPositioned && (L.current.isPositioned = !1, d((k) => ({
|
|
4055
|
+
...k,
|
|
4056
4056
|
isPositioned: !1
|
|
4057
4057
|
})));
|
|
4058
4058
|
}, [l]);
|
|
@@ -4060,14 +4060,14 @@ function V1(e) {
|
|
|
4060
4060
|
zt(() => (O.current = !0, () => {
|
|
4061
4061
|
O.current = !1;
|
|
4062
4062
|
}), []), zt(() => {
|
|
4063
|
-
if (y && (
|
|
4064
|
-
if (
|
|
4065
|
-
return
|
|
4063
|
+
if (y && (E.current = y), x && (S.current = x), y && x) {
|
|
4064
|
+
if (N.current)
|
|
4065
|
+
return N.current(y, x, H);
|
|
4066
4066
|
H();
|
|
4067
4067
|
}
|
|
4068
|
-
}, [y, x, H,
|
|
4068
|
+
}, [y, x, H, N, $]);
|
|
4069
4069
|
const j = h.useMemo(() => ({
|
|
4070
|
-
reference:
|
|
4070
|
+
reference: E,
|
|
4071
4071
|
floating: S,
|
|
4072
4072
|
setReference: C,
|
|
4073
4073
|
setFloating: b
|
|
@@ -4075,16 +4075,16 @@ function V1(e) {
|
|
|
4075
4075
|
reference: y,
|
|
4076
4076
|
floating: x
|
|
4077
4077
|
}), [y, x]), D = h.useMemo(() => {
|
|
4078
|
-
const
|
|
4078
|
+
const k = {
|
|
4079
4079
|
position: n,
|
|
4080
4080
|
left: 0,
|
|
4081
4081
|
top: 0
|
|
4082
4082
|
};
|
|
4083
4083
|
if (!z.floating)
|
|
4084
|
-
return
|
|
4085
|
-
const F =
|
|
4084
|
+
return k;
|
|
4085
|
+
const F = Eo(z.floating, u.x), se = Eo(z.floating, u.y);
|
|
4086
4086
|
return s ? {
|
|
4087
|
-
...
|
|
4087
|
+
...k,
|
|
4088
4088
|
transform: "translate(" + F + "px, " + se + "px)",
|
|
4089
4089
|
...hr(z.floating) >= 1.5 && {
|
|
4090
4090
|
willChange: "transform"
|
|
@@ -4125,10 +4125,10 @@ const H1 = (e) => {
|
|
|
4125
4125
|
}
|
|
4126
4126
|
};
|
|
4127
4127
|
}, B1 = (e, t) => ({
|
|
4128
|
-
...
|
|
4128
|
+
...N1(e),
|
|
4129
4129
|
options: [e, t]
|
|
4130
4130
|
}), j1 = (e, t) => ({
|
|
4131
|
-
...
|
|
4131
|
+
...k1(e),
|
|
4132
4132
|
options: [e, t]
|
|
4133
4133
|
}), W1 = (e, t) => ({
|
|
4134
4134
|
...M1(e),
|
|
@@ -4146,7 +4146,7 @@ const H1 = (e) => {
|
|
|
4146
4146
|
...H1(e),
|
|
4147
4147
|
options: [e, t]
|
|
4148
4148
|
});
|
|
4149
|
-
var X1 = "Arrow",
|
|
4149
|
+
var X1 = "Arrow", mr = h.forwardRef((e, t) => {
|
|
4150
4150
|
const { children: n, width: o = 10, height: r = 5, ...a } = e;
|
|
4151
4151
|
return /* @__PURE__ */ f(
|
|
4152
4152
|
G.svg,
|
|
@@ -4161,8 +4161,8 @@ var X1 = "Arrow", gr = h.forwardRef((e, t) => {
|
|
|
4161
4161
|
}
|
|
4162
4162
|
);
|
|
4163
4163
|
});
|
|
4164
|
-
|
|
4165
|
-
var Y1 =
|
|
4164
|
+
mr.displayName = X1;
|
|
4165
|
+
var Y1 = mr;
|
|
4166
4166
|
function G1(e) {
|
|
4167
4167
|
const [t, n] = h.useState(void 0);
|
|
4168
4168
|
return le(() => {
|
|
@@ -4185,7 +4185,7 @@ function G1(e) {
|
|
|
4185
4185
|
n(void 0);
|
|
4186
4186
|
}, [e]), t;
|
|
4187
4187
|
}
|
|
4188
|
-
var Kn = "Popper", [
|
|
4188
|
+
var Kn = "Popper", [gr, wr] = Wn(Kn), [K1, vr] = gr(Kn), Cr = (e) => {
|
|
4189
4189
|
const { __scopePopper: t, children: n } = e, [o, r] = h.useState(null);
|
|
4190
4190
|
return /* @__PURE__ */ f(K1, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
4191
4191
|
};
|
|
@@ -4200,7 +4200,7 @@ var br = "PopperAnchor", yr = h.forwardRef(
|
|
|
4200
4200
|
}
|
|
4201
4201
|
);
|
|
4202
4202
|
yr.displayName = br;
|
|
4203
|
-
var Qn = "PopperContent", [Q1, J1] =
|
|
4203
|
+
var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
|
|
4204
4204
|
(e, t) => {
|
|
4205
4205
|
const {
|
|
4206
4206
|
__scopePopper: n,
|
|
@@ -4214,26 +4214,26 @@ var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
|
4214
4214
|
collisionPadding: u = 0,
|
|
4215
4215
|
sticky: d = "partial",
|
|
4216
4216
|
hideWhenDetached: _ = !1,
|
|
4217
|
-
updatePositionStrategy:
|
|
4217
|
+
updatePositionStrategy: m = "optimized",
|
|
4218
4218
|
onPlaced: w,
|
|
4219
4219
|
...p
|
|
4220
|
-
} = e,
|
|
4221
|
-
padding:
|
|
4220
|
+
} = e, g = vr(Qn, n), [v, C] = h.useState(null), b = ne(t, (R) => C(R)), [y, x] = h.useState(null), E = G1(y), S = E?.width ?? 0, L = E?.height ?? 0, $ = o + (a !== "center" ? "-" + a : ""), N = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, T = Array.isArray(l) ? l : [l], B = T.length > 0, H = {
|
|
4221
|
+
padding: N,
|
|
4222
4222
|
boundary: T.filter(tu),
|
|
4223
4223
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
4224
4224
|
altBoundary: B
|
|
4225
|
-
}, { refs: O, floatingStyles: j, placement: z, isPositioned: D, middlewareData:
|
|
4225
|
+
}, { refs: O, floatingStyles: j, placement: z, isPositioned: D, middlewareData: k } = V1({
|
|
4226
4226
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
4227
4227
|
strategy: "fixed",
|
|
4228
|
-
placement:
|
|
4229
|
-
whileElementsMounted: (
|
|
4230
|
-
animationFrame:
|
|
4228
|
+
placement: $,
|
|
4229
|
+
whileElementsMounted: (...R) => R1(...R, {
|
|
4230
|
+
animationFrame: m === "always"
|
|
4231
4231
|
}),
|
|
4232
4232
|
elements: {
|
|
4233
|
-
reference:
|
|
4233
|
+
reference: g.anchor
|
|
4234
4234
|
},
|
|
4235
4235
|
middleware: [
|
|
4236
|
-
B1({ mainAxis: r +
|
|
4236
|
+
B1({ mainAxis: r + L, alignmentAxis: i }),
|
|
4237
4237
|
c && j1({
|
|
4238
4238
|
mainAxis: !0,
|
|
4239
4239
|
crossAxis: !1,
|
|
@@ -4243,20 +4243,20 @@ var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
|
4243
4243
|
c && F1({ ...H }),
|
|
4244
4244
|
U1({
|
|
4245
4245
|
...H,
|
|
4246
|
-
apply: ({ elements:
|
|
4247
|
-
const { width: Z, height: Q } = X.reference, fe =
|
|
4246
|
+
apply: ({ elements: R, rects: X, availableWidth: oe, availableHeight: U }) => {
|
|
4247
|
+
const { width: Z, height: Q } = X.reference, fe = R.floating.style;
|
|
4248
4248
|
fe.setProperty("--radix-popper-available-width", `${oe}px`), fe.setProperty("--radix-popper-available-height", `${U}px`), fe.setProperty("--radix-popper-anchor-width", `${Z}px`), fe.setProperty("--radix-popper-anchor-height", `${Q}px`);
|
|
4249
4249
|
}
|
|
4250
4250
|
}),
|
|
4251
4251
|
y && q1({ element: y, padding: s }),
|
|
4252
|
-
nu({ arrowWidth: S, arrowHeight:
|
|
4252
|
+
nu({ arrowWidth: S, arrowHeight: L }),
|
|
4253
4253
|
_ && Z1({ strategy: "referenceHidden", ...H })
|
|
4254
4254
|
]
|
|
4255
|
-
}), [F, se] =
|
|
4255
|
+
}), [F, se] = Lr(z), Ve = Ze(w);
|
|
4256
4256
|
le(() => {
|
|
4257
4257
|
D && Ve?.();
|
|
4258
4258
|
}, [D, Ve]);
|
|
4259
|
-
const ft =
|
|
4259
|
+
const ft = k.arrow?.x, _t = k.arrow?.y, Re = k.arrow?.centerOffset !== 0, [Ke, He] = h.useState();
|
|
4260
4260
|
return le(() => {
|
|
4261
4261
|
v && He(window.getComputedStyle(v).zIndex);
|
|
4262
4262
|
}, [v]), /* @__PURE__ */ f(
|
|
@@ -4271,13 +4271,13 @@ var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
|
4271
4271
|
minWidth: "max-content",
|
|
4272
4272
|
zIndex: Ke,
|
|
4273
4273
|
"--radix-popper-transform-origin": [
|
|
4274
|
-
|
|
4275
|
-
|
|
4274
|
+
k.transformOrigin?.x,
|
|
4275
|
+
k.transformOrigin?.y
|
|
4276
4276
|
].join(" "),
|
|
4277
4277
|
// hide the content if using the hide middleware and should be hidden
|
|
4278
4278
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
4279
4279
|
// as if the PopperContent isn't there at all
|
|
4280
|
-
...
|
|
4280
|
+
...k.hide?.referenceHidden && {
|
|
4281
4281
|
visibility: "hidden",
|
|
4282
4282
|
pointerEvents: "none"
|
|
4283
4283
|
}
|
|
@@ -4291,7 +4291,7 @@ var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
|
4291
4291
|
onArrowChange: x,
|
|
4292
4292
|
arrowX: ft,
|
|
4293
4293
|
arrowY: _t,
|
|
4294
|
-
shouldHideArrow:
|
|
4294
|
+
shouldHideArrow: Re,
|
|
4295
4295
|
children: /* @__PURE__ */ f(
|
|
4296
4296
|
G.div,
|
|
4297
4297
|
{
|
|
@@ -4319,7 +4319,7 @@ var Sr = "PopperArrow", eu = {
|
|
|
4319
4319
|
right: "left",
|
|
4320
4320
|
bottom: "top",
|
|
4321
4321
|
left: "right"
|
|
4322
|
-
},
|
|
4322
|
+
}, Er = h.forwardRef(function(t, n) {
|
|
4323
4323
|
const { __scopePopper: o, ...r } = t, a = J1(Sr, o), i = eu[a.placedSide];
|
|
4324
4324
|
return (
|
|
4325
4325
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
@@ -4364,7 +4364,7 @@ var Sr = "PopperArrow", eu = {
|
|
|
4364
4364
|
)
|
|
4365
4365
|
);
|
|
4366
4366
|
});
|
|
4367
|
-
|
|
4367
|
+
Er.displayName = Sr;
|
|
4368
4368
|
function tu(e) {
|
|
4369
4369
|
return e !== null;
|
|
4370
4370
|
}
|
|
@@ -4372,24 +4372,24 @@ var nu = (e) => ({
|
|
|
4372
4372
|
name: "transformOrigin",
|
|
4373
4373
|
options: e,
|
|
4374
4374
|
fn(t) {
|
|
4375
|
-
const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, u] =
|
|
4375
|
+
const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, s = i ? 0 : e.arrowWidth, c = i ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], _ = (r.arrow?.x ?? 0) + s / 2, m = (r.arrow?.y ?? 0) + c / 2;
|
|
4376
4376
|
let w = "", p = "";
|
|
4377
|
-
return l === "bottom" ? (w = i ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = i ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = i ? d : `${
|
|
4377
|
+
return l === "bottom" ? (w = i ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = i ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = i ? d : `${m}px`) : l === "left" && (w = `${o.floating.width + c}px`, p = i ? d : `${m}px`), { data: { x: w, y: p } };
|
|
4378
4378
|
}
|
|
4379
4379
|
});
|
|
4380
|
-
function
|
|
4380
|
+
function Lr(e) {
|
|
4381
4381
|
const [t, n = "center"] = e.split("-");
|
|
4382
4382
|
return [t, n];
|
|
4383
4383
|
}
|
|
4384
|
-
var ou = Cr, ru = yr, au = xr, su =
|
|
4384
|
+
var ou = Cr, ru = yr, au = xr, su = Er, iu = "Portal", Pr = h.forwardRef((e, t) => {
|
|
4385
4385
|
const { container: n, ...o } = e, [r, a] = h.useState(!1);
|
|
4386
4386
|
le(() => a(!0), []);
|
|
4387
4387
|
const i = n || r && globalThis?.document?.body;
|
|
4388
4388
|
return i ? va.createPortal(/* @__PURE__ */ f(G.div, { ...o, ref: t }), i) : null;
|
|
4389
4389
|
});
|
|
4390
|
-
|
|
4390
|
+
Pr.displayName = iu;
|
|
4391
4391
|
var cu = h[" useInsertionEffect ".trim().toString()] || le;
|
|
4392
|
-
function
|
|
4392
|
+
function Lo({
|
|
4393
4393
|
prop: e,
|
|
4394
4394
|
defaultProp: t,
|
|
4395
4395
|
onChange: n = () => {
|
|
@@ -4439,7 +4439,7 @@ function du(e) {
|
|
|
4439
4439
|
const t = h.useRef({ value: e, previous: e });
|
|
4440
4440
|
return h.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
4441
4441
|
}
|
|
4442
|
-
var
|
|
4442
|
+
var $r = Object.freeze({
|
|
4443
4443
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4444
4444
|
position: "absolute",
|
|
4445
4445
|
border: 0,
|
|
@@ -4457,7 +4457,7 @@ var Pr = Object.freeze({
|
|
|
4457
4457
|
{
|
|
4458
4458
|
...e,
|
|
4459
4459
|
ref: t,
|
|
4460
|
-
style: {
|
|
4460
|
+
style: { ...$r, ...e.style }
|
|
4461
4461
|
}
|
|
4462
4462
|
)
|
|
4463
4463
|
);
|
|
@@ -4467,21 +4467,21 @@ var pu = function(e) {
|
|
|
4467
4467
|
return null;
|
|
4468
4468
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4469
4469
|
return t.ownerDocument.body;
|
|
4470
|
-
}, et = /* @__PURE__ */ new WeakMap(),
|
|
4471
|
-
return e && (e.host ||
|
|
4470
|
+
}, et = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Nt = {}, pn = 0, Rr = function(e) {
|
|
4471
|
+
return e && (e.host || Rr(e.parentNode));
|
|
4472
4472
|
}, hu = function(e, t) {
|
|
4473
4473
|
return t.map(function(n) {
|
|
4474
4474
|
if (e.contains(n))
|
|
4475
4475
|
return n;
|
|
4476
|
-
var o =
|
|
4476
|
+
var o = Rr(n);
|
|
4477
4477
|
return o && e.contains(o) ? o : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
4478
4478
|
}).filter(function(n) {
|
|
4479
4479
|
return !!n;
|
|
4480
4480
|
});
|
|
4481
|
-
},
|
|
4481
|
+
}, mu = function(e, t, n, o) {
|
|
4482
4482
|
var r = hu(t, Array.isArray(e) ? e : [e]);
|
|
4483
|
-
|
|
4484
|
-
var a =
|
|
4483
|
+
Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
|
|
4484
|
+
var a = Nt[n], i = [], s = /* @__PURE__ */ new Set(), c = new Set(r), l = function(d) {
|
|
4485
4485
|
!d || s.has(d) || (s.add(d), l(d.parentNode));
|
|
4486
4486
|
};
|
|
4487
4487
|
r.forEach(l);
|
|
@@ -4491,8 +4491,8 @@ var pu = function(e) {
|
|
|
4491
4491
|
u(_);
|
|
4492
4492
|
else
|
|
4493
4493
|
try {
|
|
4494
|
-
var
|
|
4495
|
-
et.set(_, p), a.set(_,
|
|
4494
|
+
var m = _.getAttribute(o), w = m !== null && m !== "false", p = (et.get(_) || 0) + 1, g = (a.get(_) || 0) + 1;
|
|
4495
|
+
et.set(_, p), a.set(_, g), i.push(_), p === 1 && w && Rt.set(_, !0), g === 1 && _.setAttribute(n, "true"), w || _.setAttribute(o, "true");
|
|
4496
4496
|
} catch (v) {
|
|
4497
4497
|
console.error("aria-hidden: cannot operate on ", _, v);
|
|
4498
4498
|
}
|
|
@@ -4500,14 +4500,14 @@ var pu = function(e) {
|
|
|
4500
4500
|
};
|
|
4501
4501
|
return u(t), s.clear(), pn++, function() {
|
|
4502
4502
|
i.forEach(function(d) {
|
|
4503
|
-
var _ = et.get(d) - 1,
|
|
4504
|
-
et.set(d, _), a.set(d,
|
|
4505
|
-
}), pn--, pn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(),
|
|
4503
|
+
var _ = et.get(d) - 1, m = a.get(d) - 1;
|
|
4504
|
+
et.set(d, _), a.set(d, m), _ || (Rt.has(d) || d.removeAttribute(o), Rt.delete(d)), m || d.removeAttribute(n);
|
|
4505
|
+
}), pn--, pn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Nt = {});
|
|
4506
4506
|
};
|
|
4507
|
-
},
|
|
4507
|
+
}, gu = function(e, t, n) {
|
|
4508
4508
|
n === void 0 && (n = "data-aria-hidden");
|
|
4509
4509
|
var o = Array.from(Array.isArray(e) ? e : [e]), r = pu(e);
|
|
4510
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))),
|
|
4510
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), mu(o, r, n, "aria-hidden")) : function() {
|
|
4511
4511
|
return null;
|
|
4512
4512
|
};
|
|
4513
4513
|
}, Ce = function() {
|
|
@@ -4519,7 +4519,7 @@ var pu = function(e) {
|
|
|
4519
4519
|
return t;
|
|
4520
4520
|
}, Ce.apply(this, arguments);
|
|
4521
4521
|
};
|
|
4522
|
-
function
|
|
4522
|
+
function Nr(e, t) {
|
|
4523
4523
|
var n = {};
|
|
4524
4524
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
4525
4525
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -4557,7 +4557,7 @@ function bu(e, t) {
|
|
|
4557
4557
|
})[0];
|
|
4558
4558
|
return n.callback = t, n.facade;
|
|
4559
4559
|
}
|
|
4560
|
-
var yu = typeof window < "u" ? h.useLayoutEffect : h.useEffect,
|
|
4560
|
+
var yu = typeof window < "u" ? h.useLayoutEffect : h.useEffect, Po = /* @__PURE__ */ new WeakMap();
|
|
4561
4561
|
function xu(e, t) {
|
|
4562
4562
|
var n = bu(null, function(o) {
|
|
4563
4563
|
return e.forEach(function(r) {
|
|
@@ -4565,7 +4565,7 @@ function xu(e, t) {
|
|
|
4565
4565
|
});
|
|
4566
4566
|
});
|
|
4567
4567
|
return yu(function() {
|
|
4568
|
-
var o =
|
|
4568
|
+
var o = Po.get(n);
|
|
4569
4569
|
if (o) {
|
|
4570
4570
|
var r = new Set(o), a = new Set(e), i = n.current;
|
|
4571
4571
|
r.forEach(function(s) {
|
|
@@ -4574,13 +4574,13 @@ function xu(e, t) {
|
|
|
4574
4574
|
r.has(s) || hn(s, i);
|
|
4575
4575
|
});
|
|
4576
4576
|
}
|
|
4577
|
-
|
|
4577
|
+
Po.set(n, e);
|
|
4578
4578
|
}, [e]), n;
|
|
4579
4579
|
}
|
|
4580
4580
|
function Su(e) {
|
|
4581
4581
|
return e;
|
|
4582
4582
|
}
|
|
4583
|
-
function
|
|
4583
|
+
function Eu(e, t) {
|
|
4584
4584
|
t === void 0 && (t = Su);
|
|
4585
4585
|
var n = [], o = !1, r = {
|
|
4586
4586
|
read: function() {
|
|
@@ -4635,13 +4635,13 @@ function ku(e, t) {
|
|
|
4635
4635
|
};
|
|
4636
4636
|
return r;
|
|
4637
4637
|
}
|
|
4638
|
-
function
|
|
4638
|
+
function Lu(e) {
|
|
4639
4639
|
e === void 0 && (e = {});
|
|
4640
|
-
var t =
|
|
4640
|
+
var t = Eu(null);
|
|
4641
4641
|
return t.options = Ce({ async: !0, ssr: !1 }, e), t;
|
|
4642
4642
|
}
|
|
4643
|
-
var
|
|
4644
|
-
var t = e.sideCar, n =
|
|
4643
|
+
var kr = function(e) {
|
|
4644
|
+
var t = e.sideCar, n = Nr(e, ["sideCar"]);
|
|
4645
4645
|
if (!t)
|
|
4646
4646
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
4647
4647
|
var o = t.read();
|
|
@@ -4649,22 +4649,22 @@ var Nr = function(e) {
|
|
|
4649
4649
|
throw new Error("Sidecar medium not found");
|
|
4650
4650
|
return h.createElement(o, Ce({}, n));
|
|
4651
4651
|
};
|
|
4652
|
-
|
|
4653
|
-
function
|
|
4654
|
-
return e.useMedium(t),
|
|
4652
|
+
kr.isSideCarExport = !0;
|
|
4653
|
+
function Pu(e, t) {
|
|
4654
|
+
return e.useMedium(t), kr;
|
|
4655
4655
|
}
|
|
4656
|
-
var Ar =
|
|
4656
|
+
var Ar = Lu(), mn = function() {
|
|
4657
4657
|
}, Kt = h.forwardRef(function(e, t) {
|
|
4658
4658
|
var n = h.useRef(null), o = h.useState({
|
|
4659
|
-
onScrollCapture:
|
|
4660
|
-
onWheelCapture:
|
|
4661
|
-
onTouchMoveCapture:
|
|
4662
|
-
}), r = o[0], a = o[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, _ = e.sideCar,
|
|
4659
|
+
onScrollCapture: mn,
|
|
4660
|
+
onWheelCapture: mn,
|
|
4661
|
+
onTouchMoveCapture: mn
|
|
4662
|
+
}), r = o[0], a = o[1], i = e.forwardProps, s = e.children, c = e.className, l = e.removeScrollBar, u = e.enabled, d = e.shards, _ = e.sideCar, m = e.noRelative, w = e.noIsolation, p = e.inert, g = e.allowPinchZoom, v = e.as, C = v === void 0 ? "div" : v, b = e.gapMode, y = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = _, E = xu([n, t]), S = Ce(Ce({}, y), r);
|
|
4663
4663
|
return h.createElement(
|
|
4664
4664
|
h.Fragment,
|
|
4665
4665
|
null,
|
|
4666
|
-
u && h.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative:
|
|
4667
|
-
i ? h.cloneElement(h.Children.only(s), Ce(Ce({}, S), { ref:
|
|
4666
|
+
u && h.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative: m, noIsolation: w, inert: p, setCallbacks: a, allowPinchZoom: !!g, lockRef: n, gapMode: b }),
|
|
4667
|
+
i ? h.cloneElement(h.Children.only(s), Ce(Ce({}, S), { ref: E })) : h.createElement(C, Ce({}, S, { className: c, ref: E }), s)
|
|
4668
4668
|
);
|
|
4669
4669
|
});
|
|
4670
4670
|
Kt.defaultProps = {
|
|
@@ -4676,22 +4676,22 @@ Kt.classNames = {
|
|
|
4676
4676
|
fullWidth: It,
|
|
4677
4677
|
zeroRight: Mt
|
|
4678
4678
|
};
|
|
4679
|
-
var
|
|
4679
|
+
var $u = function() {
|
|
4680
4680
|
if (typeof __webpack_nonce__ < "u")
|
|
4681
4681
|
return __webpack_nonce__;
|
|
4682
4682
|
};
|
|
4683
|
-
function
|
|
4683
|
+
function Ru() {
|
|
4684
4684
|
if (!document)
|
|
4685
4685
|
return null;
|
|
4686
4686
|
var e = document.createElement("style");
|
|
4687
4687
|
e.type = "text/css";
|
|
4688
|
-
var t =
|
|
4688
|
+
var t = $u();
|
|
4689
4689
|
return t && e.setAttribute("nonce", t), e;
|
|
4690
4690
|
}
|
|
4691
|
-
function
|
|
4691
|
+
function Nu(e, t) {
|
|
4692
4692
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
4693
4693
|
}
|
|
4694
|
-
function
|
|
4694
|
+
function ku(e) {
|
|
4695
4695
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
4696
4696
|
t.appendChild(e);
|
|
4697
4697
|
}
|
|
@@ -4699,7 +4699,7 @@ var Au = function() {
|
|
|
4699
4699
|
var e = 0, t = null;
|
|
4700
4700
|
return {
|
|
4701
4701
|
add: function(n) {
|
|
4702
|
-
e == 0 && (t =
|
|
4702
|
+
e == 0 && (t = Ru()) && (Nu(t, n), ku(t)), e++;
|
|
4703
4703
|
},
|
|
4704
4704
|
remove: function() {
|
|
4705
4705
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
@@ -4725,11 +4725,11 @@ var Au = function() {
|
|
|
4725
4725
|
top: 0,
|
|
4726
4726
|
right: 0,
|
|
4727
4727
|
gap: 0
|
|
4728
|
-
},
|
|
4728
|
+
}, gn = function(e) {
|
|
4729
4729
|
return parseInt(e || "", 10) || 0;
|
|
4730
4730
|
}, Mu = function(e) {
|
|
4731
4731
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
4732
|
-
return [
|
|
4732
|
+
return [gn(n), gn(o), gn(r)];
|
|
4733
4733
|
}, Iu = function(e) {
|
|
4734
4734
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4735
4735
|
return zu;
|
|
@@ -4784,13 +4784,13 @@ var Au = function() {
|
|
|
4784
4784
|
`).concat(Cu, ": ").concat(s, `px;
|
|
4785
4785
|
}
|
|
4786
4786
|
`);
|
|
4787
|
-
},
|
|
4787
|
+
}, $o = function() {
|
|
4788
4788
|
var e = parseInt(document.body.getAttribute(at) || "0", 10);
|
|
4789
4789
|
return isFinite(e) ? e : 0;
|
|
4790
4790
|
}, Vu = function() {
|
|
4791
4791
|
h.useEffect(function() {
|
|
4792
|
-
return document.body.setAttribute(at, (
|
|
4793
|
-
var e =
|
|
4792
|
+
return document.body.setAttribute(at, ($o() + 1).toString()), function() {
|
|
4793
|
+
var e = $o() - 1;
|
|
4794
4794
|
e <= 0 ? document.body.removeAttribute(at) : document.body.setAttribute(at, e.toString());
|
|
4795
4795
|
};
|
|
4796
4796
|
}, []);
|
|
@@ -4801,19 +4801,19 @@ var Au = function() {
|
|
|
4801
4801
|
return Iu(r);
|
|
4802
4802
|
}, [r]);
|
|
4803
4803
|
return h.createElement(Ou, { styles: Du(a, !t, r, n ? "" : "!important") });
|
|
4804
|
-
},
|
|
4804
|
+
}, Ln = !1;
|
|
4805
4805
|
if (typeof window < "u")
|
|
4806
4806
|
try {
|
|
4807
|
-
var
|
|
4807
|
+
var kt = Object.defineProperty({}, "passive", {
|
|
4808
4808
|
get: function() {
|
|
4809
|
-
return
|
|
4809
|
+
return Ln = !0, !0;
|
|
4810
4810
|
}
|
|
4811
4811
|
});
|
|
4812
|
-
window.addEventListener("test",
|
|
4812
|
+
window.addEventListener("test", kt, kt), window.removeEventListener("test", kt, kt);
|
|
4813
4813
|
} catch {
|
|
4814
|
-
|
|
4814
|
+
Ln = !1;
|
|
4815
4815
|
}
|
|
4816
|
-
var tt =
|
|
4816
|
+
var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
|
|
4817
4817
|
return e.tagName === "TEXTAREA";
|
|
4818
4818
|
}, zr = function(e, t) {
|
|
4819
4819
|
if (!(e instanceof Element))
|
|
@@ -4828,7 +4828,7 @@ var tt = En ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4828
4828
|
return zr(e, "overflowY");
|
|
4829
4829
|
}, Wu = function(e) {
|
|
4830
4830
|
return zr(e, "overflowX");
|
|
4831
|
-
},
|
|
4831
|
+
}, Ro = function(e, t) {
|
|
4832
4832
|
var n = t.ownerDocument, o = t;
|
|
4833
4833
|
do {
|
|
4834
4834
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
@@ -4866,7 +4866,7 @@ var tt = En ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4866
4866
|
do {
|
|
4867
4867
|
if (!s)
|
|
4868
4868
|
break;
|
|
4869
|
-
var
|
|
4869
|
+
var m = Ir(e, s), w = m[0], p = m[1], g = m[2], v = p - g - a * w;
|
|
4870
4870
|
(w || v) && Mr(e, s) && (d += v, _ += w);
|
|
4871
4871
|
var C = s.parentNode;
|
|
4872
4872
|
s = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
|
|
@@ -4878,9 +4878,9 @@ var tt = En ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4878
4878
|
return (u && Math.abs(d) < 1 || !u && Math.abs(_) < 1) && (l = !0), l;
|
|
4879
4879
|
}, At = function(e) {
|
|
4880
4880
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
4881
|
-
}, Ro = function(e) {
|
|
4882
|
-
return [e.deltaX, e.deltaY];
|
|
4883
4881
|
}, No = function(e) {
|
|
4882
|
+
return [e.deltaX, e.deltaY];
|
|
4883
|
+
}, ko = function(e) {
|
|
4884
4884
|
return e && "current" in e ? e.current : e;
|
|
4885
4885
|
}, Xu = function(e, t) {
|
|
4886
4886
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -4897,50 +4897,50 @@ function Ku(e) {
|
|
|
4897
4897
|
}, [e]), h.useEffect(function() {
|
|
4898
4898
|
if (e.inert) {
|
|
4899
4899
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
4900
|
-
var p = wu([e.lockRef.current], (e.shards || []).map(
|
|
4901
|
-
return p.forEach(function(
|
|
4902
|
-
return
|
|
4900
|
+
var p = wu([e.lockRef.current], (e.shards || []).map(ko), !0).filter(Boolean);
|
|
4901
|
+
return p.forEach(function(g) {
|
|
4902
|
+
return g.classList.add("allow-interactivity-".concat(r));
|
|
4903
4903
|
}), function() {
|
|
4904
|
-
document.body.classList.remove("block-interactivity-".concat(r)), p.forEach(function(
|
|
4905
|
-
return
|
|
4904
|
+
document.body.classList.remove("block-interactivity-".concat(r)), p.forEach(function(g) {
|
|
4905
|
+
return g.classList.remove("allow-interactivity-".concat(r));
|
|
4906
4906
|
});
|
|
4907
4907
|
};
|
|
4908
4908
|
}
|
|
4909
4909
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
4910
|
-
var s = h.useCallback(function(p,
|
|
4910
|
+
var s = h.useCallback(function(p, g) {
|
|
4911
4911
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4912
4912
|
return !i.current.allowPinchZoom;
|
|
4913
|
-
var v = At(p), C = n.current, b = "deltaX" in p ? p.deltaX : C[0] - v[0], y = "deltaY" in p ? p.deltaY : C[1] - v[1], x,
|
|
4914
|
-
if ("touches" in p && S === "h" &&
|
|
4913
|
+
var v = At(p), C = n.current, b = "deltaX" in p ? p.deltaX : C[0] - v[0], y = "deltaY" in p ? p.deltaY : C[1] - v[1], x, E = p.target, S = Math.abs(b) > Math.abs(y) ? "h" : "v";
|
|
4914
|
+
if ("touches" in p && S === "h" && E.type === "range")
|
|
4915
4915
|
return !1;
|
|
4916
|
-
var
|
|
4917
|
-
if (!
|
|
4916
|
+
var L = Ro(S, E);
|
|
4917
|
+
if (!L)
|
|
4918
4918
|
return !0;
|
|
4919
|
-
if (
|
|
4919
|
+
if (L ? x = S : (x = S === "v" ? "h" : "v", L = Ro(S, E)), !L)
|
|
4920
4920
|
return !1;
|
|
4921
4921
|
if (!o.current && "changedTouches" in p && (b || y) && (o.current = x), !x)
|
|
4922
4922
|
return !0;
|
|
4923
|
-
var
|
|
4924
|
-
return qu(
|
|
4923
|
+
var $ = o.current || x;
|
|
4924
|
+
return qu($, g, p, $ === "h" ? b : y);
|
|
4925
4925
|
}, []), c = h.useCallback(function(p) {
|
|
4926
|
-
var
|
|
4926
|
+
var g = p;
|
|
4927
4927
|
if (!(!nt.length || nt[nt.length - 1] !== a)) {
|
|
4928
|
-
var v = "deltaY" in
|
|
4929
|
-
return x.name ===
|
|
4928
|
+
var v = "deltaY" in g ? No(g) : At(g), C = t.current.filter(function(x) {
|
|
4929
|
+
return x.name === g.type && (x.target === g.target || g.target === x.shadowParent) && Xu(x.delta, v);
|
|
4930
4930
|
})[0];
|
|
4931
4931
|
if (C && C.should) {
|
|
4932
|
-
|
|
4932
|
+
g.cancelable && g.preventDefault();
|
|
4933
4933
|
return;
|
|
4934
4934
|
}
|
|
4935
4935
|
if (!C) {
|
|
4936
|
-
var b = (i.current.shards || []).map(
|
|
4937
|
-
return x.contains(
|
|
4938
|
-
}), y = b.length > 0 ? s(
|
|
4939
|
-
y &&
|
|
4936
|
+
var b = (i.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
|
|
4937
|
+
return x.contains(g.target);
|
|
4938
|
+
}), y = b.length > 0 ? s(g, b[0]) : !i.current.noIsolation;
|
|
4939
|
+
y && g.cancelable && g.preventDefault();
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}, []), l = h.useCallback(function(p,
|
|
4943
|
-
var b = { name: p, delta:
|
|
4942
|
+
}, []), l = h.useCallback(function(p, g, v, C) {
|
|
4943
|
+
var b = { name: p, delta: g, target: v, should: C, shadowParent: Qu(v) };
|
|
4944
4944
|
t.current.push(b), setTimeout(function() {
|
|
4945
4945
|
t.current = t.current.filter(function(y) {
|
|
4946
4946
|
return y !== b;
|
|
@@ -4949,7 +4949,7 @@ function Ku(e) {
|
|
|
4949
4949
|
}, []), u = h.useCallback(function(p) {
|
|
4950
4950
|
n.current = At(p), o.current = void 0;
|
|
4951
4951
|
}, []), d = h.useCallback(function(p) {
|
|
4952
|
-
l(p.type,
|
|
4952
|
+
l(p.type, No(p), p.target, s(p, e.lockRef.current));
|
|
4953
4953
|
}, []), _ = h.useCallback(function(p) {
|
|
4954
4954
|
l(p.type, At(p), p.target, s(p, e.lockRef.current));
|
|
4955
4955
|
}, []);
|
|
@@ -4964,12 +4964,12 @@ function Ku(e) {
|
|
|
4964
4964
|
}), document.removeEventListener("wheel", c, tt), document.removeEventListener("touchmove", c, tt), document.removeEventListener("touchstart", u, tt);
|
|
4965
4965
|
};
|
|
4966
4966
|
}, []);
|
|
4967
|
-
var
|
|
4967
|
+
var m = e.removeScrollBar, w = e.inert;
|
|
4968
4968
|
return h.createElement(
|
|
4969
4969
|
h.Fragment,
|
|
4970
4970
|
null,
|
|
4971
4971
|
w ? h.createElement(a, { styles: Yu(r) }) : null,
|
|
4972
|
-
|
|
4972
|
+
m ? h.createElement(Hu, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
4973
4973
|
);
|
|
4974
4974
|
}
|
|
4975
4975
|
function Qu(e) {
|
|
@@ -4977,12 +4977,12 @@ function Qu(e) {
|
|
|
4977
4977
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4978
4978
|
return t;
|
|
4979
4979
|
}
|
|
4980
|
-
const Ju =
|
|
4980
|
+
const Ju = Pu(Ar, Ku);
|
|
4981
4981
|
var Or = h.forwardRef(function(e, t) {
|
|
4982
4982
|
return h.createElement(Kt, Ce({}, e, { ref: t, sideCar: Ju }));
|
|
4983
4983
|
});
|
|
4984
4984
|
Or.classNames = Kt.classNames;
|
|
4985
|
-
var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Select", [Qt, Jt, nd] =
|
|
4985
|
+
var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Select", [Qt, Jt, nd] = gl(Xe), [dt] = Wn(Xe, [
|
|
4986
4986
|
nd,
|
|
4987
4987
|
wr
|
|
4988
4988
|
]), en = wr(), [od, Oe] = dt(Xe), [rd, ad] = dt(Xe), Dr = (e) => {
|
|
@@ -4999,36 +4999,36 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
4999
4999
|
name: u,
|
|
5000
5000
|
autoComplete: d,
|
|
5001
5001
|
disabled: _,
|
|
5002
|
-
required:
|
|
5002
|
+
required: m,
|
|
5003
5003
|
form: w
|
|
5004
|
-
} = e, p = en(t), [
|
|
5004
|
+
} = e, p = en(t), [g, v] = h.useState(null), [C, b] = h.useState(null), [y, x] = h.useState(!1), E = vl(l), [S, L] = Lo({
|
|
5005
5005
|
prop: o,
|
|
5006
5006
|
defaultProp: r ?? !1,
|
|
5007
5007
|
onChange: a,
|
|
5008
5008
|
caller: Xe
|
|
5009
|
-
}), [
|
|
5009
|
+
}), [$, N] = Lo({
|
|
5010
5010
|
prop: i,
|
|
5011
5011
|
defaultProp: s,
|
|
5012
5012
|
onChange: c,
|
|
5013
5013
|
caller: Xe
|
|
5014
|
-
}), T = h.useRef(null), B =
|
|
5014
|
+
}), T = h.useRef(null), B = g ? w || !!g.closest("form") : !0, [H, O] = h.useState(/* @__PURE__ */ new Set()), j = Array.from(H).map((z) => z.props.value).join(";");
|
|
5015
5015
|
return /* @__PURE__ */ f(ou, { ...p, children: /* @__PURE__ */ A(
|
|
5016
5016
|
od,
|
|
5017
5017
|
{
|
|
5018
|
-
required:
|
|
5018
|
+
required: m,
|
|
5019
5019
|
scope: t,
|
|
5020
|
-
trigger:
|
|
5020
|
+
trigger: g,
|
|
5021
5021
|
onTriggerChange: v,
|
|
5022
5022
|
valueNode: C,
|
|
5023
5023
|
onValueNodeChange: b,
|
|
5024
5024
|
valueNodeHasChildren: y,
|
|
5025
5025
|
onValueNodeHasChildrenChange: x,
|
|
5026
5026
|
contentId: Fn(),
|
|
5027
|
-
value:
|
|
5028
|
-
onValueChange:
|
|
5027
|
+
value: $,
|
|
5028
|
+
onValueChange: N,
|
|
5029
5029
|
open: S,
|
|
5030
|
-
onOpenChange:
|
|
5031
|
-
dir:
|
|
5030
|
+
onOpenChange: L,
|
|
5031
|
+
dir: E,
|
|
5032
5032
|
triggerPointerDownPosRef: T,
|
|
5033
5033
|
disabled: _,
|
|
5034
5034
|
children: [
|
|
@@ -5041,8 +5041,8 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
5041
5041
|
}, []),
|
|
5042
5042
|
onNativeOptionRemove: h.useCallback((z) => {
|
|
5043
5043
|
O((D) => {
|
|
5044
|
-
const
|
|
5045
|
-
return
|
|
5044
|
+
const k = new Set(D);
|
|
5045
|
+
return k.delete(z), k;
|
|
5046
5046
|
});
|
|
5047
5047
|
}, []),
|
|
5048
5048
|
children: n
|
|
@@ -5052,16 +5052,16 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
5052
5052
|
oa,
|
|
5053
5053
|
{
|
|
5054
5054
|
"aria-hidden": !0,
|
|
5055
|
-
required:
|
|
5055
|
+
required: m,
|
|
5056
5056
|
tabIndex: -1,
|
|
5057
5057
|
name: u,
|
|
5058
5058
|
autoComplete: d,
|
|
5059
|
-
value:
|
|
5060
|
-
onChange: (z) =>
|
|
5059
|
+
value: $,
|
|
5060
|
+
onChange: (z) => N(z.target.value),
|
|
5061
5061
|
disabled: _,
|
|
5062
5062
|
form: w,
|
|
5063
5063
|
children: [
|
|
5064
|
-
|
|
5064
|
+
$ === void 0 ? /* @__PURE__ */ f("option", { value: "" }) : null,
|
|
5065
5065
|
Array.from(H)
|
|
5066
5066
|
]
|
|
5067
5067
|
},
|
|
@@ -5074,11 +5074,11 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
5074
5074
|
Dr.displayName = Xe;
|
|
5075
5075
|
var Vr = "SelectTrigger", Hr = h.forwardRef(
|
|
5076
5076
|
(e, t) => {
|
|
5077
|
-
const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = en(n), i = Oe(Vr, n), s = i.disabled || o, c = ne(t, i.onTriggerChange), l = Jt(n), u = h.useRef("touch"), [d, _,
|
|
5078
|
-
const
|
|
5077
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = en(n), i = Oe(Vr, n), s = i.disabled || o, c = ne(t, i.onTriggerChange), l = Jt(n), u = h.useRef("touch"), [d, _, m] = aa((p) => {
|
|
5078
|
+
const g = l().filter((b) => !b.disabled), v = g.find((b) => b.value === i.value), C = sa(g, p, v);
|
|
5079
5079
|
C !== void 0 && i.onValueChange(C.value);
|
|
5080
5080
|
}), w = (p) => {
|
|
5081
|
-
s || (i.onOpenChange(!0),
|
|
5081
|
+
s || (i.onOpenChange(!0), m()), p && (i.triggerPointerDownPosRef.current = {
|
|
5082
5082
|
x: Math.round(p.pageX),
|
|
5083
5083
|
y: Math.round(p.pageY)
|
|
5084
5084
|
});
|
|
@@ -5104,12 +5104,12 @@ var Vr = "SelectTrigger", Hr = h.forwardRef(
|
|
|
5104
5104
|
}),
|
|
5105
5105
|
onPointerDown: te(r.onPointerDown, (p) => {
|
|
5106
5106
|
u.current = p.pointerType;
|
|
5107
|
-
const
|
|
5108
|
-
|
|
5107
|
+
const g = p.target;
|
|
5108
|
+
g.hasPointerCapture(p.pointerId) && g.releasePointerCapture(p.pointerId), p.button === 0 && p.ctrlKey === !1 && p.pointerType === "mouse" && (w(p), p.preventDefault());
|
|
5109
5109
|
}),
|
|
5110
5110
|
onKeyDown: te(r.onKeyDown, (p) => {
|
|
5111
|
-
const
|
|
5112
|
-
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && _(p.key), !(
|
|
5111
|
+
const g = d.current !== "";
|
|
5112
|
+
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && _(p.key), !(g && p.key === " ") && ed.includes(p.key) && (w(), p.preventDefault());
|
|
5113
5113
|
})
|
|
5114
5114
|
}
|
|
5115
5115
|
) });
|
|
@@ -5127,7 +5127,7 @@ var Br = "SelectValue", jr = h.forwardRef(
|
|
|
5127
5127
|
...s,
|
|
5128
5128
|
ref: d,
|
|
5129
5129
|
style: { pointerEvents: "none" },
|
|
5130
|
-
children: ra(c.value) ? /* @__PURE__ */ f(
|
|
5130
|
+
children: ra(c.value) ? /* @__PURE__ */ f(Ee, { children: i }) : a
|
|
5131
5131
|
}
|
|
5132
5132
|
);
|
|
5133
5133
|
}
|
|
@@ -5140,7 +5140,7 @@ var sd = "SelectIcon", Wr = h.forwardRef(
|
|
|
5140
5140
|
}
|
|
5141
5141
|
);
|
|
5142
5142
|
Wr.displayName = sd;
|
|
5143
|
-
var id = "SelectPortal", Fr = (e) => /* @__PURE__ */ f(
|
|
5143
|
+
var id = "SelectPortal", Fr = (e) => /* @__PURE__ */ f(Pr, { asChild: !0, ...e });
|
|
5144
5144
|
Fr.displayName = id;
|
|
5145
5145
|
var Ye = "SelectContent", Ur = h.forwardRef(
|
|
5146
5146
|
(e, t) => {
|
|
@@ -5158,7 +5158,7 @@ var Ye = "SelectContent", Ur = h.forwardRef(
|
|
|
5158
5158
|
}
|
|
5159
5159
|
);
|
|
5160
5160
|
Ur.displayName = Ye;
|
|
5161
|
-
var
|
|
5161
|
+
var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ Dt("SelectContent.RemoveScroll"), qr = h.forwardRef(
|
|
5162
5162
|
(e, t) => {
|
|
5163
5163
|
const {
|
|
5164
5164
|
__scopeSelect: n,
|
|
@@ -5174,80 +5174,80 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5174
5174
|
alignOffset: u,
|
|
5175
5175
|
arrowPadding: d,
|
|
5176
5176
|
collisionBoundary: _,
|
|
5177
|
-
collisionPadding:
|
|
5177
|
+
collisionPadding: m,
|
|
5178
5178
|
sticky: w,
|
|
5179
5179
|
hideWhenDetached: p,
|
|
5180
|
-
avoidCollisions:
|
|
5180
|
+
avoidCollisions: g,
|
|
5181
5181
|
//
|
|
5182
5182
|
...v
|
|
5183
|
-
} = e, C = Oe(Ye, n), [b, y] = h.useState(null), [x,
|
|
5183
|
+
} = e, C = Oe(Ye, n), [b, y] = h.useState(null), [x, E] = h.useState(null), S = ne(t, (R) => y(R)), [L, $] = h.useState(null), [N, T] = h.useState(
|
|
5184
5184
|
null
|
|
5185
5185
|
), B = Jt(n), [H, O] = h.useState(!1), j = h.useRef(!1);
|
|
5186
5186
|
h.useEffect(() => {
|
|
5187
|
-
if (b) return
|
|
5188
|
-
}, [b]),
|
|
5187
|
+
if (b) return gu(b);
|
|
5188
|
+
}, [b]), $l();
|
|
5189
5189
|
const z = h.useCallback(
|
|
5190
|
-
(
|
|
5190
|
+
(R) => {
|
|
5191
5191
|
const [X, ...oe] = B().map((Q) => Q.ref.current), [U] = oe.slice(-1), Z = document.activeElement;
|
|
5192
|
-
for (const Q of
|
|
5192
|
+
for (const Q of R)
|
|
5193
5193
|
if (Q === Z || (Q?.scrollIntoView({ block: "nearest" }), Q === X && x && (x.scrollTop = 0), Q === U && x && (x.scrollTop = x.scrollHeight), Q?.focus(), document.activeElement !== Z)) return;
|
|
5194
5194
|
},
|
|
5195
5195
|
[B, x]
|
|
5196
5196
|
), D = h.useCallback(
|
|
5197
|
-
() => z([
|
|
5198
|
-
[z,
|
|
5197
|
+
() => z([L, b]),
|
|
5198
|
+
[z, L, b]
|
|
5199
5199
|
);
|
|
5200
5200
|
h.useEffect(() => {
|
|
5201
5201
|
H && D();
|
|
5202
5202
|
}, [H, D]);
|
|
5203
|
-
const { onOpenChange:
|
|
5203
|
+
const { onOpenChange: k, triggerPointerDownPosRef: F } = C;
|
|
5204
5204
|
h.useEffect(() => {
|
|
5205
5205
|
if (b) {
|
|
5206
|
-
let
|
|
5206
|
+
let R = { x: 0, y: 0 };
|
|
5207
5207
|
const X = (U) => {
|
|
5208
|
-
|
|
5208
|
+
R = {
|
|
5209
5209
|
x: Math.abs(Math.round(U.pageX) - (F.current?.x ?? 0)),
|
|
5210
5210
|
y: Math.abs(Math.round(U.pageY) - (F.current?.y ?? 0))
|
|
5211
5211
|
};
|
|
5212
5212
|
}, oe = (U) => {
|
|
5213
|
-
|
|
5213
|
+
R.x <= 10 && R.y <= 10 ? U.preventDefault() : b.contains(U.target) || k(!1), document.removeEventListener("pointermove", X), F.current = null;
|
|
5214
5214
|
};
|
|
5215
5215
|
return F.current !== null && (document.addEventListener("pointermove", X), document.addEventListener("pointerup", oe, { capture: !0, once: !0 })), () => {
|
|
5216
5216
|
document.removeEventListener("pointermove", X), document.removeEventListener("pointerup", oe, { capture: !0 });
|
|
5217
5217
|
};
|
|
5218
5218
|
}
|
|
5219
|
-
}, [b,
|
|
5220
|
-
const
|
|
5221
|
-
return window.addEventListener("blur",
|
|
5222
|
-
window.removeEventListener("blur",
|
|
5219
|
+
}, [b, k, F]), h.useEffect(() => {
|
|
5220
|
+
const R = () => k(!1);
|
|
5221
|
+
return window.addEventListener("blur", R), window.addEventListener("resize", R), () => {
|
|
5222
|
+
window.removeEventListener("blur", R), window.removeEventListener("resize", R);
|
|
5223
5223
|
};
|
|
5224
|
-
}, [
|
|
5225
|
-
const [se, Ve] = aa((
|
|
5226
|
-
const X = B().filter((Z) => !Z.disabled), oe = X.find((Z) => Z.ref.current === document.activeElement), U = sa(X,
|
|
5224
|
+
}, [k]);
|
|
5225
|
+
const [se, Ve] = aa((R) => {
|
|
5226
|
+
const X = B().filter((Z) => !Z.disabled), oe = X.find((Z) => Z.ref.current === document.activeElement), U = sa(X, R, oe);
|
|
5227
5227
|
U && setTimeout(() => U.ref.current.focus());
|
|
5228
5228
|
}), ft = h.useCallback(
|
|
5229
|
-
(
|
|
5229
|
+
(R, X, oe) => {
|
|
5230
5230
|
const U = !j.current && !oe;
|
|
5231
|
-
(C.value !== void 0 && C.value === X || U) && (
|
|
5231
|
+
(C.value !== void 0 && C.value === X || U) && ($(R), U && (j.current = !0));
|
|
5232
5232
|
},
|
|
5233
5233
|
[C.value]
|
|
5234
|
-
), _t = h.useCallback(() => b?.focus(), [b]),
|
|
5235
|
-
(
|
|
5234
|
+
), _t = h.useCallback(() => b?.focus(), [b]), Re = h.useCallback(
|
|
5235
|
+
(R, X, oe) => {
|
|
5236
5236
|
const U = !j.current && !oe;
|
|
5237
|
-
(C.value !== void 0 && C.value === X || U) && T(
|
|
5237
|
+
(C.value !== void 0 && C.value === X || U) && T(R);
|
|
5238
5238
|
},
|
|
5239
5239
|
[C.value]
|
|
5240
|
-
), Ke = o === "popper" ?
|
|
5240
|
+
), Ke = o === "popper" ? Pn : Xr, He = Ke === Pn ? {
|
|
5241
5241
|
side: s,
|
|
5242
5242
|
sideOffset: c,
|
|
5243
5243
|
align: l,
|
|
5244
5244
|
alignOffset: u,
|
|
5245
5245
|
arrowPadding: d,
|
|
5246
5246
|
collisionBoundary: _,
|
|
5247
|
-
collisionPadding:
|
|
5247
|
+
collisionPadding: m,
|
|
5248
5248
|
sticky: w,
|
|
5249
5249
|
hideWhenDetached: p,
|
|
5250
|
-
avoidCollisions:
|
|
5250
|
+
avoidCollisions: g
|
|
5251
5251
|
} : {};
|
|
5252
5252
|
return /* @__PURE__ */ f(
|
|
5253
5253
|
Zr,
|
|
@@ -5255,13 +5255,13 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5255
5255
|
scope: n,
|
|
5256
5256
|
content: b,
|
|
5257
5257
|
viewport: x,
|
|
5258
|
-
onViewportChange:
|
|
5258
|
+
onViewportChange: E,
|
|
5259
5259
|
itemRefCallback: ft,
|
|
5260
|
-
selectedItem:
|
|
5260
|
+
selectedItem: L,
|
|
5261
5261
|
onItemLeave: _t,
|
|
5262
|
-
itemTextRefCallback:
|
|
5262
|
+
itemTextRefCallback: Re,
|
|
5263
5263
|
focusSelectedItem: D,
|
|
5264
|
-
selectedItemText:
|
|
5264
|
+
selectedItemText: N,
|
|
5265
5265
|
position: o,
|
|
5266
5266
|
isPositioned: H,
|
|
5267
5267
|
searchRef: se,
|
|
@@ -5270,11 +5270,11 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5270
5270
|
{
|
|
5271
5271
|
asChild: !0,
|
|
5272
5272
|
trapped: C.open,
|
|
5273
|
-
onMountAutoFocus: (
|
|
5274
|
-
|
|
5273
|
+
onMountAutoFocus: (R) => {
|
|
5274
|
+
R.preventDefault();
|
|
5275
5275
|
},
|
|
5276
|
-
onUnmountAutoFocus: te(r, (
|
|
5277
|
-
C.trigger?.focus({ preventScroll: !0 }),
|
|
5276
|
+
onUnmountAutoFocus: te(r, (R) => {
|
|
5277
|
+
C.trigger?.focus({ preventScroll: !0 }), R.preventDefault();
|
|
5278
5278
|
}),
|
|
5279
5279
|
children: /* @__PURE__ */ f(
|
|
5280
5280
|
tr,
|
|
@@ -5283,7 +5283,7 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5283
5283
|
disableOutsidePointerEvents: !0,
|
|
5284
5284
|
onEscapeKeyDown: a,
|
|
5285
5285
|
onPointerDownOutside: i,
|
|
5286
|
-
onFocusOutside: (
|
|
5286
|
+
onFocusOutside: (R) => R.preventDefault(),
|
|
5287
5287
|
onDismiss: () => C.onOpenChange(!1),
|
|
5288
5288
|
children: /* @__PURE__ */ f(
|
|
5289
5289
|
Ke,
|
|
@@ -5292,7 +5292,7 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5292
5292
|
id: C.contentId,
|
|
5293
5293
|
"data-state": C.open ? "open" : "closed",
|
|
5294
5294
|
dir: C.dir,
|
|
5295
|
-
onContextMenu: (
|
|
5295
|
+
onContextMenu: (R) => R.preventDefault(),
|
|
5296
5296
|
...v,
|
|
5297
5297
|
...He,
|
|
5298
5298
|
onPlaced: () => O(!0),
|
|
@@ -5305,15 +5305,15 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5305
5305
|
outline: "none",
|
|
5306
5306
|
...v.style
|
|
5307
5307
|
},
|
|
5308
|
-
onKeyDown: te(v.onKeyDown, (
|
|
5309
|
-
const X =
|
|
5310
|
-
if (
|
|
5308
|
+
onKeyDown: te(v.onKeyDown, (R) => {
|
|
5309
|
+
const X = R.ctrlKey || R.altKey || R.metaKey;
|
|
5310
|
+
if (R.key === "Tab" && R.preventDefault(), !X && R.key.length === 1 && Ve(R.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(R.key)) {
|
|
5311
5311
|
let U = B().filter((Z) => !Z.disabled).map((Z) => Z.ref.current);
|
|
5312
|
-
if (["ArrowUp", "End"].includes(
|
|
5313
|
-
const Z =
|
|
5312
|
+
if (["ArrowUp", "End"].includes(R.key) && (U = U.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(R.key)) {
|
|
5313
|
+
const Z = R.target, Q = U.indexOf(Z);
|
|
5314
5314
|
U = U.slice(Q + 1);
|
|
5315
5315
|
}
|
|
5316
|
-
setTimeout(() => z(U)),
|
|
5316
|
+
setTimeout(() => z(U)), R.preventDefault();
|
|
5317
5317
|
}
|
|
5318
5318
|
})
|
|
5319
5319
|
}
|
|
@@ -5328,30 +5328,30 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5328
5328
|
);
|
|
5329
5329
|
qr.displayName = cd;
|
|
5330
5330
|
var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
5331
|
-
const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Oe(Ye, n), i = De(Ye, n), [s, c] = h.useState(null), [l, u] = h.useState(null), d = ne(t, (S) => u(S)), _ = Jt(n),
|
|
5332
|
-
if (a.trigger && a.valueNode && s && l && p &&
|
|
5333
|
-
const S = a.trigger.getBoundingClientRect(),
|
|
5331
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Oe(Ye, n), i = De(Ye, n), [s, c] = h.useState(null), [l, u] = h.useState(null), d = ne(t, (S) => u(S)), _ = Jt(n), m = h.useRef(!1), w = h.useRef(!0), { viewport: p, selectedItem: g, selectedItemText: v, focusSelectedItem: C } = i, b = h.useCallback(() => {
|
|
5332
|
+
if (a.trigger && a.valueNode && s && l && p && g && v) {
|
|
5333
|
+
const S = a.trigger.getBoundingClientRect(), L = l.getBoundingClientRect(), $ = a.valueNode.getBoundingClientRect(), N = v.getBoundingClientRect();
|
|
5334
5334
|
if (a.dir !== "rtl") {
|
|
5335
|
-
const Z =
|
|
5336
|
-
|
|
5335
|
+
const Z = N.left - L.left, Q = $.left - Z, fe = S.left - Q, Be = S.width + fe, on = Math.max(Be, L.width), rn = window.innerWidth - me, an = so(Q, [
|
|
5336
|
+
me,
|
|
5337
5337
|
// Prevents the content from going off the starting edge of the
|
|
5338
5338
|
// viewport. It may still go off the ending edge, but this can be
|
|
5339
5339
|
// controlled by the user since they may want to manage overflow in a
|
|
5340
5340
|
// specific way.
|
|
5341
5341
|
// https://github.com/radix-ui/primitives/issues/2049
|
|
5342
|
-
Math.max(
|
|
5342
|
+
Math.max(me, rn - on)
|
|
5343
5343
|
]);
|
|
5344
5344
|
s.style.minWidth = Be + "px", s.style.left = an + "px";
|
|
5345
5345
|
} else {
|
|
5346
|
-
const Z =
|
|
5347
|
-
|
|
5348
|
-
Math.max(
|
|
5346
|
+
const Z = L.right - N.right, Q = window.innerWidth - $.right - Z, fe = window.innerWidth - S.right - Q, Be = S.width + fe, on = Math.max(Be, L.width), rn = window.innerWidth - me, an = so(Q, [
|
|
5347
|
+
me,
|
|
5348
|
+
Math.max(me, rn - on)
|
|
5349
5349
|
]);
|
|
5350
5350
|
s.style.minWidth = Be + "px", s.style.right = an + "px";
|
|
5351
5351
|
}
|
|
5352
|
-
const T = _(), B = window.innerHeight -
|
|
5353
|
-
if (X <=
|
|
5354
|
-
const Z = T.length > 0 &&
|
|
5352
|
+
const T = _(), B = window.innerHeight - me * 2, H = p.scrollHeight, O = window.getComputedStyle(l), j = parseInt(O.borderTopWidth, 10), z = parseInt(O.paddingTop, 10), D = parseInt(O.borderBottomWidth, 10), k = parseInt(O.paddingBottom, 10), F = j + z + H + k + D, se = Math.min(g.offsetHeight * 5, F), Ve = window.getComputedStyle(p), ft = parseInt(Ve.paddingTop, 10), _t = parseInt(Ve.paddingBottom, 10), Re = S.top + S.height / 2 - me, Ke = B - Re, He = g.offsetHeight / 2, R = g.offsetTop + He, X = j + z + R, oe = F - X;
|
|
5353
|
+
if (X <= Re) {
|
|
5354
|
+
const Z = T.length > 0 && g === T[T.length - 1].ref.current;
|
|
5355
5355
|
s.style.bottom = "0px";
|
|
5356
5356
|
const Q = l.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(
|
|
5357
5357
|
Ke,
|
|
@@ -5360,16 +5360,16 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5360
5360
|
), Be = X + fe;
|
|
5361
5361
|
s.style.height = Be + "px";
|
|
5362
5362
|
} else {
|
|
5363
|
-
const Z = T.length > 0 &&
|
|
5363
|
+
const Z = T.length > 0 && g === T[0].ref.current;
|
|
5364
5364
|
s.style.top = "0px";
|
|
5365
5365
|
const fe = Math.max(
|
|
5366
|
-
|
|
5366
|
+
Re,
|
|
5367
5367
|
j + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
5368
5368
|
(Z ? ft : 0) + He
|
|
5369
5369
|
) + oe;
|
|
5370
|
-
s.style.height = fe + "px", p.scrollTop = X -
|
|
5370
|
+
s.style.height = fe + "px", p.scrollTop = X - Re + p.offsetTop;
|
|
5371
5371
|
}
|
|
5372
|
-
s.style.margin = `${
|
|
5372
|
+
s.style.margin = `${me}px 0`, s.style.minHeight = se + "px", s.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => m.current = !0);
|
|
5373
5373
|
}
|
|
5374
5374
|
}, [
|
|
5375
5375
|
_,
|
|
@@ -5378,7 +5378,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5378
5378
|
s,
|
|
5379
5379
|
l,
|
|
5380
5380
|
p,
|
|
5381
|
-
|
|
5381
|
+
g,
|
|
5382
5382
|
v,
|
|
5383
5383
|
a.dir,
|
|
5384
5384
|
o
|
|
@@ -5388,7 +5388,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5388
5388
|
le(() => {
|
|
5389
5389
|
l && x(window.getComputedStyle(l).zIndex);
|
|
5390
5390
|
}, [l]);
|
|
5391
|
-
const
|
|
5391
|
+
const E = h.useCallback(
|
|
5392
5392
|
(S) => {
|
|
5393
5393
|
S && w.current === !0 && (b(), C?.(), w.current = !1);
|
|
5394
5394
|
},
|
|
@@ -5399,8 +5399,8 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5399
5399
|
{
|
|
5400
5400
|
scope: n,
|
|
5401
5401
|
contentWrapper: s,
|
|
5402
|
-
shouldExpandOnScrollRef:
|
|
5403
|
-
onScrollButtonChange:
|
|
5402
|
+
shouldExpandOnScrollRef: m,
|
|
5403
|
+
onScrollButtonChange: E,
|
|
5404
5404
|
children: /* @__PURE__ */ f(
|
|
5405
5405
|
"div",
|
|
5406
5406
|
{
|
|
@@ -5432,11 +5432,11 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5432
5432
|
);
|
|
5433
5433
|
});
|
|
5434
5434
|
Xr.displayName = ud;
|
|
5435
|
-
var dd = "SelectPopperPosition",
|
|
5435
|
+
var dd = "SelectPopperPosition", Pn = h.forwardRef((e, t) => {
|
|
5436
5436
|
const {
|
|
5437
5437
|
__scopeSelect: n,
|
|
5438
5438
|
align: o = "start",
|
|
5439
|
-
collisionPadding: r =
|
|
5439
|
+
collisionPadding: r = me,
|
|
5440
5440
|
...a
|
|
5441
5441
|
} = e, i = en(n);
|
|
5442
5442
|
return /* @__PURE__ */ f(
|
|
@@ -5460,11 +5460,11 @@ var dd = "SelectPopperPosition", Ln = h.forwardRef((e, t) => {
|
|
|
5460
5460
|
}
|
|
5461
5461
|
);
|
|
5462
5462
|
});
|
|
5463
|
-
|
|
5464
|
-
var [fd, Jn] = dt(Ye, {}),
|
|
5463
|
+
Pn.displayName = dd;
|
|
5464
|
+
var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
|
|
5465
5465
|
(e, t) => {
|
|
5466
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, a = De(
|
|
5467
|
-
return /* @__PURE__ */ A(
|
|
5466
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, a = De($n, n), i = Jn($n, n), s = ne(t, a.onViewportChange), c = h.useRef(0);
|
|
5467
|
+
return /* @__PURE__ */ A(Ee, { children: [
|
|
5468
5468
|
/* @__PURE__ */ f(
|
|
5469
5469
|
"style",
|
|
5470
5470
|
{
|
|
@@ -5497,11 +5497,11 @@ var [fd, Jn] = dt(Ye, {}), Pn = "SelectViewport", Yr = h.forwardRef(
|
|
|
5497
5497
|
onScroll: te(r.onScroll, (l) => {
|
|
5498
5498
|
const u = l.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: _ } = i;
|
|
5499
5499
|
if (_?.current && d) {
|
|
5500
|
-
const
|
|
5501
|
-
if (
|
|
5502
|
-
const w = window.innerHeight -
|
|
5500
|
+
const m = Math.abs(c.current - u.scrollTop);
|
|
5501
|
+
if (m > 0) {
|
|
5502
|
+
const w = window.innerHeight - me * 2, p = parseFloat(d.style.minHeight), g = parseFloat(d.style.height), v = Math.max(p, g);
|
|
5503
5503
|
if (v < w) {
|
|
5504
|
-
const C = v +
|
|
5504
|
+
const C = v + m, b = Math.min(w, C), y = C - b;
|
|
5505
5505
|
d.style.height = b + "px", d.style.bottom === "0px" && (u.scrollTop = y > 0 ? y : 0, d.style.justifyContent = "flex-end");
|
|
5506
5506
|
}
|
|
5507
5507
|
}
|
|
@@ -5513,7 +5513,7 @@ var [fd, Jn] = dt(Ye, {}), Pn = "SelectViewport", Yr = h.forwardRef(
|
|
|
5513
5513
|
] });
|
|
5514
5514
|
}
|
|
5515
5515
|
);
|
|
5516
|
-
Yr.displayName =
|
|
5516
|
+
Yr.displayName = $n;
|
|
5517
5517
|
var Gr = "SelectGroup", [_d, pd] = dt(Gr), hd = h.forwardRef(
|
|
5518
5518
|
(e, t) => {
|
|
5519
5519
|
const { __scopeSelect: n, ...o } = e, r = Fn();
|
|
@@ -5521,14 +5521,14 @@ var Gr = "SelectGroup", [_d, pd] = dt(Gr), hd = h.forwardRef(
|
|
|
5521
5521
|
}
|
|
5522
5522
|
);
|
|
5523
5523
|
hd.displayName = Gr;
|
|
5524
|
-
var Kr = "SelectLabel",
|
|
5524
|
+
var Kr = "SelectLabel", md = h.forwardRef(
|
|
5525
5525
|
(e, t) => {
|
|
5526
5526
|
const { __scopeSelect: n, ...o } = e, r = pd(Kr, n);
|
|
5527
5527
|
return /* @__PURE__ */ f(G.div, { id: r.id, ...o, ref: t });
|
|
5528
5528
|
}
|
|
5529
5529
|
);
|
|
5530
|
-
|
|
5531
|
-
var Wt = "SelectItem", [
|
|
5530
|
+
md.displayName = Kr;
|
|
5531
|
+
var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
5532
5532
|
(e, t) => {
|
|
5533
5533
|
const {
|
|
5534
5534
|
__scopeSelect: n,
|
|
@@ -5536,10 +5536,10 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
|
5536
5536
|
disabled: r = !1,
|
|
5537
5537
|
textValue: a,
|
|
5538
5538
|
...i
|
|
5539
|
-
} = e, s = Oe(Wt, n), c = De(Wt, n), l = s.value === o, [u, d] = h.useState(a ?? ""), [_,
|
|
5539
|
+
} = e, s = Oe(Wt, n), c = De(Wt, n), l = s.value === o, [u, d] = h.useState(a ?? ""), [_, m] = h.useState(!1), w = ne(
|
|
5540
5540
|
t,
|
|
5541
5541
|
(C) => c.itemRefCallback?.(C, o, r)
|
|
5542
|
-
), p = Fn(),
|
|
5542
|
+
), p = Fn(), g = h.useRef("touch"), v = () => {
|
|
5543
5543
|
r || (s.onValueChange(o), s.onOpenChange(!1));
|
|
5544
5544
|
};
|
|
5545
5545
|
if (o === "")
|
|
@@ -5547,7 +5547,7 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
|
5547
5547
|
"A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder."
|
|
5548
5548
|
);
|
|
5549
5549
|
return /* @__PURE__ */ f(
|
|
5550
|
-
|
|
5550
|
+
gd,
|
|
5551
5551
|
{
|
|
5552
5552
|
scope: n,
|
|
5553
5553
|
value: o,
|
|
@@ -5577,19 +5577,19 @@ var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
|
5577
5577
|
tabIndex: r ? void 0 : -1,
|
|
5578
5578
|
...i,
|
|
5579
5579
|
ref: w,
|
|
5580
|
-
onFocus: te(i.onFocus, () =>
|
|
5581
|
-
onBlur: te(i.onBlur, () =>
|
|
5580
|
+
onFocus: te(i.onFocus, () => m(!0)),
|
|
5581
|
+
onBlur: te(i.onBlur, () => m(!1)),
|
|
5582
5582
|
onClick: te(i.onClick, () => {
|
|
5583
|
-
|
|
5583
|
+
g.current !== "mouse" && v();
|
|
5584
5584
|
}),
|
|
5585
5585
|
onPointerUp: te(i.onPointerUp, () => {
|
|
5586
|
-
|
|
5586
|
+
g.current === "mouse" && v();
|
|
5587
5587
|
}),
|
|
5588
5588
|
onPointerDown: te(i.onPointerDown, (C) => {
|
|
5589
|
-
|
|
5589
|
+
g.current = C.pointerType;
|
|
5590
5590
|
}),
|
|
5591
5591
|
onPointerMove: te(i.onPointerMove, (C) => {
|
|
5592
|
-
|
|
5592
|
+
g.current = C.pointerType, r ? c.onItemLeave?.() : g.current === "mouse" && C.currentTarget.focus({ preventScroll: !0 });
|
|
5593
5593
|
}),
|
|
5594
5594
|
onPointerLeave: te(i.onPointerLeave, (C) => {
|
|
5595
5595
|
C.currentTarget === document.activeElement && c.onItemLeave?.();
|
|
@@ -5613,11 +5613,11 @@ var wt = "SelectItemText", ea = h.forwardRef(
|
|
|
5613
5613
|
(v) => d(v),
|
|
5614
5614
|
c.onItemTextChange,
|
|
5615
5615
|
(v) => s.itemTextRefCallback?.(v, c.value, c.disabled)
|
|
5616
|
-
),
|
|
5617
|
-
() => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children:
|
|
5618
|
-
[c.disabled, c.value,
|
|
5619
|
-
), { onNativeOptionAdd: p, onNativeOptionRemove:
|
|
5620
|
-
return le(() => (p(w), () =>
|
|
5616
|
+
), m = u?.textContent, w = h.useMemo(
|
|
5617
|
+
() => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: m }, c.value),
|
|
5618
|
+
[c.disabled, c.value, m]
|
|
5619
|
+
), { onNativeOptionAdd: p, onNativeOptionRemove: g } = l;
|
|
5620
|
+
return le(() => (p(w), () => g(w)), [p, g, w]), /* @__PURE__ */ A(Ee, { children: [
|
|
5621
5621
|
/* @__PURE__ */ f(G.span, { id: c.textId, ...a, ref: _ }),
|
|
5622
5622
|
c.isSelected && i.valueNode && !i.valueNodeHasChildren ? Zt.createPortal(a.children, i.valueNode) : null
|
|
5623
5623
|
] });
|
|
@@ -5631,8 +5631,8 @@ var ta = "SelectItemIndicator", wd = h.forwardRef(
|
|
|
5631
5631
|
}
|
|
5632
5632
|
);
|
|
5633
5633
|
wd.displayName = ta;
|
|
5634
|
-
var
|
|
5635
|
-
const n = De(
|
|
5634
|
+
var Rn = "SelectScrollUpButton", vd = h.forwardRef((e, t) => {
|
|
5635
|
+
const n = De(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, a] = h.useState(!1), i = ne(t, o.onScrollButtonChange);
|
|
5636
5636
|
return le(() => {
|
|
5637
5637
|
if (n.viewport && n.isPositioned) {
|
|
5638
5638
|
let s = function() {
|
|
@@ -5654,9 +5654,9 @@ var $n = "SelectScrollUpButton", vd = h.forwardRef((e, t) => {
|
|
|
5654
5654
|
}
|
|
5655
5655
|
) : null;
|
|
5656
5656
|
});
|
|
5657
|
-
vd.displayName =
|
|
5658
|
-
var
|
|
5659
|
-
const n = De(
|
|
5657
|
+
vd.displayName = Rn;
|
|
5658
|
+
var Nn = "SelectScrollDownButton", Cd = h.forwardRef((e, t) => {
|
|
5659
|
+
const n = De(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, a] = h.useState(!1), i = ne(t, o.onScrollButtonChange);
|
|
5660
5660
|
return le(() => {
|
|
5661
5661
|
if (n.viewport && n.isPositioned) {
|
|
5662
5662
|
let s = function() {
|
|
@@ -5678,7 +5678,7 @@ var Rn = "SelectScrollDownButton", Cd = h.forwardRef((e, t) => {
|
|
|
5678
5678
|
}
|
|
5679
5679
|
) : null;
|
|
5680
5680
|
});
|
|
5681
|
-
Cd.displayName =
|
|
5681
|
+
Cd.displayName = Nn;
|
|
5682
5682
|
var na = h.forwardRef((e, t) => {
|
|
5683
5683
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n), i = h.useRef(null), s = Jt(n), c = h.useCallback(() => {
|
|
5684
5684
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
@@ -5710,13 +5710,13 @@ var na = h.forwardRef((e, t) => {
|
|
|
5710
5710
|
}
|
|
5711
5711
|
);
|
|
5712
5712
|
yd.displayName = bd;
|
|
5713
|
-
var
|
|
5713
|
+
var kn = "SelectArrow", xd = h.forwardRef(
|
|
5714
5714
|
(e, t) => {
|
|
5715
|
-
const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(
|
|
5715
|
+
const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(kn, n), i = De(kn, n);
|
|
5716
5716
|
return a.open && i.position === "popper" ? /* @__PURE__ */ f(su, { ...r, ...o, ref: t }) : null;
|
|
5717
5717
|
}
|
|
5718
5718
|
);
|
|
5719
|
-
xd.displayName =
|
|
5719
|
+
xd.displayName = kn;
|
|
5720
5720
|
var Sd = "SelectBubbleInput", oa = h.forwardRef(
|
|
5721
5721
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5722
5722
|
const r = h.useRef(null), a = ne(o, r), i = du(t);
|
|
@@ -5735,7 +5735,7 @@ var Sd = "SelectBubbleInput", oa = h.forwardRef(
|
|
|
5735
5735
|
G.select,
|
|
5736
5736
|
{
|
|
5737
5737
|
...n,
|
|
5738
|
-
style: {
|
|
5738
|
+
style: { ...$r, ...n.style },
|
|
5739
5739
|
ref: a,
|
|
5740
5740
|
defaultValue: t
|
|
5741
5741
|
}
|
|
@@ -5762,17 +5762,17 @@ function aa(e) {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
function sa(e, t, n) {
|
|
5764
5764
|
const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
5765
|
-
let i =
|
|
5765
|
+
let i = Ed(e, Math.max(a, 0));
|
|
5766
5766
|
r.length === 1 && (i = i.filter((l) => l !== n));
|
|
5767
5767
|
const c = i.find(
|
|
5768
5768
|
(l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
5769
5769
|
);
|
|
5770
5770
|
return c !== n ? c : void 0;
|
|
5771
5771
|
}
|
|
5772
|
-
function
|
|
5772
|
+
function Ed(e, t) {
|
|
5773
5773
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
5774
5774
|
}
|
|
5775
|
-
var
|
|
5775
|
+
var Ld = Dr, Pd = Hr, $d = jr, Rd = Wr, Nd = Fr, kd = Ur, Ad = Yr, Td = Jr, zd = ea;
|
|
5776
5776
|
const Md = "_focus_nhfh5_550", Id = "_swap_nhfh5_632", Od = "_swap__content_nhfh5_688", Dd = "_container_nhfh5_781", Vd = "_wrapper_nhfh5_787", Hd = "_disabled_nhfh5_803", Bd = "_size32_nhfh5_807", jd = "_size48_nhfh5_810", Wd = "_prefix_nhfh5_815", Fd = "_suffix_nhfh5_816", Ud = "_trigger_nhfh5_848", Zd = "_icon_nhfh5_876", qd = "_content_nhfh5_891", Xd = "_fadeIn_nhfh5_1", Yd = "_item_nhfh5_910", Gd = "_itemContent_nhfh5_936", Kd = "_itemLabel_nhfh5_944", Qd = "_label_nhfh5_953", Jd = "_value_nhfh5_961", Y = {
|
|
5777
5777
|
focus: Md,
|
|
5778
5778
|
"focus--default": "_focus--default_nhfh5_567",
|
|
@@ -5835,7 +5835,7 @@ function ia(...e) {
|
|
|
5835
5835
|
function Ge(...e) {
|
|
5836
5836
|
return Mn(ia(...e), e);
|
|
5837
5837
|
}
|
|
5838
|
-
const ca = /* @__PURE__ */
|
|
5838
|
+
const ca = /* @__PURE__ */ P((e, t) => {
|
|
5839
5839
|
const { children: n, ...o } = e, r = ot.toArray(n), a = r.find(n0);
|
|
5840
5840
|
if (a) {
|
|
5841
5841
|
const i = a.props.children, s = r.map((c) => c === a ? ot.count(i) > 1 ? ot.only(null) : /* @__PURE__ */ Ot(i) ? i.props.children : null : c);
|
|
@@ -5848,7 +5848,7 @@ const ca = /* @__PURE__ */ L((e, t) => {
|
|
|
5848
5848
|
}), n);
|
|
5849
5849
|
});
|
|
5850
5850
|
ca.displayName = "Slot";
|
|
5851
|
-
const An = /* @__PURE__ */
|
|
5851
|
+
const An = /* @__PURE__ */ P((e, t) => {
|
|
5852
5852
|
const { children: n, ...o } = e;
|
|
5853
5853
|
return /* @__PURE__ */ Ot(n) ? /* @__PURE__ */ In(n, {
|
|
5854
5854
|
...o0(o, n.props),
|
|
@@ -5899,7 +5899,7 @@ const r0 = [
|
|
|
5899
5899
|
"svg",
|
|
5900
5900
|
"ul"
|
|
5901
5901
|
], xt = r0.reduce((e, t) => {
|
|
5902
|
-
const n = /* @__PURE__ */
|
|
5902
|
+
const n = /* @__PURE__ */ P((o, r) => {
|
|
5903
5903
|
const { asChild: a, ...i } = o, s = a ? ca : t;
|
|
5904
5904
|
return ae(() => {
|
|
5905
5905
|
window[Symbol.for("radix-ui")] = !0;
|
|
@@ -5950,8 +5950,8 @@ function s0(e) {
|
|
|
5950
5950
|
]), Tn(() => {
|
|
5951
5951
|
const l = o.current, u = r.current;
|
|
5952
5952
|
if (u !== e) {
|
|
5953
|
-
const _ = a.current,
|
|
5954
|
-
e ? c("MOUNT") :
|
|
5953
|
+
const _ = a.current, m = Tt(l);
|
|
5954
|
+
e ? c("MOUNT") : m === "none" || l?.display === "none" ? c("UNMOUNT") : c(u && _ !== m ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
5955
5955
|
}
|
|
5956
5956
|
}, [
|
|
5957
5957
|
e,
|
|
@@ -5959,8 +5959,8 @@ function s0(e) {
|
|
|
5959
5959
|
]), Tn(() => {
|
|
5960
5960
|
if (t) {
|
|
5961
5961
|
const l = (d) => {
|
|
5962
|
-
const
|
|
5963
|
-
d.target === t &&
|
|
5962
|
+
const m = Tt(o.current).includes(d.animationName);
|
|
5963
|
+
d.target === t && m && Ca(
|
|
5964
5964
|
() => c("ANIMATION_END")
|
|
5965
5965
|
);
|
|
5966
5966
|
}, u = (d) => {
|
|
@@ -5996,16 +5996,16 @@ function i0(e, t = []) {
|
|
|
5996
5996
|
i
|
|
5997
5997
|
];
|
|
5998
5998
|
function l(d) {
|
|
5999
|
-
const { scope: _, children:
|
|
5999
|
+
const { scope: _, children: m, ...w } = d, p = _?.[e][c] || s, g = vt(
|
|
6000
6000
|
() => w,
|
|
6001
6001
|
Object.values(w)
|
|
6002
6002
|
);
|
|
6003
6003
|
return /* @__PURE__ */ V(p.Provider, {
|
|
6004
|
-
value:
|
|
6005
|
-
},
|
|
6004
|
+
value: g
|
|
6005
|
+
}, m);
|
|
6006
6006
|
}
|
|
6007
6007
|
function u(d, _) {
|
|
6008
|
-
const
|
|
6008
|
+
const m = _?.[e][c] || s, w = Io(m);
|
|
6009
6009
|
if (w) return w;
|
|
6010
6010
|
if (i !== void 0) return i;
|
|
6011
6011
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
@@ -6099,35 +6099,35 @@ function f0(e, t) {
|
|
|
6099
6099
|
return r ?? n;
|
|
6100
6100
|
}, e);
|
|
6101
6101
|
}
|
|
6102
|
-
const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
6103
|
-
const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: a = 600, ...i } = e, [s, c] = W(null), [l, u] = W(null), [d, _] = W(null), [
|
|
6102
|
+
const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */ P((e, t) => {
|
|
6103
|
+
const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: a = 600, ...i } = e, [s, c] = W(null), [l, u] = W(null), [d, _] = W(null), [m, w] = W(null), [p, g] = W(null), [v, C] = W(0), [b, y] = W(0), [x, E] = W(!1), [S, L] = W(!1), $ = Ge(
|
|
6104
6104
|
t,
|
|
6105
6105
|
(T) => c(T)
|
|
6106
|
-
),
|
|
6106
|
+
), N = u0(r);
|
|
6107
6107
|
return /* @__PURE__ */ V(_0, {
|
|
6108
6108
|
scope: n,
|
|
6109
6109
|
type: o,
|
|
6110
|
-
dir:
|
|
6110
|
+
dir: N,
|
|
6111
6111
|
scrollHideDelay: a,
|
|
6112
6112
|
scrollArea: s,
|
|
6113
6113
|
viewport: l,
|
|
6114
6114
|
onViewportChange: u,
|
|
6115
6115
|
content: d,
|
|
6116
6116
|
onContentChange: _,
|
|
6117
|
-
scrollbarX:
|
|
6117
|
+
scrollbarX: m,
|
|
6118
6118
|
onScrollbarXChange: w,
|
|
6119
6119
|
scrollbarXEnabled: x,
|
|
6120
|
-
onScrollbarXEnabledChange:
|
|
6120
|
+
onScrollbarXEnabledChange: E,
|
|
6121
6121
|
scrollbarY: p,
|
|
6122
|
-
onScrollbarYChange:
|
|
6122
|
+
onScrollbarYChange: g,
|
|
6123
6123
|
scrollbarYEnabled: S,
|
|
6124
|
-
onScrollbarYEnabledChange:
|
|
6124
|
+
onScrollbarYEnabledChange: L,
|
|
6125
6125
|
onCornerWidthChange: C,
|
|
6126
6126
|
onCornerHeightChange: y
|
|
6127
6127
|
}, /* @__PURE__ */ V(xt.div, q({
|
|
6128
|
-
dir:
|
|
6128
|
+
dir: N
|
|
6129
6129
|
}, i, {
|
|
6130
|
-
ref:
|
|
6130
|
+
ref: $,
|
|
6131
6131
|
style: {
|
|
6132
6132
|
position: "relative",
|
|
6133
6133
|
// Pass corner sizes as CSS vars to reduce re-renders of context consumers
|
|
@@ -6136,7 +6136,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6136
6136
|
...e.style
|
|
6137
6137
|
}
|
|
6138
6138
|
})));
|
|
6139
|
-
}), h0 = "ScrollAreaViewport",
|
|
6139
|
+
}), h0 = "ScrollAreaViewport", m0 = /* @__PURE__ */ P((e, t) => {
|
|
6140
6140
|
const { __scopeScrollArea: n, children: o, ...r } = e, a = he(h0, n), i = ce(null), s = Ge(t, i, a.onViewportChange);
|
|
6141
6141
|
return /* @__PURE__ */ V(zo, null, /* @__PURE__ */ V("style", {
|
|
6142
6142
|
dangerouslySetInnerHTML: {
|
|
@@ -6169,8 +6169,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6169
6169
|
display: "table"
|
|
6170
6170
|
}
|
|
6171
6171
|
}, o)));
|
|
6172
|
-
}),
|
|
6173
|
-
const { forceMount: n, ...o } = e, r = he(
|
|
6172
|
+
}), $e = "ScrollAreaScrollbar", g0 = /* @__PURE__ */ P((e, t) => {
|
|
6173
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: i } = r, s = e.orientation === "horizontal";
|
|
6174
6174
|
return ae(() => (s ? a(!0) : i(!0), () => {
|
|
6175
6175
|
s ? a(!1) : i(!1);
|
|
6176
6176
|
}), [
|
|
@@ -6189,8 +6189,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6189
6189
|
})) : r.type === "always" ? /* @__PURE__ */ V(eo, q({}, o, {
|
|
6190
6190
|
ref: t
|
|
6191
6191
|
})) : null;
|
|
6192
|
-
}), w0 = /* @__PURE__ */
|
|
6193
|
-
const { forceMount: n, ...o } = e, r = he(
|
|
6192
|
+
}), w0 = /* @__PURE__ */ P((e, t) => {
|
|
6193
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), [a, i] = W(!1);
|
|
6194
6194
|
return ae(() => {
|
|
6195
6195
|
const s = r.scrollArea;
|
|
6196
6196
|
let c = 0;
|
|
@@ -6217,8 +6217,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6217
6217
|
}, o, {
|
|
6218
6218
|
ref: t
|
|
6219
6219
|
})));
|
|
6220
|
-
}), v0 = /* @__PURE__ */
|
|
6221
|
-
const { forceMount: n, ...o } = e, r = he(
|
|
6220
|
+
}), v0 = /* @__PURE__ */ P((e, t) => {
|
|
6221
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), a = e.orientation === "horizontal", i = nn(
|
|
6222
6222
|
() => c("SCROLL_END"),
|
|
6223
6223
|
100
|
|
6224
6224
|
), [s, c] = f0("hidden", {
|
|
@@ -6256,8 +6256,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6256
6256
|
if (l) {
|
|
6257
6257
|
let d = l[u];
|
|
6258
6258
|
const _ = () => {
|
|
6259
|
-
const
|
|
6260
|
-
d !==
|
|
6259
|
+
const m = l[u];
|
|
6260
|
+
d !== m && (c("SCROLL"), i()), d = m;
|
|
6261
6261
|
};
|
|
6262
6262
|
return l.addEventListener("scroll", _), () => l.removeEventListener("scroll", _);
|
|
6263
6263
|
}
|
|
@@ -6281,8 +6281,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6281
6281
|
() => c("POINTER_LEAVE")
|
|
6282
6282
|
)
|
|
6283
6283
|
})));
|
|
6284
|
-
}), da = /* @__PURE__ */
|
|
6285
|
-
const n = he(
|
|
6284
|
+
}), da = /* @__PURE__ */ P((e, t) => {
|
|
6285
|
+
const n = he($e, e.__scopeScrollArea), { forceMount: o, ...r } = e, [a, i] = W(!1), s = e.orientation === "horizontal", c = nn(() => {
|
|
6286
6286
|
if (n.viewport) {
|
|
6287
6287
|
const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
6288
6288
|
i(s ? l : u);
|
|
@@ -6295,8 +6295,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6295
6295
|
}, r, {
|
|
6296
6296
|
ref: t
|
|
6297
6297
|
})));
|
|
6298
|
-
}), eo = /* @__PURE__ */
|
|
6299
|
-
const { orientation: n = "vertical", ...o } = e, r = he(
|
|
6298
|
+
}), eo = /* @__PURE__ */ P((e, t) => {
|
|
6299
|
+
const { orientation: n = "vertical", ...o } = e, r = he($e, e.__scopeScrollArea), a = ce(null), i = ce(0), [s, c] = W({
|
|
6300
6300
|
content: 0,
|
|
6301
6301
|
viewport: 0,
|
|
6302
6302
|
scrollbar: {
|
|
@@ -6313,15 +6313,15 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6313
6313
|
onThumbPointerUp: () => i.current = 0,
|
|
6314
6314
|
onThumbPointerDown: (_) => i.current = _
|
|
6315
6315
|
};
|
|
6316
|
-
function d(_,
|
|
6317
|
-
return
|
|
6316
|
+
function d(_, m) {
|
|
6317
|
+
return L0(_, i.current, s, m);
|
|
6318
6318
|
}
|
|
6319
6319
|
return n === "horizontal" ? /* @__PURE__ */ V(C0, q({}, u, {
|
|
6320
6320
|
ref: t,
|
|
6321
6321
|
onThumbPositionChange: () => {
|
|
6322
6322
|
if (r.viewport && a.current) {
|
|
6323
|
-
const _ = r.viewport.scrollLeft,
|
|
6324
|
-
a.current.style.transform = `translate3d(${
|
|
6323
|
+
const _ = r.viewport.scrollLeft, m = Ao(_, s, r.dir);
|
|
6324
|
+
a.current.style.transform = `translate3d(${m}px, 0, 0)`;
|
|
6325
6325
|
}
|
|
6326
6326
|
},
|
|
6327
6327
|
onWheelScroll: (_) => {
|
|
@@ -6334,8 +6334,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6334
6334
|
ref: t,
|
|
6335
6335
|
onThumbPositionChange: () => {
|
|
6336
6336
|
if (r.viewport && a.current) {
|
|
6337
|
-
const _ = r.viewport.scrollTop,
|
|
6338
|
-
a.current.style.transform = `translate3d(0, ${
|
|
6337
|
+
const _ = r.viewport.scrollTop, m = Ao(_, s);
|
|
6338
|
+
a.current.style.transform = `translate3d(0, ${m}px, 0)`;
|
|
6339
6339
|
}
|
|
6340
6340
|
},
|
|
6341
6341
|
onWheelScroll: (_) => {
|
|
@@ -6345,8 +6345,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6345
6345
|
r.viewport && (r.viewport.scrollTop = d(_));
|
|
6346
6346
|
}
|
|
6347
6347
|
})) : null;
|
|
6348
|
-
}), C0 = /* @__PURE__ */
|
|
6349
|
-
const { sizes: n, onSizesChange: o, ...r } = e, a = he(
|
|
6348
|
+
}), C0 = /* @__PURE__ */ P((e, t) => {
|
|
6349
|
+
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [i, s] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarXChange);
|
|
6350
6350
|
return ae(() => {
|
|
6351
6351
|
c.current && s(getComputedStyle(c.current));
|
|
6352
6352
|
}, [
|
|
@@ -6368,7 +6368,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6368
6368
|
onWheelScroll: (u, d) => {
|
|
6369
6369
|
if (a.viewport) {
|
|
6370
6370
|
const _ = a.viewport.scrollLeft + u.deltaX;
|
|
6371
|
-
e.onWheelScroll(_),
|
|
6371
|
+
e.onWheelScroll(_), ga(_, d) && u.preventDefault();
|
|
6372
6372
|
}
|
|
6373
6373
|
},
|
|
6374
6374
|
onResize: () => {
|
|
@@ -6383,8 +6383,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6383
6383
|
});
|
|
6384
6384
|
}
|
|
6385
6385
|
}));
|
|
6386
|
-
}), b0 = /* @__PURE__ */
|
|
6387
|
-
const { sizes: n, onSizesChange: o, ...r } = e, a = he(
|
|
6386
|
+
}), b0 = /* @__PURE__ */ P((e, t) => {
|
|
6387
|
+
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [i, s] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarYChange);
|
|
6388
6388
|
return ae(() => {
|
|
6389
6389
|
c.current && s(getComputedStyle(c.current));
|
|
6390
6390
|
}, [
|
|
@@ -6407,7 +6407,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6407
6407
|
onWheelScroll: (u, d) => {
|
|
6408
6408
|
if (a.viewport) {
|
|
6409
6409
|
const _ = a.viewport.scrollTop + u.deltaY;
|
|
6410
|
-
e.onWheelScroll(_),
|
|
6410
|
+
e.onWheelScroll(_), ga(_, d) && u.preventDefault();
|
|
6411
6411
|
}
|
|
6412
6412
|
},
|
|
6413
6413
|
onResize: () => {
|
|
@@ -6422,28 +6422,28 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6422
6422
|
});
|
|
6423
6423
|
}
|
|
6424
6424
|
}));
|
|
6425
|
-
}), [y0, fa] = ua(
|
|
6426
|
-
const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: i, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e,
|
|
6425
|
+
}), [y0, fa] = ua($e), _a = /* @__PURE__ */ P((e, t) => {
|
|
6426
|
+
const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: i, onThumbPointerDown: s, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e, m = he($e, n), [w, p] = W(null), g = Ge(
|
|
6427
6427
|
t,
|
|
6428
|
-
(
|
|
6429
|
-
), v = ce(null), C = ce(""), b =
|
|
6430
|
-
function
|
|
6428
|
+
($) => p($)
|
|
6429
|
+
), v = ce(null), C = ce(""), b = m.viewport, y = o.content - o.viewport, x = We(u), E = We(c), S = nn(d, 10);
|
|
6430
|
+
function L($) {
|
|
6431
6431
|
if (v.current) {
|
|
6432
|
-
const
|
|
6432
|
+
const N = $.clientX - v.current.left, T = $.clientY - v.current.top;
|
|
6433
6433
|
l({
|
|
6434
|
-
x:
|
|
6434
|
+
x: N,
|
|
6435
6435
|
y: T
|
|
6436
6436
|
});
|
|
6437
6437
|
}
|
|
6438
6438
|
}
|
|
6439
6439
|
return ae(() => {
|
|
6440
|
-
const
|
|
6441
|
-
const T =
|
|
6442
|
-
w?.contains(T) && x(
|
|
6440
|
+
const $ = (N) => {
|
|
6441
|
+
const T = N.target;
|
|
6442
|
+
w?.contains(T) && x(N, y);
|
|
6443
6443
|
};
|
|
6444
|
-
return document.addEventListener("wheel",
|
|
6444
|
+
return document.addEventListener("wheel", $, {
|
|
6445
6445
|
passive: !1
|
|
6446
|
-
}), () => document.removeEventListener("wheel",
|
|
6446
|
+
}), () => document.removeEventListener("wheel", $, {
|
|
6447
6447
|
passive: !1
|
|
6448
6448
|
});
|
|
6449
6449
|
}, [
|
|
@@ -6451,40 +6451,40 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6451
6451
|
w,
|
|
6452
6452
|
y,
|
|
6453
6453
|
x
|
|
6454
|
-
]), ae(
|
|
6454
|
+
]), ae(E, [
|
|
6455
6455
|
o,
|
|
6456
|
-
|
|
6457
|
-
]), ct(w, S), ct(
|
|
6456
|
+
E
|
|
6457
|
+
]), ct(w, S), ct(m.content, S), /* @__PURE__ */ V(y0, {
|
|
6458
6458
|
scope: n,
|
|
6459
6459
|
scrollbar: w,
|
|
6460
6460
|
hasThumb: r,
|
|
6461
6461
|
onThumbChange: We(a),
|
|
6462
6462
|
onThumbPointerUp: We(i),
|
|
6463
|
-
onThumbPositionChange:
|
|
6463
|
+
onThumbPositionChange: E,
|
|
6464
6464
|
onThumbPointerDown: We(s)
|
|
6465
6465
|
}, /* @__PURE__ */ V(xt.div, q({}, _, {
|
|
6466
|
-
ref:
|
|
6466
|
+
ref: g,
|
|
6467
6467
|
style: {
|
|
6468
6468
|
position: "absolute",
|
|
6469
6469
|
..._.style
|
|
6470
6470
|
},
|
|
6471
|
-
onPointerDown: Fe(e.onPointerDown, (
|
|
6472
|
-
|
|
6471
|
+
onPointerDown: Fe(e.onPointerDown, ($) => {
|
|
6472
|
+
$.button === 0 && ($.target.setPointerCapture($.pointerId), v.current = w.getBoundingClientRect(), C.current = document.body.style.webkitUserSelect, document.body.style.webkitUserSelect = "none", m.viewport && (m.viewport.style.scrollBehavior = "auto"), L($));
|
|
6473
6473
|
}),
|
|
6474
|
-
onPointerMove: Fe(e.onPointerMove,
|
|
6475
|
-
onPointerUp: Fe(e.onPointerUp, (
|
|
6476
|
-
const
|
|
6477
|
-
|
|
6474
|
+
onPointerMove: Fe(e.onPointerMove, L),
|
|
6475
|
+
onPointerUp: Fe(e.onPointerUp, ($) => {
|
|
6476
|
+
const N = $.target;
|
|
6477
|
+
N.hasPointerCapture($.pointerId) && N.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = C.current, m.viewport && (m.viewport.style.scrollBehavior = ""), v.current = null;
|
|
6478
6478
|
})
|
|
6479
6479
|
})));
|
|
6480
|
-
}), zn = "ScrollAreaThumb", wn = /* @__PURE__ */
|
|
6480
|
+
}), zn = "ScrollAreaThumb", wn = /* @__PURE__ */ P((e, t) => {
|
|
6481
6481
|
const { forceMount: n, ...o } = e, r = fa(zn, e.__scopeScrollArea);
|
|
6482
6482
|
return /* @__PURE__ */ V(St, {
|
|
6483
6483
|
present: n || r.hasThumb
|
|
6484
6484
|
}, /* @__PURE__ */ V(x0, q({
|
|
6485
6485
|
ref: t
|
|
6486
6486
|
}, o)));
|
|
6487
|
-
}), x0 = /* @__PURE__ */
|
|
6487
|
+
}), x0 = /* @__PURE__ */ P((e, t) => {
|
|
6488
6488
|
const { __scopeScrollArea: n, style: o, ...r } = e, a = he(zn, n), i = fa(zn, n), { onThumbPositionChange: s } = i, c = Ge(
|
|
6489
6489
|
t,
|
|
6490
6490
|
(d) => i.onThumbChange(d)
|
|
@@ -6496,8 +6496,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6496
6496
|
if (d) {
|
|
6497
6497
|
const _ = () => {
|
|
6498
6498
|
if (u(), !l.current) {
|
|
6499
|
-
const
|
|
6500
|
-
l.current =
|
|
6499
|
+
const m = P0(d, s);
|
|
6500
|
+
l.current = m, s();
|
|
6501
6501
|
}
|
|
6502
6502
|
};
|
|
6503
6503
|
return s(), d.addEventListener("scroll", _), () => d.removeEventListener("scroll", _);
|
|
@@ -6516,7 +6516,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6516
6516
|
...o
|
|
6517
6517
|
},
|
|
6518
6518
|
onPointerDownCapture: Fe(e.onPointerDownCapture, (d) => {
|
|
6519
|
-
const
|
|
6519
|
+
const m = d.target.getBoundingClientRect(), w = d.clientX - m.left, p = d.clientY - m.top;
|
|
6520
6520
|
i.onThumbPointerDown({
|
|
6521
6521
|
x: w,
|
|
6522
6522
|
y: p
|
|
@@ -6524,12 +6524,12 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6524
6524
|
}),
|
|
6525
6525
|
onPointerUp: Fe(e.onPointerUp, i.onThumbPointerUp)
|
|
6526
6526
|
}));
|
|
6527
|
-
}), pa = "ScrollAreaCorner", S0 = /* @__PURE__ */
|
|
6527
|
+
}), pa = "ScrollAreaCorner", S0 = /* @__PURE__ */ P((e, t) => {
|
|
6528
6528
|
const n = he(pa, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
6529
|
-
return n.type !== "scroll" && o ? /* @__PURE__ */ V(
|
|
6529
|
+
return n.type !== "scroll" && o ? /* @__PURE__ */ V(E0, q({}, e, {
|
|
6530
6530
|
ref: t
|
|
6531
6531
|
})) : null;
|
|
6532
|
-
}),
|
|
6532
|
+
}), E0 = /* @__PURE__ */ P((e, t) => {
|
|
6533
6533
|
const { __scopeScrollArea: n, ...o } = e, r = he(pa, n), [a, i] = W(0), [s, c] = W(0), l = !!(a && s);
|
|
6534
6534
|
return ct(r.scrollbarX, () => {
|
|
6535
6535
|
var u;
|
|
@@ -6563,7 +6563,7 @@ function tn(e) {
|
|
|
6563
6563
|
const t = ha(e.viewport, e.content), n = e.scrollbar.paddingStart + e.scrollbar.paddingEnd, o = (e.scrollbar.size - n) * t;
|
|
6564
6564
|
return Math.max(o, 18);
|
|
6565
6565
|
}
|
|
6566
|
-
function
|
|
6566
|
+
function L0(e, t, n, o = "ltr") {
|
|
6567
6567
|
const r = tn(n), a = r / 2, i = t || a, s = r - i, c = n.scrollbar.paddingStart + i, l = n.scrollbar.size - n.scrollbar.paddingEnd - s, u = n.content - n.viewport, d = o === "ltr" ? [
|
|
6568
6568
|
0,
|
|
6569
6569
|
u
|
|
@@ -6571,7 +6571,7 @@ function E0(e, t, n, o = "ltr") {
|
|
|
6571
6571
|
u * -1,
|
|
6572
6572
|
0
|
|
6573
6573
|
];
|
|
6574
|
-
return
|
|
6574
|
+
return ma([
|
|
6575
6575
|
c,
|
|
6576
6576
|
l
|
|
6577
6577
|
], d)(e);
|
|
@@ -6584,7 +6584,7 @@ function Ao(e, t, n = "ltr") {
|
|
|
6584
6584
|
i * -1,
|
|
6585
6585
|
0
|
|
6586
6586
|
], l = d0(e, c);
|
|
6587
|
-
return
|
|
6587
|
+
return ma([
|
|
6588
6588
|
0,
|
|
6589
6589
|
i
|
|
6590
6590
|
], [
|
|
@@ -6592,17 +6592,17 @@ function Ao(e, t, n = "ltr") {
|
|
|
6592
6592
|
s
|
|
6593
6593
|
])(l);
|
|
6594
6594
|
}
|
|
6595
|
-
function
|
|
6595
|
+
function ma(e, t) {
|
|
6596
6596
|
return (n) => {
|
|
6597
6597
|
if (e[0] === e[1] || t[0] === t[1]) return t[0];
|
|
6598
6598
|
const o = (t[1] - t[0]) / (e[1] - e[0]);
|
|
6599
6599
|
return t[0] + o * (n - e[0]);
|
|
6600
6600
|
};
|
|
6601
6601
|
}
|
|
6602
|
-
function
|
|
6602
|
+
function ga(e, t) {
|
|
6603
6603
|
return e > 0 && e < t;
|
|
6604
6604
|
}
|
|
6605
|
-
const
|
|
6605
|
+
const P0 = (e, t = () => {
|
|
6606
6606
|
}) => {
|
|
6607
6607
|
let n = {
|
|
6608
6608
|
left: e.scrollLeft,
|
|
@@ -6645,8 +6645,8 @@ function ct(e, t) {
|
|
|
6645
6645
|
n
|
|
6646
6646
|
]);
|
|
6647
6647
|
}
|
|
6648
|
-
const
|
|
6649
|
-
focus:
|
|
6648
|
+
const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632", T0 = "_swap__content_3cfz1_688", z0 = "_root_3cfz1_780", M0 = "_viewport_3cfz1_786", I0 = "_scrollbar_3cfz1_799", O0 = "_thumb_3cfz1_812", D0 = "_corner_3cfz1_844", V0 = "_hideScrollbar_3cfz1_848", H0 = "_arrowButton_3cfz1_852", B0 = "_micro_3cfz1_882", j0 = "_tiny_3cfz1_893", W0 = "_small_3cfz1_903", F0 = "_large_3cfz1_927", U0 = "_xlarge_3cfz1_947", Z0 = "_light_3cfz1_957", q0 = "_dark_3cfz1_970", X0 = "_accent_3cfz1_986", Y0 = "_minimal_3cfz1_999", G0 = "_highContrast_3cfz1_1012", K0 = "_gap_3cfz1_1025", Q0 = "_arrows_3cfz1_1040", J0 = "_colorVariants_3cfz1_1119", ee = {
|
|
6649
|
+
focus: k0,
|
|
6650
6650
|
"focus--default": "_focus--default_3cfz1_567",
|
|
6651
6651
|
"focus--danger": "_focus--danger_3cfz1_571",
|
|
6652
6652
|
"focus--visible": "_focus--visible_3cfz1_577",
|
|
@@ -6691,7 +6691,7 @@ const P0 = p0, $0 = g0, R0 = S0, N0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6691
6691
|
gap: K0,
|
|
6692
6692
|
arrows: Q0,
|
|
6693
6693
|
colorVariants: J0
|
|
6694
|
-
}, wa =
|
|
6694
|
+
}, wa = P(
|
|
6695
6695
|
(e, t) => {
|
|
6696
6696
|
const {
|
|
6697
6697
|
children: n,
|
|
@@ -6703,7 +6703,7 @@ const P0 = p0, $0 = g0, R0 = S0, N0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6703
6703
|
hideScrollbar: c = !1,
|
|
6704
6704
|
type: l = "auto",
|
|
6705
6705
|
...u
|
|
6706
|
-
} = e, d = typeof r == "number" ? `${r}px` : r, _ = typeof a == "number" ? `${a}px` : a,
|
|
6706
|
+
} = e, d = typeof r == "number" ? `${r}px` : r, _ = typeof a == "number" ? `${a}px` : a, m = {
|
|
6707
6707
|
maxHeight: d,
|
|
6708
6708
|
maxWidth: _
|
|
6709
6709
|
}, w = I(
|
|
@@ -6716,7 +6716,7 @@ const P0 = p0, $0 = g0, R0 = S0, N0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6716
6716
|
o
|
|
6717
6717
|
);
|
|
6718
6718
|
return /* @__PURE__ */ A(
|
|
6719
|
-
|
|
6719
|
+
$0,
|
|
6720
6720
|
{
|
|
6721
6721
|
ref: t,
|
|
6722
6722
|
type: l,
|
|
@@ -6724,17 +6724,17 @@ const P0 = p0, $0 = g0, R0 = S0, N0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6724
6724
|
...u,
|
|
6725
6725
|
children: [
|
|
6726
6726
|
/* @__PURE__ */ f(
|
|
6727
|
-
|
|
6727
|
+
R0,
|
|
6728
6728
|
{
|
|
6729
6729
|
className: ee.viewport,
|
|
6730
|
-
style:
|
|
6730
|
+
style: m,
|
|
6731
6731
|
children: n
|
|
6732
6732
|
}
|
|
6733
6733
|
),
|
|
6734
|
-
!c && /* @__PURE__ */ A(
|
|
6734
|
+
!c && /* @__PURE__ */ A(Ee, { children: [
|
|
6735
6735
|
/* @__PURE__ */ f(Ut, { orientation: "vertical", size: i, theme: s }),
|
|
6736
6736
|
/* @__PURE__ */ f(Ut, { orientation: "horizontal", size: i, theme: s }),
|
|
6737
|
-
/* @__PURE__ */ f(
|
|
6737
|
+
/* @__PURE__ */ f(N0, { className: ee.corner })
|
|
6738
6738
|
] })
|
|
6739
6739
|
]
|
|
6740
6740
|
}
|
|
@@ -6742,7 +6742,7 @@ const P0 = p0, $0 = g0, R0 = S0, N0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6742
6742
|
}
|
|
6743
6743
|
);
|
|
6744
6744
|
wa.displayName = "ScrollArea";
|
|
6745
|
-
const Ut =
|
|
6745
|
+
const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default", theme: o = "light", ...r }, a) => {
|
|
6746
6746
|
const [i, s] = W({ height: "20px", width: "20px" });
|
|
6747
6747
|
ae(() => {
|
|
6748
6748
|
(() => {
|
|
@@ -6760,7 +6760,7 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6760
6760
|
"--scrollbar-thumb-width": i.width
|
|
6761
6761
|
};
|
|
6762
6762
|
return /* @__PURE__ */ A(
|
|
6763
|
-
|
|
6763
|
+
g0,
|
|
6764
6764
|
{
|
|
6765
6765
|
ref: a,
|
|
6766
6766
|
orientation: t,
|
|
@@ -6773,9 +6773,9 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6773
6773
|
),
|
|
6774
6774
|
...r,
|
|
6775
6775
|
children: [
|
|
6776
|
-
n === "large" && o === "arrows" && /* @__PURE__ */ A(
|
|
6777
|
-
t === "vertical" && /* @__PURE__ */ A(
|
|
6778
|
-
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "up", children: /* @__PURE__ */ f(
|
|
6776
|
+
n === "large" && o === "arrows" && /* @__PURE__ */ A(Ee, { children: [
|
|
6777
|
+
t === "vertical" && /* @__PURE__ */ A(Ee, { children: [
|
|
6778
|
+
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "up", children: /* @__PURE__ */ f(mt, { width: 7, height: 4, color: "rgba(80, 80, 80, 1)", style: { transform: "rotate(180deg)" } }) }),
|
|
6779
6779
|
/* @__PURE__ */ f(
|
|
6780
6780
|
wn,
|
|
6781
6781
|
{
|
|
@@ -6784,7 +6784,7 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6784
6784
|
}
|
|
6785
6785
|
),
|
|
6786
6786
|
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "down", children: /* @__PURE__ */ f(
|
|
6787
|
-
|
|
6787
|
+
mt,
|
|
6788
6788
|
{
|
|
6789
6789
|
width: 7,
|
|
6790
6790
|
height: 4,
|
|
@@ -6792,9 +6792,9 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6792
6792
|
}
|
|
6793
6793
|
) })
|
|
6794
6794
|
] }),
|
|
6795
|
-
t === "horizontal" && /* @__PURE__ */ A(
|
|
6795
|
+
t === "horizontal" && /* @__PURE__ */ A(Ee, { children: [
|
|
6796
6796
|
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "left", children: /* @__PURE__ */ f(
|
|
6797
|
-
|
|
6797
|
+
mt,
|
|
6798
6798
|
{
|
|
6799
6799
|
width: 7,
|
|
6800
6800
|
height: 4,
|
|
@@ -6813,7 +6813,7 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6813
6813
|
}
|
|
6814
6814
|
),
|
|
6815
6815
|
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "right", children: /* @__PURE__ */ f(
|
|
6816
|
-
|
|
6816
|
+
mt,
|
|
6817
6817
|
{
|
|
6818
6818
|
width: 7,
|
|
6819
6819
|
height: 4,
|
|
@@ -6829,7 +6829,7 @@ const Ut = L(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6829
6829
|
);
|
|
6830
6830
|
});
|
|
6831
6831
|
Ut.displayName = "ScrollBar";
|
|
6832
|
-
const
|
|
6832
|
+
const e2 = P((e, t) => {
|
|
6833
6833
|
const {
|
|
6834
6834
|
className: n,
|
|
6835
6835
|
disabled: o = !1,
|
|
@@ -6842,15 +6842,15 @@ const ef = L((e, t) => {
|
|
|
6842
6842
|
placeholder: u,
|
|
6843
6843
|
prefix: d,
|
|
6844
6844
|
suffix: _,
|
|
6845
|
-
setIsOpen:
|
|
6845
|
+
setIsOpen: m,
|
|
6846
6846
|
value: w = "",
|
|
6847
6847
|
variant: p = "default",
|
|
6848
|
-
width:
|
|
6848
|
+
width: g = "100%",
|
|
6849
6849
|
size: v = "48"
|
|
6850
6850
|
// 👈 значение по умолчанию
|
|
6851
6851
|
} = e, [C, b] = W(r), y = p === "pagination", x = () => {
|
|
6852
|
-
o || (
|
|
6853
|
-
},
|
|
6852
|
+
o || (m ? m(!r) : b(!C));
|
|
6853
|
+
}, E = {
|
|
6854
6854
|
wrapper: I(Y.wrapper, Y[`size${v}`], Y[p], n),
|
|
6855
6855
|
content: I(Y.content, Y[p]),
|
|
6856
6856
|
icon: I(Y.icon, Y[p]),
|
|
@@ -6864,11 +6864,11 @@ const ef = L((e, t) => {
|
|
|
6864
6864
|
suffix: I(Y.suffix, Y[`size${v}`])
|
|
6865
6865
|
};
|
|
6866
6866
|
return /* @__PURE__ */ A("div", { ref: t, children: [
|
|
6867
|
-
a && /* @__PURE__ */ f(hl, { className:
|
|
6868
|
-
/* @__PURE__ */ A("div", { className:
|
|
6869
|
-
d && /* @__PURE__ */ f("div", { className:
|
|
6867
|
+
a && /* @__PURE__ */ f(hl, { className: E.label, onClick: x, children: a }),
|
|
6868
|
+
/* @__PURE__ */ A("div", { className: E.wrapper, style: { width: g }, children: [
|
|
6869
|
+
d && /* @__PURE__ */ f("div", { className: E.prefix, children: d }),
|
|
6870
6870
|
/* @__PURE__ */ A(
|
|
6871
|
-
|
|
6871
|
+
Ld,
|
|
6872
6872
|
{
|
|
6873
6873
|
disabled: o,
|
|
6874
6874
|
name: s,
|
|
@@ -6877,15 +6877,15 @@ const ef = L((e, t) => {
|
|
|
6877
6877
|
onValueChange: c,
|
|
6878
6878
|
value: w,
|
|
6879
6879
|
children: [
|
|
6880
|
-
/* @__PURE__ */ A(
|
|
6880
|
+
/* @__PURE__ */ A(Pd, { className: E.trigger, children: [
|
|
6881
6881
|
/* @__PURE__ */ f(
|
|
6882
|
-
|
|
6882
|
+
$d,
|
|
6883
6883
|
{
|
|
6884
|
-
className:
|
|
6884
|
+
className: E.value,
|
|
6885
6885
|
placeholder: u
|
|
6886
6886
|
}
|
|
6887
6887
|
),
|
|
6888
|
-
/* @__PURE__ */ f(
|
|
6888
|
+
/* @__PURE__ */ f(Rd, { className: E.icon, children: /* @__PURE__ */ f(
|
|
6889
6889
|
On,
|
|
6890
6890
|
{
|
|
6891
6891
|
height: y ? 16 : 20,
|
|
@@ -6893,22 +6893,22 @@ const ef = L((e, t) => {
|
|
|
6893
6893
|
}
|
|
6894
6894
|
) })
|
|
6895
6895
|
] }),
|
|
6896
|
-
/* @__PURE__ */ f(
|
|
6897
|
-
|
|
6896
|
+
/* @__PURE__ */ f(Nd, { children: /* @__PURE__ */ f(
|
|
6897
|
+
kd,
|
|
6898
6898
|
{
|
|
6899
|
-
className:
|
|
6899
|
+
className: E.content,
|
|
6900
6900
|
position: "popper",
|
|
6901
6901
|
sideOffset: -1,
|
|
6902
6902
|
children: /* @__PURE__ */ f(Ad, { asChild: !0, children: /* @__PURE__ */ A(wa, { maxHeight: i, size: "micro", theme: "colorVariants", children: [
|
|
6903
6903
|
l.map((S) => /* @__PURE__ */ f(
|
|
6904
6904
|
Td,
|
|
6905
6905
|
{
|
|
6906
|
-
className:
|
|
6906
|
+
className: E.item,
|
|
6907
6907
|
disabled: S.disabled,
|
|
6908
6908
|
value: S.value,
|
|
6909
|
-
children: /* @__PURE__ */ f(zd, { asChild: !0, children: /* @__PURE__ */ A("div", { className:
|
|
6910
|
-
S.icon && /* @__PURE__ */ f(
|
|
6911
|
-
S.label && /* @__PURE__ */ f("span", { className:
|
|
6909
|
+
children: /* @__PURE__ */ f(zd, { asChild: !0, children: /* @__PURE__ */ A("div", { className: E.itemContent, children: [
|
|
6910
|
+
S.icon && /* @__PURE__ */ f(Ee, { children: S.icon }),
|
|
6911
|
+
S.label && /* @__PURE__ */ f("span", { className: E.itemLabel, children: S.label })
|
|
6912
6912
|
] }) })
|
|
6913
6913
|
},
|
|
6914
6914
|
S.value
|
|
@@ -6920,13 +6920,13 @@ const ef = L((e, t) => {
|
|
|
6920
6920
|
]
|
|
6921
6921
|
}
|
|
6922
6922
|
),
|
|
6923
|
-
_ && /* @__PURE__ */ f("div", { className:
|
|
6923
|
+
_ && /* @__PURE__ */ f("div", { className: E.suffix, children: _ })
|
|
6924
6924
|
] })
|
|
6925
6925
|
] });
|
|
6926
6926
|
});
|
|
6927
|
-
|
|
6928
|
-
const
|
|
6929
|
-
focus:
|
|
6927
|
+
e2.displayName = "Select";
|
|
6928
|
+
const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0k_688", r2 = "_root_1jn0k_780", a2 = "_wrapper_1jn0k_787", s2 = "_outline_1jn0k_794", i2 = "_fill_1jn0k_804", c2 = "_error_1jn0k_813", l2 = "_disabled_1jn0k_823", u2 = "_textarea_1jn0k_828", d2 = "_label_1jn0k_851", f2 = "_required_1jn0k_866", _2 = "_filled_1jn0k_875", p2 = "_clearButton_1jn0k_894", h2 = "_errorText_1jn0k_919", m2 = "_innerHint_1jn0k_925", pe = {
|
|
6929
|
+
focus: t2,
|
|
6930
6930
|
"focus--default": "_focus--default_1jn0k_567",
|
|
6931
6931
|
"focus--danger": "_focus--danger_1jn0k_571",
|
|
6932
6932
|
"focus--visible": "_focus--visible_1jn0k_577",
|
|
@@ -6936,7 +6936,7 @@ const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0
|
|
|
6936
6936
|
"focus--input": "_focus--input_1jn0k_607",
|
|
6937
6937
|
"focus--button": "_focus--button_1jn0k_612",
|
|
6938
6938
|
"focus--card": "_focus--card_1jn0k_617",
|
|
6939
|
-
swap:
|
|
6939
|
+
swap: n2,
|
|
6940
6940
|
"swap--text": "_swap--text_1jn0k_641",
|
|
6941
6941
|
"swap--icon": "_swap--icon_1jn0k_652",
|
|
6942
6942
|
"swap--icon-xs": "_swap--icon-xs_1jn0k_662",
|
|
@@ -6944,26 +6944,26 @@ const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0
|
|
|
6944
6944
|
"swap--icon-m": "_swap--icon-m_1jn0k_672",
|
|
6945
6945
|
"swap--icon-l": "_swap--icon-l_1jn0k_677",
|
|
6946
6946
|
"swap--icon-xl": "_swap--icon-xl_1jn0k_682",
|
|
6947
|
-
swap__content:
|
|
6947
|
+
swap__content: o2,
|
|
6948
6948
|
"swap--group-horizontal": "_swap--group-horizontal_1jn0k_697",
|
|
6949
6949
|
"swap--group-vertical": "_swap--group-vertical_1jn0k_704",
|
|
6950
6950
|
"swap--with-background": "_swap--with-background_1jn0k_712",
|
|
6951
6951
|
"swap--with-border": "_swap--with-border_1jn0k_718",
|
|
6952
6952
|
"swap--interactive": "_swap--interactive_1jn0k_726",
|
|
6953
|
-
root:
|
|
6954
|
-
wrapper:
|
|
6955
|
-
outline:
|
|
6956
|
-
fill:
|
|
6957
|
-
error:
|
|
6958
|
-
disabled:
|
|
6959
|
-
textarea:
|
|
6960
|
-
label:
|
|
6961
|
-
required:
|
|
6962
|
-
filled:
|
|
6963
|
-
clearButton:
|
|
6964
|
-
errorText:
|
|
6965
|
-
innerHint:
|
|
6966
|
-
},
|
|
6953
|
+
root: r2,
|
|
6954
|
+
wrapper: a2,
|
|
6955
|
+
outline: s2,
|
|
6956
|
+
fill: i2,
|
|
6957
|
+
error: c2,
|
|
6958
|
+
disabled: l2,
|
|
6959
|
+
textarea: u2,
|
|
6960
|
+
label: d2,
|
|
6961
|
+
required: f2,
|
|
6962
|
+
filled: _2,
|
|
6963
|
+
clearButton: p2,
|
|
6964
|
+
errorText: h2,
|
|
6965
|
+
innerHint: m2
|
|
6966
|
+
}, g2 = P(
|
|
6967
6967
|
({
|
|
6968
6968
|
className: e,
|
|
6969
6969
|
disabled: t,
|
|
@@ -6978,13 +6978,13 @@ const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0
|
|
|
6978
6978
|
clearable: u = !1,
|
|
6979
6979
|
type: d = "outline",
|
|
6980
6980
|
value: _,
|
|
6981
|
-
defaultValue:
|
|
6981
|
+
defaultValue: m,
|
|
6982
6982
|
...w
|
|
6983
6983
|
}, p) => {
|
|
6984
|
-
const
|
|
6985
|
-
|
|
6984
|
+
const g = _ !== void 0, [v, C] = W(m?.toString() ?? ""), b = g ? _ : v, x = (b?.toString() ?? "").length > 0, E = (L) => {
|
|
6985
|
+
g || C(L.target.value), c?.(L);
|
|
6986
6986
|
}, S = () => {
|
|
6987
|
-
t || (
|
|
6987
|
+
t || (g || C(""), c?.({
|
|
6988
6988
|
target: { value: "" },
|
|
6989
6989
|
currentTarget: { value: "" }
|
|
6990
6990
|
}));
|
|
@@ -7009,7 +7009,7 @@ const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0
|
|
|
7009
7009
|
rows: l,
|
|
7010
7010
|
className: pe.textarea,
|
|
7011
7011
|
value: b,
|
|
7012
|
-
onChange:
|
|
7012
|
+
onChange: E,
|
|
7013
7013
|
...w
|
|
7014
7014
|
}
|
|
7015
7015
|
),
|
|
@@ -7035,56 +7035,56 @@ const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0
|
|
|
7035
7035
|
] });
|
|
7036
7036
|
}
|
|
7037
7037
|
);
|
|
7038
|
-
|
|
7038
|
+
g2.displayName = "TextArea";
|
|
7039
7039
|
export {
|
|
7040
|
-
|
|
7040
|
+
b2 as Accordion,
|
|
7041
7041
|
ba as AlertsBellIcon,
|
|
7042
7042
|
On as ArrowChevronDownIcon,
|
|
7043
7043
|
ya as ArrowChevronLeftIcon,
|
|
7044
7044
|
xa as ArrowChevronRightIcon,
|
|
7045
7045
|
Oo as ArrowChevronUpIcon,
|
|
7046
|
-
|
|
7046
|
+
mt as ArrowIcon,
|
|
7047
7047
|
Sa as ArrowRefreshIcon,
|
|
7048
|
-
|
|
7048
|
+
y2 as AuthCard,
|
|
7049
7049
|
ci as Avatar,
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7050
|
+
x2 as AvatarGroup,
|
|
7051
|
+
S2 as AvatarWithCssBorder,
|
|
7052
|
+
E2 as Badge,
|
|
7053
7053
|
Cn as Button,
|
|
7054
7054
|
Do as CheckIcon,
|
|
7055
7055
|
jo as Checkbox,
|
|
7056
|
-
$
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7056
|
+
$2 as Chip,
|
|
7057
|
+
R2 as ControlledCheckbox,
|
|
7058
|
+
N2 as ControlledInput,
|
|
7059
|
+
k2 as ControlledInputGroupStack,
|
|
7060
|
+
P2 as Counter,
|
|
7061
7061
|
qs as Divider,
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7062
|
+
L2 as Dot,
|
|
7063
|
+
La as EyeIcon,
|
|
7064
|
+
Pa as EyeSlashIcon,
|
|
7065
|
+
Ea as FacebookIcon,
|
|
7066
|
+
Ra as ImagePhotoIcon,
|
|
7067
|
+
Na as ImagePhotoOutline,
|
|
7068
7068
|
Go as Input,
|
|
7069
7069
|
Ko as InputGroupStack,
|
|
7070
|
-
|
|
7071
|
-
|
|
7070
|
+
$a as InstagramIcon,
|
|
7071
|
+
ka as LogoutV1Outline,
|
|
7072
7072
|
Dn as MathSymbolXV2Icon,
|
|
7073
7073
|
Aa as MathSymbolsAddSquareV2Icon,
|
|
7074
7074
|
Ta as MathSymbolsXCircleContainedIcon,
|
|
7075
7075
|
Vo as MinusIcon,
|
|
7076
7076
|
za as OdnoklassnikiIcon,
|
|
7077
|
-
|
|
7077
|
+
A2 as PageContainer,
|
|
7078
7078
|
Vn as RequiredIcon,
|
|
7079
7079
|
wa as ScrollArea,
|
|
7080
7080
|
Ut as ScrollBar,
|
|
7081
7081
|
Ma as SearchIcon,
|
|
7082
|
-
|
|
7083
|
-
|
|
7082
|
+
T2 as SegmentControl,
|
|
7083
|
+
e2 as Select,
|
|
7084
7084
|
hs as Spinner,
|
|
7085
7085
|
Ho as SwapIcon,
|
|
7086
7086
|
Ia as TelegramIcon,
|
|
7087
|
-
|
|
7087
|
+
g2 as TextArea,
|
|
7088
7088
|
Oa as TimeCalendarV2Icon,
|
|
7089
7089
|
st as Typography,
|
|
7090
7090
|
Da as VKIcon
|