@post-pioneer/ui-kit 0.1.62 → 0.1.63
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 +415 -415
- package/dist/ui-kit-postpioneer.umd.js +6 -6
- package/package.json +1 -1
|
@@ -28,7 +28,7 @@ const ba = P(
|
|
|
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,7 +44,7 @@ const gt = P(
|
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
|
-
|
|
47
|
+
mt.displayName = "ArrowIcon";
|
|
48
48
|
const On = P(
|
|
49
49
|
({ width: e = "12", height: t = "8", color: n = "currentColor", ...o }, r) => /* @__PURE__ */ f(
|
|
50
50
|
"svg",
|
|
@@ -722,9 +722,9 @@ 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,
|
|
725
|
+
} = e, m = cs[s], w = I(
|
|
726
726
|
Ne.typography,
|
|
727
|
-
Ne[
|
|
727
|
+
Ne[m],
|
|
728
728
|
Ne[`align-${a}`],
|
|
729
729
|
Ne[`font-${d}`],
|
|
730
730
|
{
|
|
@@ -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",
|
|
@@ -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()}`],
|
|
@@ -918,12 +918,12 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
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", ...E } =
|
|
938
|
+
const { type: x = "button", ...E } = g;
|
|
939
939
|
return /* @__PURE__ */ f(
|
|
940
940
|
"button",
|
|
941
941
|
{
|
|
@@ -1031,7 +1031,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1031
1031
|
...i
|
|
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: i,
|
|
1043
1043
|
toggleText: c = {}
|
|
1044
1044
|
}) => {
|
|
1045
|
-
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0),
|
|
1046
|
-
s || (l ? (_(
|
|
1045
|
+
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0), m = ce(null), w = () => {
|
|
1046
|
+
s || (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: s = "",
|
|
1187
1187
|
onError: i
|
|
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",
|
|
@@ -1402,8 +1402,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
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",
|
|
@@ -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",
|
|
@@ -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 : i, 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 i = t[a];
|
|
1771
|
-
if (
|
|
1771
|
+
if (gt(s) && gt(i) || Ue(s) && Ue(i) || Array.isArray(s) && Array.isArray(i) ? !Yo(s, i, n) : s !== i)
|
|
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: s, compute: i } = e || {}, c = M.useRef(r), l = M.useRef(i), u = M.useRef(void 0);
|
|
1779
1779
|
l.current = i;
|
|
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, s]), 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,9 +1858,9 @@ 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 && !i && r.unregister(y), r.register(n, {
|
|
@@ -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 Nf = ({
|
|
|
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: (s) => r(s.target.checked) });
|
|
1901
|
-
}, sc = "
|
|
1901
|
+
}, sc = "_focus_mmaa6_550", ic = "_swap_mmaa6_632", cc = "_swap__content_mmaa6_688", lc = "_root_mmaa6_780", uc = "_fullWidth_mmaa6_786", dc = "_wrapper_mmaa6_791", fc = "_single_mmaa6_808", _c = "_first_mmaa6_811", pc = "_middle_mmaa6_814", hc = "_last_mmaa6_818", mc = "_error_mmaa6_825", gc = "_outline_mmaa6_828", wc = "_fill_mmaa6_842", vc = "_small_mmaa6_858", Cc = "_input_mmaa6_861", bc = "_label_mmaa6_865", yc = "_medium_mmaa6_870", xc = "_disabled_mmaa6_914", Sc = "_clearButton_mmaa6_926", Ec = "_withPrefix_mmaa6_932", Lc = "_withSuffix_mmaa6_935", Pc = "_filled_mmaa6_973", $c = "_requiredIcon_mmaa6_1035", Rc = "_innerHint_mmaa6_1096", Nc = "_affix_mmaa6_1144", kc = "_prefix_mmaa6_1156", Ac = "_suffix_mmaa6_1161", Tc = "_errorText_mmaa6_1170", 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_mmaa6_567",
|
|
1904
|
+
"focus--danger": "_focus--danger_mmaa6_571",
|
|
1905
|
+
"focus--visible": "_focus--visible_mmaa6_577",
|
|
1906
|
+
"focus-danger": "_focus-danger_mmaa6_592",
|
|
1907
|
+
"focus-within--default": "_focus-within--default_mmaa6_598",
|
|
1908
|
+
"focus-within--danger": "_focus-within--danger_mmaa6_602",
|
|
1909
|
+
"focus--input": "_focus--input_mmaa6_607",
|
|
1910
|
+
"focus--button": "_focus--button_mmaa6_612",
|
|
1911
|
+
"focus--card": "_focus--card_mmaa6_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_mmaa6_641",
|
|
1914
|
+
"swap--icon": "_swap--icon_mmaa6_652",
|
|
1915
|
+
"swap--icon-xs": "_swap--icon-xs_mmaa6_662",
|
|
1916
|
+
"swap--icon-s": "_swap--icon-s_mmaa6_667",
|
|
1917
|
+
"swap--icon-m": "_swap--icon-m_mmaa6_672",
|
|
1918
|
+
"swap--icon-l": "_swap--icon-l_mmaa6_677",
|
|
1919
|
+
"swap--icon-xl": "_swap--icon-xl_mmaa6_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_mmaa6_697",
|
|
1922
|
+
"swap--group-vertical": "_swap--group-vertical_mmaa6_704",
|
|
1923
|
+
"swap--with-background": "_swap--with-background_mmaa6_712",
|
|
1924
|
+
"swap--with-border": "_swap--with-border_mmaa6_718",
|
|
1925
|
+
"swap--interactive": "_swap--interactive_mmaa6_726",
|
|
1926
1926
|
root: lc,
|
|
1927
1927
|
fullWidth: uc,
|
|
1928
1928
|
wrapper: dc,
|
|
@@ -1930,8 +1930,8 @@ const Nf = ({
|
|
|
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,
|
|
@@ -1963,17 +1963,17 @@ const Nf = ({
|
|
|
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
1975
|
}, E) => {
|
|
1976
|
-
const S = p !== void 0, [L, $] = W(
|
|
1976
|
+
const S = p !== void 0, [L, $] = W(g?.toString() ?? ""), N = S ? p : L, T = !!N && N.toString().length > 0, B = (D) => {
|
|
1977
1977
|
S || $(D.target.value), v?.(D);
|
|
1978
1978
|
}, H = () => {
|
|
1979
1979
|
if (t) return;
|
|
@@ -1995,12 +1995,12 @@ const Nf = ({
|
|
|
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
|
{
|
|
@@ -2039,7 +2039,7 @@ const Nf = ({
|
|
|
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,
|
|
@@ -2116,15 +2116,15 @@ const kf = ({
|
|
|
2116
2116
|
),
|
|
2117
2117
|
...s,
|
|
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 kf = ({
|
|
|
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 i = h.createContext(s), c = n.length;
|
|
2463
2463
|
n = [...n, s];
|
|
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] || i, 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] || i, w = h.useContext(m);
|
|
2471
2471
|
if (w) return w;
|
|
2472
2472
|
if (s !== void 0) return s;
|
|
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
|
), s = (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
|
s.displayName = t;
|
|
2516
2516
|
const i = e + "CollectionSlot", c = /* @__PURE__ */ Dt(i), l = M.forwardRef(
|
|
2517
|
-
(p,
|
|
2518
|
-
const { scope: v, children: C } = p, b = a(i, v), y = ne(
|
|
2517
|
+
(p, g) => {
|
|
2518
|
+
const { scope: v, children: C } = p, b = a(i, v), y = ne(g, b.collectionRef);
|
|
2519
2519
|
return /* @__PURE__ */ f(c, { ref: y, children: C });
|
|
2520
2520
|
}
|
|
2521
2521
|
);
|
|
2522
2522
|
l.displayName = i;
|
|
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(
|
|
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
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(
|
|
2536
|
+
return Array.from(g.itemMap.values()).sort(
|
|
2537
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: s, Slot: l, ItemSlot:
|
|
2542
|
+
{ Provider: s, Slot: l, ItemSlot: m },
|
|
2543
2543
|
w,
|
|
2544
2544
|
o
|
|
2545
2545
|
];
|
|
@@ -2584,7 +2584,7 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2584
2584
|
onInteractOutside: s,
|
|
2585
2585
|
onDismiss: i,
|
|
2586
2586
|
...c
|
|
2587
|
-
} = e, l = h.useContext(er), [u, d] = h.useState(null), _ = u?.ownerDocument ?? globalThis?.document, [,
|
|
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
2588
|
const L = S.target, $ = [...l.branches].some((N) => N.contains(L));
|
|
2589
2589
|
!y || $ || (r?.(S), s?.(S), S.defaultPrevented || i?.());
|
|
2590
2590
|
}, _), E = Pl((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,
|
|
@@ -2706,7 +2706,7 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2706
2706
|
onMountAutoFocus: r,
|
|
2707
2707
|
onUnmountAutoFocus: a,
|
|
2708
2708
|
...s
|
|
2709
|
-
} = e, [i, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)),
|
|
2709
|
+
} = e, [i, 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 || !i) return;
|
|
2722
2722
|
const y = b.target;
|
|
2723
2723
|
i.contains(y) ? d.current = y : ze(d.current, { select: !0 });
|
|
2724
|
-
},
|
|
2725
|
-
if (
|
|
2724
|
+
}, g = function(b) {
|
|
2725
|
+
if (m.paused || !i) return;
|
|
2726
2726
|
const y = b.relatedTarget;
|
|
2727
2727
|
y !== null && (i.contains(y) || ze(d.current, { select: !0 }));
|
|
2728
2728
|
}, v = function(b) {
|
|
@@ -2730,15 +2730,15 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2730
2730
|
for (const x of b)
|
|
2731
2731
|
x.removedNodes.length > 0 && ze(i);
|
|
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 i && C.observe(i, { 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, i,
|
|
2739
|
+
}, [o, i, m.paused]), h.useEffect(() => {
|
|
2740
2740
|
if (i) {
|
|
2741
|
-
_o.add(
|
|
2741
|
+
_o.add(m);
|
|
2742
2742
|
const p = document.activeElement;
|
|
2743
2743
|
if (!i.contains(p)) {
|
|
2744
2744
|
const v = new CustomEvent(un, uo);
|
|
@@ -2747,21 +2747,21 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2747
2747
|
return () => {
|
|
2748
2748
|
i.removeEventListener(un, l), setTimeout(() => {
|
|
2749
2749
|
const v = new CustomEvent(dn, uo);
|
|
2750
|
-
i.addEventListener(dn, u), i.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(
|
|
2750
|
+
i.addEventListener(dn, u), i.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(m);
|
|
2751
2751
|
}, 0);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
}, [i, l, u,
|
|
2754
|
+
}, [i, l, u, m]);
|
|
2755
2755
|
const w = h.useCallback(
|
|
2756
2756
|
(p) => {
|
|
2757
|
-
if (!n && !o ||
|
|
2758
|
-
const
|
|
2759
|
-
if (
|
|
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
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, ...s, ref: _, onKeyDown: w });
|
|
2767
2767
|
});
|
|
@@ -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;
|
|
@@ -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
2950
|
const a = be(t), s = qn(t), i = Zn(s), 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[i] / 2 - r[i] / 2;
|
|
2951
|
-
let
|
|
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[s] -= _ * (n && l ? -1 : 1);
|
|
2986
2986
|
break;
|
|
2987
2987
|
case "end":
|
|
2988
|
-
|
|
2988
|
+
m[s] += _ * (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 < i.length; p++) {
|
|
3009
3009
|
const {
|
|
3010
|
-
name:
|
|
3010
|
+
name: g,
|
|
3011
3011
|
fn: v
|
|
3012
3012
|
} = i[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: s,
|
|
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 s.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
|
-
} = Le(t, e), w = ar(
|
|
3071
|
-
element: (n = await (a.isElement == null ? void 0 : a.isElement(
|
|
3069
|
+
padding: m = 0
|
|
3070
|
+
} = Le(t, e), w = ar(m), g = i[_ ? 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(i.floating)),
|
|
3072
3072
|
boundary: l,
|
|
3073
3073
|
rootBoundary: u,
|
|
3074
3074
|
strategy: c
|
|
@@ -3117,14 +3117,14 @@ const Gl = (e) => ({
|
|
|
3117
3117
|
const d = ar(u), _ = {
|
|
3118
3118
|
x: n,
|
|
3119
3119
|
y: o
|
|
3120
|
-
},
|
|
3120
|
+
}, m = qn(r), w = Zn(m), p = await s.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 (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
3121
3121
|
let S = E ? E[b] : 0;
|
|
3122
3122
|
(!S || !await (s.isElement == null ? void 0 : s.isElement(E))) && (S = i.floating[b] || a.floating[w]);
|
|
3123
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,16 +3150,16 @@ 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
|
-
...
|
|
3156
|
+
...g
|
|
3157
3157
|
} = Le(e, t);
|
|
3158
3158
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
3159
3159
|
return {};
|
|
3160
3160
|
const v = Pe(r), C = be(i), b = Pe(i) === i, y = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), x = _ || (b || !p ? [Ht(i)] : Wl(i)), E = w !== "none";
|
|
3161
3161
|
!_ && E && x.push(...ql(i, p, w, y));
|
|
3162
|
-
const S = [i, ...x], L = await Ct(t,
|
|
3162
|
+
const S = [i, ...x], L = await Ct(t, g), $ = [];
|
|
3163
3163
|
let N = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
3164
3164
|
if (u && $.push(L[v]), d) {
|
|
3165
3165
|
const O = jl(r, s, y);
|
|
@@ -3185,7 +3185,7 @@ const Gl = (e) => ({
|
|
|
3185
3185
|
};
|
|
3186
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
3191
|
const D = (H = N.filter((k) => {
|
|
@@ -3276,7 +3276,7 @@ async function Jl(e, t) {
|
|
|
3276
3276
|
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), s = Pe(n), i = lt(n), c = be(n) === "y", l = sr.has(s) ? -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 i && typeof w == "number" && (
|
|
3291
|
-
x:
|
|
3290
|
+
return i && typeof w == "number" && (m = i === "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: s = !1,
|
|
3332
3332
|
limiter: i = {
|
|
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
|
|
@@ -3346,18 +3346,18 @@ const e1 = function(e) {
|
|
|
3346
3346
|
x: n,
|
|
3347
3347
|
y: o
|
|
3348
3348
|
}, u = await Ct(t, c), d = be(Pe(r)), _ = Un(d);
|
|
3349
|
-
let
|
|
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 (s) {
|
|
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 = i.fn({
|
|
3359
3359
|
...t,
|
|
3360
|
-
[_]:
|
|
3360
|
+
[_]: m,
|
|
3361
3361
|
[d]: w
|
|
3362
3362
|
});
|
|
3363
3363
|
return {
|
|
@@ -3391,8 +3391,8 @@ const e1 = function(e) {
|
|
|
3391
3391
|
x: n,
|
|
3392
3392
|
y: o
|
|
3393
3393
|
}, d = be(r), _ = Un(d);
|
|
3394
|
-
let
|
|
3395
|
-
const p = Le(i, t),
|
|
3394
|
+
let m = u[_], w = u[d];
|
|
3395
|
+
const p = Le(i, 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(Pe(r)), x = a.reference[d] - a.floating[b] + (y && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 :
|
|
3409
|
+
const b = _ === "y" ? "width" : "height", y = sr.has(Pe(r)), x = a.reference[d] - a.floating[b] + (y && ((v = s.offset) == null ? void 0 : v[d]) || 0) + (y ? 0 : g.crossAxis), E = a.reference[d] + a.reference[b] + (y ? 0 : ((C = s.offset) == null ? void 0 : C[d]) || 0) - (y ? g.crossAxis : 0);
|
|
3410
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,17 +3430,17 @@ const e1 = function(e) {
|
|
|
3430
3430
|
apply: c = () => {
|
|
3431
3431
|
},
|
|
3432
3432
|
...l
|
|
3433
|
-
} = Le(e, t), u = await Ct(t, l), d = Pe(r), _ = lt(r),
|
|
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[
|
|
3437
|
+
let g, v;
|
|
3438
|
+
d === "top" || d === "bottom" ? (g = d, v = _ === (await (s.isRTL == null ? void 0 : s.isRTL(i.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
3440
|
let S = y, L = x;
|
|
3441
3441
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (L = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = C), E && !_) {
|
|
3442
3442
|
const N = ue(u.left, 0), T = ue(u.right, 0), B = ue(u.top, 0), H = ue(u.bottom, 0);
|
|
3443
|
-
|
|
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,
|
|
@@ -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
|
} : {
|
|
@@ -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 s = ye(1);
|
|
3616
|
-
t && (o ?
|
|
3616
|
+
t && (o ? ge(o) && (s = rt(o)) : s = rt(e));
|
|
3617
3617
|
const i = p1(a, n, o) ? ur(a) : ye(0);
|
|
3618
3618
|
let c = (r.left + i.x) / s.x, l = (r.top + i.y) / s.y, u = r.width / s.x, d = r.height / s.y;
|
|
3619
3619
|
if (a) {
|
|
3620
|
-
const _ = de(a),
|
|
3620
|
+
const _ = de(a), m = o && ge(o) ? de(o) : o;
|
|
3621
3621
|
let w = _, p = En(w);
|
|
3622
|
-
for (; p && o &&
|
|
3623
|
-
const
|
|
3624
|
-
c *=
|
|
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(s)) && (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 _ = s && !d && !a ? dr(s, 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 s = -n.scrollLeft + Gt(e);
|
|
3678
3678
|
const i = -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((i) =>
|
|
3744
|
+
let o = bt(e, [], !1).filter((i) => ge(i) && ut(i) !== "body"), r = null;
|
|
3745
3745
|
const a = we(e).position === "fixed";
|
|
3746
3746
|
let s = a ? Ie(e) : e;
|
|
3747
|
-
for (;
|
|
3747
|
+
for (; ge(s) && !it(s); ) {
|
|
3748
3748
|
const i = we(s), c = Xn(s);
|
|
3749
3749
|
!c && i.position === "fixed" && (r = null), (a ? !c && !r : !c && i.position === "static" && !!r && v1.has(r.position) || yt(s) && !c && fr(e, s)) ? o = o.filter((u) => u !== s) : r = i, s = Ie(s);
|
|
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)) && (i = 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, i) : ye(0), d = s.left + i.scrollLeft - c.x - u.x, _ = s.top + i.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
|
}
|
|
@@ -3852,10 +3852,10 @@ const P1 = {
|
|
|
3852
3852
|
getClippingRect: y1,
|
|
3853
3853
|
getOffsetParent: _r,
|
|
3854
3854
|
getElementRects: E1,
|
|
3855
|
-
getClientRects:
|
|
3855
|
+
getClientRects: m1,
|
|
3856
3856
|
getDimensions: x1,
|
|
3857
3857
|
getScale: rt,
|
|
3858
|
-
isElement:
|
|
3858
|
+
isElement: ge,
|
|
3859
3859
|
isRTL: L1
|
|
3860
3860
|
};
|
|
3861
3861
|
function pr(e, t) {
|
|
@@ -3874,12 +3874,12 @@ function $1(e, t) {
|
|
|
3874
3874
|
left: u,
|
|
3875
3875
|
top: d,
|
|
3876
3876
|
width: _,
|
|
3877
|
-
height:
|
|
3877
|
+
height: m
|
|
3878
3878
|
} = l;
|
|
3879
|
-
if (i || t(), !_ || !
|
|
3879
|
+
if (i || t(), !_ || !m)
|
|
3880
3880
|
return;
|
|
3881
|
-
const w = $t(d), p = $t(r.clientWidth - (u + _)),
|
|
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;
|
|
@@ -3922,25 +3922,25 @@ function R1(e, t, n, o) {
|
|
|
3922
3922
|
}), a && v.addEventListener("resize", n);
|
|
3923
3923
|
});
|
|
3924
3924
|
const d = l && i ? $1(l, n) : null;
|
|
3925
|
-
let _ = -1,
|
|
3926
|
-
s && (
|
|
3925
|
+
let _ = -1, m = null;
|
|
3926
|
+
s && (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
3946
|
const N1 = e1, k1 = t1, A1 = Kl, T1 = o1, z1 = Ql, So = Gl, M1 = n1, I1 = (e, t, n) => {
|
|
@@ -4022,13 +4022,13 @@ 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), [
|
|
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
4028
|
k !== E.current && (E.current = k, p(k));
|
|
4029
4029
|
}, []), b = h.useCallback((k) => {
|
|
4030
4030
|
k !== S.current && (S.current = k, v(k));
|
|
4031
|
-
}, []), y = a || w, x = s ||
|
|
4031
|
+
}, []), y = a || w, x = s || 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
4032
|
if (!E.current || !S.current)
|
|
4033
4033
|
return;
|
|
4034
4034
|
const k = {
|
|
@@ -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,10 +4214,10 @@ 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,
|
|
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
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
|
|
@@ -4227,10 +4227,10 @@ var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
|
4227
4227
|
strategy: "fixed",
|
|
4228
4228
|
placement: $,
|
|
4229
4229
|
whileElementsMounted: (...R) => R1(...R, {
|
|
4230
|
-
animationFrame:
|
|
4230
|
+
animationFrame: m === "always"
|
|
4231
4231
|
}),
|
|
4232
4232
|
elements: {
|
|
4233
|
-
reference:
|
|
4233
|
+
reference: g.anchor
|
|
4234
4234
|
},
|
|
4235
4235
|
middleware: [
|
|
4236
4236
|
B1({ mainAxis: r + L, alignmentAxis: s }),
|
|
@@ -4372,9 +4372,9 @@ var nu = (e) => ({
|
|
|
4372
4372
|
name: "transformOrigin",
|
|
4373
4373
|
options: e,
|
|
4374
4374
|
fn(t) {
|
|
4375
|
-
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, i = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], _ = (r.arrow?.x ?? 0) + i / 2,
|
|
4375
|
+
const { placement: n, rects: o, middlewareData: r } = t, s = r.arrow?.centerOffset !== 0, i = s ? 0 : e.arrowWidth, c = s ? 0 : e.arrowHeight, [l, u] = Lr(n), d = { start: "0%", center: "50%", end: "100%" }[u], _ = (r.arrow?.x ?? 0) + i / 2, m = (r.arrow?.y ?? 0) + c / 2;
|
|
4376
4376
|
let w = "", p = "";
|
|
4377
|
-
return l === "bottom" ? (w = s ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = s ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = s ? d : `${
|
|
4377
|
+
return l === "bottom" ? (w = s ? d : `${_}px`, p = `${-c}px`) : l === "top" ? (w = s ? d : `${_}px`, p = `${o.floating.height + c}px`) : l === "right" ? (w = `${-c}px`, p = s ? d : `${m}px`) : l === "left" && (w = `${o.floating.width + c}px`, p = s ? d : `${m}px`), { data: { x: w, y: p } };
|
|
4378
4378
|
}
|
|
4379
4379
|
});
|
|
4380
4380
|
function Lr(e) {
|
|
@@ -4478,7 +4478,7 @@ var pu = function(e) {
|
|
|
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
4483
|
Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
|
|
4484
4484
|
var a = Nt[n], s = [], i = /* @__PURE__ */ new Set(), c = new Set(r), l = function(d) {
|
|
@@ -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), s.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), i.clear(), pn++, function() {
|
|
4502
4502
|
s.forEach(function(d) {
|
|
4503
|
-
var _ = et.get(d) - 1,
|
|
4504
|
-
et.set(d, _), a.set(d,
|
|
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
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() {
|
|
@@ -4653,17 +4653,17 @@ kr.isSideCarExport = !0;
|
|
|
4653
4653
|
function Pu(e, t) {
|
|
4654
4654
|
return e.useMedium(t), kr;
|
|
4655
4655
|
}
|
|
4656
|
-
var Ar = Lu(),
|
|
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], s = e.forwardProps, i = 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], s = e.forwardProps, i = 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:
|
|
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
4667
|
s ? h.cloneElement(h.Children.only(i), Ce(Ce({}, S), { ref: E })) : h.createElement(C, Ce({}, S, { className: c, ref: E }), i)
|
|
4668
4668
|
);
|
|
4669
4669
|
});
|
|
@@ -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;
|
|
@@ -4866,7 +4866,7 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4866
4866
|
do {
|
|
4867
4867
|
if (!i)
|
|
4868
4868
|
break;
|
|
4869
|
-
var
|
|
4869
|
+
var m = Ir(e, i), w = m[0], p = m[1], g = m[2], v = p - g - a * w;
|
|
4870
4870
|
(w || v) && Mr(e, i) && (d += v, _ += w);
|
|
4871
4871
|
var C = i.parentNode;
|
|
4872
4872
|
i = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
|
|
@@ -4898,16 +4898,16 @@ function Ku(e) {
|
|
|
4898
4898
|
if (e.inert) {
|
|
4899
4899
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
4900
4900
|
var p = wu([e.lockRef.current], (e.shards || []).map(ko), !0).filter(Boolean);
|
|
4901
|
-
return p.forEach(function(
|
|
4902
|
-
return
|
|
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 i = h.useCallback(function(p,
|
|
4910
|
+
var i = h.useCallback(function(p, g) {
|
|
4911
4911
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4912
4912
|
return !s.current.allowPinchZoom;
|
|
4913
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";
|
|
@@ -4921,26 +4921,26 @@ function Ku(e) {
|
|
|
4921
4921
|
if (!o.current && "changedTouches" in p && (b || y) && (o.current = x), !x)
|
|
4922
4922
|
return !0;
|
|
4923
4923
|
var $ = o.current || x;
|
|
4924
|
-
return qu($,
|
|
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
4936
|
var b = (s.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
|
|
4937
|
-
return x.contains(
|
|
4938
|
-
}), y = b.length > 0 ? i(
|
|
4939
|
-
y &&
|
|
4937
|
+
return x.contains(g.target);
|
|
4938
|
+
}), y = b.length > 0 ? i(g, b[0]) : !s.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;
|
|
@@ -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) {
|
|
@@ -4982,7 +4982,7 @@ 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,9 +4999,9 @@ 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,
|
|
@@ -5011,13 +5011,13 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
5011
5011
|
defaultProp: i,
|
|
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,
|
|
@@ -5052,7 +5052,7 @@ 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,
|
|
@@ -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), s = Oe(Vr, n), i = s.disabled || o, c = ne(t, s.onTriggerChange), l = Jt(n), u = h.useRef("touch"), [d, _,
|
|
5078
|
-
const
|
|
5077
|
+
const { __scopeSelect: n, disabled: o = !1, ...r } = e, a = en(n), s = Oe(Vr, n), i = s.disabled || o, c = ne(t, s.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 === s.value), C = sa(g, p, v);
|
|
5079
5079
|
C !== void 0 && s.onValueChange(C.value);
|
|
5080
5080
|
}), w = (p) => {
|
|
5081
|
-
i || (s.onOpenChange(!0),
|
|
5081
|
+
i || (s.onOpenChange(!0), m()), p && (s.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
|
) });
|
|
@@ -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,17 +5174,17 @@ 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
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
|
|
5187
|
+
if (b) return gu(b);
|
|
5188
5188
|
}, [b]), $l();
|
|
5189
5189
|
const z = h.useCallback(
|
|
5190
5190
|
(R) => {
|
|
@@ -5244,10 +5244,10 @@ var ge = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
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,
|
|
@@ -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), s = De(Ye, n), [i, c] = h.useState(null), [l, u] = h.useState(null), d = ne(t, (S) => u(S)), _ = Jt(n),
|
|
5332
|
-
if (a.trigger && a.valueNode && i && l && p &&
|
|
5331
|
+
const { __scopeSelect: n, onPlaced: o, ...r } = e, a = Oe(Ye, n), s = De(Ye, n), [i, 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 } = s, b = h.useCallback(() => {
|
|
5332
|
+
if (a.trigger && a.valueNode && i && l && p && g && v) {
|
|
5333
5333
|
const S = a.trigger.getBoundingClientRect(), L = l.getBoundingClientRect(), $ = a.valueNode.getBoundingClientRect(), N = v.getBoundingClientRect();
|
|
5334
5334
|
if (a.dir !== "rtl") {
|
|
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 -
|
|
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
|
i.style.minWidth = Be + "px", i.style.left = an + "px";
|
|
5345
5345
|
} else {
|
|
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 -
|
|
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
|
i.style.minWidth = Be + "px", i.style.right = an + "px";
|
|
5351
5351
|
}
|
|
5352
|
-
const T = _(), B = window.innerHeight -
|
|
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
5353
|
if (X <= Re) {
|
|
5354
|
-
const Z = T.length > 0 &&
|
|
5354
|
+
const Z = T.length > 0 && g === T[T.length - 1].ref.current;
|
|
5355
5355
|
i.style.bottom = "0px";
|
|
5356
5356
|
const Q = l.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(
|
|
5357
5357
|
Ke,
|
|
@@ -5360,7 +5360,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5360
5360
|
), Be = X + fe;
|
|
5361
5361
|
i.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
|
i.style.top = "0px";
|
|
5365
5365
|
const fe = Math.max(
|
|
5366
5366
|
Re,
|
|
@@ -5369,7 +5369,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5369
5369
|
) + oe;
|
|
5370
5370
|
i.style.height = fe + "px", p.scrollTop = X - Re + p.offsetTop;
|
|
5371
5371
|
}
|
|
5372
|
-
i.style.margin = `${
|
|
5372
|
+
i.style.margin = `${me}px 0`, i.style.minHeight = se + "px", i.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
|
i,
|
|
5379
5379
|
l,
|
|
5380
5380
|
p,
|
|
5381
|
-
|
|
5381
|
+
g,
|
|
5382
5382
|
v,
|
|
5383
5383
|
a.dir,
|
|
5384
5384
|
o
|
|
@@ -5399,7 +5399,7 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5399
5399
|
{
|
|
5400
5400
|
scope: n,
|
|
5401
5401
|
contentWrapper: i,
|
|
5402
|
-
shouldExpandOnScrollRef:
|
|
5402
|
+
shouldExpandOnScrollRef: m,
|
|
5403
5403
|
onScrollButtonChange: E,
|
|
5404
5404
|
children: /* @__PURE__ */ f(
|
|
5405
5405
|
"div",
|
|
@@ -5436,7 +5436,7 @@ 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, s = en(n);
|
|
5442
5442
|
return /* @__PURE__ */ f(
|
|
@@ -5497,11 +5497,11 @@ var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
|
|
|
5497
5497
|
onScroll: te(r.onScroll, (l) => {
|
|
5498
5498
|
const u = l.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: _ } = s;
|
|
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
|
}
|
|
@@ -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
|
...s
|
|
5539
|
-
} = e, i = Oe(Wt, n), c = De(Wt, n), l = i.value === o, [u, d] = h.useState(a ?? ""), [_,
|
|
5539
|
+
} = e, i = Oe(Wt, n), c = De(Wt, n), l = i.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 || (i.onValueChange(o), i.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
|
...s,
|
|
5579
5579
|
ref: w,
|
|
5580
|
-
onFocus: te(s.onFocus, () =>
|
|
5581
|
-
onBlur: te(s.onBlur, () =>
|
|
5580
|
+
onFocus: te(s.onFocus, () => m(!0)),
|
|
5581
|
+
onBlur: te(s.onBlur, () => m(!1)),
|
|
5582
5582
|
onClick: te(s.onClick, () => {
|
|
5583
|
-
|
|
5583
|
+
g.current !== "mouse" && v();
|
|
5584
5584
|
}),
|
|
5585
5585
|
onPointerUp: te(s.onPointerUp, () => {
|
|
5586
|
-
|
|
5586
|
+
g.current === "mouse" && v();
|
|
5587
5587
|
}),
|
|
5588
5588
|
onPointerDown: te(s.onPointerDown, (C) => {
|
|
5589
|
-
|
|
5589
|
+
g.current = C.pointerType;
|
|
5590
5590
|
}),
|
|
5591
5591
|
onPointerMove: te(s.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(s.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) => i.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 && s.valueNode && !s.valueNodeHasChildren ? Zt.createPortal(a.children, s.valueNode) : null
|
|
5623
5623
|
] });
|
|
@@ -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
|
s
|
|
5997
5997
|
];
|
|
5998
5998
|
function l(d) {
|
|
5999
|
-
const { scope: _, children:
|
|
5999
|
+
const { scope: _, children: m, ...w } = d, p = _?.[e][c] || i, 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] || i, w = Io(m);
|
|
6009
6009
|
if (w) return w;
|
|
6010
6010
|
if (s !== void 0) return s;
|
|
6011
6011
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
@@ -6100,7 +6100,7 @@ function f0(e, t) {
|
|
|
6100
6100
|
}, e);
|
|
6101
6101
|
}
|
|
6102
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, ...s } = e, [i, c] = W(null), [l, u] = W(null), [d, _] = W(null), [
|
|
6103
|
+
const { __scopeScrollArea: n, type: o = "hover", dir: r, scrollHideDelay: a = 600, ...s } = e, [i, 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);
|
|
@@ -6114,12 +6114,12 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
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
6120
|
onScrollbarXEnabledChange: E,
|
|
6121
6121
|
scrollbarY: p,
|
|
6122
|
-
onScrollbarYChange:
|
|
6122
|
+
onScrollbarYChange: g,
|
|
6123
6123
|
scrollbarYEnabled: S,
|
|
6124
6124
|
onScrollbarYEnabledChange: L,
|
|
6125
6125
|
onCornerWidthChange: C,
|
|
@@ -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), s = ce(null), i = Ge(t, s, a.onViewportChange);
|
|
6141
6141
|
return /* @__PURE__ */ V(zo, null, /* @__PURE__ */ V("style", {
|
|
6142
6142
|
dangerouslySetInnerHTML: {
|
|
@@ -6169,7 +6169,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6169
6169
|
display: "table"
|
|
6170
6170
|
}
|
|
6171
6171
|
}, o)));
|
|
6172
|
-
}), $e = "ScrollAreaScrollbar",
|
|
6172
|
+
}), $e = "ScrollAreaScrollbar", g0 = /* @__PURE__ */ P((e, t) => {
|
|
6173
6173
|
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: s } = r, i = e.orientation === "horizontal";
|
|
6174
6174
|
return ae(() => (i ? a(!0) : s(!0), () => {
|
|
6175
6175
|
i ? a(!1) : s(!1);
|
|
@@ -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"), s()), d = m;
|
|
6261
6261
|
};
|
|
6262
6262
|
return l.addEventListener("scroll", _), () => l.removeEventListener("scroll", _);
|
|
6263
6263
|
}
|
|
@@ -6313,15 +6313,15 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6313
6313
|
onThumbPointerUp: () => s.current = 0,
|
|
6314
6314
|
onThumbPointerDown: (_) => s.current = _
|
|
6315
6315
|
};
|
|
6316
|
-
function d(_,
|
|
6317
|
-
return L0(_, s.current, i,
|
|
6316
|
+
function d(_, m) {
|
|
6317
|
+
return L0(_, s.current, i, 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(_, i, 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(_, i);
|
|
6338
|
+
a.current.style.transform = `translate3d(0, ${m}px, 0)`;
|
|
6339
6339
|
}
|
|
6340
6340
|
},
|
|
6341
6341
|
onWheelScroll: (_) => {
|
|
@@ -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: () => {
|
|
@@ -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: () => {
|
|
@@ -6423,10 +6423,10 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6423
6423
|
}
|
|
6424
6424
|
}));
|
|
6425
6425
|
}), [y0, fa] = ua($e), _a = /* @__PURE__ */ P((e, t) => {
|
|
6426
|
-
const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: s, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e,
|
|
6426
|
+
const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: s, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e, m = he($e, n), [w, p] = W(null), g = Ge(
|
|
6427
6427
|
t,
|
|
6428
6428
|
($) => p($)
|
|
6429
|
-
), v = ce(null), C = ce(""), b =
|
|
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
6430
|
function L($) {
|
|
6431
6431
|
if (v.current) {
|
|
6432
6432
|
const N = $.clientX - v.current.left, T = $.clientY - v.current.top;
|
|
@@ -6454,7 +6454,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6454
6454
|
]), ae(E, [
|
|
6455
6455
|
o,
|
|
6456
6456
|
E
|
|
6457
|
-
]), ct(w, S), ct(
|
|
6457
|
+
]), ct(w, S), ct(m.content, S), /* @__PURE__ */ V(y0, {
|
|
6458
6458
|
scope: n,
|
|
6459
6459
|
scrollbar: w,
|
|
6460
6460
|
hasThumb: r,
|
|
@@ -6463,18 +6463,18 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6463
6463
|
onThumbPositionChange: E,
|
|
6464
6464
|
onThumbPointerDown: We(i)
|
|
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
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",
|
|
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
6474
|
onPointerMove: Fe(e.onPointerMove, L),
|
|
6475
6475
|
onPointerUp: Fe(e.onPointerUp, ($) => {
|
|
6476
6476
|
const N = $.target;
|
|
6477
|
-
N.hasPointerCapture($.pointerId) && N.releasePointerCapture($.pointerId), document.body.style.webkitUserSelect = C.current,
|
|
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
6480
|
}), zn = "ScrollAreaThumb", wn = /* @__PURE__ */ P((e, t) => {
|
|
@@ -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, i);
|
|
6500
|
+
l.current = m, i();
|
|
6501
6501
|
}
|
|
6502
6502
|
};
|
|
6503
6503
|
return i(), 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
|
s.onThumbPointerDown({
|
|
6521
6521
|
x: w,
|
|
6522
6522
|
y: p
|
|
@@ -6571,7 +6571,7 @@ function L0(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
|
s * -1,
|
|
6585
6585
|
0
|
|
6586
6586
|
], l = d0(e, c);
|
|
6587
|
-
return
|
|
6587
|
+
return ma([
|
|
6588
6588
|
0,
|
|
6589
6589
|
s
|
|
6590
6590
|
], [
|
|
@@ -6592,14 +6592,14 @@ function Ao(e, t, n = "ltr") {
|
|
|
6592
6592
|
i
|
|
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
6605
|
const P0 = (e, t = () => {
|
|
@@ -6645,7 +6645,7 @@ function ct(e, t) {
|
|
|
6645
6645
|
n
|
|
6646
6646
|
]);
|
|
6647
6647
|
}
|
|
6648
|
-
const $0 = p0, R0 =
|
|
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
6649
|
focus: k0,
|
|
6650
6650
|
"focus--default": "_focus--default_3cfz1_567",
|
|
6651
6651
|
"focus--danger": "_focus--danger_3cfz1_571",
|
|
@@ -6703,7 +6703,7 @@ const $0 = p0, R0 = g0, N0 = S0, k0 = "_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(
|
|
@@ -6727,7 +6727,7 @@ const $0 = p0, R0 = g0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6727
6727
|
R0,
|
|
6728
6728
|
{
|
|
6729
6729
|
className: ee.viewport,
|
|
6730
|
-
style:
|
|
6730
|
+
style: m,
|
|
6731
6731
|
children: n
|
|
6732
6732
|
}
|
|
6733
6733
|
),
|
|
@@ -6760,7 +6760,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6760
6760
|
"--scrollbar-thumb-width": s.width
|
|
6761
6761
|
};
|
|
6762
6762
|
return /* @__PURE__ */ A(
|
|
6763
|
-
|
|
6763
|
+
g0,
|
|
6764
6764
|
{
|
|
6765
6765
|
ref: a,
|
|
6766
6766
|
orientation: t,
|
|
@@ -6775,7 +6775,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6775
6775
|
children: [
|
|
6776
6776
|
n === "large" && o === "arrows" && /* @__PURE__ */ A(Ee, { children: [
|
|
6777
6777
|
t === "vertical" && /* @__PURE__ */ A(Ee, { children: [
|
|
6778
|
-
/* @__PURE__ */ f("button", { className: ee.arrowButton, "data-direction": "up", children: /* @__PURE__ */ f(
|
|
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 = P(({ 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,
|
|
@@ -6794,7 +6794,7 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6794
6794
|
] }),
|
|
6795
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 = P(({ 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 = P(({ 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,14 +6842,14 @@ const ef = P((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 || (
|
|
6852
|
+
o || (m ? m(!r) : b(!C));
|
|
6853
6853
|
}, E = {
|
|
6854
6854
|
wrapper: I(Y.wrapper, Y[`size${v}`], Y[p], n),
|
|
6855
6855
|
content: I(Y.content, Y[p]),
|
|
@@ -6865,7 +6865,7 @@ const ef = P((e, t) => {
|
|
|
6865
6865
|
};
|
|
6866
6866
|
return /* @__PURE__ */ A("div", { ref: t, children: [
|
|
6867
6867
|
a && /* @__PURE__ */ f(hl, { className: E.label, onClick: x, children: a }),
|
|
6868
|
-
/* @__PURE__ */ A("div", { className: E.wrapper, style: { width:
|
|
6868
|
+
/* @__PURE__ */ A("div", { className: E.wrapper, style: { width: g }, children: [
|
|
6869
6869
|
d && /* @__PURE__ */ f("div", { className: E.prefix, children: d }),
|
|
6870
6870
|
/* @__PURE__ */ A(
|
|
6871
6871
|
Ld,
|
|
@@ -6924,9 +6924,9 @@ const ef = P((e, t) => {
|
|
|
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
|
}));
|
|
@@ -7035,31 +7035,31 @@ 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
|
-
|
|
7062
|
+
L2 as Dot,
|
|
7063
7063
|
La as EyeIcon,
|
|
7064
7064
|
Pa as EyeSlashIcon,
|
|
7065
7065
|
Ea as FacebookIcon,
|
|
@@ -7074,17 +7074,17 @@ export {
|
|
|
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
|