@post-pioneer/ui-kit 0.1.61 → 0.1.62
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 +905 -905
- package/dist/ui-kit-postpioneer.umd.js +12 -12
- 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 gt = 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 mt = P(
|
|
|
44
44
|
}
|
|
45
45
|
)
|
|
46
46
|
);
|
|
47
|
-
|
|
47
|
+
gt.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",
|
|
@@ -715,20 +715,20 @@ const Va = "_accordion_1bao6_780", Ha = "_open_1bao6_789", Ba = "_disabled_1bao6
|
|
|
715
715
|
children: o,
|
|
716
716
|
className: r,
|
|
717
717
|
textAlign: a = "left",
|
|
718
|
-
variant:
|
|
719
|
-
truncate:
|
|
718
|
+
variant: s = "text-long-m-regular",
|
|
719
|
+
truncate: i = !1,
|
|
720
720
|
multilineTruncate: c = !1,
|
|
721
721
|
noWrap: l = !1,
|
|
722
722
|
breakWord: u = !1,
|
|
723
723
|
fontFamily: d = "inter",
|
|
724
724
|
..._
|
|
725
|
-
} = e,
|
|
725
|
+
} = e, g = cs[s], w = I(
|
|
726
726
|
Ne.typography,
|
|
727
|
-
Ne[
|
|
727
|
+
Ne[g],
|
|
728
728
|
Ne[`align-${a}`],
|
|
729
729
|
Ne[`font-${d}`],
|
|
730
730
|
{
|
|
731
|
-
[Ne.truncate]:
|
|
731
|
+
[Ne.truncate]: i,
|
|
732
732
|
[Ne.multilineTruncate]: c,
|
|
733
733
|
[Ne.noWrap]: l,
|
|
734
734
|
[Ne.breakWord]: u
|
|
@@ -796,17 +796,17 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
796
796
|
label: o,
|
|
797
797
|
labelPosition: r = "bottom"
|
|
798
798
|
}) => {
|
|
799
|
-
const a = !!o,
|
|
799
|
+
const a = !!o, s = [
|
|
800
800
|
Qe["spinner-container"],
|
|
801
801
|
a && Qe[`spinner-container--label-${r}`],
|
|
802
802
|
n
|
|
803
|
-
].filter(Boolean).join(" "),
|
|
803
|
+
].filter(Boolean).join(" "), i = [
|
|
804
804
|
Qe.spinner,
|
|
805
805
|
Qe[`spinner--${e}`],
|
|
806
806
|
Qe[`spinner--${t}`]
|
|
807
807
|
].filter(Boolean).join(" ");
|
|
808
|
-
return /* @__PURE__ */ A("div", { className:
|
|
809
|
-
/* @__PURE__ */ f("div", { className:
|
|
808
|
+
return /* @__PURE__ */ A("div", { className: s, children: [
|
|
809
|
+
/* @__PURE__ */ f("div", { className: i, children: (() => {
|
|
810
810
|
switch (e) {
|
|
811
811
|
case "xs":
|
|
812
812
|
return /* @__PURE__ */ f("svg", { width: "12", height: "12", viewBox: "0 0 12 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: /* @__PURE__ */ f("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M11.0271 9.32414C11.5487 8.54345 11.8786 7.65462 11.9948 6.7298C12.0466 6.31739 11.7048 5.97912 11.2891 5.97912C10.8735 5.97912 10.5431 6.3186 10.4746 6.72857C10.1176 8.86575 8.25944 10.4946 6.02088 10.4946C3.52695 10.4946 1.50522 8.47291 1.50522 5.97898C1.50522 3.74035 3.13422 1.88219 5.27149 1.52522C5.68143 1.45675 6.02088 1.1264 6.02088 0.710787C6.02088 0.29517 5.68266 -0.0466028 5.27028 0.00521079C4.34544 0.121414 3.45658 0.451289 2.67586 0.972945C1.68573 1.63453 0.914021 2.57486 0.458315 3.67503C0.00260876 4.7752 -0.116625 5.9858 0.115692 7.15374C0.348009 8.32167 0.921443 9.39449 1.76348 10.2365C2.60551 11.0786 3.67833 11.652 4.84627 11.8843C6.0142 12.1166 7.2248 11.9974 8.32497 11.5417C9.42515 11.086 10.3655 10.3143 11.0271 9.32414Z", fill: "currentColor" }) });
|
|
@@ -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
|
+
}, gs = "_focus_1samt_550", ms = "_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: gs,
|
|
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: ms,
|
|
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",
|
|
@@ -891,25 +891,25 @@ const us = "_focus_l2mdh_550", ds = "_swap_l2mdh_632", fs = "_swap__content_l2md
|
|
|
891
891
|
variant: o = "primary",
|
|
892
892
|
disabled: r = !1,
|
|
893
893
|
loading: a = !1,
|
|
894
|
-
active:
|
|
895
|
-
open:
|
|
894
|
+
active: s = !1,
|
|
895
|
+
open: i = !1,
|
|
896
896
|
className: c = "",
|
|
897
897
|
children: l,
|
|
898
898
|
icon: u,
|
|
899
899
|
iconPosition: d = "left",
|
|
900
900
|
tooltip: _,
|
|
901
|
-
count:
|
|
901
|
+
count: g,
|
|
902
902
|
withChevron: w = !1,
|
|
903
903
|
href: p,
|
|
904
|
-
...
|
|
904
|
+
...m
|
|
905
905
|
} = e, v = d === "only" || !l && u, C = w && !v, b = [
|
|
906
906
|
re.button,
|
|
907
907
|
re[`size${n.toUpperCase()}`],
|
|
908
908
|
re[o],
|
|
909
909
|
r && re.disabled,
|
|
910
910
|
a && re.loading,
|
|
911
|
-
|
|
912
|
-
|
|
911
|
+
s && re.active,
|
|
912
|
+
i && re.open,
|
|
913
913
|
v && re.iconOnly,
|
|
914
914
|
c
|
|
915
915
|
].filter(Boolean).join(" "), y = () => /* @__PURE__ */ A(Ee, { children: [
|
|
@@ -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
|
+
g !== void 0 && /* @__PURE__ */ f("span", { className: re.count, children: g > 99 ? "+99" : g })
|
|
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 = m;
|
|
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 } = m;
|
|
939
939
|
return /* @__PURE__ */ f(
|
|
940
940
|
"button",
|
|
941
941
|
{
|
|
@@ -1000,8 +1000,8 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1000
1000
|
color: o = "default",
|
|
1001
1001
|
className: r = "",
|
|
1002
1002
|
children: a,
|
|
1003
|
-
textPosition:
|
|
1004
|
-
...
|
|
1003
|
+
textPosition: s = "center",
|
|
1004
|
+
...i
|
|
1005
1005
|
}) => {
|
|
1006
1006
|
const c = !!a, l = [
|
|
1007
1007
|
ke.divider,
|
|
@@ -1010,7 +1010,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1010
1010
|
ke[`divider--${n}`],
|
|
1011
1011
|
ke[`divider--${o}`],
|
|
1012
1012
|
c && ke["divider--with-text"],
|
|
1013
|
-
c && ke[`divider--text-${
|
|
1013
|
+
c && ke[`divider--text-${s}`],
|
|
1014
1014
|
r
|
|
1015
1015
|
].filter(Boolean).join(" ");
|
|
1016
1016
|
return c && e === "horizontal" ? /* @__PURE__ */ f(
|
|
@@ -1019,7 +1019,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1019
1019
|
className: l,
|
|
1020
1020
|
role: "separator",
|
|
1021
1021
|
"aria-orientation": e,
|
|
1022
|
-
...
|
|
1022
|
+
...i,
|
|
1023
1023
|
children: /* @__PURE__ */ f("span", { className: ke.divider__text, children: a })
|
|
1024
1024
|
}
|
|
1025
1025
|
) : /* @__PURE__ */ f(
|
|
@@ -1028,34 +1028,34 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1028
1028
|
className: l,
|
|
1029
1029
|
role: "separator",
|
|
1030
1030
|
"aria-orientation": e,
|
|
1031
|
-
...
|
|
1031
|
+
...i
|
|
1032
1032
|
}
|
|
1033
1033
|
);
|
|
1034
|
-
},
|
|
1034
|
+
}, yf = ({
|
|
1035
1035
|
title: e,
|
|
1036
1036
|
count: t,
|
|
1037
1037
|
icon: n,
|
|
1038
1038
|
children: o,
|
|
1039
1039
|
actions: r = [],
|
|
1040
1040
|
defaultOpen: a = !1,
|
|
1041
|
-
disabled:
|
|
1042
|
-
className:
|
|
1041
|
+
disabled: s = !1,
|
|
1042
|
+
className: i,
|
|
1043
1043
|
toggleText: c = {}
|
|
1044
1044
|
}) => {
|
|
1045
|
-
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0),
|
|
1046
|
-
|
|
1045
|
+
const [l, u] = W(a), [d, _] = W(a ? "auto" : 0), g = ce(null), w = () => {
|
|
1046
|
+
s || (l ? (_(g.current?.scrollHeight || 0), requestAnimationFrame(() => _(0))) : _(g.current?.scrollHeight || 0), u(!l));
|
|
1047
1047
|
};
|
|
1048
1048
|
ae(() => {
|
|
1049
|
-
if (l && d === (
|
|
1050
|
-
const
|
|
1051
|
-
return () => clearTimeout(
|
|
1049
|
+
if (l && d === (g.current?.scrollHeight || 0)) {
|
|
1050
|
+
const m = setTimeout(() => _("auto"), 250);
|
|
1051
|
+
return () => clearTimeout(m);
|
|
1052
1052
|
}
|
|
1053
1053
|
}, [l, d]);
|
|
1054
1054
|
const p = l ? c.open || "Свернуть" : c.closed || "Развернуть";
|
|
1055
1055
|
return /* @__PURE__ */ A(
|
|
1056
1056
|
"div",
|
|
1057
1057
|
{
|
|
1058
|
-
className: I(J.accordion, l && J.open,
|
|
1058
|
+
className: I(J.accordion, l && J.open, s && J.disabled, i),
|
|
1059
1059
|
"data-state": l ? "open" : "closed",
|
|
1060
1060
|
children: [
|
|
1061
1061
|
/* @__PURE__ */ A("div", { className: J.header, onClick: w, children: [
|
|
@@ -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((m, 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: m.disabled,
|
|
1081
|
+
icon: m.icon || /* @__PURE__ */ f(Ho, {}),
|
|
1082
|
+
iconPosition: m.label ? "left" : "only",
|
|
1083
|
+
tooltip: m.label ? void 0 : m.label,
|
|
1084
1084
|
onClick: (C) => {
|
|
1085
|
-
C.stopPropagation(),
|
|
1085
|
+
C.stopPropagation(), m.onClick?.();
|
|
1086
1086
|
},
|
|
1087
|
-
children:
|
|
1087
|
+
children: m.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: (m) => {
|
|
1103
|
+
m.stopPropagation(), w();
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
1106
|
)
|
|
1107
1107
|
] })
|
|
1108
1108
|
] }),
|
|
1109
|
-
/* @__PURE__ */ A("div", { ref:
|
|
1109
|
+
/* @__PURE__ */ A("div", { ref: g, 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
|
+
}, xf = ({
|
|
1123
1123
|
title: e,
|
|
1124
1124
|
subtitle: t,
|
|
1125
1125
|
children: n,
|
|
@@ -1183,16 +1183,16 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1183
1183
|
status: o = null,
|
|
1184
1184
|
bordered: r = !1,
|
|
1185
1185
|
backgroundColor: a,
|
|
1186
|
-
className:
|
|
1187
|
-
onError:
|
|
1186
|
+
className: s = "",
|
|
1187
|
+
onError: i
|
|
1188
1188
|
}) => {
|
|
1189
|
-
const c = (
|
|
1190
|
-
const w =
|
|
1189
|
+
const c = (g) => {
|
|
1190
|
+
const w = g.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 g = [
|
|
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, m) => p + m.charCodeAt(0), 0);
|
|
1213
|
+
return g[w % g.length];
|
|
1214
1214
|
}
|
|
1215
1215
|
return "var(--color-blue-gray-300)";
|
|
1216
1216
|
}, u = {
|
|
@@ -1222,7 +1222,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1222
1222
|
Ae.avatar,
|
|
1223
1223
|
Ae[`avatar--${n}`],
|
|
1224
1224
|
r ? Ae["avatar--bordered"] : "",
|
|
1225
|
-
|
|
1225
|
+
s
|
|
1226
1226
|
].filter(Boolean).join(" "), _ = () => {
|
|
1227
1227
|
if (e)
|
|
1228
1228
|
return /* @__PURE__ */ f(
|
|
@@ -1231,12 +1231,12 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1231
1231
|
src: e,
|
|
1232
1232
|
alt: t ? `${t} avatar` : "Avatar",
|
|
1233
1233
|
className: Ae.avatar__image,
|
|
1234
|
-
onError:
|
|
1234
|
+
onError: i
|
|
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 g = c(t);
|
|
1239
|
+
return /* @__PURE__ */ f("div", { className: Ae.avatar__initials, style: { backgroundColor: l() }, children: g });
|
|
1240
1240
|
}
|
|
1241
1241
|
return /* @__PURE__ */ f("div", { className: Ae.avatar__placeholder, children: /* @__PURE__ */ A(
|
|
1242
1242
|
"svg",
|
|
@@ -1263,14 +1263,14 @@ 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
|
+
}, Sf = ({
|
|
1267
1267
|
items: e,
|
|
1268
1268
|
max: t = 5,
|
|
1269
1269
|
size: n = "m",
|
|
1270
1270
|
overlap: o = !0,
|
|
1271
1271
|
className: r = ""
|
|
1272
1272
|
}) => {
|
|
1273
|
-
const a = e.slice(0, t),
|
|
1273
|
+
const a = e.slice(0, t), s = e.length - a.length;
|
|
1274
1274
|
return /* @__PURE__ */ A(
|
|
1275
1275
|
"div",
|
|
1276
1276
|
{
|
|
@@ -1280,15 +1280,15 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1280
1280
|
r
|
|
1281
1281
|
].filter(Boolean).join(" "),
|
|
1282
1282
|
children: [
|
|
1283
|
-
a.map((
|
|
1284
|
-
|
|
1283
|
+
a.map((i, c) => /* @__PURE__ */ f("div", { className: ht.avatarGroup__item, children: /* @__PURE__ */ f(ci, { ...i, size: n }) }, c)),
|
|
1284
|
+
s > 0 && /* @__PURE__ */ A("div", { className: `${ht.avatarGroup__item} ${ht.avatarGroup__more}`, children: [
|
|
1285
1285
|
"+",
|
|
1286
|
-
|
|
1286
|
+
s
|
|
1287
1287
|
] })
|
|
1288
1288
|
]
|
|
1289
1289
|
}
|
|
1290
1290
|
);
|
|
1291
|
-
},
|
|
1291
|
+
}, Ef = ({
|
|
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", gi = "_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: gi,
|
|
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
|
+
}, Lf = ({
|
|
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
|
+
}, mi = "_focus_55oxc_550", wi = "_swap_55oxc_632", vi = "_swap__content_55oxc_688", Ci = "_dot_55oxc_780", Lt = {
|
|
1406
|
+
focus: mi,
|
|
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
|
+
}, Pf = ({
|
|
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
|
+
}, $f = ({
|
|
1499
1499
|
value: e,
|
|
1500
1500
|
color: t = "gray",
|
|
1501
1501
|
size: n = "m",
|
|
@@ -1559,13 +1559,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1559
1559
|
indeterminate: o = !1,
|
|
1560
1560
|
error: r,
|
|
1561
1561
|
disabled: a,
|
|
1562
|
-
checked:
|
|
1563
|
-
onChange:
|
|
1562
|
+
checked: s,
|
|
1563
|
+
onChange: i,
|
|
1564
1564
|
className: c,
|
|
1565
1565
|
...l
|
|
1566
1566
|
}, u) => {
|
|
1567
1567
|
const d = (_) => {
|
|
1568
|
-
a ||
|
|
1568
|
+
a || i?.(_);
|
|
1569
1569
|
};
|
|
1570
1570
|
return /* @__PURE__ */ A(
|
|
1571
1571
|
"label",
|
|
@@ -1575,7 +1575,7 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1575
1575
|
_e[t],
|
|
1576
1576
|
_e[n],
|
|
1577
1577
|
{
|
|
1578
|
-
[_e.checked]:
|
|
1578
|
+
[_e.checked]: s,
|
|
1579
1579
|
[_e.indeterminate]: o,
|
|
1580
1580
|
[_e.error]: r,
|
|
1581
1581
|
[_e.disabled]: a
|
|
@@ -1589,13 +1589,13 @@ const js = "_focus_1gu7y_550", Ws = "_swap_1gu7y_632", Fs = "_swap__content_1gu7
|
|
|
1589
1589
|
ref: u,
|
|
1590
1590
|
type: "checkbox",
|
|
1591
1591
|
className: _e.input,
|
|
1592
|
-
checked:
|
|
1592
|
+
checked: s,
|
|
1593
1593
|
disabled: a,
|
|
1594
1594
|
onChange: d,
|
|
1595
1595
|
...l
|
|
1596
1596
|
}
|
|
1597
1597
|
),
|
|
1598
|
-
/* @__PURE__ */ f("span", { className: _e.box, children: o ? /* @__PURE__ */ f(Vo, { className: _e.icon }) :
|
|
1598
|
+
/* @__PURE__ */ f("span", { className: _e.box, children: o ? /* @__PURE__ */ f(Vo, { className: _e.icon }) : s ? /* @__PURE__ */ f(Do, { className: _e.icon }) : null }),
|
|
1599
1599
|
e && /* @__PURE__ */ f("span", { className: _e.label, children: e })
|
|
1600
1600
|
]
|
|
1601
1601
|
}
|
|
@@ -1640,15 +1640,15 @@ 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
|
+
}, Rf = ({
|
|
1644
1644
|
children: e,
|
|
1645
1645
|
variant: t = "default",
|
|
1646
1646
|
size: n = "m",
|
|
1647
1647
|
rounded: o = "default",
|
|
1648
1648
|
active: r = !1,
|
|
1649
1649
|
disabled: a = !1,
|
|
1650
|
-
className:
|
|
1651
|
-
onClick:
|
|
1650
|
+
className: s,
|
|
1651
|
+
onClick: i
|
|
1652
1652
|
}) => {
|
|
1653
1653
|
const c = I(
|
|
1654
1654
|
je.chip,
|
|
@@ -1657,14 +1657,14 @@ const Bi = "_focus_1kco8_550", ji = "_swap_1kco8_632", Wi = "_swap__content_1kco
|
|
|
1657
1657
|
je[`rounded-${o}`],
|
|
1658
1658
|
r && je.active,
|
|
1659
1659
|
a && je.disabled,
|
|
1660
|
-
|
|
1661
|
-
|
|
1660
|
+
i && je.clickable,
|
|
1661
|
+
s
|
|
1662
1662
|
);
|
|
1663
|
-
return /* @__PURE__ */ f("span", { className: c, onClick: a ? void 0 :
|
|
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", mt = (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) && !mt(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";
|
|
@@ -1690,17 +1690,17 @@ var Uo = (e) => /^\w*$/.test(e), bn = (e) => e === void 0, ec = (e) => Array.isA
|
|
|
1690
1690
|
return bn(o) || o === e ? bn(e[t]) ? n : e[t] : o;
|
|
1691
1691
|
}, sn = (e) => typeof e == "boolean", to = (e, t, n) => {
|
|
1692
1692
|
let o = -1;
|
|
1693
|
-
const r = Uo(t) ? [t] : Zo(t), a = r.length,
|
|
1693
|
+
const r = Uo(t) ? [t] : Zo(t), a = r.length, s = a - 1;
|
|
1694
1694
|
for (; ++o < a; ) {
|
|
1695
|
-
const
|
|
1695
|
+
const i = r[o];
|
|
1696
1696
|
let c = n;
|
|
1697
|
-
if (o !==
|
|
1698
|
-
const l = e[
|
|
1697
|
+
if (o !== s) {
|
|
1698
|
+
const l = e[i];
|
|
1699
1699
|
c = Ue(l) || Array.isArray(l) ? l : isNaN(+r[o + 1]) ? {} : [];
|
|
1700
1700
|
}
|
|
1701
|
-
if (
|
|
1701
|
+
if (i === "__proto__" || i === "constructor" || i === "prototype")
|
|
1702
1702
|
return;
|
|
1703
|
-
e[
|
|
1703
|
+
e[i] = c, e = e[i];
|
|
1704
1704
|
}
|
|
1705
1705
|
};
|
|
1706
1706
|
const no = {
|
|
@@ -1718,15 +1718,15 @@ var tc = (e, t, n, o = !0) => {
|
|
|
1718
1718
|
for (const a in e)
|
|
1719
1719
|
Object.defineProperty(r, a, {
|
|
1720
1720
|
get: () => {
|
|
1721
|
-
const
|
|
1722
|
-
return t._proxyFormState[
|
|
1721
|
+
const s = a;
|
|
1722
|
+
return t._proxyFormState[s] !== oo.all && (t._proxyFormState[s] = !o || oo.all), n && (n[s] = !0), e[s];
|
|
1723
1723
|
}
|
|
1724
1724
|
});
|
|
1725
1725
|
return r;
|
|
1726
1726
|
};
|
|
1727
1727
|
const Xo = typeof window < "u" ? M.useLayoutEffect : M.useEffect;
|
|
1728
1728
|
function nc(e) {
|
|
1729
|
-
const t = Bn(), { control: n = t.control, disabled: o, name: r, exact: a } = e || {}, [
|
|
1729
|
+
const t = Bn(), { control: n = t.control, disabled: o, name: r, exact: a } = e || {}, [s, i] = M.useState(n._formState), c = M.useRef({
|
|
1730
1730
|
isDirty: !1,
|
|
1731
1731
|
isLoading: !1,
|
|
1732
1732
|
dirtyFields: !1,
|
|
@@ -1741,20 +1741,20 @@ function nc(e) {
|
|
|
1741
1741
|
formState: c.current,
|
|
1742
1742
|
exact: a,
|
|
1743
1743
|
callback: (l) => {
|
|
1744
|
-
!o &&
|
|
1744
|
+
!o && i({
|
|
1745
1745
|
...n._formState,
|
|
1746
1746
|
...l
|
|
1747
1747
|
});
|
|
1748
1748
|
}
|
|
1749
1749
|
}), [r, o, a]), M.useEffect(() => {
|
|
1750
1750
|
c.current.isValid && n._setValid(!0);
|
|
1751
|
-
}, [n]), M.useMemo(() => tc(
|
|
1751
|
+
}, [n]), M.useMemo(() => tc(s, n, c.current, !1), [s, n]);
|
|
1752
1752
|
}
|
|
1753
1753
|
var oc = (e) => typeof e == "string", rc = (e, t, n, o, r) => oc(e) ? ie(n, e, r) : Array.isArray(e) ? e.map((a) => ie(n, a)) : n, ro = (e) => Hn(e) || !Wo(e);
|
|
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 (mt(e) && mt(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)
|
|
@@ -1763,41 +1763,41 @@ function Yo(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
1763
1763
|
return !0;
|
|
1764
1764
|
n.add(e), n.add(t);
|
|
1765
1765
|
for (const a of o) {
|
|
1766
|
-
const
|
|
1766
|
+
const s = e[a];
|
|
1767
1767
|
if (!r.includes(a))
|
|
1768
1768
|
return !1;
|
|
1769
1769
|
if (a !== "ref") {
|
|
1770
|
-
const
|
|
1771
|
-
if (
|
|
1770
|
+
const i = t[a];
|
|
1771
|
+
if (mt(s) && mt(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
|
}
|
|
1775
1775
|
return !0;
|
|
1776
1776
|
}
|
|
1777
1777
|
function ac(e) {
|
|
1778
|
-
const t = Bn(), { control: n = t.control, name: o, defaultValue: r, disabled: a, exact:
|
|
1779
|
-
l.current =
|
|
1780
|
-
const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [_,
|
|
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
|
+
l.current = i;
|
|
1780
|
+
const d = M.useMemo(() => n._getWatch(o, c.current), [n, o]), [_, g] = M.useState(l.current ? l.current(d) : d);
|
|
1781
1781
|
return Xo(() => n._subscribe({
|
|
1782
1782
|
name: o,
|
|
1783
1783
|
formState: {
|
|
1784
1784
|
values: !0
|
|
1785
1785
|
},
|
|
1786
|
-
exact:
|
|
1786
|
+
exact: s,
|
|
1787
1787
|
callback: (w) => {
|
|
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 m = l.current(p);
|
|
1792
|
+
Yo(m, u.current) || (g(m), u.current = m);
|
|
1793
1793
|
} else
|
|
1794
|
-
|
|
1794
|
+
g(p);
|
|
1795
1795
|
}
|
|
1796
1796
|
}
|
|
1797
|
-
}), [n, a, o,
|
|
1797
|
+
}), [n, a, o, s]), M.useEffect(() => n._removeUnmounted()), _;
|
|
1798
1798
|
}
|
|
1799
1799
|
function jn(e) {
|
|
1800
|
-
const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: a, defaultValue:
|
|
1800
|
+
const t = Bn(), { name: n, disabled: o, control: r = t.control, shouldUnregister: a, defaultValue: s } = e, i = Ki(r._names.array, n), c = M.useMemo(() => ie(r._formValues, n, ie(r._defaultValues, n, s)), [r, n, s]), l = ac({
|
|
1801
1801
|
control: r,
|
|
1802
1802
|
name: n,
|
|
1803
1803
|
defaultValue: c,
|
|
@@ -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), g = 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) => g.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]), m = M.useCallback(() => g.current.onBlur({
|
|
1843
1843
|
target: {
|
|
1844
1844
|
value: ie(r._formValues, n),
|
|
1845
1845
|
name: n
|
|
@@ -1858,12 +1858,12 @@ 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: m,
|
|
1862
1862
|
ref: v
|
|
1863
|
-
}), [n, o, u.disabled, p,
|
|
1863
|
+
}), [n, o, u.disabled, p, m, v, l]);
|
|
1864
1864
|
return M.useEffect(() => {
|
|
1865
1865
|
const b = r._options.shouldUnregister || a, y = _.current;
|
|
1866
|
-
y && y !== n && !
|
|
1866
|
+
y && y !== n && !i && r.unregister(y), r.register(n, {
|
|
1867
1867
|
...d.current.rules,
|
|
1868
1868
|
...sn(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
1869
1869
|
});
|
|
@@ -1875,10 +1875,10 @@ function jn(e) {
|
|
|
1875
1875
|
const E = Fo(ie(r._options.defaultValues, n, d.current.defaultValue));
|
|
1876
1876
|
to(r._defaultValues, n, E), bn(ie(r._formValues, n)) && to(r._formValues, n, E);
|
|
1877
1877
|
}
|
|
1878
|
-
return !
|
|
1879
|
-
(
|
|
1878
|
+
return !i && r.register(n), _.current = n, () => {
|
|
1879
|
+
(i ? b && !r._state.action : b) ? r.unregister(n) : x(n, !1);
|
|
1880
1880
|
};
|
|
1881
|
-
}, [n, r,
|
|
1881
|
+
}, [n, r, i, a]), M.useEffect(() => {
|
|
1882
1882
|
r._setDisabledField({
|
|
1883
1883
|
disabled: o,
|
|
1884
1884
|
name: n
|
|
@@ -1889,7 +1889,7 @@ function jn(e) {
|
|
|
1889
1889
|
fieldState: w
|
|
1890
1890
|
}), [C, u, w]);
|
|
1891
1891
|
}
|
|
1892
|
-
const
|
|
1892
|
+
const Nf = ({
|
|
1893
1893
|
name: e,
|
|
1894
1894
|
control: t,
|
|
1895
1895
|
...n
|
|
@@ -1897,32 +1897,32 @@ const R2 = ({
|
|
|
1897
1897
|
const {
|
|
1898
1898
|
field: { value: o, onChange: r, ref: a }
|
|
1899
1899
|
} = jn({ name: e, control: t });
|
|
1900
|
-
return /* @__PURE__ */ f(jo, { ...n, ref: a, checked: !!o, onChange: (
|
|
1901
|
-
}, sc = "
|
|
1900
|
+
return /* @__PURE__ */ f(jo, { ...n, ref: a, checked: !!o, onChange: (s) => r(s.target.checked) });
|
|
1901
|
+
}, sc = "_focus_5befp_550", ic = "_swap_5befp_632", cc = "_swap__content_5befp_688", lc = "_root_5befp_780", uc = "_fullWidth_5befp_786", dc = "_wrapper_5befp_791", fc = "_single_5befp_808", _c = "_first_5befp_811", pc = "_middle_5befp_814", hc = "_last_5befp_818", gc = "_error_5befp_825", mc = "_outline_5befp_828", wc = "_fill_5befp_842", vc = "_small_5befp_858", Cc = "_input_5befp_861", bc = "_label_5befp_865", yc = "_medium_5befp_870", xc = "_disabled_5befp_914", Sc = "_clearButton_5befp_926", Ec = "_withPrefix_5befp_932", Lc = "_withSuffix_5befp_935", Pc = "_filled_5befp_973", $c = "_requiredIcon_5befp_1035", Rc = "_innerHint_5befp_1096", Nc = "_affix_5befp_1144", kc = "_prefix_5befp_1156", Ac = "_suffix_5befp_1161", Tc = "_errorText_5befp_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_5befp_567",
|
|
1904
|
+
"focus--danger": "_focus--danger_5befp_571",
|
|
1905
|
+
"focus--visible": "_focus--visible_5befp_577",
|
|
1906
|
+
"focus-danger": "_focus-danger_5befp_592",
|
|
1907
|
+
"focus-within--default": "_focus-within--default_5befp_598",
|
|
1908
|
+
"focus-within--danger": "_focus-within--danger_5befp_602",
|
|
1909
|
+
"focus--input": "_focus--input_5befp_607",
|
|
1910
|
+
"focus--button": "_focus--button_5befp_612",
|
|
1911
|
+
"focus--card": "_focus--card_5befp_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_5befp_641",
|
|
1914
|
+
"swap--icon": "_swap--icon_5befp_652",
|
|
1915
|
+
"swap--icon-xs": "_swap--icon-xs_5befp_662",
|
|
1916
|
+
"swap--icon-s": "_swap--icon-s_5befp_667",
|
|
1917
|
+
"swap--icon-m": "_swap--icon-m_5befp_672",
|
|
1918
|
+
"swap--icon-l": "_swap--icon-l_5befp_677",
|
|
1919
|
+
"swap--icon-xl": "_swap--icon-xl_5befp_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_5befp_697",
|
|
1922
|
+
"swap--group-vertical": "_swap--group-vertical_5befp_704",
|
|
1923
|
+
"swap--with-background": "_swap--with-background_5befp_712",
|
|
1924
|
+
"swap--with-border": "_swap--with-border_5befp_718",
|
|
1925
|
+
"swap--interactive": "_swap--interactive_5befp_726",
|
|
1926
1926
|
root: lc,
|
|
1927
1927
|
fullWidth: uc,
|
|
1928
1928
|
wrapper: dc,
|
|
@@ -1930,8 +1930,8 @@ const R2 = ({
|
|
|
1930
1930
|
first: _c,
|
|
1931
1931
|
middle: pc,
|
|
1932
1932
|
last: hc,
|
|
1933
|
-
error:
|
|
1934
|
-
outline:
|
|
1933
|
+
error: gc,
|
|
1934
|
+
outline: mc,
|
|
1935
1935
|
fill: wc,
|
|
1936
1936
|
small: vc,
|
|
1937
1937
|
input: Cc,
|
|
@@ -1941,8 +1941,8 @@ const R2 = ({
|
|
|
1941
1941
|
clearButton: Sc,
|
|
1942
1942
|
withPrefix: Ec,
|
|
1943
1943
|
withSuffix: Lc,
|
|
1944
|
-
|
|
1945
|
-
|
|
1944
|
+
filled: Pc,
|
|
1945
|
+
requiredIcon: $c,
|
|
1946
1946
|
innerHint: Rc,
|
|
1947
1947
|
affix: Nc,
|
|
1948
1948
|
prefix: kc,
|
|
@@ -1956,24 +1956,24 @@ const R2 = ({
|
|
|
1956
1956
|
showErrorMessage: o = !0,
|
|
1957
1957
|
hasError: r = !1,
|
|
1958
1958
|
hint: a,
|
|
1959
|
-
isRequired:
|
|
1960
|
-
label:
|
|
1959
|
+
isRequired: s,
|
|
1960
|
+
label: i,
|
|
1961
1961
|
id: c,
|
|
1962
1962
|
clearable: l = !1,
|
|
1963
1963
|
variant: u = "outline",
|
|
1964
1964
|
size: d = "small",
|
|
1965
1965
|
variantGroupItems: _ = "single",
|
|
1966
|
-
prefix:
|
|
1966
|
+
prefix: g,
|
|
1967
1967
|
suffix: w,
|
|
1968
1968
|
value: p,
|
|
1969
|
-
defaultValue:
|
|
1969
|
+
defaultValue: m,
|
|
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(m?.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;
|
|
@@ -1981,7 +1981,7 @@ const R2 = ({
|
|
|
1981
1981
|
target: { value: "" },
|
|
1982
1982
|
currentTarget: { value: "" }
|
|
1983
1983
|
});
|
|
1984
|
-
}, O = r || !!n, j = d === "medium", z = j ?
|
|
1984
|
+
}, O = r || !!n, j = d === "medium", z = j ? void 0 : y;
|
|
1985
1985
|
return /* @__PURE__ */ A("div", { className: I(K.root, b && K.fullWidth, e), children: [
|
|
1986
1986
|
/* @__PURE__ */ A(
|
|
1987
1987
|
"div",
|
|
@@ -1995,12 +1995,12 @@ const R2 = ({
|
|
|
1995
1995
|
[K.disabled]: t,
|
|
1996
1996
|
[K.error]: O,
|
|
1997
1997
|
[K.filled]: T,
|
|
1998
|
-
[K.withPrefix]: !!
|
|
1998
|
+
[K.withPrefix]: !!g,
|
|
1999
1999
|
[K.withSuffix]: !!w
|
|
2000
2000
|
}
|
|
2001
2001
|
),
|
|
2002
2002
|
children: [
|
|
2003
|
-
|
|
2003
|
+
g && /* @__PURE__ */ f("div", { className: I(K.affix, K.prefix), children: g }),
|
|
2004
2004
|
/* @__PURE__ */ f(
|
|
2005
2005
|
"input",
|
|
2006
2006
|
{
|
|
@@ -2015,9 +2015,9 @@ const R2 = ({
|
|
|
2015
2015
|
...x
|
|
2016
2016
|
}
|
|
2017
2017
|
),
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2018
|
+
i && j && /* @__PURE__ */ A("label", { htmlFor: c, className: I(K.label), children: [
|
|
2019
|
+
i,
|
|
2020
|
+
s && /* @__PURE__ */ f(Vn, { className: K.requiredIcon })
|
|
2021
2021
|
] }),
|
|
2022
2022
|
a && !j && !O && !T && /* @__PURE__ */ f("span", { className: K.innerHint, children: a }),
|
|
2023
2023
|
l && T && !t && /* @__PURE__ */ f(
|
|
@@ -2039,7 +2039,7 @@ const R2 = ({
|
|
|
2039
2039
|
}
|
|
2040
2040
|
);
|
|
2041
2041
|
Go.displayName = "Input";
|
|
2042
|
-
const
|
|
2042
|
+
const kf = ({
|
|
2043
2043
|
name: e,
|
|
2044
2044
|
control: t,
|
|
2045
2045
|
error: n,
|
|
@@ -2102,29 +2102,29 @@ const N2 = ({
|
|
|
2102
2102
|
className: o,
|
|
2103
2103
|
groupError: r,
|
|
2104
2104
|
showGroupErrorMessage: a = !0,
|
|
2105
|
-
...
|
|
2106
|
-
},
|
|
2105
|
+
...s
|
|
2106
|
+
}, i) => {
|
|
2107
2107
|
const c = Array.isArray(e) ? e : [e], l = c.length, u = c.map((_) => _.props.error).filter(Boolean), d = r || (u.length > 0 ? u.join(", ") : "");
|
|
2108
2108
|
return /* @__PURE__ */ A(
|
|
2109
2109
|
"div",
|
|
2110
2110
|
{
|
|
2111
|
-
ref:
|
|
2111
|
+
ref: i,
|
|
2112
2112
|
className: I(
|
|
2113
2113
|
Je.root,
|
|
2114
2114
|
n && Je.fullWidth,
|
|
2115
2115
|
o
|
|
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((_, g) => {
|
|
2120
|
+
const w = g === 0 ? "first" : g === l - 1 ? "last" : "middle", p = M.cloneElement(_, {
|
|
2121
2121
|
variantGroupItems: w,
|
|
2122
|
-
key:
|
|
2122
|
+
key: g,
|
|
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 }, g);
|
|
2128
2128
|
}) }),
|
|
2129
2129
|
a && d && /* @__PURE__ */ f(
|
|
2130
2130
|
st,
|
|
@@ -2141,7 +2141,7 @@ const N2 = ({
|
|
|
2141
2141
|
}
|
|
2142
2142
|
);
|
|
2143
2143
|
Ko.displayName = "InputGroupStack";
|
|
2144
|
-
const
|
|
2144
|
+
const Af = ({
|
|
2145
2145
|
name: e,
|
|
2146
2146
|
control: t,
|
|
2147
2147
|
groupError: n,
|
|
@@ -2151,13 +2151,13 @@ const k2 = ({
|
|
|
2151
2151
|
const a = e ? jn({
|
|
2152
2152
|
name: e,
|
|
2153
2153
|
control: t
|
|
2154
|
-
}) : null,
|
|
2154
|
+
}) : null, i = (n || a?.fieldState.error)?.message || "";
|
|
2155
2155
|
return /* @__PURE__ */ f(
|
|
2156
2156
|
Ko,
|
|
2157
2157
|
{
|
|
2158
2158
|
...r,
|
|
2159
|
-
groupError:
|
|
2160
|
-
showGroupErrorMessage: !!
|
|
2159
|
+
groupError: i,
|
|
2160
|
+
showGroupErrorMessage: !!i,
|
|
2161
2161
|
children: o
|
|
2162
2162
|
}
|
|
2163
2163
|
);
|
|
@@ -2222,15 +2222,15 @@ const k2 = ({
|
|
|
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
|
+
}, Tf = ({
|
|
2226
2226
|
children: e,
|
|
2227
2227
|
variant: t = "white",
|
|
2228
2228
|
layout: n = "flex",
|
|
2229
2229
|
direction: o = "column",
|
|
2230
2230
|
justify: r = "start",
|
|
2231
2231
|
align: a = "stretch",
|
|
2232
|
-
padding:
|
|
2233
|
-
margin:
|
|
2232
|
+
padding: s = "m",
|
|
2233
|
+
margin: i = "none",
|
|
2234
2234
|
maxWidth: c = "full",
|
|
2235
2235
|
className: l
|
|
2236
2236
|
}) => /* @__PURE__ */ f(
|
|
@@ -2240,8 +2240,8 @@ const k2 = ({
|
|
|
2240
2240
|
ve.pageContainer,
|
|
2241
2241
|
ve[t],
|
|
2242
2242
|
ve[`layout-${n}`],
|
|
2243
|
-
ve[`padding-${
|
|
2244
|
-
ve[`margin-${
|
|
2243
|
+
ve[`padding-${s}`],
|
|
2244
|
+
ve[`margin-${i}`],
|
|
2245
2245
|
ve[`maxWidth-${c}`],
|
|
2246
2246
|
l
|
|
2247
2247
|
),
|
|
@@ -2297,17 +2297,17 @@ const k2 = ({
|
|
|
2297
2297
|
hover: sl,
|
|
2298
2298
|
"variant-filled": "_variant-filled_zdqaw_874",
|
|
2299
2299
|
"variant-outlined": "_variant-outlined_zdqaw_883"
|
|
2300
|
-
},
|
|
2300
|
+
}, zf = ({
|
|
2301
2301
|
options: e,
|
|
2302
2302
|
value: t,
|
|
2303
2303
|
onChange: n,
|
|
2304
2304
|
size: o = "m",
|
|
2305
2305
|
variant: r = "default",
|
|
2306
2306
|
className: a,
|
|
2307
|
-
fullWidth:
|
|
2308
|
-
responsive:
|
|
2307
|
+
fullWidth: s = !1,
|
|
2308
|
+
responsive: i = !0
|
|
2309
2309
|
}) => {
|
|
2310
|
-
const [c, l] = W(t || e[0]?.value), u = vt(() =>
|
|
2310
|
+
const [c, l] = W(t || e[0]?.value), u = vt(() => i ? e.length > 4 : !1, [e.length, i]), d = (_) => {
|
|
2311
2311
|
l(_), n?.(_);
|
|
2312
2312
|
};
|
|
2313
2313
|
return /* @__PURE__ */ f(
|
|
@@ -2318,8 +2318,8 @@ const k2 = ({
|
|
|
2318
2318
|
Te[`size-${o}`],
|
|
2319
2319
|
Te[`variant-${r}`],
|
|
2320
2320
|
{
|
|
2321
|
-
[Te.fullWidth]:
|
|
2322
|
-
[Te.scrollable]: u && !
|
|
2321
|
+
[Te.fullWidth]: s,
|
|
2322
|
+
[Te.scrollable]: u && !s
|
|
2323
2323
|
},
|
|
2324
2324
|
a
|
|
2325
2325
|
),
|
|
@@ -2367,12 +2367,12 @@ function ne(...e) {
|
|
|
2367
2367
|
// @__NO_SIDE_EFFECTS__
|
|
2368
2368
|
function Dt(e) {
|
|
2369
2369
|
const t = /* @__PURE__ */ il(e), n = h.forwardRef((o, r) => {
|
|
2370
|
-
const { children: a, ...
|
|
2370
|
+
const { children: a, ...s } = o, i = h.Children.toArray(a), c = i.find(ll);
|
|
2371
2371
|
if (c) {
|
|
2372
|
-
const l = c.props.children, u =
|
|
2373
|
-
return /* @__PURE__ */ f(t, { ...
|
|
2372
|
+
const l = c.props.children, u = i.map((d) => d === c ? h.Children.count(l) > 1 ? h.Children.only(null) : h.isValidElement(l) ? l.props.children : null : d);
|
|
2373
|
+
return /* @__PURE__ */ f(t, { ...s, ref: r, children: h.isValidElement(l) ? h.cloneElement(l, void 0, u) : null });
|
|
2374
2374
|
}
|
|
2375
|
-
return /* @__PURE__ */ f(t, { ...
|
|
2375
|
+
return /* @__PURE__ */ f(t, { ...s, ref: r, children: a });
|
|
2376
2376
|
});
|
|
2377
2377
|
return n.displayName = `${e}.Slot`, n;
|
|
2378
2378
|
}
|
|
@@ -2381,8 +2381,8 @@ function il(e) {
|
|
|
2381
2381
|
const t = h.forwardRef((n, o) => {
|
|
2382
2382
|
const { children: r, ...a } = n;
|
|
2383
2383
|
if (h.isValidElement(r)) {
|
|
2384
|
-
const
|
|
2385
|
-
return r.type !== h.Fragment && (
|
|
2384
|
+
const s = dl(r), i = ul(a, r.props);
|
|
2385
|
+
return r.type !== h.Fragment && (i.ref = o ? Qo(o, s) : s), h.cloneElement(r, i);
|
|
2386
2386
|
}
|
|
2387
2387
|
return h.Children.count(r) > 1 ? h.Children.only(null) : null;
|
|
2388
2388
|
});
|
|
@@ -2396,9 +2396,9 @@ function ul(e, t) {
|
|
|
2396
2396
|
const n = { ...t };
|
|
2397
2397
|
for (const o in t) {
|
|
2398
2398
|
const r = e[o], a = t[o];
|
|
2399
|
-
/^on[A-Z]/.test(o) ? r && a ? n[o] = (...
|
|
2400
|
-
const c = a(...
|
|
2401
|
-
return r(...
|
|
2399
|
+
/^on[A-Z]/.test(o) ? r && a ? n[o] = (...i) => {
|
|
2400
|
+
const c = a(...i);
|
|
2401
|
+
return r(...i), c;
|
|
2402
2402
|
} : r && (n[o] = r) : o === "style" ? n[o] = { ...r, ...a } : o === "className" && (n[o] = [r, a].filter(Boolean).join(" "));
|
|
2403
2403
|
}
|
|
2404
2404
|
return { ...e, ...n };
|
|
@@ -2427,8 +2427,8 @@ var fl = [
|
|
|
2427
2427
|
"ul"
|
|
2428
2428
|
], G = fl.reduce((e, t) => {
|
|
2429
2429
|
const n = /* @__PURE__ */ Dt(`Primitive.${t}`), o = h.forwardRef((r, a) => {
|
|
2430
|
-
const { asChild:
|
|
2431
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...
|
|
2430
|
+
const { asChild: s, ...i } = r, c = s ? n : t;
|
|
2431
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ f(c, { ...i, ref: a });
|
|
2432
2432
|
});
|
|
2433
2433
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
2434
2434
|
}, {});
|
|
@@ -2458,35 +2458,35 @@ function te(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
2458
2458
|
}
|
|
2459
2459
|
function Wn(e, t = []) {
|
|
2460
2460
|
let n = [];
|
|
2461
|
-
function o(a,
|
|
2462
|
-
const
|
|
2463
|
-
n = [...n,
|
|
2461
|
+
function o(a, s) {
|
|
2462
|
+
const i = h.createContext(s), c = n.length;
|
|
2463
|
+
n = [...n, s];
|
|
2464
2464
|
const l = (d) => {
|
|
2465
|
-
const { scope: _, children:
|
|
2466
|
-
return /* @__PURE__ */ f(p.Provider, { value:
|
|
2465
|
+
const { scope: _, children: g, ...w } = d, p = _?.[e]?.[c] || i, m = h.useMemo(() => w, Object.values(w));
|
|
2466
|
+
return /* @__PURE__ */ f(p.Provider, { value: m, children: g });
|
|
2467
2467
|
};
|
|
2468
2468
|
l.displayName = a + "Provider";
|
|
2469
2469
|
function u(d, _) {
|
|
2470
|
-
const
|
|
2470
|
+
const g = _?.[e]?.[c] || i, w = h.useContext(g);
|
|
2471
2471
|
if (w) return w;
|
|
2472
|
-
if (
|
|
2472
|
+
if (s !== void 0) return s;
|
|
2473
2473
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
2474
2474
|
}
|
|
2475
2475
|
return [l, u];
|
|
2476
2476
|
}
|
|
2477
2477
|
const r = () => {
|
|
2478
|
-
const a = n.map((
|
|
2479
|
-
return function(
|
|
2480
|
-
const c =
|
|
2478
|
+
const a = n.map((s) => h.createContext(s));
|
|
2479
|
+
return function(i) {
|
|
2480
|
+
const c = i?.[e] || a;
|
|
2481
2481
|
return h.useMemo(
|
|
2482
|
-
() => ({ [`__scope${e}`]: { ...
|
|
2483
|
-
[
|
|
2482
|
+
() => ({ [`__scope${e}`]: { ...i, [e]: c } }),
|
|
2483
|
+
[i, c]
|
|
2484
2484
|
);
|
|
2485
2485
|
};
|
|
2486
2486
|
};
|
|
2487
|
-
return r.scopeName = e, [o,
|
|
2487
|
+
return r.scopeName = e, [o, gl(r, ...t)];
|
|
2488
2488
|
}
|
|
2489
|
-
function
|
|
2489
|
+
function gl(...e) {
|
|
2490
2490
|
const t = e[0];
|
|
2491
2491
|
if (e.length === 1) return t;
|
|
2492
2492
|
const n = () => {
|
|
@@ -2495,51 +2495,51 @@ function ml(...e) {
|
|
|
2495
2495
|
scopeName: r.scopeName
|
|
2496
2496
|
}));
|
|
2497
2497
|
return function(a) {
|
|
2498
|
-
const
|
|
2498
|
+
const s = o.reduce((i, { useScope: c, scopeName: l }) => {
|
|
2499
2499
|
const d = c(a)[`__scope${l}`];
|
|
2500
|
-
return { ...
|
|
2500
|
+
return { ...i, ...d };
|
|
2501
2501
|
}, {});
|
|
2502
|
-
return h.useMemo(() => ({ [`__scope${t.scopeName}`]:
|
|
2502
|
+
return h.useMemo(() => ({ [`__scope${t.scopeName}`]: s }), [s]);
|
|
2503
2503
|
};
|
|
2504
2504
|
};
|
|
2505
2505
|
return n.scopeName = t.scopeName, n;
|
|
2506
2506
|
}
|
|
2507
|
-
function
|
|
2507
|
+
function ml(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
|
-
),
|
|
2512
|
-
const { scope:
|
|
2513
|
-
return /* @__PURE__ */ f(r, { scope:
|
|
2511
|
+
), s = (p) => {
|
|
2512
|
+
const { scope: m, children: v } = p, C = M.useRef(null), b = M.useRef(/* @__PURE__ */ new Map()).current;
|
|
2513
|
+
return /* @__PURE__ */ f(r, { scope: m, itemMap: b, collectionRef: C, children: v });
|
|
2514
2514
|
};
|
|
2515
|
-
|
|
2516
|
-
const
|
|
2517
|
-
(p,
|
|
2518
|
-
const { scope: v, children: C } = p, b = a(
|
|
2515
|
+
s.displayName = t;
|
|
2516
|
+
const i = e + "CollectionSlot", c = /* @__PURE__ */ Dt(i), l = M.forwardRef(
|
|
2517
|
+
(p, m) => {
|
|
2518
|
+
const { scope: v, children: C } = p, b = a(i, v), y = ne(m, b.collectionRef);
|
|
2519
2519
|
return /* @__PURE__ */ f(c, { ref: y, children: C });
|
|
2520
2520
|
}
|
|
2521
2521
|
);
|
|
2522
|
-
l.displayName =
|
|
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(
|
|
2522
|
+
l.displayName = i;
|
|
2523
|
+
const u = e + "CollectionItemSlot", d = "data-radix-collection-item", _ = /* @__PURE__ */ Dt(u), g = M.forwardRef(
|
|
2524
|
+
(p, m) => {
|
|
2525
|
+
const { scope: v, children: C, ...b } = p, y = M.useRef(null), x = ne(m, 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
|
+
g.displayName = u;
|
|
2530
2530
|
function w(p) {
|
|
2531
|
-
const
|
|
2531
|
+
const m = a(e + "CollectionConsumer", p);
|
|
2532
2532
|
return M.useCallback(() => {
|
|
2533
|
-
const C =
|
|
2533
|
+
const C = m.collectionRef.current;
|
|
2534
2534
|
if (!C) return [];
|
|
2535
2535
|
const b = Array.from(C.querySelectorAll(`[${d}]`));
|
|
2536
|
-
return Array.from(
|
|
2536
|
+
return Array.from(m.itemMap.values()).sort(
|
|
2537
2537
|
(E, S) => b.indexOf(E.ref.current) - b.indexOf(S.ref.current)
|
|
2538
2538
|
);
|
|
2539
|
-
}, [
|
|
2539
|
+
}, [m.collectionRef, m.itemMap]);
|
|
2540
2540
|
}
|
|
2541
2541
|
return [
|
|
2542
|
-
{ Provider:
|
|
2542
|
+
{ Provider: s, Slot: l, ItemSlot: g },
|
|
2543
2543
|
w,
|
|
2544
2544
|
o
|
|
2545
2545
|
];
|
|
@@ -2581,18 +2581,18 @@ var bl = "DismissableLayer", yn = "dismissableLayer.update", yl = "dismissableLa
|
|
|
2581
2581
|
onEscapeKeyDown: o,
|
|
2582
2582
|
onPointerDownOutside: r,
|
|
2583
2583
|
onFocusOutside: a,
|
|
2584
|
-
onInteractOutside:
|
|
2585
|
-
onDismiss:
|
|
2584
|
+
onInteractOutside: s,
|
|
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, [, g] = h.useState({}), w = ne(t, (S) => d(S)), p = Array.from(l.layers), [m] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), v = p.indexOf(m), 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
|
-
!y || $ || (r?.(S),
|
|
2589
|
+
!y || $ || (r?.(S), s?.(S), S.defaultPrevented || i?.());
|
|
2590
2590
|
}, _), E = Pl((S) => {
|
|
2591
2591
|
const L = S.target;
|
|
2592
|
-
[...l.branches].some((N) => N.contains(L)) || (a?.(S),
|
|
2592
|
+
[...l.branches].some((N) => N.contains(L)) || (a?.(S), s?.(S), S.defaultPrevented || i?.());
|
|
2593
2593
|
}, _);
|
|
2594
2594
|
return Cl((S) => {
|
|
2595
|
-
C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented &&
|
|
2595
|
+
C === l.layers.size - 1 && (o?.(S), !S.defaultPrevented && i && (S.preventDefault(), i()));
|
|
2596
2596
|
}, _), h.useEffect(() => {
|
|
2597
2597
|
if (u)
|
|
2598
2598
|
return n && (l.layersWithOutsidePointerEventsDisabled.size === 0 && (io = _.body.style.pointerEvents, _.body.style.pointerEvents = "none"), l.layersWithOutsidePointerEventsDisabled.add(u)), l.layers.add(u), co(), () => {
|
|
@@ -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 = () => g({});
|
|
2605
2605
|
return document.addEventListener(yn, S), () => document.removeEventListener(yn, S);
|
|
2606
2606
|
}, []), /* @__PURE__ */ f(
|
|
2607
2607
|
G.div,
|
|
@@ -2638,8 +2638,8 @@ function Ll(e, t = globalThis?.document) {
|
|
|
2638
2638
|
const n = Ze(e), o = h.useRef(!1), r = h.useRef(() => {
|
|
2639
2639
|
});
|
|
2640
2640
|
return h.useEffect(() => {
|
|
2641
|
-
const a = (
|
|
2642
|
-
if (
|
|
2641
|
+
const a = (i) => {
|
|
2642
|
+
if (i.target && !o.current) {
|
|
2643
2643
|
let c = function() {
|
|
2644
2644
|
nr(
|
|
2645
2645
|
yl,
|
|
@@ -2648,16 +2648,16 @@ function Ll(e, t = globalThis?.document) {
|
|
|
2648
2648
|
{ discrete: !0 }
|
|
2649
2649
|
);
|
|
2650
2650
|
};
|
|
2651
|
-
const l = { originalEvent:
|
|
2652
|
-
|
|
2651
|
+
const l = { originalEvent: i };
|
|
2652
|
+
i.pointerType === "touch" ? (t.removeEventListener("click", r.current), r.current = c, t.addEventListener("click", r.current, { once: !0 })) : c();
|
|
2653
2653
|
} else
|
|
2654
2654
|
t.removeEventListener("click", r.current);
|
|
2655
2655
|
o.current = !1;
|
|
2656
|
-
},
|
|
2656
|
+
}, s = window.setTimeout(() => {
|
|
2657
2657
|
t.addEventListener("pointerdown", a);
|
|
2658
2658
|
}, 0);
|
|
2659
2659
|
return () => {
|
|
2660
|
-
window.clearTimeout(
|
|
2660
|
+
window.clearTimeout(s), t.removeEventListener("pointerdown", a), t.removeEventListener("click", r.current);
|
|
2661
2661
|
};
|
|
2662
2662
|
}, [t, n]), {
|
|
2663
2663
|
// ensures we check React component tree (not just DOM tree)
|
|
@@ -2705,8 +2705,8 @@ var un = "focusScope.autoFocusOnMount", dn = "focusScope.autoFocusOnUnmount", uo
|
|
|
2705
2705
|
trapped: o = !1,
|
|
2706
2706
|
onMountAutoFocus: r,
|
|
2707
2707
|
onUnmountAutoFocus: a,
|
|
2708
|
-
...
|
|
2709
|
-
} = e, [
|
|
2708
|
+
...s
|
|
2709
|
+
} = e, [i, c] = h.useState(null), l = Ze(r), u = Ze(a), d = h.useRef(null), _ = ne(t, (p) => c(p)), g = h.useRef({
|
|
2710
2710
|
paused: !1,
|
|
2711
2711
|
pause() {
|
|
2712
2712
|
this.paused = !0;
|
|
@@ -2718,52 +2718,52 @@ 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 (g.paused || !i) return;
|
|
2722
2722
|
const y = b.target;
|
|
2723
|
-
|
|
2724
|
-
},
|
|
2725
|
-
if (
|
|
2723
|
+
i.contains(y) ? d.current = y : ze(d.current, { select: !0 });
|
|
2724
|
+
}, m = function(b) {
|
|
2725
|
+
if (g.paused || !i) return;
|
|
2726
2726
|
const y = b.relatedTarget;
|
|
2727
|
-
y !== null && (
|
|
2727
|
+
y !== null && (i.contains(y) || ze(d.current, { select: !0 }));
|
|
2728
2728
|
}, v = function(b) {
|
|
2729
2729
|
if (document.activeElement === document.body)
|
|
2730
2730
|
for (const x of b)
|
|
2731
|
-
x.removedNodes.length > 0 && ze(
|
|
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", m);
|
|
2734
2734
|
const C = new MutationObserver(v);
|
|
2735
|
-
return
|
|
2736
|
-
document.removeEventListener("focusin", p), document.removeEventListener("focusout",
|
|
2735
|
+
return i && C.observe(i, { childList: !0, subtree: !0 }), () => {
|
|
2736
|
+
document.removeEventListener("focusin", p), document.removeEventListener("focusout", m), C.disconnect();
|
|
2737
2737
|
};
|
|
2738
2738
|
}
|
|
2739
|
-
}, [o,
|
|
2740
|
-
if (
|
|
2741
|
-
_o.add(
|
|
2739
|
+
}, [o, i, g.paused]), h.useEffect(() => {
|
|
2740
|
+
if (i) {
|
|
2741
|
+
_o.add(g);
|
|
2742
2742
|
const p = document.activeElement;
|
|
2743
|
-
if (!
|
|
2743
|
+
if (!i.contains(p)) {
|
|
2744
2744
|
const v = new CustomEvent(un, uo);
|
|
2745
|
-
|
|
2745
|
+
i.addEventListener(un, l), i.dispatchEvent(v), v.defaultPrevented || (Nl(Ml(rr(i)), { select: !0 }), document.activeElement === p && ze(i));
|
|
2746
2746
|
}
|
|
2747
2747
|
return () => {
|
|
2748
|
-
|
|
2748
|
+
i.removeEventListener(un, l), setTimeout(() => {
|
|
2749
2749
|
const v = new CustomEvent(dn, uo);
|
|
2750
|
-
|
|
2750
|
+
i.addEventListener(dn, u), i.dispatchEvent(v), v.defaultPrevented || ze(p ?? document.body, { select: !0 }), i.removeEventListener(dn, u), _o.remove(g);
|
|
2751
2751
|
}, 0);
|
|
2752
2752
|
};
|
|
2753
2753
|
}
|
|
2754
|
-
}, [
|
|
2754
|
+
}, [i, l, u, g]);
|
|
2755
2755
|
const w = h.useCallback(
|
|
2756
2756
|
(p) => {
|
|
2757
|
-
if (!n && !o ||
|
|
2758
|
-
const
|
|
2759
|
-
if (
|
|
2757
|
+
if (!n && !o || g.paused) return;
|
|
2758
|
+
const m = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, v = document.activeElement;
|
|
2759
|
+
if (m && 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, g.paused]
|
|
2765
2765
|
);
|
|
2766
|
-
return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...
|
|
2766
|
+
return /* @__PURE__ */ f(G.div, { tabIndex: -1, ...s, ref: _, onKeyDown: w });
|
|
2767
2767
|
});
|
|
2768
2768
|
or.displayName = Rl;
|
|
2769
2769
|
function Nl(e, { select: t = !1 } = {}) {
|
|
@@ -2876,8 +2876,8 @@ function qn(e) {
|
|
|
2876
2876
|
function jl(e, t, n) {
|
|
2877
2877
|
n === void 0 && (n = !1);
|
|
2878
2878
|
const o = lt(e), r = qn(e), a = Zn(r);
|
|
2879
|
-
let
|
|
2880
|
-
return t.reference[a] > t.floating[a] && (
|
|
2879
|
+
let s = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
2880
|
+
return t.reference[a] > t.floating[a] && (s = Ht(s)), [s, Ht(s)];
|
|
2881
2881
|
}
|
|
2882
2882
|
function Wl(e) {
|
|
2883
2883
|
const t = Ht(e);
|
|
@@ -2886,12 +2886,12 @@ function Wl(e) {
|
|
|
2886
2886
|
function Sn(e) {
|
|
2887
2887
|
return e.replace(/start|end/g, (t) => Hl[t]);
|
|
2888
2888
|
}
|
|
2889
|
-
const ho = ["left", "right"],
|
|
2889
|
+
const ho = ["left", "right"], go = ["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 ? go : ho : t ? ho : go;
|
|
2895
2895
|
case "left":
|
|
2896
2896
|
case "right":
|
|
2897
2897
|
return t ? Fl : Ul;
|
|
@@ -2902,7 +2902,7 @@ function Zl(e, t, n) {
|
|
|
2902
2902
|
function ql(e, t, n, o) {
|
|
2903
2903
|
const r = lt(e);
|
|
2904
2904
|
let a = Zl(Pe(e), n === "start", o);
|
|
2905
|
-
return r && (a = a.map((
|
|
2905
|
+
return r && (a = a.map((s) => s + "-" + r), t && (a = a.concat(a.map(Sn)))), a;
|
|
2906
2906
|
}
|
|
2907
2907
|
function Ht(e) {
|
|
2908
2908
|
return e.replace(/left|right|bottom|top/g, (t) => Vl[t]);
|
|
@@ -2942,74 +2942,74 @@ function Bt(e) {
|
|
|
2942
2942
|
y: n
|
|
2943
2943
|
};
|
|
2944
2944
|
}
|
|
2945
|
-
function
|
|
2945
|
+
function mo(e, t, n) {
|
|
2946
2946
|
let {
|
|
2947
2947
|
reference: o,
|
|
2948
2948
|
floating: r
|
|
2949
2949
|
} = e;
|
|
2950
|
-
const a = be(t),
|
|
2951
|
-
let
|
|
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 g;
|
|
2952
2952
|
switch (c) {
|
|
2953
2953
|
case "top":
|
|
2954
|
-
|
|
2954
|
+
g = {
|
|
2955
2955
|
x: u,
|
|
2956
2956
|
y: o.y - r.height
|
|
2957
2957
|
};
|
|
2958
2958
|
break;
|
|
2959
2959
|
case "bottom":
|
|
2960
|
-
|
|
2960
|
+
g = {
|
|
2961
2961
|
x: u,
|
|
2962
2962
|
y: o.y + o.height
|
|
2963
2963
|
};
|
|
2964
2964
|
break;
|
|
2965
2965
|
case "right":
|
|
2966
|
-
|
|
2966
|
+
g = {
|
|
2967
2967
|
x: o.x + o.width,
|
|
2968
2968
|
y: d
|
|
2969
2969
|
};
|
|
2970
2970
|
break;
|
|
2971
2971
|
case "left":
|
|
2972
|
-
|
|
2972
|
+
g = {
|
|
2973
2973
|
x: o.x - r.width,
|
|
2974
2974
|
y: d
|
|
2975
2975
|
};
|
|
2976
2976
|
break;
|
|
2977
2977
|
default:
|
|
2978
|
-
|
|
2978
|
+
g = {
|
|
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
|
+
g[s] -= _ * (n && l ? -1 : 1);
|
|
2986
2986
|
break;
|
|
2987
2987
|
case "end":
|
|
2988
|
-
|
|
2988
|
+
g[s] += _ * (n && l ? -1 : 1);
|
|
2989
2989
|
break;
|
|
2990
2990
|
}
|
|
2991
|
-
return
|
|
2991
|
+
return g;
|
|
2992
2992
|
}
|
|
2993
2993
|
const Yl = async (e, t, n) => {
|
|
2994
2994
|
const {
|
|
2995
2995
|
placement: o = "bottom",
|
|
2996
2996
|
strategy: r = "absolute",
|
|
2997
2997
|
middleware: a = [],
|
|
2998
|
-
platform:
|
|
2999
|
-
} = n,
|
|
3000
|
-
let l = await
|
|
2998
|
+
platform: s
|
|
2999
|
+
} = n, i = a.filter(Boolean), c = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
3000
|
+
let l = await s.getElementRects({
|
|
3001
3001
|
reference: e,
|
|
3002
3002
|
floating: t,
|
|
3003
3003
|
strategy: r
|
|
3004
3004
|
}), {
|
|
3005
3005
|
x: u,
|
|
3006
3006
|
y: d
|
|
3007
|
-
} =
|
|
3008
|
-
for (let p = 0; p <
|
|
3007
|
+
} = mo(l, o, c), _ = o, g = {}, w = 0;
|
|
3008
|
+
for (let p = 0; p < i.length; p++) {
|
|
3009
3009
|
const {
|
|
3010
|
-
name:
|
|
3010
|
+
name: m,
|
|
3011
3011
|
fn: v
|
|
3012
|
-
} =
|
|
3012
|
+
} = i[p], {
|
|
3013
3013
|
x: C,
|
|
3014
3014
|
y: b,
|
|
3015
3015
|
data: y,
|
|
@@ -3020,35 +3020,35 @@ const Yl = async (e, t, n) => {
|
|
|
3020
3020
|
initialPlacement: o,
|
|
3021
3021
|
placement: _,
|
|
3022
3022
|
strategy: r,
|
|
3023
|
-
middlewareData:
|
|
3023
|
+
middlewareData: g,
|
|
3024
3024
|
rects: l,
|
|
3025
|
-
platform:
|
|
3025
|
+
platform: s,
|
|
3026
3026
|
elements: {
|
|
3027
3027
|
reference: e,
|
|
3028
3028
|
floating: t
|
|
3029
3029
|
}
|
|
3030
3030
|
});
|
|
3031
|
-
u = C ?? u, d = b ?? d,
|
|
3032
|
-
...
|
|
3033
|
-
[
|
|
3034
|
-
...m
|
|
3031
|
+
u = C ?? u, d = b ?? d, g = {
|
|
3032
|
+
...g,
|
|
3033
|
+
[m]: {
|
|
3034
|
+
...g[m],
|
|
3035
3035
|
...y
|
|
3036
3036
|
}
|
|
3037
|
-
}, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (_ = x.placement), x.rects && (l = x.rects === !0 ? await
|
|
3037
|
+
}, x && w <= 50 && (w++, typeof x == "object" && (x.placement && (_ = x.placement), x.rects && (l = x.rects === !0 ? await s.getElementRects({
|
|
3038
3038
|
reference: e,
|
|
3039
3039
|
floating: t,
|
|
3040
3040
|
strategy: r
|
|
3041
3041
|
}) : x.rects), {
|
|
3042
3042
|
x: u,
|
|
3043
3043
|
y: d
|
|
3044
|
-
} =
|
|
3044
|
+
} = mo(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: g
|
|
3052
3052
|
};
|
|
3053
3053
|
};
|
|
3054
3054
|
async function Ct(e, t) {
|
|
@@ -3058,33 +3058,33 @@ async function Ct(e, t) {
|
|
|
3058
3058
|
x: o,
|
|
3059
3059
|
y: r,
|
|
3060
3060
|
platform: a,
|
|
3061
|
-
rects:
|
|
3062
|
-
elements:
|
|
3061
|
+
rects: s,
|
|
3062
|
+
elements: i,
|
|
3063
3063
|
strategy: c
|
|
3064
3064
|
} = e, {
|
|
3065
3065
|
boundary: l = "clippingAncestors",
|
|
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: g = 0
|
|
3070
|
+
} = Le(t, e), w = ar(g), m = i[_ ? d === "floating" ? "reference" : "floating" : d], v = Bt(await a.getClippingRect({
|
|
3071
|
+
element: (n = await (a.isElement == null ? void 0 : a.isElement(m))) == null || n ? m : m.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(i.floating)),
|
|
3072
3072
|
boundary: l,
|
|
3073
3073
|
rootBoundary: u,
|
|
3074
3074
|
strategy: c
|
|
3075
3075
|
})), C = d === "floating" ? {
|
|
3076
3076
|
x: o,
|
|
3077
3077
|
y: r,
|
|
3078
|
-
width:
|
|
3079
|
-
height:
|
|
3080
|
-
} :
|
|
3078
|
+
width: s.floating.width,
|
|
3079
|
+
height: s.floating.height
|
|
3080
|
+
} : s.reference, b = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(i.floating)), y = await (a.isElement == null ? void 0 : a.isElement(b)) ? await (a.getScale == null ? void 0 : a.getScale(b)) || {
|
|
3081
3081
|
x: 1,
|
|
3082
3082
|
y: 1
|
|
3083
3083
|
} : {
|
|
3084
3084
|
x: 1,
|
|
3085
3085
|
y: 1
|
|
3086
3086
|
}, x = Bt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
3087
|
-
elements:
|
|
3087
|
+
elements: i,
|
|
3088
3088
|
rect: C,
|
|
3089
3089
|
offsetParent: b,
|
|
3090
3090
|
strategy: c
|
|
@@ -3105,8 +3105,8 @@ const Gl = (e) => ({
|
|
|
3105
3105
|
y: o,
|
|
3106
3106
|
placement: r,
|
|
3107
3107
|
rects: a,
|
|
3108
|
-
platform:
|
|
3109
|
-
elements:
|
|
3108
|
+
platform: s,
|
|
3109
|
+
elements: i,
|
|
3110
3110
|
middlewareData: c
|
|
3111
3111
|
} = t, {
|
|
3112
3112
|
element: l,
|
|
@@ -3117,14 +3117,14 @@ const Gl = (e) => ({
|
|
|
3117
3117
|
const d = ar(u), _ = {
|
|
3118
3118
|
x: n,
|
|
3119
3119
|
y: o
|
|
3120
|
-
},
|
|
3120
|
+
}, g = qn(r), w = Zn(g), p = await s.getDimensions(l), m = g === "y", v = m ? "top" : "left", C = m ? "bottom" : "right", b = m ? "clientHeight" : "clientWidth", y = a.reference[w] + a.reference[g] - _[g] - a.floating[w], x = _[g] - a.reference[g], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(l));
|
|
3121
3121
|
let S = E ? E[b] : 0;
|
|
3122
|
-
(!S || !await (
|
|
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
|
+
[g]: _[g] + D,
|
|
3126
3126
|
data: {
|
|
3127
|
-
[
|
|
3127
|
+
[g]: j,
|
|
3128
3128
|
centerOffset: O - j - D,
|
|
3129
3129
|
...z && {
|
|
3130
3130
|
alignmentOffset: D
|
|
@@ -3142,27 +3142,27 @@ const Gl = (e) => ({
|
|
|
3142
3142
|
const {
|
|
3143
3143
|
placement: r,
|
|
3144
3144
|
middlewareData: a,
|
|
3145
|
-
rects:
|
|
3146
|
-
initialPlacement:
|
|
3145
|
+
rects: s,
|
|
3146
|
+
initialPlacement: i,
|
|
3147
3147
|
platform: c,
|
|
3148
3148
|
elements: l
|
|
3149
3149
|
} = t, {
|
|
3150
3150
|
mainAxis: u = !0,
|
|
3151
3151
|
crossAxis: d = !0,
|
|
3152
3152
|
fallbackPlacements: _,
|
|
3153
|
-
fallbackStrategy:
|
|
3153
|
+
fallbackStrategy: g = "bestFit",
|
|
3154
3154
|
fallbackAxisSideDirection: w = "none",
|
|
3155
3155
|
flipAlignment: p = !0,
|
|
3156
|
-
...
|
|
3156
|
+
...m
|
|
3157
3157
|
} = Le(e, t);
|
|
3158
3158
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
3159
3159
|
return {};
|
|
3160
|
-
const v = Pe(r), C = be(
|
|
3161
|
-
!_ && E && x.push(...ql(
|
|
3162
|
-
const S = [
|
|
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
|
+
!_ && E && x.push(...ql(i, p, w, y));
|
|
3162
|
+
const S = [i, ...x], L = await Ct(t, m), $ = [];
|
|
3163
3163
|
let N = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
3164
3164
|
if (u && $.push(L[v]), d) {
|
|
3165
|
-
const O = jl(r,
|
|
3165
|
+
const O = jl(r, s, y);
|
|
3166
3166
|
$.push(L[O[0]], L[O[1]]);
|
|
3167
3167
|
}
|
|
3168
3168
|
if (N = [...N, {
|
|
@@ -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 (g) {
|
|
3189
3189
|
case "bestFit": {
|
|
3190
3190
|
var H;
|
|
3191
3191
|
const D = (H = N.filter((k) => {
|
|
@@ -3201,7 +3201,7 @@ const Gl = (e) => ({
|
|
|
3201
3201
|
break;
|
|
3202
3202
|
}
|
|
3203
3203
|
case "initialPlacement":
|
|
3204
|
-
z =
|
|
3204
|
+
z = i;
|
|
3205
3205
|
break;
|
|
3206
3206
|
}
|
|
3207
3207
|
if (r !== z)
|
|
@@ -3242,11 +3242,11 @@ const Ql = function(e) {
|
|
|
3242
3242
|
const a = await Ct(t, {
|
|
3243
3243
|
...r,
|
|
3244
3244
|
elementContext: "reference"
|
|
3245
|
-
}),
|
|
3245
|
+
}), s = wo(a, n.reference);
|
|
3246
3246
|
return {
|
|
3247
3247
|
data: {
|
|
3248
|
-
referenceHiddenOffsets:
|
|
3249
|
-
referenceHidden: vo(
|
|
3248
|
+
referenceHiddenOffsets: s,
|
|
3249
|
+
referenceHidden: vo(s)
|
|
3250
3250
|
}
|
|
3251
3251
|
};
|
|
3252
3252
|
}
|
|
@@ -3254,11 +3254,11 @@ const Ql = function(e) {
|
|
|
3254
3254
|
const a = await Ct(t, {
|
|
3255
3255
|
...r,
|
|
3256
3256
|
altBoundary: !0
|
|
3257
|
-
}),
|
|
3257
|
+
}), s = wo(a, n.floating);
|
|
3258
3258
|
return {
|
|
3259
3259
|
data: {
|
|
3260
|
-
escapedOffsets:
|
|
3261
|
-
escaped: vo(
|
|
3260
|
+
escapedOffsets: s,
|
|
3261
|
+
escaped: vo(s)
|
|
3262
3262
|
}
|
|
3263
3263
|
};
|
|
3264
3264
|
}
|
|
@@ -3273,10 +3273,10 @@ async function Jl(e, t) {
|
|
|
3273
3273
|
placement: n,
|
|
3274
3274
|
platform: o,
|
|
3275
3275
|
elements: r
|
|
3276
|
-
} = e, a = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)),
|
|
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: g,
|
|
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
|
|
3291
|
-
x:
|
|
3290
|
+
return i && typeof w == "number" && (g = i === "end" ? w * -1 : w), c ? {
|
|
3291
|
+
x: g * u,
|
|
3292
3292
|
y: _ * l
|
|
3293
3293
|
} : {
|
|
3294
3294
|
x: _ * l,
|
|
3295
|
-
y:
|
|
3295
|
+
y: g * u
|
|
3296
3296
|
};
|
|
3297
3297
|
}
|
|
3298
3298
|
const e1 = function(e) {
|
|
@@ -3304,15 +3304,15 @@ const e1 = function(e) {
|
|
|
3304
3304
|
const {
|
|
3305
3305
|
x: r,
|
|
3306
3306
|
y: a,
|
|
3307
|
-
placement:
|
|
3308
|
-
middlewareData:
|
|
3307
|
+
placement: s,
|
|
3308
|
+
middlewareData: i
|
|
3309
3309
|
} = t, c = await Jl(t, e);
|
|
3310
|
-
return
|
|
3310
|
+
return s === ((n = i.offset) == null ? void 0 : n.placement) && (o = i.arrow) != null && o.alignmentOffset ? {} : {
|
|
3311
3311
|
x: r + c.x,
|
|
3312
3312
|
y: a + c.y,
|
|
3313
3313
|
data: {
|
|
3314
3314
|
...c,
|
|
3315
|
-
placement:
|
|
3315
|
+
placement: s
|
|
3316
3316
|
}
|
|
3317
3317
|
};
|
|
3318
3318
|
}
|
|
@@ -3328,13 +3328,13 @@ const e1 = function(e) {
|
|
|
3328
3328
|
placement: r
|
|
3329
3329
|
} = t, {
|
|
3330
3330
|
mainAxis: a = !0,
|
|
3331
|
-
crossAxis:
|
|
3332
|
-
limiter:
|
|
3333
|
-
fn: (
|
|
3331
|
+
crossAxis: s = !1,
|
|
3332
|
+
limiter: i = {
|
|
3333
|
+
fn: (m) => {
|
|
3334
3334
|
let {
|
|
3335
3335
|
x: v,
|
|
3336
3336
|
y: C
|
|
3337
|
-
} =
|
|
3337
|
+
} = m;
|
|
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 g = l[_], w = l[d];
|
|
3350
3350
|
if (a) {
|
|
3351
|
-
const
|
|
3352
|
-
|
|
3351
|
+
const m = _ === "y" ? "top" : "left", v = _ === "y" ? "bottom" : "right", C = g + u[m], b = g - u[v];
|
|
3352
|
+
g = xn(C, g, b);
|
|
3353
3353
|
}
|
|
3354
|
-
if (
|
|
3355
|
-
const
|
|
3354
|
+
if (s) {
|
|
3355
|
+
const m = d === "y" ? "top" : "left", v = d === "y" ? "bottom" : "right", C = w + u[m], b = w - u[v];
|
|
3356
3356
|
w = xn(C, w, b);
|
|
3357
3357
|
}
|
|
3358
|
-
const p =
|
|
3358
|
+
const p = i.fn({
|
|
3359
3359
|
...t,
|
|
3360
|
-
[_]:
|
|
3360
|
+
[_]: g,
|
|
3361
3361
|
[d]: w
|
|
3362
3362
|
});
|
|
3363
3363
|
return {
|
|
@@ -3367,7 +3367,7 @@ const e1 = function(e) {
|
|
|
3367
3367
|
y: p.y - o,
|
|
3368
3368
|
enabled: {
|
|
3369
3369
|
[_]: a,
|
|
3370
|
-
[d]:
|
|
3370
|
+
[d]: s
|
|
3371
3371
|
}
|
|
3372
3372
|
}
|
|
3373
3373
|
};
|
|
@@ -3382,17 +3382,17 @@ const e1 = function(e) {
|
|
|
3382
3382
|
y: o,
|
|
3383
3383
|
placement: r,
|
|
3384
3384
|
rects: a,
|
|
3385
|
-
middlewareData:
|
|
3385
|
+
middlewareData: s
|
|
3386
3386
|
} = t, {
|
|
3387
|
-
offset:
|
|
3387
|
+
offset: i = 0,
|
|
3388
3388
|
mainAxis: c = !0,
|
|
3389
3389
|
crossAxis: l = !0
|
|
3390
3390
|
} = Le(e, t), u = {
|
|
3391
3391
|
x: n,
|
|
3392
3392
|
y: o
|
|
3393
3393
|
}, d = be(r), _ = Un(d);
|
|
3394
|
-
let
|
|
3395
|
-
const p = Le(
|
|
3394
|
+
let g = u[_], w = u[d];
|
|
3395
|
+
const p = Le(i, t), m = 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] + m.mainAxis, x = a.reference[_] + a.reference[b] - m.mainAxis;
|
|
3405
|
+
g < y ? g = y : g > x && (g = 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 =
|
|
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 : m.crossAxis), E = a.reference[d] + a.reference[b] + (y ? 0 : ((C = s.offset) == null ? void 0 : C[d]) || 0) - (y ? m.crossAxis : 0);
|
|
3410
3410
|
w < x ? w = x : w > E && (w = E);
|
|
3411
3411
|
}
|
|
3412
3412
|
return {
|
|
3413
|
-
[_]:
|
|
3413
|
+
[_]: g,
|
|
3414
3414
|
[d]: w
|
|
3415
3415
|
};
|
|
3416
3416
|
}
|
|
@@ -3424,30 +3424,30 @@ const e1 = function(e) {
|
|
|
3424
3424
|
const {
|
|
3425
3425
|
placement: r,
|
|
3426
3426
|
rects: a,
|
|
3427
|
-
platform:
|
|
3428
|
-
elements:
|
|
3427
|
+
platform: s,
|
|
3428
|
+
elements: i
|
|
3429
3429
|
} = t, {
|
|
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), g = 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 m, v;
|
|
3438
|
+
d === "top" || d === "bottom" ? (m = d, v = _ === (await (s.isRTL == null ? void 0 : s.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = d, m = _ === "end" ? "top" : "bottom");
|
|
3439
|
+
const C = p - u.top - u.bottom, b = w - u.left - u.right, y = Me(p - u[m], 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
|
+
g ? L = w - 2 * (N !== 0 || T !== 0 ? N + T : ue(u.left, u.right)) : S = p - 2 * (B !== 0 || H !== 0 ? B + H : ue(u.top, u.bottom));
|
|
3444
3444
|
}
|
|
3445
3445
|
await c({
|
|
3446
3446
|
...t,
|
|
3447
3447
|
availableWidth: L,
|
|
3448
3448
|
availableHeight: S
|
|
3449
3449
|
});
|
|
3450
|
-
const $ = await
|
|
3450
|
+
const $ = await s.getDimensions(i.floating);
|
|
3451
3451
|
return w !== $.width || p !== $.height ? {
|
|
3452
3452
|
reset: {
|
|
3453
3453
|
rects: !0
|
|
@@ -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 me(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 = me(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 me(e) ? {
|
|
3537
3537
|
scrollLeft: e.scrollLeft,
|
|
3538
3538
|
scrollTop: e.scrollTop
|
|
3539
3539
|
} : {
|
|
@@ -3560,10 +3560,10 @@ function cr(e) {
|
|
|
3560
3560
|
function bt(e, t, n) {
|
|
3561
3561
|
var o;
|
|
3562
3562
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
3563
|
-
const r = cr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body),
|
|
3563
|
+
const r = cr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), s = de(r);
|
|
3564
3564
|
if (a) {
|
|
3565
|
-
const
|
|
3566
|
-
return t.concat(
|
|
3565
|
+
const i = En(s);
|
|
3566
|
+
return t.concat(s, s.visualViewport || [], yt(r) ? r : [], i && n ? bt(i) : []);
|
|
3567
3567
|
}
|
|
3568
3568
|
return t.concat(r, bt(r, [], n));
|
|
3569
3569
|
}
|
|
@@ -3573,15 +3573,15 @@ function En(e) {
|
|
|
3573
3573
|
function lr(e) {
|
|
3574
3574
|
const t = we(e);
|
|
3575
3575
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
3576
|
-
const r = xe(e), a = r ? e.offsetWidth : n,
|
|
3577
|
-
return
|
|
3576
|
+
const r = xe(e), a = r ? e.offsetWidth : n, s = r ? e.offsetHeight : o, i = Vt(n) !== a || Vt(o) !== s;
|
|
3577
|
+
return i && (n = a, o = s), {
|
|
3578
3578
|
width: n,
|
|
3579
3579
|
height: o,
|
|
3580
|
-
$:
|
|
3580
|
+
$: i
|
|
3581
3581
|
};
|
|
3582
3582
|
}
|
|
3583
3583
|
function Gn(e) {
|
|
3584
|
-
return
|
|
3584
|
+
return me(e) ? e : e.contextElement;
|
|
3585
3585
|
}
|
|
3586
3586
|
function rt(e) {
|
|
3587
3587
|
const t = Gn(e);
|
|
@@ -3592,10 +3592,10 @@ function rt(e) {
|
|
|
3592
3592
|
height: r,
|
|
3593
3593
|
$: a
|
|
3594
3594
|
} = lr(t);
|
|
3595
|
-
let
|
|
3596
|
-
return (!
|
|
3597
|
-
x:
|
|
3598
|
-
y:
|
|
3595
|
+
let s = (a ? Vt(n.width) : n.width) / o, i = (a ? Vt(n.height) : n.height) / r;
|
|
3596
|
+
return (!s || !Number.isFinite(s)) && (s = 1), (!i || !Number.isFinite(i)) && (i = 1), {
|
|
3597
|
+
x: s,
|
|
3598
|
+
y: i
|
|
3599
3599
|
};
|
|
3600
3600
|
}
|
|
3601
3601
|
const _1 = /* @__PURE__ */ ye(0);
|
|
@@ -3612,16 +3612,16 @@ function p1(e, t, n) {
|
|
|
3612
3612
|
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
|
-
let
|
|
3616
|
-
t && (o ?
|
|
3617
|
-
const
|
|
3618
|
-
let c = (r.left +
|
|
3615
|
+
let s = ye(1);
|
|
3616
|
+
t && (o ? me(o) && (s = rt(o)) : s = rt(e));
|
|
3617
|
+
const i = p1(a, n, o) ? ur(a) : ye(0);
|
|
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), g = o && me(o) ? de(o) : o;
|
|
3621
3621
|
let w = _, p = En(w);
|
|
3622
|
-
for (; p && o &&
|
|
3623
|
-
const
|
|
3624
|
-
c *=
|
|
3622
|
+
for (; p && o && g !== w; ) {
|
|
3623
|
+
const m = rt(p), v = p.getBoundingClientRect(), C = we(p), b = v.left + (p.clientLeft + parseFloat(C.paddingLeft)) * m.x, y = v.top + (p.clientTop + parseFloat(C.paddingTop)) * m.y;
|
|
3624
|
+
c *= m.x, l *= m.y, u *= m.x, d *= m.y, c += b, l += y, w = de(p), p = En(w);
|
|
3625
3625
|
}
|
|
3626
3626
|
}
|
|
3627
3627
|
return Bt({
|
|
@@ -3649,19 +3649,19 @@ function h1(e) {
|
|
|
3649
3649
|
offsetParent: o,
|
|
3650
3650
|
strategy: r
|
|
3651
3651
|
} = e;
|
|
3652
|
-
const a = r === "fixed",
|
|
3653
|
-
if (o ===
|
|
3652
|
+
const a = r === "fixed", s = Se(o), i = t ? Xt(t.floating) : !1;
|
|
3653
|
+
if (o === s || i && a)
|
|
3654
3654
|
return n;
|
|
3655
3655
|
let c = {
|
|
3656
3656
|
scrollLeft: 0,
|
|
3657
3657
|
scrollTop: 0
|
|
3658
3658
|
}, l = ye(1);
|
|
3659
3659
|
const u = ye(0), d = xe(o);
|
|
3660
|
-
if ((d || !d && !a) && ((ut(o) !== "body" || yt(
|
|
3661
|
-
const
|
|
3662
|
-
l = rt(o), u.x =
|
|
3660
|
+
if ((d || !d && !a) && ((ut(o) !== "body" || yt(s)) && (c = Yt(o)), xe(o))) {
|
|
3661
|
+
const g = qe(o);
|
|
3662
|
+
l = rt(o), u.x = g.x + o.clientLeft, u.y = g.y + o.clientTop;
|
|
3663
3663
|
}
|
|
3664
|
-
const _ =
|
|
3664
|
+
const _ = s && !d && !a ? dr(s, c) : ye(0);
|
|
3665
3665
|
return {
|
|
3666
3666
|
width: n.width * l.x,
|
|
3667
3667
|
height: n.height * l.y,
|
|
@@ -3669,47 +3669,47 @@ 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 g1(e) {
|
|
3673
3673
|
return Array.from(e.getClientRects());
|
|
3674
3674
|
}
|
|
3675
|
-
function
|
|
3675
|
+
function m1(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
|
-
let
|
|
3678
|
-
const
|
|
3679
|
-
return we(o).direction === "rtl" && (
|
|
3677
|
+
let s = -n.scrollLeft + Gt(e);
|
|
3678
|
+
const i = -n.scrollTop;
|
|
3679
|
+
return we(o).direction === "rtl" && (s += ue(t.clientWidth, o.clientWidth) - r), {
|
|
3680
3680
|
width: r,
|
|
3681
3681
|
height: a,
|
|
3682
|
-
x:
|
|
3683
|
-
y:
|
|
3682
|
+
x: s,
|
|
3683
|
+
y: i
|
|
3684
3684
|
};
|
|
3685
3685
|
}
|
|
3686
3686
|
const bo = 25;
|
|
3687
3687
|
function w1(e, t) {
|
|
3688
3688
|
const n = de(e), o = Se(e), r = n.visualViewport;
|
|
3689
|
-
let a = o.clientWidth,
|
|
3689
|
+
let a = o.clientWidth, s = o.clientHeight, i = 0, c = 0;
|
|
3690
3690
|
if (r) {
|
|
3691
|
-
a = r.width,
|
|
3691
|
+
a = r.width, s = r.height;
|
|
3692
3692
|
const u = Yn();
|
|
3693
|
-
(!u || u && t === "fixed") && (
|
|
3693
|
+
(!u || u && t === "fixed") && (i = r.offsetLeft, c = r.offsetTop);
|
|
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), g = u.compatMode === "CSS1Compat" && parseFloat(_.marginLeft) + parseFloat(_.marginRight) || 0, w = Math.abs(o.clientWidth - d.clientWidth - g);
|
|
3698
3698
|
w <= bo && (a -= w);
|
|
3699
3699
|
} else l <= bo && (a += l);
|
|
3700
3700
|
return {
|
|
3701
3701
|
width: a,
|
|
3702
|
-
height:
|
|
3703
|
-
x:
|
|
3702
|
+
height: s,
|
|
3703
|
+
x: i,
|
|
3704
3704
|
y: c
|
|
3705
3705
|
};
|
|
3706
3706
|
}
|
|
3707
3707
|
const v1 = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
3708
3708
|
function C1(e, t) {
|
|
3709
|
-
const n = qe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = xe(e) ? rt(e) : ye(1),
|
|
3709
|
+
const n = qe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = xe(e) ? rt(e) : ye(1), s = e.clientWidth * a.x, i = e.clientHeight * a.y, c = r * a.x, l = o * a.y;
|
|
3710
3710
|
return {
|
|
3711
|
-
width:
|
|
3712
|
-
height:
|
|
3711
|
+
width: s,
|
|
3712
|
+
height: i,
|
|
3713
3713
|
x: c,
|
|
3714
3714
|
y: l
|
|
3715
3715
|
};
|
|
@@ -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 = m1(Se(e));
|
|
3723
|
+
else if (me(t))
|
|
3724
3724
|
o = C1(t, n);
|
|
3725
3725
|
else {
|
|
3726
3726
|
const r = ur(e);
|
|
@@ -3735,18 +3735,18 @@ 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 || !me(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((
|
|
3744
|
+
let o = bt(e, [], !1).filter((i) => me(i) && ut(i) !== "body"), r = null;
|
|
3745
3745
|
const a = we(e).position === "fixed";
|
|
3746
|
-
let
|
|
3747
|
-
for (;
|
|
3748
|
-
const
|
|
3749
|
-
!c &&
|
|
3746
|
+
let s = a ? Ie(e) : e;
|
|
3747
|
+
for (; me(s) && !it(s); ) {
|
|
3748
|
+
const i = we(s), c = Xn(s);
|
|
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
|
}
|
|
3751
3751
|
return t.set(e, o), o;
|
|
3752
3752
|
}
|
|
@@ -3757,10 +3757,10 @@ function y1(e) {
|
|
|
3757
3757
|
rootBoundary: o,
|
|
3758
3758
|
strategy: r
|
|
3759
3759
|
} = e;
|
|
3760
|
-
const
|
|
3760
|
+
const s = [...n === "clippingAncestors" ? Xt(t) ? [] : b1(t, this._c) : [].concat(n), o], i = s[0], c = s.reduce((l, u) => {
|
|
3761
3761
|
const d = yo(t, u, r);
|
|
3762
3762
|
return l.top = ue(d.top, l.top), l.right = Me(d.right, l.right), l.bottom = Me(d.bottom, l.bottom), l.left = ue(d.left, l.left), l;
|
|
3763
|
-
}, yo(t,
|
|
3763
|
+
}, yo(t, i, r));
|
|
3764
3764
|
return {
|
|
3765
3765
|
width: c.right - c.left,
|
|
3766
3766
|
height: c.bottom - c.top,
|
|
@@ -3779,8 +3779,8 @@ function x1(e) {
|
|
|
3779
3779
|
};
|
|
3780
3780
|
}
|
|
3781
3781
|
function S1(e, t, n) {
|
|
3782
|
-
const o = xe(t), r = Se(t), a = n === "fixed",
|
|
3783
|
-
let
|
|
3782
|
+
const o = xe(t), r = Se(t), a = n === "fixed", s = qe(e, !0, a, t);
|
|
3783
|
+
let i = {
|
|
3784
3784
|
scrollLeft: 0,
|
|
3785
3785
|
scrollTop: 0
|
|
3786
3786
|
};
|
|
@@ -3789,17 +3789,17 @@ function S1(e, t, n) {
|
|
|
3789
3789
|
c.x = Gt(r);
|
|
3790
3790
|
}
|
|
3791
3791
|
if (o || !o && !a)
|
|
3792
|
-
if ((ut(t) !== "body" || yt(r)) && (
|
|
3793
|
-
const
|
|
3794
|
-
c.x =
|
|
3792
|
+
if ((ut(t) !== "body" || yt(r)) && (i = Yt(t)), o) {
|
|
3793
|
+
const g = qe(t, !0, a, t);
|
|
3794
|
+
c.x = g.x + t.clientLeft, c.y = g.y + t.clientTop;
|
|
3795
3795
|
} else r && l();
|
|
3796
3796
|
a && !o && r && l();
|
|
3797
|
-
const u = r && !o && !a ? dr(r,
|
|
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;
|
|
3798
3798
|
return {
|
|
3799
3799
|
x: d,
|
|
3800
3800
|
y: _,
|
|
3801
|
-
width:
|
|
3802
|
-
height:
|
|
3801
|
+
width: s.width,
|
|
3802
|
+
height: s.height
|
|
3803
3803
|
};
|
|
3804
3804
|
}
|
|
3805
3805
|
function fn(e) {
|
|
@@ -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 (me(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: g1,
|
|
3856
3856
|
getDimensions: x1,
|
|
3857
3857
|
getScale: rt,
|
|
3858
|
-
isElement:
|
|
3858
|
+
isElement: me,
|
|
3859
3859
|
isRTL: L1
|
|
3860
3860
|
};
|
|
3861
3861
|
function pr(e, t) {
|
|
@@ -3865,21 +3865,21 @@ function $1(e, t) {
|
|
|
3865
3865
|
let n = null, o;
|
|
3866
3866
|
const r = Se(e);
|
|
3867
3867
|
function a() {
|
|
3868
|
-
var
|
|
3869
|
-
clearTimeout(o), (
|
|
3868
|
+
var i;
|
|
3869
|
+
clearTimeout(o), (i = n) == null || i.disconnect(), n = null;
|
|
3870
3870
|
}
|
|
3871
|
-
function i
|
|
3872
|
-
|
|
3871
|
+
function s(i, c) {
|
|
3872
|
+
i === void 0 && (i = !1), c === void 0 && (c = 1), a();
|
|
3873
3873
|
const l = e.getBoundingClientRect(), {
|
|
3874
3874
|
left: u,
|
|
3875
3875
|
top: d,
|
|
3876
3876
|
width: _,
|
|
3877
|
-
height:
|
|
3877
|
+
height: g
|
|
3878
3878
|
} = l;
|
|
3879
|
-
if (
|
|
3879
|
+
if (i || t(), !_ || !g)
|
|
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 + _)), m = $t(r.clientHeight - (d + g)), v = $t(u), b = {
|
|
3882
|
+
rootMargin: -w + "px " + -p + "px " + -m + "px " + -v + "px",
|
|
3883
3883
|
threshold: ue(0, Me(1, c)) || 1
|
|
3884
3884
|
};
|
|
3885
3885
|
let y = !0;
|
|
@@ -3887,12 +3887,12 @@ function $1(e, t) {
|
|
|
3887
3887
|
const S = E[0].intersectionRatio;
|
|
3888
3888
|
if (S !== c) {
|
|
3889
3889
|
if (!y)
|
|
3890
|
-
return
|
|
3891
|
-
S ?
|
|
3892
|
-
|
|
3890
|
+
return s();
|
|
3891
|
+
S ? s(!1, S) : o = setTimeout(() => {
|
|
3892
|
+
s(!1, 1e-7);
|
|
3893
3893
|
}, 1e3);
|
|
3894
3894
|
}
|
|
3895
|
-
S === 1 && !pr(l, e.getBoundingClientRect()) &&
|
|
3895
|
+
S === 1 && !pr(l, e.getBoundingClientRect()) && s(), y = !1;
|
|
3896
3896
|
}
|
|
3897
3897
|
try {
|
|
3898
3898
|
n = new IntersectionObserver(x, {
|
|
@@ -3905,15 +3905,15 @@ function $1(e, t) {
|
|
|
3905
3905
|
}
|
|
3906
3906
|
n.observe(e);
|
|
3907
3907
|
}
|
|
3908
|
-
return
|
|
3908
|
+
return s(!0), a;
|
|
3909
3909
|
}
|
|
3910
3910
|
function R1(e, t, n, o) {
|
|
3911
3911
|
o === void 0 && (o = {});
|
|
3912
3912
|
const {
|
|
3913
3913
|
ancestorScroll: r = !0,
|
|
3914
3914
|
ancestorResize: a = !0,
|
|
3915
|
-
elementResize:
|
|
3916
|
-
layoutShift:
|
|
3915
|
+
elementResize: s = typeof ResizeObserver == "function",
|
|
3916
|
+
layoutShift: i = typeof IntersectionObserver == "function",
|
|
3917
3917
|
animationFrame: c = !1
|
|
3918
3918
|
} = o, l = Gn(e), u = r || a ? [...l ? bt(l) : [], ...bt(t)] : [];
|
|
3919
3919
|
u.forEach((v) => {
|
|
@@ -3921,26 +3921,26 @@ function R1(e, t, n, o) {
|
|
|
3921
3921
|
passive: !0
|
|
3922
3922
|
}), a && v.addEventListener("resize", n);
|
|
3923
3923
|
});
|
|
3924
|
-
const d = l &&
|
|
3925
|
-
let _ = -1,
|
|
3926
|
-
|
|
3924
|
+
const d = l && i ? $1(l, n) : null;
|
|
3925
|
+
let _ = -1, g = null;
|
|
3926
|
+
s && (g = new ResizeObserver((v) => {
|
|
3927
3927
|
let [C] = v;
|
|
3928
|
-
C && C.target === l &&
|
|
3928
|
+
C && C.target === l && g && (g.unobserve(t), cancelAnimationFrame(_), _ = requestAnimationFrame(() => {
|
|
3929
3929
|
var b;
|
|
3930
|
-
(b =
|
|
3930
|
+
(b = g) == null || b.observe(t);
|
|
3931
3931
|
})), n();
|
|
3932
|
-
}), l && !c &&
|
|
3932
|
+
}), l && !c && g.observe(l), g.observe(t));
|
|
3933
3933
|
let w, p = c ? qe(e) : null;
|
|
3934
|
-
c &&
|
|
3935
|
-
function
|
|
3934
|
+
c && m();
|
|
3935
|
+
function m() {
|
|
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(m);
|
|
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 = g) == null || v.disconnect(), g = 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) => {
|
|
@@ -4010,9 +4010,9 @@ function V1(e) {
|
|
|
4010
4010
|
platform: r,
|
|
4011
4011
|
elements: {
|
|
4012
4012
|
reference: a,
|
|
4013
|
-
floating:
|
|
4013
|
+
floating: s
|
|
4014
4014
|
} = {},
|
|
4015
|
-
transform:
|
|
4015
|
+
transform: i = !0,
|
|
4016
4016
|
whileElementsMounted: c,
|
|
4017
4017
|
open: l
|
|
4018
4018
|
} = e, [u, d] = h.useState({
|
|
@@ -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
|
+
}), [_, g] = h.useState(o);
|
|
4026
|
+
jt(_, o) || g(o);
|
|
4027
|
+
const [w, p] = h.useState(null), [m, 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 =
|
|
4031
|
+
}, []), y = a || w, x = s || m, 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 = {
|
|
@@ -4083,7 +4083,7 @@ function V1(e) {
|
|
|
4083
4083
|
if (!z.floating)
|
|
4084
4084
|
return k;
|
|
4085
4085
|
const F = Eo(z.floating, u.x), se = Eo(z.floating, u.y);
|
|
4086
|
-
return
|
|
4086
|
+
return i ? {
|
|
4087
4087
|
...k,
|
|
4088
4088
|
transform: "translate(" + F + "px, " + se + "px)",
|
|
4089
4089
|
...hr(z.floating) >= 1.5 && {
|
|
@@ -4094,7 +4094,7 @@ function V1(e) {
|
|
|
4094
4094
|
left: F,
|
|
4095
4095
|
top: se
|
|
4096
4096
|
};
|
|
4097
|
-
}, [n,
|
|
4097
|
+
}, [n, i, z.floating, u.x, u.y]);
|
|
4098
4098
|
return h.useMemo(() => ({
|
|
4099
4099
|
...u,
|
|
4100
4100
|
update: H,
|
|
@@ -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", gr = 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", mr = h.forwardRef((e, t) => {
|
|
|
4161
4161
|
}
|
|
4162
4162
|
);
|
|
4163
4163
|
});
|
|
4164
|
-
|
|
4165
|
-
var Y1 =
|
|
4164
|
+
gr.displayName = X1;
|
|
4165
|
+
var Y1 = gr;
|
|
4166
4166
|
function G1(e) {
|
|
4167
4167
|
const [t, n] = h.useState(void 0);
|
|
4168
4168
|
return le(() => {
|
|
@@ -4172,52 +4172,52 @@ function G1(e) {
|
|
|
4172
4172
|
if (!Array.isArray(r) || !r.length)
|
|
4173
4173
|
return;
|
|
4174
4174
|
const a = r[0];
|
|
4175
|
-
let
|
|
4175
|
+
let s, i;
|
|
4176
4176
|
if ("borderBoxSize" in a) {
|
|
4177
4177
|
const c = a.borderBoxSize, l = Array.isArray(c) ? c[0] : c;
|
|
4178
|
-
|
|
4178
|
+
s = l.inlineSize, i = l.blockSize;
|
|
4179
4179
|
} else
|
|
4180
|
-
|
|
4181
|
-
n({ width:
|
|
4180
|
+
s = e.offsetWidth, i = e.offsetHeight;
|
|
4181
|
+
n({ width: s, height: i });
|
|
4182
4182
|
});
|
|
4183
4183
|
return o.observe(e, { box: "border-box" }), () => o.unobserve(e);
|
|
4184
4184
|
} else
|
|
4185
4185
|
n(void 0);
|
|
4186
4186
|
}, [e]), t;
|
|
4187
4187
|
}
|
|
4188
|
-
var Kn = "Popper", [
|
|
4188
|
+
var Kn = "Popper", [mr, wr] = Wn(Kn), [K1, vr] = mr(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
|
};
|
|
4192
4192
|
Cr.displayName = Kn;
|
|
4193
4193
|
var br = "PopperAnchor", yr = h.forwardRef(
|
|
4194
4194
|
(e, t) => {
|
|
4195
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, a = vr(br, n),
|
|
4195
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, a = vr(br, n), s = h.useRef(null), i = ne(t, s), c = h.useRef(null);
|
|
4196
4196
|
return h.useEffect(() => {
|
|
4197
4197
|
const l = c.current;
|
|
4198
|
-
c.current = o?.current ||
|
|
4199
|
-
}), o ? null : /* @__PURE__ */ f(G.div, { ...r, ref:
|
|
4198
|
+
c.current = o?.current || s.current, l !== c.current && a.onAnchorChange(c.current);
|
|
4199
|
+
}), o ? null : /* @__PURE__ */ f(G.div, { ...r, ref: i });
|
|
4200
4200
|
}
|
|
4201
4201
|
);
|
|
4202
4202
|
yr.displayName = br;
|
|
4203
|
-
var Qn = "PopperContent", [Q1, J1] =
|
|
4203
|
+
var Qn = "PopperContent", [Q1, J1] = mr(Qn), xr = h.forwardRef(
|
|
4204
4204
|
(e, t) => {
|
|
4205
4205
|
const {
|
|
4206
4206
|
__scopePopper: n,
|
|
4207
4207
|
side: o = "bottom",
|
|
4208
4208
|
sideOffset: r = 0,
|
|
4209
4209
|
align: a = "center",
|
|
4210
|
-
alignOffset:
|
|
4211
|
-
arrowPadding:
|
|
4210
|
+
alignOffset: s = 0,
|
|
4211
|
+
arrowPadding: i = 0,
|
|
4212
4212
|
avoidCollisions: c = !0,
|
|
4213
4213
|
collisionBoundary: l = [],
|
|
4214
4214
|
collisionPadding: u = 0,
|
|
4215
4215
|
sticky: d = "partial",
|
|
4216
4216
|
hideWhenDetached: _ = !1,
|
|
4217
|
-
updatePositionStrategy:
|
|
4217
|
+
updatePositionStrategy: g = "optimized",
|
|
4218
4218
|
onPlaced: w,
|
|
4219
4219
|
...p
|
|
4220
|
-
} = e,
|
|
4220
|
+
} = e, m = 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,13 +4227,13 @@ var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
|
|
|
4227
4227
|
strategy: "fixed",
|
|
4228
4228
|
placement: $,
|
|
4229
4229
|
whileElementsMounted: (...R) => R1(...R, {
|
|
4230
|
-
animationFrame:
|
|
4230
|
+
animationFrame: g === "always"
|
|
4231
4231
|
}),
|
|
4232
4232
|
elements: {
|
|
4233
|
-
reference:
|
|
4233
|
+
reference: m.anchor
|
|
4234
4234
|
},
|
|
4235
4235
|
middleware: [
|
|
4236
|
-
B1({ mainAxis: r + L, alignmentAxis:
|
|
4236
|
+
B1({ mainAxis: r + L, alignmentAxis: s }),
|
|
4237
4237
|
c && j1({
|
|
4238
4238
|
mainAxis: !0,
|
|
4239
4239
|
crossAxis: !1,
|
|
@@ -4248,7 +4248,7 @@ var Qn = "PopperContent", [Q1, J1] = gr(Qn), xr = h.forwardRef(
|
|
|
4248
4248
|
fe.setProperty("--radix-popper-available-width", `${oe}px`), fe.setProperty("--radix-popper-available-height", `${U}px`), fe.setProperty("--radix-popper-anchor-width", `${Z}px`), fe.setProperty("--radix-popper-anchor-height", `${Q}px`);
|
|
4249
4249
|
}
|
|
4250
4250
|
}),
|
|
4251
|
-
y && q1({ element: y, padding:
|
|
4251
|
+
y && q1({ element: y, padding: i }),
|
|
4252
4252
|
nu({ arrowWidth: S, arrowHeight: L }),
|
|
4253
4253
|
_ && Z1({ strategy: "referenceHidden", ...H })
|
|
4254
4254
|
]
|
|
@@ -4320,7 +4320,7 @@ var Sr = "PopperArrow", eu = {
|
|
|
4320
4320
|
bottom: "top",
|
|
4321
4321
|
left: "right"
|
|
4322
4322
|
}, Er = h.forwardRef(function(t, n) {
|
|
4323
|
-
const { __scopePopper: o, ...r } = t, a = J1(Sr, o),
|
|
4323
|
+
const { __scopePopper: o, ...r } = t, a = J1(Sr, o), s = eu[a.placedSide];
|
|
4324
4324
|
return (
|
|
4325
4325
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
4326
4326
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -4333,7 +4333,7 @@ var Sr = "PopperArrow", eu = {
|
|
|
4333
4333
|
position: "absolute",
|
|
4334
4334
|
left: a.arrowX,
|
|
4335
4335
|
top: a.arrowY,
|
|
4336
|
-
[
|
|
4336
|
+
[s]: 0,
|
|
4337
4337
|
transformOrigin: {
|
|
4338
4338
|
top: "",
|
|
4339
4339
|
right: "0 0",
|
|
@@ -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,
|
|
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, g = (r.arrow?.y ?? 0) + c / 2;
|
|
4376
4376
|
let w = "", p = "";
|
|
4377
|
-
return l === "bottom" ? (w =
|
|
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 : `${g}px`) : l === "left" && (w = `${o.floating.width + c}px`, p = s ? d : `${g}px`), { data: { x: w, y: p } };
|
|
4378
4378
|
}
|
|
4379
4379
|
});
|
|
4380
4380
|
function Lr(e) {
|
|
@@ -4384,8 +4384,8 @@ function Lr(e) {
|
|
|
4384
4384
|
var ou = Cr, ru = yr, au = xr, su = Er, iu = "Portal", Pr = h.forwardRef((e, t) => {
|
|
4385
4385
|
const { container: n, ...o } = e, [r, a] = h.useState(!1);
|
|
4386
4386
|
le(() => a(!0), []);
|
|
4387
|
-
const
|
|
4388
|
-
return
|
|
4387
|
+
const s = n || r && globalThis?.document?.body;
|
|
4388
|
+
return s ? va.createPortal(/* @__PURE__ */ f(G.div, { ...o, ref: t }), s) : null;
|
|
4389
4389
|
});
|
|
4390
4390
|
Pr.displayName = iu;
|
|
4391
4391
|
var cu = h[" useInsertionEffect ".trim().toString()] || le;
|
|
@@ -4396,28 +4396,28 @@ function Lo({
|
|
|
4396
4396
|
},
|
|
4397
4397
|
caller: o
|
|
4398
4398
|
}) {
|
|
4399
|
-
const [r, a,
|
|
4399
|
+
const [r, a, s] = lu({
|
|
4400
4400
|
defaultProp: t,
|
|
4401
4401
|
onChange: n
|
|
4402
|
-
}),
|
|
4402
|
+
}), i = e !== void 0, c = i ? e : r;
|
|
4403
4403
|
{
|
|
4404
4404
|
const u = h.useRef(e !== void 0);
|
|
4405
4405
|
h.useEffect(() => {
|
|
4406
4406
|
const d = u.current;
|
|
4407
|
-
d !==
|
|
4408
|
-
`${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${
|
|
4409
|
-
), u.current =
|
|
4410
|
-
}, [
|
|
4407
|
+
d !== i && console.warn(
|
|
4408
|
+
`${o} is changing from ${d ? "controlled" : "uncontrolled"} to ${i ? "controlled" : "uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`
|
|
4409
|
+
), u.current = i;
|
|
4410
|
+
}, [i, o]);
|
|
4411
4411
|
}
|
|
4412
4412
|
const l = h.useCallback(
|
|
4413
4413
|
(u) => {
|
|
4414
|
-
if (
|
|
4414
|
+
if (i) {
|
|
4415
4415
|
const d = uu(u) ? u(e) : u;
|
|
4416
|
-
d !== e &&
|
|
4416
|
+
d !== e && s.current?.(d);
|
|
4417
4417
|
} else
|
|
4418
4418
|
a(u);
|
|
4419
4419
|
},
|
|
4420
|
-
[
|
|
4420
|
+
[i, e, a, s]
|
|
4421
4421
|
);
|
|
4422
4422
|
return [c, l];
|
|
4423
4423
|
}
|
|
@@ -4478,36 +4478,36 @@ var pu = function(e) {
|
|
|
4478
4478
|
}).filter(function(n) {
|
|
4479
4479
|
return !!n;
|
|
4480
4480
|
});
|
|
4481
|
-
},
|
|
4481
|
+
}, gu = 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
|
-
var a = Nt[n],
|
|
4485
|
-
!d ||
|
|
4484
|
+
var a = Nt[n], s = [], i = /* @__PURE__ */ new Set(), c = new Set(r), l = function(d) {
|
|
4485
|
+
!d || i.has(d) || (i.add(d), l(d.parentNode));
|
|
4486
4486
|
};
|
|
4487
4487
|
r.forEach(l);
|
|
4488
4488
|
var u = function(d) {
|
|
4489
4489
|
!d || c.has(d) || Array.prototype.forEach.call(d.children, function(_) {
|
|
4490
|
-
if (
|
|
4490
|
+
if (i.has(_))
|
|
4491
4491
|
u(_);
|
|
4492
4492
|
else
|
|
4493
4493
|
try {
|
|
4494
|
-
var
|
|
4495
|
-
et.set(_, p), a.set(_,
|
|
4494
|
+
var g = _.getAttribute(o), w = g !== null && g !== "false", p = (et.get(_) || 0) + 1, m = (a.get(_) || 0) + 1;
|
|
4495
|
+
et.set(_, p), a.set(_, m), s.push(_), p === 1 && w && Rt.set(_, !0), m === 1 && _.setAttribute(n, "true"), w || _.setAttribute(o, "true");
|
|
4496
4496
|
} catch (v) {
|
|
4497
4497
|
console.error("aria-hidden: cannot operate on ", _, v);
|
|
4498
4498
|
}
|
|
4499
4499
|
});
|
|
4500
4500
|
};
|
|
4501
|
-
return u(t),
|
|
4502
|
-
|
|
4503
|
-
var _ = et.get(d) - 1,
|
|
4504
|
-
et.set(d, _), a.set(d,
|
|
4501
|
+
return u(t), i.clear(), pn++, function() {
|
|
4502
|
+
s.forEach(function(d) {
|
|
4503
|
+
var _ = et.get(d) - 1, g = a.get(d) - 1;
|
|
4504
|
+
et.set(d, _), a.set(d, g), _ || (Rt.has(d) || d.removeAttribute(o), Rt.delete(d)), g || d.removeAttribute(n);
|
|
4505
4505
|
}), pn--, pn || (et = /* @__PURE__ */ new WeakMap(), et = /* @__PURE__ */ new WeakMap(), Rt = /* @__PURE__ */ new WeakMap(), Nt = {});
|
|
4506
4506
|
};
|
|
4507
|
-
},
|
|
4507
|
+
}, mu = 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"))), gu(o, r, n, "aria-hidden")) : function() {
|
|
4511
4511
|
return null;
|
|
4512
4512
|
};
|
|
4513
4513
|
}, Ce = function() {
|
|
@@ -4567,11 +4567,11 @@ function xu(e, t) {
|
|
|
4567
4567
|
return yu(function() {
|
|
4568
4568
|
var o = Po.get(n);
|
|
4569
4569
|
if (o) {
|
|
4570
|
-
var r = new Set(o), a = new Set(e),
|
|
4571
|
-
r.forEach(function(
|
|
4572
|
-
a.has(
|
|
4573
|
-
}), a.forEach(function(
|
|
4574
|
-
r.has(
|
|
4570
|
+
var r = new Set(o), a = new Set(e), s = n.current;
|
|
4571
|
+
r.forEach(function(i) {
|
|
4572
|
+
a.has(i) || hn(i, null);
|
|
4573
|
+
}), a.forEach(function(i) {
|
|
4574
|
+
r.has(i) || hn(i, s);
|
|
4575
4575
|
});
|
|
4576
4576
|
}
|
|
4577
4577
|
Po.set(n, e);
|
|
@@ -4589,21 +4589,21 @@ function Eu(e, t) {
|
|
|
4589
4589
|
return n.length ? n[n.length - 1] : e;
|
|
4590
4590
|
},
|
|
4591
4591
|
useMedium: function(a) {
|
|
4592
|
-
var
|
|
4593
|
-
return n.push(
|
|
4594
|
-
n = n.filter(function(
|
|
4595
|
-
return
|
|
4592
|
+
var s = t(a, o);
|
|
4593
|
+
return n.push(s), function() {
|
|
4594
|
+
n = n.filter(function(i) {
|
|
4595
|
+
return i !== s;
|
|
4596
4596
|
});
|
|
4597
4597
|
};
|
|
4598
4598
|
},
|
|
4599
4599
|
assignSyncMedium: function(a) {
|
|
4600
4600
|
for (o = !0; n.length; ) {
|
|
4601
|
-
var
|
|
4602
|
-
n = [],
|
|
4601
|
+
var s = n;
|
|
4602
|
+
n = [], s.forEach(a);
|
|
4603
4603
|
}
|
|
4604
4604
|
n = {
|
|
4605
|
-
push: function(
|
|
4606
|
-
return a(
|
|
4605
|
+
push: function(i) {
|
|
4606
|
+
return a(i);
|
|
4607
4607
|
},
|
|
4608
4608
|
filter: function() {
|
|
4609
4609
|
return n;
|
|
@@ -4612,23 +4612,23 @@ function Eu(e, t) {
|
|
|
4612
4612
|
},
|
|
4613
4613
|
assignMedium: function(a) {
|
|
4614
4614
|
o = !0;
|
|
4615
|
-
var
|
|
4615
|
+
var s = [];
|
|
4616
4616
|
if (n.length) {
|
|
4617
|
-
var
|
|
4618
|
-
n = [],
|
|
4617
|
+
var i = n;
|
|
4618
|
+
n = [], i.forEach(a), s = n;
|
|
4619
4619
|
}
|
|
4620
4620
|
var c = function() {
|
|
4621
|
-
var u =
|
|
4622
|
-
|
|
4621
|
+
var u = s;
|
|
4622
|
+
s = [], u.forEach(a);
|
|
4623
4623
|
}, l = function() {
|
|
4624
4624
|
return Promise.resolve().then(c);
|
|
4625
4625
|
};
|
|
4626
4626
|
l(), n = {
|
|
4627
4627
|
push: function(u) {
|
|
4628
|
-
|
|
4628
|
+
s.push(u), l();
|
|
4629
4629
|
},
|
|
4630
4630
|
filter: function(u) {
|
|
4631
|
-
return
|
|
4631
|
+
return s = s.filter(u), n;
|
|
4632
4632
|
}
|
|
4633
4633
|
};
|
|
4634
4634
|
}
|
|
@@ -4653,18 +4653,18 @@ 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(), gn = 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],
|
|
4659
|
+
onScrollCapture: gn,
|
|
4660
|
+
onWheelCapture: gn,
|
|
4661
|
+
onTouchMoveCapture: gn
|
|
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, g = e.noRelative, w = e.noIsolation, p = e.inert, m = e.allowPinchZoom, v = e.as, C = v === void 0 ? "div" : v, b = e.gapMode, y = Nr(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = _, E = xu([n, t]), S = Ce(Ce({}, y), r);
|
|
4663
4663
|
return h.createElement(
|
|
4664
4664
|
h.Fragment,
|
|
4665
4665
|
null,
|
|
4666
|
-
u && h.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative:
|
|
4667
|
-
|
|
4666
|
+
u && h.createElement(x, { sideCar: Ar, removeScrollBar: l, shards: d, noRelative: g, noIsolation: w, inert: p, setCallbacks: a, allowPinchZoom: !!m, lockRef: n, gapMode: b }),
|
|
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
|
});
|
|
4670
4670
|
Kt.defaultProps = {
|
|
@@ -4725,11 +4725,11 @@ var Au = function() {
|
|
|
4725
4725
|
top: 0,
|
|
4726
4726
|
right: 0,
|
|
4727
4727
|
gap: 0
|
|
4728
|
-
},
|
|
4728
|
+
}, mn = 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 [mn(n), mn(o), mn(r)];
|
|
4733
4733
|
}, Iu = function(e) {
|
|
4734
4734
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
4735
4735
|
return zu;
|
|
@@ -4741,11 +4741,11 @@ var Au = function() {
|
|
|
4741
4741
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
4742
4742
|
};
|
|
4743
4743
|
}, Ou = Tr(), at = "data-scroll-locked", Du = function(e, t, n, o) {
|
|
4744
|
-
var r = e.left, a = e.top,
|
|
4744
|
+
var r = e.left, a = e.top, s = e.right, i = e.gap;
|
|
4745
4745
|
return n === void 0 && (n = "margin"), `
|
|
4746
4746
|
.`.concat(vu, ` {
|
|
4747
4747
|
overflow: hidden `).concat(o, `;
|
|
4748
|
-
padding-right: `).concat(
|
|
4748
|
+
padding-right: `).concat(i, "px ").concat(o, `;
|
|
4749
4749
|
}
|
|
4750
4750
|
body[`).concat(at, `] {
|
|
4751
4751
|
overflow: hidden `).concat(o, `;
|
|
@@ -4755,21 +4755,21 @@ var Au = function() {
|
|
|
4755
4755
|
n === "margin" && `
|
|
4756
4756
|
padding-left: `.concat(r, `px;
|
|
4757
4757
|
padding-top: `).concat(a, `px;
|
|
4758
|
-
padding-right: `).concat(
|
|
4758
|
+
padding-right: `).concat(s, `px;
|
|
4759
4759
|
margin-left:0;
|
|
4760
4760
|
margin-top:0;
|
|
4761
|
-
margin-right: `).concat(
|
|
4761
|
+
margin-right: `).concat(i, "px ").concat(o, `;
|
|
4762
4762
|
`),
|
|
4763
|
-
n === "padding" && "padding-right: ".concat(
|
|
4763
|
+
n === "padding" && "padding-right: ".concat(i, "px ").concat(o, ";")
|
|
4764
4764
|
].filter(Boolean).join(""), `
|
|
4765
4765
|
}
|
|
4766
4766
|
|
|
4767
4767
|
.`).concat(Mt, ` {
|
|
4768
|
-
right: `).concat(
|
|
4768
|
+
right: `).concat(i, "px ").concat(o, `;
|
|
4769
4769
|
}
|
|
4770
4770
|
|
|
4771
4771
|
.`).concat(It, ` {
|
|
4772
|
-
margin-right: `).concat(
|
|
4772
|
+
margin-right: `).concat(i, "px ").concat(o, `;
|
|
4773
4773
|
}
|
|
4774
4774
|
|
|
4775
4775
|
.`).concat(Mt, " .").concat(Mt, ` {
|
|
@@ -4781,7 +4781,7 @@ var Au = function() {
|
|
|
4781
4781
|
}
|
|
4782
4782
|
|
|
4783
4783
|
body[`).concat(at, `] {
|
|
4784
|
-
`).concat(Cu, ": ").concat(
|
|
4784
|
+
`).concat(Cu, ": ").concat(i, `px;
|
|
4785
4785
|
}
|
|
4786
4786
|
`);
|
|
4787
4787
|
}, $o = function() {
|
|
@@ -4834,8 +4834,8 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4834
4834
|
typeof ShadowRoot < "u" && o instanceof ShadowRoot && (o = o.host);
|
|
4835
4835
|
var r = Mr(e, o);
|
|
4836
4836
|
if (r) {
|
|
4837
|
-
var a = Ir(e, o),
|
|
4838
|
-
if (
|
|
4837
|
+
var a = Ir(e, o), s = a[1], i = a[2];
|
|
4838
|
+
if (s > i)
|
|
4839
4839
|
return !0;
|
|
4840
4840
|
}
|
|
4841
4841
|
o = o.parentNode;
|
|
@@ -4862,18 +4862,18 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4862
4862
|
}, Zu = function(e, t) {
|
|
4863
4863
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
4864
4864
|
}, qu = function(e, t, n, o, r) {
|
|
4865
|
-
var a = Zu(e, window.getComputedStyle(t).direction),
|
|
4865
|
+
var a = Zu(e, window.getComputedStyle(t).direction), s = a * o, i = n.target, c = t.contains(i), l = !1, u = s > 0, d = 0, _ = 0;
|
|
4866
4866
|
do {
|
|
4867
|
-
if (!
|
|
4867
|
+
if (!i)
|
|
4868
4868
|
break;
|
|
4869
|
-
var
|
|
4870
|
-
(w || v) && Mr(e,
|
|
4871
|
-
var C =
|
|
4872
|
-
|
|
4869
|
+
var g = Ir(e, i), w = g[0], p = g[1], m = g[2], v = p - m - a * w;
|
|
4870
|
+
(w || v) && Mr(e, i) && (d += v, _ += w);
|
|
4871
|
+
var C = i.parentNode;
|
|
4872
|
+
i = C && C.nodeType === Node.DOCUMENT_FRAGMENT_NODE ? C.host : C;
|
|
4873
4873
|
} while (
|
|
4874
4874
|
// portaled content
|
|
4875
|
-
!c &&
|
|
4876
|
-
c && (t.contains(
|
|
4875
|
+
!c && i !== document.body || // self content
|
|
4876
|
+
c && (t.contains(i) || t === i)
|
|
4877
4877
|
);
|
|
4878
4878
|
return (u && Math.abs(d) < 1 || !u && Math.abs(_) < 1) && (l = !0), l;
|
|
4879
4879
|
}, At = function(e) {
|
|
@@ -4891,25 +4891,25 @@ var tt = Ln ? { passive: !1 } : !1, Bu = function(e) {
|
|
|
4891
4891
|
`);
|
|
4892
4892
|
}, Gu = 0, nt = [];
|
|
4893
4893
|
function Ku(e) {
|
|
4894
|
-
var t = h.useRef([]), n = h.useRef([0, 0]), o = h.useRef(), r = h.useState(Gu++)[0], a = h.useState(Tr)[0],
|
|
4894
|
+
var t = h.useRef([]), n = h.useRef([0, 0]), o = h.useRef(), r = h.useState(Gu++)[0], a = h.useState(Tr)[0], s = h.useRef(e);
|
|
4895
4895
|
h.useEffect(function() {
|
|
4896
|
-
|
|
4896
|
+
s.current = e;
|
|
4897
4897
|
}, [e]), h.useEffect(function() {
|
|
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(m) {
|
|
4902
|
+
return m.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(m) {
|
|
4905
|
+
return m.classList.remove("allow-interactivity-".concat(r));
|
|
4906
4906
|
});
|
|
4907
4907
|
};
|
|
4908
4908
|
}
|
|
4909
4909
|
}, [e.inert, e.lockRef.current, e.shards]);
|
|
4910
|
-
var
|
|
4910
|
+
var i = h.useCallback(function(p, m) {
|
|
4911
4911
|
if ("touches" in p && p.touches.length === 2 || p.type === "wheel" && p.ctrlKey)
|
|
4912
|
-
return !
|
|
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";
|
|
4914
4914
|
if ("touches" in p && S === "h" && E.type === "range")
|
|
4915
4915
|
return !1;
|
|
@@ -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($, m, p, $ === "h" ? b : y);
|
|
4925
4925
|
}, []), c = h.useCallback(function(p) {
|
|
4926
|
-
var
|
|
4926
|
+
var m = 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 m ? No(m) : At(m), C = t.current.filter(function(x) {
|
|
4929
|
+
return x.name === m.type && (x.target === m.target || m.target === x.shadowParent) && Xu(x.delta, v);
|
|
4930
4930
|
})[0];
|
|
4931
4931
|
if (C && C.should) {
|
|
4932
|
-
|
|
4932
|
+
m.cancelable && m.preventDefault();
|
|
4933
4933
|
return;
|
|
4934
4934
|
}
|
|
4935
4935
|
if (!C) {
|
|
4936
|
-
var b = (
|
|
4937
|
-
return x.contains(
|
|
4938
|
-
}), y = b.length > 0 ?
|
|
4939
|
-
y &&
|
|
4936
|
+
var b = (s.current.shards || []).map(ko).filter(Boolean).filter(function(x) {
|
|
4937
|
+
return x.contains(m.target);
|
|
4938
|
+
}), y = b.length > 0 ? i(m, b[0]) : !s.current.noIsolation;
|
|
4939
|
+
y && m.cancelable && m.preventDefault();
|
|
4940
4940
|
}
|
|
4941
4941
|
}
|
|
4942
|
-
}, []), l = h.useCallback(function(p,
|
|
4943
|
-
var b = { name: p, delta:
|
|
4942
|
+
}, []), l = h.useCallback(function(p, m, v, C) {
|
|
4943
|
+
var b = { name: p, delta: m, target: v, should: C, shadowParent: Qu(v) };
|
|
4944
4944
|
t.current.push(b), setTimeout(function() {
|
|
4945
4945
|
t.current = t.current.filter(function(y) {
|
|
4946
4946
|
return y !== b;
|
|
@@ -4949,9 +4949,9 @@ function Ku(e) {
|
|
|
4949
4949
|
}, []), u = h.useCallback(function(p) {
|
|
4950
4950
|
n.current = At(p), o.current = void 0;
|
|
4951
4951
|
}, []), d = h.useCallback(function(p) {
|
|
4952
|
-
l(p.type, No(p), p.target,
|
|
4952
|
+
l(p.type, No(p), p.target, i(p, e.lockRef.current));
|
|
4953
4953
|
}, []), _ = h.useCallback(function(p) {
|
|
4954
|
-
l(p.type, At(p), p.target,
|
|
4954
|
+
l(p.type, At(p), p.target, i(p, e.lockRef.current));
|
|
4955
4955
|
}, []);
|
|
4956
4956
|
h.useEffect(function() {
|
|
4957
4957
|
return nt.push(a), e.setCallbacks({
|
|
@@ -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 g = 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
|
+
g ? 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] = ml(Xe), [dt] = Wn(Xe, [
|
|
4986
4986
|
nd,
|
|
4987
4987
|
wr
|
|
4988
4988
|
]), en = wr(), [od, Oe] = dt(Xe), [rd, ad] = dt(Xe), Dr = (e) => {
|
|
@@ -4992,32 +4992,32 @@ var ed = [" ", "Enter", "ArrowUp", "ArrowDown"], td = [" ", "Enter"], Xe = "Sele
|
|
|
4992
4992
|
open: o,
|
|
4993
4993
|
defaultOpen: r,
|
|
4994
4994
|
onOpenChange: a,
|
|
4995
|
-
value:
|
|
4996
|
-
defaultValue:
|
|
4995
|
+
value: s,
|
|
4996
|
+
defaultValue: i,
|
|
4997
4997
|
onValueChange: c,
|
|
4998
4998
|
dir: l,
|
|
4999
4999
|
name: u,
|
|
5000
5000
|
autoComplete: d,
|
|
5001
5001
|
disabled: _,
|
|
5002
|
-
required:
|
|
5002
|
+
required: g,
|
|
5003
5003
|
form: w
|
|
5004
|
-
} = e, p = en(t), [
|
|
5004
|
+
} = e, p = en(t), [m, v] = h.useState(null), [C, b] = h.useState(null), [y, x] = h.useState(!1), E = vl(l), [S, L] = Lo({
|
|
5005
5005
|
prop: o,
|
|
5006
5006
|
defaultProp: r ?? !1,
|
|
5007
5007
|
onChange: a,
|
|
5008
5008
|
caller: Xe
|
|
5009
5009
|
}), [$, N] = Lo({
|
|
5010
|
-
prop:
|
|
5011
|
-
defaultProp:
|
|
5010
|
+
prop: s,
|
|
5011
|
+
defaultProp: i,
|
|
5012
5012
|
onChange: c,
|
|
5013
5013
|
caller: Xe
|
|
5014
|
-
}), T = h.useRef(null), B =
|
|
5014
|
+
}), T = h.useRef(null), B = m ? w || !!m.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: g,
|
|
5019
5019
|
scope: t,
|
|
5020
|
-
trigger:
|
|
5020
|
+
trigger: m,
|
|
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: g,
|
|
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),
|
|
5078
|
-
const
|
|
5079
|
-
C !== void 0 &&
|
|
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, _, g] = aa((p) => {
|
|
5078
|
+
const m = l().filter((b) => !b.disabled), v = m.find((b) => b.value === s.value), C = sa(m, p, v);
|
|
5079
|
+
C !== void 0 && s.onValueChange(C.value);
|
|
5080
5080
|
}), w = (p) => {
|
|
5081
|
-
|
|
5081
|
+
i || (s.onOpenChange(!0), g()), p && (s.triggerPointerDownPosRef.current = {
|
|
5082
5082
|
x: Math.round(p.pageX),
|
|
5083
5083
|
y: Math.round(p.pageY)
|
|
5084
5084
|
});
|
|
@@ -5088,15 +5088,15 @@ var Vr = "SelectTrigger", Hr = h.forwardRef(
|
|
|
5088
5088
|
{
|
|
5089
5089
|
type: "button",
|
|
5090
5090
|
role: "combobox",
|
|
5091
|
-
"aria-controls":
|
|
5092
|
-
"aria-expanded":
|
|
5093
|
-
"aria-required":
|
|
5091
|
+
"aria-controls": s.contentId,
|
|
5092
|
+
"aria-expanded": s.open,
|
|
5093
|
+
"aria-required": s.required,
|
|
5094
5094
|
"aria-autocomplete": "none",
|
|
5095
|
-
dir:
|
|
5096
|
-
"data-state":
|
|
5097
|
-
disabled:
|
|
5098
|
-
"data-disabled":
|
|
5099
|
-
"data-placeholder": ra(
|
|
5095
|
+
dir: s.dir,
|
|
5096
|
+
"data-state": s.open ? "open" : "closed",
|
|
5097
|
+
disabled: i,
|
|
5098
|
+
"data-disabled": i ? "" : void 0,
|
|
5099
|
+
"data-placeholder": ra(s.value) ? "" : void 0,
|
|
5100
5100
|
...r,
|
|
5101
5101
|
ref: c,
|
|
5102
5102
|
onClick: te(r.onClick, (p) => {
|
|
@@ -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 m = p.target;
|
|
5108
|
+
m.hasPointerCapture(p.pointerId) && m.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 m = d.current !== "";
|
|
5112
|
+
!(p.ctrlKey || p.altKey || p.metaKey) && p.key.length === 1 && _(p.key), !(m && p.key === " ") && ed.includes(p.key) && (w(), p.preventDefault());
|
|
5113
5113
|
})
|
|
5114
5114
|
}
|
|
5115
5115
|
) });
|
|
@@ -5118,16 +5118,16 @@ var Vr = "SelectTrigger", Hr = h.forwardRef(
|
|
|
5118
5118
|
Hr.displayName = Vr;
|
|
5119
5119
|
var Br = "SelectValue", jr = h.forwardRef(
|
|
5120
5120
|
(e, t) => {
|
|
5121
|
-
const { __scopeSelect: n, className: o, style: r, children: a, placeholder:
|
|
5121
|
+
const { __scopeSelect: n, className: o, style: r, children: a, placeholder: s = "", ...i } = e, c = Oe(Br, n), { onValueNodeHasChildrenChange: l } = c, u = a !== void 0, d = ne(t, c.onValueNodeChange);
|
|
5122
5122
|
return le(() => {
|
|
5123
5123
|
l(u);
|
|
5124
5124
|
}, [l, u]), /* @__PURE__ */ f(
|
|
5125
5125
|
G.span,
|
|
5126
5126
|
{
|
|
5127
|
-
...
|
|
5127
|
+
...i,
|
|
5128
5128
|
ref: d,
|
|
5129
5129
|
style: { pointerEvents: "none" },
|
|
5130
|
-
children: ra(c.value) ? /* @__PURE__ */ f(Ee, { children:
|
|
5130
|
+
children: ra(c.value) ? /* @__PURE__ */ f(Ee, { children: s }) : a
|
|
5131
5131
|
}
|
|
5132
5132
|
);
|
|
5133
5133
|
}
|
|
@@ -5158,33 +5158,33 @@ var Ye = "SelectContent", Ur = h.forwardRef(
|
|
|
5158
5158
|
}
|
|
5159
5159
|
);
|
|
5160
5160
|
Ur.displayName = Ye;
|
|
5161
|
-
var
|
|
5161
|
+
var ge = 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,
|
|
5165
5165
|
position: o = "item-aligned",
|
|
5166
5166
|
onCloseAutoFocus: r,
|
|
5167
5167
|
onEscapeKeyDown: a,
|
|
5168
|
-
onPointerDownOutside:
|
|
5168
|
+
onPointerDownOutside: s,
|
|
5169
5169
|
//
|
|
5170
5170
|
// PopperContent props
|
|
5171
|
-
side:
|
|
5171
|
+
side: i,
|
|
5172
5172
|
sideOffset: c,
|
|
5173
5173
|
align: l,
|
|
5174
5174
|
alignOffset: u,
|
|
5175
5175
|
arrowPadding: d,
|
|
5176
5176
|
collisionBoundary: _,
|
|
5177
|
-
collisionPadding:
|
|
5177
|
+
collisionPadding: g,
|
|
5178
5178
|
sticky: w,
|
|
5179
5179
|
hideWhenDetached: p,
|
|
5180
|
-
avoidCollisions:
|
|
5180
|
+
avoidCollisions: m,
|
|
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 mu(b);
|
|
5188
5188
|
}, [b]), $l();
|
|
5189
5189
|
const z = h.useCallback(
|
|
5190
5190
|
(R) => {
|
|
@@ -5238,16 +5238,16 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5238
5238
|
},
|
|
5239
5239
|
[C.value]
|
|
5240
5240
|
), Ke = o === "popper" ? Pn : Xr, He = Ke === Pn ? {
|
|
5241
|
-
side:
|
|
5241
|
+
side: i,
|
|
5242
5242
|
sideOffset: c,
|
|
5243
5243
|
align: l,
|
|
5244
5244
|
alignOffset: u,
|
|
5245
5245
|
arrowPadding: d,
|
|
5246
5246
|
collisionBoundary: _,
|
|
5247
|
-
collisionPadding:
|
|
5247
|
+
collisionPadding: g,
|
|
5248
5248
|
sticky: w,
|
|
5249
5249
|
hideWhenDetached: p,
|
|
5250
|
-
avoidCollisions:
|
|
5250
|
+
avoidCollisions: m
|
|
5251
5251
|
} : {};
|
|
5252
5252
|
return /* @__PURE__ */ f(
|
|
5253
5253
|
Zr,
|
|
@@ -5282,7 +5282,7 @@ var me = 10, [Zr, De] = dt(Ye), cd = "SelectContentImpl", ld = /* @__PURE__ */ D
|
|
|
5282
5282
|
asChild: !0,
|
|
5283
5283
|
disableOutsidePointerEvents: !0,
|
|
5284
5284
|
onEscapeKeyDown: a,
|
|
5285
|
-
onPointerDownOutside:
|
|
5285
|
+
onPointerDownOutside: s,
|
|
5286
5286
|
onFocusOutside: (R) => R.preventDefault(),
|
|
5287
5287
|
onDismiss: () => C.onOpenChange(!1),
|
|
5288
5288
|
children: /* @__PURE__ */ f(
|
|
@@ -5328,57 +5328,57 @@ var me = 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),
|
|
5332
|
-
if (a.trigger && a.valueNode &&
|
|
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), g = h.useRef(!1), w = h.useRef(!0), { viewport: p, selectedItem: m, selectedItemText: v, focusSelectedItem: C } = s, b = h.useCallback(() => {
|
|
5332
|
+
if (a.trigger && a.valueNode && i && l && p && m && 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 - ge, an = so(Q, [
|
|
5336
|
+
ge,
|
|
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(ge, 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 - ge, an = so(Q, [
|
|
5347
|
+
ge,
|
|
5348
|
+
Math.max(ge, 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 - ge * 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(m.offsetHeight * 5, F), Ve = window.getComputedStyle(p), ft = parseInt(Ve.paddingTop, 10), _t = parseInt(Ve.paddingBottom, 10), Re = S.top + S.height / 2 - ge, Ke = B - Re, He = m.offsetHeight / 2, R = m.offsetTop + He, X = j + z + R, oe = F - X;
|
|
5353
5353
|
if (X <= Re) {
|
|
5354
|
-
const Z = T.length > 0 &&
|
|
5355
|
-
|
|
5354
|
+
const Z = T.length > 0 && m === T[T.length - 1].ref.current;
|
|
5355
|
+
i.style.bottom = "0px";
|
|
5356
5356
|
const Q = l.clientHeight - p.offsetTop - p.offsetHeight, fe = Math.max(
|
|
5357
5357
|
Ke,
|
|
5358
5358
|
He + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
5359
5359
|
(Z ? _t : 0) + Q + D
|
|
5360
5360
|
), Be = X + fe;
|
|
5361
|
-
|
|
5361
|
+
i.style.height = Be + "px";
|
|
5362
5362
|
} else {
|
|
5363
|
-
const Z = T.length > 0 &&
|
|
5364
|
-
|
|
5363
|
+
const Z = T.length > 0 && m === T[0].ref.current;
|
|
5364
|
+
i.style.top = "0px";
|
|
5365
5365
|
const fe = Math.max(
|
|
5366
5366
|
Re,
|
|
5367
5367
|
j + p.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
5368
5368
|
(Z ? ft : 0) + He
|
|
5369
5369
|
) + oe;
|
|
5370
|
-
|
|
5370
|
+
i.style.height = fe + "px", p.scrollTop = X - Re + p.offsetTop;
|
|
5371
5371
|
}
|
|
5372
|
-
|
|
5372
|
+
i.style.margin = `${ge}px 0`, i.style.minHeight = se + "px", i.style.maxHeight = B + "px", o?.(), requestAnimationFrame(() => g.current = !0);
|
|
5373
5373
|
}
|
|
5374
5374
|
}, [
|
|
5375
5375
|
_,
|
|
5376
5376
|
a.trigger,
|
|
5377
5377
|
a.valueNode,
|
|
5378
|
-
|
|
5378
|
+
i,
|
|
5379
5379
|
l,
|
|
5380
5380
|
p,
|
|
5381
|
-
|
|
5381
|
+
m,
|
|
5382
5382
|
v,
|
|
5383
5383
|
a.dir,
|
|
5384
5384
|
o
|
|
@@ -5398,8 +5398,8 @@ var ud = "SelectItemAlignedPosition", Xr = h.forwardRef((e, t) => {
|
|
|
5398
5398
|
fd,
|
|
5399
5399
|
{
|
|
5400
5400
|
scope: n,
|
|
5401
|
-
contentWrapper:
|
|
5402
|
-
shouldExpandOnScrollRef:
|
|
5401
|
+
contentWrapper: i,
|
|
5402
|
+
shouldExpandOnScrollRef: g,
|
|
5403
5403
|
onScrollButtonChange: E,
|
|
5404
5404
|
children: /* @__PURE__ */ f(
|
|
5405
5405
|
"div",
|
|
@@ -5436,13 +5436,13 @@ 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 = ge,
|
|
5440
5440
|
...a
|
|
5441
|
-
} = e,
|
|
5441
|
+
} = e, s = en(n);
|
|
5442
5442
|
return /* @__PURE__ */ f(
|
|
5443
5443
|
au,
|
|
5444
5444
|
{
|
|
5445
|
-
...
|
|
5445
|
+
...s,
|
|
5446
5446
|
...a,
|
|
5447
5447
|
ref: t,
|
|
5448
5448
|
align: o,
|
|
@@ -5463,7 +5463,7 @@ var dd = "SelectPopperPosition", Pn = h.forwardRef((e, t) => {
|
|
|
5463
5463
|
Pn.displayName = dd;
|
|
5464
5464
|
var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
|
|
5465
5465
|
(e, t) => {
|
|
5466
|
-
const { __scopeSelect: n, nonce: o, ...r } = e, a = De($n, n),
|
|
5466
|
+
const { __scopeSelect: n, nonce: o, ...r } = e, a = De($n, n), s = Jn($n, n), i = ne(t, a.onViewportChange), c = h.useRef(0);
|
|
5467
5467
|
return /* @__PURE__ */ A(Ee, { children: [
|
|
5468
5468
|
/* @__PURE__ */ f(
|
|
5469
5469
|
"style",
|
|
@@ -5480,7 +5480,7 @@ var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
|
|
|
5480
5480
|
"data-radix-select-viewport": "",
|
|
5481
5481
|
role: "presentation",
|
|
5482
5482
|
...r,
|
|
5483
|
-
ref:
|
|
5483
|
+
ref: i,
|
|
5484
5484
|
style: {
|
|
5485
5485
|
// we use position: 'relative' here on the `viewport` so that when we call
|
|
5486
5486
|
// `selectedItem.offsetTop` in calculations, the offset is relative to the viewport
|
|
@@ -5495,13 +5495,13 @@ var [fd, Jn] = dt(Ye, {}), $n = "SelectViewport", Yr = h.forwardRef(
|
|
|
5495
5495
|
...r.style
|
|
5496
5496
|
},
|
|
5497
5497
|
onScroll: te(r.onScroll, (l) => {
|
|
5498
|
-
const u = l.currentTarget, { contentWrapper: d, shouldExpandOnScrollRef: _ } =
|
|
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 g = Math.abs(c.current - u.scrollTop);
|
|
5501
|
+
if (g > 0) {
|
|
5502
|
+
const w = window.innerHeight - ge * 2, p = parseFloat(d.style.minHeight), m = parseFloat(d.style.height), v = Math.max(p, m);
|
|
5503
5503
|
if (v < w) {
|
|
5504
|
-
const C = v +
|
|
5504
|
+
const C = v + g, 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,33 +5521,33 @@ 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", gd = 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
|
+
gd.displayName = Kr;
|
|
5531
|
+
var Wt = "SelectItem", [md, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
5532
5532
|
(e, t) => {
|
|
5533
5533
|
const {
|
|
5534
5534
|
__scopeSelect: n,
|
|
5535
5535
|
value: o,
|
|
5536
5536
|
disabled: r = !1,
|
|
5537
5537
|
textValue: a,
|
|
5538
|
-
...
|
|
5539
|
-
} = e,
|
|
5538
|
+
...s
|
|
5539
|
+
} = e, i = Oe(Wt, n), c = De(Wt, n), l = i.value === o, [u, d] = h.useState(a ?? ""), [_, g] = h.useState(!1), w = ne(
|
|
5540
5540
|
t,
|
|
5541
5541
|
(C) => c.itemRefCallback?.(C, o, r)
|
|
5542
|
-
), p = Fn(),
|
|
5543
|
-
r || (
|
|
5542
|
+
), p = Fn(), m = h.useRef("touch"), v = () => {
|
|
5543
|
+
r || (i.onValueChange(o), i.onOpenChange(!1));
|
|
5544
5544
|
};
|
|
5545
5545
|
if (o === "")
|
|
5546
5546
|
throw new Error(
|
|
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
|
+
md,
|
|
5551
5551
|
{
|
|
5552
5552
|
scope: n,
|
|
5553
5553
|
value: o,
|
|
@@ -5575,26 +5575,26 @@ var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
|
5575
5575
|
"aria-disabled": r || void 0,
|
|
5576
5576
|
"data-disabled": r ? "" : void 0,
|
|
5577
5577
|
tabIndex: r ? void 0 : -1,
|
|
5578
|
-
...
|
|
5578
|
+
...s,
|
|
5579
5579
|
ref: w,
|
|
5580
|
-
onFocus: te(
|
|
5581
|
-
onBlur: te(
|
|
5582
|
-
onClick: te(
|
|
5583
|
-
|
|
5580
|
+
onFocus: te(s.onFocus, () => g(!0)),
|
|
5581
|
+
onBlur: te(s.onBlur, () => g(!1)),
|
|
5582
|
+
onClick: te(s.onClick, () => {
|
|
5583
|
+
m.current !== "mouse" && v();
|
|
5584
5584
|
}),
|
|
5585
|
-
onPointerUp: te(
|
|
5586
|
-
|
|
5585
|
+
onPointerUp: te(s.onPointerUp, () => {
|
|
5586
|
+
m.current === "mouse" && v();
|
|
5587
5587
|
}),
|
|
5588
|
-
onPointerDown: te(
|
|
5589
|
-
|
|
5588
|
+
onPointerDown: te(s.onPointerDown, (C) => {
|
|
5589
|
+
m.current = C.pointerType;
|
|
5590
5590
|
}),
|
|
5591
|
-
onPointerMove: te(
|
|
5592
|
-
|
|
5591
|
+
onPointerMove: te(s.onPointerMove, (C) => {
|
|
5592
|
+
m.current = C.pointerType, r ? c.onItemLeave?.() : m.current === "mouse" && C.currentTarget.focus({ preventScroll: !0 });
|
|
5593
5593
|
}),
|
|
5594
|
-
onPointerLeave: te(
|
|
5594
|
+
onPointerLeave: te(s.onPointerLeave, (C) => {
|
|
5595
5595
|
C.currentTarget === document.activeElement && c.onItemLeave?.();
|
|
5596
5596
|
}),
|
|
5597
|
-
onKeyDown: te(
|
|
5597
|
+
onKeyDown: te(s.onKeyDown, (C) => {
|
|
5598
5598
|
c.searchRef?.current !== "" && C.key === " " || (td.includes(C.key) && v(), C.key === " " && C.preventDefault());
|
|
5599
5599
|
})
|
|
5600
5600
|
}
|
|
@@ -5608,18 +5608,18 @@ var Wt = "SelectItem", [gd, Qr] = dt(Wt), Jr = h.forwardRef(
|
|
|
5608
5608
|
Jr.displayName = Wt;
|
|
5609
5609
|
var wt = "SelectItemText", ea = h.forwardRef(
|
|
5610
5610
|
(e, t) => {
|
|
5611
|
-
const { __scopeSelect: n, className: o, style: r, ...a } = e,
|
|
5611
|
+
const { __scopeSelect: n, className: o, style: r, ...a } = e, s = Oe(wt, n), i = De(wt, n), c = Qr(wt, n), l = ad(wt, n), [u, d] = h.useState(null), _ = ne(
|
|
5612
5612
|
t,
|
|
5613
5613
|
(v) => d(v),
|
|
5614
5614
|
c.onItemTextChange,
|
|
5615
|
-
(v) =>
|
|
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), () =>
|
|
5615
|
+
(v) => i.itemTextRefCallback?.(v, c.value, c.disabled)
|
|
5616
|
+
), g = u?.textContent, w = h.useMemo(
|
|
5617
|
+
() => /* @__PURE__ */ f("option", { value: c.value, disabled: c.disabled, children: g }, c.value),
|
|
5618
|
+
[c.disabled, c.value, g]
|
|
5619
|
+
), { onNativeOptionAdd: p, onNativeOptionRemove: m } = l;
|
|
5620
|
+
return le(() => (p(w), () => m(w)), [p, m, w]), /* @__PURE__ */ A(Ee, { children: [
|
|
5621
5621
|
/* @__PURE__ */ f(G.span, { id: c.textId, ...a, ref: _ }),
|
|
5622
|
-
c.isSelected &&
|
|
5622
|
+
c.isSelected && s.valueNode && !s.valueNodeHasChildren ? Zt.createPortal(a.children, s.valueNode) : null
|
|
5623
5623
|
] });
|
|
5624
5624
|
}
|
|
5625
5625
|
);
|
|
@@ -5632,60 +5632,60 @@ var ta = "SelectItemIndicator", wd = h.forwardRef(
|
|
|
5632
5632
|
);
|
|
5633
5633
|
wd.displayName = ta;
|
|
5634
5634
|
var Rn = "SelectScrollUpButton", vd = h.forwardRef((e, t) => {
|
|
5635
|
-
const n = De(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, a] = h.useState(!1),
|
|
5635
|
+
const n = De(Rn, e.__scopeSelect), o = Jn(Rn, e.__scopeSelect), [r, a] = h.useState(!1), s = ne(t, o.onScrollButtonChange);
|
|
5636
5636
|
return le(() => {
|
|
5637
5637
|
if (n.viewport && n.isPositioned) {
|
|
5638
|
-
let
|
|
5638
|
+
let i = function() {
|
|
5639
5639
|
const l = c.scrollTop > 0;
|
|
5640
5640
|
a(l);
|
|
5641
5641
|
};
|
|
5642
5642
|
const c = n.viewport;
|
|
5643
|
-
return
|
|
5643
|
+
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
5644
5644
|
}
|
|
5645
5645
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
5646
5646
|
na,
|
|
5647
5647
|
{
|
|
5648
5648
|
...e,
|
|
5649
|
-
ref:
|
|
5649
|
+
ref: s,
|
|
5650
5650
|
onAutoScroll: () => {
|
|
5651
|
-
const { viewport:
|
|
5652
|
-
|
|
5651
|
+
const { viewport: i, selectedItem: c } = n;
|
|
5652
|
+
i && c && (i.scrollTop = i.scrollTop - c.offsetHeight);
|
|
5653
5653
|
}
|
|
5654
5654
|
}
|
|
5655
5655
|
) : null;
|
|
5656
5656
|
});
|
|
5657
5657
|
vd.displayName = Rn;
|
|
5658
5658
|
var Nn = "SelectScrollDownButton", Cd = h.forwardRef((e, t) => {
|
|
5659
|
-
const n = De(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, a] = h.useState(!1),
|
|
5659
|
+
const n = De(Nn, e.__scopeSelect), o = Jn(Nn, e.__scopeSelect), [r, a] = h.useState(!1), s = ne(t, o.onScrollButtonChange);
|
|
5660
5660
|
return le(() => {
|
|
5661
5661
|
if (n.viewport && n.isPositioned) {
|
|
5662
|
-
let
|
|
5662
|
+
let i = function() {
|
|
5663
5663
|
const l = c.scrollHeight - c.clientHeight, u = Math.ceil(c.scrollTop) < l;
|
|
5664
5664
|
a(u);
|
|
5665
5665
|
};
|
|
5666
5666
|
const c = n.viewport;
|
|
5667
|
-
return
|
|
5667
|
+
return i(), c.addEventListener("scroll", i), () => c.removeEventListener("scroll", i);
|
|
5668
5668
|
}
|
|
5669
5669
|
}, [n.viewport, n.isPositioned]), r ? /* @__PURE__ */ f(
|
|
5670
5670
|
na,
|
|
5671
5671
|
{
|
|
5672
5672
|
...e,
|
|
5673
|
-
ref:
|
|
5673
|
+
ref: s,
|
|
5674
5674
|
onAutoScroll: () => {
|
|
5675
|
-
const { viewport:
|
|
5676
|
-
|
|
5675
|
+
const { viewport: i, selectedItem: c } = n;
|
|
5676
|
+
i && c && (i.scrollTop = i.scrollTop + c.offsetHeight);
|
|
5677
5677
|
}
|
|
5678
5678
|
}
|
|
5679
5679
|
) : null;
|
|
5680
5680
|
});
|
|
5681
5681
|
Cd.displayName = Nn;
|
|
5682
5682
|
var na = h.forwardRef((e, t) => {
|
|
5683
|
-
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n),
|
|
5684
|
-
|
|
5683
|
+
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n), s = h.useRef(null), i = Jt(n), c = h.useCallback(() => {
|
|
5684
|
+
s.current !== null && (window.clearInterval(s.current), s.current = null);
|
|
5685
5685
|
}, []);
|
|
5686
5686
|
return h.useEffect(() => () => c(), [c]), le(() => {
|
|
5687
|
-
|
|
5688
|
-
}, [
|
|
5687
|
+
i().find((u) => u.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
5688
|
+
}, [i]), /* @__PURE__ */ f(
|
|
5689
5689
|
G.div,
|
|
5690
5690
|
{
|
|
5691
5691
|
"aria-hidden": !0,
|
|
@@ -5693,10 +5693,10 @@ var na = h.forwardRef((e, t) => {
|
|
|
5693
5693
|
ref: t,
|
|
5694
5694
|
style: { flexShrink: 0, ...r.style },
|
|
5695
5695
|
onPointerDown: te(r.onPointerDown, () => {
|
|
5696
|
-
|
|
5696
|
+
s.current === null && (s.current = window.setInterval(o, 50));
|
|
5697
5697
|
}),
|
|
5698
5698
|
onPointerMove: te(r.onPointerMove, () => {
|
|
5699
|
-
a.onItemLeave?.(),
|
|
5699
|
+
a.onItemLeave?.(), s.current === null && (s.current = window.setInterval(o, 50));
|
|
5700
5700
|
}),
|
|
5701
5701
|
onPointerLeave: te(r.onPointerLeave, () => {
|
|
5702
5702
|
c();
|
|
@@ -5712,26 +5712,26 @@ var na = h.forwardRef((e, t) => {
|
|
|
5712
5712
|
yd.displayName = bd;
|
|
5713
5713
|
var kn = "SelectArrow", xd = h.forwardRef(
|
|
5714
5714
|
(e, t) => {
|
|
5715
|
-
const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(kn, n),
|
|
5716
|
-
return a.open &&
|
|
5715
|
+
const { __scopeSelect: n, ...o } = e, r = en(n), a = Oe(kn, n), s = De(kn, n);
|
|
5716
|
+
return a.open && s.position === "popper" ? /* @__PURE__ */ f(su, { ...r, ...o, ref: t }) : null;
|
|
5717
5717
|
}
|
|
5718
5718
|
);
|
|
5719
5719
|
xd.displayName = kn;
|
|
5720
5720
|
var Sd = "SelectBubbleInput", oa = h.forwardRef(
|
|
5721
5721
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5722
|
-
const r = h.useRef(null), a = ne(o, r),
|
|
5722
|
+
const r = h.useRef(null), a = ne(o, r), s = du(t);
|
|
5723
5723
|
return h.useEffect(() => {
|
|
5724
|
-
const
|
|
5725
|
-
if (!
|
|
5724
|
+
const i = r.current;
|
|
5725
|
+
if (!i) return;
|
|
5726
5726
|
const c = window.HTMLSelectElement.prototype, u = Object.getOwnPropertyDescriptor(
|
|
5727
5727
|
c,
|
|
5728
5728
|
"value"
|
|
5729
5729
|
).set;
|
|
5730
|
-
if (
|
|
5730
|
+
if (s !== t && u) {
|
|
5731
5731
|
const d = new Event("change", { bubbles: !0 });
|
|
5732
|
-
u.call(
|
|
5732
|
+
u.call(i, t), i.dispatchEvent(d);
|
|
5733
5733
|
}
|
|
5734
|
-
}, [
|
|
5734
|
+
}, [s, t]), /* @__PURE__ */ f(
|
|
5735
5735
|
G.select,
|
|
5736
5736
|
{
|
|
5737
5737
|
...n,
|
|
@@ -5748,11 +5748,11 @@ function ra(e) {
|
|
|
5748
5748
|
}
|
|
5749
5749
|
function aa(e) {
|
|
5750
5750
|
const t = Ze(e), n = h.useRef(""), o = h.useRef(0), r = h.useCallback(
|
|
5751
|
-
(
|
|
5752
|
-
const
|
|
5753
|
-
t(
|
|
5751
|
+
(s) => {
|
|
5752
|
+
const i = n.current + s;
|
|
5753
|
+
t(i), (function c(l) {
|
|
5754
5754
|
n.current = l, window.clearTimeout(o.current), l !== "" && (o.current = window.setTimeout(() => c(""), 1e3));
|
|
5755
|
-
})(
|
|
5755
|
+
})(i);
|
|
5756
5756
|
},
|
|
5757
5757
|
[t]
|
|
5758
5758
|
), a = h.useCallback(() => {
|
|
@@ -5762,9 +5762,9 @@ function aa(e) {
|
|
|
5762
5762
|
}
|
|
5763
5763
|
function sa(e, t, n) {
|
|
5764
5764
|
const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
5765
|
-
let
|
|
5766
|
-
r.length === 1 && (
|
|
5767
|
-
const c =
|
|
5765
|
+
let s = Ed(e, Math.max(a, 0));
|
|
5766
|
+
r.length === 1 && (s = s.filter((l) => l !== n));
|
|
5767
|
+
const c = s.find(
|
|
5768
5768
|
(l) => l.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
5769
5769
|
);
|
|
5770
5770
|
return c !== n ? c : void 0;
|
|
@@ -5838,10 +5838,10 @@ function Ge(...e) {
|
|
|
5838
5838
|
const ca = /* @__PURE__ */ P((e, t) => {
|
|
5839
5839
|
const { children: n, ...o } = e, r = ot.toArray(n), a = r.find(n0);
|
|
5840
5840
|
if (a) {
|
|
5841
|
-
const
|
|
5841
|
+
const s = a.props.children, i = r.map((c) => c === a ? ot.count(s) > 1 ? ot.only(null) : /* @__PURE__ */ Ot(s) ? s.props.children : null : c);
|
|
5842
5842
|
return /* @__PURE__ */ V(An, q({}, o, {
|
|
5843
5843
|
ref: t
|
|
5844
|
-
}), /* @__PURE__ */ Ot(
|
|
5844
|
+
}), /* @__PURE__ */ Ot(s) ? /* @__PURE__ */ In(s, void 0, i) : null);
|
|
5845
5845
|
}
|
|
5846
5846
|
return /* @__PURE__ */ V(An, q({}, o, {
|
|
5847
5847
|
ref: t
|
|
@@ -5866,8 +5866,8 @@ function o0(e, t) {
|
|
|
5866
5866
|
};
|
|
5867
5867
|
for (const o in t) {
|
|
5868
5868
|
const r = e[o], a = t[o];
|
|
5869
|
-
/^on[A-Z]/.test(o) ? r && a ? n[o] = (...
|
|
5870
|
-
a(...
|
|
5869
|
+
/^on[A-Z]/.test(o) ? r && a ? n[o] = (...i) => {
|
|
5870
|
+
a(...i), r(...i);
|
|
5871
5871
|
} : r && (n[o] = r) : o === "style" ? n[o] = {
|
|
5872
5872
|
...r,
|
|
5873
5873
|
...a
|
|
@@ -5900,10 +5900,10 @@ const r0 = [
|
|
|
5900
5900
|
"ul"
|
|
5901
5901
|
], xt = r0.reduce((e, t) => {
|
|
5902
5902
|
const n = /* @__PURE__ */ P((o, r) => {
|
|
5903
|
-
const { asChild: a, ...
|
|
5903
|
+
const { asChild: a, ...s } = o, i = a ? ca : t;
|
|
5904
5904
|
return ae(() => {
|
|
5905
5905
|
window[Symbol.for("radix-ui")] = !0;
|
|
5906
|
-
}, []), /* @__PURE__ */ V(
|
|
5906
|
+
}, []), /* @__PURE__ */ V(i, q({}, s, {
|
|
5907
5907
|
ref: r
|
|
5908
5908
|
}));
|
|
5909
5909
|
});
|
|
@@ -5929,7 +5929,7 @@ const St = (e) => {
|
|
|
5929
5929
|
};
|
|
5930
5930
|
St.displayName = "Presence";
|
|
5931
5931
|
function s0(e) {
|
|
5932
|
-
const [t, n] = W(), o = ce({}), r = ce(e), a = ce("none"),
|
|
5932
|
+
const [t, n] = W(), o = ce({}), r = ce(e), a = ce("none"), s = e ? "mounted" : "unmounted", [i, c] = a0(s, {
|
|
5933
5933
|
mounted: {
|
|
5934
5934
|
UNMOUNT: "unmounted",
|
|
5935
5935
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -5944,14 +5944,14 @@ function s0(e) {
|
|
|
5944
5944
|
});
|
|
5945
5945
|
return ae(() => {
|
|
5946
5946
|
const l = Tt(o.current);
|
|
5947
|
-
a.current =
|
|
5947
|
+
a.current = i === "mounted" ? l : "none";
|
|
5948
5948
|
}, [
|
|
5949
|
-
|
|
5949
|
+
i
|
|
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, g = Tt(l);
|
|
5954
|
+
e ? c("MOUNT") : g === "none" || l?.display === "none" ? c("UNMOUNT") : c(u && _ !== g ? "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 g = Tt(o.current).includes(d.animationName);
|
|
5963
|
+
d.target === t && g && Ca(
|
|
5964
5964
|
() => c("ANIMATION_END")
|
|
5965
5965
|
);
|
|
5966
5966
|
}, u = (d) => {
|
|
@@ -5978,7 +5978,7 @@ function s0(e) {
|
|
|
5978
5978
|
isPresent: [
|
|
5979
5979
|
"mounted",
|
|
5980
5980
|
"unmountSuspended"
|
|
5981
|
-
].includes(
|
|
5981
|
+
].includes(i),
|
|
5982
5982
|
ref: Mn((l) => {
|
|
5983
5983
|
l && (o.current = getComputedStyle(l)), n(l);
|
|
5984
5984
|
}, [])
|
|
@@ -5989,25 +5989,25 @@ function Tt(e) {
|
|
|
5989
5989
|
}
|
|
5990
5990
|
function i0(e, t = []) {
|
|
5991
5991
|
let n = [];
|
|
5992
|
-
function o(a,
|
|
5993
|
-
const
|
|
5992
|
+
function o(a, s) {
|
|
5993
|
+
const i = /* @__PURE__ */ vn(s), c = n.length;
|
|
5994
5994
|
n = [
|
|
5995
5995
|
...n,
|
|
5996
|
-
|
|
5996
|
+
s
|
|
5997
5997
|
];
|
|
5998
5998
|
function l(d) {
|
|
5999
|
-
const { scope: _, children:
|
|
5999
|
+
const { scope: _, children: g, ...w } = d, p = _?.[e][c] || i, m = vt(
|
|
6000
6000
|
() => w,
|
|
6001
6001
|
Object.values(w)
|
|
6002
6002
|
);
|
|
6003
6003
|
return /* @__PURE__ */ V(p.Provider, {
|
|
6004
|
-
value:
|
|
6005
|
-
},
|
|
6004
|
+
value: m
|
|
6005
|
+
}, g);
|
|
6006
6006
|
}
|
|
6007
6007
|
function u(d, _) {
|
|
6008
|
-
const
|
|
6008
|
+
const g = _?.[e][c] || i, w = Io(g);
|
|
6009
6009
|
if (w) return w;
|
|
6010
|
-
if (
|
|
6010
|
+
if (s !== void 0) return s;
|
|
6011
6011
|
throw new Error(`\`${d}\` must be used within \`${a}\``);
|
|
6012
6012
|
}
|
|
6013
6013
|
return l.displayName = a + "Provider", [
|
|
@@ -6016,18 +6016,18 @@ function i0(e, t = []) {
|
|
|
6016
6016
|
];
|
|
6017
6017
|
}
|
|
6018
6018
|
const r = () => {
|
|
6019
|
-
const a = n.map((
|
|
6020
|
-
return function(
|
|
6021
|
-
const c =
|
|
6019
|
+
const a = n.map((s) => /* @__PURE__ */ vn(s));
|
|
6020
|
+
return function(i) {
|
|
6021
|
+
const c = i?.[e] || a;
|
|
6022
6022
|
return vt(
|
|
6023
6023
|
() => ({
|
|
6024
6024
|
[`__scope${e}`]: {
|
|
6025
|
-
...
|
|
6025
|
+
...i,
|
|
6026
6026
|
[e]: c
|
|
6027
6027
|
}
|
|
6028
6028
|
}),
|
|
6029
6029
|
[
|
|
6030
|
-
|
|
6030
|
+
i,
|
|
6031
6031
|
c
|
|
6032
6032
|
]
|
|
6033
6033
|
);
|
|
@@ -6049,19 +6049,19 @@ function c0(...e) {
|
|
|
6049
6049
|
})
|
|
6050
6050
|
);
|
|
6051
6051
|
return function(a) {
|
|
6052
|
-
const
|
|
6052
|
+
const s = o.reduce((i, { useScope: c, scopeName: l }) => {
|
|
6053
6053
|
const d = c(a)[`__scope${l}`];
|
|
6054
6054
|
return {
|
|
6055
|
-
...
|
|
6055
|
+
...i,
|
|
6056
6056
|
...d
|
|
6057
6057
|
};
|
|
6058
6058
|
}, {});
|
|
6059
6059
|
return vt(
|
|
6060
6060
|
() => ({
|
|
6061
|
-
[`__scope${t.scopeName}`]:
|
|
6061
|
+
[`__scope${t.scopeName}`]: s
|
|
6062
6062
|
}),
|
|
6063
6063
|
[
|
|
6064
|
-
|
|
6064
|
+
s
|
|
6065
6065
|
]
|
|
6066
6066
|
);
|
|
6067
6067
|
};
|
|
@@ -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, ...
|
|
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), [g, w] = W(null), [p, m] = 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);
|
|
@@ -6109,24 +6109,24 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6109
6109
|
type: o,
|
|
6110
6110
|
dir: N,
|
|
6111
6111
|
scrollHideDelay: a,
|
|
6112
|
-
scrollArea:
|
|
6112
|
+
scrollArea: i,
|
|
6113
6113
|
viewport: l,
|
|
6114
6114
|
onViewportChange: u,
|
|
6115
6115
|
content: d,
|
|
6116
6116
|
onContentChange: _,
|
|
6117
|
-
scrollbarX:
|
|
6117
|
+
scrollbarX: g,
|
|
6118
6118
|
onScrollbarXChange: w,
|
|
6119
6119
|
scrollbarXEnabled: x,
|
|
6120
6120
|
onScrollbarXEnabledChange: E,
|
|
6121
6121
|
scrollbarY: p,
|
|
6122
|
-
onScrollbarYChange:
|
|
6122
|
+
onScrollbarYChange: m,
|
|
6123
6123
|
scrollbarYEnabled: S,
|
|
6124
6124
|
onScrollbarYEnabledChange: L,
|
|
6125
6125
|
onCornerWidthChange: C,
|
|
6126
6126
|
onCornerHeightChange: y
|
|
6127
6127
|
}, /* @__PURE__ */ V(xt.div, q({
|
|
6128
6128
|
dir: N
|
|
6129
|
-
},
|
|
6129
|
+
}, s, {
|
|
6130
6130
|
ref: $,
|
|
6131
6131
|
style: {
|
|
6132
6132
|
position: "relative",
|
|
@@ -6136,8 +6136,8 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6136
6136
|
...e.style
|
|
6137
6137
|
}
|
|
6138
6138
|
})));
|
|
6139
|
-
}), h0 = "ScrollAreaViewport",
|
|
6140
|
-
const { __scopeScrollArea: n, children: o, ...r } = e, a = he(h0, n),
|
|
6139
|
+
}), h0 = "ScrollAreaViewport", g0 = /* @__PURE__ */ P((e, t) => {
|
|
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: {
|
|
6143
6143
|
__html: "[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"
|
|
@@ -6145,7 +6145,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6145
6145
|
}), /* @__PURE__ */ V(xt.div, q({
|
|
6146
6146
|
"data-radix-scroll-area-viewport": ""
|
|
6147
6147
|
}, r, {
|
|
6148
|
-
ref:
|
|
6148
|
+
ref: i,
|
|
6149
6149
|
style: {
|
|
6150
6150
|
/**
|
|
6151
6151
|
* We don't support `visible` because the intention is to have at least one scrollbar
|
|
@@ -6169,14 +6169,14 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6169
6169
|
display: "table"
|
|
6170
6170
|
}
|
|
6171
6171
|
}, o)));
|
|
6172
|
-
}), $e = "ScrollAreaScrollbar",
|
|
6173
|
-
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange:
|
|
6174
|
-
return ae(() => (
|
|
6175
|
-
|
|
6172
|
+
}), $e = "ScrollAreaScrollbar", m0 = /* @__PURE__ */ P((e, t) => {
|
|
6173
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), { onScrollbarXEnabledChange: a, onScrollbarYEnabledChange: s } = r, i = e.orientation === "horizontal";
|
|
6174
|
+
return ae(() => (i ? a(!0) : s(!0), () => {
|
|
6175
|
+
i ? a(!1) : s(!1);
|
|
6176
6176
|
}), [
|
|
6177
|
-
|
|
6177
|
+
i,
|
|
6178
6178
|
a,
|
|
6179
|
-
|
|
6179
|
+
s
|
|
6180
6180
|
]), r.type === "hover" ? /* @__PURE__ */ V(w0, q({}, o, {
|
|
6181
6181
|
ref: t,
|
|
6182
6182
|
forceMount: n
|
|
@@ -6190,21 +6190,21 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6190
6190
|
ref: t
|
|
6191
6191
|
})) : null;
|
|
6192
6192
|
}), w0 = /* @__PURE__ */ P((e, t) => {
|
|
6193
|
-
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), [a,
|
|
6193
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), [a, s] = W(!1);
|
|
6194
6194
|
return ae(() => {
|
|
6195
|
-
const
|
|
6195
|
+
const i = r.scrollArea;
|
|
6196
6196
|
let c = 0;
|
|
6197
|
-
if (
|
|
6197
|
+
if (i) {
|
|
6198
6198
|
const l = () => {
|
|
6199
|
-
window.clearTimeout(c),
|
|
6199
|
+
window.clearTimeout(c), s(!0);
|
|
6200
6200
|
}, u = () => {
|
|
6201
6201
|
c = window.setTimeout(
|
|
6202
|
-
() =>
|
|
6202
|
+
() => s(!1),
|
|
6203
6203
|
r.scrollHideDelay
|
|
6204
6204
|
);
|
|
6205
6205
|
};
|
|
6206
|
-
return
|
|
6207
|
-
window.clearTimeout(c),
|
|
6206
|
+
return i.addEventListener("pointerenter", l), i.addEventListener("pointerleave", u), () => {
|
|
6207
|
+
window.clearTimeout(c), i.removeEventListener("pointerenter", l), i.removeEventListener("pointerleave", u);
|
|
6208
6208
|
};
|
|
6209
6209
|
}
|
|
6210
6210
|
}, [
|
|
@@ -6218,10 +6218,10 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6218
6218
|
ref: t
|
|
6219
6219
|
})));
|
|
6220
6220
|
}), v0 = /* @__PURE__ */ P((e, t) => {
|
|
6221
|
-
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), a = e.orientation === "horizontal",
|
|
6221
|
+
const { forceMount: n, ...o } = e, r = he($e, e.__scopeScrollArea), a = e.orientation === "horizontal", s = nn(
|
|
6222
6222
|
() => c("SCROLL_END"),
|
|
6223
6223
|
100
|
|
6224
|
-
), [
|
|
6224
|
+
), [i, c] = f0("hidden", {
|
|
6225
6225
|
hidden: {
|
|
6226
6226
|
SCROLL: "scrolling"
|
|
6227
6227
|
},
|
|
@@ -6240,7 +6240,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6240
6240
|
}
|
|
6241
6241
|
});
|
|
6242
6242
|
return ae(() => {
|
|
6243
|
-
if (
|
|
6243
|
+
if (i === "idle") {
|
|
6244
6244
|
const l = window.setTimeout(
|
|
6245
6245
|
() => c("HIDE"),
|
|
6246
6246
|
r.scrollHideDelay
|
|
@@ -6248,7 +6248,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6248
6248
|
return () => window.clearTimeout(l);
|
|
6249
6249
|
}
|
|
6250
6250
|
}, [
|
|
6251
|
-
|
|
6251
|
+
i,
|
|
6252
6252
|
r.scrollHideDelay,
|
|
6253
6253
|
c
|
|
6254
6254
|
]), ae(() => {
|
|
@@ -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 g = l[u];
|
|
6260
|
+
d !== g && (c("SCROLL"), s()), d = g;
|
|
6261
6261
|
};
|
|
6262
6262
|
return l.addEventListener("scroll", _), () => l.removeEventListener("scroll", _);
|
|
6263
6263
|
}
|
|
@@ -6265,11 +6265,11 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6265
6265
|
r.viewport,
|
|
6266
6266
|
a,
|
|
6267
6267
|
c,
|
|
6268
|
-
|
|
6268
|
+
s
|
|
6269
6269
|
]), /* @__PURE__ */ V(St, {
|
|
6270
|
-
present: n ||
|
|
6270
|
+
present: n || i !== "hidden"
|
|
6271
6271
|
}, /* @__PURE__ */ V(eo, q({
|
|
6272
|
-
"data-state":
|
|
6272
|
+
"data-state": i === "hidden" ? "hidden" : "visible"
|
|
6273
6273
|
}, o, {
|
|
6274
6274
|
ref: t,
|
|
6275
6275
|
onPointerEnter: Fe(
|
|
@@ -6282,10 +6282,10 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6282
6282
|
)
|
|
6283
6283
|
})));
|
|
6284
6284
|
}), da = /* @__PURE__ */ P((e, t) => {
|
|
6285
|
-
const n = he($e, e.__scopeScrollArea), { forceMount: o, ...r } = e, [a,
|
|
6285
|
+
const n = he($e, e.__scopeScrollArea), { forceMount: o, ...r } = e, [a, s] = W(!1), i = e.orientation === "horizontal", c = nn(() => {
|
|
6286
6286
|
if (n.viewport) {
|
|
6287
6287
|
const l = n.viewport.offsetWidth < n.viewport.scrollWidth, u = n.viewport.offsetHeight < n.viewport.scrollHeight;
|
|
6288
|
-
i
|
|
6288
|
+
s(i ? l : u);
|
|
6289
6289
|
}
|
|
6290
6290
|
}, 10);
|
|
6291
6291
|
return ct(n.viewport, c), ct(n.content, c), /* @__PURE__ */ V(St, {
|
|
@@ -6296,7 +6296,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6296
6296
|
ref: t
|
|
6297
6297
|
})));
|
|
6298
6298
|
}), eo = /* @__PURE__ */ P((e, t) => {
|
|
6299
|
-
const { orientation: n = "vertical", ...o } = e, r = he($e, e.__scopeScrollArea), a = ce(null),
|
|
6299
|
+
const { orientation: n = "vertical", ...o } = e, r = he($e, e.__scopeScrollArea), a = ce(null), s = ce(0), [i, c] = W({
|
|
6300
6300
|
content: 0,
|
|
6301
6301
|
viewport: 0,
|
|
6302
6302
|
scrollbar: {
|
|
@@ -6304,24 +6304,24 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6304
6304
|
paddingStart: 0,
|
|
6305
6305
|
paddingEnd: 0
|
|
6306
6306
|
}
|
|
6307
|
-
}), l = ha(
|
|
6307
|
+
}), l = ha(i.viewport, i.content), u = {
|
|
6308
6308
|
...o,
|
|
6309
|
-
sizes:
|
|
6309
|
+
sizes: i,
|
|
6310
6310
|
onSizesChange: c,
|
|
6311
6311
|
hasThumb: l > 0 && l < 1,
|
|
6312
6312
|
onThumbChange: (_) => a.current = _,
|
|
6313
|
-
onThumbPointerUp: () =>
|
|
6314
|
-
onThumbPointerDown: (_) =>
|
|
6313
|
+
onThumbPointerUp: () => s.current = 0,
|
|
6314
|
+
onThumbPointerDown: (_) => s.current = _
|
|
6315
6315
|
};
|
|
6316
|
-
function d(_,
|
|
6317
|
-
return L0(_,
|
|
6316
|
+
function d(_, g) {
|
|
6317
|
+
return L0(_, s.current, i, g);
|
|
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, g = Ao(_, i, r.dir);
|
|
6324
|
+
a.current.style.transform = `translate3d(${g}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, g = Ao(_, i);
|
|
6338
|
+
a.current.style.transform = `translate3d(0, ${g}px, 0)`;
|
|
6339
6339
|
}
|
|
6340
6340
|
},
|
|
6341
6341
|
onWheelScroll: (_) => {
|
|
@@ -6346,9 +6346,9 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6346
6346
|
}
|
|
6347
6347
|
})) : null;
|
|
6348
6348
|
}), C0 = /* @__PURE__ */ P((e, t) => {
|
|
6349
|
-
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [
|
|
6349
|
+
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [s, i] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarXChange);
|
|
6350
6350
|
return ae(() => {
|
|
6351
|
-
c.current &&
|
|
6351
|
+
c.current && i(getComputedStyle(c.current));
|
|
6352
6352
|
}, [
|
|
6353
6353
|
c
|
|
6354
6354
|
]), /* @__PURE__ */ V(_a, q({
|
|
@@ -6368,25 +6368,25 @@ 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(_), ma(_, d) && u.preventDefault();
|
|
6372
6372
|
}
|
|
6373
6373
|
},
|
|
6374
6374
|
onResize: () => {
|
|
6375
|
-
c.current && a.viewport &&
|
|
6375
|
+
c.current && a.viewport && s && o({
|
|
6376
6376
|
content: a.viewport.scrollWidth,
|
|
6377
6377
|
viewport: a.viewport.offsetWidth,
|
|
6378
6378
|
scrollbar: {
|
|
6379
6379
|
size: c.current.clientWidth,
|
|
6380
|
-
paddingStart: Ft(
|
|
6381
|
-
paddingEnd: Ft(
|
|
6380
|
+
paddingStart: Ft(s.paddingLeft),
|
|
6381
|
+
paddingEnd: Ft(s.paddingRight)
|
|
6382
6382
|
}
|
|
6383
6383
|
});
|
|
6384
6384
|
}
|
|
6385
6385
|
}));
|
|
6386
6386
|
}), b0 = /* @__PURE__ */ P((e, t) => {
|
|
6387
|
-
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [
|
|
6387
|
+
const { sizes: n, onSizesChange: o, ...r } = e, a = he($e, e.__scopeScrollArea), [s, i] = W(), c = ce(null), l = Ge(t, c, a.onScrollbarYChange);
|
|
6388
6388
|
return ae(() => {
|
|
6389
|
-
c.current &&
|
|
6389
|
+
c.current && i(getComputedStyle(c.current));
|
|
6390
6390
|
}, [
|
|
6391
6391
|
c
|
|
6392
6392
|
]), /* @__PURE__ */ V(_a, q({
|
|
@@ -6407,26 +6407,26 @@ 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(_), ma(_, d) && u.preventDefault();
|
|
6411
6411
|
}
|
|
6412
6412
|
},
|
|
6413
6413
|
onResize: () => {
|
|
6414
|
-
c.current && a.viewport &&
|
|
6414
|
+
c.current && a.viewport && s && o({
|
|
6415
6415
|
content: a.viewport.scrollHeight,
|
|
6416
6416
|
viewport: a.viewport.offsetHeight,
|
|
6417
6417
|
scrollbar: {
|
|
6418
6418
|
size: c.current.clientHeight,
|
|
6419
|
-
paddingStart: Ft(
|
|
6420
|
-
paddingEnd: Ft(
|
|
6419
|
+
paddingStart: Ft(s.paddingTop),
|
|
6420
|
+
paddingEnd: Ft(s.paddingBottom)
|
|
6421
6421
|
}
|
|
6422
6422
|
});
|
|
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:
|
|
6426
|
+
const { __scopeScrollArea: n, sizes: o, hasThumb: r, onThumbChange: a, onThumbPointerUp: s, onThumbPointerDown: i, onThumbPositionChange: c, onDragScroll: l, onWheelScroll: u, onResize: d, ..._ } = e, g = he($e, n), [w, p] = W(null), m = Ge(
|
|
6427
6427
|
t,
|
|
6428
6428
|
($) => p($)
|
|
6429
|
-
), v = ce(null), C = ce(""), b =
|
|
6429
|
+
), v = ce(null), C = ce(""), b = g.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,27 +6454,27 @@ 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(g.content, S), /* @__PURE__ */ V(y0, {
|
|
6458
6458
|
scope: n,
|
|
6459
6459
|
scrollbar: w,
|
|
6460
6460
|
hasThumb: r,
|
|
6461
6461
|
onThumbChange: We(a),
|
|
6462
|
-
onThumbPointerUp: We(
|
|
6462
|
+
onThumbPointerUp: We(s),
|
|
6463
6463
|
onThumbPositionChange: E,
|
|
6464
|
-
onThumbPointerDown: We(
|
|
6464
|
+
onThumbPointerDown: We(i)
|
|
6465
6465
|
}, /* @__PURE__ */ V(xt.div, q({}, _, {
|
|
6466
|
-
ref:
|
|
6466
|
+
ref: m,
|
|
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", g.viewport && (g.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, g.viewport && (g.viewport.style.scrollBehavior = ""), v.current = null;
|
|
6478
6478
|
})
|
|
6479
6479
|
})));
|
|
6480
6480
|
}), zn = "ScrollAreaThumb", wn = /* @__PURE__ */ P((e, t) => {
|
|
@@ -6485,9 +6485,9 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6485
6485
|
ref: t
|
|
6486
6486
|
}, o)));
|
|
6487
6487
|
}), x0 = /* @__PURE__ */ P((e, t) => {
|
|
6488
|
-
const { __scopeScrollArea: n, style: o, ...r } = e, a = he(zn, n),
|
|
6488
|
+
const { __scopeScrollArea: n, style: o, ...r } = e, a = he(zn, n), s = fa(zn, n), { onThumbPositionChange: i } = s, c = Ge(
|
|
6489
6489
|
t,
|
|
6490
|
-
(d) =>
|
|
6490
|
+
(d) => s.onThumbChange(d)
|
|
6491
6491
|
), l = ce(), u = nn(() => {
|
|
6492
6492
|
l.current && (l.current(), l.current = void 0);
|
|
6493
6493
|
}, 100);
|
|
@@ -6496,18 +6496,18 @@ 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 g = P0(d, i);
|
|
6500
|
+
l.current = g, i();
|
|
6501
6501
|
}
|
|
6502
6502
|
};
|
|
6503
|
-
return
|
|
6503
|
+
return i(), d.addEventListener("scroll", _), () => d.removeEventListener("scroll", _);
|
|
6504
6504
|
}
|
|
6505
6505
|
}, [
|
|
6506
6506
|
a.viewport,
|
|
6507
6507
|
u,
|
|
6508
|
-
|
|
6508
|
+
i
|
|
6509
6509
|
]), /* @__PURE__ */ V(xt.div, q({
|
|
6510
|
-
"data-state":
|
|
6510
|
+
"data-state": s.hasThumb ? "visible" : "hidden"
|
|
6511
6511
|
}, r, {
|
|
6512
6512
|
ref: c,
|
|
6513
6513
|
style: {
|
|
@@ -6516,13 +6516,13 @@ 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
|
|
6520
|
-
|
|
6519
|
+
const g = d.target.getBoundingClientRect(), w = d.clientX - g.left, p = d.clientY - g.top;
|
|
6520
|
+
s.onThumbPointerDown({
|
|
6521
6521
|
x: w,
|
|
6522
6522
|
y: p
|
|
6523
6523
|
});
|
|
6524
6524
|
}),
|
|
6525
|
-
onPointerUp: Fe(e.onPointerUp,
|
|
6525
|
+
onPointerUp: Fe(e.onPointerUp, s.onThumbPointerUp)
|
|
6526
6526
|
}));
|
|
6527
6527
|
}), pa = "ScrollAreaCorner", S0 = /* @__PURE__ */ P((e, t) => {
|
|
6528
6528
|
const n = he(pa, e.__scopeScrollArea), o = !!(n.scrollbarX && n.scrollbarY);
|
|
@@ -6530,7 +6530,7 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6530
6530
|
ref: t
|
|
6531
6531
|
})) : null;
|
|
6532
6532
|
}), E0 = /* @__PURE__ */ P((e, t) => {
|
|
6533
|
-
const { __scopeScrollArea: n, ...o } = e, r = he(pa, n), [a,
|
|
6533
|
+
const { __scopeScrollArea: n, ...o } = e, r = he(pa, n), [a, s] = W(0), [i, c] = W(0), l = !!(a && i);
|
|
6534
6534
|
return ct(r.scrollbarX, () => {
|
|
6535
6535
|
var u;
|
|
6536
6536
|
const d = ((u = r.scrollbarX) === null || u === void 0 ? void 0 : u.offsetHeight) || 0;
|
|
@@ -6538,12 +6538,12 @@ const la = "ScrollArea", [ua] = i0(la), [_0, he] = ua(la), p0 = /* @__PURE__ */
|
|
|
6538
6538
|
}), ct(r.scrollbarY, () => {
|
|
6539
6539
|
var u;
|
|
6540
6540
|
const d = ((u = r.scrollbarY) === null || u === void 0 ? void 0 : u.offsetWidth) || 0;
|
|
6541
|
-
r.onCornerWidthChange(d),
|
|
6541
|
+
r.onCornerWidthChange(d), s(d);
|
|
6542
6542
|
}), l ? /* @__PURE__ */ V(xt.div, q({}, o, {
|
|
6543
6543
|
ref: t,
|
|
6544
6544
|
style: {
|
|
6545
6545
|
width: a,
|
|
6546
|
-
height:
|
|
6546
|
+
height: i,
|
|
6547
6547
|
position: "absolute",
|
|
6548
6548
|
right: r.dir === "ltr" ? 0 : void 0,
|
|
6549
6549
|
left: r.dir === "rtl" ? 0 : void 0,
|
|
@@ -6564,42 +6564,42 @@ function tn(e) {
|
|
|
6564
6564
|
return Math.max(o, 18);
|
|
6565
6565
|
}
|
|
6566
6566
|
function L0(e, t, n, o = "ltr") {
|
|
6567
|
-
const r = tn(n), a = r / 2,
|
|
6567
|
+
const r = tn(n), a = r / 2, s = t || a, i = r - s, c = n.scrollbar.paddingStart + s, l = n.scrollbar.size - n.scrollbar.paddingEnd - i, u = n.content - n.viewport, d = o === "ltr" ? [
|
|
6568
6568
|
0,
|
|
6569
6569
|
u
|
|
6570
6570
|
] : [
|
|
6571
6571
|
u * -1,
|
|
6572
6572
|
0
|
|
6573
6573
|
];
|
|
6574
|
-
return
|
|
6574
|
+
return ga([
|
|
6575
6575
|
c,
|
|
6576
6576
|
l
|
|
6577
6577
|
], d)(e);
|
|
6578
6578
|
}
|
|
6579
6579
|
function Ao(e, t, n = "ltr") {
|
|
6580
|
-
const o = tn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - r,
|
|
6580
|
+
const o = tn(t), r = t.scrollbar.paddingStart + t.scrollbar.paddingEnd, a = t.scrollbar.size - r, s = t.content - t.viewport, i = a - o, c = n === "ltr" ? [
|
|
6581
6581
|
0,
|
|
6582
|
-
|
|
6582
|
+
s
|
|
6583
6583
|
] : [
|
|
6584
|
-
|
|
6584
|
+
s * -1,
|
|
6585
6585
|
0
|
|
6586
6586
|
], l = d0(e, c);
|
|
6587
|
-
return
|
|
6587
|
+
return ga([
|
|
6588
6588
|
0,
|
|
6589
|
-
|
|
6589
|
+
s
|
|
6590
6590
|
], [
|
|
6591
6591
|
0,
|
|
6592
|
-
|
|
6592
|
+
i
|
|
6593
6593
|
])(l);
|
|
6594
6594
|
}
|
|
6595
|
-
function
|
|
6595
|
+
function ga(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 ma(e, t) {
|
|
6603
6603
|
return e > 0 && e < t;
|
|
6604
6604
|
}
|
|
6605
6605
|
const P0 = (e, t = () => {
|
|
@@ -6612,8 +6612,8 @@ const P0 = (e, t = () => {
|
|
|
6612
6612
|
const a = {
|
|
6613
6613
|
left: e.scrollLeft,
|
|
6614
6614
|
top: e.scrollTop
|
|
6615
|
-
},
|
|
6616
|
-
(
|
|
6615
|
+
}, s = n.left !== a.left, i = n.top !== a.top;
|
|
6616
|
+
(s || i) && t(), n = a, o = window.requestAnimationFrame(r);
|
|
6617
6617
|
})(), () => window.cancelAnimationFrame(o);
|
|
6618
6618
|
};
|
|
6619
6619
|
function nn(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 = g0, 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",
|
|
@@ -6698,18 +6698,18 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6698
6698
|
className: o,
|
|
6699
6699
|
maxHeight: r = "100%",
|
|
6700
6700
|
maxWidth: a = "100%",
|
|
6701
|
-
size:
|
|
6702
|
-
theme:
|
|
6701
|
+
size: s = "default",
|
|
6702
|
+
theme: i = "light",
|
|
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, g = {
|
|
6707
6707
|
maxHeight: d,
|
|
6708
6708
|
maxWidth: _
|
|
6709
6709
|
}, w = I(
|
|
6710
6710
|
ee.root,
|
|
6711
|
-
ee[i],
|
|
6712
6711
|
ee[s],
|
|
6712
|
+
ee[i],
|
|
6713
6713
|
{
|
|
6714
6714
|
[ee.hideScrollbar]: c
|
|
6715
6715
|
},
|
|
@@ -6727,13 +6727,13 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6727
6727
|
R0,
|
|
6728
6728
|
{
|
|
6729
6729
|
className: ee.viewport,
|
|
6730
|
-
style:
|
|
6730
|
+
style: g,
|
|
6731
6731
|
children: n
|
|
6732
6732
|
}
|
|
6733
6733
|
),
|
|
6734
6734
|
!c && /* @__PURE__ */ A(Ee, { children: [
|
|
6735
|
-
/* @__PURE__ */ f(Ut, { orientation: "vertical", size:
|
|
6736
|
-
/* @__PURE__ */ f(Ut, { orientation: "horizontal", size:
|
|
6735
|
+
/* @__PURE__ */ f(Ut, { orientation: "vertical", size: s, theme: i }),
|
|
6736
|
+
/* @__PURE__ */ f(Ut, { orientation: "horizontal", size: s, theme: i }),
|
|
6737
6737
|
/* @__PURE__ */ f(N0, { className: ee.corner })
|
|
6738
6738
|
] })
|
|
6739
6739
|
]
|
|
@@ -6743,24 +6743,24 @@ const $0 = p0, R0 = m0, N0 = S0, k0 = "_focus_3cfz1_550", A0 = "_swap_3cfz1_632"
|
|
|
6743
6743
|
);
|
|
6744
6744
|
wa.displayName = "ScrollArea";
|
|
6745
6745
|
const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default", theme: o = "light", ...r }, a) => {
|
|
6746
|
-
const [
|
|
6746
|
+
const [s, i] = W({ height: "20px", width: "20px" });
|
|
6747
6747
|
ae(() => {
|
|
6748
6748
|
(() => {
|
|
6749
6749
|
if (t === "vertical") {
|
|
6750
6750
|
const _ = Math.max(20, 30);
|
|
6751
|
-
|
|
6751
|
+
i({ height: `${_}%`, width: "20px" });
|
|
6752
6752
|
} else {
|
|
6753
6753
|
const _ = Math.max(20, 30);
|
|
6754
|
-
|
|
6754
|
+
i({ height: "20px", width: `${_}%` });
|
|
6755
6755
|
}
|
|
6756
6756
|
})();
|
|
6757
6757
|
}, [t]);
|
|
6758
6758
|
const c = {
|
|
6759
|
-
"--scrollbar-thumb-height":
|
|
6760
|
-
"--scrollbar-thumb-width":
|
|
6759
|
+
"--scrollbar-thumb-height": s.height,
|
|
6760
|
+
"--scrollbar-thumb-width": s.width
|
|
6761
6761
|
};
|
|
6762
6762
|
return /* @__PURE__ */ A(
|
|
6763
|
-
|
|
6763
|
+
m0,
|
|
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(gt, { 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
|
+
gt,
|
|
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
|
+
gt,
|
|
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
|
+
gt,
|
|
6817
6817
|
{
|
|
6818
6818
|
width: 7,
|
|
6819
6819
|
height: 4,
|
|
@@ -6829,27 +6829,27 @@ const Ut = P(({ className: e, orientation: t = "vertical", size: n = "default",
|
|
|
6829
6829
|
);
|
|
6830
6830
|
});
|
|
6831
6831
|
Ut.displayName = "ScrollBar";
|
|
6832
|
-
const
|
|
6832
|
+
const ef = P((e, t) => {
|
|
6833
6833
|
const {
|
|
6834
6834
|
className: n,
|
|
6835
6835
|
disabled: o = !1,
|
|
6836
6836
|
isOpen: r = !1,
|
|
6837
6837
|
label: a,
|
|
6838
|
-
maxHeight:
|
|
6839
|
-
name:
|
|
6838
|
+
maxHeight: s = 158,
|
|
6839
|
+
name: i,
|
|
6840
6840
|
onValueChange: c,
|
|
6841
6841
|
options: l,
|
|
6842
6842
|
placeholder: u,
|
|
6843
6843
|
prefix: d,
|
|
6844
6844
|
suffix: _,
|
|
6845
|
-
setIsOpen:
|
|
6845
|
+
setIsOpen: g,
|
|
6846
6846
|
value: w = "",
|
|
6847
6847
|
variant: p = "default",
|
|
6848
|
-
width:
|
|
6848
|
+
width: m = "100%",
|
|
6849
6849
|
size: v = "48"
|
|
6850
6850
|
// 👈 значение по умолчанию
|
|
6851
6851
|
} = e, [C, b] = W(r), y = p === "pagination", x = () => {
|
|
6852
|
-
o || (
|
|
6852
|
+
o || (g ? g(!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,13 +6865,13 @@ const e2 = 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: m }, children: [
|
|
6869
6869
|
d && /* @__PURE__ */ f("div", { className: E.prefix, children: d }),
|
|
6870
6870
|
/* @__PURE__ */ A(
|
|
6871
6871
|
Ld,
|
|
6872
6872
|
{
|
|
6873
6873
|
disabled: o,
|
|
6874
|
-
name:
|
|
6874
|
+
name: i,
|
|
6875
6875
|
open: C,
|
|
6876
6876
|
onOpenChange: x,
|
|
6877
6877
|
onValueChange: c,
|
|
@@ -6899,7 +6899,7 @@ const e2 = P((e, t) => {
|
|
|
6899
6899
|
className: E.content,
|
|
6900
6900
|
position: "popper",
|
|
6901
6901
|
sideOffset: -1,
|
|
6902
|
-
children: /* @__PURE__ */ f(Ad, { asChild: !0, children: /* @__PURE__ */ A(wa, { maxHeight:
|
|
6902
|
+
children: /* @__PURE__ */ f(Ad, { asChild: !0, children: /* @__PURE__ */ A(wa, { maxHeight: s, size: "micro", theme: "colorVariants", children: [
|
|
6903
6903
|
l.map((S) => /* @__PURE__ */ f(
|
|
6904
6904
|
Td,
|
|
6905
6905
|
{
|
|
@@ -6924,9 +6924,9 @@ const e2 = P((e, t) => {
|
|
|
6924
6924
|
] })
|
|
6925
6925
|
] });
|
|
6926
6926
|
});
|
|
6927
|
-
|
|
6928
|
-
const
|
|
6929
|
-
focus:
|
|
6927
|
+
ef.displayName = "Select";
|
|
6928
|
+
const tf = "_focus_1jn0k_550", nf = "_swap_1jn0k_632", of = "_swap__content_1jn0k_688", rf = "_root_1jn0k_780", af = "_wrapper_1jn0k_787", sf = "_outline_1jn0k_794", cf = "_fill_1jn0k_804", lf = "_error_1jn0k_813", uf = "_disabled_1jn0k_823", df = "_textarea_1jn0k_828", ff = "_label_1jn0k_851", _f = "_required_1jn0k_866", pf = "_filled_1jn0k_875", hf = "_clearButton_1jn0k_894", gf = "_errorText_1jn0k_919", mf = "_innerHint_1jn0k_925", pe = {
|
|
6929
|
+
focus: tf,
|
|
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 t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_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: nf,
|
|
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 t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_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: of,
|
|
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: rf,
|
|
6954
|
+
wrapper: af,
|
|
6955
|
+
outline: sf,
|
|
6956
|
+
fill: cf,
|
|
6957
|
+
error: lf,
|
|
6958
|
+
disabled: uf,
|
|
6959
|
+
textarea: df,
|
|
6960
|
+
label: ff,
|
|
6961
|
+
required: _f,
|
|
6962
|
+
filled: pf,
|
|
6963
|
+
clearButton: hf,
|
|
6964
|
+
errorText: gf,
|
|
6965
|
+
innerHint: mf
|
|
6966
|
+
}, wf = P(
|
|
6967
6967
|
({
|
|
6968
6968
|
className: e,
|
|
6969
6969
|
disabled: t,
|
|
@@ -6971,20 +6971,20 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
|
|
|
6971
6971
|
hint: o,
|
|
6972
6972
|
isRequired: r,
|
|
6973
6973
|
label: a,
|
|
6974
|
-
id:
|
|
6975
|
-
maxLength:
|
|
6974
|
+
id: s,
|
|
6975
|
+
maxLength: i,
|
|
6976
6976
|
onChange: c,
|
|
6977
6977
|
rows: l = 4,
|
|
6978
6978
|
clearable: u = !1,
|
|
6979
6979
|
type: d = "outline",
|
|
6980
6980
|
value: _,
|
|
6981
|
-
defaultValue:
|
|
6981
|
+
defaultValue: g,
|
|
6982
6982
|
...w
|
|
6983
6983
|
}, p) => {
|
|
6984
|
-
const
|
|
6985
|
-
|
|
6984
|
+
const m = _ !== void 0, [v, C] = W(g?.toString() ?? ""), b = m ? _ : v, x = (b?.toString() ?? "").length > 0, E = (L) => {
|
|
6985
|
+
m || C(L.target.value), c?.(L);
|
|
6986
6986
|
}, S = () => {
|
|
6987
|
-
t || (
|
|
6987
|
+
t || (m || C(""), c?.({
|
|
6988
6988
|
target: { value: "" },
|
|
6989
6989
|
currentTarget: { value: "" }
|
|
6990
6990
|
}));
|
|
@@ -7002,10 +7002,10 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
|
|
|
7002
7002
|
/* @__PURE__ */ f(
|
|
7003
7003
|
"textarea",
|
|
7004
7004
|
{
|
|
7005
|
-
id:
|
|
7005
|
+
id: s,
|
|
7006
7006
|
ref: p,
|
|
7007
7007
|
disabled: t,
|
|
7008
|
-
maxLength:
|
|
7008
|
+
maxLength: i,
|
|
7009
7009
|
rows: l,
|
|
7010
7010
|
className: pe.textarea,
|
|
7011
7011
|
value: b,
|
|
@@ -7013,7 +7013,7 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
|
|
|
7013
7013
|
...w
|
|
7014
7014
|
}
|
|
7015
7015
|
),
|
|
7016
|
-
a && /* @__PURE__ */ A("label", { htmlFor:
|
|
7016
|
+
a && /* @__PURE__ */ A("label", { htmlFor: s, className: pe.label, children: [
|
|
7017
7017
|
a,
|
|
7018
7018
|
r && /* @__PURE__ */ f(Vn, { className: pe.required })
|
|
7019
7019
|
] }),
|
|
@@ -7035,31 +7035,31 @@ const t2 = "_focus_1jn0k_550", n2 = "_swap_1jn0k_632", o2 = "_swap__content_1jn0
|
|
|
7035
7035
|
] });
|
|
7036
7036
|
}
|
|
7037
7037
|
);
|
|
7038
|
-
|
|
7038
|
+
wf.displayName = "TextArea";
|
|
7039
7039
|
export {
|
|
7040
|
-
|
|
7040
|
+
yf 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
|
+
gt as ArrowIcon,
|
|
7047
7047
|
Sa as ArrowRefreshIcon,
|
|
7048
|
-
|
|
7048
|
+
xf as AuthCard,
|
|
7049
7049
|
ci as Avatar,
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7050
|
+
Sf as AvatarGroup,
|
|
7051
|
+
Ef as AvatarWithCssBorder,
|
|
7052
|
+
Lf as Badge,
|
|
7053
7053
|
Cn as Button,
|
|
7054
7054
|
Do as CheckIcon,
|
|
7055
7055
|
jo as Checkbox,
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7056
|
+
Rf as Chip,
|
|
7057
|
+
Nf as ControlledCheckbox,
|
|
7058
|
+
kf as ControlledInput,
|
|
7059
|
+
Af as ControlledInputGroupStack,
|
|
7060
|
+
$f as Counter,
|
|
7061
7061
|
qs as Divider,
|
|
7062
|
-
|
|
7062
|
+
Pf 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
|
+
Tf 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
|
+
zf as SegmentControl,
|
|
7083
|
+
ef as Select,
|
|
7084
7084
|
hs as Spinner,
|
|
7085
7085
|
Ho as SwapIcon,
|
|
7086
7086
|
Ia as TelegramIcon,
|
|
7087
|
-
|
|
7087
|
+
wf as TextArea,
|
|
7088
7088
|
Oa as TimeCalendarV2Icon,
|
|
7089
7089
|
st as Typography,
|
|
7090
7090
|
Da as VKIcon
|