@ryanodd/design-system 0.2.0 → 0.2.1
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/cjs/index.js +12 -12
- package/dist/esm/index.d.ts +16 -2
- package/dist/esm/index.js +976 -913
- package/dist/index.css +1 -1
- package/package.json +1 -1
package/dist/esm/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { jsx as d, jsxs as K, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import Fe, { forwardRef as
|
|
4
|
-
import * as
|
|
3
|
+
import Fe, { forwardRef as $, useState as ei, useId as Zn, useLayoutEffect as ti } from "react";
|
|
4
|
+
import * as gt from "react-dom";
|
|
5
5
|
import ni from "react-dom";
|
|
6
6
|
const oi = "_badge_1quq7_1", ri = {
|
|
7
7
|
badge: oi
|
|
8
|
-
},
|
|
8
|
+
}, gv = ({ variant: e = "neutral", size: t = "md", className: n, ...o }) => /* @__PURE__ */ d(
|
|
9
9
|
"div",
|
|
10
10
|
{
|
|
11
11
|
className: `${ri.badge} ${n ?? ""}`,
|
|
@@ -13,164 +13,185 @@ const oi = "_badge_1quq7_1", ri = {
|
|
|
13
13
|
"data-size": t,
|
|
14
14
|
...o
|
|
15
15
|
}
|
|
16
|
-
), si = "
|
|
16
|
+
), si = "_button_1el07_1", ai = "_buttonNotificationDot_1el07_160", To = {
|
|
17
17
|
button: si,
|
|
18
18
|
buttonNotificationDot: ai
|
|
19
19
|
}, ii = ({
|
|
20
20
|
title: e,
|
|
21
21
|
titleId: t,
|
|
22
22
|
...n
|
|
23
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m12 19l-7-7l7-7m7 7H5" })), ci =
|
|
23
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m12 19l-7-7l7-7m7 7H5" })), ci = $(ii), li = ({
|
|
24
24
|
title: e,
|
|
25
25
|
titleId: t,
|
|
26
26
|
...n
|
|
27
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 12h14m-7-7l7 7l-7 7" })), ui =
|
|
27
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 12h14m-7-7l7 7l-7 7" })), ui = $(li), di = ({
|
|
28
28
|
title: e,
|
|
29
29
|
titleId: t,
|
|
30
30
|
...n
|
|
31
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M3 20a2 2 0 0 0 2 2h10a2.4 2.4 0 0 0 1.706-.706l3.588-3.588A2.4 2.4 0 0 0 21 16V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z" }), /* @__PURE__ */ s.createElement("path", { d: "M15 22v-5a1 1 0 0 1 1-1h5M8 2v4m8-4v4M3 10h18" }))), fi =
|
|
31
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M3 20a2 2 0 0 0 2 2h10a2.4 2.4 0 0 0 1.706-.706l3.588-3.588A2.4 2.4 0 0 0 21 16V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2z" }), /* @__PURE__ */ s.createElement("path", { d: "M15 22v-5a1 1 0 0 1 1-1h5M8 2v4m8-4v4M3 10h18" }))), fi = $(di), pi = ({
|
|
32
32
|
title: e,
|
|
33
33
|
titleId: t,
|
|
34
34
|
...n
|
|
35
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z" })), mi =
|
|
35
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "m9.55 15.15l8.475-8.475q.3-.3.7-.3t.7.3t.3.713t-.3.712l-9.175 9.2q-.3.3-.7.3t-.7-.3L4.55 13q-.3-.3-.288-.712t.313-.713t.713-.3t.712.3z" })), mi = $(pi), hi = ({
|
|
36
36
|
title: e,
|
|
37
37
|
titleId: t,
|
|
38
38
|
...n
|
|
39
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 9l6 6l6-6" })), vi =
|
|
39
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m6 9l6 6l6-6" })), vi = $(hi), gi = ({
|
|
40
40
|
title: e,
|
|
41
41
|
titleId: t,
|
|
42
42
|
...n
|
|
43
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m15 18l-6-6l6-6" })), wi =
|
|
43
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m15 18l-6-6l6-6" })), wi = $(gi), yi = ({
|
|
44
44
|
title: e,
|
|
45
45
|
titleId: t,
|
|
46
46
|
...n
|
|
47
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m9 18l6-6l-6-6" })), Ci =
|
|
47
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m9 18l6-6l-6-6" })), Ci = $(yi), bi = ({
|
|
48
48
|
title: e,
|
|
49
49
|
titleId: t,
|
|
50
50
|
...n
|
|
51
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m18 15l-6-6l-6 6" })), xi =
|
|
51
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m18 15l-6-6l-6 6" })), xi = $(bi), Ei = ({
|
|
52
52
|
title: e,
|
|
53
53
|
titleId: t,
|
|
54
54
|
...n
|
|
55
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 })), Si =
|
|
55
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 10, fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 })), Si = $(Ei), Ri = ({
|
|
56
56
|
title: e,
|
|
57
57
|
titleId: t,
|
|
58
58
|
...n
|
|
59
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M18 6L6 18M6 6l12 12" })), _i =
|
|
59
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M18 6L6 18M6 6l12 12" })), _i = $(Ri), Pi = ({
|
|
60
60
|
title: e,
|
|
61
61
|
titleId: t,
|
|
62
62
|
...n
|
|
63
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 2v2m4-2v2m2 4a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1M6 2v2" })), Ti =
|
|
63
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 2v2m4-2v2m2 4a1 1 0 0 1 1 1v8a4 4 0 0 1-4 4H7a4 4 0 0 1-4-4V9a1 1 0 0 1 1-1h14a4 4 0 1 1 0 8h-1M6 2v2" })), Ti = $(Pi), Mi = ({
|
|
64
64
|
title: e,
|
|
65
65
|
titleId: t,
|
|
66
66
|
...n
|
|
67
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })), Ai =
|
|
67
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M15 3h6v6m-11 5L21 3m-3 10v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6" })), Ai = $(Mi), Ii = ({
|
|
68
68
|
title: e,
|
|
69
69
|
titleId: t,
|
|
70
70
|
...n
|
|
71
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }), /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 3 }))), Ni =
|
|
71
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M9.671 4.136a2.34 2.34 0 0 1 4.659 0a2.34 2.34 0 0 0 3.319 1.915a2.34 2.34 0 0 1 2.33 4.033a2.34 2.34 0 0 0 0 3.831a2.34 2.34 0 0 1-2.33 4.033a2.34 2.34 0 0 0-3.319 1.915a2.34 2.34 0 0 1-4.659 0a2.34 2.34 0 0 0-3.32-1.915a2.34 2.34 0 0 1-2.33-4.033a2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915" }), /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 3 }))), Ni = $(Ii), Oi = ({
|
|
72
72
|
title: e,
|
|
73
73
|
titleId: t,
|
|
74
74
|
...n
|
|
75
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "m15 12l-8.373 8.373a1 1 0 1 1-3-3L12 9m6 6l4-4" }), /* @__PURE__ */ s.createElement("path", { d: "m21.5 11.5l-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" }))), ki =
|
|
75
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "m15 12l-8.373 8.373a1 1 0 1 1-3-3L12 9m6 6l4-4" }), /* @__PURE__ */ s.createElement("path", { d: "m21.5 11.5l-1.914-1.914A2 2 0 0 1 19 8.172V7l-2.26-2.26a6 6 0 0 0-4.202-1.756L9 2.96l.92.82A6.18 6.18 0 0 1 12 8.4V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5" }))), ki = $(Oi), Di = ({
|
|
76
76
|
title: e,
|
|
77
77
|
titleId: t,
|
|
78
78
|
...n
|
|
79
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "M6.979 3.074a6 6 0 0 1 4.988 1.425l.037.033l.034-.03a6 6 0 0 1 4.733-1.44l.246.036a6 6 0 0 1 3.364 10.008l-.18.185l-.048.041l-7.45 7.379a1 1 0 0 1-1.313.082l-.094-.082l-7.493-7.422A6 6 0 0 1 6.979 3.074" })), Li =
|
|
79
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "M6.979 3.074a6 6 0 0 1 4.988 1.425l.037.033l.034-.03a6 6 0 0 1 4.733-1.44l.246.036a6 6 0 0 1 3.364 10.008l-.18.185l-.048.041l-7.45 7.379a1 1 0 0 1-1.313.082l-.094-.082l-7.493-7.422A6 6 0 0 1 6.979 3.074" })), Li = $(Di), Fi = ({
|
|
80
80
|
title: e,
|
|
81
81
|
titleId: t,
|
|
82
82
|
...n
|
|
83
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }), /* @__PURE__ */ s.createElement("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" }))), $i =
|
|
83
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M22 12h-6l-2 3h-4l-2-3H2" }), /* @__PURE__ */ s.createElement("path", { d: "M5.45 5.11L2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11" }))), $i = $(Fi), Bi = ({
|
|
84
84
|
title: e,
|
|
85
85
|
titleId: t,
|
|
86
86
|
...n
|
|
87
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 }, /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 2.5, r: 0.75 }), /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 8, r: 0.75 }), /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 13.5, r: 0.75 }))), Wi =
|
|
87
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 1.5 }, /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 2.5, r: 0.75 }), /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 8, r: 0.75 }), /* @__PURE__ */ s.createElement("circle", { cx: 8, cy: 13.5, r: 0.75 }))), Wi = $(Bi), Hi = ({
|
|
88
88
|
title: e,
|
|
89
89
|
titleId: t,
|
|
90
90
|
...n
|
|
91
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5l5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994l-2.5-2.5a1 1 0 0 1 0-1.414zm3.914 2.5l-3.414 3.414M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z" }), /* @__PURE__ */ s.createElement("path", { d: "m9.086 6.5l-4.793 4.793a1 1 0 0 0-.18 1.17L7 18" }))), Vi =
|
|
91
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("path", { d: "M10.293 2.293a1 1 0 0 1 1.414 0l2.5 2.5l5.994 1.227a1 1 0 0 1 .506 1.687l-7 7a1 1 0 0 1-1.687-.506l-1.227-5.994l-2.5-2.5a1 1 0 0 1 0-1.414zm3.914 2.5l-3.414 3.414M3 20a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v1a1 1 0 0 1-1 1H4a1 1 0 0 1-1-1z" }), /* @__PURE__ */ s.createElement("path", { d: "m9.086 6.5l-4.793 4.793a1 1 0 0 0-.18 1.17L7 18" }))), Vi = $(Hi), Ki = ({
|
|
92
92
|
title: e,
|
|
93
93
|
titleId: t,
|
|
94
94
|
...n
|
|
95
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "m213.85 125.46l-112 120a8 8 0 0 1-13.69-7l14.66-73.33l-57.63-21.64a8 8 0 0 1-3-13l112-120a8 8 0 0 1 13.69 7l-14.7 73.41l57.63 21.61a8 8 0 0 1 3 12.95Z" })), Ui =
|
|
95
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 256 256", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "m213.85 125.46l-112 120a8 8 0 0 1-13.69-7l14.66-73.33l-57.63-21.64a8 8 0 0 1-3-13l112-120a8 8 0 0 1 13.69 7l-14.7 73.41l57.63 21.61a8 8 0 0 1 3 12.95Z" })), Ui = $(Ki), Gi = ({
|
|
96
96
|
title: e,
|
|
97
97
|
titleId: t,
|
|
98
98
|
...n
|
|
99
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m10 17l5-5l-5-5m5 5H3m12-9h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" })), zi =
|
|
99
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m10 17l5-5l-5-5m5 5H3m12-9h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4" })), zi = $(Gi), ji = ({
|
|
100
100
|
title: e,
|
|
101
101
|
titleId: t,
|
|
102
102
|
...n
|
|
103
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
103
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 16 16", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", fillRule: "evenodd", clipRule: "evenodd" }, /* @__PURE__ */ s.createElement("path", { fill: "#f44336", d: "M7.209 1.061c.725-.081 1.154-.081 1.933 0a6.57 6.57 0 0 1 3.65 1.82a100 100 0 0 0-1.986 1.93q-1.876-1.59-4.188-.734q-1.696.78-2.362 2.528a78 78 0 0 1-2.148-1.658a.26.26 0 0 0-.16-.027q1.683-3.245 5.26-3.86", opacity: 0.987 }), /* @__PURE__ */ s.createElement("path", { fill: "#ffc107", d: "M1.946 4.92q.085-.013.161.027a78 78 0 0 0 2.148 1.658A7.6 7.6 0 0 0 4.04 7.99q.037.678.215 1.331L2 11.116Q.527 8.038 1.946 4.92", opacity: 0.997 }), /* @__PURE__ */ s.createElement("path", { fill: "#448aff", d: "M12.685 13.29a26 26 0 0 0-2.202-1.74q1.15-.812 1.396-2.228H8.122V6.713q3.25-.027 6.497.055q.616 3.345-1.423 6.032a7 7 0 0 1-.51.49", opacity: 0.999 }), /* @__PURE__ */ s.createElement("path", { fill: "#43a047", d: "M4.255 9.322q1.23 3.057 4.51 2.854a3.94 3.94 0 0 0 1.718-.626q1.148.812 2.202 1.74a6.62 6.62 0 0 1-4.027 1.684a6.4 6.4 0 0 1-1.02 0Q3.82 14.524 2 11.116z", opacity: 0.993 }))), Yi = $(ji), Xi = ({
|
|
104
104
|
title: e,
|
|
105
105
|
titleId: t,
|
|
106
106
|
...n
|
|
107
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("
|
|
107
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "m16 17l5-5l-5-5m5 5H9m0 9H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4" })), qi = $(Xi), Zi = ({
|
|
108
108
|
title: e,
|
|
109
109
|
titleId: t,
|
|
110
110
|
...n
|
|
111
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("
|
|
111
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("rect", { width: 20, height: 16, x: 2, y: 4, rx: 2 }), /* @__PURE__ */ s.createElement("path", { d: "m22 7l-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7" }))), Qi = $(Zi), Ji = ({
|
|
112
112
|
title: e,
|
|
113
113
|
titleId: t,
|
|
114
114
|
...n
|
|
115
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "
|
|
115
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M4 12h16M4 6h16M4 18h16" })), ec = $(Ji), tc = ({
|
|
116
116
|
title: e,
|
|
117
117
|
titleId: t,
|
|
118
118
|
...n
|
|
119
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "
|
|
119
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M7.159 3.185C7.415 3.066 7.699 3 8 3h8a2 2 0 0 1 2 2v9m0 4v1a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2V6m5-2h2M3 3l18 18m-9-4v.01" })), nc = $(tc), oc = ({
|
|
120
120
|
title: e,
|
|
121
121
|
titleId: t,
|
|
122
122
|
...n
|
|
123
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "
|
|
123
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "currentColor", d: "m12.9 6.855l4.242 4.242l-9.9 9.9H3v-4.243zm1.414-1.415l2.121-2.121a1 1 0 0 1 1.414 0l2.829 2.828a1 1 0 0 1 0 1.415l-2.122 2.121z" })), rc = $(oc), sc = ({
|
|
124
124
|
title: e,
|
|
125
125
|
titleId: t,
|
|
126
126
|
...n
|
|
127
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "
|
|
127
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M5 12h14m-7-7v14" })), ac = $(sc), ic = ({
|
|
128
128
|
title: e,
|
|
129
129
|
titleId: t,
|
|
130
130
|
...n
|
|
131
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
131
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M10 9H4L2 7l2-2h6m4 0h6l2 2l-2 2h-6m-4 13V4a2 2 0 1 1 4 0v18m-6 0h8" })), cc = $(ic), lc = ({
|
|
132
|
+
title: e,
|
|
133
|
+
titleId: t,
|
|
134
|
+
...n
|
|
135
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("g", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2 }, /* @__PURE__ */ s.createElement("circle", { cx: 12, cy: 12, r: 4 }), /* @__PURE__ */ s.createElement("path", { d: "M12 2v2m0 16v2M4.93 4.93l1.41 1.41m11.32 11.32l1.41 1.41M2 12h2m16 0h2M6.34 17.66l-1.41 1.41M19.07 4.93l-1.41 1.41" }))), uc = $(lc), dc = ({
|
|
136
|
+
title: e,
|
|
137
|
+
titleId: t,
|
|
138
|
+
...n
|
|
139
|
+
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0 24 24", ref: o, "aria-labelledby": t, ...n }, e ? /* @__PURE__ */ s.createElement("title", { id: t }, e) : null, /* @__PURE__ */ s.createElement("path", { fill: "none", stroke: "currentColor", strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 2v2m2.837 12.385a6 6 0 1 1-7.223-7.222c.624-.147.97.66.715 1.248a4 4 0 0 0 5.26 5.259c.589-.255 1.396.09 1.248.715M16 12a4 4 0 0 0-4-4m7-3l-1.256 1.256M20 12h2" })), fc = $(dc), pc = "_icon_178c1_1", mc = {
|
|
140
|
+
icon: pc
|
|
141
|
+
}, wv = [
|
|
142
|
+
"xs",
|
|
143
|
+
"sm",
|
|
144
|
+
"md",
|
|
145
|
+
"lg",
|
|
146
|
+
"xl",
|
|
147
|
+
"2xl",
|
|
148
|
+
"3xl",
|
|
149
|
+
"4xl"
|
|
150
|
+
], U = (e, t) => {
|
|
151
|
+
const n = $(
|
|
152
|
+
({ size: o = "lg", className: r, ...a }, i) => /* @__PURE__ */ d(
|
|
153
|
+
e,
|
|
154
|
+
{
|
|
155
|
+
className: `${r} ${mc.icon}`,
|
|
156
|
+
"data-size": o,
|
|
157
|
+
ref: i,
|
|
158
|
+
alt: t,
|
|
159
|
+
...a
|
|
160
|
+
}
|
|
161
|
+
)
|
|
162
|
+
);
|
|
144
163
|
return n.displayName = t, n;
|
|
145
|
-
},
|
|
146
|
-
ArrowLeft:
|
|
147
|
-
ArrowRight:
|
|
148
|
-
Calendar:
|
|
164
|
+
}, hc = U(ci, "Left"), vc = U(ui, "Right"), gc = U(fi, "Calendar"), Qn = U(mi, "Check"), wc = U(vi, "Chevron Down"), yv = U(wi, "Chevron Left"), Cv = U(Ci, "Chevron Right"), bv = U(xi, "Chevron Up"), yc = U(Si, "Circle"), rr = U(_i, "Close"), Cc = U(Ti, "Coffee"), bc = U(Ai, "External Link"), xc = U(Ni, "Gear"), Ec = U(ki, "Hammer"), Sc = U(Li, "Heart"), Rc = U($i, "Inbox"), _c = U(Vi, "Lamp"), Pc = U(Wi, "Kebab"), Tc = U(Ui, "Lightning"), Mc = U(zi, "Log In"), Ac = U(Yi, "Google"), Ic = U(qi, "Log Out"), Nc = U(Qi, "Mail"), Oc = U(ec, "Menu"), kc = U(nc, "No Mobile Devices"), Dc = U(rc, "Pencil"), Lc = U(ac, "Plus"), Fc = U(cc, "Signpost"), $c = U(uc, "Sun"), Bc = U(fc, "Sun Moon"), dt = {
|
|
165
|
+
ArrowLeft: hc,
|
|
166
|
+
ArrowRight: vc,
|
|
167
|
+
Calendar: gc,
|
|
149
168
|
Check: Qn,
|
|
150
|
-
Circle:
|
|
169
|
+
Circle: yc,
|
|
151
170
|
Close: rr,
|
|
152
|
-
Coffee:
|
|
153
|
-
ExternalLink:
|
|
154
|
-
Gear:
|
|
155
|
-
Hammer:
|
|
156
|
-
Heart:
|
|
157
|
-
Inbox:
|
|
158
|
-
Kebab:
|
|
159
|
-
Lamp:
|
|
160
|
-
Lightning:
|
|
161
|
-
LogIn:
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
171
|
+
Coffee: Cc,
|
|
172
|
+
ExternalLink: bc,
|
|
173
|
+
Gear: xc,
|
|
174
|
+
Hammer: Ec,
|
|
175
|
+
Heart: Sc,
|
|
176
|
+
Inbox: Rc,
|
|
177
|
+
Kebab: Pc,
|
|
178
|
+
Lamp: _c,
|
|
179
|
+
Lightning: Tc,
|
|
180
|
+
LogIn: Mc,
|
|
181
|
+
LogoGoogle: Ac,
|
|
182
|
+
LogOut: Ic,
|
|
183
|
+
Mail: Nc,
|
|
184
|
+
Menu: Oc,
|
|
185
|
+
NoMobile: kc,
|
|
186
|
+
Pencil: Dc,
|
|
187
|
+
Plus: Lc,
|
|
188
|
+
Signpost: Fc,
|
|
189
|
+
Sun: $c,
|
|
190
|
+
SunMoon: Bc
|
|
191
|
+
}, Wc = "_spinnerWrapper_1mfc7_1", Hc = "_spinner_1mfc7_1", Mo = {
|
|
192
|
+
spinnerWrapper: Wc,
|
|
193
|
+
spinner: Hc
|
|
194
|
+
}, sr = $(
|
|
174
195
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
175
196
|
({ className: e, size: t = "lg", ...n }, o) => /* @__PURE__ */ d(
|
|
176
197
|
"div",
|
|
@@ -184,9 +205,20 @@ const oi = "_badge_1quq7_1", ri = {
|
|
|
184
205
|
)
|
|
185
206
|
);
|
|
186
207
|
sr.displayName = "Spinner";
|
|
187
|
-
const jt =
|
|
188
|
-
({
|
|
189
|
-
|
|
208
|
+
const jt = $(
|
|
209
|
+
({
|
|
210
|
+
className: e,
|
|
211
|
+
notificationDotText: t,
|
|
212
|
+
children: n,
|
|
213
|
+
icon: o,
|
|
214
|
+
trailingIcon: r,
|
|
215
|
+
size: a = "md",
|
|
216
|
+
variant: i,
|
|
217
|
+
loading: c,
|
|
218
|
+
iconOnly: l,
|
|
219
|
+
...u
|
|
220
|
+
}, f) => {
|
|
221
|
+
const p = o ? dt[o] : void 0, h = r ? dt[r] : void 0, g = a === "sm" ? "sm" : a === "md" ? "md" : "lg";
|
|
190
222
|
return /* @__PURE__ */ K(
|
|
191
223
|
"button",
|
|
192
224
|
{
|
|
@@ -232,7 +264,7 @@ function Yt(...e) {
|
|
|
232
264
|
function V(...e) {
|
|
233
265
|
return s.useCallback(Yt(...e), e);
|
|
234
266
|
}
|
|
235
|
-
function
|
|
267
|
+
function Vc(e, t) {
|
|
236
268
|
const n = s.createContext(t), o = (a) => {
|
|
237
269
|
const { children: i, ...c } = a, l = s.useMemo(() => c, Object.values(c));
|
|
238
270
|
return /* @__PURE__ */ d(n.Provider, { value: l, children: i });
|
|
@@ -274,9 +306,9 @@ function me(e, t = []) {
|
|
|
274
306
|
);
|
|
275
307
|
};
|
|
276
308
|
};
|
|
277
|
-
return r.scopeName = e, [o,
|
|
309
|
+
return r.scopeName = e, [o, Kc(r, ...t)];
|
|
278
310
|
}
|
|
279
|
-
function
|
|
311
|
+
function Kc(...e) {
|
|
280
312
|
const t = e[0];
|
|
281
313
|
if (e.length === 1) return t;
|
|
282
314
|
const n = () => {
|
|
@@ -301,7 +333,7 @@ function R(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
301
333
|
};
|
|
302
334
|
}
|
|
303
335
|
var Z = globalThis?.document ? s.useLayoutEffect : () => {
|
|
304
|
-
},
|
|
336
|
+
}, Uc = s[" useInsertionEffect ".trim().toString()] || Z;
|
|
305
337
|
function Se({
|
|
306
338
|
prop: e,
|
|
307
339
|
defaultProp: t,
|
|
@@ -309,7 +341,7 @@ function Se({
|
|
|
309
341
|
},
|
|
310
342
|
caller: o
|
|
311
343
|
}) {
|
|
312
|
-
const [r, a, i] =
|
|
344
|
+
const [r, a, i] = Gc({
|
|
313
345
|
defaultProp: t,
|
|
314
346
|
onChange: n
|
|
315
347
|
}), c = e !== void 0, l = c ? e : r;
|
|
@@ -325,7 +357,7 @@ function Se({
|
|
|
325
357
|
const u = s.useCallback(
|
|
326
358
|
(f) => {
|
|
327
359
|
if (c) {
|
|
328
|
-
const p =
|
|
360
|
+
const p = zc(f) ? f(e) : f;
|
|
329
361
|
p !== e && i.current?.(p);
|
|
330
362
|
} else
|
|
331
363
|
a(f);
|
|
@@ -334,18 +366,18 @@ function Se({
|
|
|
334
366
|
);
|
|
335
367
|
return [l, u];
|
|
336
368
|
}
|
|
337
|
-
function
|
|
369
|
+
function Gc({
|
|
338
370
|
defaultProp: e,
|
|
339
371
|
onChange: t
|
|
340
372
|
}) {
|
|
341
373
|
const [n, o] = s.useState(e), r = s.useRef(n), a = s.useRef(t);
|
|
342
|
-
return
|
|
374
|
+
return Uc(() => {
|
|
343
375
|
a.current = t;
|
|
344
376
|
}, [t]), s.useEffect(() => {
|
|
345
377
|
r.current !== n && (a.current?.(n), r.current = n);
|
|
346
378
|
}, [n, r]), [n, o, a];
|
|
347
379
|
}
|
|
348
|
-
function
|
|
380
|
+
function zc(e) {
|
|
349
381
|
return typeof e == "function";
|
|
350
382
|
}
|
|
351
383
|
function ar(e) {
|
|
@@ -374,16 +406,16 @@ function ir(e) {
|
|
|
374
406
|
n(void 0);
|
|
375
407
|
}, [e]), t;
|
|
376
408
|
}
|
|
377
|
-
function
|
|
409
|
+
function jc(e, t) {
|
|
378
410
|
return s.useReducer((n, o) => t[n][o] ?? n, e);
|
|
379
411
|
}
|
|
380
412
|
var re = (e) => {
|
|
381
|
-
const { present: t, children: n } = e, o =
|
|
413
|
+
const { present: t, children: n } = e, o = Yc(t), r = typeof n == "function" ? n({ present: o.isPresent }) : s.Children.only(n), a = V(o.ref, Xc(r));
|
|
382
414
|
return typeof n == "function" || o.isPresent ? s.cloneElement(r, { ref: a }) : null;
|
|
383
415
|
};
|
|
384
416
|
re.displayName = "Presence";
|
|
385
|
-
function
|
|
386
|
-
const [t, n] = s.useState(), o = s.useRef(null), r = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [c, l] =
|
|
417
|
+
function Yc(e) {
|
|
418
|
+
const [t, n] = s.useState(), o = s.useRef(null), r = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [c, l] = jc(i, {
|
|
387
419
|
mounted: {
|
|
388
420
|
UNMOUNT: "unmounted",
|
|
389
421
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -397,19 +429,19 @@ function Vc(e) {
|
|
|
397
429
|
}
|
|
398
430
|
});
|
|
399
431
|
return s.useEffect(() => {
|
|
400
|
-
const u =
|
|
432
|
+
const u = Tt(o.current);
|
|
401
433
|
a.current = c === "mounted" ? u : "none";
|
|
402
434
|
}, [c]), Z(() => {
|
|
403
435
|
const u = o.current, f = r.current;
|
|
404
436
|
if (f !== e) {
|
|
405
|
-
const h = a.current, g =
|
|
437
|
+
const h = a.current, g = Tt(u);
|
|
406
438
|
e ? l("MOUNT") : g === "none" || u?.display === "none" ? l("UNMOUNT") : l(f && h !== g ? "ANIMATION_OUT" : "UNMOUNT"), r.current = e;
|
|
407
439
|
}
|
|
408
440
|
}, [e, l]), Z(() => {
|
|
409
441
|
if (t) {
|
|
410
442
|
let u;
|
|
411
443
|
const f = t.ownerDocument.defaultView ?? window, p = (g) => {
|
|
412
|
-
const m =
|
|
444
|
+
const m = Tt(o.current).includes(CSS.escape(g.animationName));
|
|
413
445
|
if (g.target === t && m && (l("ANIMATION_END"), !r.current)) {
|
|
414
446
|
const v = t.style.animationFillMode;
|
|
415
447
|
t.style.animationFillMode = "forwards", u = f.setTimeout(() => {
|
|
@@ -417,7 +449,7 @@ function Vc(e) {
|
|
|
417
449
|
});
|
|
418
450
|
}
|
|
419
451
|
}, h = (g) => {
|
|
420
|
-
g.target === t && (a.current =
|
|
452
|
+
g.target === t && (a.current = Tt(o.current));
|
|
421
453
|
};
|
|
422
454
|
return t.addEventListener("animationstart", h), t.addEventListener("animationcancel", p), t.addEventListener("animationend", p), () => {
|
|
423
455
|
f.clearTimeout(u), t.removeEventListener("animationstart", h), t.removeEventListener("animationcancel", p), t.removeEventListener("animationend", p);
|
|
@@ -431,17 +463,17 @@ function Vc(e) {
|
|
|
431
463
|
}, [])
|
|
432
464
|
};
|
|
433
465
|
}
|
|
434
|
-
function
|
|
466
|
+
function Tt(e) {
|
|
435
467
|
return e?.animationName || "none";
|
|
436
468
|
}
|
|
437
|
-
function
|
|
469
|
+
function Xc(e) {
|
|
438
470
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
439
471
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
440
472
|
}
|
|
441
473
|
// @__NO_SIDE_EFFECTS__
|
|
442
474
|
function $e(e) {
|
|
443
|
-
const t = /* @__PURE__ */
|
|
444
|
-
const { children: a, ...i } = o, c = s.Children.toArray(a), l = c.find(
|
|
475
|
+
const t = /* @__PURE__ */ qc(e), n = s.forwardRef((o, r) => {
|
|
476
|
+
const { children: a, ...i } = o, c = s.Children.toArray(a), l = c.find(Qc);
|
|
445
477
|
if (l) {
|
|
446
478
|
const u = l.props.children, f = c.map((p) => p === l ? s.Children.count(u) > 1 ? s.Children.only(null) : s.isValidElement(u) ? u.props.children : null : p);
|
|
447
479
|
return /* @__PURE__ */ d(t, { ...i, ref: r, children: s.isValidElement(u) ? s.cloneElement(u, void 0, f) : null });
|
|
@@ -451,11 +483,11 @@ function $e(e) {
|
|
|
451
483
|
return n.displayName = `${e}.Slot`, n;
|
|
452
484
|
}
|
|
453
485
|
// @__NO_SIDE_EFFECTS__
|
|
454
|
-
function
|
|
486
|
+
function qc(e) {
|
|
455
487
|
const t = s.forwardRef((n, o) => {
|
|
456
488
|
const { children: r, ...a } = n;
|
|
457
489
|
if (s.isValidElement(r)) {
|
|
458
|
-
const i =
|
|
490
|
+
const i = el(r), c = Jc(a, r.props);
|
|
459
491
|
return r.type !== s.Fragment && (c.ref = o ? Yt(o, i) : i), s.cloneElement(r, c);
|
|
460
492
|
}
|
|
461
493
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
@@ -464,14 +496,14 @@ function Uc(e) {
|
|
|
464
496
|
}
|
|
465
497
|
var cr = Symbol("radix.slottable");
|
|
466
498
|
// @__NO_SIDE_EFFECTS__
|
|
467
|
-
function
|
|
499
|
+
function Zc(e) {
|
|
468
500
|
const t = ({ children: n }) => /* @__PURE__ */ d(Ce, { children: n });
|
|
469
501
|
return t.displayName = `${e}.Slottable`, t.__radixId = cr, t;
|
|
470
502
|
}
|
|
471
|
-
function
|
|
503
|
+
function Qc(e) {
|
|
472
504
|
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === cr;
|
|
473
505
|
}
|
|
474
|
-
function
|
|
506
|
+
function Jc(e, t) {
|
|
475
507
|
const n = { ...t };
|
|
476
508
|
for (const o in t) {
|
|
477
509
|
const r = e[o], a = t[o];
|
|
@@ -482,11 +514,11 @@ function jc(e, t) {
|
|
|
482
514
|
}
|
|
483
515
|
return { ...e, ...n };
|
|
484
516
|
}
|
|
485
|
-
function
|
|
517
|
+
function el(e) {
|
|
486
518
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
487
519
|
return n ? e.ref : (t = Object.getOwnPropertyDescriptor(e, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
488
520
|
}
|
|
489
|
-
var
|
|
521
|
+
var tl = [
|
|
490
522
|
"a",
|
|
491
523
|
"button",
|
|
492
524
|
"div",
|
|
@@ -504,7 +536,7 @@ var Xc = [
|
|
|
504
536
|
"span",
|
|
505
537
|
"svg",
|
|
506
538
|
"ul"
|
|
507
|
-
], O =
|
|
539
|
+
], O = tl.reduce((e, t) => {
|
|
508
540
|
const n = /* @__PURE__ */ $e(`Primitive.${t}`), o = s.forwardRef((r, a) => {
|
|
509
541
|
const { asChild: i, ...c } = r, l = i ? n : t;
|
|
510
542
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ d(l, { ...c, ref: a });
|
|
@@ -512,10 +544,10 @@ var Xc = [
|
|
|
512
544
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
513
545
|
}, {});
|
|
514
546
|
function Jn(e, t) {
|
|
515
|
-
e &&
|
|
547
|
+
e && gt.flushSync(() => e.dispatchEvent(t));
|
|
516
548
|
}
|
|
517
|
-
var Xt = "Checkbox", [
|
|
518
|
-
function
|
|
549
|
+
var Xt = "Checkbox", [nl] = me(Xt), [ol, eo] = nl(Xt);
|
|
550
|
+
function rl(e) {
|
|
519
551
|
const {
|
|
520
552
|
__scopeCheckbox: t,
|
|
521
553
|
checked: n,
|
|
@@ -554,11 +586,11 @@ function Qc(e) {
|
|
|
554
586
|
setBubbleInput: C
|
|
555
587
|
};
|
|
556
588
|
return /* @__PURE__ */ d(
|
|
557
|
-
|
|
589
|
+
ol,
|
|
558
590
|
{
|
|
559
591
|
scope: t,
|
|
560
592
|
...x,
|
|
561
|
-
children:
|
|
593
|
+
children: sl(p) ? p(x) : o
|
|
562
594
|
}
|
|
563
595
|
);
|
|
564
596
|
}
|
|
@@ -621,7 +653,7 @@ var dr = s.forwardRef(
|
|
|
621
653
|
...p
|
|
622
654
|
} = e;
|
|
623
655
|
return /* @__PURE__ */ d(
|
|
624
|
-
|
|
656
|
+
rl,
|
|
625
657
|
{
|
|
626
658
|
__scopeCheckbox: n,
|
|
627
659
|
checked: r,
|
|
@@ -734,7 +766,7 @@ var mr = "CheckboxBubbleInput", hr = s.forwardRef(
|
|
|
734
766
|
}
|
|
735
767
|
);
|
|
736
768
|
hr.displayName = mr;
|
|
737
|
-
function
|
|
769
|
+
function sl(e) {
|
|
738
770
|
return typeof e == "function";
|
|
739
771
|
}
|
|
740
772
|
function Me(e) {
|
|
@@ -743,13 +775,13 @@ function Me(e) {
|
|
|
743
775
|
function vr(e) {
|
|
744
776
|
return Me(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
745
777
|
}
|
|
746
|
-
const
|
|
747
|
-
checkboxRow:
|
|
748
|
-
checkboxRoot:
|
|
749
|
-
checkboxIndicator:
|
|
750
|
-
checkboxCheckmarkIcon:
|
|
751
|
-
checkboxLabel:
|
|
752
|
-
},
|
|
778
|
+
const al = "_checkboxRow_aw0oa_1", il = "_checkboxRoot_aw0oa_7", cl = "_checkboxIndicator_aw0oa_19", ll = "_checkboxCheckmarkIcon_aw0oa_29", ul = "_checkboxLabel_aw0oa_35", at = {
|
|
779
|
+
checkboxRow: al,
|
|
780
|
+
checkboxRoot: il,
|
|
781
|
+
checkboxIndicator: cl,
|
|
782
|
+
checkboxCheckmarkIcon: ll,
|
|
783
|
+
checkboxLabel: ul
|
|
784
|
+
}, xv = ({ id: e, labelContent: t, checked: n, onClick: o }) => /* @__PURE__ */ K("div", { className: at.checkboxRow, children: [
|
|
753
785
|
/* @__PURE__ */ d(
|
|
754
786
|
dr,
|
|
755
787
|
{
|
|
@@ -765,12 +797,12 @@ const el = "_checkboxRow_aw0oa_1", tl = "_checkboxRoot_aw0oa_7", nl = "_checkbox
|
|
|
765
797
|
),
|
|
766
798
|
/* @__PURE__ */ d("label", { className: at.checkboxLabel, htmlFor: e, children: t })
|
|
767
799
|
] });
|
|
768
|
-
var
|
|
769
|
-
}),
|
|
800
|
+
var dl = s[" useId ".trim().toString()] || (() => {
|
|
801
|
+
}), fl = 0;
|
|
770
802
|
function de(e) {
|
|
771
|
-
const [t, n] = s.useState(
|
|
803
|
+
const [t, n] = s.useState(dl());
|
|
772
804
|
return Z(() => {
|
|
773
|
-
n((o) => o ?? String(
|
|
805
|
+
n((o) => o ?? String(fl++));
|
|
774
806
|
}, [e]), t ? `radix-${t}` : "";
|
|
775
807
|
}
|
|
776
808
|
function oe(e) {
|
|
@@ -779,7 +811,7 @@ function oe(e) {
|
|
|
779
811
|
t.current = e;
|
|
780
812
|
}), s.useMemo(() => (...n) => t.current?.(...n), []);
|
|
781
813
|
}
|
|
782
|
-
function
|
|
814
|
+
function pl(e, t = globalThis?.document) {
|
|
783
815
|
const n = oe(e);
|
|
784
816
|
s.useEffect(() => {
|
|
785
817
|
const o = (r) => {
|
|
@@ -788,7 +820,7 @@ function il(e, t = globalThis?.document) {
|
|
|
788
820
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
789
821
|
}, [n, t]);
|
|
790
822
|
}
|
|
791
|
-
var
|
|
823
|
+
var ml = "DismissableLayer", kn = "dismissableLayer.update", hl = "dismissableLayer.pointerDownOutside", vl = "dismissableLayer.focusOutside", Io, gr = s.createContext({
|
|
792
824
|
layers: /* @__PURE__ */ new Set(),
|
|
793
825
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
794
826
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -802,14 +834,14 @@ var cl = "DismissableLayer", kn = "dismissableLayer.update", ll = "dismissableLa
|
|
|
802
834
|
onInteractOutside: i,
|
|
803
835
|
onDismiss: c,
|
|
804
836
|
...l
|
|
805
|
-
} = e, u = s.useContext(gr), [f, p] = s.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = s.useState({}), w = V(t, (S) => p(S)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), C = m.indexOf(v), y = f ? m.indexOf(f) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= C, E =
|
|
837
|
+
} = e, u = s.useContext(gr), [f, p] = s.useState(null), h = f?.ownerDocument ?? globalThis?.document, [, g] = s.useState({}), w = V(t, (S) => p(S)), m = Array.from(u.layers), [v] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), C = m.indexOf(v), y = f ? m.indexOf(f) : -1, b = u.layersWithOutsidePointerEventsDisabled.size > 0, x = y >= C, E = wl((S) => {
|
|
806
838
|
const A = S.target, D = [...u.branches].some((k) => k.contains(A));
|
|
807
839
|
!x || D || (r?.(S), i?.(S), S.defaultPrevented || c?.());
|
|
808
|
-
}, h), T =
|
|
840
|
+
}, h), T = yl((S) => {
|
|
809
841
|
const A = S.target;
|
|
810
842
|
[...u.branches].some((k) => k.contains(A)) || (a?.(S), i?.(S), S.defaultPrevented || c?.());
|
|
811
843
|
}, h);
|
|
812
|
-
return
|
|
844
|
+
return pl((S) => {
|
|
813
845
|
y === u.layers.size - 1 && (o?.(S), !S.defaultPrevented && c && (S.preventDefault(), c()));
|
|
814
846
|
}, h), s.useEffect(() => {
|
|
815
847
|
if (f)
|
|
@@ -840,8 +872,8 @@ var cl = "DismissableLayer", kn = "dismissableLayer.update", ll = "dismissableLa
|
|
|
840
872
|
);
|
|
841
873
|
}
|
|
842
874
|
);
|
|
843
|
-
Ke.displayName =
|
|
844
|
-
var
|
|
875
|
+
Ke.displayName = ml;
|
|
876
|
+
var gl = "DismissableLayerBranch", wr = s.forwardRef((e, t) => {
|
|
845
877
|
const n = s.useContext(gr), o = s.useRef(null), r = V(t, o);
|
|
846
878
|
return s.useEffect(() => {
|
|
847
879
|
const a = o.current;
|
|
@@ -851,8 +883,8 @@ var dl = "DismissableLayerBranch", wr = s.forwardRef((e, t) => {
|
|
|
851
883
|
};
|
|
852
884
|
}, [n.branches]), /* @__PURE__ */ d(O.div, { ...e, ref: r });
|
|
853
885
|
});
|
|
854
|
-
wr.displayName =
|
|
855
|
-
function
|
|
886
|
+
wr.displayName = gl;
|
|
887
|
+
function wl(e, t = globalThis?.document) {
|
|
856
888
|
const n = oe(e), o = s.useRef(!1), r = s.useRef(() => {
|
|
857
889
|
});
|
|
858
890
|
return s.useEffect(() => {
|
|
@@ -860,7 +892,7 @@ function fl(e, t = globalThis?.document) {
|
|
|
860
892
|
if (c.target && !o.current) {
|
|
861
893
|
let l = function() {
|
|
862
894
|
yr(
|
|
863
|
-
|
|
895
|
+
hl,
|
|
864
896
|
n,
|
|
865
897
|
u,
|
|
866
898
|
{ discrete: !0 }
|
|
@@ -882,11 +914,11 @@ function fl(e, t = globalThis?.document) {
|
|
|
882
914
|
onPointerDownCapture: () => o.current = !0
|
|
883
915
|
};
|
|
884
916
|
}
|
|
885
|
-
function
|
|
917
|
+
function yl(e, t = globalThis?.document) {
|
|
886
918
|
const n = oe(e), o = s.useRef(!1);
|
|
887
919
|
return s.useEffect(() => {
|
|
888
920
|
const r = (a) => {
|
|
889
|
-
a.target && !o.current && yr(
|
|
921
|
+
a.target && !o.current && yr(vl, n, { originalEvent: a }, {
|
|
890
922
|
discrete: !1
|
|
891
923
|
});
|
|
892
924
|
};
|
|
@@ -904,7 +936,7 @@ function yr(e, t, n, { discrete: o }) {
|
|
|
904
936
|
const r = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
905
937
|
t && r.addEventListener(e, t, { once: !0 }), o ? Jn(r, a) : r.dispatchEvent(a);
|
|
906
938
|
}
|
|
907
|
-
var
|
|
939
|
+
var Cl = Ke, bl = wr, En = "focusScope.autoFocusOnMount", Sn = "focusScope.autoFocusOnUnmount", Oo = { bubbles: !1, cancelable: !0 }, xl = "FocusScope", wt = s.forwardRef((e, t) => {
|
|
908
940
|
const {
|
|
909
941
|
loop: n = !1,
|
|
910
942
|
trapped: o = !1,
|
|
@@ -947,7 +979,7 @@ var ml = Ke, hl = wr, En = "focusScope.autoFocusOnMount", Sn = "focusScope.autoF
|
|
|
947
979
|
const m = document.activeElement;
|
|
948
980
|
if (!c.contains(m)) {
|
|
949
981
|
const C = new CustomEvent(En, Oo);
|
|
950
|
-
c.addEventListener(En, u), c.dispatchEvent(C), C.defaultPrevented || (
|
|
982
|
+
c.addEventListener(En, u), c.dispatchEvent(C), C.defaultPrevented || (El(Tl(Cr(c)), { select: !0 }), document.activeElement === m && Te(c));
|
|
951
983
|
}
|
|
952
984
|
return () => {
|
|
953
985
|
c.removeEventListener(En, u), setTimeout(() => {
|
|
@@ -962,7 +994,7 @@ var ml = Ke, hl = wr, En = "focusScope.autoFocusOnMount", Sn = "focusScope.autoF
|
|
|
962
994
|
if (!n && !o || g.paused) return;
|
|
963
995
|
const v = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, C = document.activeElement;
|
|
964
996
|
if (v && C) {
|
|
965
|
-
const y = m.currentTarget, [b, x] =
|
|
997
|
+
const y = m.currentTarget, [b, x] = Sl(y);
|
|
966
998
|
b && x ? !m.shiftKey && C === x ? (m.preventDefault(), n && Te(b, { select: !0 })) : m.shiftKey && C === b && (m.preventDefault(), n && Te(x, { select: !0 })) : C === y && m.preventDefault();
|
|
967
999
|
}
|
|
968
1000
|
},
|
|
@@ -970,13 +1002,13 @@ var ml = Ke, hl = wr, En = "focusScope.autoFocusOnMount", Sn = "focusScope.autoF
|
|
|
970
1002
|
);
|
|
971
1003
|
return /* @__PURE__ */ d(O.div, { tabIndex: -1, ...i, ref: h, onKeyDown: w });
|
|
972
1004
|
});
|
|
973
|
-
|
|
974
|
-
function
|
|
1005
|
+
wt.displayName = xl;
|
|
1006
|
+
function El(e, { select: t = !1 } = {}) {
|
|
975
1007
|
const n = document.activeElement;
|
|
976
1008
|
for (const o of e)
|
|
977
1009
|
if (Te(o, { select: t }), document.activeElement !== n) return;
|
|
978
1010
|
}
|
|
979
|
-
function
|
|
1011
|
+
function Sl(e) {
|
|
980
1012
|
const t = Cr(e), n = ko(t, e), o = ko(t.reverse(), e);
|
|
981
1013
|
return [n, o];
|
|
982
1014
|
}
|
|
@@ -992,9 +1024,9 @@ function Cr(e) {
|
|
|
992
1024
|
}
|
|
993
1025
|
function ko(e, t) {
|
|
994
1026
|
for (const n of e)
|
|
995
|
-
if (!
|
|
1027
|
+
if (!Rl(n, { upTo: t })) return n;
|
|
996
1028
|
}
|
|
997
|
-
function
|
|
1029
|
+
function Rl(e, { upTo: t }) {
|
|
998
1030
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
999
1031
|
for (; e; ) {
|
|
1000
1032
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -1003,17 +1035,17 @@ function yl(e, { upTo: t }) {
|
|
|
1003
1035
|
}
|
|
1004
1036
|
return !1;
|
|
1005
1037
|
}
|
|
1006
|
-
function
|
|
1038
|
+
function _l(e) {
|
|
1007
1039
|
return e instanceof HTMLInputElement && "select" in e;
|
|
1008
1040
|
}
|
|
1009
1041
|
function Te(e, { select: t = !1 } = {}) {
|
|
1010
1042
|
if (e && e.focus) {
|
|
1011
1043
|
const n = document.activeElement;
|
|
1012
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1044
|
+
e.focus({ preventScroll: !0 }), e !== n && _l(e) && t && e.select();
|
|
1013
1045
|
}
|
|
1014
1046
|
}
|
|
1015
|
-
var Do =
|
|
1016
|
-
function
|
|
1047
|
+
var Do = Pl();
|
|
1048
|
+
function Pl() {
|
|
1017
1049
|
let e = [];
|
|
1018
1050
|
return {
|
|
1019
1051
|
add(t) {
|
|
@@ -1029,16 +1061,16 @@ function Lo(e, t) {
|
|
|
1029
1061
|
const n = [...e], o = n.indexOf(t);
|
|
1030
1062
|
return o !== -1 && n.splice(o, 1), n;
|
|
1031
1063
|
}
|
|
1032
|
-
function
|
|
1064
|
+
function Tl(e) {
|
|
1033
1065
|
return e.filter((t) => t.tagName !== "A");
|
|
1034
1066
|
}
|
|
1035
|
-
var
|
|
1067
|
+
var Ml = "Portal", Ue = s.forwardRef((e, t) => {
|
|
1036
1068
|
const { container: n, ...o } = e, [r, a] = s.useState(!1);
|
|
1037
1069
|
Z(() => a(!0), []);
|
|
1038
1070
|
const i = n || r && globalThis?.document?.body;
|
|
1039
1071
|
return i ? ni.createPortal(/* @__PURE__ */ d(O.div, { ...o, ref: t }), i) : null;
|
|
1040
1072
|
});
|
|
1041
|
-
Ue.displayName =
|
|
1073
|
+
Ue.displayName = Ml;
|
|
1042
1074
|
var Rn = 0;
|
|
1043
1075
|
function qt() {
|
|
1044
1076
|
s.useEffect(() => {
|
|
@@ -1069,16 +1101,16 @@ function br(e, t) {
|
|
|
1069
1101
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
1070
1102
|
return n;
|
|
1071
1103
|
}
|
|
1072
|
-
function
|
|
1104
|
+
function Al(e, t, n) {
|
|
1073
1105
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, a; o < r; o++)
|
|
1074
1106
|
(a || !(o in t)) && (a || (a = Array.prototype.slice.call(t, 0, o)), a[o] = t[o]);
|
|
1075
1107
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
1076
1108
|
}
|
|
1077
|
-
var
|
|
1109
|
+
var Lt = "right-scroll-bar-position", Ft = "width-before-scroll-bar", Il = "with-scroll-bars-hidden", Nl = "--removed-body-scroll-bar-size";
|
|
1078
1110
|
function _n(e, t) {
|
|
1079
1111
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1080
1112
|
}
|
|
1081
|
-
function
|
|
1113
|
+
function Ol(e, t) {
|
|
1082
1114
|
var n = ei(function() {
|
|
1083
1115
|
return {
|
|
1084
1116
|
// value
|
|
@@ -1099,14 +1131,14 @@ function Pl(e, t) {
|
|
|
1099
1131
|
})[0];
|
|
1100
1132
|
return n.callback = t, n.facade;
|
|
1101
1133
|
}
|
|
1102
|
-
var
|
|
1103
|
-
function
|
|
1104
|
-
var n =
|
|
1134
|
+
var kl = typeof window < "u" ? s.useLayoutEffect : s.useEffect, $o = /* @__PURE__ */ new WeakMap();
|
|
1135
|
+
function Dl(e, t) {
|
|
1136
|
+
var n = Ol(null, function(o) {
|
|
1105
1137
|
return e.forEach(function(r) {
|
|
1106
1138
|
return _n(r, o);
|
|
1107
1139
|
});
|
|
1108
1140
|
});
|
|
1109
|
-
return
|
|
1141
|
+
return kl(function() {
|
|
1110
1142
|
var o = $o.get(n);
|
|
1111
1143
|
if (o) {
|
|
1112
1144
|
var r = new Set(o), a = new Set(e), i = n.current;
|
|
@@ -1119,11 +1151,11 @@ function Ml(e, t) {
|
|
|
1119
1151
|
$o.set(n, e);
|
|
1120
1152
|
}, [e]), n;
|
|
1121
1153
|
}
|
|
1122
|
-
function
|
|
1154
|
+
function Ll(e) {
|
|
1123
1155
|
return e;
|
|
1124
1156
|
}
|
|
1125
|
-
function
|
|
1126
|
-
t === void 0 && (t =
|
|
1157
|
+
function Fl(e, t) {
|
|
1158
|
+
t === void 0 && (t = Ll);
|
|
1127
1159
|
var n = [], o = !1, r = {
|
|
1128
1160
|
read: function() {
|
|
1129
1161
|
if (o)
|
|
@@ -1177,9 +1209,9 @@ function Il(e, t) {
|
|
|
1177
1209
|
};
|
|
1178
1210
|
return r;
|
|
1179
1211
|
}
|
|
1180
|
-
function
|
|
1212
|
+
function $l(e) {
|
|
1181
1213
|
e === void 0 && (e = {});
|
|
1182
|
-
var t =
|
|
1214
|
+
var t = Fl(null);
|
|
1183
1215
|
return t.options = ge({ async: !0, ssr: !1 }, e), t;
|
|
1184
1216
|
}
|
|
1185
1217
|
var xr = function(e) {
|
|
@@ -1192,16 +1224,16 @@ var xr = function(e) {
|
|
|
1192
1224
|
return s.createElement(o, ge({}, n));
|
|
1193
1225
|
};
|
|
1194
1226
|
xr.isSideCarExport = !0;
|
|
1195
|
-
function
|
|
1227
|
+
function Bl(e, t) {
|
|
1196
1228
|
return e.useMedium(t), xr;
|
|
1197
1229
|
}
|
|
1198
|
-
var Er =
|
|
1230
|
+
var Er = $l(), Pn = function() {
|
|
1199
1231
|
}, Zt = s.forwardRef(function(e, t) {
|
|
1200
1232
|
var n = s.useRef(null), o = s.useState({
|
|
1201
1233
|
onScrollCapture: Pn,
|
|
1202
1234
|
onWheelCapture: Pn,
|
|
1203
1235
|
onTouchMoveCapture: Pn
|
|
1204
|
-
}), r = o[0], a = o[1], i = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, C = e.as, y = C === void 0 ? "div" : C, b = e.gapMode, x = br(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = h, T =
|
|
1236
|
+
}), r = o[0], a = o[1], i = e.forwardProps, c = e.children, l = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, h = e.sideCar, g = e.noRelative, w = e.noIsolation, m = e.inert, v = e.allowPinchZoom, C = e.as, y = C === void 0 ? "div" : C, b = e.gapMode, x = br(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = h, T = Dl([n, t]), S = ge(ge({}, x), r);
|
|
1205
1237
|
return s.createElement(
|
|
1206
1238
|
s.Fragment,
|
|
1207
1239
|
null,
|
|
@@ -1215,40 +1247,40 @@ Zt.defaultProps = {
|
|
|
1215
1247
|
inert: !1
|
|
1216
1248
|
};
|
|
1217
1249
|
Zt.classNames = {
|
|
1218
|
-
fullWidth:
|
|
1219
|
-
zeroRight:
|
|
1250
|
+
fullWidth: Ft,
|
|
1251
|
+
zeroRight: Lt
|
|
1220
1252
|
};
|
|
1221
|
-
var
|
|
1253
|
+
var Wl = function() {
|
|
1222
1254
|
if (typeof __webpack_nonce__ < "u")
|
|
1223
1255
|
return __webpack_nonce__;
|
|
1224
1256
|
};
|
|
1225
|
-
function
|
|
1257
|
+
function Hl() {
|
|
1226
1258
|
if (!document)
|
|
1227
1259
|
return null;
|
|
1228
1260
|
var e = document.createElement("style");
|
|
1229
1261
|
e.type = "text/css";
|
|
1230
|
-
var t =
|
|
1262
|
+
var t = Wl();
|
|
1231
1263
|
return t && e.setAttribute("nonce", t), e;
|
|
1232
1264
|
}
|
|
1233
|
-
function
|
|
1265
|
+
function Vl(e, t) {
|
|
1234
1266
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1235
1267
|
}
|
|
1236
|
-
function
|
|
1268
|
+
function Kl(e) {
|
|
1237
1269
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
1238
1270
|
t.appendChild(e);
|
|
1239
1271
|
}
|
|
1240
|
-
var
|
|
1272
|
+
var Ul = function() {
|
|
1241
1273
|
var e = 0, t = null;
|
|
1242
1274
|
return {
|
|
1243
1275
|
add: function(n) {
|
|
1244
|
-
e == 0 && (t =
|
|
1276
|
+
e == 0 && (t = Hl()) && (Vl(t, n), Kl(t)), e++;
|
|
1245
1277
|
},
|
|
1246
1278
|
remove: function() {
|
|
1247
1279
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1248
1280
|
}
|
|
1249
1281
|
};
|
|
1250
|
-
},
|
|
1251
|
-
var e =
|
|
1282
|
+
}, Gl = function() {
|
|
1283
|
+
var e = Ul();
|
|
1252
1284
|
return function(t, n) {
|
|
1253
1285
|
s.useEffect(function() {
|
|
1254
1286
|
return e.add(t), function() {
|
|
@@ -1257,35 +1289,35 @@ var $l = function() {
|
|
|
1257
1289
|
}, [t && n]);
|
|
1258
1290
|
};
|
|
1259
1291
|
}, Sr = function() {
|
|
1260
|
-
var e =
|
|
1292
|
+
var e = Gl(), t = function(n) {
|
|
1261
1293
|
var o = n.styles, r = n.dynamic;
|
|
1262
1294
|
return e(o, r), null;
|
|
1263
1295
|
};
|
|
1264
1296
|
return t;
|
|
1265
|
-
},
|
|
1297
|
+
}, zl = {
|
|
1266
1298
|
left: 0,
|
|
1267
1299
|
top: 0,
|
|
1268
1300
|
right: 0,
|
|
1269
1301
|
gap: 0
|
|
1270
1302
|
}, Tn = function(e) {
|
|
1271
1303
|
return parseInt(e || "", 10) || 0;
|
|
1272
|
-
},
|
|
1304
|
+
}, jl = function(e) {
|
|
1273
1305
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1274
1306
|
return [Tn(n), Tn(o), Tn(r)];
|
|
1275
|
-
},
|
|
1307
|
+
}, Yl = function(e) {
|
|
1276
1308
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1277
|
-
return
|
|
1278
|
-
var t =
|
|
1309
|
+
return zl;
|
|
1310
|
+
var t = jl(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
1279
1311
|
return {
|
|
1280
1312
|
left: t[0],
|
|
1281
1313
|
top: t[1],
|
|
1282
1314
|
right: t[2],
|
|
1283
1315
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
1284
1316
|
};
|
|
1285
|
-
},
|
|
1317
|
+
}, Xl = Sr(), Qe = "data-scroll-locked", ql = function(e, t, n, o) {
|
|
1286
1318
|
var r = e.left, a = e.top, i = e.right, c = e.gap;
|
|
1287
1319
|
return n === void 0 && (n = "margin"), `
|
|
1288
|
-
.`.concat(
|
|
1320
|
+
.`.concat(Il, ` {
|
|
1289
1321
|
overflow: hidden `).concat(o, `;
|
|
1290
1322
|
padding-right: `).concat(c, "px ").concat(o, `;
|
|
1291
1323
|
}
|
|
@@ -1306,56 +1338,56 @@ var $l = function() {
|
|
|
1306
1338
|
].filter(Boolean).join(""), `
|
|
1307
1339
|
}
|
|
1308
1340
|
|
|
1309
|
-
.`).concat(
|
|
1341
|
+
.`).concat(Lt, ` {
|
|
1310
1342
|
right: `).concat(c, "px ").concat(o, `;
|
|
1311
1343
|
}
|
|
1312
1344
|
|
|
1313
|
-
.`).concat(
|
|
1345
|
+
.`).concat(Ft, ` {
|
|
1314
1346
|
margin-right: `).concat(c, "px ").concat(o, `;
|
|
1315
1347
|
}
|
|
1316
1348
|
|
|
1317
|
-
.`).concat(
|
|
1349
|
+
.`).concat(Lt, " .").concat(Lt, ` {
|
|
1318
1350
|
right: 0 `).concat(o, `;
|
|
1319
1351
|
}
|
|
1320
1352
|
|
|
1321
|
-
.`).concat(
|
|
1353
|
+
.`).concat(Ft, " .").concat(Ft, ` {
|
|
1322
1354
|
margin-right: 0 `).concat(o, `;
|
|
1323
1355
|
}
|
|
1324
1356
|
|
|
1325
1357
|
body[`).concat(Qe, `] {
|
|
1326
|
-
`).concat(
|
|
1358
|
+
`).concat(Nl, ": ").concat(c, `px;
|
|
1327
1359
|
}
|
|
1328
1360
|
`);
|
|
1329
1361
|
}, Bo = function() {
|
|
1330
1362
|
var e = parseInt(document.body.getAttribute(Qe) || "0", 10);
|
|
1331
1363
|
return isFinite(e) ? e : 0;
|
|
1332
|
-
},
|
|
1364
|
+
}, Zl = function() {
|
|
1333
1365
|
s.useEffect(function() {
|
|
1334
1366
|
return document.body.setAttribute(Qe, (Bo() + 1).toString()), function() {
|
|
1335
1367
|
var e = Bo() - 1;
|
|
1336
1368
|
e <= 0 ? document.body.removeAttribute(Qe) : document.body.setAttribute(Qe, e.toString());
|
|
1337
1369
|
};
|
|
1338
1370
|
}, []);
|
|
1339
|
-
},
|
|
1371
|
+
}, Ql = function(e) {
|
|
1340
1372
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
|
|
1341
|
-
|
|
1373
|
+
Zl();
|
|
1342
1374
|
var a = s.useMemo(function() {
|
|
1343
|
-
return
|
|
1375
|
+
return Yl(r);
|
|
1344
1376
|
}, [r]);
|
|
1345
|
-
return s.createElement(
|
|
1377
|
+
return s.createElement(Xl, { styles: ql(a, !t, r, n ? "" : "!important") });
|
|
1346
1378
|
}, Dn = !1;
|
|
1347
1379
|
if (typeof window < "u")
|
|
1348
1380
|
try {
|
|
1349
|
-
var
|
|
1381
|
+
var Mt = Object.defineProperty({}, "passive", {
|
|
1350
1382
|
get: function() {
|
|
1351
1383
|
return Dn = !0, !0;
|
|
1352
1384
|
}
|
|
1353
1385
|
});
|
|
1354
|
-
window.addEventListener("test",
|
|
1386
|
+
window.addEventListener("test", Mt, Mt), window.removeEventListener("test", Mt, Mt);
|
|
1355
1387
|
} catch {
|
|
1356
1388
|
Dn = !1;
|
|
1357
1389
|
}
|
|
1358
|
-
var je = Dn ? { passive: !1 } : !1,
|
|
1390
|
+
var je = Dn ? { passive: !1 } : !1, Jl = function(e) {
|
|
1359
1391
|
return e.tagName === "TEXTAREA";
|
|
1360
1392
|
}, Rr = function(e, t) {
|
|
1361
1393
|
if (!(e instanceof Element))
|
|
@@ -1364,11 +1396,11 @@ var je = Dn ? { passive: !1 } : !1, jl = function(e) {
|
|
|
1364
1396
|
return (
|
|
1365
1397
|
// not-not-scrollable
|
|
1366
1398
|
n[t] !== "hidden" && // contains scroll inside self
|
|
1367
|
-
!(n.overflowY === n.overflowX && !
|
|
1399
|
+
!(n.overflowY === n.overflowX && !Jl(e) && n[t] === "visible")
|
|
1368
1400
|
);
|
|
1369
|
-
},
|
|
1401
|
+
}, eu = function(e) {
|
|
1370
1402
|
return Rr(e, "overflowY");
|
|
1371
|
-
},
|
|
1403
|
+
}, tu = function(e) {
|
|
1372
1404
|
return Rr(e, "overflowX");
|
|
1373
1405
|
}, Wo = function(e, t) {
|
|
1374
1406
|
var n = t.ownerDocument, o = t;
|
|
@@ -1383,14 +1415,14 @@ var je = Dn ? { passive: !1 } : !1, jl = function(e) {
|
|
|
1383
1415
|
o = o.parentNode;
|
|
1384
1416
|
} while (o && o !== n.body);
|
|
1385
1417
|
return !1;
|
|
1386
|
-
},
|
|
1418
|
+
}, nu = function(e) {
|
|
1387
1419
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
1388
1420
|
return [
|
|
1389
1421
|
t,
|
|
1390
1422
|
n,
|
|
1391
1423
|
o
|
|
1392
1424
|
];
|
|
1393
|
-
},
|
|
1425
|
+
}, ou = function(e) {
|
|
1394
1426
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
1395
1427
|
return [
|
|
1396
1428
|
t,
|
|
@@ -1398,13 +1430,13 @@ var je = Dn ? { passive: !1 } : !1, jl = function(e) {
|
|
|
1398
1430
|
o
|
|
1399
1431
|
];
|
|
1400
1432
|
}, _r = function(e, t) {
|
|
1401
|
-
return e === "v" ?
|
|
1433
|
+
return e === "v" ? eu(t) : tu(t);
|
|
1402
1434
|
}, Pr = function(e, t) {
|
|
1403
|
-
return e === "v" ?
|
|
1404
|
-
},
|
|
1435
|
+
return e === "v" ? nu(t) : ou(t);
|
|
1436
|
+
}, ru = function(e, t) {
|
|
1405
1437
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1406
|
-
},
|
|
1407
|
-
var a =
|
|
1438
|
+
}, su = function(e, t, n, o, r) {
|
|
1439
|
+
var a = ru(e, window.getComputedStyle(t).direction), i = a * o, c = n.target, l = t.contains(c), u = !1, f = i > 0, p = 0, h = 0;
|
|
1408
1440
|
do {
|
|
1409
1441
|
if (!c)
|
|
1410
1442
|
break;
|
|
@@ -1418,28 +1450,28 @@ var je = Dn ? { passive: !1 } : !1, jl = function(e) {
|
|
|
1418
1450
|
l && (t.contains(c) || t === c)
|
|
1419
1451
|
);
|
|
1420
1452
|
return (f && Math.abs(p) < 1 || !f && Math.abs(h) < 1) && (u = !0), u;
|
|
1421
|
-
},
|
|
1453
|
+
}, At = function(e) {
|
|
1422
1454
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
1423
1455
|
}, Ho = function(e) {
|
|
1424
1456
|
return [e.deltaX, e.deltaY];
|
|
1425
1457
|
}, Vo = function(e) {
|
|
1426
1458
|
return e && "current" in e ? e.current : e;
|
|
1427
|
-
},
|
|
1459
|
+
}, au = function(e, t) {
|
|
1428
1460
|
return e[0] === t[0] && e[1] === t[1];
|
|
1429
|
-
},
|
|
1461
|
+
}, iu = function(e) {
|
|
1430
1462
|
return `
|
|
1431
1463
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1432
1464
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1433
1465
|
`);
|
|
1434
|
-
},
|
|
1435
|
-
function
|
|
1436
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), o = s.useRef(), r = s.useState(
|
|
1466
|
+
}, cu = 0, Ye = [];
|
|
1467
|
+
function lu(e) {
|
|
1468
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), o = s.useRef(), r = s.useState(cu++)[0], a = s.useState(Sr)[0], i = s.useRef(e);
|
|
1437
1469
|
s.useEffect(function() {
|
|
1438
1470
|
i.current = e;
|
|
1439
1471
|
}, [e]), s.useEffect(function() {
|
|
1440
1472
|
if (e.inert) {
|
|
1441
1473
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
1442
|
-
var m =
|
|
1474
|
+
var m = Al([e.lockRef.current], (e.shards || []).map(Vo), !0).filter(Boolean);
|
|
1443
1475
|
return m.forEach(function(v) {
|
|
1444
1476
|
return v.classList.add("allow-interactivity-".concat(r));
|
|
1445
1477
|
}), function() {
|
|
@@ -1452,7 +1484,7 @@ function ou(e) {
|
|
|
1452
1484
|
var c = s.useCallback(function(m, v) {
|
|
1453
1485
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
1454
1486
|
return !i.current.allowPinchZoom;
|
|
1455
|
-
var C =
|
|
1487
|
+
var C = At(m), y = n.current, b = "deltaX" in m ? m.deltaX : y[0] - C[0], x = "deltaY" in m ? m.deltaY : y[1] - C[1], E, T = m.target, S = Math.abs(b) > Math.abs(x) ? "h" : "v";
|
|
1456
1488
|
if ("touches" in m && S === "h" && T.type === "range")
|
|
1457
1489
|
return !1;
|
|
1458
1490
|
var A = Wo(S, T);
|
|
@@ -1463,12 +1495,12 @@ function ou(e) {
|
|
|
1463
1495
|
if (!o.current && "changedTouches" in m && (b || x) && (o.current = E), !E)
|
|
1464
1496
|
return !0;
|
|
1465
1497
|
var D = o.current || E;
|
|
1466
|
-
return
|
|
1498
|
+
return su(D, v, m, D === "h" ? b : x);
|
|
1467
1499
|
}, []), l = s.useCallback(function(m) {
|
|
1468
1500
|
var v = m;
|
|
1469
1501
|
if (!(!Ye.length || Ye[Ye.length - 1] !== a)) {
|
|
1470
|
-
var C = "deltaY" in v ? Ho(v) :
|
|
1471
|
-
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) &&
|
|
1502
|
+
var C = "deltaY" in v ? Ho(v) : At(v), y = t.current.filter(function(E) {
|
|
1503
|
+
return E.name === v.type && (E.target === v.target || v.target === E.shadowParent) && au(E.delta, C);
|
|
1472
1504
|
})[0];
|
|
1473
1505
|
if (y && y.should) {
|
|
1474
1506
|
v.cancelable && v.preventDefault();
|
|
@@ -1482,18 +1514,18 @@ function ou(e) {
|
|
|
1482
1514
|
}
|
|
1483
1515
|
}
|
|
1484
1516
|
}, []), u = s.useCallback(function(m, v, C, y) {
|
|
1485
|
-
var b = { name: m, delta: v, target: C, should: y, shadowParent:
|
|
1517
|
+
var b = { name: m, delta: v, target: C, should: y, shadowParent: uu(C) };
|
|
1486
1518
|
t.current.push(b), setTimeout(function() {
|
|
1487
1519
|
t.current = t.current.filter(function(x) {
|
|
1488
1520
|
return x !== b;
|
|
1489
1521
|
});
|
|
1490
1522
|
}, 1);
|
|
1491
1523
|
}, []), f = s.useCallback(function(m) {
|
|
1492
|
-
n.current =
|
|
1524
|
+
n.current = At(m), o.current = void 0;
|
|
1493
1525
|
}, []), p = s.useCallback(function(m) {
|
|
1494
1526
|
u(m.type, Ho(m), m.target, c(m, e.lockRef.current));
|
|
1495
1527
|
}, []), h = s.useCallback(function(m) {
|
|
1496
|
-
u(m.type,
|
|
1528
|
+
u(m.type, At(m), m.target, c(m, e.lockRef.current));
|
|
1497
1529
|
}, []);
|
|
1498
1530
|
s.useEffect(function() {
|
|
1499
1531
|
return Ye.push(a), e.setCallbacks({
|
|
@@ -1510,28 +1542,28 @@ function ou(e) {
|
|
|
1510
1542
|
return s.createElement(
|
|
1511
1543
|
s.Fragment,
|
|
1512
1544
|
null,
|
|
1513
|
-
w ? s.createElement(a, { styles:
|
|
1514
|
-
g ? s.createElement(
|
|
1545
|
+
w ? s.createElement(a, { styles: iu(r) }) : null,
|
|
1546
|
+
g ? s.createElement(Ql, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1515
1547
|
);
|
|
1516
1548
|
}
|
|
1517
|
-
function
|
|
1549
|
+
function uu(e) {
|
|
1518
1550
|
for (var t = null; e !== null; )
|
|
1519
1551
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1520
1552
|
return t;
|
|
1521
1553
|
}
|
|
1522
|
-
const
|
|
1523
|
-
var
|
|
1524
|
-
return s.createElement(Zt, ge({}, e, { ref: t, sideCar:
|
|
1554
|
+
const du = Bl(Er, lu);
|
|
1555
|
+
var yt = s.forwardRef(function(e, t) {
|
|
1556
|
+
return s.createElement(Zt, ge({}, e, { ref: t, sideCar: du }));
|
|
1525
1557
|
});
|
|
1526
|
-
|
|
1527
|
-
var
|
|
1558
|
+
yt.classNames = Zt.classNames;
|
|
1559
|
+
var fu = function(e) {
|
|
1528
1560
|
if (typeof document > "u")
|
|
1529
1561
|
return null;
|
|
1530
1562
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1531
1563
|
return t.ownerDocument.body;
|
|
1532
|
-
}, Xe = /* @__PURE__ */ new WeakMap(),
|
|
1564
|
+
}, Xe = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {}, Mn = 0, Tr = function(e) {
|
|
1533
1565
|
return e && (e.host || Tr(e.parentNode));
|
|
1534
|
-
},
|
|
1566
|
+
}, pu = function(e, t) {
|
|
1535
1567
|
return t.map(function(n) {
|
|
1536
1568
|
if (e.contains(n))
|
|
1537
1569
|
return n;
|
|
@@ -1540,10 +1572,10 @@ var au = function(e) {
|
|
|
1540
1572
|
}).filter(function(n) {
|
|
1541
1573
|
return !!n;
|
|
1542
1574
|
});
|
|
1543
|
-
},
|
|
1544
|
-
var r =
|
|
1545
|
-
|
|
1546
|
-
var a =
|
|
1575
|
+
}, mu = function(e, t, n, o) {
|
|
1576
|
+
var r = pu(t, Array.isArray(e) ? e : [e]);
|
|
1577
|
+
Nt[n] || (Nt[n] = /* @__PURE__ */ new WeakMap());
|
|
1578
|
+
var a = Nt[n], i = [], c = /* @__PURE__ */ new Set(), l = new Set(r), u = function(p) {
|
|
1547
1579
|
!p || c.has(p) || (c.add(p), u(p.parentNode));
|
|
1548
1580
|
};
|
|
1549
1581
|
r.forEach(u);
|
|
@@ -1554,7 +1586,7 @@ var au = function(e) {
|
|
|
1554
1586
|
else
|
|
1555
1587
|
try {
|
|
1556
1588
|
var g = h.getAttribute(o), w = g !== null && g !== "false", m = (Xe.get(h) || 0) + 1, v = (a.get(h) || 0) + 1;
|
|
1557
|
-
Xe.set(h, m), a.set(h, v), i.push(h), m === 1 && w &&
|
|
1589
|
+
Xe.set(h, m), a.set(h, v), i.push(h), m === 1 && w && It.set(h, !0), v === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
|
|
1558
1590
|
} catch (C) {
|
|
1559
1591
|
console.error("aria-hidden: cannot operate on ", h, C);
|
|
1560
1592
|
}
|
|
@@ -1563,16 +1595,16 @@ var au = function(e) {
|
|
|
1563
1595
|
return f(t), c.clear(), Mn++, function() {
|
|
1564
1596
|
i.forEach(function(p) {
|
|
1565
1597
|
var h = Xe.get(p) - 1, g = a.get(p) - 1;
|
|
1566
|
-
Xe.set(p, h), a.set(p, g), h || (
|
|
1567
|
-
}), Mn--, Mn || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(),
|
|
1598
|
+
Xe.set(p, h), a.set(p, g), h || (It.has(p) || p.removeAttribute(o), It.delete(p)), g || p.removeAttribute(n);
|
|
1599
|
+
}), Mn--, Mn || (Xe = /* @__PURE__ */ new WeakMap(), Xe = /* @__PURE__ */ new WeakMap(), It = /* @__PURE__ */ new WeakMap(), Nt = {});
|
|
1568
1600
|
};
|
|
1569
1601
|
}, Qt = function(e, t, n) {
|
|
1570
1602
|
n === void 0 && (n = "data-aria-hidden");
|
|
1571
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), r =
|
|
1572
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))),
|
|
1603
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = fu(e);
|
|
1604
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), mu(o, r, n, "aria-hidden")) : function() {
|
|
1573
1605
|
return null;
|
|
1574
1606
|
};
|
|
1575
|
-
}, Jt = "Dialog", [Mr] = me(Jt), [
|
|
1607
|
+
}, Jt = "Dialog", [Mr] = me(Jt), [hu, he] = Mr(Jt), Ar = (e) => {
|
|
1576
1608
|
const {
|
|
1577
1609
|
__scopeDialog: t,
|
|
1578
1610
|
children: n,
|
|
@@ -1587,7 +1619,7 @@ var au = function(e) {
|
|
|
1587
1619
|
caller: Jt
|
|
1588
1620
|
});
|
|
1589
1621
|
return /* @__PURE__ */ d(
|
|
1590
|
-
|
|
1622
|
+
hu,
|
|
1591
1623
|
{
|
|
1592
1624
|
scope: t,
|
|
1593
1625
|
triggerRef: c,
|
|
@@ -1623,27 +1655,27 @@ var Ir = "DialogTrigger", Nr = s.forwardRef(
|
|
|
1623
1655
|
}
|
|
1624
1656
|
);
|
|
1625
1657
|
Nr.displayName = Ir;
|
|
1626
|
-
var to = "DialogPortal", [
|
|
1658
|
+
var to = "DialogPortal", [vu, Or] = Mr(to, {
|
|
1627
1659
|
forceMount: void 0
|
|
1628
1660
|
}), kr = (e) => {
|
|
1629
1661
|
const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, a = he(to, t);
|
|
1630
|
-
return /* @__PURE__ */ d(
|
|
1662
|
+
return /* @__PURE__ */ d(vu, { scope: t, forceMount: n, children: s.Children.map(o, (i) => /* @__PURE__ */ d(re, { present: n || a.open, children: /* @__PURE__ */ d(Ue, { asChild: !0, container: r, children: i }) })) });
|
|
1631
1663
|
};
|
|
1632
1664
|
kr.displayName = to;
|
|
1633
|
-
var
|
|
1665
|
+
var Bt = "DialogOverlay", Dr = s.forwardRef(
|
|
1634
1666
|
(e, t) => {
|
|
1635
|
-
const n = Or(
|
|
1636
|
-
return a.modal ? /* @__PURE__ */ d(re, { present: o || a.open, children: /* @__PURE__ */ d(
|
|
1667
|
+
const n = Or(Bt, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = he(Bt, e.__scopeDialog);
|
|
1668
|
+
return a.modal ? /* @__PURE__ */ d(re, { present: o || a.open, children: /* @__PURE__ */ d(wu, { ...r, ref: t }) }) : null;
|
|
1637
1669
|
}
|
|
1638
1670
|
);
|
|
1639
|
-
Dr.displayName =
|
|
1640
|
-
var
|
|
1671
|
+
Dr.displayName = Bt;
|
|
1672
|
+
var gu = /* @__PURE__ */ $e("DialogOverlay.RemoveScroll"), wu = s.forwardRef(
|
|
1641
1673
|
(e, t) => {
|
|
1642
|
-
const { __scopeDialog: n, ...o } = e, r = he(
|
|
1674
|
+
const { __scopeDialog: n, ...o } = e, r = he(Bt, n);
|
|
1643
1675
|
return (
|
|
1644
1676
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1645
1677
|
// ie. when `Overlay` and `Content` are siblings
|
|
1646
|
-
/* @__PURE__ */ d(
|
|
1678
|
+
/* @__PURE__ */ d(yt, { as: gu, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ d(
|
|
1647
1679
|
O.div,
|
|
1648
1680
|
{
|
|
1649
1681
|
"data-state": oo(r.open),
|
|
@@ -1657,11 +1689,11 @@ var du = /* @__PURE__ */ $e("DialogOverlay.RemoveScroll"), fu = s.forwardRef(
|
|
|
1657
1689
|
), Be = "DialogContent", Lr = s.forwardRef(
|
|
1658
1690
|
(e, t) => {
|
|
1659
1691
|
const n = Or(Be, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, a = he(Be, e.__scopeDialog);
|
|
1660
|
-
return /* @__PURE__ */ d(re, { present: o || a.open, children: a.modal ? /* @__PURE__ */ d(
|
|
1692
|
+
return /* @__PURE__ */ d(re, { present: o || a.open, children: a.modal ? /* @__PURE__ */ d(yu, { ...r, ref: t }) : /* @__PURE__ */ d(Cu, { ...r, ref: t }) });
|
|
1661
1693
|
}
|
|
1662
1694
|
);
|
|
1663
1695
|
Lr.displayName = Be;
|
|
1664
|
-
var
|
|
1696
|
+
var yu = s.forwardRef(
|
|
1665
1697
|
(e, t) => {
|
|
1666
1698
|
const n = he(Be, e.__scopeDialog), o = s.useRef(null), r = V(t, n.contentRef, o);
|
|
1667
1699
|
return s.useEffect(() => {
|
|
@@ -1688,7 +1720,7 @@ var pu = s.forwardRef(
|
|
|
1688
1720
|
}
|
|
1689
1721
|
);
|
|
1690
1722
|
}
|
|
1691
|
-
),
|
|
1723
|
+
), Cu = s.forwardRef(
|
|
1692
1724
|
(e, t) => {
|
|
1693
1725
|
const n = he(Be, e.__scopeDialog), o = s.useRef(!1), r = s.useRef(!1);
|
|
1694
1726
|
return /* @__PURE__ */ d(
|
|
@@ -1714,7 +1746,7 @@ var pu = s.forwardRef(
|
|
|
1714
1746
|
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: a, ...i } = e, c = he(Be, n), l = s.useRef(null), u = V(t, l);
|
|
1715
1747
|
return qt(), /* @__PURE__ */ K(Ce, { children: [
|
|
1716
1748
|
/* @__PURE__ */ d(
|
|
1717
|
-
|
|
1749
|
+
wt,
|
|
1718
1750
|
{
|
|
1719
1751
|
asChild: !0,
|
|
1720
1752
|
loop: !0,
|
|
@@ -1737,8 +1769,8 @@ var pu = s.forwardRef(
|
|
|
1737
1769
|
}
|
|
1738
1770
|
),
|
|
1739
1771
|
/* @__PURE__ */ K(Ce, { children: [
|
|
1740
|
-
/* @__PURE__ */ d(
|
|
1741
|
-
/* @__PURE__ */ d(
|
|
1772
|
+
/* @__PURE__ */ d(xu, { titleId: c.titleId }),
|
|
1773
|
+
/* @__PURE__ */ d(Su, { contentRef: l, descriptionId: c.descriptionId })
|
|
1742
1774
|
] })
|
|
1743
1775
|
] });
|
|
1744
1776
|
}
|
|
@@ -1749,13 +1781,13 @@ var pu = s.forwardRef(
|
|
|
1749
1781
|
}
|
|
1750
1782
|
);
|
|
1751
1783
|
$r.displayName = no;
|
|
1752
|
-
var Br = "DialogDescription",
|
|
1784
|
+
var Br = "DialogDescription", bu = s.forwardRef(
|
|
1753
1785
|
(e, t) => {
|
|
1754
1786
|
const { __scopeDialog: n, ...o } = e, r = he(Br, n);
|
|
1755
1787
|
return /* @__PURE__ */ d(O.p, { id: r.descriptionId, ...o, ref: t });
|
|
1756
1788
|
}
|
|
1757
1789
|
);
|
|
1758
|
-
|
|
1790
|
+
bu.displayName = Br;
|
|
1759
1791
|
var Wr = "DialogClose", Hr = s.forwardRef(
|
|
1760
1792
|
(e, t) => {
|
|
1761
1793
|
const { __scopeDialog: n, ...o } = e, r = he(Wr, n);
|
|
@@ -1774,11 +1806,11 @@ Hr.displayName = Wr;
|
|
|
1774
1806
|
function oo(e) {
|
|
1775
1807
|
return e ? "open" : "closed";
|
|
1776
1808
|
}
|
|
1777
|
-
var Vr = "DialogTitleWarning", [
|
|
1809
|
+
var Vr = "DialogTitleWarning", [Ev, Kr] = Vc(Vr, {
|
|
1778
1810
|
contentName: Be,
|
|
1779
1811
|
titleName: no,
|
|
1780
1812
|
docsSlug: "dialog"
|
|
1781
|
-
}),
|
|
1813
|
+
}), xu = ({ titleId: e }) => {
|
|
1782
1814
|
const t = Kr(Vr), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1783
1815
|
|
|
1784
1816
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -1787,55 +1819,55 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
1787
1819
|
return s.useEffect(() => {
|
|
1788
1820
|
e && (document.getElementById(e) || console.error(n));
|
|
1789
1821
|
}, [n, e]), null;
|
|
1790
|
-
},
|
|
1791
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kr(
|
|
1822
|
+
}, Eu = "DialogDescriptionWarning", Su = ({ contentRef: e, descriptionId: t }) => {
|
|
1823
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Kr(Eu).contentName}}.`;
|
|
1792
1824
|
return s.useEffect(() => {
|
|
1793
1825
|
const r = e.current?.getAttribute("aria-describedby");
|
|
1794
1826
|
t && r && (document.getElementById(t) || console.warn(o));
|
|
1795
1827
|
}, [o, e, t]), null;
|
|
1796
|
-
},
|
|
1797
|
-
const
|
|
1798
|
-
dialogOverlay:
|
|
1799
|
-
dialogContent:
|
|
1800
|
-
dialogCloseButton:
|
|
1801
|
-
dialogTitle:
|
|
1802
|
-
},
|
|
1803
|
-
/* @__PURE__ */ d(
|
|
1804
|
-
/* @__PURE__ */ K(
|
|
1805
|
-
/* @__PURE__ */ d(
|
|
1828
|
+
}, Ru = Ar, _u = Nr, Pu = kr, Tu = Dr, Mu = Lr, Au = $r, Iu = Hr;
|
|
1829
|
+
const Nu = "_dialogOverlay_1qzfk_1", Ou = "_dialogContent_1qzfk_20", ku = "_dialogCloseButton_1qzfk_65", Du = "_dialogTitle_1qzfk_72", Ot = {
|
|
1830
|
+
dialogOverlay: Nu,
|
|
1831
|
+
dialogContent: Ou,
|
|
1832
|
+
dialogCloseButton: ku,
|
|
1833
|
+
dialogTitle: Du
|
|
1834
|
+
}, Sv = ["sm", "md", "lg"], Rv = ({ trigger: e, children: t, title: n, size: o = "md", ...r }) => /* @__PURE__ */ K(Ru, { ...r, children: [
|
|
1835
|
+
/* @__PURE__ */ d(_u, { asChild: !0, children: e }),
|
|
1836
|
+
/* @__PURE__ */ K(Pu, { children: [
|
|
1837
|
+
/* @__PURE__ */ d(Tu, { className: `${Ot.dialogOverlay}` }),
|
|
1806
1838
|
/* @__PURE__ */ K(
|
|
1807
|
-
|
|
1839
|
+
Mu,
|
|
1808
1840
|
{
|
|
1809
|
-
className:
|
|
1841
|
+
className: Ot.dialogContent,
|
|
1810
1842
|
"data-size": o,
|
|
1811
1843
|
onPointerDownOutside: (a) => {
|
|
1812
1844
|
a?.preventDefault();
|
|
1813
1845
|
},
|
|
1814
1846
|
children: [
|
|
1815
|
-
/* @__PURE__ */ d(
|
|
1816
|
-
/* @__PURE__ */ d(
|
|
1847
|
+
/* @__PURE__ */ d(Iu, { asChild: !0, children: /* @__PURE__ */ d(jt, { className: `${Ot.dialogCloseButton}`, variant: "tertiary", iconOnly: !0, children: /* @__PURE__ */ d(rr, {}) }) }),
|
|
1848
|
+
/* @__PURE__ */ d(Au, { className: Ot.dialogTitle, children: n }),
|
|
1817
1849
|
t
|
|
1818
1850
|
]
|
|
1819
1851
|
}
|
|
1820
1852
|
)
|
|
1821
1853
|
] })
|
|
1822
|
-
] }),
|
|
1823
|
-
emptyState:
|
|
1824
|
-
},
|
|
1854
|
+
] }), Lu = "_emptyState_nzjhq_1", Fu = {
|
|
1855
|
+
emptyState: Lu
|
|
1856
|
+
}, _v = ({ title: e, description: t, ...n }) => /* @__PURE__ */ K("div", { className: Fu.emptyState, ...n, children: [
|
|
1825
1857
|
/* @__PURE__ */ d("h2", { className: "header-2", children: e }),
|
|
1826
1858
|
t && /* @__PURE__ */ d("p", { className: "subtitle-2", children: t })
|
|
1827
|
-
] }),
|
|
1828
|
-
container:
|
|
1829
|
-
label:
|
|
1830
|
-
inputWrapper:
|
|
1831
|
-
input:
|
|
1832
|
-
startIcon:
|
|
1833
|
-
endIcon:
|
|
1834
|
-
error:
|
|
1835
|
-
helperText:
|
|
1836
|
-
},
|
|
1859
|
+
] }), $u = "_container_swxkv_1", Bu = "_label_swxkv_8", Wu = "_inputWrapper_swxkv_15", Hu = "_input_swxkv_15", Vu = "_startIcon_swxkv_68", Ku = "_endIcon_swxkv_69", Uu = "_error_swxkv_88", Gu = "_helperText_swxkv_94", Pe = {
|
|
1860
|
+
container: $u,
|
|
1861
|
+
label: Bu,
|
|
1862
|
+
inputWrapper: Wu,
|
|
1863
|
+
input: Hu,
|
|
1864
|
+
startIcon: Vu,
|
|
1865
|
+
endIcon: Ku,
|
|
1866
|
+
error: Uu,
|
|
1867
|
+
helperText: Gu
|
|
1868
|
+
}, zu = $(
|
|
1837
1869
|
({ className: e, label: t, error: n, helperText: o, startIcon: r, endIcon: a, id: i, ...c }, l) => {
|
|
1838
|
-
const u = Zn(), f = i || u, p = o ? `${f}-helper-text` : void 0, h = n ? `${f}-error` : void 0, g = r ?
|
|
1870
|
+
const u = Zn(), f = i || u, p = o ? `${f}-helper-text` : void 0, h = n ? `${f}-error` : void 0, g = r ? dt[r] : void 0, w = a ? dt[a] : void 0;
|
|
1839
1871
|
return /* @__PURE__ */ K("div", { className: `${Pe.container} ${e ?? ""}`, children: [
|
|
1840
1872
|
t && /* @__PURE__ */ d("label", { htmlFor: f, className: Pe.label, children: t }),
|
|
1841
1873
|
/* @__PURE__ */ K("div", { className: Pe.inputWrapper, children: [
|
|
@@ -1861,7 +1893,7 @@ const _u = "_dialogOverlay_1qzfk_1", Pu = "_dialogContent_1qzfk_20", Tu = "_dial
|
|
|
1861
1893
|
] });
|
|
1862
1894
|
}
|
|
1863
1895
|
);
|
|
1864
|
-
|
|
1896
|
+
zu.displayName = "Input";
|
|
1865
1897
|
function en(e) {
|
|
1866
1898
|
const t = e + "CollectionProvider", [n, o] = me(t), [r, a] = n(
|
|
1867
1899
|
t,
|
|
@@ -1902,20 +1934,20 @@ function en(e) {
|
|
|
1902
1934
|
o
|
|
1903
1935
|
];
|
|
1904
1936
|
}
|
|
1905
|
-
var
|
|
1937
|
+
var ju = s.createContext(void 0);
|
|
1906
1938
|
function ro(e) {
|
|
1907
|
-
const t = s.useContext(
|
|
1939
|
+
const t = s.useContext(ju);
|
|
1908
1940
|
return e || t || "ltr";
|
|
1909
1941
|
}
|
|
1910
|
-
const
|
|
1942
|
+
const Yu = ["top", "right", "bottom", "left"], Ae = Math.min, ae = Math.max, Wt = Math.round, kt = Math.floor, ye = (e) => ({
|
|
1911
1943
|
x: e,
|
|
1912
1944
|
y: e
|
|
1913
|
-
}),
|
|
1945
|
+
}), Xu = {
|
|
1914
1946
|
left: "right",
|
|
1915
1947
|
right: "left",
|
|
1916
1948
|
bottom: "top",
|
|
1917
1949
|
top: "bottom"
|
|
1918
|
-
},
|
|
1950
|
+
}, qu = {
|
|
1919
1951
|
start: "end",
|
|
1920
1952
|
end: "start"
|
|
1921
1953
|
};
|
|
@@ -1937,48 +1969,48 @@ function so(e) {
|
|
|
1937
1969
|
function ao(e) {
|
|
1938
1970
|
return e === "y" ? "height" : "width";
|
|
1939
1971
|
}
|
|
1940
|
-
const
|
|
1972
|
+
const Zu = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1941
1973
|
function we(e) {
|
|
1942
|
-
return
|
|
1974
|
+
return Zu.has(_e(e)) ? "y" : "x";
|
|
1943
1975
|
}
|
|
1944
1976
|
function io(e) {
|
|
1945
1977
|
return so(we(e));
|
|
1946
1978
|
}
|
|
1947
|
-
function
|
|
1979
|
+
function Qu(e, t, n) {
|
|
1948
1980
|
n === void 0 && (n = !1);
|
|
1949
1981
|
const o = ot(e), r = io(e), a = ao(r);
|
|
1950
1982
|
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1951
|
-
return t.reference[a] > t.floating[a] && (i =
|
|
1983
|
+
return t.reference[a] > t.floating[a] && (i = Ht(i)), [i, Ht(i)];
|
|
1952
1984
|
}
|
|
1953
|
-
function
|
|
1954
|
-
const t =
|
|
1985
|
+
function Ju(e) {
|
|
1986
|
+
const t = Ht(e);
|
|
1955
1987
|
return [Fn(e), t, Fn(t)];
|
|
1956
1988
|
}
|
|
1957
1989
|
function Fn(e) {
|
|
1958
|
-
return e.replace(/start|end/g, (t) =>
|
|
1990
|
+
return e.replace(/start|end/g, (t) => qu[t]);
|
|
1959
1991
|
}
|
|
1960
|
-
const Ko = ["left", "right"], Uo = ["right", "left"],
|
|
1961
|
-
function
|
|
1992
|
+
const Ko = ["left", "right"], Uo = ["right", "left"], ed = ["top", "bottom"], td = ["bottom", "top"];
|
|
1993
|
+
function nd(e, t, n) {
|
|
1962
1994
|
switch (e) {
|
|
1963
1995
|
case "top":
|
|
1964
1996
|
case "bottom":
|
|
1965
1997
|
return n ? t ? Uo : Ko : t ? Ko : Uo;
|
|
1966
1998
|
case "left":
|
|
1967
1999
|
case "right":
|
|
1968
|
-
return t ?
|
|
2000
|
+
return t ? ed : td;
|
|
1969
2001
|
default:
|
|
1970
2002
|
return [];
|
|
1971
2003
|
}
|
|
1972
2004
|
}
|
|
1973
|
-
function
|
|
2005
|
+
function od(e, t, n, o) {
|
|
1974
2006
|
const r = ot(e);
|
|
1975
|
-
let a =
|
|
2007
|
+
let a = nd(_e(e), n === "start", o);
|
|
1976
2008
|
return r && (a = a.map((i) => i + "-" + r), t && (a = a.concat(a.map(Fn)))), a;
|
|
1977
2009
|
}
|
|
1978
|
-
function
|
|
1979
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
2010
|
+
function Ht(e) {
|
|
2011
|
+
return e.replace(/left|right|bottom|top/g, (t) => Xu[t]);
|
|
1980
2012
|
}
|
|
1981
|
-
function
|
|
2013
|
+
function rd(e) {
|
|
1982
2014
|
return {
|
|
1983
2015
|
top: 0,
|
|
1984
2016
|
right: 0,
|
|
@@ -1988,14 +2020,14 @@ function Qu(e) {
|
|
|
1988
2020
|
};
|
|
1989
2021
|
}
|
|
1990
2022
|
function Ur(e) {
|
|
1991
|
-
return typeof e != "number" ?
|
|
2023
|
+
return typeof e != "number" ? rd(e) : {
|
|
1992
2024
|
top: e,
|
|
1993
2025
|
right: e,
|
|
1994
2026
|
bottom: e,
|
|
1995
2027
|
left: e
|
|
1996
2028
|
};
|
|
1997
2029
|
}
|
|
1998
|
-
function
|
|
2030
|
+
function Vt(e) {
|
|
1999
2031
|
const {
|
|
2000
2032
|
x: t,
|
|
2001
2033
|
y: n,
|
|
@@ -2061,7 +2093,7 @@ function Go(e, t, n) {
|
|
|
2061
2093
|
}
|
|
2062
2094
|
return g;
|
|
2063
2095
|
}
|
|
2064
|
-
const
|
|
2096
|
+
const sd = async (e, t, n) => {
|
|
2065
2097
|
const {
|
|
2066
2098
|
placement: o = "bottom",
|
|
2067
2099
|
strategy: r = "absolute",
|
|
@@ -2122,7 +2154,7 @@ const Ju = async (e, t, n) => {
|
|
|
2122
2154
|
middlewareData: g
|
|
2123
2155
|
};
|
|
2124
2156
|
};
|
|
2125
|
-
async function
|
|
2157
|
+
async function ft(e, t) {
|
|
2126
2158
|
var n;
|
|
2127
2159
|
t === void 0 && (t = {});
|
|
2128
2160
|
const {
|
|
@@ -2138,7 +2170,7 @@ async function dt(e, t) {
|
|
|
2138
2170
|
elementContext: p = "floating",
|
|
2139
2171
|
altBoundary: h = !1,
|
|
2140
2172
|
padding: g = 0
|
|
2141
|
-
} = Re(t, e), w = Ur(g), v = c[h ? p === "floating" ? "reference" : "floating" : p], C =
|
|
2173
|
+
} = Re(t, e), w = Ur(g), v = c[h ? p === "floating" ? "reference" : "floating" : p], C = Vt(await a.getClippingRect({
|
|
2142
2174
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
|
|
2143
2175
|
boundary: u,
|
|
2144
2176
|
rootBoundary: f,
|
|
@@ -2154,7 +2186,7 @@ async function dt(e, t) {
|
|
|
2154
2186
|
} : {
|
|
2155
2187
|
x: 1,
|
|
2156
2188
|
y: 1
|
|
2157
|
-
}, E =
|
|
2189
|
+
}, E = Vt(a.convertOffsetParentRelativeRectToViewportRelativeRect ? await a.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
2158
2190
|
elements: c,
|
|
2159
2191
|
rect: y,
|
|
2160
2192
|
offsetParent: b,
|
|
@@ -2167,7 +2199,7 @@ async function dt(e, t) {
|
|
|
2167
2199
|
right: (E.right - C.right + w.right) / x.x
|
|
2168
2200
|
};
|
|
2169
2201
|
}
|
|
2170
|
-
const
|
|
2202
|
+
const ad = (e) => ({
|
|
2171
2203
|
name: "arrow",
|
|
2172
2204
|
options: e,
|
|
2173
2205
|
async fn(t) {
|
|
@@ -2191,12 +2223,12 @@ const ed = (e) => ({
|
|
|
2191
2223
|
}, g = io(r), w = ao(g), m = await i.getDimensions(u), v = g === "y", C = v ? "top" : "left", y = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", x = a.reference[w] + a.reference[g] - h[g] - a.floating[w], E = h[g] - a.reference[g], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
2192
2224
|
let S = T ? T[b] : 0;
|
|
2193
2225
|
(!S || !await (i.isElement == null ? void 0 : i.isElement(T))) && (S = c.floating[b] || a.floating[w]);
|
|
2194
|
-
const A = x / 2 - E / 2, D = S / 2 - m[w] / 2 - 1, k = Ae(p[C], D), L = Ae(p[y], D),
|
|
2226
|
+
const A = x / 2 - E / 2, D = S / 2 - m[w] / 2 - 1, k = Ae(p[C], D), L = Ae(p[y], D), W = k, H = S - m[w] - L, P = S / 2 - m[w] / 2 + A, B = Ln(W, P, H), N = !l.arrow && ot(r) != null && P !== B && a.reference[w] / 2 - (P < W ? k : L) - m[w] / 2 < 0, F = N ? P < W ? P - W : P - H : 0;
|
|
2195
2227
|
return {
|
|
2196
2228
|
[g]: h[g] + F,
|
|
2197
2229
|
data: {
|
|
2198
|
-
[g]:
|
|
2199
|
-
centerOffset: P -
|
|
2230
|
+
[g]: B,
|
|
2231
|
+
centerOffset: P - B - F,
|
|
2200
2232
|
...N && {
|
|
2201
2233
|
alignmentOffset: F
|
|
2202
2234
|
}
|
|
@@ -2204,7 +2236,7 @@ const ed = (e) => ({
|
|
|
2204
2236
|
reset: N
|
|
2205
2237
|
};
|
|
2206
2238
|
}
|
|
2207
|
-
}),
|
|
2239
|
+
}), id = function(e) {
|
|
2208
2240
|
return e === void 0 && (e = {}), {
|
|
2209
2241
|
name: "flip",
|
|
2210
2242
|
options: e,
|
|
@@ -2228,21 +2260,21 @@ const ed = (e) => ({
|
|
|
2228
2260
|
} = Re(e, t);
|
|
2229
2261
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
2230
2262
|
return {};
|
|
2231
|
-
const C = _e(r), y = we(c), b = _e(c) === c, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = h || (b || !m ? [
|
|
2232
|
-
!h && T && E.push(...
|
|
2233
|
-
const S = [c, ...E], A = await
|
|
2263
|
+
const C = _e(r), y = we(c), b = _e(c) === c, x = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), E = h || (b || !m ? [Ht(c)] : Ju(c)), T = w !== "none";
|
|
2264
|
+
!h && T && E.push(...od(c, m, w, x));
|
|
2265
|
+
const S = [c, ...E], A = await ft(t, v), D = [];
|
|
2234
2266
|
let k = ((o = a.flip) == null ? void 0 : o.overflows) || [];
|
|
2235
2267
|
if (f && D.push(A[C]), p) {
|
|
2236
|
-
const P =
|
|
2268
|
+
const P = Qu(r, i, x);
|
|
2237
2269
|
D.push(A[P[0]], A[P[1]]);
|
|
2238
2270
|
}
|
|
2239
2271
|
if (k = [...k, {
|
|
2240
2272
|
placement: r,
|
|
2241
2273
|
overflows: D
|
|
2242
2274
|
}], !D.every((P) => P <= 0)) {
|
|
2243
|
-
var L,
|
|
2244
|
-
const P = (((L = a.flip) == null ? void 0 : L.index) || 0) + 1,
|
|
2245
|
-
if (
|
|
2275
|
+
var L, W;
|
|
2276
|
+
const P = (((L = a.flip) == null ? void 0 : L.index) || 0) + 1, B = S[P];
|
|
2277
|
+
if (B && (!(p === "alignment" ? y !== we(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2246
2278
|
// overflows the main axis.
|
|
2247
2279
|
k.every((I) => we(I.placement) === y ? I.overflows[0] > 0 : !0)))
|
|
2248
2280
|
return {
|
|
@@ -2251,15 +2283,15 @@ const ed = (e) => ({
|
|
|
2251
2283
|
overflows: k
|
|
2252
2284
|
},
|
|
2253
2285
|
reset: {
|
|
2254
|
-
placement:
|
|
2286
|
+
placement: B
|
|
2255
2287
|
}
|
|
2256
2288
|
};
|
|
2257
|
-
let N = (
|
|
2289
|
+
let N = (W = k.filter((F) => F.overflows[0] <= 0).sort((F, I) => F.overflows[1] - I.overflows[1])[0]) == null ? void 0 : W.placement;
|
|
2258
2290
|
if (!N)
|
|
2259
2291
|
switch (g) {
|
|
2260
2292
|
case "bestFit": {
|
|
2261
|
-
var
|
|
2262
|
-
const F = (
|
|
2293
|
+
var H;
|
|
2294
|
+
const F = (H = k.filter((I) => {
|
|
2263
2295
|
if (T) {
|
|
2264
2296
|
const _ = we(I.placement);
|
|
2265
2297
|
return _ === y || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2267,7 +2299,7 @@ const ed = (e) => ({
|
|
|
2267
2299
|
_ === "y";
|
|
2268
2300
|
}
|
|
2269
2301
|
return !0;
|
|
2270
|
-
}).map((I) => [I.placement, I.overflows.filter((_) => _ > 0).reduce((_, Y) => _ + Y, 0)]).sort((I, _) => I[1] - _[1])[0]) == null ? void 0 :
|
|
2302
|
+
}).map((I) => [I.placement, I.overflows.filter((_) => _ > 0).reduce((_, Y) => _ + Y, 0)]).sort((I, _) => I[1] - _[1])[0]) == null ? void 0 : H[0];
|
|
2271
2303
|
F && (N = F);
|
|
2272
2304
|
break;
|
|
2273
2305
|
}
|
|
@@ -2295,9 +2327,9 @@ function zo(e, t) {
|
|
|
2295
2327
|
};
|
|
2296
2328
|
}
|
|
2297
2329
|
function jo(e) {
|
|
2298
|
-
return
|
|
2330
|
+
return Yu.some((t) => e[t] >= 0);
|
|
2299
2331
|
}
|
|
2300
|
-
const
|
|
2332
|
+
const cd = function(e) {
|
|
2301
2333
|
return e === void 0 && (e = {}), {
|
|
2302
2334
|
name: "hide",
|
|
2303
2335
|
options: e,
|
|
@@ -2310,7 +2342,7 @@ const nd = function(e) {
|
|
|
2310
2342
|
} = Re(e, t);
|
|
2311
2343
|
switch (o) {
|
|
2312
2344
|
case "referenceHidden": {
|
|
2313
|
-
const a = await
|
|
2345
|
+
const a = await ft(t, {
|
|
2314
2346
|
...r,
|
|
2315
2347
|
elementContext: "reference"
|
|
2316
2348
|
}), i = zo(a, n.reference);
|
|
@@ -2322,7 +2354,7 @@ const nd = function(e) {
|
|
|
2322
2354
|
};
|
|
2323
2355
|
}
|
|
2324
2356
|
case "escaped": {
|
|
2325
|
-
const a = await
|
|
2357
|
+
const a = await ft(t, {
|
|
2326
2358
|
...r,
|
|
2327
2359
|
altBoundary: !0
|
|
2328
2360
|
}), i = zo(a, n.floating);
|
|
@@ -2339,7 +2371,7 @@ const nd = function(e) {
|
|
|
2339
2371
|
}
|
|
2340
2372
|
};
|
|
2341
2373
|
}, Gr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2342
|
-
async function
|
|
2374
|
+
async function ld(e, t) {
|
|
2343
2375
|
const {
|
|
2344
2376
|
placement: n,
|
|
2345
2377
|
platform: o,
|
|
@@ -2366,7 +2398,7 @@ async function od(e, t) {
|
|
|
2366
2398
|
y: g * f
|
|
2367
2399
|
};
|
|
2368
2400
|
}
|
|
2369
|
-
const
|
|
2401
|
+
const ud = function(e) {
|
|
2370
2402
|
return e === void 0 && (e = 0), {
|
|
2371
2403
|
name: "offset",
|
|
2372
2404
|
options: e,
|
|
@@ -2377,7 +2409,7 @@ const rd = function(e) {
|
|
|
2377
2409
|
y: a,
|
|
2378
2410
|
placement: i,
|
|
2379
2411
|
middlewareData: c
|
|
2380
|
-
} = t, l = await
|
|
2412
|
+
} = t, l = await ld(t, e);
|
|
2381
2413
|
return i === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
2382
2414
|
x: r + l.x,
|
|
2383
2415
|
y: a + l.y,
|
|
@@ -2388,7 +2420,7 @@ const rd = function(e) {
|
|
|
2388
2420
|
};
|
|
2389
2421
|
}
|
|
2390
2422
|
};
|
|
2391
|
-
},
|
|
2423
|
+
}, dd = function(e) {
|
|
2392
2424
|
return e === void 0 && (e = {}), {
|
|
2393
2425
|
name: "shift",
|
|
2394
2426
|
options: e,
|
|
@@ -2416,7 +2448,7 @@ const rd = function(e) {
|
|
|
2416
2448
|
} = Re(e, t), u = {
|
|
2417
2449
|
x: n,
|
|
2418
2450
|
y: o
|
|
2419
|
-
}, f = await
|
|
2451
|
+
}, f = await ft(t, l), p = we(_e(r)), h = so(p);
|
|
2420
2452
|
let g = u[h], w = u[p];
|
|
2421
2453
|
if (a) {
|
|
2422
2454
|
const v = h === "y" ? "top" : "left", C = h === "y" ? "bottom" : "right", y = g + f[v], b = g - f[C];
|
|
@@ -2444,7 +2476,7 @@ const rd = function(e) {
|
|
|
2444
2476
|
};
|
|
2445
2477
|
}
|
|
2446
2478
|
};
|
|
2447
|
-
},
|
|
2479
|
+
}, fd = function(e) {
|
|
2448
2480
|
return e === void 0 && (e = {}), {
|
|
2449
2481
|
options: e,
|
|
2450
2482
|
fn(t) {
|
|
@@ -2486,7 +2518,7 @@ const rd = function(e) {
|
|
|
2486
2518
|
};
|
|
2487
2519
|
}
|
|
2488
2520
|
};
|
|
2489
|
-
},
|
|
2521
|
+
}, pd = function(e) {
|
|
2490
2522
|
return e === void 0 && (e = {}), {
|
|
2491
2523
|
name: "size",
|
|
2492
2524
|
options: e,
|
|
@@ -2501,7 +2533,7 @@ const rd = function(e) {
|
|
|
2501
2533
|
apply: l = () => {
|
|
2502
2534
|
},
|
|
2503
2535
|
...u
|
|
2504
|
-
} = Re(e, t), f = await
|
|
2536
|
+
} = Re(e, t), f = await ft(t, u), p = _e(r), h = ot(r), g = we(r) === "y", {
|
|
2505
2537
|
width: w,
|
|
2506
2538
|
height: m
|
|
2507
2539
|
} = a.floating;
|
|
@@ -2510,8 +2542,8 @@ const rd = function(e) {
|
|
|
2510
2542
|
const y = m - f.top - f.bottom, b = w - f.left - f.right, x = Ae(m - f[v], y), E = Ae(w - f[C], b), T = !t.middlewareData.shift;
|
|
2511
2543
|
let S = x, A = E;
|
|
2512
2544
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (A = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = y), T && !h) {
|
|
2513
|
-
const k = ae(f.left, 0), L = ae(f.right, 0),
|
|
2514
|
-
g ? A = w - 2 * (k !== 0 || L !== 0 ? k + L : ae(f.left, f.right)) : S = m - 2 * (
|
|
2545
|
+
const k = ae(f.left, 0), L = ae(f.right, 0), W = ae(f.top, 0), H = ae(f.bottom, 0);
|
|
2546
|
+
g ? A = w - 2 * (k !== 0 || L !== 0 ? k + L : ae(f.left, f.right)) : S = m - 2 * (W !== 0 || H !== 0 ? W + H : ae(f.top, f.bottom));
|
|
2515
2547
|
}
|
|
2516
2548
|
await l({
|
|
2517
2549
|
...t,
|
|
@@ -2553,23 +2585,23 @@ function be(e) {
|
|
|
2553
2585
|
function Yo(e) {
|
|
2554
2586
|
return !tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ie(e).ShadowRoot;
|
|
2555
2587
|
}
|
|
2556
|
-
const
|
|
2557
|
-
function
|
|
2588
|
+
const md = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2589
|
+
function Ct(e) {
|
|
2558
2590
|
const {
|
|
2559
2591
|
overflow: t,
|
|
2560
2592
|
overflowX: n,
|
|
2561
2593
|
overflowY: o,
|
|
2562
2594
|
display: r
|
|
2563
2595
|
} = pe(e);
|
|
2564
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
2596
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !md.has(r);
|
|
2565
2597
|
}
|
|
2566
|
-
const
|
|
2567
|
-
function
|
|
2568
|
-
return
|
|
2598
|
+
const hd = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
2599
|
+
function vd(e) {
|
|
2600
|
+
return hd.has(rt(e));
|
|
2569
2601
|
}
|
|
2570
|
-
const
|
|
2602
|
+
const gd = [":popover-open", ":modal"];
|
|
2571
2603
|
function nn(e) {
|
|
2572
|
-
return
|
|
2604
|
+
return gd.some((t) => {
|
|
2573
2605
|
try {
|
|
2574
2606
|
return e.matches(t);
|
|
2575
2607
|
} catch {
|
|
@@ -2577,12 +2609,12 @@ function nn(e) {
|
|
|
2577
2609
|
}
|
|
2578
2610
|
});
|
|
2579
2611
|
}
|
|
2580
|
-
const
|
|
2612
|
+
const wd = ["transform", "translate", "scale", "rotate", "perspective"], yd = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Cd = ["paint", "layout", "strict", "content"];
|
|
2581
2613
|
function co(e) {
|
|
2582
2614
|
const t = lo(), n = fe(e) ? pe(e) : e;
|
|
2583
|
-
return
|
|
2615
|
+
return wd.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) || yd.some((o) => (n.willChange || "").includes(o)) || Cd.some((o) => (n.contain || "").includes(o));
|
|
2584
2616
|
}
|
|
2585
|
-
function
|
|
2617
|
+
function bd(e) {
|
|
2586
2618
|
let t = Ie(e);
|
|
2587
2619
|
for (; be(t) && !et(t); ) {
|
|
2588
2620
|
if (co(t))
|
|
@@ -2596,9 +2628,9 @@ function hd(e) {
|
|
|
2596
2628
|
function lo() {
|
|
2597
2629
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2598
2630
|
}
|
|
2599
|
-
const
|
|
2631
|
+
const xd = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2600
2632
|
function et(e) {
|
|
2601
|
-
return
|
|
2633
|
+
return xd.has(rt(e));
|
|
2602
2634
|
}
|
|
2603
2635
|
function pe(e) {
|
|
2604
2636
|
return ie(e).getComputedStyle(e);
|
|
@@ -2626,17 +2658,17 @@ function Ie(e) {
|
|
|
2626
2658
|
}
|
|
2627
2659
|
function jr(e) {
|
|
2628
2660
|
const t = Ie(e);
|
|
2629
|
-
return et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) &&
|
|
2661
|
+
return et(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && Ct(t) ? t : jr(t);
|
|
2630
2662
|
}
|
|
2631
|
-
function
|
|
2663
|
+
function pt(e, t, n) {
|
|
2632
2664
|
var o;
|
|
2633
2665
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2634
2666
|
const r = jr(e), a = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = ie(r);
|
|
2635
2667
|
if (a) {
|
|
2636
2668
|
const c = $n(i);
|
|
2637
|
-
return t.concat(i, i.visualViewport || [],
|
|
2669
|
+
return t.concat(i, i.visualViewport || [], Ct(r) ? r : [], c && n ? pt(c) : []);
|
|
2638
2670
|
}
|
|
2639
|
-
return t.concat(r,
|
|
2671
|
+
return t.concat(r, pt(r, [], n));
|
|
2640
2672
|
}
|
|
2641
2673
|
function $n(e) {
|
|
2642
2674
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -2644,7 +2676,7 @@ function $n(e) {
|
|
|
2644
2676
|
function Yr(e) {
|
|
2645
2677
|
const t = pe(e);
|
|
2646
2678
|
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
2647
|
-
const r = be(e), a = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, c =
|
|
2679
|
+
const r = be(e), a = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, c = Wt(n) !== a || Wt(o) !== i;
|
|
2648
2680
|
return c && (n = a, o = i), {
|
|
2649
2681
|
width: n,
|
|
2650
2682
|
height: o,
|
|
@@ -2663,21 +2695,21 @@ function Je(e) {
|
|
|
2663
2695
|
height: r,
|
|
2664
2696
|
$: a
|
|
2665
2697
|
} = Yr(t);
|
|
2666
|
-
let i = (a ?
|
|
2698
|
+
let i = (a ? Wt(n.width) : n.width) / o, c = (a ? Wt(n.height) : n.height) / r;
|
|
2667
2699
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
2668
2700
|
x: i,
|
|
2669
2701
|
y: c
|
|
2670
2702
|
};
|
|
2671
2703
|
}
|
|
2672
|
-
const
|
|
2704
|
+
const Ed = /* @__PURE__ */ ye(0);
|
|
2673
2705
|
function Xr(e) {
|
|
2674
2706
|
const t = ie(e);
|
|
2675
|
-
return !lo() || !t.visualViewport ?
|
|
2707
|
+
return !lo() || !t.visualViewport ? Ed : {
|
|
2676
2708
|
x: t.visualViewport.offsetLeft,
|
|
2677
2709
|
y: t.visualViewport.offsetTop
|
|
2678
2710
|
};
|
|
2679
2711
|
}
|
|
2680
|
-
function
|
|
2712
|
+
function Sd(e, t, n) {
|
|
2681
2713
|
return t === void 0 && (t = !1), !n || t && n !== ie(e) ? !1 : t;
|
|
2682
2714
|
}
|
|
2683
2715
|
function We(e, t, n, o) {
|
|
@@ -2685,7 +2717,7 @@ function We(e, t, n, o) {
|
|
|
2685
2717
|
const r = e.getBoundingClientRect(), a = uo(e);
|
|
2686
2718
|
let i = ye(1);
|
|
2687
2719
|
t && (o ? fe(o) && (i = Je(o)) : i = Je(e));
|
|
2688
|
-
const c =
|
|
2720
|
+
const c = Sd(a, n, o) ? Xr(a) : ye(0);
|
|
2689
2721
|
let l = (r.left + c.x) / i.x, u = (r.top + c.y) / i.y, f = r.width / i.x, p = r.height / i.y;
|
|
2690
2722
|
if (a) {
|
|
2691
2723
|
const h = ie(a), g = o && fe(o) ? ie(o) : o;
|
|
@@ -2695,7 +2727,7 @@ function We(e, t, n, o) {
|
|
|
2695
2727
|
l *= v.x, u *= v.y, f *= v.x, p *= v.y, l += b, u += x, w = ie(m), m = $n(w);
|
|
2696
2728
|
}
|
|
2697
2729
|
}
|
|
2698
|
-
return
|
|
2730
|
+
return Vt({
|
|
2699
2731
|
width: f,
|
|
2700
2732
|
height: p,
|
|
2701
2733
|
x: l,
|
|
@@ -2713,7 +2745,7 @@ function qr(e, t) {
|
|
|
2713
2745
|
y: r
|
|
2714
2746
|
};
|
|
2715
2747
|
}
|
|
2716
|
-
function
|
|
2748
|
+
function Rd(e) {
|
|
2717
2749
|
let {
|
|
2718
2750
|
elements: t,
|
|
2719
2751
|
rect: n,
|
|
@@ -2728,7 +2760,7 @@ function yd(e) {
|
|
|
2728
2760
|
scrollTop: 0
|
|
2729
2761
|
}, u = ye(1);
|
|
2730
2762
|
const f = ye(0), p = be(o);
|
|
2731
|
-
if ((p || !p && !a) && ((rt(o) !== "body" ||
|
|
2763
|
+
if ((p || !p && !a) && ((rt(o) !== "body" || Ct(i)) && (l = on(o)), be(o))) {
|
|
2732
2764
|
const g = We(o);
|
|
2733
2765
|
u = Je(o), f.x = g.x + o.clientLeft, f.y = g.y + o.clientTop;
|
|
2734
2766
|
}
|
|
@@ -2740,10 +2772,10 @@ function yd(e) {
|
|
|
2740
2772
|
y: n.y * u.y - l.scrollTop * u.y + f.y + h.y
|
|
2741
2773
|
};
|
|
2742
2774
|
}
|
|
2743
|
-
function
|
|
2775
|
+
function _d(e) {
|
|
2744
2776
|
return Array.from(e.getClientRects());
|
|
2745
2777
|
}
|
|
2746
|
-
function
|
|
2778
|
+
function Pd(e) {
|
|
2747
2779
|
const t = xe(e), n = on(e), o = e.ownerDocument.body, r = ae(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), a = ae(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2748
2780
|
let i = -n.scrollLeft + rn(e);
|
|
2749
2781
|
const c = -n.scrollTop;
|
|
@@ -2755,7 +2787,7 @@ function bd(e) {
|
|
|
2755
2787
|
};
|
|
2756
2788
|
}
|
|
2757
2789
|
const Xo = 25;
|
|
2758
|
-
function
|
|
2790
|
+
function Td(e, t) {
|
|
2759
2791
|
const n = ie(e), o = xe(e), r = n.visualViewport;
|
|
2760
2792
|
let a = o.clientWidth, i = o.clientHeight, c = 0, l = 0;
|
|
2761
2793
|
if (r) {
|
|
@@ -2775,8 +2807,8 @@ function xd(e, t) {
|
|
|
2775
2807
|
y: l
|
|
2776
2808
|
};
|
|
2777
2809
|
}
|
|
2778
|
-
const
|
|
2779
|
-
function
|
|
2810
|
+
const Md = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2811
|
+
function Ad(e, t) {
|
|
2780
2812
|
const n = We(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, a = be(e) ? Je(e) : ye(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, l = r * a.x, u = o * a.y;
|
|
2781
2813
|
return {
|
|
2782
2814
|
width: i,
|
|
@@ -2788,11 +2820,11 @@ function Sd(e, t) {
|
|
|
2788
2820
|
function qo(e, t, n) {
|
|
2789
2821
|
let o;
|
|
2790
2822
|
if (t === "viewport")
|
|
2791
|
-
o =
|
|
2823
|
+
o = Td(e, n);
|
|
2792
2824
|
else if (t === "document")
|
|
2793
|
-
o =
|
|
2825
|
+
o = Pd(xe(e));
|
|
2794
2826
|
else if (fe(t))
|
|
2795
|
-
o =
|
|
2827
|
+
o = Ad(t, n);
|
|
2796
2828
|
else {
|
|
2797
2829
|
const r = Xr(e);
|
|
2798
2830
|
o = {
|
|
@@ -2802,33 +2834,33 @@ function qo(e, t, n) {
|
|
|
2802
2834
|
height: t.height
|
|
2803
2835
|
};
|
|
2804
2836
|
}
|
|
2805
|
-
return
|
|
2837
|
+
return Vt(o);
|
|
2806
2838
|
}
|
|
2807
2839
|
function Zr(e, t) {
|
|
2808
2840
|
const n = Ie(e);
|
|
2809
2841
|
return n === t || !fe(n) || et(n) ? !1 : pe(n).position === "fixed" || Zr(n, t);
|
|
2810
2842
|
}
|
|
2811
|
-
function
|
|
2843
|
+
function Id(e, t) {
|
|
2812
2844
|
const n = t.get(e);
|
|
2813
2845
|
if (n)
|
|
2814
2846
|
return n;
|
|
2815
|
-
let o =
|
|
2847
|
+
let o = pt(e, [], !1).filter((c) => fe(c) && rt(c) !== "body"), r = null;
|
|
2816
2848
|
const a = pe(e).position === "fixed";
|
|
2817
2849
|
let i = a ? Ie(e) : e;
|
|
2818
2850
|
for (; fe(i) && !et(i); ) {
|
|
2819
2851
|
const c = pe(i), l = co(i);
|
|
2820
|
-
!l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r &&
|
|
2852
|
+
!l && c.position === "fixed" && (r = null), (a ? !l && !r : !l && c.position === "static" && !!r && Md.has(r.position) || Ct(i) && !l && Zr(e, i)) ? o = o.filter((f) => f !== i) : r = c, i = Ie(i);
|
|
2821
2853
|
}
|
|
2822
2854
|
return t.set(e, o), o;
|
|
2823
2855
|
}
|
|
2824
|
-
function
|
|
2856
|
+
function Nd(e) {
|
|
2825
2857
|
let {
|
|
2826
2858
|
element: t,
|
|
2827
2859
|
boundary: n,
|
|
2828
2860
|
rootBoundary: o,
|
|
2829
2861
|
strategy: r
|
|
2830
2862
|
} = e;
|
|
2831
|
-
const i = [...n === "clippingAncestors" ? nn(t) ? [] :
|
|
2863
|
+
const i = [...n === "clippingAncestors" ? nn(t) ? [] : Id(t, this._c) : [].concat(n), o], c = i[0], l = i.reduce((u, f) => {
|
|
2832
2864
|
const p = qo(t, f, r);
|
|
2833
2865
|
return u.top = ae(p.top, u.top), u.right = Ae(p.right, u.right), u.bottom = Ae(p.bottom, u.bottom), u.left = ae(p.left, u.left), u;
|
|
2834
2866
|
}, qo(t, c, r));
|
|
@@ -2839,7 +2871,7 @@ function _d(e) {
|
|
|
2839
2871
|
y: l.top
|
|
2840
2872
|
};
|
|
2841
2873
|
}
|
|
2842
|
-
function
|
|
2874
|
+
function Od(e) {
|
|
2843
2875
|
const {
|
|
2844
2876
|
width: t,
|
|
2845
2877
|
height: n
|
|
@@ -2849,7 +2881,7 @@ function Pd(e) {
|
|
|
2849
2881
|
height: n
|
|
2850
2882
|
};
|
|
2851
2883
|
}
|
|
2852
|
-
function
|
|
2884
|
+
function kd(e, t, n) {
|
|
2853
2885
|
const o = be(t), r = xe(t), a = n === "fixed", i = We(e, !0, a, t);
|
|
2854
2886
|
let c = {
|
|
2855
2887
|
scrollLeft: 0,
|
|
@@ -2860,7 +2892,7 @@ function Td(e, t, n) {
|
|
|
2860
2892
|
l.x = rn(r);
|
|
2861
2893
|
}
|
|
2862
2894
|
if (o || !o && !a)
|
|
2863
|
-
if ((rt(t) !== "body" ||
|
|
2895
|
+
if ((rt(t) !== "body" || Ct(r)) && (c = on(t)), o) {
|
|
2864
2896
|
const g = We(t, !0, a, t);
|
|
2865
2897
|
l.x = g.x + t.clientLeft, l.y = g.y + t.clientTop;
|
|
2866
2898
|
} else r && u();
|
|
@@ -2898,14 +2930,14 @@ function Qr(e, t) {
|
|
|
2898
2930
|
return n;
|
|
2899
2931
|
}
|
|
2900
2932
|
let o = Zo(e, t);
|
|
2901
|
-
for (; o &&
|
|
2933
|
+
for (; o && vd(o) && An(o); )
|
|
2902
2934
|
o = Zo(o, t);
|
|
2903
|
-
return o && et(o) && An(o) && !co(o) ? n : o ||
|
|
2935
|
+
return o && et(o) && An(o) && !co(o) ? n : o || bd(e) || n;
|
|
2904
2936
|
}
|
|
2905
|
-
const
|
|
2937
|
+
const Dd = async function(e) {
|
|
2906
2938
|
const t = this.getOffsetParent || Qr, n = this.getDimensions, o = await n(e.floating);
|
|
2907
2939
|
return {
|
|
2908
|
-
reference:
|
|
2940
|
+
reference: kd(e.reference, await t(e.floating), e.strategy),
|
|
2909
2941
|
floating: {
|
|
2910
2942
|
x: 0,
|
|
2911
2943
|
y: 0,
|
|
@@ -2914,25 +2946,25 @@ const Md = async function(e) {
|
|
|
2914
2946
|
}
|
|
2915
2947
|
};
|
|
2916
2948
|
};
|
|
2917
|
-
function
|
|
2949
|
+
function Ld(e) {
|
|
2918
2950
|
return pe(e).direction === "rtl";
|
|
2919
2951
|
}
|
|
2920
|
-
const
|
|
2921
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2952
|
+
const Fd = {
|
|
2953
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Rd,
|
|
2922
2954
|
getDocumentElement: xe,
|
|
2923
|
-
getClippingRect:
|
|
2955
|
+
getClippingRect: Nd,
|
|
2924
2956
|
getOffsetParent: Qr,
|
|
2925
|
-
getElementRects:
|
|
2926
|
-
getClientRects:
|
|
2927
|
-
getDimensions:
|
|
2957
|
+
getElementRects: Dd,
|
|
2958
|
+
getClientRects: _d,
|
|
2959
|
+
getDimensions: Od,
|
|
2928
2960
|
getScale: Je,
|
|
2929
2961
|
isElement: fe,
|
|
2930
|
-
isRTL:
|
|
2962
|
+
isRTL: Ld
|
|
2931
2963
|
};
|
|
2932
2964
|
function Jr(e, t) {
|
|
2933
2965
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2934
2966
|
}
|
|
2935
|
-
function
|
|
2967
|
+
function $d(e, t) {
|
|
2936
2968
|
let n = null, o;
|
|
2937
2969
|
const r = xe(e);
|
|
2938
2970
|
function a() {
|
|
@@ -2949,7 +2981,7 @@ function Nd(e, t) {
|
|
|
2949
2981
|
} = u;
|
|
2950
2982
|
if (c || t(), !h || !g)
|
|
2951
2983
|
return;
|
|
2952
|
-
const w =
|
|
2984
|
+
const w = kt(p), m = kt(r.clientWidth - (f + h)), v = kt(r.clientHeight - (p + g)), C = kt(f), b = {
|
|
2953
2985
|
rootMargin: -w + "px " + -m + "px " + -v + "px " + -C + "px",
|
|
2954
2986
|
threshold: ae(0, Ae(1, l)) || 1
|
|
2955
2987
|
};
|
|
@@ -2978,7 +3010,7 @@ function Nd(e, t) {
|
|
|
2978
3010
|
}
|
|
2979
3011
|
return i(!0), a;
|
|
2980
3012
|
}
|
|
2981
|
-
function
|
|
3013
|
+
function Bd(e, t, n, o) {
|
|
2982
3014
|
o === void 0 && (o = {});
|
|
2983
3015
|
const {
|
|
2984
3016
|
ancestorScroll: r = !0,
|
|
@@ -2986,13 +3018,13 @@ function Od(e, t, n, o) {
|
|
|
2986
3018
|
elementResize: i = typeof ResizeObserver == "function",
|
|
2987
3019
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
2988
3020
|
animationFrame: l = !1
|
|
2989
|
-
} = o, u = uo(e), f = r || a ? [...u ?
|
|
3021
|
+
} = o, u = uo(e), f = r || a ? [...u ? pt(u) : [], ...pt(t)] : [];
|
|
2990
3022
|
f.forEach((C) => {
|
|
2991
3023
|
r && C.addEventListener("scroll", n, {
|
|
2992
3024
|
passive: !0
|
|
2993
3025
|
}), a && C.addEventListener("resize", n);
|
|
2994
3026
|
});
|
|
2995
|
-
const p = u && c ?
|
|
3027
|
+
const p = u && c ? $d(u, n) : null;
|
|
2996
3028
|
let h = -1, g = null;
|
|
2997
3029
|
i && (g = new ResizeObserver((C) => {
|
|
2998
3030
|
let [y] = C;
|
|
@@ -3014,22 +3046,22 @@ function Od(e, t, n, o) {
|
|
|
3014
3046
|
}), p?.(), (C = g) == null || C.disconnect(), g = null, l && cancelAnimationFrame(w);
|
|
3015
3047
|
};
|
|
3016
3048
|
}
|
|
3017
|
-
const
|
|
3049
|
+
const Wd = ud, Hd = dd, Vd = id, Kd = pd, Ud = cd, Qo = ad, Gd = fd, zd = (e, t, n) => {
|
|
3018
3050
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
3019
|
-
platform:
|
|
3051
|
+
platform: Fd,
|
|
3020
3052
|
...n
|
|
3021
3053
|
}, a = {
|
|
3022
3054
|
...r.platform,
|
|
3023
3055
|
_c: o
|
|
3024
3056
|
};
|
|
3025
|
-
return
|
|
3057
|
+
return sd(e, t, {
|
|
3026
3058
|
...r,
|
|
3027
3059
|
platform: a
|
|
3028
3060
|
});
|
|
3029
3061
|
};
|
|
3030
|
-
var
|
|
3031
|
-
},
|
|
3032
|
-
function
|
|
3062
|
+
var jd = typeof document < "u", Yd = function() {
|
|
3063
|
+
}, $t = jd ? ti : Yd;
|
|
3064
|
+
function Kt(e, t) {
|
|
3033
3065
|
if (e === t)
|
|
3034
3066
|
return !0;
|
|
3035
3067
|
if (typeof e != typeof t)
|
|
@@ -3041,7 +3073,7 @@ function Vt(e, t) {
|
|
|
3041
3073
|
if (Array.isArray(e)) {
|
|
3042
3074
|
if (n = e.length, n !== t.length) return !1;
|
|
3043
3075
|
for (o = n; o-- !== 0; )
|
|
3044
|
-
if (!
|
|
3076
|
+
if (!Kt(e[o], t[o]))
|
|
3045
3077
|
return !1;
|
|
3046
3078
|
return !0;
|
|
3047
3079
|
}
|
|
@@ -3052,7 +3084,7 @@ function Vt(e, t) {
|
|
|
3052
3084
|
return !1;
|
|
3053
3085
|
for (o = n; o-- !== 0; ) {
|
|
3054
3086
|
const a = r[o];
|
|
3055
|
-
if (!(a === "_owner" && e.$$typeof) && !
|
|
3087
|
+
if (!(a === "_owner" && e.$$typeof) && !Kt(e[a], t[a]))
|
|
3056
3088
|
return !1;
|
|
3057
3089
|
}
|
|
3058
3090
|
return !0;
|
|
@@ -3068,11 +3100,11 @@ function Jo(e, t) {
|
|
|
3068
3100
|
}
|
|
3069
3101
|
function In(e) {
|
|
3070
3102
|
const t = s.useRef(e);
|
|
3071
|
-
return
|
|
3103
|
+
return $t(() => {
|
|
3072
3104
|
t.current = e;
|
|
3073
3105
|
}), t;
|
|
3074
3106
|
}
|
|
3075
|
-
function
|
|
3107
|
+
function Xd(e) {
|
|
3076
3108
|
e === void 0 && (e = {});
|
|
3077
3109
|
const {
|
|
3078
3110
|
placement: t = "bottom",
|
|
@@ -3094,12 +3126,12 @@ function Kd(e) {
|
|
|
3094
3126
|
middlewareData: {},
|
|
3095
3127
|
isPositioned: !1
|
|
3096
3128
|
}), [h, g] = s.useState(o);
|
|
3097
|
-
|
|
3129
|
+
Kt(h, o) || g(o);
|
|
3098
3130
|
const [w, m] = s.useState(null), [v, C] = s.useState(null), y = s.useCallback((I) => {
|
|
3099
3131
|
I !== T.current && (T.current = I, m(I));
|
|
3100
3132
|
}, []), b = s.useCallback((I) => {
|
|
3101
3133
|
I !== S.current && (S.current = I, C(I));
|
|
3102
|
-
}, []), x = a || w, E = i || v, T = s.useRef(null), S = s.useRef(null), A = s.useRef(f), D = l != null, k = In(l), L = In(r),
|
|
3134
|
+
}, []), x = a || w, E = i || v, T = s.useRef(null), S = s.useRef(null), A = s.useRef(f), D = l != null, k = In(l), L = In(r), W = In(u), H = s.useCallback(() => {
|
|
3103
3135
|
if (!T.current || !S.current)
|
|
3104
3136
|
return;
|
|
3105
3137
|
const I = {
|
|
@@ -3107,37 +3139,37 @@ function Kd(e) {
|
|
|
3107
3139
|
strategy: n,
|
|
3108
3140
|
middleware: h
|
|
3109
3141
|
};
|
|
3110
|
-
L.current && (I.platform = L.current),
|
|
3142
|
+
L.current && (I.platform = L.current), zd(T.current, S.current, I).then((_) => {
|
|
3111
3143
|
const Y = {
|
|
3112
3144
|
..._,
|
|
3113
3145
|
// The floating element's position may be recomputed while it's closed
|
|
3114
3146
|
// but still mounted (such as when transitioning out). To ensure
|
|
3115
3147
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
3116
3148
|
// setting it to `true` when `open === false` (must be specified).
|
|
3117
|
-
isPositioned:
|
|
3149
|
+
isPositioned: W.current !== !1
|
|
3118
3150
|
};
|
|
3119
|
-
P.current && !
|
|
3151
|
+
P.current && !Kt(A.current, Y) && (A.current = Y, gt.flushSync(() => {
|
|
3120
3152
|
p(Y);
|
|
3121
3153
|
}));
|
|
3122
3154
|
});
|
|
3123
|
-
}, [h, t, n, L,
|
|
3124
|
-
|
|
3155
|
+
}, [h, t, n, L, W]);
|
|
3156
|
+
$t(() => {
|
|
3125
3157
|
u === !1 && A.current.isPositioned && (A.current.isPositioned = !1, p((I) => ({
|
|
3126
3158
|
...I,
|
|
3127
3159
|
isPositioned: !1
|
|
3128
3160
|
})));
|
|
3129
3161
|
}, [u]);
|
|
3130
3162
|
const P = s.useRef(!1);
|
|
3131
|
-
|
|
3163
|
+
$t(() => (P.current = !0, () => {
|
|
3132
3164
|
P.current = !1;
|
|
3133
|
-
}), []),
|
|
3165
|
+
}), []), $t(() => {
|
|
3134
3166
|
if (x && (T.current = x), E && (S.current = E), x && E) {
|
|
3135
3167
|
if (k.current)
|
|
3136
|
-
return k.current(x, E,
|
|
3137
|
-
|
|
3168
|
+
return k.current(x, E, H);
|
|
3169
|
+
H();
|
|
3138
3170
|
}
|
|
3139
|
-
}, [x, E,
|
|
3140
|
-
const
|
|
3171
|
+
}, [x, E, H, k, D]);
|
|
3172
|
+
const B = s.useMemo(() => ({
|
|
3141
3173
|
reference: T,
|
|
3142
3174
|
floating: S,
|
|
3143
3175
|
setReference: y,
|
|
@@ -3168,13 +3200,13 @@ function Kd(e) {
|
|
|
3168
3200
|
}, [n, c, N.floating, f.x, f.y]);
|
|
3169
3201
|
return s.useMemo(() => ({
|
|
3170
3202
|
...f,
|
|
3171
|
-
update:
|
|
3172
|
-
refs:
|
|
3203
|
+
update: H,
|
|
3204
|
+
refs: B,
|
|
3173
3205
|
elements: N,
|
|
3174
3206
|
floatingStyles: F
|
|
3175
|
-
}), [f,
|
|
3207
|
+
}), [f, H, B, N, F]);
|
|
3176
3208
|
}
|
|
3177
|
-
const
|
|
3209
|
+
const qd = (e) => {
|
|
3178
3210
|
function t(n) {
|
|
3179
3211
|
return {}.hasOwnProperty.call(n, "current");
|
|
3180
3212
|
}
|
|
@@ -3195,29 +3227,29 @@ const Ud = (e) => {
|
|
|
3195
3227
|
}).fn(n) : {};
|
|
3196
3228
|
}
|
|
3197
3229
|
};
|
|
3198
|
-
},
|
|
3199
|
-
...
|
|
3200
|
-
options: [e, t]
|
|
3201
|
-
}), zd = (e, t) => ({
|
|
3202
|
-
...Dd(e),
|
|
3230
|
+
}, Zd = (e, t) => ({
|
|
3231
|
+
...Wd(e),
|
|
3203
3232
|
options: [e, t]
|
|
3204
|
-
}),
|
|
3205
|
-
...
|
|
3233
|
+
}), Qd = (e, t) => ({
|
|
3234
|
+
...Hd(e),
|
|
3206
3235
|
options: [e, t]
|
|
3207
|
-
}),
|
|
3208
|
-
...
|
|
3236
|
+
}), Jd = (e, t) => ({
|
|
3237
|
+
...Gd(e),
|
|
3209
3238
|
options: [e, t]
|
|
3210
|
-
}),
|
|
3211
|
-
...
|
|
3239
|
+
}), ef = (e, t) => ({
|
|
3240
|
+
...Vd(e),
|
|
3212
3241
|
options: [e, t]
|
|
3213
|
-
}),
|
|
3214
|
-
|
|
3242
|
+
}), tf = (e, t) => ({
|
|
3243
|
+
...Kd(e),
|
|
3215
3244
|
options: [e, t]
|
|
3216
|
-
}),
|
|
3245
|
+
}), nf = (e, t) => ({
|
|
3217
3246
|
...Ud(e),
|
|
3218
3247
|
options: [e, t]
|
|
3248
|
+
}), of = (e, t) => ({
|
|
3249
|
+
...qd(e),
|
|
3250
|
+
options: [e, t]
|
|
3219
3251
|
});
|
|
3220
|
-
var
|
|
3252
|
+
var rf = "Arrow", ts = s.forwardRef((e, t) => {
|
|
3221
3253
|
const { children: n, width: o = 10, height: r = 5, ...a } = e;
|
|
3222
3254
|
return /* @__PURE__ */ d(
|
|
3223
3255
|
O.svg,
|
|
@@ -3232,10 +3264,10 @@ var Qd = "Arrow", ts = s.forwardRef((e, t) => {
|
|
|
3232
3264
|
}
|
|
3233
3265
|
);
|
|
3234
3266
|
});
|
|
3235
|
-
ts.displayName =
|
|
3236
|
-
var
|
|
3267
|
+
ts.displayName = rf;
|
|
3268
|
+
var sf = ts, fo = "Popper", [ns, Ne] = me(fo), [af, os] = ns(fo), rs = (e) => {
|
|
3237
3269
|
const { __scopePopper: t, children: n } = e, [o, r] = s.useState(null);
|
|
3238
|
-
return /* @__PURE__ */ d(
|
|
3270
|
+
return /* @__PURE__ */ d(af, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
3239
3271
|
};
|
|
3240
3272
|
rs.displayName = fo;
|
|
3241
3273
|
var ss = "PopperAnchor", as = s.forwardRef(
|
|
@@ -3248,7 +3280,7 @@ var ss = "PopperAnchor", as = s.forwardRef(
|
|
|
3248
3280
|
}
|
|
3249
3281
|
);
|
|
3250
3282
|
as.displayName = ss;
|
|
3251
|
-
var po = "PopperContent", [
|
|
3283
|
+
var po = "PopperContent", [cf, lf] = ns(po), is = s.forwardRef(
|
|
3252
3284
|
(e, t) => {
|
|
3253
3285
|
const {
|
|
3254
3286
|
__scopePopper: n,
|
|
@@ -3265,40 +3297,40 @@ var po = "PopperContent", [tf, nf] = ns(po), is = s.forwardRef(
|
|
|
3265
3297
|
updatePositionStrategy: g = "optimized",
|
|
3266
3298
|
onPlaced: w,
|
|
3267
3299
|
...m
|
|
3268
|
-
} = e, v = os(po, n), [C, y] = s.useState(null), b = V(t, (M) => y(M)), [x, E] = s.useState(null), T = ir(x), S = T?.width ?? 0, A = T?.height ?? 0, D = o + (a !== "center" ? "-" + a : ""), k = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u],
|
|
3300
|
+
} = e, v = os(po, n), [C, y] = s.useState(null), b = V(t, (M) => y(M)), [x, E] = s.useState(null), T = ir(x), S = T?.width ?? 0, A = T?.height ?? 0, D = o + (a !== "center" ? "-" + a : ""), k = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, L = Array.isArray(u) ? u : [u], W = L.length > 0, H = {
|
|
3269
3301
|
padding: k,
|
|
3270
|
-
boundary: L.filter(
|
|
3302
|
+
boundary: L.filter(df),
|
|
3271
3303
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3272
|
-
altBoundary:
|
|
3273
|
-
}, { refs: P, floatingStyles:
|
|
3304
|
+
altBoundary: W
|
|
3305
|
+
}, { refs: P, floatingStyles: B, placement: N, isPositioned: F, middlewareData: I } = Xd({
|
|
3274
3306
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3275
3307
|
strategy: "fixed",
|
|
3276
3308
|
placement: D,
|
|
3277
|
-
whileElementsMounted: (...M) =>
|
|
3309
|
+
whileElementsMounted: (...M) => Bd(...M, {
|
|
3278
3310
|
animationFrame: g === "always"
|
|
3279
3311
|
}),
|
|
3280
3312
|
elements: {
|
|
3281
3313
|
reference: v.anchor
|
|
3282
3314
|
},
|
|
3283
3315
|
middleware: [
|
|
3284
|
-
|
|
3285
|
-
l &&
|
|
3316
|
+
Zd({ mainAxis: r + A, alignmentAxis: i }),
|
|
3317
|
+
l && Qd({
|
|
3286
3318
|
mainAxis: !0,
|
|
3287
3319
|
crossAxis: !1,
|
|
3288
|
-
limiter: p === "partial" ?
|
|
3289
|
-
...
|
|
3320
|
+
limiter: p === "partial" ? Jd() : void 0,
|
|
3321
|
+
...H
|
|
3290
3322
|
}),
|
|
3291
|
-
l &&
|
|
3292
|
-
|
|
3293
|
-
...
|
|
3323
|
+
l && ef({ ...H }),
|
|
3324
|
+
tf({
|
|
3325
|
+
...H,
|
|
3294
3326
|
apply: ({ elements: M, rects: G, availableWidth: ee, availableHeight: z }) => {
|
|
3295
3327
|
const { width: j, height: X } = G.reference, ce = M.floating.style;
|
|
3296
3328
|
ce.setProperty("--radix-popper-available-width", `${ee}px`), ce.setProperty("--radix-popper-available-height", `${z}px`), ce.setProperty("--radix-popper-anchor-width", `${j}px`), ce.setProperty("--radix-popper-anchor-height", `${X}px`);
|
|
3297
3329
|
}
|
|
3298
3330
|
}),
|
|
3299
|
-
x &&
|
|
3300
|
-
|
|
3301
|
-
h &&
|
|
3331
|
+
x && of({ element: x, padding: c }),
|
|
3332
|
+
ff({ arrowWidth: S, arrowHeight: A }),
|
|
3333
|
+
h && nf({ strategy: "referenceHidden", ...H })
|
|
3302
3334
|
]
|
|
3303
3335
|
}), [_, Y] = us(N), q = oe(w);
|
|
3304
3336
|
Z(() => {
|
|
@@ -3313,8 +3345,8 @@ var po = "PopperContent", [tf, nf] = ns(po), is = s.forwardRef(
|
|
|
3313
3345
|
ref: P.setFloating,
|
|
3314
3346
|
"data-radix-popper-content-wrapper": "",
|
|
3315
3347
|
style: {
|
|
3316
|
-
|
|
3317
|
-
transform: F ?
|
|
3348
|
+
...B,
|
|
3349
|
+
transform: F ? B.transform : "translate(0, -200%)",
|
|
3318
3350
|
// keep off the page when measuring
|
|
3319
3351
|
minWidth: "max-content",
|
|
3320
3352
|
zIndex: Ee,
|
|
@@ -3332,7 +3364,7 @@ var po = "PopperContent", [tf, nf] = ns(po), is = s.forwardRef(
|
|
|
3332
3364
|
},
|
|
3333
3365
|
dir: e.dir,
|
|
3334
3366
|
children: /* @__PURE__ */ d(
|
|
3335
|
-
|
|
3367
|
+
cf,
|
|
3336
3368
|
{
|
|
3337
3369
|
scope: n,
|
|
3338
3370
|
placedSide: _,
|
|
@@ -3362,13 +3394,13 @@ var po = "PopperContent", [tf, nf] = ns(po), is = s.forwardRef(
|
|
|
3362
3394
|
}
|
|
3363
3395
|
);
|
|
3364
3396
|
is.displayName = po;
|
|
3365
|
-
var cs = "PopperArrow",
|
|
3397
|
+
var cs = "PopperArrow", uf = {
|
|
3366
3398
|
top: "bottom",
|
|
3367
3399
|
right: "left",
|
|
3368
3400
|
bottom: "top",
|
|
3369
3401
|
left: "right"
|
|
3370
3402
|
}, ls = s.forwardRef(function(t, n) {
|
|
3371
|
-
const { __scopePopper: o, ...r } = t, a =
|
|
3403
|
+
const { __scopePopper: o, ...r } = t, a = lf(cs, o), i = uf[a.placedSide];
|
|
3372
3404
|
return (
|
|
3373
3405
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3374
3406
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -3397,7 +3429,7 @@ var cs = "PopperArrow", of = {
|
|
|
3397
3429
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
3398
3430
|
},
|
|
3399
3431
|
children: /* @__PURE__ */ d(
|
|
3400
|
-
|
|
3432
|
+
sf,
|
|
3401
3433
|
{
|
|
3402
3434
|
...r,
|
|
3403
3435
|
ref: n,
|
|
@@ -3413,10 +3445,10 @@ var cs = "PopperArrow", of = {
|
|
|
3413
3445
|
);
|
|
3414
3446
|
});
|
|
3415
3447
|
ls.displayName = cs;
|
|
3416
|
-
function
|
|
3448
|
+
function df(e) {
|
|
3417
3449
|
return e !== null;
|
|
3418
3450
|
}
|
|
3419
|
-
var
|
|
3451
|
+
var ff = (e) => ({
|
|
3420
3452
|
name: "transformOrigin",
|
|
3421
3453
|
options: e,
|
|
3422
3454
|
fn(t) {
|
|
@@ -3429,14 +3461,14 @@ function us(e) {
|
|
|
3429
3461
|
const [t, n = "center"] = e.split("-");
|
|
3430
3462
|
return [t, n];
|
|
3431
3463
|
}
|
|
3432
|
-
var sn = rs,
|
|
3433
|
-
|
|
3434
|
-
[
|
|
3435
|
-
), [
|
|
3436
|
-
(e, t) => /* @__PURE__ */ d(Bn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(Bn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(
|
|
3464
|
+
var sn = rs, bt = as, an = is, cn = ls, Nn = "rovingFocusGroup.onEntryFocus", pf = { bubbles: !1, cancelable: !0 }, xt = "RovingFocusGroup", [Bn, ds, mf] = en(xt), [hf, fs] = me(
|
|
3465
|
+
xt,
|
|
3466
|
+
[mf]
|
|
3467
|
+
), [vf, gf] = hf(xt), ps = s.forwardRef(
|
|
3468
|
+
(e, t) => /* @__PURE__ */ d(Bn.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(Bn.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ d(wf, { ...e, ref: t }) }) })
|
|
3437
3469
|
);
|
|
3438
|
-
ps.displayName =
|
|
3439
|
-
var
|
|
3470
|
+
ps.displayName = xt;
|
|
3471
|
+
var wf = s.forwardRef((e, t) => {
|
|
3440
3472
|
const {
|
|
3441
3473
|
__scopeRovingFocusGroup: n,
|
|
3442
3474
|
orientation: o,
|
|
@@ -3452,14 +3484,14 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3452
3484
|
prop: i,
|
|
3453
3485
|
defaultProp: c ?? null,
|
|
3454
3486
|
onChange: l,
|
|
3455
|
-
caller:
|
|
3487
|
+
caller: xt
|
|
3456
3488
|
}), [C, y] = s.useState(!1), b = oe(u), x = ds(n), E = s.useRef(!1), [T, S] = s.useState(0);
|
|
3457
3489
|
return s.useEffect(() => {
|
|
3458
3490
|
const A = h.current;
|
|
3459
3491
|
if (A)
|
|
3460
3492
|
return A.addEventListener(Nn, b), () => A.removeEventListener(Nn, b);
|
|
3461
3493
|
}, [b]), /* @__PURE__ */ d(
|
|
3462
|
-
|
|
3494
|
+
vf,
|
|
3463
3495
|
{
|
|
3464
3496
|
scope: n,
|
|
3465
3497
|
orientation: o,
|
|
@@ -3493,12 +3525,12 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3493
3525
|
onFocus: R(e.onFocus, (A) => {
|
|
3494
3526
|
const D = !E.current;
|
|
3495
3527
|
if (A.target === A.currentTarget && D && !C) {
|
|
3496
|
-
const k = new CustomEvent(Nn,
|
|
3528
|
+
const k = new CustomEvent(Nn, pf);
|
|
3497
3529
|
if (A.currentTarget.dispatchEvent(k), !k.defaultPrevented) {
|
|
3498
|
-
const L = x().filter((N) => N.focusable),
|
|
3530
|
+
const L = x().filter((N) => N.focusable), W = L.find((N) => N.active), H = L.find((N) => N.id === m), B = [W, H, ...L].filter(
|
|
3499
3531
|
Boolean
|
|
3500
3532
|
).map((N) => N.ref.current);
|
|
3501
|
-
vs(
|
|
3533
|
+
vs(B, f);
|
|
3502
3534
|
}
|
|
3503
3535
|
}
|
|
3504
3536
|
E.current = !1;
|
|
@@ -3517,7 +3549,7 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3517
3549
|
tabStopId: a,
|
|
3518
3550
|
children: i,
|
|
3519
3551
|
...c
|
|
3520
|
-
} = e, l = de(), u = a || l, f =
|
|
3552
|
+
} = e, l = de(), u = a || l, f = gf(ms, n), p = f.currentTabStopId === u, h = ds(n), { onFocusableItemAdd: g, onFocusableItemRemove: w, currentTabStopId: m } = f;
|
|
3521
3553
|
return s.useEffect(() => {
|
|
3522
3554
|
if (o)
|
|
3523
3555
|
return g(), () => w();
|
|
@@ -3545,7 +3577,7 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3545
3577
|
return;
|
|
3546
3578
|
}
|
|
3547
3579
|
if (v.target !== v.currentTarget) return;
|
|
3548
|
-
const C =
|
|
3580
|
+
const C = bf(v, f.orientation, f.dir);
|
|
3549
3581
|
if (C !== void 0) {
|
|
3550
3582
|
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
3551
3583
|
v.preventDefault();
|
|
@@ -3554,7 +3586,7 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3554
3586
|
else if (C === "prev" || C === "next") {
|
|
3555
3587
|
C === "prev" && b.reverse();
|
|
3556
3588
|
const x = b.indexOf(v.currentTarget);
|
|
3557
|
-
b = f.loop ?
|
|
3589
|
+
b = f.loop ? xf(b, x + 1) : b.slice(x + 1);
|
|
3558
3590
|
}
|
|
3559
3591
|
setTimeout(() => vs(b));
|
|
3560
3592
|
}
|
|
@@ -3567,7 +3599,7 @@ var ff = s.forwardRef((e, t) => {
|
|
|
3567
3599
|
}
|
|
3568
3600
|
);
|
|
3569
3601
|
hs.displayName = ms;
|
|
3570
|
-
var
|
|
3602
|
+
var yf = {
|
|
3571
3603
|
ArrowLeft: "prev",
|
|
3572
3604
|
ArrowUp: "prev",
|
|
3573
3605
|
ArrowRight: "next",
|
|
@@ -3577,33 +3609,33 @@ var pf = {
|
|
|
3577
3609
|
PageDown: "last",
|
|
3578
3610
|
End: "last"
|
|
3579
3611
|
};
|
|
3580
|
-
function
|
|
3612
|
+
function Cf(e, t) {
|
|
3581
3613
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3582
3614
|
}
|
|
3583
|
-
function
|
|
3584
|
-
const o =
|
|
3615
|
+
function bf(e, t, n) {
|
|
3616
|
+
const o = Cf(e.key, n);
|
|
3585
3617
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
3586
|
-
return
|
|
3618
|
+
return yf[o];
|
|
3587
3619
|
}
|
|
3588
3620
|
function vs(e, t = !1) {
|
|
3589
3621
|
const n = document.activeElement;
|
|
3590
3622
|
for (const o of e)
|
|
3591
3623
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
3592
3624
|
}
|
|
3593
|
-
function
|
|
3625
|
+
function xf(e, t) {
|
|
3594
3626
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3595
3627
|
}
|
|
3596
|
-
var
|
|
3628
|
+
var Ef = ps, Sf = hs, Wn = ["Enter", " "], Rf = ["ArrowDown", "PageUp", "Home"], gs = ["ArrowUp", "PageDown", "End"], _f = [...Rf, ...gs], Pf = {
|
|
3597
3629
|
ltr: [...Wn, "ArrowRight"],
|
|
3598
3630
|
rtl: [...Wn, "ArrowLeft"]
|
|
3599
|
-
},
|
|
3631
|
+
}, Tf = {
|
|
3600
3632
|
ltr: ["ArrowLeft"],
|
|
3601
3633
|
rtl: ["ArrowRight"]
|
|
3602
|
-
},
|
|
3603
|
-
|
|
3634
|
+
}, Et = "Menu", [mt, Mf, Af] = en(Et), [Ge, ws] = me(Et, [
|
|
3635
|
+
Af,
|
|
3604
3636
|
Ne,
|
|
3605
3637
|
fs
|
|
3606
|
-
]), ln = Ne(), ys = fs(), [
|
|
3638
|
+
]), ln = Ne(), ys = fs(), [If, ze] = Ge(Et), [Nf, St] = Ge(Et), Cs = (e) => {
|
|
3607
3639
|
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: a, modal: i = !0 } = e, c = ln(t), [l, u] = s.useState(null), f = s.useRef(!1), p = oe(a), h = ro(r);
|
|
3608
3640
|
return s.useEffect(() => {
|
|
3609
3641
|
const g = () => {
|
|
@@ -3613,7 +3645,7 @@ var gf = ps, wf = hs, Wn = ["Enter", " "], yf = ["ArrowDown", "PageUp", "Home"],
|
|
|
3613
3645
|
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
3614
3646
|
};
|
|
3615
3647
|
}, []), /* @__PURE__ */ d(sn, { ...c, children: /* @__PURE__ */ d(
|
|
3616
|
-
|
|
3648
|
+
If,
|
|
3617
3649
|
{
|
|
3618
3650
|
scope: t,
|
|
3619
3651
|
open: n,
|
|
@@ -3621,7 +3653,7 @@ var gf = ps, wf = hs, Wn = ["Enter", " "], yf = ["ArrowDown", "PageUp", "Home"],
|
|
|
3621
3653
|
content: l,
|
|
3622
3654
|
onContentChange: u,
|
|
3623
3655
|
children: /* @__PURE__ */ d(
|
|
3624
|
-
|
|
3656
|
+
Nf,
|
|
3625
3657
|
{
|
|
3626
3658
|
scope: t,
|
|
3627
3659
|
onClose: s.useCallback(() => p(!1), [p]),
|
|
@@ -3634,27 +3666,27 @@ var gf = ps, wf = hs, Wn = ["Enter", " "], yf = ["ArrowDown", "PageUp", "Home"],
|
|
|
3634
3666
|
}
|
|
3635
3667
|
) });
|
|
3636
3668
|
};
|
|
3637
|
-
Cs.displayName =
|
|
3638
|
-
var
|
|
3669
|
+
Cs.displayName = Et;
|
|
3670
|
+
var Of = "MenuAnchor", mo = s.forwardRef(
|
|
3639
3671
|
(e, t) => {
|
|
3640
3672
|
const { __scopeMenu: n, ...o } = e, r = ln(n);
|
|
3641
|
-
return /* @__PURE__ */ d(
|
|
3673
|
+
return /* @__PURE__ */ d(bt, { ...r, ...o, ref: t });
|
|
3642
3674
|
}
|
|
3643
3675
|
);
|
|
3644
|
-
mo.displayName =
|
|
3645
|
-
var ho = "MenuPortal", [
|
|
3676
|
+
mo.displayName = Of;
|
|
3677
|
+
var ho = "MenuPortal", [kf, bs] = Ge(ho, {
|
|
3646
3678
|
forceMount: void 0
|
|
3647
3679
|
}), xs = (e) => {
|
|
3648
3680
|
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, a = ze(ho, t);
|
|
3649
|
-
return /* @__PURE__ */ d(
|
|
3681
|
+
return /* @__PURE__ */ d(kf, { scope: t, forceMount: n, children: /* @__PURE__ */ d(re, { present: n || a.open, children: /* @__PURE__ */ d(Ue, { asChild: !0, container: r, children: o }) }) });
|
|
3650
3682
|
};
|
|
3651
3683
|
xs.displayName = ho;
|
|
3652
|
-
var le = "MenuContent", [
|
|
3684
|
+
var le = "MenuContent", [Df, vo] = Ge(le), Es = s.forwardRef(
|
|
3653
3685
|
(e, t) => {
|
|
3654
|
-
const n = bs(le, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = ze(le, e.__scopeMenu), i =
|
|
3655
|
-
return /* @__PURE__ */ d(
|
|
3686
|
+
const n = bs(le, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = ze(le, e.__scopeMenu), i = St(le, e.__scopeMenu);
|
|
3687
|
+
return /* @__PURE__ */ d(mt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(re, { present: o || a.open, children: /* @__PURE__ */ d(mt.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ d(Lf, { ...r, ref: t }) : /* @__PURE__ */ d(Ff, { ...r, ref: t }) }) }) });
|
|
3656
3688
|
}
|
|
3657
|
-
),
|
|
3689
|
+
), Lf = s.forwardRef(
|
|
3658
3690
|
(e, t) => {
|
|
3659
3691
|
const n = ze(le, e.__scopeMenu), o = s.useRef(null), r = V(t, o);
|
|
3660
3692
|
return s.useEffect(() => {
|
|
@@ -3677,7 +3709,7 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3677
3709
|
}
|
|
3678
3710
|
);
|
|
3679
3711
|
}
|
|
3680
|
-
),
|
|
3712
|
+
), Ff = s.forwardRef((e, t) => {
|
|
3681
3713
|
const n = ze(le, e.__scopeMenu);
|
|
3682
3714
|
return /* @__PURE__ */ d(
|
|
3683
3715
|
go,
|
|
@@ -3690,7 +3722,7 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3690
3722
|
onDismiss: () => n.onOpenChange(!1)
|
|
3691
3723
|
}
|
|
3692
3724
|
);
|
|
3693
|
-
}),
|
|
3725
|
+
}), $f = /* @__PURE__ */ $e("MenuContent.ScrollLock"), go = s.forwardRef(
|
|
3694
3726
|
(e, t) => {
|
|
3695
3727
|
const {
|
|
3696
3728
|
__scopeMenu: n,
|
|
@@ -3707,16 +3739,16 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3707
3739
|
onDismiss: g,
|
|
3708
3740
|
disableOutsideScroll: w,
|
|
3709
3741
|
...m
|
|
3710
|
-
} = e, v = ze(le, n), C =
|
|
3711
|
-
const Y = k.current + _, q = x().filter((M) => !M.disabled), Q = document.activeElement, ne = q.find((M) => M.ref.current === Q)?.textValue, J = q.map((M) => M.textValue), Ee =
|
|
3742
|
+
} = e, v = ze(le, n), C = St(le, n), y = ln(n), b = ys(n), x = Mf(n), [E, T] = s.useState(null), S = s.useRef(null), A = V(t, S, v.onContentChange), D = s.useRef(0), k = s.useRef(""), L = s.useRef(0), W = s.useRef(null), H = s.useRef("right"), P = s.useRef(0), B = w ? yt : s.Fragment, N = w ? { as: $f, allowPinchZoom: !0 } : void 0, F = (_) => {
|
|
3743
|
+
const Y = k.current + _, q = x().filter((M) => !M.disabled), Q = document.activeElement, ne = q.find((M) => M.ref.current === Q)?.textValue, J = q.map((M) => M.textValue), Ee = qf(J, Y, ne), se = q.find((M) => M.textValue === Ee)?.ref.current;
|
|
3712
3744
|
(function M(G) {
|
|
3713
3745
|
k.current = G, window.clearTimeout(D.current), G !== "" && (D.current = window.setTimeout(() => M(""), 1e3));
|
|
3714
3746
|
})(Y), se && setTimeout(() => se.focus());
|
|
3715
3747
|
};
|
|
3716
3748
|
s.useEffect(() => () => window.clearTimeout(D.current), []), qt();
|
|
3717
|
-
const I = s.useCallback((_) =>
|
|
3749
|
+
const I = s.useCallback((_) => H.current === W.current?.side && Qf(_, W.current?.area), []);
|
|
3718
3750
|
return /* @__PURE__ */ d(
|
|
3719
|
-
|
|
3751
|
+
Df,
|
|
3720
3752
|
{
|
|
3721
3753
|
scope: n,
|
|
3722
3754
|
searchRef: k,
|
|
@@ -3740,10 +3772,10 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3740
3772
|
),
|
|
3741
3773
|
pointerGraceTimerRef: L,
|
|
3742
3774
|
onPointerGraceIntentChange: s.useCallback((_) => {
|
|
3743
|
-
|
|
3775
|
+
W.current = _;
|
|
3744
3776
|
}, []),
|
|
3745
|
-
children: /* @__PURE__ */ d(
|
|
3746
|
-
|
|
3777
|
+
children: /* @__PURE__ */ d(B, { ...N, children: /* @__PURE__ */ d(
|
|
3778
|
+
wt,
|
|
3747
3779
|
{
|
|
3748
3780
|
asChild: !0,
|
|
3749
3781
|
trapped: r,
|
|
@@ -3762,7 +3794,7 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3762
3794
|
onInteractOutside: h,
|
|
3763
3795
|
onDismiss: g,
|
|
3764
3796
|
children: /* @__PURE__ */ d(
|
|
3765
|
-
|
|
3797
|
+
Ef,
|
|
3766
3798
|
{
|
|
3767
3799
|
asChild: !0,
|
|
3768
3800
|
...b,
|
|
@@ -3791,21 +3823,21 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3791
3823
|
const q = _.target.closest("[data-radix-menu-content]") === _.currentTarget, Q = _.ctrlKey || _.altKey || _.metaKey, ne = _.key.length === 1;
|
|
3792
3824
|
q && (_.key === "Tab" && _.preventDefault(), !Q && ne && F(_.key));
|
|
3793
3825
|
const J = S.current;
|
|
3794
|
-
if (_.target !== J || !
|
|
3826
|
+
if (_.target !== J || !_f.includes(_.key)) return;
|
|
3795
3827
|
_.preventDefault();
|
|
3796
3828
|
const se = x().filter((M) => !M.disabled).map((M) => M.ref.current);
|
|
3797
|
-
gs.includes(_.key) && se.reverse(),
|
|
3829
|
+
gs.includes(_.key) && se.reverse(), Yf(se);
|
|
3798
3830
|
}),
|
|
3799
3831
|
onBlur: R(e.onBlur, (_) => {
|
|
3800
3832
|
_.currentTarget.contains(_.target) || (window.clearTimeout(D.current), k.current = "");
|
|
3801
3833
|
}),
|
|
3802
3834
|
onPointerMove: R(
|
|
3803
3835
|
e.onPointerMove,
|
|
3804
|
-
|
|
3836
|
+
ht((_) => {
|
|
3805
3837
|
const Y = _.target, q = P.current !== _.clientX;
|
|
3806
3838
|
if (_.currentTarget.contains(Y) && q) {
|
|
3807
3839
|
const Q = _.clientX > P.current ? "right" : "left";
|
|
3808
|
-
|
|
3840
|
+
H.current = Q, P.current = _.clientX;
|
|
3809
3841
|
}
|
|
3810
3842
|
})
|
|
3811
3843
|
)
|
|
@@ -3822,23 +3854,23 @@ var le = "MenuContent", [Mf, vo] = Ge(le), Es = s.forwardRef(
|
|
|
3822
3854
|
}
|
|
3823
3855
|
);
|
|
3824
3856
|
Es.displayName = le;
|
|
3825
|
-
var
|
|
3857
|
+
var Bf = "MenuGroup", wo = s.forwardRef(
|
|
3826
3858
|
(e, t) => {
|
|
3827
3859
|
const { __scopeMenu: n, ...o } = e;
|
|
3828
3860
|
return /* @__PURE__ */ d(O.div, { role: "group", ...o, ref: t });
|
|
3829
3861
|
}
|
|
3830
3862
|
);
|
|
3831
|
-
wo.displayName =
|
|
3832
|
-
var
|
|
3863
|
+
wo.displayName = Bf;
|
|
3864
|
+
var Wf = "MenuLabel", Ss = s.forwardRef(
|
|
3833
3865
|
(e, t) => {
|
|
3834
3866
|
const { __scopeMenu: n, ...o } = e;
|
|
3835
3867
|
return /* @__PURE__ */ d(O.div, { ...o, ref: t });
|
|
3836
3868
|
}
|
|
3837
3869
|
);
|
|
3838
|
-
Ss.displayName =
|
|
3839
|
-
var
|
|
3870
|
+
Ss.displayName = Wf;
|
|
3871
|
+
var Ut = "MenuItem", er = "menu.itemSelect", un = s.forwardRef(
|
|
3840
3872
|
(e, t) => {
|
|
3841
|
-
const { disabled: n = !1, onSelect: o, ...r } = e, a = s.useRef(null), i =
|
|
3873
|
+
const { disabled: n = !1, onSelect: o, ...r } = e, a = s.useRef(null), i = St(Ut, e.__scopeMenu), c = vo(Ut, e.__scopeMenu), l = V(t, a), u = s.useRef(!1), f = () => {
|
|
3842
3874
|
const p = a.current;
|
|
3843
3875
|
if (!n && p) {
|
|
3844
3876
|
const h = new CustomEvent(er, { bubbles: !0, cancelable: !0 });
|
|
@@ -3866,20 +3898,20 @@ var Kt = "MenuItem", er = "menu.itemSelect", un = s.forwardRef(
|
|
|
3866
3898
|
);
|
|
3867
3899
|
}
|
|
3868
3900
|
);
|
|
3869
|
-
un.displayName =
|
|
3901
|
+
un.displayName = Ut;
|
|
3870
3902
|
var Rs = s.forwardRef(
|
|
3871
3903
|
(e, t) => {
|
|
3872
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...a } = e, i = vo(
|
|
3904
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...a } = e, i = vo(Ut, n), c = ys(n), l = s.useRef(null), u = V(t, l), [f, p] = s.useState(!1), [h, g] = s.useState("");
|
|
3873
3905
|
return s.useEffect(() => {
|
|
3874
3906
|
const w = l.current;
|
|
3875
3907
|
w && g((w.textContent ?? "").trim());
|
|
3876
3908
|
}, [a.children]), /* @__PURE__ */ d(
|
|
3877
|
-
|
|
3909
|
+
mt.ItemSlot,
|
|
3878
3910
|
{
|
|
3879
3911
|
scope: n,
|
|
3880
3912
|
disabled: o,
|
|
3881
3913
|
textValue: r ?? h,
|
|
3882
|
-
children: /* @__PURE__ */ d(
|
|
3914
|
+
children: /* @__PURE__ */ d(Sf, { asChild: !0, ...c, focusable: !o, children: /* @__PURE__ */ d(
|
|
3883
3915
|
O.div,
|
|
3884
3916
|
{
|
|
3885
3917
|
role: "menuitem",
|
|
@@ -3890,13 +3922,13 @@ var Rs = s.forwardRef(
|
|
|
3890
3922
|
ref: u,
|
|
3891
3923
|
onPointerMove: R(
|
|
3892
3924
|
e.onPointerMove,
|
|
3893
|
-
|
|
3925
|
+
ht((w) => {
|
|
3894
3926
|
o ? i.onItemLeave(w) : (i.onItemEnter(w), w.defaultPrevented || w.currentTarget.focus({ preventScroll: !0 }));
|
|
3895
3927
|
})
|
|
3896
3928
|
),
|
|
3897
3929
|
onPointerLeave: R(
|
|
3898
3930
|
e.onPointerLeave,
|
|
3899
|
-
|
|
3931
|
+
ht((w) => i.onItemLeave(w))
|
|
3900
3932
|
),
|
|
3901
3933
|
onFocus: R(e.onFocus, () => p(!0)),
|
|
3902
3934
|
onBlur: R(e.onBlur, () => p(!1))
|
|
@@ -3905,41 +3937,41 @@ var Rs = s.forwardRef(
|
|
|
3905
3937
|
}
|
|
3906
3938
|
);
|
|
3907
3939
|
}
|
|
3908
|
-
),
|
|
3940
|
+
), Hf = "MenuCheckboxItem", _s = s.forwardRef(
|
|
3909
3941
|
(e, t) => {
|
|
3910
3942
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3911
3943
|
return /* @__PURE__ */ d(Is, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ d(
|
|
3912
3944
|
un,
|
|
3913
3945
|
{
|
|
3914
3946
|
role: "menuitemcheckbox",
|
|
3915
|
-
"aria-checked":
|
|
3947
|
+
"aria-checked": Gt(n) ? "mixed" : n,
|
|
3916
3948
|
...r,
|
|
3917
3949
|
ref: t,
|
|
3918
3950
|
"data-state": Co(n),
|
|
3919
3951
|
onSelect: R(
|
|
3920
3952
|
r.onSelect,
|
|
3921
|
-
() => o?.(
|
|
3953
|
+
() => o?.(Gt(n) ? !0 : !n),
|
|
3922
3954
|
{ checkForDefaultPrevented: !1 }
|
|
3923
3955
|
)
|
|
3924
3956
|
}
|
|
3925
3957
|
) });
|
|
3926
3958
|
}
|
|
3927
3959
|
);
|
|
3928
|
-
_s.displayName =
|
|
3929
|
-
var Ps = "MenuRadioGroup", [
|
|
3960
|
+
_s.displayName = Hf;
|
|
3961
|
+
var Ps = "MenuRadioGroup", [Vf, Kf] = Ge(
|
|
3930
3962
|
Ps,
|
|
3931
3963
|
{ value: void 0, onValueChange: () => {
|
|
3932
3964
|
} }
|
|
3933
3965
|
), Ts = s.forwardRef(
|
|
3934
3966
|
(e, t) => {
|
|
3935
3967
|
const { value: n, onValueChange: o, ...r } = e, a = oe(o);
|
|
3936
|
-
return /* @__PURE__ */ d(
|
|
3968
|
+
return /* @__PURE__ */ d(Vf, { scope: e.__scopeMenu, value: n, onValueChange: a, children: /* @__PURE__ */ d(wo, { ...r, ref: t }) });
|
|
3937
3969
|
}
|
|
3938
3970
|
);
|
|
3939
3971
|
Ts.displayName = Ps;
|
|
3940
3972
|
var Ms = "MenuRadioItem", As = s.forwardRef(
|
|
3941
3973
|
(e, t) => {
|
|
3942
|
-
const { value: n, ...o } = e, r =
|
|
3974
|
+
const { value: n, ...o } = e, r = Kf(Ms, e.__scopeMenu), a = n === r.value;
|
|
3943
3975
|
return /* @__PURE__ */ d(Is, { scope: e.__scopeMenu, checked: a, children: /* @__PURE__ */ d(
|
|
3944
3976
|
un,
|
|
3945
3977
|
{
|
|
@@ -3958,16 +3990,16 @@ var Ms = "MenuRadioItem", As = s.forwardRef(
|
|
|
3958
3990
|
}
|
|
3959
3991
|
);
|
|
3960
3992
|
As.displayName = Ms;
|
|
3961
|
-
var yo = "MenuItemIndicator", [Is,
|
|
3993
|
+
var yo = "MenuItemIndicator", [Is, Uf] = Ge(
|
|
3962
3994
|
yo,
|
|
3963
3995
|
{ checked: !1 }
|
|
3964
3996
|
), Ns = s.forwardRef(
|
|
3965
3997
|
(e, t) => {
|
|
3966
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, a =
|
|
3998
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, a = Uf(yo, n);
|
|
3967
3999
|
return /* @__PURE__ */ d(
|
|
3968
4000
|
re,
|
|
3969
4001
|
{
|
|
3970
|
-
present: o ||
|
|
4002
|
+
present: o || Gt(a.checked) || a.checked === !0,
|
|
3971
4003
|
children: /* @__PURE__ */ d(
|
|
3972
4004
|
O.span,
|
|
3973
4005
|
{
|
|
@@ -3981,7 +4013,7 @@ var yo = "MenuItemIndicator", [Is, $f] = Ge(
|
|
|
3981
4013
|
}
|
|
3982
4014
|
);
|
|
3983
4015
|
Ns.displayName = yo;
|
|
3984
|
-
var
|
|
4016
|
+
var Gf = "MenuSeparator", Os = s.forwardRef(
|
|
3985
4017
|
(e, t) => {
|
|
3986
4018
|
const { __scopeMenu: n, ...o } = e;
|
|
3987
4019
|
return /* @__PURE__ */ d(
|
|
@@ -3995,17 +4027,17 @@ var Bf = "MenuSeparator", Os = s.forwardRef(
|
|
|
3995
4027
|
);
|
|
3996
4028
|
}
|
|
3997
4029
|
);
|
|
3998
|
-
Os.displayName =
|
|
3999
|
-
var
|
|
4030
|
+
Os.displayName = Gf;
|
|
4031
|
+
var zf = "MenuArrow", ks = s.forwardRef(
|
|
4000
4032
|
(e, t) => {
|
|
4001
4033
|
const { __scopeMenu: n, ...o } = e, r = ln(n);
|
|
4002
4034
|
return /* @__PURE__ */ d(cn, { ...r, ...o, ref: t });
|
|
4003
4035
|
}
|
|
4004
4036
|
);
|
|
4005
|
-
ks.displayName =
|
|
4006
|
-
var
|
|
4037
|
+
ks.displayName = zf;
|
|
4038
|
+
var jf = "MenuSub", [Pv, Ds] = Ge(jf), ct = "MenuSubTrigger", Ls = s.forwardRef(
|
|
4007
4039
|
(e, t) => {
|
|
4008
|
-
const n = ze(ct, e.__scopeMenu), o =
|
|
4040
|
+
const n = ze(ct, e.__scopeMenu), o = St(ct, e.__scopeMenu), r = Ds(ct, e.__scopeMenu), a = vo(ct, e.__scopeMenu), i = s.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: l } = a, u = { __scopeMenu: e.__scopeMenu }, f = s.useCallback(() => {
|
|
4009
4041
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
4010
4042
|
}, []);
|
|
4011
4043
|
return s.useEffect(() => f, [f]), s.useEffect(() => {
|
|
@@ -4028,7 +4060,7 @@ var Hf = "MenuSub", [Cv, Ds] = Ge(Hf), ct = "MenuSubTrigger", Ls = s.forwardRef(
|
|
|
4028
4060
|
},
|
|
4029
4061
|
onPointerMove: R(
|
|
4030
4062
|
e.onPointerMove,
|
|
4031
|
-
|
|
4063
|
+
ht((p) => {
|
|
4032
4064
|
a.onItemEnter(p), !p.defaultPrevented && !e.disabled && !n.open && !i.current && (a.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
4033
4065
|
n.onOpenChange(!0), f();
|
|
4034
4066
|
}, 100));
|
|
@@ -4036,7 +4068,7 @@ var Hf = "MenuSub", [Cv, Ds] = Ge(Hf), ct = "MenuSubTrigger", Ls = s.forwardRef(
|
|
|
4036
4068
|
),
|
|
4037
4069
|
onPointerLeave: R(
|
|
4038
4070
|
e.onPointerLeave,
|
|
4039
|
-
|
|
4071
|
+
ht((p) => {
|
|
4040
4072
|
f();
|
|
4041
4073
|
const h = n.content?.getBoundingClientRect();
|
|
4042
4074
|
if (h) {
|
|
@@ -4064,7 +4096,7 @@ var Hf = "MenuSub", [Cv, Ds] = Ge(Hf), ct = "MenuSubTrigger", Ls = s.forwardRef(
|
|
|
4064
4096
|
),
|
|
4065
4097
|
onKeyDown: R(e.onKeyDown, (p) => {
|
|
4066
4098
|
const h = a.searchRef.current !== "";
|
|
4067
|
-
e.disabled || h && p.key === " " ||
|
|
4099
|
+
e.disabled || h && p.key === " " || Pf[o.dir].includes(p.key) && (n.onOpenChange(!0), n.content?.focus(), p.preventDefault());
|
|
4068
4100
|
})
|
|
4069
4101
|
}
|
|
4070
4102
|
) });
|
|
@@ -4073,8 +4105,8 @@ var Hf = "MenuSub", [Cv, Ds] = Ge(Hf), ct = "MenuSubTrigger", Ls = s.forwardRef(
|
|
|
4073
4105
|
Ls.displayName = ct;
|
|
4074
4106
|
var Fs = "MenuSubContent", $s = s.forwardRef(
|
|
4075
4107
|
(e, t) => {
|
|
4076
|
-
const n = bs(le, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = ze(le, e.__scopeMenu), i =
|
|
4077
|
-
return /* @__PURE__ */ d(
|
|
4108
|
+
const n = bs(le, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, a = ze(le, e.__scopeMenu), i = St(le, e.__scopeMenu), c = Ds(Fs, e.__scopeMenu), l = s.useRef(null), u = V(t, l);
|
|
4109
|
+
return /* @__PURE__ */ d(mt.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(re, { present: o || a.open, children: /* @__PURE__ */ d(mt.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ d(
|
|
4078
4110
|
go,
|
|
4079
4111
|
{
|
|
4080
4112
|
id: c.contentId,
|
|
@@ -4097,7 +4129,7 @@ var Fs = "MenuSubContent", $s = s.forwardRef(
|
|
|
4097
4129
|
i.onClose(), f.preventDefault();
|
|
4098
4130
|
}),
|
|
4099
4131
|
onKeyDown: R(e.onKeyDown, (f) => {
|
|
4100
|
-
const p = f.currentTarget.contains(f.target), h =
|
|
4132
|
+
const p = f.currentTarget.contains(f.target), h = Tf[i.dir].includes(f.key);
|
|
4101
4133
|
p && h && (a.onOpenChange(!1), c.trigger?.focus(), f.preventDefault());
|
|
4102
4134
|
})
|
|
4103
4135
|
}
|
|
@@ -4108,30 +4140,30 @@ $s.displayName = Fs;
|
|
|
4108
4140
|
function Bs(e) {
|
|
4109
4141
|
return e ? "open" : "closed";
|
|
4110
4142
|
}
|
|
4111
|
-
function
|
|
4143
|
+
function Gt(e) {
|
|
4112
4144
|
return e === "indeterminate";
|
|
4113
4145
|
}
|
|
4114
4146
|
function Co(e) {
|
|
4115
|
-
return
|
|
4147
|
+
return Gt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4116
4148
|
}
|
|
4117
|
-
function
|
|
4149
|
+
function Yf(e) {
|
|
4118
4150
|
const t = document.activeElement;
|
|
4119
4151
|
for (const n of e)
|
|
4120
4152
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
4121
4153
|
}
|
|
4122
|
-
function
|
|
4154
|
+
function Xf(e, t) {
|
|
4123
4155
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
4124
4156
|
}
|
|
4125
|
-
function
|
|
4157
|
+
function qf(e, t, n) {
|
|
4126
4158
|
const r = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
4127
|
-
let i =
|
|
4159
|
+
let i = Xf(e, Math.max(a, 0));
|
|
4128
4160
|
r.length === 1 && (i = i.filter((u) => u !== n));
|
|
4129
4161
|
const l = i.find(
|
|
4130
4162
|
(u) => u.toLowerCase().startsWith(r.toLowerCase())
|
|
4131
4163
|
);
|
|
4132
4164
|
return l !== n ? l : void 0;
|
|
4133
4165
|
}
|
|
4134
|
-
function
|
|
4166
|
+
function Zf(e, t) {
|
|
4135
4167
|
const { x: n, y: o } = e;
|
|
4136
4168
|
let r = !1;
|
|
4137
4169
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -4140,18 +4172,18 @@ function Gf(e, t) {
|
|
|
4140
4172
|
}
|
|
4141
4173
|
return r;
|
|
4142
4174
|
}
|
|
4143
|
-
function
|
|
4175
|
+
function Qf(e, t) {
|
|
4144
4176
|
if (!t) return !1;
|
|
4145
4177
|
const n = { x: e.clientX, y: e.clientY };
|
|
4146
|
-
return
|
|
4178
|
+
return Zf(n, t);
|
|
4147
4179
|
}
|
|
4148
|
-
function
|
|
4180
|
+
function ht(e) {
|
|
4149
4181
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4150
4182
|
}
|
|
4151
|
-
var
|
|
4183
|
+
var Jf = Cs, ep = mo, tp = xs, np = Es, op = wo, rp = Ss, sp = un, ap = _s, ip = Ts, cp = As, lp = Ns, up = Os, dp = ks, fp = Ls, pp = $s, dn = "DropdownMenu", [mp] = me(
|
|
4152
4184
|
dn,
|
|
4153
4185
|
[ws]
|
|
4154
|
-
), te = ws(), [
|
|
4186
|
+
), te = ws(), [hp, Ws] = mp(dn), Hs = (e) => {
|
|
4155
4187
|
const {
|
|
4156
4188
|
__scopeDropdownMenu: t,
|
|
4157
4189
|
children: n,
|
|
@@ -4167,7 +4199,7 @@ var jf = Cs, Yf = mo, Xf = xs, qf = Es, Zf = wo, Qf = Ss, Jf = un, ep = _s, tp =
|
|
|
4167
4199
|
caller: dn
|
|
4168
4200
|
});
|
|
4169
4201
|
return /* @__PURE__ */ d(
|
|
4170
|
-
|
|
4202
|
+
hp,
|
|
4171
4203
|
{
|
|
4172
4204
|
scope: t,
|
|
4173
4205
|
triggerId: de(),
|
|
@@ -4177,7 +4209,7 @@ var jf = Cs, Yf = mo, Xf = xs, qf = Es, Zf = wo, Qf = Ss, Jf = un, ep = _s, tp =
|
|
|
4177
4209
|
onOpenChange: p,
|
|
4178
4210
|
onOpenToggle: s.useCallback(() => p((h) => !h), [p]),
|
|
4179
4211
|
modal: c,
|
|
4180
|
-
children: /* @__PURE__ */ d(
|
|
4212
|
+
children: /* @__PURE__ */ d(Jf, { ...l, open: f, onOpenChange: p, dir: o, modal: c, children: n })
|
|
4181
4213
|
}
|
|
4182
4214
|
);
|
|
4183
4215
|
};
|
|
@@ -4185,7 +4217,7 @@ Hs.displayName = dn;
|
|
|
4185
4217
|
var Vs = "DropdownMenuTrigger", Ks = s.forwardRef(
|
|
4186
4218
|
(e, t) => {
|
|
4187
4219
|
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, a = Ws(Vs, n), i = te(n);
|
|
4188
|
-
return /* @__PURE__ */ d(
|
|
4220
|
+
return /* @__PURE__ */ d(ep, { asChild: !0, ...i, children: /* @__PURE__ */ d(
|
|
4189
4221
|
O.button,
|
|
4190
4222
|
{
|
|
4191
4223
|
type: "button",
|
|
@@ -4209,16 +4241,16 @@ var Vs = "DropdownMenuTrigger", Ks = s.forwardRef(
|
|
|
4209
4241
|
}
|
|
4210
4242
|
);
|
|
4211
4243
|
Ks.displayName = Vs;
|
|
4212
|
-
var
|
|
4244
|
+
var vp = "DropdownMenuPortal", Us = (e) => {
|
|
4213
4245
|
const { __scopeDropdownMenu: t, ...n } = e, o = te(t);
|
|
4214
|
-
return /* @__PURE__ */ d(
|
|
4246
|
+
return /* @__PURE__ */ d(tp, { ...o, ...n });
|
|
4215
4247
|
};
|
|
4216
|
-
Us.displayName =
|
|
4248
|
+
Us.displayName = vp;
|
|
4217
4249
|
var Gs = "DropdownMenuContent", zs = s.forwardRef(
|
|
4218
4250
|
(e, t) => {
|
|
4219
4251
|
const { __scopeDropdownMenu: n, ...o } = e, r = Ws(Gs, n), a = te(n), i = s.useRef(!1);
|
|
4220
4252
|
return /* @__PURE__ */ d(
|
|
4221
|
-
|
|
4253
|
+
np,
|
|
4222
4254
|
{
|
|
4223
4255
|
id: r.contentId,
|
|
4224
4256
|
"aria-labelledby": r.triggerId,
|
|
@@ -4245,68 +4277,68 @@ var Gs = "DropdownMenuContent", zs = s.forwardRef(
|
|
|
4245
4277
|
}
|
|
4246
4278
|
);
|
|
4247
4279
|
zs.displayName = Gs;
|
|
4248
|
-
var
|
|
4280
|
+
var gp = "DropdownMenuGroup", wp = s.forwardRef(
|
|
4249
4281
|
(e, t) => {
|
|
4250
4282
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4251
|
-
return /* @__PURE__ */ d(
|
|
4283
|
+
return /* @__PURE__ */ d(op, { ...r, ...o, ref: t });
|
|
4252
4284
|
}
|
|
4253
4285
|
);
|
|
4254
|
-
|
|
4255
|
-
var
|
|
4286
|
+
wp.displayName = gp;
|
|
4287
|
+
var yp = "DropdownMenuLabel", Cp = s.forwardRef(
|
|
4256
4288
|
(e, t) => {
|
|
4257
4289
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4258
|
-
return /* @__PURE__ */ d(
|
|
4290
|
+
return /* @__PURE__ */ d(rp, { ...r, ...o, ref: t });
|
|
4259
4291
|
}
|
|
4260
4292
|
);
|
|
4261
|
-
|
|
4262
|
-
var
|
|
4293
|
+
Cp.displayName = yp;
|
|
4294
|
+
var bp = "DropdownMenuItem", js = s.forwardRef(
|
|
4263
4295
|
(e, t) => {
|
|
4264
4296
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4265
|
-
return /* @__PURE__ */ d(
|
|
4297
|
+
return /* @__PURE__ */ d(sp, { ...r, ...o, ref: t });
|
|
4266
4298
|
}
|
|
4267
4299
|
);
|
|
4268
|
-
js.displayName =
|
|
4269
|
-
var
|
|
4300
|
+
js.displayName = bp;
|
|
4301
|
+
var xp = "DropdownMenuCheckboxItem", Ep = s.forwardRef((e, t) => {
|
|
4270
4302
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4271
|
-
return /* @__PURE__ */ d(
|
|
4303
|
+
return /* @__PURE__ */ d(ap, { ...r, ...o, ref: t });
|
|
4272
4304
|
});
|
|
4273
|
-
|
|
4274
|
-
var
|
|
4305
|
+
Ep.displayName = xp;
|
|
4306
|
+
var Sp = "DropdownMenuRadioGroup", Rp = s.forwardRef((e, t) => {
|
|
4275
4307
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4276
|
-
return /* @__PURE__ */ d(
|
|
4308
|
+
return /* @__PURE__ */ d(ip, { ...r, ...o, ref: t });
|
|
4277
4309
|
});
|
|
4278
|
-
|
|
4279
|
-
var
|
|
4310
|
+
Rp.displayName = Sp;
|
|
4311
|
+
var _p = "DropdownMenuRadioItem", Pp = s.forwardRef((e, t) => {
|
|
4280
4312
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4281
|
-
return /* @__PURE__ */ d(
|
|
4313
|
+
return /* @__PURE__ */ d(cp, { ...r, ...o, ref: t });
|
|
4282
4314
|
});
|
|
4283
|
-
|
|
4284
|
-
var
|
|
4315
|
+
Pp.displayName = _p;
|
|
4316
|
+
var Tp = "DropdownMenuItemIndicator", Mp = s.forwardRef((e, t) => {
|
|
4285
4317
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4286
|
-
return /* @__PURE__ */ d(
|
|
4318
|
+
return /* @__PURE__ */ d(lp, { ...r, ...o, ref: t });
|
|
4287
4319
|
});
|
|
4288
|
-
|
|
4289
|
-
var
|
|
4320
|
+
Mp.displayName = Tp;
|
|
4321
|
+
var Ap = "DropdownMenuSeparator", Ip = s.forwardRef((e, t) => {
|
|
4290
4322
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4291
|
-
return /* @__PURE__ */ d(
|
|
4323
|
+
return /* @__PURE__ */ d(up, { ...r, ...o, ref: t });
|
|
4292
4324
|
});
|
|
4293
|
-
|
|
4294
|
-
var
|
|
4325
|
+
Ip.displayName = Ap;
|
|
4326
|
+
var Np = "DropdownMenuArrow", Ys = s.forwardRef(
|
|
4295
4327
|
(e, t) => {
|
|
4296
4328
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4297
|
-
return /* @__PURE__ */ d(
|
|
4329
|
+
return /* @__PURE__ */ d(dp, { ...r, ...o, ref: t });
|
|
4298
4330
|
}
|
|
4299
4331
|
);
|
|
4300
|
-
Ys.displayName =
|
|
4301
|
-
var
|
|
4332
|
+
Ys.displayName = Np;
|
|
4333
|
+
var Op = "DropdownMenuSubTrigger", kp = s.forwardRef((e, t) => {
|
|
4302
4334
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4303
|
-
return /* @__PURE__ */ d(
|
|
4335
|
+
return /* @__PURE__ */ d(fp, { ...r, ...o, ref: t });
|
|
4304
4336
|
});
|
|
4305
|
-
|
|
4306
|
-
var
|
|
4337
|
+
kp.displayName = Op;
|
|
4338
|
+
var Dp = "DropdownMenuSubContent", Lp = s.forwardRef((e, t) => {
|
|
4307
4339
|
const { __scopeDropdownMenu: n, ...o } = e, r = te(n);
|
|
4308
4340
|
return /* @__PURE__ */ d(
|
|
4309
|
-
|
|
4341
|
+
pp,
|
|
4310
4342
|
{
|
|
4311
4343
|
...r,
|
|
4312
4344
|
...o,
|
|
@@ -4322,29 +4354,58 @@ var Mp = "DropdownMenuSubContent", Ap = s.forwardRef((e, t) => {
|
|
|
4322
4354
|
}
|
|
4323
4355
|
);
|
|
4324
4356
|
});
|
|
4325
|
-
|
|
4326
|
-
var
|
|
4327
|
-
const
|
|
4328
|
-
menuButtonContent:
|
|
4329
|
-
menuButtonItem:
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4357
|
+
Lp.displayName = Dp;
|
|
4358
|
+
var Fp = Hs, $p = Ks, Bp = Us, Wp = zs, Hp = js, Vp = Ys;
|
|
4359
|
+
const Kp = "_menuButtonContent_1rrp8_1", Up = "_menuButtonItem_1rrp8_13", Gp = "_menuButtonIcon_1rrp8_30", zp = "_menuButtonItemLabel_1rrp8_31", jp = "_menuButtonArrow_1rrp8_50", ut = {
|
|
4360
|
+
menuButtonContent: Kp,
|
|
4361
|
+
menuButtonItem: Up,
|
|
4362
|
+
menuButtonIcon: Gp,
|
|
4363
|
+
menuButtonItemLabel: zp,
|
|
4364
|
+
menuButtonArrow: jp
|
|
4365
|
+
}, Tv = ({
|
|
4366
|
+
children: e,
|
|
4367
|
+
trigger: t,
|
|
4368
|
+
...n
|
|
4369
|
+
}) => /* @__PURE__ */ K(Fp, { modal: !1, ...n, children: [
|
|
4370
|
+
/* @__PURE__ */ d($p, { asChild: !0, children: t }),
|
|
4371
|
+
/* @__PURE__ */ d(Bp, { children: /* @__PURE__ */ K(
|
|
4372
|
+
Wp,
|
|
4373
|
+
{
|
|
4374
|
+
align: "end",
|
|
4375
|
+
className: ut.menuButtonContent,
|
|
4376
|
+
sideOffset: 5,
|
|
4377
|
+
children: [
|
|
4378
|
+
e,
|
|
4379
|
+
/* @__PURE__ */ d(Vp, { className: ut.menuButtonArrow })
|
|
4380
|
+
]
|
|
4381
|
+
}
|
|
4382
|
+
) })
|
|
4383
|
+
] }), Mv = ({
|
|
4384
|
+
children: e,
|
|
4385
|
+
icon: t,
|
|
4386
|
+
...n
|
|
4387
|
+
}) => {
|
|
4388
|
+
const o = t ? dt[t] : void 0;
|
|
4389
|
+
return /* @__PURE__ */ K(Hp, { className: ut.menuButtonItem, ...n, children: [
|
|
4390
|
+
o && /* @__PURE__ */ d(
|
|
4391
|
+
o,
|
|
4392
|
+
{
|
|
4393
|
+
size: "md",
|
|
4394
|
+
className: `text-color-secondary ${ut.menuButtonIcon}`
|
|
4395
|
+
}
|
|
4396
|
+
),
|
|
4397
|
+
/* @__PURE__ */ d(
|
|
4398
|
+
"span",
|
|
4399
|
+
{
|
|
4400
|
+
className: `label-3 text-color-secondary ${ut.menuButtonItemLabel}`,
|
|
4401
|
+
children: e
|
|
4402
|
+
}
|
|
4403
|
+
)
|
|
4343
4404
|
] });
|
|
4344
4405
|
};
|
|
4345
4406
|
var fn = "Popover", [Xs] = me(fn, [
|
|
4346
4407
|
Ne
|
|
4347
|
-
]),
|
|
4408
|
+
]), Rt = Ne(), [Yp, Oe] = Xs(fn), qs = (e) => {
|
|
4348
4409
|
const {
|
|
4349
4410
|
__scopePopover: t,
|
|
4350
4411
|
children: n,
|
|
@@ -4352,14 +4413,14 @@ var fn = "Popover", [Xs] = me(fn, [
|
|
|
4352
4413
|
defaultOpen: r,
|
|
4353
4414
|
onOpenChange: a,
|
|
4354
4415
|
modal: i = !1
|
|
4355
|
-
} = e, c =
|
|
4416
|
+
} = e, c = Rt(t), l = s.useRef(null), [u, f] = s.useState(!1), [p, h] = Se({
|
|
4356
4417
|
prop: o,
|
|
4357
4418
|
defaultProp: r ?? !1,
|
|
4358
4419
|
onChange: a,
|
|
4359
4420
|
caller: fn
|
|
4360
4421
|
});
|
|
4361
4422
|
return /* @__PURE__ */ d(sn, { ...c, children: /* @__PURE__ */ d(
|
|
4362
|
-
|
|
4423
|
+
Yp,
|
|
4363
4424
|
{
|
|
4364
4425
|
scope: t,
|
|
4365
4426
|
contentId: de(),
|
|
@@ -4376,16 +4437,16 @@ var fn = "Popover", [Xs] = me(fn, [
|
|
|
4376
4437
|
) });
|
|
4377
4438
|
};
|
|
4378
4439
|
qs.displayName = fn;
|
|
4379
|
-
var Zs = "PopoverAnchor",
|
|
4440
|
+
var Zs = "PopoverAnchor", Xp = s.forwardRef(
|
|
4380
4441
|
(e, t) => {
|
|
4381
|
-
const { __scopePopover: n, ...o } = e, r = Oe(Zs, n), a =
|
|
4382
|
-
return s.useEffect(() => (i(), () => c()), [i, c]), /* @__PURE__ */ d(
|
|
4442
|
+
const { __scopePopover: n, ...o } = e, r = Oe(Zs, n), a = Rt(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: c } = r;
|
|
4443
|
+
return s.useEffect(() => (i(), () => c()), [i, c]), /* @__PURE__ */ d(bt, { ...a, ...o, ref: t });
|
|
4383
4444
|
}
|
|
4384
4445
|
);
|
|
4385
|
-
|
|
4446
|
+
Xp.displayName = Zs;
|
|
4386
4447
|
var Qs = "PopoverTrigger", Js = s.forwardRef(
|
|
4387
4448
|
(e, t) => {
|
|
4388
|
-
const { __scopePopover: n, ...o } = e, r = Oe(Qs, n), a =
|
|
4449
|
+
const { __scopePopover: n, ...o } = e, r = Oe(Qs, n), a = Rt(n), i = V(t, r.triggerRef), c = /* @__PURE__ */ d(
|
|
4389
4450
|
O.button,
|
|
4390
4451
|
{
|
|
4391
4452
|
type: "button",
|
|
@@ -4398,31 +4459,31 @@ var Qs = "PopoverTrigger", Js = s.forwardRef(
|
|
|
4398
4459
|
onClick: R(e.onClick, r.onOpenToggle)
|
|
4399
4460
|
}
|
|
4400
4461
|
);
|
|
4401
|
-
return r.hasCustomAnchor ? c : /* @__PURE__ */ d(
|
|
4462
|
+
return r.hasCustomAnchor ? c : /* @__PURE__ */ d(bt, { asChild: !0, ...a, children: c });
|
|
4402
4463
|
}
|
|
4403
4464
|
);
|
|
4404
4465
|
Js.displayName = Qs;
|
|
4405
|
-
var bo = "PopoverPortal", [
|
|
4466
|
+
var bo = "PopoverPortal", [qp, Zp] = Xs(bo, {
|
|
4406
4467
|
forceMount: void 0
|
|
4407
4468
|
}), ea = (e) => {
|
|
4408
4469
|
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, a = Oe(bo, t);
|
|
4409
|
-
return /* @__PURE__ */ d(
|
|
4470
|
+
return /* @__PURE__ */ d(qp, { scope: t, forceMount: n, children: /* @__PURE__ */ d(re, { present: n || a.open, children: /* @__PURE__ */ d(Ue, { asChild: !0, container: r, children: o }) }) });
|
|
4410
4471
|
};
|
|
4411
4472
|
ea.displayName = bo;
|
|
4412
4473
|
var tt = "PopoverContent", ta = s.forwardRef(
|
|
4413
4474
|
(e, t) => {
|
|
4414
|
-
const n =
|
|
4415
|
-
return /* @__PURE__ */ d(re, { present: o || a.open, children: a.modal ? /* @__PURE__ */ d(
|
|
4475
|
+
const n = Zp(tt, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, a = Oe(tt, e.__scopePopover);
|
|
4476
|
+
return /* @__PURE__ */ d(re, { present: o || a.open, children: a.modal ? /* @__PURE__ */ d(Jp, { ...r, ref: t }) : /* @__PURE__ */ d(em, { ...r, ref: t }) });
|
|
4416
4477
|
}
|
|
4417
4478
|
);
|
|
4418
4479
|
ta.displayName = tt;
|
|
4419
|
-
var
|
|
4480
|
+
var Qp = /* @__PURE__ */ $e("PopoverContent.RemoveScroll"), Jp = s.forwardRef(
|
|
4420
4481
|
(e, t) => {
|
|
4421
4482
|
const n = Oe(tt, e.__scopePopover), o = s.useRef(null), r = V(t, o), a = s.useRef(!1);
|
|
4422
4483
|
return s.useEffect(() => {
|
|
4423
4484
|
const i = o.current;
|
|
4424
4485
|
if (i) return Qt(i);
|
|
4425
|
-
}, []), /* @__PURE__ */ d(
|
|
4486
|
+
}, []), /* @__PURE__ */ d(yt, { as: Qp, allowPinchZoom: !0, children: /* @__PURE__ */ d(
|
|
4426
4487
|
na,
|
|
4427
4488
|
{
|
|
4428
4489
|
...e,
|
|
@@ -4448,7 +4509,7 @@ var Gp = /* @__PURE__ */ $e("PopoverContent.RemoveScroll"), zp = s.forwardRef(
|
|
|
4448
4509
|
}
|
|
4449
4510
|
) });
|
|
4450
4511
|
}
|
|
4451
|
-
),
|
|
4512
|
+
), em = s.forwardRef(
|
|
4452
4513
|
(e, t) => {
|
|
4453
4514
|
const n = Oe(tt, e.__scopePopover), o = s.useRef(!1), r = s.useRef(!1);
|
|
4454
4515
|
return /* @__PURE__ */ d(
|
|
@@ -4482,9 +4543,9 @@ var Gp = /* @__PURE__ */ $e("PopoverContent.RemoveScroll"), zp = s.forwardRef(
|
|
|
4482
4543
|
onFocusOutside: u,
|
|
4483
4544
|
onInteractOutside: f,
|
|
4484
4545
|
...p
|
|
4485
|
-
} = e, h = Oe(tt, n), g =
|
|
4546
|
+
} = e, h = Oe(tt, n), g = Rt(n);
|
|
4486
4547
|
return qt(), /* @__PURE__ */ d(
|
|
4487
|
-
|
|
4548
|
+
wt,
|
|
4488
4549
|
{
|
|
4489
4550
|
asChild: !0,
|
|
4490
4551
|
loop: !0,
|
|
@@ -4540,29 +4601,29 @@ var Gp = /* @__PURE__ */ $e("PopoverContent.RemoveScroll"), zp = s.forwardRef(
|
|
|
4540
4601
|
}
|
|
4541
4602
|
);
|
|
4542
4603
|
ra.displayName = oa;
|
|
4543
|
-
var
|
|
4604
|
+
var tm = "PopoverArrow", sa = s.forwardRef(
|
|
4544
4605
|
(e, t) => {
|
|
4545
|
-
const { __scopePopover: n, ...o } = e, r =
|
|
4606
|
+
const { __scopePopover: n, ...o } = e, r = Rt(n);
|
|
4546
4607
|
return /* @__PURE__ */ d(cn, { ...r, ...o, ref: t });
|
|
4547
4608
|
}
|
|
4548
4609
|
);
|
|
4549
|
-
sa.displayName =
|
|
4610
|
+
sa.displayName = tm;
|
|
4550
4611
|
function aa(e) {
|
|
4551
4612
|
return e ? "open" : "closed";
|
|
4552
4613
|
}
|
|
4553
|
-
var
|
|
4554
|
-
const
|
|
4555
|
-
popover:
|
|
4556
|
-
popoverContent:
|
|
4557
|
-
popoverArrow:
|
|
4558
|
-
popoverClose:
|
|
4559
|
-
},
|
|
4560
|
-
/* @__PURE__ */ d(
|
|
4561
|
-
/* @__PURE__ */ d(
|
|
4614
|
+
var nm = qs, om = Js, rm = ea, sm = ta, am = ra, im = sa;
|
|
4615
|
+
const cm = "_popover_bk0al_2", lm = "_popoverContent_bk0al_34", um = "_popoverArrow_bk0al_38", dm = "_popoverClose_bk0al_42", it = {
|
|
4616
|
+
popover: cm,
|
|
4617
|
+
popoverContent: lm,
|
|
4618
|
+
popoverArrow: um,
|
|
4619
|
+
popoverClose: dm
|
|
4620
|
+
}, Av = ({ trigger: e, title: t, size: n = "md", popoverContent: o, ...r }) => /* @__PURE__ */ K(nm, { children: [
|
|
4621
|
+
/* @__PURE__ */ d(om, { asChild: !0, children: e }),
|
|
4622
|
+
/* @__PURE__ */ d(rm, { children: /* @__PURE__ */ K(sm, { side: "right", className: it.popover, ...r, sideOffset: 5, "data-size": n, children: [
|
|
4562
4623
|
t && /* @__PURE__ */ d("h2", { className: `header-3 ${it.popoverTitle}`, children: t }),
|
|
4563
4624
|
/* @__PURE__ */ d("div", { className: it.popoverContent, children: o }),
|
|
4564
|
-
/* @__PURE__ */ d("div", { className: it.popoverClose, children: /* @__PURE__ */ d(
|
|
4565
|
-
/* @__PURE__ */ d(
|
|
4625
|
+
/* @__PURE__ */ d("div", { className: it.popoverClose, children: /* @__PURE__ */ d(am, { asChild: !0, children: /* @__PURE__ */ d(jt, { variant: "tertiary", size: "sm", iconOnly: !0, icon: "Close" }) }) }),
|
|
4626
|
+
/* @__PURE__ */ d(im, { className: it.popoverArrow })
|
|
4566
4627
|
] }) })
|
|
4567
4628
|
] });
|
|
4568
4629
|
function tr(e, [t, n]) {
|
|
@@ -4580,7 +4641,7 @@ var ia = Object.freeze({
|
|
|
4580
4641
|
clip: "rect(0, 0, 0, 0)",
|
|
4581
4642
|
whiteSpace: "nowrap",
|
|
4582
4643
|
wordWrap: "normal"
|
|
4583
|
-
}),
|
|
4644
|
+
}), fm = "VisuallyHidden", pn = s.forwardRef(
|
|
4584
4645
|
(e, t) => /* @__PURE__ */ d(
|
|
4585
4646
|
O.span,
|
|
4586
4647
|
{
|
|
@@ -4590,11 +4651,11 @@ var ia = Object.freeze({
|
|
|
4590
4651
|
}
|
|
4591
4652
|
)
|
|
4592
4653
|
);
|
|
4593
|
-
pn.displayName =
|
|
4594
|
-
var
|
|
4595
|
-
|
|
4654
|
+
pn.displayName = fm;
|
|
4655
|
+
var pm = pn, mm = [" ", "Enter", "ArrowUp", "ArrowDown"], hm = [" ", "Enter"], He = "Select", [mn, hn, vm] = en(He), [st] = me(He, [
|
|
4656
|
+
vm,
|
|
4596
4657
|
Ne
|
|
4597
|
-
]), vn = Ne(), [
|
|
4658
|
+
]), vn = Ne(), [gm, ke] = st(He), [wm, ym] = st(He), ca = (e) => {
|
|
4598
4659
|
const {
|
|
4599
4660
|
__scopeSelect: t,
|
|
4600
4661
|
children: n,
|
|
@@ -4620,9 +4681,9 @@ var am = pn, im = [" ", "Enter", "ArrowUp", "ArrowDown"], cm = [" ", "Enter"], H
|
|
|
4620
4681
|
defaultProp: c,
|
|
4621
4682
|
onChange: l,
|
|
4622
4683
|
caller: He
|
|
4623
|
-
}), L = s.useRef(null),
|
|
4684
|
+
}), L = s.useRef(null), W = v ? w || !!v.closest("form") : !0, [H, P] = s.useState(/* @__PURE__ */ new Set()), B = Array.from(H).map((N) => N.props.value).join(";");
|
|
4624
4685
|
return /* @__PURE__ */ d(sn, { ...m, children: /* @__PURE__ */ K(
|
|
4625
|
-
|
|
4686
|
+
gm,
|
|
4626
4687
|
{
|
|
4627
4688
|
required: g,
|
|
4628
4689
|
scope: t,
|
|
@@ -4642,7 +4703,7 @@ var am = pn, im = [" ", "Enter", "ArrowUp", "ArrowDown"], cm = [" ", "Enter"], H
|
|
|
4642
4703
|
disabled: h,
|
|
4643
4704
|
children: [
|
|
4644
4705
|
/* @__PURE__ */ d(mn.Provider, { scope: t, children: /* @__PURE__ */ d(
|
|
4645
|
-
|
|
4706
|
+
wm,
|
|
4646
4707
|
{
|
|
4647
4708
|
scope: e.__scopeSelect,
|
|
4648
4709
|
onNativeOptionAdd: s.useCallback((N) => {
|
|
@@ -4657,7 +4718,7 @@ var am = pn, im = [" ", "Enter", "ArrowUp", "ArrowDown"], cm = [" ", "Enter"], H
|
|
|
4657
4718
|
children: n
|
|
4658
4719
|
}
|
|
4659
4720
|
) }),
|
|
4660
|
-
|
|
4721
|
+
W ? /* @__PURE__ */ K(
|
|
4661
4722
|
Ta,
|
|
4662
4723
|
{
|
|
4663
4724
|
"aria-hidden": !0,
|
|
@@ -4671,10 +4732,10 @@ var am = pn, im = [" ", "Enter", "ArrowUp", "ArrowDown"], cm = [" ", "Enter"], H
|
|
|
4671
4732
|
form: w,
|
|
4672
4733
|
children: [
|
|
4673
4734
|
D === void 0 ? /* @__PURE__ */ d("option", { value: "" }) : null,
|
|
4674
|
-
Array.from(
|
|
4735
|
+
Array.from(H)
|
|
4675
4736
|
]
|
|
4676
4737
|
},
|
|
4677
|
-
|
|
4738
|
+
B
|
|
4678
4739
|
) : null
|
|
4679
4740
|
]
|
|
4680
4741
|
}
|
|
@@ -4692,7 +4753,7 @@ var la = "SelectTrigger", ua = s.forwardRef(
|
|
|
4692
4753
|
y: Math.round(m.pageY)
|
|
4693
4754
|
});
|
|
4694
4755
|
};
|
|
4695
|
-
return /* @__PURE__ */ d(
|
|
4756
|
+
return /* @__PURE__ */ d(bt, { asChild: !0, ...a, children: /* @__PURE__ */ d(
|
|
4696
4757
|
O.button,
|
|
4697
4758
|
{
|
|
4698
4759
|
type: "button",
|
|
@@ -4718,7 +4779,7 @@ var la = "SelectTrigger", ua = s.forwardRef(
|
|
|
4718
4779
|
}),
|
|
4719
4780
|
onKeyDown: R(r.onKeyDown, (m) => {
|
|
4720
4781
|
const v = p.current !== "";
|
|
4721
|
-
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(v && m.key === " ") &&
|
|
4782
|
+
!(m.ctrlKey || m.altKey || m.metaKey) && m.key.length === 1 && h(m.key), !(v && m.key === " ") && mm.includes(m.key) && (w(), m.preventDefault());
|
|
4722
4783
|
})
|
|
4723
4784
|
}
|
|
4724
4785
|
) });
|
|
@@ -4742,15 +4803,15 @@ var da = "SelectValue", fa = s.forwardRef(
|
|
|
4742
4803
|
}
|
|
4743
4804
|
);
|
|
4744
4805
|
fa.displayName = da;
|
|
4745
|
-
var
|
|
4806
|
+
var Cm = "SelectIcon", pa = s.forwardRef(
|
|
4746
4807
|
(e, t) => {
|
|
4747
4808
|
const { __scopeSelect: n, children: o, ...r } = e;
|
|
4748
4809
|
return /* @__PURE__ */ d(O.span, { "aria-hidden": !0, ...r, ref: t, children: o || "▼" });
|
|
4749
4810
|
}
|
|
4750
4811
|
);
|
|
4751
|
-
pa.displayName =
|
|
4752
|
-
var
|
|
4753
|
-
ma.displayName =
|
|
4812
|
+
pa.displayName = Cm;
|
|
4813
|
+
var bm = "SelectPortal", ma = (e) => /* @__PURE__ */ d(Ue, { asChild: !0, ...e });
|
|
4814
|
+
ma.displayName = bm;
|
|
4754
4815
|
var Ve = "SelectContent", ha = s.forwardRef(
|
|
4755
4816
|
(e, t) => {
|
|
4756
4817
|
const n = ke(Ve, e.__scopeSelect), [o, r] = s.useState();
|
|
@@ -4758,7 +4819,7 @@ var Ve = "SelectContent", ha = s.forwardRef(
|
|
|
4758
4819
|
r(new DocumentFragment());
|
|
4759
4820
|
}, []), !n.open) {
|
|
4760
4821
|
const a = o;
|
|
4761
|
-
return a ?
|
|
4822
|
+
return a ? gt.createPortal(
|
|
4762
4823
|
/* @__PURE__ */ d(va, { scope: e.__scopeSelect, children: /* @__PURE__ */ d(mn.Slot, { scope: e.__scopeSelect, children: /* @__PURE__ */ d("div", { children: e.children }) }) }),
|
|
4763
4824
|
a
|
|
4764
4825
|
) : null;
|
|
@@ -4767,7 +4828,7 @@ var Ve = "SelectContent", ha = s.forwardRef(
|
|
|
4767
4828
|
}
|
|
4768
4829
|
);
|
|
4769
4830
|
ha.displayName = Ve;
|
|
4770
|
-
var ue = 10, [va, De] = st(Ve),
|
|
4831
|
+
var ue = 10, [va, De] = st(Ve), xm = "SelectContentImpl", Em = /* @__PURE__ */ $e("SelectContent.RemoveScroll"), ga = s.forwardRef(
|
|
4771
4832
|
(e, t) => {
|
|
4772
4833
|
const {
|
|
4773
4834
|
__scopeSelect: n,
|
|
@@ -4791,24 +4852,24 @@ var ue = 10, [va, De] = st(Ve), hm = "SelectContentImpl", vm = /* @__PURE__ */ $
|
|
|
4791
4852
|
...C
|
|
4792
4853
|
} = e, y = ke(Ve, n), [b, x] = s.useState(null), [E, T] = s.useState(null), S = V(t, (M) => x(M)), [A, D] = s.useState(null), [k, L] = s.useState(
|
|
4793
4854
|
null
|
|
4794
|
-
),
|
|
4855
|
+
), W = hn(n), [H, P] = s.useState(!1), B = s.useRef(!1);
|
|
4795
4856
|
s.useEffect(() => {
|
|
4796
4857
|
if (b) return Qt(b);
|
|
4797
4858
|
}, [b]), qt();
|
|
4798
4859
|
const N = s.useCallback(
|
|
4799
4860
|
(M) => {
|
|
4800
|
-
const [G, ...ee] =
|
|
4861
|
+
const [G, ...ee] = W().map((X) => X.ref.current), [z] = ee.slice(-1), j = document.activeElement;
|
|
4801
4862
|
for (const X of M)
|
|
4802
4863
|
if (X === j || (X?.scrollIntoView({ block: "nearest" }), X === G && E && (E.scrollTop = 0), X === z && E && (E.scrollTop = E.scrollHeight), X?.focus(), document.activeElement !== j)) return;
|
|
4803
4864
|
},
|
|
4804
|
-
[
|
|
4865
|
+
[W, E]
|
|
4805
4866
|
), F = s.useCallback(
|
|
4806
4867
|
() => N([A, b]),
|
|
4807
4868
|
[N, A, b]
|
|
4808
4869
|
);
|
|
4809
4870
|
s.useEffect(() => {
|
|
4810
|
-
|
|
4811
|
-
}, [
|
|
4871
|
+
H && F();
|
|
4872
|
+
}, [H, F]);
|
|
4812
4873
|
const { onOpenChange: I, triggerPointerDownPosRef: _ } = y;
|
|
4813
4874
|
s.useEffect(() => {
|
|
4814
4875
|
if (b) {
|
|
@@ -4832,17 +4893,17 @@ var ue = 10, [va, De] = st(Ve), hm = "SelectContentImpl", vm = /* @__PURE__ */ $
|
|
|
4832
4893
|
};
|
|
4833
4894
|
}, [I]);
|
|
4834
4895
|
const [Y, q] = Aa((M) => {
|
|
4835
|
-
const G =
|
|
4896
|
+
const G = W().filter((j) => !j.disabled), ee = G.find((j) => j.ref.current === document.activeElement), z = Ia(G, M, ee);
|
|
4836
4897
|
z && setTimeout(() => z.ref.current.focus());
|
|
4837
4898
|
}), Q = s.useCallback(
|
|
4838
4899
|
(M, G, ee) => {
|
|
4839
|
-
const z =
|
|
4840
|
-
(y.value !== void 0 && y.value === G || z) && (D(M), z && (
|
|
4900
|
+
const z = !B.current && !ee;
|
|
4901
|
+
(y.value !== void 0 && y.value === G || z) && (D(M), z && (B.current = !0));
|
|
4841
4902
|
},
|
|
4842
4903
|
[y.value]
|
|
4843
4904
|
), ne = s.useCallback(() => b?.focus(), [b]), J = s.useCallback(
|
|
4844
4905
|
(M, G, ee) => {
|
|
4845
|
-
const z =
|
|
4906
|
+
const z = !B.current && !ee;
|
|
4846
4907
|
(y.value !== void 0 && y.value === G || z) && L(M);
|
|
4847
4908
|
},
|
|
4848
4909
|
[y.value]
|
|
@@ -4872,10 +4933,10 @@ var ue = 10, [va, De] = st(Ve), hm = "SelectContentImpl", vm = /* @__PURE__ */ $
|
|
|
4872
4933
|
focusSelectedItem: F,
|
|
4873
4934
|
selectedItemText: k,
|
|
4874
4935
|
position: o,
|
|
4875
|
-
isPositioned:
|
|
4936
|
+
isPositioned: H,
|
|
4876
4937
|
searchRef: Y,
|
|
4877
|
-
children: /* @__PURE__ */ d(
|
|
4878
|
-
|
|
4938
|
+
children: /* @__PURE__ */ d(yt, { as: Em, allowPinchZoom: !0, children: /* @__PURE__ */ d(
|
|
4939
|
+
wt,
|
|
4879
4940
|
{
|
|
4880
4941
|
asChild: !0,
|
|
4881
4942
|
trapped: y.open,
|
|
@@ -4917,7 +4978,7 @@ var ue = 10, [va, De] = st(Ve), hm = "SelectContentImpl", vm = /* @__PURE__ */ $
|
|
|
4917
4978
|
onKeyDown: R(C.onKeyDown, (M) => {
|
|
4918
4979
|
const G = M.ctrlKey || M.altKey || M.metaKey;
|
|
4919
4980
|
if (M.key === "Tab" && M.preventDefault(), !G && M.key.length === 1 && q(M.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(M.key)) {
|
|
4920
|
-
let z =
|
|
4981
|
+
let z = W().filter((j) => !j.disabled).map((j) => j.ref.current);
|
|
4921
4982
|
if (["ArrowUp", "End"].includes(M.key) && (z = z.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(M.key)) {
|
|
4922
4983
|
const j = M.target, X = z.indexOf(j);
|
|
4923
4984
|
z = z.slice(X + 1);
|
|
@@ -4935,8 +4996,8 @@ var ue = 10, [va, De] = st(Ve), hm = "SelectContentImpl", vm = /* @__PURE__ */ $
|
|
|
4935
4996
|
);
|
|
4936
4997
|
}
|
|
4937
4998
|
);
|
|
4938
|
-
ga.displayName =
|
|
4939
|
-
var
|
|
4999
|
+
ga.displayName = xm;
|
|
5000
|
+
var Sm = "SelectItemAlignedPosition", wa = s.forwardRef((e, t) => {
|
|
4940
5001
|
const { __scopeSelect: n, onPlaced: o, ...r } = e, a = ke(Ve, n), i = De(Ve, n), [c, l] = s.useState(null), [u, f] = s.useState(null), p = V(t, (S) => f(S)), h = hn(n), g = s.useRef(!1), w = s.useRef(!0), { viewport: m, selectedItem: v, selectedItemText: C, focusSelectedItem: y } = i, b = s.useCallback(() => {
|
|
4941
5002
|
if (a.trigger && a.valueNode && c && u && m && v && C) {
|
|
4942
5003
|
const S = a.trigger.getBoundingClientRect(), A = u.getBoundingClientRect(), D = a.valueNode.getBoundingClientRect(), k = C.getBoundingClientRect();
|
|
@@ -4958,7 +5019,7 @@ var gm = "SelectItemAlignedPosition", wa = s.forwardRef((e, t) => {
|
|
|
4958
5019
|
]);
|
|
4959
5020
|
c.style.minWidth = Le + "px", c.style.right = xn + "px";
|
|
4960
5021
|
}
|
|
4961
|
-
const L = h(),
|
|
5022
|
+
const L = h(), W = window.innerHeight - ue * 2, H = m.scrollHeight, P = window.getComputedStyle(u), B = parseInt(P.borderTopWidth, 10), N = parseInt(P.paddingTop, 10), F = parseInt(P.borderBottomWidth, 10), I = parseInt(P.paddingBottom, 10), _ = B + N + H + I + F, Y = Math.min(v.offsetHeight * 5, _), q = window.getComputedStyle(m), Q = parseInt(q.paddingTop, 10), ne = parseInt(q.paddingBottom, 10), J = S.top + S.height / 2 - ue, Ee = W - J, se = v.offsetHeight / 2, M = v.offsetTop + se, G = B + N + M, ee = _ - G;
|
|
4962
5023
|
if (G <= J) {
|
|
4963
5024
|
const j = L.length > 0 && v === L[L.length - 1].ref.current;
|
|
4964
5025
|
c.style.bottom = "0px";
|
|
@@ -4973,12 +5034,12 @@ var gm = "SelectItemAlignedPosition", wa = s.forwardRef((e, t) => {
|
|
|
4973
5034
|
c.style.top = "0px";
|
|
4974
5035
|
const ce = Math.max(
|
|
4975
5036
|
J,
|
|
4976
|
-
|
|
5037
|
+
B + m.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
4977
5038
|
(j ? Q : 0) + se
|
|
4978
5039
|
) + ee;
|
|
4979
5040
|
c.style.height = ce + "px", m.scrollTop = G - J + m.offsetTop;
|
|
4980
5041
|
}
|
|
4981
|
-
c.style.margin = `${ue}px 0`, c.style.minHeight = Y + "px", c.style.maxHeight =
|
|
5042
|
+
c.style.margin = `${ue}px 0`, c.style.minHeight = Y + "px", c.style.maxHeight = W + "px", o?.(), requestAnimationFrame(() => g.current = !0);
|
|
4982
5043
|
}
|
|
4983
5044
|
}, [
|
|
4984
5045
|
h,
|
|
@@ -5004,7 +5065,7 @@ var gm = "SelectItemAlignedPosition", wa = s.forwardRef((e, t) => {
|
|
|
5004
5065
|
[b, y]
|
|
5005
5066
|
);
|
|
5006
5067
|
return /* @__PURE__ */ d(
|
|
5007
|
-
|
|
5068
|
+
_m,
|
|
5008
5069
|
{
|
|
5009
5070
|
scope: n,
|
|
5010
5071
|
contentWrapper: c,
|
|
@@ -5040,8 +5101,8 @@ var gm = "SelectItemAlignedPosition", wa = s.forwardRef((e, t) => {
|
|
|
5040
5101
|
}
|
|
5041
5102
|
);
|
|
5042
5103
|
});
|
|
5043
|
-
wa.displayName =
|
|
5044
|
-
var
|
|
5104
|
+
wa.displayName = Sm;
|
|
5105
|
+
var Rm = "SelectPopperPosition", Hn = s.forwardRef((e, t) => {
|
|
5045
5106
|
const {
|
|
5046
5107
|
__scopeSelect: n,
|
|
5047
5108
|
align: o = "start",
|
|
@@ -5069,8 +5130,8 @@ var wm = "SelectPopperPosition", Hn = s.forwardRef((e, t) => {
|
|
|
5069
5130
|
}
|
|
5070
5131
|
);
|
|
5071
5132
|
});
|
|
5072
|
-
Hn.displayName =
|
|
5073
|
-
var [
|
|
5133
|
+
Hn.displayName = Rm;
|
|
5134
|
+
var [_m, xo] = st(Ve, {}), Vn = "SelectViewport", ya = s.forwardRef(
|
|
5074
5135
|
(e, t) => {
|
|
5075
5136
|
const { __scopeSelect: n, nonce: o, ...r } = e, a = De(Vn, n), i = xo(Vn, n), c = V(t, a.onViewportChange), l = s.useRef(0);
|
|
5076
5137
|
return /* @__PURE__ */ K(Ce, { children: [
|
|
@@ -5123,21 +5184,21 @@ var [ym, xo] = st(Ve, {}), Vn = "SelectViewport", ya = s.forwardRef(
|
|
|
5123
5184
|
}
|
|
5124
5185
|
);
|
|
5125
5186
|
ya.displayName = Vn;
|
|
5126
|
-
var Ca = "SelectGroup", [
|
|
5187
|
+
var Ca = "SelectGroup", [Pm, Tm] = st(Ca), Mm = s.forwardRef(
|
|
5127
5188
|
(e, t) => {
|
|
5128
5189
|
const { __scopeSelect: n, ...o } = e, r = de();
|
|
5129
|
-
return /* @__PURE__ */ d(
|
|
5190
|
+
return /* @__PURE__ */ d(Pm, { scope: n, id: r, children: /* @__PURE__ */ d(O.div, { role: "group", "aria-labelledby": r, ...o, ref: t }) });
|
|
5130
5191
|
}
|
|
5131
5192
|
);
|
|
5132
|
-
|
|
5133
|
-
var ba = "SelectLabel",
|
|
5193
|
+
Mm.displayName = Ca;
|
|
5194
|
+
var ba = "SelectLabel", Am = s.forwardRef(
|
|
5134
5195
|
(e, t) => {
|
|
5135
|
-
const { __scopeSelect: n, ...o } = e, r =
|
|
5196
|
+
const { __scopeSelect: n, ...o } = e, r = Tm(ba, n);
|
|
5136
5197
|
return /* @__PURE__ */ d(O.div, { id: r.id, ...o, ref: t });
|
|
5137
5198
|
}
|
|
5138
5199
|
);
|
|
5139
|
-
|
|
5140
|
-
var zt = "SelectItem", [
|
|
5200
|
+
Am.displayName = ba;
|
|
5201
|
+
var zt = "SelectItem", [Im, xa] = st(zt), Ea = s.forwardRef(
|
|
5141
5202
|
(e, t) => {
|
|
5142
5203
|
const {
|
|
5143
5204
|
__scopeSelect: n,
|
|
@@ -5156,7 +5217,7 @@ var zt = "SelectItem", [Sm, xa] = st(zt), Ea = s.forwardRef(
|
|
|
5156
5217
|
"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."
|
|
5157
5218
|
);
|
|
5158
5219
|
return /* @__PURE__ */ d(
|
|
5159
|
-
|
|
5220
|
+
Im,
|
|
5160
5221
|
{
|
|
5161
5222
|
scope: n,
|
|
5162
5223
|
value: o,
|
|
@@ -5204,7 +5265,7 @@ var zt = "SelectItem", [Sm, xa] = st(zt), Ea = s.forwardRef(
|
|
|
5204
5265
|
y.currentTarget === document.activeElement && l.onItemLeave?.();
|
|
5205
5266
|
}),
|
|
5206
5267
|
onKeyDown: R(i.onKeyDown, (y) => {
|
|
5207
|
-
l.searchRef?.current !== "" && y.key === " " || (
|
|
5268
|
+
l.searchRef?.current !== "" && y.key === " " || (hm.includes(y.key) && C(), y.key === " " && y.preventDefault());
|
|
5208
5269
|
})
|
|
5209
5270
|
}
|
|
5210
5271
|
)
|
|
@@ -5217,7 +5278,7 @@ var zt = "SelectItem", [Sm, xa] = st(zt), Ea = s.forwardRef(
|
|
|
5217
5278
|
Ea.displayName = zt;
|
|
5218
5279
|
var lt = "SelectItemText", Sa = s.forwardRef(
|
|
5219
5280
|
(e, t) => {
|
|
5220
|
-
const { __scopeSelect: n, className: o, style: r, ...a } = e, i = ke(lt, n), c = De(lt, n), l = xa(lt, n), u =
|
|
5281
|
+
const { __scopeSelect: n, className: o, style: r, ...a } = e, i = ke(lt, n), c = De(lt, n), l = xa(lt, n), u = ym(lt, n), [f, p] = s.useState(null), h = V(
|
|
5221
5282
|
t,
|
|
5222
5283
|
(C) => p(C),
|
|
5223
5284
|
l.onItemTextChange,
|
|
@@ -5228,7 +5289,7 @@ var lt = "SelectItemText", Sa = s.forwardRef(
|
|
|
5228
5289
|
), { onNativeOptionAdd: m, onNativeOptionRemove: v } = u;
|
|
5229
5290
|
return Z(() => (m(w), () => v(w)), [m, v, w]), /* @__PURE__ */ K(Ce, { children: [
|
|
5230
5291
|
/* @__PURE__ */ d(O.span, { id: l.textId, ...a, ref: h }),
|
|
5231
|
-
l.isSelected && i.valueNode && !i.valueNodeHasChildren ?
|
|
5292
|
+
l.isSelected && i.valueNode && !i.valueNodeHasChildren ? gt.createPortal(a.children, i.valueNode) : null
|
|
5232
5293
|
] });
|
|
5233
5294
|
}
|
|
5234
5295
|
);
|
|
@@ -5240,7 +5301,7 @@ var Ra = "SelectItemIndicator", _a = s.forwardRef(
|
|
|
5240
5301
|
}
|
|
5241
5302
|
);
|
|
5242
5303
|
_a.displayName = Ra;
|
|
5243
|
-
var Kn = "SelectScrollUpButton",
|
|
5304
|
+
var Kn = "SelectScrollUpButton", Nm = s.forwardRef((e, t) => {
|
|
5244
5305
|
const n = De(Kn, e.__scopeSelect), o = xo(Kn, e.__scopeSelect), [r, a] = s.useState(!1), i = V(t, o.onScrollButtonChange);
|
|
5245
5306
|
return Z(() => {
|
|
5246
5307
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5263,8 +5324,8 @@ var Kn = "SelectScrollUpButton", Rm = s.forwardRef((e, t) => {
|
|
|
5263
5324
|
}
|
|
5264
5325
|
) : null;
|
|
5265
5326
|
});
|
|
5266
|
-
|
|
5267
|
-
var Un = "SelectScrollDownButton",
|
|
5327
|
+
Nm.displayName = Kn;
|
|
5328
|
+
var Un = "SelectScrollDownButton", Om = s.forwardRef((e, t) => {
|
|
5268
5329
|
const n = De(Un, e.__scopeSelect), o = xo(Un, e.__scopeSelect), [r, a] = s.useState(!1), i = V(t, o.onScrollButtonChange);
|
|
5269
5330
|
return Z(() => {
|
|
5270
5331
|
if (n.viewport && n.isPositioned) {
|
|
@@ -5287,7 +5348,7 @@ var Un = "SelectScrollDownButton", _m = s.forwardRef((e, t) => {
|
|
|
5287
5348
|
}
|
|
5288
5349
|
) : null;
|
|
5289
5350
|
});
|
|
5290
|
-
|
|
5351
|
+
Om.displayName = Un;
|
|
5291
5352
|
var Pa = s.forwardRef((e, t) => {
|
|
5292
5353
|
const { __scopeSelect: n, onAutoScroll: o, ...r } = e, a = De("SelectScrollButton", n), i = s.useRef(null), c = hn(n), l = s.useCallback(() => {
|
|
5293
5354
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
@@ -5312,21 +5373,21 @@ var Pa = s.forwardRef((e, t) => {
|
|
|
5312
5373
|
})
|
|
5313
5374
|
}
|
|
5314
5375
|
);
|
|
5315
|
-
}),
|
|
5376
|
+
}), km = "SelectSeparator", Dm = s.forwardRef(
|
|
5316
5377
|
(e, t) => {
|
|
5317
5378
|
const { __scopeSelect: n, ...o } = e;
|
|
5318
5379
|
return /* @__PURE__ */ d(O.div, { "aria-hidden": !0, ...o, ref: t });
|
|
5319
5380
|
}
|
|
5320
5381
|
);
|
|
5321
|
-
|
|
5322
|
-
var Gn = "SelectArrow",
|
|
5382
|
+
Dm.displayName = km;
|
|
5383
|
+
var Gn = "SelectArrow", Lm = s.forwardRef(
|
|
5323
5384
|
(e, t) => {
|
|
5324
5385
|
const { __scopeSelect: n, ...o } = e, r = vn(n), a = ke(Gn, n), i = De(Gn, n);
|
|
5325
5386
|
return a.open && i.position === "popper" ? /* @__PURE__ */ d(cn, { ...r, ...o, ref: t }) : null;
|
|
5326
5387
|
}
|
|
5327
5388
|
);
|
|
5328
|
-
|
|
5329
|
-
var
|
|
5389
|
+
Lm.displayName = Gn;
|
|
5390
|
+
var Fm = "SelectBubbleInput", Ta = s.forwardRef(
|
|
5330
5391
|
({ __scopeSelect: e, value: t, ...n }, o) => {
|
|
5331
5392
|
const r = s.useRef(null), a = V(o, r), i = ar(t);
|
|
5332
5393
|
return s.useEffect(() => {
|
|
@@ -5351,7 +5412,7 @@ var Am = "SelectBubbleInput", Ta = s.forwardRef(
|
|
|
5351
5412
|
);
|
|
5352
5413
|
}
|
|
5353
5414
|
);
|
|
5354
|
-
Ta.displayName =
|
|
5415
|
+
Ta.displayName = Fm;
|
|
5355
5416
|
function Ma(e) {
|
|
5356
5417
|
return e === "" || e === void 0;
|
|
5357
5418
|
}
|
|
@@ -5371,29 +5432,29 @@ function Aa(e) {
|
|
|
5371
5432
|
}
|
|
5372
5433
|
function Ia(e, t, n) {
|
|
5373
5434
|
const r = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, a = n ? e.indexOf(n) : -1;
|
|
5374
|
-
let i =
|
|
5435
|
+
let i = $m(e, Math.max(a, 0));
|
|
5375
5436
|
r.length === 1 && (i = i.filter((u) => u !== n));
|
|
5376
5437
|
const l = i.find(
|
|
5377
5438
|
(u) => u.textValue.toLowerCase().startsWith(r.toLowerCase())
|
|
5378
5439
|
);
|
|
5379
5440
|
return l !== n ? l : void 0;
|
|
5380
5441
|
}
|
|
5381
|
-
function
|
|
5442
|
+
function $m(e, t) {
|
|
5382
5443
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
5383
5444
|
}
|
|
5384
|
-
var
|
|
5385
|
-
const
|
|
5386
|
-
container:
|
|
5387
|
-
label:
|
|
5388
|
-
trigger:
|
|
5389
|
-
icon:
|
|
5390
|
-
content:
|
|
5391
|
-
viewport:
|
|
5392
|
-
item:
|
|
5393
|
-
itemIndicator:
|
|
5394
|
-
error:
|
|
5395
|
-
helperText:
|
|
5396
|
-
},
|
|
5445
|
+
var Bm = ca, Wm = ua, Hm = fa, Vm = pa, Km = ma, Um = ha, Gm = ya, zm = Ea, jm = Sa, Ym = _a;
|
|
5446
|
+
const Xm = "_container_1ka3x_1", qm = "_label_1ka3x_9", Zm = "_trigger_1ka3x_16", Qm = "_icon_1ka3x_55", Jm = "_content_1ka3x_61", eh = "_viewport_1ka3x_71", th = "_item_1ka3x_75", nh = "_itemIndicator_1ka3x_93", oh = "_error_1ka3x_106", rh = "_helperText_1ka3x_112", ve = {
|
|
5447
|
+
container: Xm,
|
|
5448
|
+
label: qm,
|
|
5449
|
+
trigger: Zm,
|
|
5450
|
+
icon: Qm,
|
|
5451
|
+
content: Jm,
|
|
5452
|
+
viewport: eh,
|
|
5453
|
+
item: th,
|
|
5454
|
+
itemIndicator: nh,
|
|
5455
|
+
error: oh,
|
|
5456
|
+
helperText: rh
|
|
5457
|
+
}, sh = ({
|
|
5397
5458
|
label: e,
|
|
5398
5459
|
error: t,
|
|
5399
5460
|
helperText: n,
|
|
@@ -5404,9 +5465,9 @@ const Vm = "_container_1ka3x_1", Km = "_label_1ka3x_9", Um = "_trigger_1ka3x_16"
|
|
|
5404
5465
|
const i = Zn(), c = a.name || i, l = n ? `${c}-helper-text` : void 0, u = t ? `${c}-error` : void 0;
|
|
5405
5466
|
return /* @__PURE__ */ K("div", { className: ve.container, children: [
|
|
5406
5467
|
e && /* @__PURE__ */ d("label", { htmlFor: c, className: ve.label, children: e }),
|
|
5407
|
-
/* @__PURE__ */ K(
|
|
5468
|
+
/* @__PURE__ */ K(Bm, { ...a, children: [
|
|
5408
5469
|
/* @__PURE__ */ K(
|
|
5409
|
-
|
|
5470
|
+
Wm,
|
|
5410
5471
|
{
|
|
5411
5472
|
id: c,
|
|
5412
5473
|
className: ve.trigger,
|
|
@@ -5414,30 +5475,30 @@ const Vm = "_container_1ka3x_1", Km = "_label_1ka3x_9", Um = "_trigger_1ka3x_16"
|
|
|
5414
5475
|
"aria-describedby": u || l,
|
|
5415
5476
|
"data-has-error": !!t,
|
|
5416
5477
|
children: [
|
|
5417
|
-
/* @__PURE__ */ d(
|
|
5418
|
-
/* @__PURE__ */ d(
|
|
5478
|
+
/* @__PURE__ */ d(Hm, { placeholder: o }),
|
|
5479
|
+
/* @__PURE__ */ d(Vm, { className: ve.icon, children: /* @__PURE__ */ d(wc, { size: "md" }) })
|
|
5419
5480
|
]
|
|
5420
5481
|
}
|
|
5421
5482
|
),
|
|
5422
|
-
/* @__PURE__ */ d(
|
|
5483
|
+
/* @__PURE__ */ d(Km, { children: /* @__PURE__ */ d(Um, { className: ve.content, position: "popper", sideOffset: 5, children: /* @__PURE__ */ d(Gm, { className: ve.viewport, children: r }) }) })
|
|
5423
5484
|
] }),
|
|
5424
5485
|
t && /* @__PURE__ */ d("span", { id: u, className: ve.error, children: t }),
|
|
5425
5486
|
n && !t && /* @__PURE__ */ d("span", { id: l, className: ve.helperText, children: n })
|
|
5426
5487
|
] });
|
|
5427
|
-
},
|
|
5428
|
-
/* @__PURE__ */ d(
|
|
5429
|
-
/* @__PURE__ */ d(
|
|
5488
|
+
}, ah = $(({ children: e, className: t, ...n }, o) => /* @__PURE__ */ K(zm, { className: `${ve.item} ${t ?? ""}`, ...n, ref: o, children: [
|
|
5489
|
+
/* @__PURE__ */ d(jm, { className: "label-1", children: e }),
|
|
5490
|
+
/* @__PURE__ */ d(Ym, { className: ve.itemIndicator, children: /* @__PURE__ */ d(Qn, { size: "sm" }) })
|
|
5430
5491
|
] }));
|
|
5431
|
-
|
|
5432
|
-
|
|
5433
|
-
const
|
|
5434
|
-
container:
|
|
5435
|
-
label:
|
|
5436
|
-
inputWrapper:
|
|
5437
|
-
textArea:
|
|
5438
|
-
error:
|
|
5439
|
-
helperText:
|
|
5440
|
-
},
|
|
5492
|
+
ah.displayName = "SelectItem";
|
|
5493
|
+
sh.displayName = "SelectInput";
|
|
5494
|
+
const ih = "_container_1wksd_1", ch = "_label_1wksd_8", lh = "_inputWrapper_1wksd_15", uh = "_textArea_1wksd_21", dh = "_error_1wksd_60", fh = "_helperText_1wksd_66", qe = {
|
|
5495
|
+
container: ih,
|
|
5496
|
+
label: ch,
|
|
5497
|
+
inputWrapper: lh,
|
|
5498
|
+
textArea: uh,
|
|
5499
|
+
error: dh,
|
|
5500
|
+
helperText: fh
|
|
5501
|
+
}, ph = $(
|
|
5441
5502
|
({ className: e, label: t, error: n, helperText: o, id: r, ...a }, i) => {
|
|
5442
5503
|
const c = Zn(), l = r || c, u = o ? `${l}-helper-text` : void 0, f = n ? `${l}-error` : void 0;
|
|
5443
5504
|
return /* @__PURE__ */ K("div", { className: `${qe.container} ${e ?? ""}`, children: [
|
|
@@ -5459,8 +5520,8 @@ const eh = "_container_1wksd_1", th = "_label_1wksd_8", nh = "_inputWrapper_1wks
|
|
|
5459
5520
|
] });
|
|
5460
5521
|
}
|
|
5461
5522
|
);
|
|
5462
|
-
|
|
5463
|
-
var Eo = "ToastProvider", [So,
|
|
5523
|
+
ph.displayName = "TextArea";
|
|
5524
|
+
var Eo = "ToastProvider", [So, mh, hh] = en("Toast"), [Na] = me("Toast", [hh]), [vh, gn] = Na(Eo), Oa = (e) => {
|
|
5464
5525
|
const {
|
|
5465
5526
|
__scopeToast: t,
|
|
5466
5527
|
label: n = "Notification",
|
|
@@ -5472,7 +5533,7 @@ var Eo = "ToastProvider", [So, ih, ch] = en("Toast"), [Na] = me("Toast", [ch]),
|
|
|
5472
5533
|
return n.trim() || console.error(
|
|
5473
5534
|
`Invalid prop \`label\` supplied to \`${Eo}\`. Expected non-empty \`string\`.`
|
|
5474
5535
|
), /* @__PURE__ */ d(So.Provider, { scope: t, children: /* @__PURE__ */ d(
|
|
5475
|
-
|
|
5536
|
+
vh,
|
|
5476
5537
|
{
|
|
5477
5538
|
scope: t,
|
|
5478
5539
|
label: n,
|
|
@@ -5491,14 +5552,14 @@ var Eo = "ToastProvider", [So, ih, ch] = en("Toast"), [Na] = me("Toast", [ch]),
|
|
|
5491
5552
|
) });
|
|
5492
5553
|
};
|
|
5493
5554
|
Oa.displayName = Eo;
|
|
5494
|
-
var ka = "ToastViewport",
|
|
5555
|
+
var ka = "ToastViewport", gh = ["F8"], zn = "toast.viewportPause", jn = "toast.viewportResume", Da = s.forwardRef(
|
|
5495
5556
|
(e, t) => {
|
|
5496
5557
|
const {
|
|
5497
5558
|
__scopeToast: n,
|
|
5498
|
-
hotkey: o =
|
|
5559
|
+
hotkey: o = gh,
|
|
5499
5560
|
label: r = "Notifications ({hotkey})",
|
|
5500
5561
|
...a
|
|
5501
|
-
} = e, i = gn(ka, n), c =
|
|
5562
|
+
} = e, i = gn(ka, n), c = mh(n), l = s.useRef(null), u = s.useRef(null), f = s.useRef(null), p = s.useRef(null), h = V(t, p, i.onViewportChange), g = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), w = i.toastCount > 0;
|
|
5502
5563
|
s.useEffect(() => {
|
|
5503
5564
|
const v = (C) => {
|
|
5504
5565
|
o.length !== 0 && o.every((b) => C[b] || C.code === b) && p.current?.focus();
|
|
@@ -5530,7 +5591,7 @@ var ka = "ToastViewport", uh = ["F8"], zn = "toast.viewportPause", jn = "toast.v
|
|
|
5530
5591
|
const m = s.useCallback(
|
|
5531
5592
|
({ tabbingDirection: v }) => {
|
|
5532
5593
|
const y = c().map((b) => {
|
|
5533
|
-
const x = b.ref.current, E = [x, ...
|
|
5594
|
+
const x = b.ref.current, E = [x, ...Ah(x)];
|
|
5534
5595
|
return v === "forwards" ? E : E.reverse();
|
|
5535
5596
|
});
|
|
5536
5597
|
return (v === "forwards" ? y.reverse() : y).flat();
|
|
@@ -5555,7 +5616,7 @@ var ka = "ToastViewport", uh = ["F8"], zn = "toast.viewportPause", jn = "toast.v
|
|
|
5555
5616
|
return v.addEventListener("keydown", C), () => v.removeEventListener("keydown", C);
|
|
5556
5617
|
}
|
|
5557
5618
|
}, [c, m]), /* @__PURE__ */ K(
|
|
5558
|
-
|
|
5619
|
+
bl,
|
|
5559
5620
|
{
|
|
5560
5621
|
ref: l,
|
|
5561
5622
|
role: "region",
|
|
@@ -5613,16 +5674,16 @@ var La = "ToastFocusProxy", Yn = s.forwardRef(
|
|
|
5613
5674
|
}
|
|
5614
5675
|
);
|
|
5615
5676
|
Yn.displayName = La;
|
|
5616
|
-
var
|
|
5677
|
+
var _t = "Toast", wh = "toast.swipeStart", yh = "toast.swipeMove", Ch = "toast.swipeCancel", bh = "toast.swipeEnd", Fa = s.forwardRef(
|
|
5617
5678
|
(e, t) => {
|
|
5618
5679
|
const { forceMount: n, open: o, defaultOpen: r, onOpenChange: a, ...i } = e, [c, l] = Se({
|
|
5619
5680
|
prop: o,
|
|
5620
5681
|
defaultProp: r ?? !0,
|
|
5621
5682
|
onChange: a,
|
|
5622
|
-
caller:
|
|
5683
|
+
caller: _t
|
|
5623
5684
|
});
|
|
5624
5685
|
return /* @__PURE__ */ d(re, { present: n || c, children: /* @__PURE__ */ d(
|
|
5625
|
-
|
|
5686
|
+
Sh,
|
|
5626
5687
|
{
|
|
5627
5688
|
open: c,
|
|
5628
5689
|
...i,
|
|
@@ -5648,11 +5709,11 @@ var Rt = "Toast", dh = "toast.swipeStart", fh = "toast.swipeMove", ph = "toast.s
|
|
|
5648
5709
|
) });
|
|
5649
5710
|
}
|
|
5650
5711
|
);
|
|
5651
|
-
Fa.displayName =
|
|
5652
|
-
var [
|
|
5712
|
+
Fa.displayName = _t;
|
|
5713
|
+
var [xh, Eh] = Na(_t, {
|
|
5653
5714
|
onClose() {
|
|
5654
5715
|
}
|
|
5655
|
-
}),
|
|
5716
|
+
}), Sh = s.forwardRef(
|
|
5656
5717
|
(e, t) => {
|
|
5657
5718
|
const {
|
|
5658
5719
|
__scopeToast: n,
|
|
@@ -5668,9 +5729,9 @@ var [hh, vh] = Na(Rt, {
|
|
|
5668
5729
|
onSwipeCancel: h,
|
|
5669
5730
|
onSwipeEnd: g,
|
|
5670
5731
|
...w
|
|
5671
|
-
} = e, m = gn(
|
|
5732
|
+
} = e, m = gn(_t, n), [v, C] = s.useState(null), y = V(t, (P) => C(P)), b = s.useRef(null), x = s.useRef(null), E = r || m.duration, T = s.useRef(0), S = s.useRef(E), A = s.useRef(0), { onToastAdd: D, onToastRemove: k } = m, L = oe(() => {
|
|
5672
5733
|
v?.contains(document.activeElement) && m.viewport?.focus(), i();
|
|
5673
|
-
}),
|
|
5734
|
+
}), W = s.useCallback(
|
|
5674
5735
|
(P) => {
|
|
5675
5736
|
!P || P === 1 / 0 || (window.clearTimeout(A.current), T.current = (/* @__PURE__ */ new Date()).getTime(), A.current = window.setTimeout(L, P));
|
|
5676
5737
|
},
|
|
@@ -5679,33 +5740,33 @@ var [hh, vh] = Na(Rt, {
|
|
|
5679
5740
|
s.useEffect(() => {
|
|
5680
5741
|
const P = m.viewport;
|
|
5681
5742
|
if (P) {
|
|
5682
|
-
const
|
|
5683
|
-
|
|
5743
|
+
const B = () => {
|
|
5744
|
+
W(S.current), u?.();
|
|
5684
5745
|
}, N = () => {
|
|
5685
5746
|
const F = (/* @__PURE__ */ new Date()).getTime() - T.current;
|
|
5686
5747
|
S.current = S.current - F, window.clearTimeout(A.current), l?.();
|
|
5687
5748
|
};
|
|
5688
|
-
return P.addEventListener(zn, N), P.addEventListener(jn,
|
|
5689
|
-
P.removeEventListener(zn, N), P.removeEventListener(jn,
|
|
5749
|
+
return P.addEventListener(zn, N), P.addEventListener(jn, B), () => {
|
|
5750
|
+
P.removeEventListener(zn, N), P.removeEventListener(jn, B);
|
|
5690
5751
|
};
|
|
5691
5752
|
}
|
|
5692
|
-
}, [m.viewport, E, l, u,
|
|
5693
|
-
a && !m.isClosePausedRef.current &&
|
|
5694
|
-
}, [a, E, m.isClosePausedRef,
|
|
5695
|
-
const
|
|
5753
|
+
}, [m.viewport, E, l, u, W]), s.useEffect(() => {
|
|
5754
|
+
a && !m.isClosePausedRef.current && W(E);
|
|
5755
|
+
}, [a, E, m.isClosePausedRef, W]), s.useEffect(() => (D(), () => k()), [D, k]);
|
|
5756
|
+
const H = s.useMemo(() => v ? Ua(v) : null, [v]);
|
|
5696
5757
|
return m.viewport ? /* @__PURE__ */ K(Ce, { children: [
|
|
5697
|
-
|
|
5698
|
-
|
|
5758
|
+
H && /* @__PURE__ */ d(
|
|
5759
|
+
Rh,
|
|
5699
5760
|
{
|
|
5700
5761
|
__scopeToast: n,
|
|
5701
5762
|
role: "status",
|
|
5702
5763
|
"aria-live": o === "foreground" ? "assertive" : "polite",
|
|
5703
|
-
children:
|
|
5764
|
+
children: H
|
|
5704
5765
|
}
|
|
5705
5766
|
),
|
|
5706
|
-
/* @__PURE__ */ d(
|
|
5767
|
+
/* @__PURE__ */ d(xh, { scope: n, onClose: L, children: gt.createPortal(
|
|
5707
5768
|
/* @__PURE__ */ d(So.ItemSlot, { scope: n, children: /* @__PURE__ */ d(
|
|
5708
|
-
|
|
5769
|
+
Cl,
|
|
5709
5770
|
{
|
|
5710
5771
|
asChild: !0,
|
|
5711
5772
|
onEscapeKeyDown: R(c, () => {
|
|
@@ -5728,21 +5789,21 @@ var [hh, vh] = Na(Rt, {
|
|
|
5728
5789
|
}),
|
|
5729
5790
|
onPointerMove: R(e.onPointerMove, (P) => {
|
|
5730
5791
|
if (!b.current) return;
|
|
5731
|
-
const
|
|
5732
|
-
F ? (x.current = ne,
|
|
5792
|
+
const B = P.clientX - b.current.x, N = P.clientY - b.current.y, F = !!x.current, I = ["left", "right"].includes(m.swipeDirection), _ = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, Y = I ? _(0, B) : 0, q = I ? 0 : _(0, N), Q = P.pointerType === "touch" ? 10 : 2, ne = { x: Y, y: q }, J = { originalEvent: P, delta: ne };
|
|
5793
|
+
F ? (x.current = ne, Dt(yh, p, J, {
|
|
5733
5794
|
discrete: !1
|
|
5734
|
-
})) : nr(ne, m.swipeDirection, Q) ? (x.current = ne,
|
|
5795
|
+
})) : nr(ne, m.swipeDirection, Q) ? (x.current = ne, Dt(wh, f, J, {
|
|
5735
5796
|
discrete: !1
|
|
5736
|
-
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(
|
|
5797
|
+
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(B) > Q || Math.abs(N) > Q) && (b.current = null);
|
|
5737
5798
|
}),
|
|
5738
5799
|
onPointerUp: R(e.onPointerUp, (P) => {
|
|
5739
|
-
const
|
|
5740
|
-
if (N.hasPointerCapture(P.pointerId) && N.releasePointerCapture(P.pointerId), x.current = null, b.current = null,
|
|
5741
|
-
const F = P.currentTarget, I = { originalEvent: P, delta:
|
|
5742
|
-
nr(
|
|
5800
|
+
const B = x.current, N = P.target;
|
|
5801
|
+
if (N.hasPointerCapture(P.pointerId) && N.releasePointerCapture(P.pointerId), x.current = null, b.current = null, B) {
|
|
5802
|
+
const F = P.currentTarget, I = { originalEvent: P, delta: B };
|
|
5803
|
+
nr(B, m.swipeDirection, m.swipeThreshold) ? Dt(bh, g, I, {
|
|
5743
5804
|
discrete: !0
|
|
5744
|
-
}) :
|
|
5745
|
-
|
|
5805
|
+
}) : Dt(
|
|
5806
|
+
Ch,
|
|
5746
5807
|
h,
|
|
5747
5808
|
I,
|
|
5748
5809
|
{
|
|
@@ -5761,9 +5822,9 @@ var [hh, vh] = Na(Rt, {
|
|
|
5761
5822
|
) })
|
|
5762
5823
|
] }) : null;
|
|
5763
5824
|
}
|
|
5764
|
-
),
|
|
5765
|
-
const { __scopeToast: t, children: n, ...o } = e, r = gn(
|
|
5766
|
-
return
|
|
5825
|
+
), Rh = (e) => {
|
|
5826
|
+
const { __scopeToast: t, children: n, ...o } = e, r = gn(_t, t), [a, i] = s.useState(!1), [c, l] = s.useState(!1);
|
|
5827
|
+
return Th(() => i(!0)), s.useEffect(() => {
|
|
5767
5828
|
const u = window.setTimeout(() => l(!0), 1e3);
|
|
5768
5829
|
return () => window.clearTimeout(u);
|
|
5769
5830
|
}, []), c ? null : /* @__PURE__ */ d(Ue, { asChild: !0, children: /* @__PURE__ */ d(pn, { ...o, children: a && /* @__PURE__ */ K(Ce, { children: [
|
|
@@ -5771,20 +5832,20 @@ var [hh, vh] = Na(Rt, {
|
|
|
5771
5832
|
" ",
|
|
5772
5833
|
n
|
|
5773
5834
|
] }) }) });
|
|
5774
|
-
},
|
|
5835
|
+
}, _h = "ToastTitle", $a = s.forwardRef(
|
|
5775
5836
|
(e, t) => {
|
|
5776
5837
|
const { __scopeToast: n, ...o } = e;
|
|
5777
5838
|
return /* @__PURE__ */ d(O.div, { ...o, ref: t });
|
|
5778
5839
|
}
|
|
5779
5840
|
);
|
|
5780
|
-
$a.displayName =
|
|
5781
|
-
var
|
|
5841
|
+
$a.displayName = _h;
|
|
5842
|
+
var Ph = "ToastDescription", Ba = s.forwardRef(
|
|
5782
5843
|
(e, t) => {
|
|
5783
5844
|
const { __scopeToast: n, ...o } = e;
|
|
5784
5845
|
return /* @__PURE__ */ d(O.div, { ...o, ref: t });
|
|
5785
5846
|
}
|
|
5786
5847
|
);
|
|
5787
|
-
Ba.displayName =
|
|
5848
|
+
Ba.displayName = Ph;
|
|
5788
5849
|
var Wa = "ToastAction", Ha = s.forwardRef(
|
|
5789
5850
|
(e, t) => {
|
|
5790
5851
|
const { altText: n, ...o } = e;
|
|
@@ -5796,7 +5857,7 @@ var Wa = "ToastAction", Ha = s.forwardRef(
|
|
|
5796
5857
|
Ha.displayName = Wa;
|
|
5797
5858
|
var Va = "ToastClose", Ro = s.forwardRef(
|
|
5798
5859
|
(e, t) => {
|
|
5799
|
-
const { __scopeToast: n, ...o } = e, r =
|
|
5860
|
+
const { __scopeToast: n, ...o } = e, r = Eh(Va, n);
|
|
5800
5861
|
return /* @__PURE__ */ d(Ka, { asChild: !0, children: /* @__PURE__ */ d(
|
|
5801
5862
|
O.button,
|
|
5802
5863
|
{
|
|
@@ -5824,7 +5885,7 @@ var Ka = s.forwardRef((e, t) => {
|
|
|
5824
5885
|
function Ua(e) {
|
|
5825
5886
|
const t = [];
|
|
5826
5887
|
return Array.from(e.childNodes).forEach((o) => {
|
|
5827
|
-
if (o.nodeType === o.TEXT_NODE && o.textContent && t.push(o.textContent),
|
|
5888
|
+
if (o.nodeType === o.TEXT_NODE && o.textContent && t.push(o.textContent), Mh(o)) {
|
|
5828
5889
|
const r = o.ariaHidden || o.hidden || o.style.display === "none", a = o.dataset.radixToastAnnounceExclude === "";
|
|
5829
5890
|
if (!r)
|
|
5830
5891
|
if (a) {
|
|
@@ -5835,7 +5896,7 @@ function Ua(e) {
|
|
|
5835
5896
|
}
|
|
5836
5897
|
}), t;
|
|
5837
5898
|
}
|
|
5838
|
-
function
|
|
5899
|
+
function Dt(e, t, n, { discrete: o }) {
|
|
5839
5900
|
const r = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
5840
5901
|
t && r.addEventListener(e, t, { once: !0 }), o ? Jn(r, a) : r.dispatchEvent(a);
|
|
5841
5902
|
}
|
|
@@ -5843,7 +5904,7 @@ var nr = (e, t, n = 0) => {
|
|
|
5843
5904
|
const o = Math.abs(e.x), r = Math.abs(e.y), a = o > r;
|
|
5844
5905
|
return t === "left" || t === "right" ? a && o > n : !a && r > n;
|
|
5845
5906
|
};
|
|
5846
|
-
function
|
|
5907
|
+
function Th(e = () => {
|
|
5847
5908
|
}) {
|
|
5848
5909
|
const t = oe(e);
|
|
5849
5910
|
Z(() => {
|
|
@@ -5853,10 +5914,10 @@ function bh(e = () => {
|
|
|
5853
5914
|
};
|
|
5854
5915
|
}, [t]);
|
|
5855
5916
|
}
|
|
5856
|
-
function
|
|
5917
|
+
function Mh(e) {
|
|
5857
5918
|
return e.nodeType === e.ELEMENT_NODE;
|
|
5858
5919
|
}
|
|
5859
|
-
function
|
|
5920
|
+
function Ah(e) {
|
|
5860
5921
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
5861
5922
|
acceptNode: (o) => {
|
|
5862
5923
|
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -5870,32 +5931,32 @@ function On(e) {
|
|
|
5870
5931
|
const t = document.activeElement;
|
|
5871
5932
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
5872
5933
|
}
|
|
5873
|
-
var
|
|
5874
|
-
const
|
|
5875
|
-
toast:
|
|
5876
|
-
toastContent:
|
|
5877
|
-
toastViewport:
|
|
5878
|
-
toastTitle:
|
|
5879
|
-
toastDescription:
|
|
5880
|
-
},
|
|
5881
|
-
|
|
5882
|
-
const
|
|
5883
|
-
({ toastTitle: e, toastDescription: t, toastAction: n, ...o }, r) => /* @__PURE__ */ K(
|
|
5934
|
+
var Ih = Oa, Nh = Da, Oh = Fa, kh = $a, Dh = Ba, Lh = Ha, Fh = Ro;
|
|
5935
|
+
const $h = "_toast_1ga0s_1", Bh = "_toastContent_1ga0s_12", Wh = "_toastViewport_1ga0s_70", Hh = "_toastTitle_1ga0s_89", Vh = "_toastDescription_1ga0s_95", Ze = {
|
|
5936
|
+
toast: $h,
|
|
5937
|
+
toastContent: Bh,
|
|
5938
|
+
toastViewport: Wh,
|
|
5939
|
+
toastTitle: Hh,
|
|
5940
|
+
toastDescription: Vh
|
|
5941
|
+
}, Iv = ({ ...e }) => /* @__PURE__ */ d(Ih, { ...e }), Kh = $(({ ...e }, t) => /* @__PURE__ */ d(Nh, { className: Ze.toastViewport, ref: t, ...e }));
|
|
5942
|
+
Kh.displayName = "ToastViewport";
|
|
5943
|
+
const Uh = $(
|
|
5944
|
+
({ toastTitle: e, toastDescription: t, toastAction: n, ...o }, r) => /* @__PURE__ */ K(Oh, { className: Ze.toast, ref: r, ...o, children: [
|
|
5884
5945
|
/* @__PURE__ */ K("div", { className: Ze.toastContent, children: [
|
|
5885
|
-
/* @__PURE__ */ d(
|
|
5886
|
-
t && /* @__PURE__ */ d(
|
|
5946
|
+
/* @__PURE__ */ d(kh, { className: Ze.toastTitle, children: e }),
|
|
5947
|
+
t && /* @__PURE__ */ d(Dh, { className: Ze.toastDescription, children: t })
|
|
5887
5948
|
] }),
|
|
5888
|
-
n && /* @__PURE__ */ d(
|
|
5889
|
-
/* @__PURE__ */ d(
|
|
5949
|
+
n && /* @__PURE__ */ d(Lh, { className: Ze.toastAction, asChild: !0, altText: "Toast action", children: n }),
|
|
5950
|
+
/* @__PURE__ */ d(Fh, { asChild: !0, children: /* @__PURE__ */ d(jt, { variant: "tertiary", iconOnly: !0, icon: "Close" }) })
|
|
5890
5951
|
] })
|
|
5891
5952
|
);
|
|
5892
|
-
|
|
5953
|
+
Uh.displayName = "Toast";
|
|
5893
5954
|
var [wn] = me("Tooltip", [
|
|
5894
5955
|
Ne
|
|
5895
|
-
]), yn = Ne(), Ga = "TooltipProvider",
|
|
5956
|
+
]), yn = Ne(), Ga = "TooltipProvider", Gh = 700, Xn = "tooltip.open", [zh, _o] = wn(Ga), za = (e) => {
|
|
5896
5957
|
const {
|
|
5897
5958
|
__scopeTooltip: t,
|
|
5898
|
-
delayDuration: n =
|
|
5959
|
+
delayDuration: n = Gh,
|
|
5899
5960
|
skipDelayDuration: o = 300,
|
|
5900
5961
|
disableHoverableContent: r = !1,
|
|
5901
5962
|
children: a
|
|
@@ -5904,7 +5965,7 @@ var [wn] = me("Tooltip", [
|
|
|
5904
5965
|
const u = l.current;
|
|
5905
5966
|
return () => window.clearTimeout(u);
|
|
5906
5967
|
}, []), /* @__PURE__ */ d(
|
|
5907
|
-
|
|
5968
|
+
zh,
|
|
5908
5969
|
{
|
|
5909
5970
|
scope: t,
|
|
5910
5971
|
isOpenDelayedRef: i,
|
|
@@ -5928,7 +5989,7 @@ var [wn] = me("Tooltip", [
|
|
|
5928
5989
|
);
|
|
5929
5990
|
};
|
|
5930
5991
|
za.displayName = Ga;
|
|
5931
|
-
var
|
|
5992
|
+
var vt = "Tooltip", [jh, Pt] = wn(vt), ja = (e) => {
|
|
5932
5993
|
const {
|
|
5933
5994
|
__scopeTooltip: t,
|
|
5934
5995
|
children: n,
|
|
@@ -5937,13 +5998,13 @@ var ht = "Tooltip", [Wh, _t] = wn(ht), ja = (e) => {
|
|
|
5937
5998
|
onOpenChange: a,
|
|
5938
5999
|
disableHoverableContent: i,
|
|
5939
6000
|
delayDuration: c
|
|
5940
|
-
} = e, l = _o(
|
|
6001
|
+
} = e, l = _o(vt, e.__scopeTooltip), u = yn(t), [f, p] = s.useState(null), h = de(), g = s.useRef(0), w = i ?? l.disableHoverableContent, m = c ?? l.delayDuration, v = s.useRef(!1), [C, y] = Se({
|
|
5941
6002
|
prop: o,
|
|
5942
6003
|
defaultProp: r ?? !1,
|
|
5943
6004
|
onChange: (S) => {
|
|
5944
6005
|
S ? (l.onOpen(), document.dispatchEvent(new CustomEvent(Xn))) : l.onClose(), a?.(S);
|
|
5945
6006
|
},
|
|
5946
|
-
caller:
|
|
6007
|
+
caller: vt
|
|
5947
6008
|
}), b = s.useMemo(() => C ? v.current ? "delayed-open" : "instant-open" : "closed", [C]), x = s.useCallback(() => {
|
|
5948
6009
|
window.clearTimeout(g.current), g.current = 0, v.current = !1, y(!0);
|
|
5949
6010
|
}, [y]), E = s.useCallback(() => {
|
|
@@ -5956,7 +6017,7 @@ var ht = "Tooltip", [Wh, _t] = wn(ht), ja = (e) => {
|
|
|
5956
6017
|
return s.useEffect(() => () => {
|
|
5957
6018
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
5958
6019
|
}, []), /* @__PURE__ */ d(sn, { ...u, children: /* @__PURE__ */ d(
|
|
5959
|
-
|
|
6020
|
+
jh,
|
|
5960
6021
|
{
|
|
5961
6022
|
scope: t,
|
|
5962
6023
|
contentId: h,
|
|
@@ -5977,11 +6038,11 @@ var ht = "Tooltip", [Wh, _t] = wn(ht), ja = (e) => {
|
|
|
5977
6038
|
}
|
|
5978
6039
|
) });
|
|
5979
6040
|
};
|
|
5980
|
-
ja.displayName =
|
|
6041
|
+
ja.displayName = vt;
|
|
5981
6042
|
var qn = "TooltipTrigger", Ya = s.forwardRef(
|
|
5982
6043
|
(e, t) => {
|
|
5983
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
5984
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ d(
|
|
6044
|
+
const { __scopeTooltip: n, ...o } = e, r = Pt(qn, n), a = _o(qn, n), i = yn(n), c = s.useRef(null), l = V(t, c, r.onTriggerChange), u = s.useRef(!1), f = s.useRef(!1), p = s.useCallback(() => u.current = !1, []);
|
|
6045
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", p), [p]), /* @__PURE__ */ d(bt, { asChild: !0, ...i, children: /* @__PURE__ */ d(
|
|
5985
6046
|
O.button,
|
|
5986
6047
|
{
|
|
5987
6048
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -6007,24 +6068,24 @@ var qn = "TooltipTrigger", Ya = s.forwardRef(
|
|
|
6007
6068
|
}
|
|
6008
6069
|
);
|
|
6009
6070
|
Ya.displayName = qn;
|
|
6010
|
-
var Po = "TooltipPortal", [
|
|
6071
|
+
var Po = "TooltipPortal", [Yh, Xh] = wn(Po, {
|
|
6011
6072
|
forceMount: void 0
|
|
6012
6073
|
}), Xa = (e) => {
|
|
6013
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, a =
|
|
6014
|
-
return /* @__PURE__ */ d(
|
|
6074
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, a = Pt(Po, t);
|
|
6075
|
+
return /* @__PURE__ */ d(Yh, { scope: t, forceMount: n, children: /* @__PURE__ */ d(re, { present: n || a.open, children: /* @__PURE__ */ d(Ue, { asChild: !0, container: r, children: o }) }) });
|
|
6015
6076
|
};
|
|
6016
6077
|
Xa.displayName = Po;
|
|
6017
6078
|
var nt = "TooltipContent", qa = s.forwardRef(
|
|
6018
6079
|
(e, t) => {
|
|
6019
|
-
const n =
|
|
6020
|
-
return /* @__PURE__ */ d(re, { present: o || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ d(Za, { side: r, ...a, ref: t }) : /* @__PURE__ */ d(
|
|
6080
|
+
const n = Xh(nt, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...a } = e, i = Pt(nt, e.__scopeTooltip);
|
|
6081
|
+
return /* @__PURE__ */ d(re, { present: o || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ d(Za, { side: r, ...a, ref: t }) : /* @__PURE__ */ d(qh, { side: r, ...a, ref: t }) });
|
|
6021
6082
|
}
|
|
6022
|
-
),
|
|
6023
|
-
const n =
|
|
6083
|
+
), qh = s.forwardRef((e, t) => {
|
|
6084
|
+
const n = Pt(nt, e.__scopeTooltip), o = _o(nt, e.__scopeTooltip), r = s.useRef(null), a = V(t, r), [i, c] = s.useState(null), { trigger: l, onClose: u } = n, f = r.current, { onPointerInTransitChange: p } = o, h = s.useCallback(() => {
|
|
6024
6085
|
c(null), p(!1);
|
|
6025
6086
|
}, [p]), g = s.useCallback(
|
|
6026
6087
|
(w, m) => {
|
|
6027
|
-
const v = w.currentTarget, C = { x: w.clientX, y: w.clientY }, y =
|
|
6088
|
+
const v = w.currentTarget, C = { x: w.clientX, y: w.clientY }, y = ev(C, v.getBoundingClientRect()), b = tv(C, y), x = nv(m.getBoundingClientRect()), E = rv([...b, ...x]);
|
|
6028
6089
|
c(E), p(!0);
|
|
6029
6090
|
},
|
|
6030
6091
|
[p]
|
|
@@ -6039,13 +6100,13 @@ var nt = "TooltipContent", qa = s.forwardRef(
|
|
|
6039
6100
|
}, [l, f, g, h]), s.useEffect(() => {
|
|
6040
6101
|
if (i) {
|
|
6041
6102
|
const w = (m) => {
|
|
6042
|
-
const v = m.target, C = { x: m.clientX, y: m.clientY }, y = l?.contains(v) || f?.contains(v), b = !
|
|
6103
|
+
const v = m.target, C = { x: m.clientX, y: m.clientY }, y = l?.contains(v) || f?.contains(v), b = !ov(C, i);
|
|
6043
6104
|
y ? h() : b && (h(), u());
|
|
6044
6105
|
};
|
|
6045
6106
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
6046
6107
|
}
|
|
6047
6108
|
}, [l, f, i, u, h]), /* @__PURE__ */ d(Za, { ...e, ref: a });
|
|
6048
|
-
}), [
|
|
6109
|
+
}), [Zh, Qh] = wn(vt, { isInside: !1 }), Jh = /* @__PURE__ */ Zc("TooltipContent"), Za = s.forwardRef(
|
|
6049
6110
|
(e, t) => {
|
|
6050
6111
|
const {
|
|
6051
6112
|
__scopeTooltip: n,
|
|
@@ -6054,7 +6115,7 @@ var nt = "TooltipContent", qa = s.forwardRef(
|
|
|
6054
6115
|
onEscapeKeyDown: a,
|
|
6055
6116
|
onPointerDownOutside: i,
|
|
6056
6117
|
...c
|
|
6057
|
-
} = e, l =
|
|
6118
|
+
} = e, l = Pt(nt, n), u = yn(n), { onClose: f } = l;
|
|
6058
6119
|
return s.useEffect(() => (document.addEventListener(Xn, f), () => document.removeEventListener(Xn, f)), [f]), s.useEffect(() => {
|
|
6059
6120
|
if (l.trigger) {
|
|
6060
6121
|
const p = (h) => {
|
|
@@ -6087,8 +6148,8 @@ var nt = "TooltipContent", qa = s.forwardRef(
|
|
|
6087
6148
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6088
6149
|
},
|
|
6089
6150
|
children: [
|
|
6090
|
-
/* @__PURE__ */ d(
|
|
6091
|
-
/* @__PURE__ */ d(
|
|
6151
|
+
/* @__PURE__ */ d(Jh, { children: o }),
|
|
6152
|
+
/* @__PURE__ */ d(Zh, { scope: n, isInside: !0, children: /* @__PURE__ */ d(pm, { id: l.contentId, role: "tooltip", children: r || o }) })
|
|
6092
6153
|
]
|
|
6093
6154
|
}
|
|
6094
6155
|
)
|
|
@@ -6100,14 +6161,14 @@ qa.displayName = nt;
|
|
|
6100
6161
|
var Qa = "TooltipArrow", Ja = s.forwardRef(
|
|
6101
6162
|
(e, t) => {
|
|
6102
6163
|
const { __scopeTooltip: n, ...o } = e, r = yn(n);
|
|
6103
|
-
return
|
|
6164
|
+
return Qh(
|
|
6104
6165
|
Qa,
|
|
6105
6166
|
n
|
|
6106
6167
|
).isInside ? null : /* @__PURE__ */ d(cn, { ...r, ...o, ref: t });
|
|
6107
6168
|
}
|
|
6108
6169
|
);
|
|
6109
6170
|
Ja.displayName = Qa;
|
|
6110
|
-
function
|
|
6171
|
+
function ev(e, t) {
|
|
6111
6172
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
6112
6173
|
switch (Math.min(n, o, r, a)) {
|
|
6113
6174
|
case a:
|
|
@@ -6122,7 +6183,7 @@ function jh(e, t) {
|
|
|
6122
6183
|
throw new Error("unreachable");
|
|
6123
6184
|
}
|
|
6124
6185
|
}
|
|
6125
|
-
function
|
|
6186
|
+
function tv(e, t, n = 5) {
|
|
6126
6187
|
const o = [];
|
|
6127
6188
|
switch (t) {
|
|
6128
6189
|
case "top":
|
|
@@ -6152,7 +6213,7 @@ function Yh(e, t, n = 5) {
|
|
|
6152
6213
|
}
|
|
6153
6214
|
return o;
|
|
6154
6215
|
}
|
|
6155
|
-
function
|
|
6216
|
+
function nv(e) {
|
|
6156
6217
|
const { top: t, right: n, bottom: o, left: r } = e;
|
|
6157
6218
|
return [
|
|
6158
6219
|
{ x: r, y: t },
|
|
@@ -6161,7 +6222,7 @@ function Xh(e) {
|
|
|
6161
6222
|
{ x: r, y: o }
|
|
6162
6223
|
];
|
|
6163
6224
|
}
|
|
6164
|
-
function
|
|
6225
|
+
function ov(e, t) {
|
|
6165
6226
|
const { x: n, y: o } = e;
|
|
6166
6227
|
let r = !1;
|
|
6167
6228
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -6170,11 +6231,11 @@ function qh(e, t) {
|
|
|
6170
6231
|
}
|
|
6171
6232
|
return r;
|
|
6172
6233
|
}
|
|
6173
|
-
function
|
|
6234
|
+
function rv(e) {
|
|
6174
6235
|
const t = e.slice();
|
|
6175
|
-
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0),
|
|
6236
|
+
return t.sort((n, o) => n.x < o.x ? -1 : n.x > o.x ? 1 : n.y < o.y ? -1 : n.y > o.y ? 1 : 0), sv(t);
|
|
6176
6237
|
}
|
|
6177
|
-
function
|
|
6238
|
+
function sv(e) {
|
|
6178
6239
|
if (e.length <= 1) return e.slice();
|
|
6179
6240
|
const t = [];
|
|
6180
6241
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -6199,14 +6260,14 @@ function Qh(e) {
|
|
|
6199
6260
|
}
|
|
6200
6261
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6201
6262
|
}
|
|
6202
|
-
var
|
|
6203
|
-
const
|
|
6204
|
-
tooltipContent:
|
|
6205
|
-
tooltipArrow:
|
|
6206
|
-
},
|
|
6207
|
-
function
|
|
6263
|
+
var av = za, iv = ja, cv = Ya, lv = Xa, uv = qa, dv = Ja;
|
|
6264
|
+
const fv = "_tooltipContent_17t5h_1", pv = "_tooltipArrow_17t5h_12", or = {
|
|
6265
|
+
tooltipContent: fv,
|
|
6266
|
+
tooltipArrow: pv
|
|
6267
|
+
}, Nv = ({ ...e }) => /* @__PURE__ */ d(av, { ...e });
|
|
6268
|
+
function Ov({ children: e, content: t, open: n, defaultOpen: o, onOpenChange: r, ...a }) {
|
|
6208
6269
|
return t === void 0 ? /* @__PURE__ */ d(Ce, { children: e }) : /* @__PURE__ */ K(
|
|
6209
|
-
|
|
6270
|
+
iv,
|
|
6210
6271
|
{
|
|
6211
6272
|
open: n,
|
|
6212
6273
|
defaultOpen: o,
|
|
@@ -6216,64 +6277,66 @@ function _v({ children: e, content: t, open: n, defaultOpen: o, onOpenChange: r,
|
|
|
6216
6277
|
disableHoverableContent: !0,
|
|
6217
6278
|
delayDuration: 200,
|
|
6218
6279
|
children: [
|
|
6219
|
-
/* @__PURE__ */ d(
|
|
6220
|
-
/* @__PURE__ */ d(
|
|
6280
|
+
/* @__PURE__ */ d(cv, { asChild: !0, children: e }),
|
|
6281
|
+
/* @__PURE__ */ d(lv, { children: /* @__PURE__ */ K(uv, { className: or.tooltipContent, ...a, sideOffset: 4, children: [
|
|
6221
6282
|
t,
|
|
6222
|
-
/* @__PURE__ */ d(
|
|
6283
|
+
/* @__PURE__ */ d(dv, { className: or.tooltipArrow })
|
|
6223
6284
|
] }) })
|
|
6224
6285
|
]
|
|
6225
6286
|
}
|
|
6226
6287
|
);
|
|
6227
6288
|
}
|
|
6228
6289
|
export {
|
|
6229
|
-
|
|
6230
|
-
|
|
6231
|
-
|
|
6290
|
+
hc as ArrowLeft,
|
|
6291
|
+
vc as ArrowRight,
|
|
6292
|
+
gv as Badge,
|
|
6232
6293
|
jt as Button,
|
|
6233
|
-
|
|
6294
|
+
gc as Calendar,
|
|
6234
6295
|
Qn as Check,
|
|
6235
|
-
|
|
6236
|
-
|
|
6237
|
-
|
|
6238
|
-
|
|
6239
|
-
|
|
6240
|
-
|
|
6296
|
+
xv as Checkbox,
|
|
6297
|
+
wc as ChevronDown,
|
|
6298
|
+
yv as ChevronLeft,
|
|
6299
|
+
Cv as ChevronRight,
|
|
6300
|
+
bv as ChevronUp,
|
|
6301
|
+
yc as Circle,
|
|
6241
6302
|
rr as Close,
|
|
6242
|
-
|
|
6243
|
-
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
|
|
6251
|
-
|
|
6252
|
-
|
|
6253
|
-
|
|
6254
|
-
|
|
6255
|
-
|
|
6256
|
-
|
|
6257
|
-
|
|
6258
|
-
|
|
6259
|
-
|
|
6260
|
-
|
|
6261
|
-
|
|
6262
|
-
|
|
6263
|
-
|
|
6264
|
-
|
|
6265
|
-
|
|
6266
|
-
|
|
6267
|
-
|
|
6303
|
+
Cc as Coffee,
|
|
6304
|
+
Rv as Dialog,
|
|
6305
|
+
_v as EmptyState,
|
|
6306
|
+
bc as ExternalLink,
|
|
6307
|
+
xc as Gear,
|
|
6308
|
+
Ec as Hammer,
|
|
6309
|
+
Sc as Heart,
|
|
6310
|
+
dt as IconMap,
|
|
6311
|
+
Rc as Inbox,
|
|
6312
|
+
zu as Input,
|
|
6313
|
+
Pc as Kebab,
|
|
6314
|
+
_c as Lamp,
|
|
6315
|
+
Tc as Lightning,
|
|
6316
|
+
Mc as LogIn,
|
|
6317
|
+
Ic as LogOut,
|
|
6318
|
+
Ac as LogoGoogle,
|
|
6319
|
+
Nc as Mail,
|
|
6320
|
+
Oc as Menu,
|
|
6321
|
+
Tv as MenuButton,
|
|
6322
|
+
Mv as MenuButtonItem,
|
|
6323
|
+
kc as NoMobile,
|
|
6324
|
+
Dc as Pencil,
|
|
6325
|
+
Lc as Plus,
|
|
6326
|
+
Av as Popover,
|
|
6327
|
+
sh as SelectInput,
|
|
6328
|
+
ah as SelectItem,
|
|
6329
|
+
Fc as Signpost,
|
|
6268
6330
|
sr as Spinner,
|
|
6269
|
-
|
|
6270
|
-
|
|
6271
|
-
|
|
6272
|
-
|
|
6273
|
-
|
|
6274
|
-
|
|
6275
|
-
|
|
6331
|
+
$c as Sun,
|
|
6332
|
+
Bc as SunMoon,
|
|
6333
|
+
ph as TextArea,
|
|
6334
|
+
Uh as Toast,
|
|
6335
|
+
Iv as ToastProvider,
|
|
6336
|
+
Kh as ToastViewport,
|
|
6337
|
+
Ov as Tooltip,
|
|
6338
|
+
Nv as TooltipProvider,
|
|
6276
6339
|
U as createIcon,
|
|
6277
|
-
|
|
6278
|
-
|
|
6340
|
+
Sv as dialogSizes,
|
|
6341
|
+
wv as iconSizes
|
|
6279
6342
|
};
|