@ryanodd/design-system 0.1.0-dev6 → 0.1.0-dev8
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 +7 -7
- package/dist/esm/index.d.ts +134 -3
- package/dist/esm/index.js +1105 -1025
- package/dist/index.css +1 -1
- package/package.json +5 -2
package/dist/esm/index.js
CHANGED
|
@@ -1,78 +1,130 @@
|
|
|
1
|
-
import { jsx as p, jsxs as
|
|
1
|
+
import { jsx as p, jsxs as G, Fragment as Ce } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import ye, { forwardRef as
|
|
4
|
-
import * as
|
|
5
|
-
import
|
|
6
|
-
const
|
|
7
|
-
button:
|
|
8
|
-
buttonNotificationDot:
|
|
9
|
-
},
|
|
3
|
+
import ye, { forwardRef as N, useState as $s, useLayoutEffect as Bs } from "react";
|
|
4
|
+
import * as cn from "react-dom";
|
|
5
|
+
import Ws from "react-dom";
|
|
6
|
+
const Hs = "_button_1k08m_1", Vs = "_buttonNotificationDot_1k08m_143", $n = {
|
|
7
|
+
button: Hs,
|
|
8
|
+
buttonNotificationDot: Vs
|
|
9
|
+
}, Ks = ({
|
|
10
10
|
title: e,
|
|
11
11
|
titleId: t,
|
|
12
12
|
...n
|
|
13
|
-
}, 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" })),
|
|
13
|
+
}, 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" })), Us = N(Ks), Gs = ({
|
|
14
14
|
title: e,
|
|
15
15
|
titleId: t,
|
|
16
16
|
...n
|
|
17
|
-
}, 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" })),
|
|
17
|
+
}, 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" })), js = N(Gs), zs = ({
|
|
18
18
|
title: e,
|
|
19
19
|
titleId: t,
|
|
20
20
|
...n
|
|
21
|
-
}, 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("
|
|
21
|
+
}, 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" }))), Ys = N(zs), Xs = ({
|
|
22
22
|
title: e,
|
|
23
23
|
titleId: t,
|
|
24
24
|
...n
|
|
25
|
-
}, 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("
|
|
25
|
+
}, 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" })), qs = N(Xs), Zs = ({
|
|
26
26
|
title: e,
|
|
27
27
|
titleId: t,
|
|
28
28
|
...n
|
|
29
|
-
}, 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: "
|
|
29
|
+
}, 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" })), Qs = N(Zs), Js = ({
|
|
30
30
|
title: e,
|
|
31
31
|
titleId: t,
|
|
32
32
|
...n
|
|
33
|
-
}, 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: "
|
|
33
|
+
}, 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" })), ei = N(Js), ti = ({
|
|
34
34
|
title: e,
|
|
35
35
|
titleId: t,
|
|
36
36
|
...n
|
|
37
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
37
|
+
}, 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" })), ni = N(ti), oi = ({
|
|
38
38
|
title: e,
|
|
39
39
|
titleId: t,
|
|
40
40
|
...n
|
|
41
|
-
}, 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("
|
|
41
|
+
}, 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" })), ri = N(oi), si = ({
|
|
42
42
|
title: e,
|
|
43
43
|
titleId: t,
|
|
44
44
|
...n
|
|
45
|
-
}, 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("
|
|
45
|
+
}, 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 })), ii = N(si), ai = ({
|
|
46
46
|
title: e,
|
|
47
47
|
titleId: t,
|
|
48
48
|
...n
|
|
49
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
49
|
+
}, 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" })), ci = N(ai), li = ({
|
|
50
50
|
title: e,
|
|
51
51
|
titleId: t,
|
|
52
52
|
...n
|
|
53
|
-
}, o) => /* @__PURE__ */ s.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", viewBox: "0 0
|
|
53
|
+
}, 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" })), ui = N(li), di = ({
|
|
54
54
|
title: e,
|
|
55
55
|
titleId: t,
|
|
56
56
|
...n
|
|
57
|
-
}, 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("
|
|
57
|
+
}, 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" })), fi = N(di), pi = ({
|
|
58
58
|
title: e,
|
|
59
59
|
titleId: t,
|
|
60
60
|
...n
|
|
61
|
-
}, 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("
|
|
61
|
+
}, 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 }))), mi = N(pi), hi = ({
|
|
62
62
|
title: e,
|
|
63
63
|
titleId: t,
|
|
64
64
|
...n
|
|
65
|
-
}, 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("
|
|
65
|
+
}, 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" }))), vi = N(hi), gi = ({
|
|
66
66
|
title: e,
|
|
67
67
|
titleId: t,
|
|
68
68
|
...n
|
|
69
|
-
}, 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: "
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
}, 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" })), wi = N(gi), yi = ({
|
|
70
|
+
title: e,
|
|
71
|
+
titleId: t,
|
|
72
|
+
...n
|
|
73
|
+
}, 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" }))), bi = N(yi), Ci = ({
|
|
74
|
+
title: e,
|
|
75
|
+
titleId: t,
|
|
76
|
+
...n
|
|
77
|
+
}, 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 }))), Ei = N(Ci), xi = ({
|
|
78
|
+
title: e,
|
|
79
|
+
titleId: t,
|
|
80
|
+
...n
|
|
81
|
+
}, 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" }))), Ri = N(xi), Si = ({
|
|
82
|
+
title: e,
|
|
83
|
+
titleId: t,
|
|
84
|
+
...n
|
|
85
|
+
}, 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" })), Ti = N(Si), Pi = ({
|
|
86
|
+
title: e,
|
|
87
|
+
titleId: t,
|
|
88
|
+
...n
|
|
89
|
+
}, 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" })), _i = N(Pi), Mi = ({
|
|
90
|
+
title: e,
|
|
91
|
+
titleId: t,
|
|
92
|
+
...n
|
|
93
|
+
}, 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" })), Ai = N(Mi), ki = ({
|
|
94
|
+
title: e,
|
|
95
|
+
titleId: t,
|
|
96
|
+
...n
|
|
97
|
+
}, 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" }))), Oi = N(ki), Di = ({
|
|
98
|
+
title: e,
|
|
99
|
+
titleId: t,
|
|
100
|
+
...n
|
|
101
|
+
}, 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" })), Ni = N(Di), Ii = ({
|
|
102
|
+
title: e,
|
|
103
|
+
titleId: t,
|
|
104
|
+
...n
|
|
105
|
+
}, 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" })), Li = N(Ii), Fi = ({
|
|
106
|
+
title: e,
|
|
107
|
+
titleId: t,
|
|
108
|
+
...n
|
|
109
|
+
}, 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" })), $i = N(Fi), Bi = ({
|
|
110
|
+
title: e,
|
|
111
|
+
titleId: t,
|
|
112
|
+
...n
|
|
113
|
+
}, 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" })), Wi = N(Bi), Hi = ({
|
|
114
|
+
title: e,
|
|
115
|
+
titleId: t,
|
|
116
|
+
...n
|
|
117
|
+
}, 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" })), Vi = N(Hi), Ki = ({
|
|
118
|
+
title: e,
|
|
119
|
+
titleId: t,
|
|
120
|
+
...n
|
|
121
|
+
}, 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" })), Ui = N(Ki), Gi = "_icon_178c1_1", ji = {
|
|
122
|
+
icon: Gi
|
|
123
|
+
}, gp = ["xs", "sm", "md", "lg", "xl", "2xl", "3xl", "4xl"], F = (e, t) => {
|
|
124
|
+
const n = N(({ size: o = "lg", className: r, ...i }, a) => /* @__PURE__ */ p(
|
|
73
125
|
e,
|
|
74
126
|
{
|
|
75
|
-
className: `${r} ${
|
|
127
|
+
className: `${r} ${ji.icon}`,
|
|
76
128
|
"data-size": o,
|
|
77
129
|
ref: a,
|
|
78
130
|
alt: t,
|
|
@@ -80,27 +132,35 @@ const Hi = "_button_1k08m_1", Vi = "_buttonNotificationDot_1k08m_143", Fn = {
|
|
|
80
132
|
}
|
|
81
133
|
));
|
|
82
134
|
return n.displayName = t, n;
|
|
83
|
-
},
|
|
84
|
-
ArrowLeft:
|
|
85
|
-
ArrowRight:
|
|
135
|
+
}, zi = F(Us, "Left"), Yi = F(js, "Right"), Xi = F(Ys, "Calendar"), mo = F(qs, "Check"), wp = F(Qs, "Chevron Down"), yp = F(ei, "Chevron Left"), bp = F(ni, "Chevron Right"), Cp = F(ri, "Chevron Up"), qi = F(ii, "Circle"), ho = F(ci, "Close"), Zi = F(ui, "Coffee"), Qi = F(fi, "External Link"), Ji = F(mi, "Gear"), ea = F(vi, "Hammer"), ta = F(wi, "Heart"), na = F(bi, "Inbox"), oa = F(Ri, "Lamp"), ra = F(Ei, "Kebab"), sa = F(Ti, "Lightning"), ia = F(_i, "Log In"), aa = F(Ai, "Log Out"), ca = F(Oi, "Mail"), la = F(Ni, "Menu"), ua = F(Li, "No Mobile Devices"), da = F($i, "Pencil"), fa = F(Wi, "Plus"), pa = F(Vi, "Signpost"), ma = F(Ui, "Sun Moon"), zt = {
|
|
136
|
+
ArrowLeft: zi,
|
|
137
|
+
ArrowRight: Yi,
|
|
138
|
+
Calendar: Xi,
|
|
86
139
|
Check: mo,
|
|
87
|
-
Circle:
|
|
140
|
+
Circle: qi,
|
|
88
141
|
Close: ho,
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
142
|
+
Coffee: Zi,
|
|
143
|
+
ExternalLink: Qi,
|
|
144
|
+
Gear: Ji,
|
|
145
|
+
Hammer: ea,
|
|
146
|
+
Heart: ta,
|
|
147
|
+
Inbox: na,
|
|
148
|
+
Kebab: ra,
|
|
149
|
+
Lamp: oa,
|
|
150
|
+
Lightning: sa,
|
|
151
|
+
LogIn: ia,
|
|
152
|
+
LogOut: aa,
|
|
153
|
+
Mail: ca,
|
|
154
|
+
Menu: la,
|
|
155
|
+
NoMobile: ua,
|
|
156
|
+
Pencil: da,
|
|
157
|
+
Plus: fa,
|
|
158
|
+
Signpost: pa,
|
|
159
|
+
SunMoon: ma
|
|
160
|
+
}, ha = "_spinnerWrapper_1mfc7_1", va = "_spinner_1mfc7_1", Bn = {
|
|
161
|
+
spinnerWrapper: ha,
|
|
162
|
+
spinner: va
|
|
163
|
+
}, vo = N(
|
|
104
164
|
// eslint-disable-next-line @typescript-eslint/no-shadow
|
|
105
165
|
({ className: e, size: t = "lg", ...n }, o) => /* @__PURE__ */ p(
|
|
106
166
|
"div",
|
|
@@ -114,15 +174,15 @@ const Hi = "_button_1k08m_1", Vi = "_buttonNotificationDot_1k08m_143", Fn = {
|
|
|
114
174
|
)
|
|
115
175
|
);
|
|
116
176
|
vo.displayName = "Spinner";
|
|
117
|
-
const
|
|
177
|
+
const ln = N(
|
|
118
178
|
({ className: e, notificationDotText: t, children: n, icon: o, trailingIcon: r, size: i = "medium", variant: a, loading: c, iconOnly: d, ...l }, u) => {
|
|
119
|
-
const f = o ?
|
|
120
|
-
return /* @__PURE__ */
|
|
179
|
+
const f = o ? zt[o] : void 0, h = r ? zt[r] : void 0, v = i === "small" ? "sm" : i === "medium" ? "md" : "lg";
|
|
180
|
+
return /* @__PURE__ */ G(
|
|
121
181
|
"button",
|
|
122
182
|
{
|
|
123
183
|
ref: u,
|
|
124
184
|
...l,
|
|
125
|
-
className: `${
|
|
185
|
+
className: `${$n.button} ${e ?? ""}`,
|
|
126
186
|
"data-size": i,
|
|
127
187
|
"data-variant": a,
|
|
128
188
|
"data-icon-only": d,
|
|
@@ -131,13 +191,13 @@ const cn = H(
|
|
|
131
191
|
c && /* @__PURE__ */ p(vo, { size: v }),
|
|
132
192
|
n,
|
|
133
193
|
h && /* @__PURE__ */ p(h, { size: v }),
|
|
134
|
-
t && /* @__PURE__ */ p("span", { className:
|
|
194
|
+
t && /* @__PURE__ */ p("span", { className: $n.buttonNotificationDot, children: t })
|
|
135
195
|
]
|
|
136
196
|
}
|
|
137
197
|
);
|
|
138
198
|
}
|
|
139
199
|
);
|
|
140
|
-
|
|
200
|
+
ln.displayName = "Button";
|
|
141
201
|
function Wn(e, t) {
|
|
142
202
|
if (typeof e == "function")
|
|
143
203
|
return e(t);
|
|
@@ -159,10 +219,10 @@ function bt(...e) {
|
|
|
159
219
|
};
|
|
160
220
|
};
|
|
161
221
|
}
|
|
162
|
-
function
|
|
222
|
+
function V(...e) {
|
|
163
223
|
return s.useCallback(bt(...e), e);
|
|
164
224
|
}
|
|
165
|
-
function
|
|
225
|
+
function ga(e, t) {
|
|
166
226
|
const n = s.createContext(t), o = (i) => {
|
|
167
227
|
const { children: a, ...c } = i, d = s.useMemo(() => c, Object.values(c));
|
|
168
228
|
return /* @__PURE__ */ p(n.Provider, { value: d, children: a });
|
|
@@ -204,9 +264,9 @@ function fe(e, t = []) {
|
|
|
204
264
|
);
|
|
205
265
|
};
|
|
206
266
|
};
|
|
207
|
-
return r.scopeName = e, [o,
|
|
267
|
+
return r.scopeName = e, [o, wa(r, ...t)];
|
|
208
268
|
}
|
|
209
|
-
function
|
|
269
|
+
function wa(...e) {
|
|
210
270
|
const t = e[0];
|
|
211
271
|
if (e.length === 1) return t;
|
|
212
272
|
const n = () => {
|
|
@@ -231,15 +291,15 @@ function _(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
231
291
|
};
|
|
232
292
|
}
|
|
233
293
|
var le = globalThis?.document ? s.useLayoutEffect : () => {
|
|
234
|
-
},
|
|
235
|
-
function
|
|
294
|
+
}, ya = s[" useInsertionEffect ".trim().toString()] || le;
|
|
295
|
+
function Ne({
|
|
236
296
|
prop: e,
|
|
237
297
|
defaultProp: t,
|
|
238
298
|
onChange: n = () => {
|
|
239
299
|
},
|
|
240
300
|
caller: o
|
|
241
301
|
}) {
|
|
242
|
-
const [r, i, a] =
|
|
302
|
+
const [r, i, a] = ba({
|
|
243
303
|
defaultProp: t,
|
|
244
304
|
onChange: n
|
|
245
305
|
}), c = e !== void 0, d = c ? e : r;
|
|
@@ -255,7 +315,7 @@ function Ie({
|
|
|
255
315
|
const l = s.useCallback(
|
|
256
316
|
(u) => {
|
|
257
317
|
if (c) {
|
|
258
|
-
const f =
|
|
318
|
+
const f = Ca(u) ? u(e) : u;
|
|
259
319
|
f !== e && a.current?.(f);
|
|
260
320
|
} else
|
|
261
321
|
i(u);
|
|
@@ -264,21 +324,21 @@ function Ie({
|
|
|
264
324
|
);
|
|
265
325
|
return [d, l];
|
|
266
326
|
}
|
|
267
|
-
function
|
|
327
|
+
function ba({
|
|
268
328
|
defaultProp: e,
|
|
269
329
|
onChange: t
|
|
270
330
|
}) {
|
|
271
331
|
const [n, o] = s.useState(e), r = s.useRef(n), i = s.useRef(t);
|
|
272
|
-
return
|
|
332
|
+
return ya(() => {
|
|
273
333
|
i.current = t;
|
|
274
334
|
}, [t]), s.useEffect(() => {
|
|
275
335
|
r.current !== n && (i.current?.(n), r.current = n);
|
|
276
336
|
}, [n, r]), [n, o, i];
|
|
277
337
|
}
|
|
278
|
-
function
|
|
338
|
+
function Ca(e) {
|
|
279
339
|
return typeof e == "function";
|
|
280
340
|
}
|
|
281
|
-
function
|
|
341
|
+
function Ea(e) {
|
|
282
342
|
const t = s.useRef({ value: e, previous: e });
|
|
283
343
|
return s.useMemo(() => (t.current.value !== e && (t.current.previous = t.current.value, t.current.value = e), t.current.previous), [e]);
|
|
284
344
|
}
|
|
@@ -304,16 +364,16 @@ function go(e) {
|
|
|
304
364
|
n(void 0);
|
|
305
365
|
}, [e]), t;
|
|
306
366
|
}
|
|
307
|
-
function
|
|
367
|
+
function xa(e, t) {
|
|
308
368
|
return s.useReducer((n, o) => t[n][o] ?? n, e);
|
|
309
369
|
}
|
|
310
370
|
var Q = (e) => {
|
|
311
|
-
const { present: t, children: n } = e, o =
|
|
371
|
+
const { present: t, children: n } = e, o = Ra(t), r = typeof n == "function" ? n({ present: o.isPresent }) : s.Children.only(n), i = V(o.ref, Sa(r));
|
|
312
372
|
return typeof n == "function" || o.isPresent ? s.cloneElement(r, { ref: i }) : null;
|
|
313
373
|
};
|
|
314
374
|
Q.displayName = "Presence";
|
|
315
|
-
function
|
|
316
|
-
const [t, n] = s.useState(), o = s.useRef(null), r = s.useRef(e), i = s.useRef("none"), a = e ? "mounted" : "unmounted", [c, d] =
|
|
375
|
+
function Ra(e) {
|
|
376
|
+
const [t, n] = s.useState(), o = s.useRef(null), r = s.useRef(e), i = s.useRef("none"), a = e ? "mounted" : "unmounted", [c, d] = xa(a, {
|
|
317
377
|
mounted: {
|
|
318
378
|
UNMOUNT: "unmounted",
|
|
319
379
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -364,14 +424,14 @@ function Ks(e) {
|
|
|
364
424
|
function nt(e) {
|
|
365
425
|
return e?.animationName || "none";
|
|
366
426
|
}
|
|
367
|
-
function
|
|
427
|
+
function Sa(e) {
|
|
368
428
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
369
429
|
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);
|
|
370
430
|
}
|
|
371
431
|
// @__NO_SIDE_EFFECTS__
|
|
372
432
|
function We(e) {
|
|
373
|
-
const t = /* @__PURE__ */
|
|
374
|
-
const { children: i, ...a } = o, c = s.Children.toArray(i), d = c.find(
|
|
433
|
+
const t = /* @__PURE__ */ Ta(e), n = s.forwardRef((o, r) => {
|
|
434
|
+
const { children: i, ...a } = o, c = s.Children.toArray(i), d = c.find(_a);
|
|
375
435
|
if (d) {
|
|
376
436
|
const l = d.props.children, u = c.map((f) => f === d ? s.Children.count(l) > 1 ? s.Children.only(null) : s.isValidElement(l) ? l.props.children : null : f);
|
|
377
437
|
return /* @__PURE__ */ p(t, { ...a, ref: r, children: s.isValidElement(l) ? s.cloneElement(l, void 0, u) : null });
|
|
@@ -381,11 +441,11 @@ function We(e) {
|
|
|
381
441
|
return n.displayName = `${e}.Slot`, n;
|
|
382
442
|
}
|
|
383
443
|
// @__NO_SIDE_EFFECTS__
|
|
384
|
-
function
|
|
444
|
+
function Ta(e) {
|
|
385
445
|
const t = s.forwardRef((n, o) => {
|
|
386
446
|
const { children: r, ...i } = n;
|
|
387
447
|
if (s.isValidElement(r)) {
|
|
388
|
-
const a =
|
|
448
|
+
const a = Aa(r), c = Ma(i, r.props);
|
|
389
449
|
return r.type !== s.Fragment && (c.ref = o ? bt(o, a) : a), s.cloneElement(r, c);
|
|
390
450
|
}
|
|
391
451
|
return s.Children.count(r) > 1 ? s.Children.only(null) : null;
|
|
@@ -394,14 +454,14 @@ function Gs(e) {
|
|
|
394
454
|
}
|
|
395
455
|
var wo = Symbol("radix.slottable");
|
|
396
456
|
// @__NO_SIDE_EFFECTS__
|
|
397
|
-
function
|
|
457
|
+
function Pa(e) {
|
|
398
458
|
const t = ({ children: n }) => /* @__PURE__ */ p(Ce, { children: n });
|
|
399
459
|
return t.displayName = `${e}.Slottable`, t.__radixId = wo, t;
|
|
400
460
|
}
|
|
401
|
-
function
|
|
461
|
+
function _a(e) {
|
|
402
462
|
return s.isValidElement(e) && typeof e.type == "function" && "__radixId" in e.type && e.type.__radixId === wo;
|
|
403
463
|
}
|
|
404
|
-
function
|
|
464
|
+
function Ma(e, t) {
|
|
405
465
|
const n = { ...t };
|
|
406
466
|
for (const o in t) {
|
|
407
467
|
const r = e[o], i = t[o];
|
|
@@ -412,11 +472,11 @@ function Ys(e, t) {
|
|
|
412
472
|
}
|
|
413
473
|
return { ...e, ...n };
|
|
414
474
|
}
|
|
415
|
-
function
|
|
475
|
+
function Aa(e) {
|
|
416
476
|
let t = Object.getOwnPropertyDescriptor(e.props, "ref")?.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
417
477
|
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);
|
|
418
478
|
}
|
|
419
|
-
var
|
|
479
|
+
var ka = [
|
|
420
480
|
"a",
|
|
421
481
|
"button",
|
|
422
482
|
"div",
|
|
@@ -434,18 +494,18 @@ var qs = [
|
|
|
434
494
|
"span",
|
|
435
495
|
"svg",
|
|
436
496
|
"ul"
|
|
437
|
-
], I =
|
|
497
|
+
], I = ka.reduce((e, t) => {
|
|
438
498
|
const n = /* @__PURE__ */ We(`Primitive.${t}`), o = s.forwardRef((r, i) => {
|
|
439
499
|
const { asChild: a, ...c } = r, d = a ? n : t;
|
|
440
500
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(d, { ...c, ref: i });
|
|
441
501
|
});
|
|
442
502
|
return o.displayName = `Primitive.${t}`, { ...e, [t]: o };
|
|
443
503
|
}, {});
|
|
444
|
-
function
|
|
445
|
-
e &&
|
|
504
|
+
function un(e, t) {
|
|
505
|
+
e && cn.flushSync(() => e.dispatchEvent(t));
|
|
446
506
|
}
|
|
447
|
-
var Ct = "Checkbox", [
|
|
448
|
-
function
|
|
507
|
+
var Ct = "Checkbox", [Oa] = fe(Ct), [Da, dn] = Oa(Ct);
|
|
508
|
+
function Na(e) {
|
|
449
509
|
const {
|
|
450
510
|
__scopeCheckbox: t,
|
|
451
511
|
checked: n,
|
|
@@ -459,7 +519,7 @@ function Js(e) {
|
|
|
459
519
|
value: u = "on",
|
|
460
520
|
// @ts-expect-error
|
|
461
521
|
internal_do_not_use_render: f
|
|
462
|
-
} = e, [h, v] =
|
|
522
|
+
} = e, [h, v] = Ne({
|
|
463
523
|
prop: n,
|
|
464
524
|
defaultProp: r ?? !1,
|
|
465
525
|
onChange: d,
|
|
@@ -484,11 +544,11 @@ function Js(e) {
|
|
|
484
544
|
setBubbleInput: y
|
|
485
545
|
};
|
|
486
546
|
return /* @__PURE__ */ p(
|
|
487
|
-
|
|
547
|
+
Da,
|
|
488
548
|
{
|
|
489
549
|
scope: t,
|
|
490
550
|
...E,
|
|
491
|
-
children:
|
|
551
|
+
children: Ia(f) ? f(E) : o
|
|
492
552
|
}
|
|
493
553
|
);
|
|
494
554
|
}
|
|
@@ -505,7 +565,7 @@ var yo = "CheckboxTrigger", bo = s.forwardRef(
|
|
|
505
565
|
hasConsumerStoppedPropagationRef: h,
|
|
506
566
|
isFormControl: v,
|
|
507
567
|
bubbleInput: w
|
|
508
|
-
} =
|
|
568
|
+
} = dn(yo, e), m = V(r, u), g = s.useRef(d);
|
|
509
569
|
return s.useEffect(() => {
|
|
510
570
|
const y = i?.form;
|
|
511
571
|
if (y) {
|
|
@@ -519,7 +579,7 @@ var yo = "CheckboxTrigger", bo = s.forwardRef(
|
|
|
519
579
|
role: "checkbox",
|
|
520
580
|
"aria-checked": he(d) ? "mixed" : d,
|
|
521
581
|
"aria-required": l,
|
|
522
|
-
"data-state":
|
|
582
|
+
"data-state": To(d),
|
|
523
583
|
"data-disabled": c ? "" : void 0,
|
|
524
584
|
disabled: c,
|
|
525
585
|
value: a,
|
|
@@ -551,7 +611,7 @@ var Co = s.forwardRef(
|
|
|
551
611
|
...f
|
|
552
612
|
} = e;
|
|
553
613
|
return /* @__PURE__ */ p(
|
|
554
|
-
|
|
614
|
+
Na,
|
|
555
615
|
{
|
|
556
616
|
__scopeCheckbox: n,
|
|
557
617
|
checked: r,
|
|
@@ -562,7 +622,7 @@ var Co = s.forwardRef(
|
|
|
562
622
|
name: o,
|
|
563
623
|
form: u,
|
|
564
624
|
value: d,
|
|
565
|
-
internal_do_not_use_render: ({ isFormControl: h }) => /* @__PURE__ */
|
|
625
|
+
internal_do_not_use_render: ({ isFormControl: h }) => /* @__PURE__ */ G(Ce, { children: [
|
|
566
626
|
/* @__PURE__ */ p(
|
|
567
627
|
bo,
|
|
568
628
|
{
|
|
@@ -572,7 +632,7 @@ var Co = s.forwardRef(
|
|
|
572
632
|
}
|
|
573
633
|
),
|
|
574
634
|
h && /* @__PURE__ */ p(
|
|
575
|
-
|
|
635
|
+
So,
|
|
576
636
|
{
|
|
577
637
|
__scopeCheckbox: n
|
|
578
638
|
}
|
|
@@ -585,7 +645,7 @@ var Co = s.forwardRef(
|
|
|
585
645
|
Co.displayName = Ct;
|
|
586
646
|
var Eo = "CheckboxIndicator", xo = s.forwardRef(
|
|
587
647
|
(e, t) => {
|
|
588
|
-
const { __scopeCheckbox: n, forceMount: o, ...r } = e, i =
|
|
648
|
+
const { __scopeCheckbox: n, forceMount: o, ...r } = e, i = dn(Eo, n);
|
|
589
649
|
return /* @__PURE__ */ p(
|
|
590
650
|
Q,
|
|
591
651
|
{
|
|
@@ -593,7 +653,7 @@ var Eo = "CheckboxIndicator", xo = s.forwardRef(
|
|
|
593
653
|
children: /* @__PURE__ */ p(
|
|
594
654
|
I.span,
|
|
595
655
|
{
|
|
596
|
-
"data-state":
|
|
656
|
+
"data-state": To(i.checked),
|
|
597
657
|
"data-disabled": i.disabled ? "" : void 0,
|
|
598
658
|
...r,
|
|
599
659
|
ref: t,
|
|
@@ -605,7 +665,7 @@ var Eo = "CheckboxIndicator", xo = s.forwardRef(
|
|
|
605
665
|
}
|
|
606
666
|
);
|
|
607
667
|
xo.displayName = Eo;
|
|
608
|
-
var Ro = "CheckboxBubbleInput",
|
|
668
|
+
var Ro = "CheckboxBubbleInput", So = s.forwardRef(
|
|
609
669
|
({ __scopeCheckbox: e, ...t }, n) => {
|
|
610
670
|
const {
|
|
611
671
|
control: o,
|
|
@@ -619,16 +679,16 @@ var Ro = "CheckboxBubbleInput", To = s.forwardRef(
|
|
|
619
679
|
form: f,
|
|
620
680
|
bubbleInput: h,
|
|
621
681
|
setBubbleInput: v
|
|
622
|
-
} =
|
|
682
|
+
} = dn(Ro, e), w = V(n, v), m = Ea(i), g = go(o);
|
|
623
683
|
s.useEffect(() => {
|
|
624
684
|
const b = h;
|
|
625
685
|
if (!b) return;
|
|
626
686
|
const C = window.HTMLInputElement.prototype, x = Object.getOwnPropertyDescriptor(
|
|
627
687
|
C,
|
|
628
688
|
"checked"
|
|
629
|
-
).set,
|
|
689
|
+
).set, S = !r.current;
|
|
630
690
|
if (m !== i && x) {
|
|
631
|
-
const R = new Event("click", { bubbles:
|
|
691
|
+
const R = new Event("click", { bubbles: S });
|
|
632
692
|
b.indeterminate = he(i), x.call(b, he(i) ? !1 : i), b.dispatchEvent(R);
|
|
633
693
|
}
|
|
634
694
|
}, [h, m, i, r]);
|
|
@@ -663,23 +723,23 @@ var Ro = "CheckboxBubbleInput", To = s.forwardRef(
|
|
|
663
723
|
);
|
|
664
724
|
}
|
|
665
725
|
);
|
|
666
|
-
|
|
667
|
-
function
|
|
726
|
+
So.displayName = Ro;
|
|
727
|
+
function Ia(e) {
|
|
668
728
|
return typeof e == "function";
|
|
669
729
|
}
|
|
670
730
|
function he(e) {
|
|
671
731
|
return e === "indeterminate";
|
|
672
732
|
}
|
|
673
|
-
function
|
|
733
|
+
function To(e) {
|
|
674
734
|
return he(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
675
735
|
}
|
|
676
|
-
const
|
|
677
|
-
checkboxRow:
|
|
678
|
-
checkboxRoot:
|
|
679
|
-
checkboxIndicator:
|
|
680
|
-
checkboxCheckmarkIcon:
|
|
681
|
-
checkboxLabel:
|
|
682
|
-
},
|
|
736
|
+
const La = "_checkboxRow_aw0oa_1", Fa = "_checkboxRoot_aw0oa_7", $a = "_checkboxIndicator_aw0oa_19", Ba = "_checkboxCheckmarkIcon_aw0oa_29", Wa = "_checkboxLabel_aw0oa_35", $e = {
|
|
737
|
+
checkboxRow: La,
|
|
738
|
+
checkboxRoot: Fa,
|
|
739
|
+
checkboxIndicator: $a,
|
|
740
|
+
checkboxCheckmarkIcon: Ba,
|
|
741
|
+
checkboxLabel: Wa
|
|
742
|
+
}, Ep = ({ id: e, labelContent: t, checked: n, onClick: o }) => /* @__PURE__ */ G("div", { className: $e.checkboxRow, children: [
|
|
683
743
|
/* @__PURE__ */ p(
|
|
684
744
|
Co,
|
|
685
745
|
{
|
|
@@ -695,12 +755,12 @@ const ta = "_checkboxRow_aw0oa_1", na = "_checkboxRoot_aw0oa_7", oa = "_checkbox
|
|
|
695
755
|
),
|
|
696
756
|
/* @__PURE__ */ p("label", { className: $e.checkboxLabel, htmlFor: e, children: t })
|
|
697
757
|
] });
|
|
698
|
-
var
|
|
699
|
-
}),
|
|
758
|
+
var Ha = s[" useId ".trim().toString()] || (() => {
|
|
759
|
+
}), Va = 0;
|
|
700
760
|
function be(e) {
|
|
701
|
-
const [t, n] = s.useState(
|
|
761
|
+
const [t, n] = s.useState(Ha());
|
|
702
762
|
return le(() => {
|
|
703
|
-
n((o) => o ?? String(
|
|
763
|
+
n((o) => o ?? String(Va++));
|
|
704
764
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
705
765
|
}
|
|
706
766
|
function X(e) {
|
|
@@ -709,7 +769,7 @@ function X(e) {
|
|
|
709
769
|
t.current = e;
|
|
710
770
|
}), s.useMemo(() => (...n) => t.current?.(...n), []);
|
|
711
771
|
}
|
|
712
|
-
function
|
|
772
|
+
function Ka(e, t = globalThis?.document) {
|
|
713
773
|
const n = X(e);
|
|
714
774
|
s.useEffect(() => {
|
|
715
775
|
const o = (r) => {
|
|
@@ -718,11 +778,11 @@ function ca(e, t = globalThis?.document) {
|
|
|
718
778
|
return t.addEventListener("keydown", o, { capture: !0 }), () => t.removeEventListener("keydown", o, { capture: !0 });
|
|
719
779
|
}, [n, t]);
|
|
720
780
|
}
|
|
721
|
-
var
|
|
781
|
+
var Ua = "DismissableLayer", Yt = "dismissableLayer.update", Ga = "dismissableLayer.pointerDownOutside", ja = "dismissableLayer.focusOutside", Hn, Po = s.createContext({
|
|
722
782
|
layers: /* @__PURE__ */ new Set(),
|
|
723
783
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
724
784
|
branches: /* @__PURE__ */ new Set()
|
|
725
|
-
}),
|
|
785
|
+
}), je = s.forwardRef(
|
|
726
786
|
(e, t) => {
|
|
727
787
|
const {
|
|
728
788
|
disableOutsidePointerEvents: n = !1,
|
|
@@ -732,14 +792,14 @@ var la = "DismissableLayer", jt = "dismissableLayer.update", ua = "dismissableLa
|
|
|
732
792
|
onInteractOutside: a,
|
|
733
793
|
onDismiss: c,
|
|
734
794
|
...d
|
|
735
|
-
} = e, l = s.useContext(Po), [u, f] = s.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, v] = s.useState({}), w =
|
|
736
|
-
const M = R.target,
|
|
737
|
-
!E ||
|
|
738
|
-
}, h),
|
|
795
|
+
} = e, l = s.useContext(Po), [u, f] = s.useState(null), h = u?.ownerDocument ?? globalThis?.document, [, v] = s.useState({}), w = V(t, (R) => f(R)), m = Array.from(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), y = m.indexOf(g), b = u ? m.indexOf(u) : -1, C = l.layersWithOutsidePointerEventsDisabled.size > 0, E = b >= y, x = Ya((R) => {
|
|
796
|
+
const M = R.target, D = [...l.branches].some((O) => O.contains(M));
|
|
797
|
+
!E || D || (r?.(R), a?.(R), R.defaultPrevented || c?.());
|
|
798
|
+
}, h), S = Xa((R) => {
|
|
739
799
|
const M = R.target;
|
|
740
|
-
[...l.branches].some((
|
|
800
|
+
[...l.branches].some((O) => O.contains(M)) || (i?.(R), a?.(R), R.defaultPrevented || c?.());
|
|
741
801
|
}, h);
|
|
742
|
-
return
|
|
802
|
+
return Ka((R) => {
|
|
743
803
|
b === l.layers.size - 1 && (o?.(R), !R.defaultPrevented && c && (R.preventDefault(), c()));
|
|
744
804
|
}, h), s.useEffect(() => {
|
|
745
805
|
if (u)
|
|
@@ -750,7 +810,7 @@ var la = "DismissableLayer", jt = "dismissableLayer.update", ua = "dismissableLa
|
|
|
750
810
|
u && (l.layers.delete(u), l.layersWithOutsidePointerEventsDisabled.delete(u), Vn());
|
|
751
811
|
}, [u, l]), s.useEffect(() => {
|
|
752
812
|
const R = () => v({});
|
|
753
|
-
return document.addEventListener(
|
|
813
|
+
return document.addEventListener(Yt, R), () => document.removeEventListener(Yt, R);
|
|
754
814
|
}, []), /* @__PURE__ */ p(
|
|
755
815
|
I.div,
|
|
756
816
|
{
|
|
@@ -760,8 +820,8 @@ var la = "DismissableLayer", jt = "dismissableLayer.update", ua = "dismissableLa
|
|
|
760
820
|
pointerEvents: C ? E ? "auto" : "none" : void 0,
|
|
761
821
|
...e.style
|
|
762
822
|
},
|
|
763
|
-
onFocusCapture: _(e.onFocusCapture,
|
|
764
|
-
onBlurCapture: _(e.onBlurCapture,
|
|
823
|
+
onFocusCapture: _(e.onFocusCapture, S.onFocusCapture),
|
|
824
|
+
onBlurCapture: _(e.onBlurCapture, S.onBlurCapture),
|
|
765
825
|
onPointerDownCapture: _(
|
|
766
826
|
e.onPointerDownCapture,
|
|
767
827
|
x.onPointerDownCapture
|
|
@@ -770,9 +830,9 @@ var la = "DismissableLayer", jt = "dismissableLayer.update", ua = "dismissableLa
|
|
|
770
830
|
);
|
|
771
831
|
}
|
|
772
832
|
);
|
|
773
|
-
|
|
774
|
-
var
|
|
775
|
-
const n = s.useContext(Po), o = s.useRef(null), r =
|
|
833
|
+
je.displayName = Ua;
|
|
834
|
+
var za = "DismissableLayerBranch", _o = s.forwardRef((e, t) => {
|
|
835
|
+
const n = s.useContext(Po), o = s.useRef(null), r = V(t, o);
|
|
776
836
|
return s.useEffect(() => {
|
|
777
837
|
const i = o.current;
|
|
778
838
|
if (i)
|
|
@@ -781,8 +841,8 @@ var fa = "DismissableLayerBranch", _o = s.forwardRef((e, t) => {
|
|
|
781
841
|
};
|
|
782
842
|
}, [n.branches]), /* @__PURE__ */ p(I.div, { ...e, ref: r });
|
|
783
843
|
});
|
|
784
|
-
_o.displayName =
|
|
785
|
-
function
|
|
844
|
+
_o.displayName = za;
|
|
845
|
+
function Ya(e, t = globalThis?.document) {
|
|
786
846
|
const n = X(e), o = s.useRef(!1), r = s.useRef(() => {
|
|
787
847
|
});
|
|
788
848
|
return s.useEffect(() => {
|
|
@@ -790,7 +850,7 @@ function pa(e, t = globalThis?.document) {
|
|
|
790
850
|
if (c.target && !o.current) {
|
|
791
851
|
let d = function() {
|
|
792
852
|
Mo(
|
|
793
|
-
|
|
853
|
+
Ga,
|
|
794
854
|
n,
|
|
795
855
|
l,
|
|
796
856
|
{ discrete: !0 }
|
|
@@ -812,11 +872,11 @@ function pa(e, t = globalThis?.document) {
|
|
|
812
872
|
onPointerDownCapture: () => o.current = !0
|
|
813
873
|
};
|
|
814
874
|
}
|
|
815
|
-
function
|
|
875
|
+
function Xa(e, t = globalThis?.document) {
|
|
816
876
|
const n = X(e), o = s.useRef(!1);
|
|
817
877
|
return s.useEffect(() => {
|
|
818
878
|
const r = (i) => {
|
|
819
|
-
i.target && !o.current && Mo(
|
|
879
|
+
i.target && !o.current && Mo(ja, n, { originalEvent: i }, {
|
|
820
880
|
discrete: !1
|
|
821
881
|
});
|
|
822
882
|
};
|
|
@@ -827,21 +887,21 @@ function ma(e, t = globalThis?.document) {
|
|
|
827
887
|
};
|
|
828
888
|
}
|
|
829
889
|
function Vn() {
|
|
830
|
-
const e = new CustomEvent(
|
|
890
|
+
const e = new CustomEvent(Yt);
|
|
831
891
|
document.dispatchEvent(e);
|
|
832
892
|
}
|
|
833
893
|
function Mo(e, t, n, { discrete: o }) {
|
|
834
894
|
const r = n.originalEvent.target, i = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
835
|
-
t && r.addEventListener(e, t, { once: !0 }), o ?
|
|
895
|
+
t && r.addEventListener(e, t, { once: !0 }), o ? un(r, i) : r.dispatchEvent(i);
|
|
836
896
|
}
|
|
837
|
-
var
|
|
897
|
+
var qa = je, Za = _o, Lt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoFocusOnUnmount", Kn = { bubbles: !1, cancelable: !0 }, Qa = "FocusScope", fn = s.forwardRef((e, t) => {
|
|
838
898
|
const {
|
|
839
899
|
loop: n = !1,
|
|
840
900
|
trapped: o = !1,
|
|
841
901
|
onMountAutoFocus: r,
|
|
842
902
|
onUnmountAutoFocus: i,
|
|
843
903
|
...a
|
|
844
|
-
} = e, [c, d] = s.useState(null), l = X(r), u = X(i), f = s.useRef(null), h =
|
|
904
|
+
} = e, [c, d] = s.useState(null), l = X(r), u = X(i), f = s.useRef(null), h = V(t, (m) => d(m)), v = s.useRef({
|
|
845
905
|
paused: !1,
|
|
846
906
|
pause() {
|
|
847
907
|
this.paused = !0;
|
|
@@ -877,7 +937,7 @@ var ha = ze, va = _o, Lt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoF
|
|
|
877
937
|
const m = document.activeElement;
|
|
878
938
|
if (!c.contains(m)) {
|
|
879
939
|
const y = new CustomEvent(Lt, Kn);
|
|
880
|
-
c.addEventListener(Lt, l), c.dispatchEvent(y), y.defaultPrevented || (
|
|
940
|
+
c.addEventListener(Lt, l), c.dispatchEvent(y), y.defaultPrevented || (Ja(rc(Ao(c)), { select: !0 }), document.activeElement === m && me(c));
|
|
881
941
|
}
|
|
882
942
|
return () => {
|
|
883
943
|
c.removeEventListener(Lt, l), setTimeout(() => {
|
|
@@ -892,7 +952,7 @@ var ha = ze, va = _o, Lt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoF
|
|
|
892
952
|
if (!n && !o || v.paused) return;
|
|
893
953
|
const g = m.key === "Tab" && !m.altKey && !m.ctrlKey && !m.metaKey, y = document.activeElement;
|
|
894
954
|
if (g && y) {
|
|
895
|
-
const b = m.currentTarget, [C, E] =
|
|
955
|
+
const b = m.currentTarget, [C, E] = ec(b);
|
|
896
956
|
C && E ? !m.shiftKey && y === E ? (m.preventDefault(), n && me(C, { select: !0 })) : m.shiftKey && y === C && (m.preventDefault(), n && me(E, { select: !0 })) : y === b && m.preventDefault();
|
|
897
957
|
}
|
|
898
958
|
},
|
|
@@ -900,13 +960,13 @@ var ha = ze, va = _o, Lt = "focusScope.autoFocusOnMount", Ft = "focusScope.autoF
|
|
|
900
960
|
);
|
|
901
961
|
return /* @__PURE__ */ p(I.div, { tabIndex: -1, ...a, ref: h, onKeyDown: w });
|
|
902
962
|
});
|
|
903
|
-
|
|
904
|
-
function
|
|
963
|
+
fn.displayName = Qa;
|
|
964
|
+
function Ja(e, { select: t = !1 } = {}) {
|
|
905
965
|
const n = document.activeElement;
|
|
906
966
|
for (const o of e)
|
|
907
967
|
if (me(o, { select: t }), document.activeElement !== n) return;
|
|
908
968
|
}
|
|
909
|
-
function
|
|
969
|
+
function ec(e) {
|
|
910
970
|
const t = Ao(e), n = Un(t, e), o = Un(t.reverse(), e);
|
|
911
971
|
return [n, o];
|
|
912
972
|
}
|
|
@@ -922,9 +982,9 @@ function Ao(e) {
|
|
|
922
982
|
}
|
|
923
983
|
function Un(e, t) {
|
|
924
984
|
for (const n of e)
|
|
925
|
-
if (!
|
|
985
|
+
if (!tc(n, { upTo: t })) return n;
|
|
926
986
|
}
|
|
927
|
-
function
|
|
987
|
+
function tc(e, { upTo: t }) {
|
|
928
988
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
929
989
|
for (; e; ) {
|
|
930
990
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -933,52 +993,52 @@ function ba(e, { upTo: t }) {
|
|
|
933
993
|
}
|
|
934
994
|
return !1;
|
|
935
995
|
}
|
|
936
|
-
function
|
|
996
|
+
function nc(e) {
|
|
937
997
|
return e instanceof HTMLInputElement && "select" in e;
|
|
938
998
|
}
|
|
939
999
|
function me(e, { select: t = !1 } = {}) {
|
|
940
1000
|
if (e && e.focus) {
|
|
941
1001
|
const n = document.activeElement;
|
|
942
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
1002
|
+
e.focus({ preventScroll: !0 }), e !== n && nc(e) && t && e.select();
|
|
943
1003
|
}
|
|
944
1004
|
}
|
|
945
|
-
var Gn =
|
|
946
|
-
function
|
|
1005
|
+
var Gn = oc();
|
|
1006
|
+
function oc() {
|
|
947
1007
|
let e = [];
|
|
948
1008
|
return {
|
|
949
1009
|
add(t) {
|
|
950
1010
|
const n = e[0];
|
|
951
|
-
t !== n && n?.pause(), e =
|
|
1011
|
+
t !== n && n?.pause(), e = jn(e, t), e.unshift(t);
|
|
952
1012
|
},
|
|
953
1013
|
remove(t) {
|
|
954
|
-
e =
|
|
1014
|
+
e = jn(e, t), e[0]?.resume();
|
|
955
1015
|
}
|
|
956
1016
|
};
|
|
957
1017
|
}
|
|
958
|
-
function
|
|
1018
|
+
function jn(e, t) {
|
|
959
1019
|
const n = [...e], o = n.indexOf(t);
|
|
960
1020
|
return o !== -1 && n.splice(o, 1), n;
|
|
961
1021
|
}
|
|
962
|
-
function
|
|
1022
|
+
function rc(e) {
|
|
963
1023
|
return e.filter((t) => t.tagName !== "A");
|
|
964
1024
|
}
|
|
965
|
-
var
|
|
1025
|
+
var sc = "Portal", ze = s.forwardRef((e, t) => {
|
|
966
1026
|
const { container: n, ...o } = e, [r, i] = s.useState(!1);
|
|
967
1027
|
le(() => i(!0), []);
|
|
968
1028
|
const a = n || r && globalThis?.document?.body;
|
|
969
|
-
return a ?
|
|
1029
|
+
return a ? Ws.createPortal(/* @__PURE__ */ p(I.div, { ...o, ref: t }), a) : null;
|
|
970
1030
|
});
|
|
971
|
-
|
|
1031
|
+
ze.displayName = sc;
|
|
972
1032
|
var $t = 0;
|
|
973
|
-
function
|
|
1033
|
+
function ko() {
|
|
974
1034
|
s.useEffect(() => {
|
|
975
1035
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
976
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
1036
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? zn()), document.body.insertAdjacentElement("beforeend", e[1] ?? zn()), $t++, () => {
|
|
977
1037
|
$t === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), $t--;
|
|
978
1038
|
};
|
|
979
1039
|
}, []);
|
|
980
1040
|
}
|
|
981
|
-
function
|
|
1041
|
+
function zn() {
|
|
982
1042
|
const e = document.createElement("span");
|
|
983
1043
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
984
1044
|
}
|
|
@@ -991,7 +1051,7 @@ var re = function() {
|
|
|
991
1051
|
return t;
|
|
992
1052
|
}, re.apply(this, arguments);
|
|
993
1053
|
};
|
|
994
|
-
function
|
|
1054
|
+
function Oo(e, t) {
|
|
995
1055
|
var n = {};
|
|
996
1056
|
for (var o in e) Object.prototype.hasOwnProperty.call(e, o) && t.indexOf(o) < 0 && (n[o] = e[o]);
|
|
997
1057
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -999,17 +1059,17 @@ function Do(e, t) {
|
|
|
999
1059
|
t.indexOf(o[r]) < 0 && Object.prototype.propertyIsEnumerable.call(e, o[r]) && (n[o[r]] = e[o[r]]);
|
|
1000
1060
|
return n;
|
|
1001
1061
|
}
|
|
1002
|
-
function
|
|
1062
|
+
function ic(e, t, n) {
|
|
1003
1063
|
if (n || arguments.length === 2) for (var o = 0, r = t.length, i; o < r; o++)
|
|
1004
1064
|
(i || !(o in t)) && (i || (i = Array.prototype.slice.call(t, 0, o)), i[o] = t[o]);
|
|
1005
1065
|
return e.concat(i || Array.prototype.slice.call(t));
|
|
1006
1066
|
}
|
|
1007
|
-
var ut = "right-scroll-bar-position", dt = "width-before-scroll-bar",
|
|
1067
|
+
var ut = "right-scroll-bar-position", dt = "width-before-scroll-bar", ac = "with-scroll-bars-hidden", cc = "--removed-body-scroll-bar-size";
|
|
1008
1068
|
function Bt(e, t) {
|
|
1009
1069
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
1010
1070
|
}
|
|
1011
|
-
function
|
|
1012
|
-
var n = $
|
|
1071
|
+
function lc(e, t) {
|
|
1072
|
+
var n = $s(function() {
|
|
1013
1073
|
return {
|
|
1014
1074
|
// value
|
|
1015
1075
|
value: e,
|
|
@@ -1029,14 +1089,14 @@ function _a(e, t) {
|
|
|
1029
1089
|
})[0];
|
|
1030
1090
|
return n.callback = t, n.facade;
|
|
1031
1091
|
}
|
|
1032
|
-
var
|
|
1033
|
-
function
|
|
1034
|
-
var n =
|
|
1092
|
+
var uc = typeof window < "u" ? s.useLayoutEffect : s.useEffect, Yn = /* @__PURE__ */ new WeakMap();
|
|
1093
|
+
function dc(e, t) {
|
|
1094
|
+
var n = lc(null, function(o) {
|
|
1035
1095
|
return e.forEach(function(r) {
|
|
1036
1096
|
return Bt(r, o);
|
|
1037
1097
|
});
|
|
1038
1098
|
});
|
|
1039
|
-
return
|
|
1099
|
+
return uc(function() {
|
|
1040
1100
|
var o = Yn.get(n);
|
|
1041
1101
|
if (o) {
|
|
1042
1102
|
var r = new Set(o), i = new Set(e), a = n.current;
|
|
@@ -1049,11 +1109,11 @@ function Aa(e, t) {
|
|
|
1049
1109
|
Yn.set(n, e);
|
|
1050
1110
|
}, [e]), n;
|
|
1051
1111
|
}
|
|
1052
|
-
function
|
|
1112
|
+
function fc(e) {
|
|
1053
1113
|
return e;
|
|
1054
1114
|
}
|
|
1055
|
-
function
|
|
1056
|
-
t === void 0 && (t =
|
|
1115
|
+
function pc(e, t) {
|
|
1116
|
+
t === void 0 && (t = fc);
|
|
1057
1117
|
var n = [], o = !1, r = {
|
|
1058
1118
|
read: function() {
|
|
1059
1119
|
if (o)
|
|
@@ -1107,13 +1167,13 @@ function Da(e, t) {
|
|
|
1107
1167
|
};
|
|
1108
1168
|
return r;
|
|
1109
1169
|
}
|
|
1110
|
-
function
|
|
1170
|
+
function mc(e) {
|
|
1111
1171
|
e === void 0 && (e = {});
|
|
1112
|
-
var t =
|
|
1172
|
+
var t = pc(null);
|
|
1113
1173
|
return t.options = re({ async: !0, ssr: !1 }, e), t;
|
|
1114
1174
|
}
|
|
1115
|
-
var
|
|
1116
|
-
var t = e.sideCar, n =
|
|
1175
|
+
var Do = function(e) {
|
|
1176
|
+
var t = e.sideCar, n = Oo(e, ["sideCar"]);
|
|
1117
1177
|
if (!t)
|
|
1118
1178
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
1119
1179
|
var o = t.read();
|
|
@@ -1121,22 +1181,22 @@ var No = function(e) {
|
|
|
1121
1181
|
throw new Error("Sidecar medium not found");
|
|
1122
1182
|
return s.createElement(o, re({}, n));
|
|
1123
1183
|
};
|
|
1124
|
-
|
|
1125
|
-
function
|
|
1126
|
-
return e.useMedium(t),
|
|
1184
|
+
Do.isSideCarExport = !0;
|
|
1185
|
+
function hc(e, t) {
|
|
1186
|
+
return e.useMedium(t), Do;
|
|
1127
1187
|
}
|
|
1128
|
-
var
|
|
1188
|
+
var No = mc(), Wt = function() {
|
|
1129
1189
|
}, Et = s.forwardRef(function(e, t) {
|
|
1130
1190
|
var n = s.useRef(null), o = s.useState({
|
|
1131
1191
|
onScrollCapture: Wt,
|
|
1132
1192
|
onWheelCapture: Wt,
|
|
1133
1193
|
onTouchMoveCapture: Wt
|
|
1134
|
-
}), r = o[0], i = o[1], a = e.forwardProps, c = e.children, d = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, v = e.noRelative, w = e.noIsolation, m = e.inert, g = e.allowPinchZoom, y = e.as, b = y === void 0 ? "div" : y, C = e.gapMode, E =
|
|
1194
|
+
}), r = o[0], i = o[1], a = e.forwardProps, c = e.children, d = e.className, l = e.removeScrollBar, u = e.enabled, f = e.shards, h = e.sideCar, v = e.noRelative, w = e.noIsolation, m = e.inert, g = e.allowPinchZoom, y = e.as, b = y === void 0 ? "div" : y, C = e.gapMode, E = Oo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), x = h, S = dc([n, t]), R = re(re({}, E), r);
|
|
1135
1195
|
return s.createElement(
|
|
1136
1196
|
s.Fragment,
|
|
1137
1197
|
null,
|
|
1138
|
-
u && s.createElement(x, { sideCar:
|
|
1139
|
-
a ? s.cloneElement(s.Children.only(c), re(re({}, R), { ref:
|
|
1198
|
+
u && s.createElement(x, { sideCar: No, removeScrollBar: l, shards: f, noRelative: v, noIsolation: w, inert: m, setCallbacks: i, allowPinchZoom: !!g, lockRef: n, gapMode: C }),
|
|
1199
|
+
a ? s.cloneElement(s.Children.only(c), re(re({}, R), { ref: S })) : s.createElement(b, re({}, R, { className: d, ref: S }), c)
|
|
1140
1200
|
);
|
|
1141
1201
|
});
|
|
1142
1202
|
Et.defaultProps = {
|
|
@@ -1148,37 +1208,37 @@ Et.classNames = {
|
|
|
1148
1208
|
fullWidth: dt,
|
|
1149
1209
|
zeroRight: ut
|
|
1150
1210
|
};
|
|
1151
|
-
var
|
|
1211
|
+
var vc = function() {
|
|
1152
1212
|
if (typeof __webpack_nonce__ < "u")
|
|
1153
1213
|
return __webpack_nonce__;
|
|
1154
1214
|
};
|
|
1155
|
-
function
|
|
1215
|
+
function gc() {
|
|
1156
1216
|
if (!document)
|
|
1157
1217
|
return null;
|
|
1158
1218
|
var e = document.createElement("style");
|
|
1159
1219
|
e.type = "text/css";
|
|
1160
|
-
var t =
|
|
1220
|
+
var t = vc();
|
|
1161
1221
|
return t && e.setAttribute("nonce", t), e;
|
|
1162
1222
|
}
|
|
1163
|
-
function
|
|
1223
|
+
function wc(e, t) {
|
|
1164
1224
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
1165
1225
|
}
|
|
1166
|
-
function
|
|
1226
|
+
function yc(e) {
|
|
1167
1227
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
1168
1228
|
t.appendChild(e);
|
|
1169
1229
|
}
|
|
1170
|
-
var
|
|
1230
|
+
var bc = function() {
|
|
1171
1231
|
var e = 0, t = null;
|
|
1172
1232
|
return {
|
|
1173
1233
|
add: function(n) {
|
|
1174
|
-
e == 0 && (t =
|
|
1234
|
+
e == 0 && (t = gc()) && (wc(t, n), yc(t)), e++;
|
|
1175
1235
|
},
|
|
1176
1236
|
remove: function() {
|
|
1177
1237
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
1178
1238
|
}
|
|
1179
1239
|
};
|
|
1180
|
-
},
|
|
1181
|
-
var e =
|
|
1240
|
+
}, Cc = function() {
|
|
1241
|
+
var e = bc();
|
|
1182
1242
|
return function(t, n) {
|
|
1183
1243
|
s.useEffect(function() {
|
|
1184
1244
|
return e.add(t), function() {
|
|
@@ -1186,36 +1246,36 @@ var Ba = function() {
|
|
|
1186
1246
|
};
|
|
1187
1247
|
}, [t && n]);
|
|
1188
1248
|
};
|
|
1189
|
-
},
|
|
1190
|
-
var e =
|
|
1249
|
+
}, Io = function() {
|
|
1250
|
+
var e = Cc(), t = function(n) {
|
|
1191
1251
|
var o = n.styles, r = n.dynamic;
|
|
1192
1252
|
return e(o, r), null;
|
|
1193
1253
|
};
|
|
1194
1254
|
return t;
|
|
1195
|
-
},
|
|
1255
|
+
}, Ec = {
|
|
1196
1256
|
left: 0,
|
|
1197
1257
|
top: 0,
|
|
1198
1258
|
right: 0,
|
|
1199
1259
|
gap: 0
|
|
1200
1260
|
}, Ht = function(e) {
|
|
1201
1261
|
return parseInt(e || "", 10) || 0;
|
|
1202
|
-
},
|
|
1262
|
+
}, xc = function(e) {
|
|
1203
1263
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], o = t[e === "padding" ? "paddingTop" : "marginTop"], r = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
1204
1264
|
return [Ht(n), Ht(o), Ht(r)];
|
|
1205
|
-
},
|
|
1265
|
+
}, Rc = function(e) {
|
|
1206
1266
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
1207
|
-
return
|
|
1208
|
-
var t =
|
|
1267
|
+
return Ec;
|
|
1268
|
+
var t = xc(e), n = document.documentElement.clientWidth, o = window.innerWidth;
|
|
1209
1269
|
return {
|
|
1210
1270
|
left: t[0],
|
|
1211
1271
|
top: t[1],
|
|
1212
1272
|
right: t[2],
|
|
1213
1273
|
gap: Math.max(0, o - n + t[2] - t[0])
|
|
1214
1274
|
};
|
|
1215
|
-
},
|
|
1275
|
+
}, Sc = Io(), Ae = "data-scroll-locked", Tc = function(e, t, n, o) {
|
|
1216
1276
|
var r = e.left, i = e.top, a = e.right, c = e.gap;
|
|
1217
1277
|
return n === void 0 && (n = "margin"), `
|
|
1218
|
-
.`.concat(
|
|
1278
|
+
.`.concat(ac, ` {
|
|
1219
1279
|
overflow: hidden `).concat(o, `;
|
|
1220
1280
|
padding-right: `).concat(c, "px ").concat(o, `;
|
|
1221
1281
|
}
|
|
@@ -1253,39 +1313,39 @@ var Ba = function() {
|
|
|
1253
1313
|
}
|
|
1254
1314
|
|
|
1255
1315
|
body[`).concat(Ae, `] {
|
|
1256
|
-
`).concat(
|
|
1316
|
+
`).concat(cc, ": ").concat(c, `px;
|
|
1257
1317
|
}
|
|
1258
1318
|
`);
|
|
1259
1319
|
}, Xn = function() {
|
|
1260
1320
|
var e = parseInt(document.body.getAttribute(Ae) || "0", 10);
|
|
1261
1321
|
return isFinite(e) ? e : 0;
|
|
1262
|
-
},
|
|
1322
|
+
}, Pc = function() {
|
|
1263
1323
|
s.useEffect(function() {
|
|
1264
1324
|
return document.body.setAttribute(Ae, (Xn() + 1).toString()), function() {
|
|
1265
1325
|
var e = Xn() - 1;
|
|
1266
1326
|
e <= 0 ? document.body.removeAttribute(Ae) : document.body.setAttribute(Ae, e.toString());
|
|
1267
1327
|
};
|
|
1268
1328
|
}, []);
|
|
1269
|
-
},
|
|
1329
|
+
}, _c = function(e) {
|
|
1270
1330
|
var t = e.noRelative, n = e.noImportant, o = e.gapMode, r = o === void 0 ? "margin" : o;
|
|
1271
|
-
|
|
1331
|
+
Pc();
|
|
1272
1332
|
var i = s.useMemo(function() {
|
|
1273
|
-
return
|
|
1333
|
+
return Rc(r);
|
|
1274
1334
|
}, [r]);
|
|
1275
|
-
return s.createElement(
|
|
1276
|
-
},
|
|
1335
|
+
return s.createElement(Sc, { styles: Tc(i, !t, r, n ? "" : "!important") });
|
|
1336
|
+
}, Xt = !1;
|
|
1277
1337
|
if (typeof window < "u")
|
|
1278
1338
|
try {
|
|
1279
1339
|
var ot = Object.defineProperty({}, "passive", {
|
|
1280
1340
|
get: function() {
|
|
1281
|
-
return
|
|
1341
|
+
return Xt = !0, !0;
|
|
1282
1342
|
}
|
|
1283
1343
|
});
|
|
1284
1344
|
window.addEventListener("test", ot, ot), window.removeEventListener("test", ot, ot);
|
|
1285
1345
|
} catch {
|
|
1286
|
-
|
|
1346
|
+
Xt = !1;
|
|
1287
1347
|
}
|
|
1288
|
-
var
|
|
1348
|
+
var Te = Xt ? { passive: !1 } : !1, Mc = function(e) {
|
|
1289
1349
|
return e.tagName === "TEXTAREA";
|
|
1290
1350
|
}, Lo = function(e, t) {
|
|
1291
1351
|
if (!(e instanceof Element))
|
|
@@ -1294,11 +1354,11 @@ var Se = Yt ? { passive: !1 } : !1, Ya = function(e) {
|
|
|
1294
1354
|
return (
|
|
1295
1355
|
// not-not-scrollable
|
|
1296
1356
|
n[t] !== "hidden" && // contains scroll inside self
|
|
1297
|
-
!(n.overflowY === n.overflowX && !
|
|
1357
|
+
!(n.overflowY === n.overflowX && !Mc(e) && n[t] === "visible")
|
|
1298
1358
|
);
|
|
1299
|
-
},
|
|
1359
|
+
}, Ac = function(e) {
|
|
1300
1360
|
return Lo(e, "overflowY");
|
|
1301
|
-
},
|
|
1361
|
+
}, kc = function(e) {
|
|
1302
1362
|
return Lo(e, "overflowX");
|
|
1303
1363
|
}, qn = function(e, t) {
|
|
1304
1364
|
var n = t.ownerDocument, o = t;
|
|
@@ -1313,14 +1373,14 @@ var Se = Yt ? { passive: !1 } : !1, Ya = function(e) {
|
|
|
1313
1373
|
o = o.parentNode;
|
|
1314
1374
|
} while (o && o !== n.body);
|
|
1315
1375
|
return !1;
|
|
1316
|
-
},
|
|
1376
|
+
}, Oc = function(e) {
|
|
1317
1377
|
var t = e.scrollTop, n = e.scrollHeight, o = e.clientHeight;
|
|
1318
1378
|
return [
|
|
1319
1379
|
t,
|
|
1320
1380
|
n,
|
|
1321
1381
|
o
|
|
1322
1382
|
];
|
|
1323
|
-
},
|
|
1383
|
+
}, Dc = function(e) {
|
|
1324
1384
|
var t = e.scrollLeft, n = e.scrollWidth, o = e.clientWidth;
|
|
1325
1385
|
return [
|
|
1326
1386
|
t,
|
|
@@ -1328,13 +1388,13 @@ var Se = Yt ? { passive: !1 } : !1, Ya = function(e) {
|
|
|
1328
1388
|
o
|
|
1329
1389
|
];
|
|
1330
1390
|
}, Fo = function(e, t) {
|
|
1331
|
-
return e === "v" ?
|
|
1391
|
+
return e === "v" ? Ac(t) : kc(t);
|
|
1332
1392
|
}, $o = function(e, t) {
|
|
1333
|
-
return e === "v" ?
|
|
1334
|
-
},
|
|
1393
|
+
return e === "v" ? Oc(t) : Dc(t);
|
|
1394
|
+
}, Nc = function(e, t) {
|
|
1335
1395
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
1336
|
-
},
|
|
1337
|
-
var i =
|
|
1396
|
+
}, Ic = function(e, t, n, o, r) {
|
|
1397
|
+
var i = Nc(e, window.getComputedStyle(t).direction), a = i * o, c = n.target, d = t.contains(c), l = !1, u = a > 0, f = 0, h = 0;
|
|
1338
1398
|
do {
|
|
1339
1399
|
if (!c)
|
|
1340
1400
|
break;
|
|
@@ -1354,22 +1414,22 @@ var Se = Yt ? { passive: !1 } : !1, Ya = function(e) {
|
|
|
1354
1414
|
return [e.deltaX, e.deltaY];
|
|
1355
1415
|
}, Qn = function(e) {
|
|
1356
1416
|
return e && "current" in e ? e.current : e;
|
|
1357
|
-
},
|
|
1417
|
+
}, Lc = function(e, t) {
|
|
1358
1418
|
return e[0] === t[0] && e[1] === t[1];
|
|
1359
|
-
},
|
|
1419
|
+
}, Fc = function(e) {
|
|
1360
1420
|
return `
|
|
1361
1421
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
1362
1422
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
1363
1423
|
`);
|
|
1364
|
-
},
|
|
1365
|
-
function
|
|
1366
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), o = s.useRef(), r = s.useState(
|
|
1424
|
+
}, $c = 0, Pe = [];
|
|
1425
|
+
function Bc(e) {
|
|
1426
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), o = s.useRef(), r = s.useState($c++)[0], i = s.useState(Io)[0], a = s.useRef(e);
|
|
1367
1427
|
s.useEffect(function() {
|
|
1368
1428
|
a.current = e;
|
|
1369
1429
|
}, [e]), s.useEffect(function() {
|
|
1370
1430
|
if (e.inert) {
|
|
1371
1431
|
document.body.classList.add("block-interactivity-".concat(r));
|
|
1372
|
-
var m =
|
|
1432
|
+
var m = ic([e.lockRef.current], (e.shards || []).map(Qn), !0).filter(Boolean);
|
|
1373
1433
|
return m.forEach(function(g) {
|
|
1374
1434
|
return g.classList.add("allow-interactivity-".concat(r));
|
|
1375
1435
|
}), function() {
|
|
@@ -1382,23 +1442,23 @@ function rc(e) {
|
|
|
1382
1442
|
var c = s.useCallback(function(m, g) {
|
|
1383
1443
|
if ("touches" in m && m.touches.length === 2 || m.type === "wheel" && m.ctrlKey)
|
|
1384
1444
|
return !a.current.allowPinchZoom;
|
|
1385
|
-
var y = rt(m), b = n.current, C = "deltaX" in m ? m.deltaX : b[0] - y[0], E = "deltaY" in m ? m.deltaY : b[1] - y[1], x,
|
|
1386
|
-
if ("touches" in m && R === "h" &&
|
|
1445
|
+
var y = rt(m), b = n.current, C = "deltaX" in m ? m.deltaX : b[0] - y[0], E = "deltaY" in m ? m.deltaY : b[1] - y[1], x, S = m.target, R = Math.abs(C) > Math.abs(E) ? "h" : "v";
|
|
1446
|
+
if ("touches" in m && R === "h" && S.type === "range")
|
|
1387
1447
|
return !1;
|
|
1388
|
-
var M = qn(R,
|
|
1448
|
+
var M = qn(R, S);
|
|
1389
1449
|
if (!M)
|
|
1390
1450
|
return !0;
|
|
1391
|
-
if (M ? x = R : (x = R === "v" ? "h" : "v", M = qn(R,
|
|
1451
|
+
if (M ? x = R : (x = R === "v" ? "h" : "v", M = qn(R, S)), !M)
|
|
1392
1452
|
return !1;
|
|
1393
1453
|
if (!o.current && "changedTouches" in m && (C || E) && (o.current = x), !x)
|
|
1394
1454
|
return !0;
|
|
1395
|
-
var
|
|
1396
|
-
return
|
|
1455
|
+
var D = o.current || x;
|
|
1456
|
+
return Ic(D, g, m, D === "h" ? C : E);
|
|
1397
1457
|
}, []), d = s.useCallback(function(m) {
|
|
1398
1458
|
var g = m;
|
|
1399
1459
|
if (!(!Pe.length || Pe[Pe.length - 1] !== i)) {
|
|
1400
1460
|
var y = "deltaY" in g ? Zn(g) : rt(g), b = t.current.filter(function(x) {
|
|
1401
|
-
return x.name === g.type && (x.target === g.target || g.target === x.shadowParent) &&
|
|
1461
|
+
return x.name === g.type && (x.target === g.target || g.target === x.shadowParent) && Lc(x.delta, y);
|
|
1402
1462
|
})[0];
|
|
1403
1463
|
if (b && b.should) {
|
|
1404
1464
|
g.cancelable && g.preventDefault();
|
|
@@ -1412,7 +1472,7 @@ function rc(e) {
|
|
|
1412
1472
|
}
|
|
1413
1473
|
}
|
|
1414
1474
|
}, []), l = s.useCallback(function(m, g, y, b) {
|
|
1415
|
-
var C = { name: m, delta: g, target: y, should: b, shadowParent:
|
|
1475
|
+
var C = { name: m, delta: g, target: y, should: b, shadowParent: Wc(y) };
|
|
1416
1476
|
t.current.push(C), setTimeout(function() {
|
|
1417
1477
|
t.current = t.current.filter(function(E) {
|
|
1418
1478
|
return E !== C;
|
|
@@ -1430,38 +1490,38 @@ function rc(e) {
|
|
|
1430
1490
|
onScrollCapture: f,
|
|
1431
1491
|
onWheelCapture: f,
|
|
1432
1492
|
onTouchMoveCapture: h
|
|
1433
|
-
}), document.addEventListener("wheel", d,
|
|
1493
|
+
}), document.addEventListener("wheel", d, Te), document.addEventListener("touchmove", d, Te), document.addEventListener("touchstart", u, Te), function() {
|
|
1434
1494
|
Pe = Pe.filter(function(m) {
|
|
1435
1495
|
return m !== i;
|
|
1436
|
-
}), document.removeEventListener("wheel", d,
|
|
1496
|
+
}), document.removeEventListener("wheel", d, Te), document.removeEventListener("touchmove", d, Te), document.removeEventListener("touchstart", u, Te);
|
|
1437
1497
|
};
|
|
1438
1498
|
}, []);
|
|
1439
1499
|
var v = e.removeScrollBar, w = e.inert;
|
|
1440
1500
|
return s.createElement(
|
|
1441
1501
|
s.Fragment,
|
|
1442
1502
|
null,
|
|
1443
|
-
w ? s.createElement(i, { styles:
|
|
1444
|
-
v ? s.createElement(
|
|
1503
|
+
w ? s.createElement(i, { styles: Fc(r) }) : null,
|
|
1504
|
+
v ? s.createElement(_c, { noRelative: e.noRelative, gapMode: e.gapMode }) : null
|
|
1445
1505
|
);
|
|
1446
1506
|
}
|
|
1447
|
-
function
|
|
1507
|
+
function Wc(e) {
|
|
1448
1508
|
for (var t = null; e !== null; )
|
|
1449
1509
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
1450
1510
|
return t;
|
|
1451
1511
|
}
|
|
1452
|
-
const
|
|
1453
|
-
var
|
|
1454
|
-
return s.createElement(Et, re({}, e, { ref: t, sideCar:
|
|
1512
|
+
const Hc = hc(No, Bc);
|
|
1513
|
+
var pn = s.forwardRef(function(e, t) {
|
|
1514
|
+
return s.createElement(Et, re({}, e, { ref: t, sideCar: Hc }));
|
|
1455
1515
|
});
|
|
1456
|
-
|
|
1457
|
-
var
|
|
1516
|
+
pn.classNames = Et.classNames;
|
|
1517
|
+
var Vc = function(e) {
|
|
1458
1518
|
if (typeof document > "u")
|
|
1459
1519
|
return null;
|
|
1460
1520
|
var t = Array.isArray(e) ? e[0] : e;
|
|
1461
1521
|
return t.ownerDocument.body;
|
|
1462
|
-
}, _e = /* @__PURE__ */ new WeakMap(),
|
|
1522
|
+
}, _e = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = {}, Vt = 0, Bo = function(e) {
|
|
1463
1523
|
return e && (e.host || Bo(e.parentNode));
|
|
1464
|
-
},
|
|
1524
|
+
}, Kc = function(e, t) {
|
|
1465
1525
|
return t.map(function(n) {
|
|
1466
1526
|
if (e.contains(n))
|
|
1467
1527
|
return n;
|
|
@@ -1470,10 +1530,10 @@ var ac = function(e) {
|
|
|
1470
1530
|
}).filter(function(n) {
|
|
1471
1531
|
return !!n;
|
|
1472
1532
|
});
|
|
1473
|
-
},
|
|
1474
|
-
var r =
|
|
1475
|
-
|
|
1476
|
-
var i =
|
|
1533
|
+
}, Uc = function(e, t, n, o) {
|
|
1534
|
+
var r = Kc(t, Array.isArray(e) ? e : [e]);
|
|
1535
|
+
it[n] || (it[n] = /* @__PURE__ */ new WeakMap());
|
|
1536
|
+
var i = it[n], a = [], c = /* @__PURE__ */ new Set(), d = new Set(r), l = function(f) {
|
|
1477
1537
|
!f || c.has(f) || (c.add(f), l(f.parentNode));
|
|
1478
1538
|
};
|
|
1479
1539
|
r.forEach(l);
|
|
@@ -1484,7 +1544,7 @@ var ac = function(e) {
|
|
|
1484
1544
|
else
|
|
1485
1545
|
try {
|
|
1486
1546
|
var v = h.getAttribute(o), w = v !== null && v !== "false", m = (_e.get(h) || 0) + 1, g = (i.get(h) || 0) + 1;
|
|
1487
|
-
_e.set(h, m), i.set(h, g), a.push(h), m === 1 && w &&
|
|
1547
|
+
_e.set(h, m), i.set(h, g), a.push(h), m === 1 && w && st.set(h, !0), g === 1 && h.setAttribute(n, "true"), w || h.setAttribute(o, "true");
|
|
1488
1548
|
} catch (y) {
|
|
1489
1549
|
console.error("aria-hidden: cannot operate on ", h, y);
|
|
1490
1550
|
}
|
|
@@ -1493,16 +1553,16 @@ var ac = function(e) {
|
|
|
1493
1553
|
return u(t), c.clear(), Vt++, function() {
|
|
1494
1554
|
a.forEach(function(f) {
|
|
1495
1555
|
var h = _e.get(f) - 1, v = i.get(f) - 1;
|
|
1496
|
-
_e.set(f, h), i.set(f, v), h || (
|
|
1497
|
-
}), Vt--, Vt || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(),
|
|
1556
|
+
_e.set(f, h), i.set(f, v), h || (st.has(f) || f.removeAttribute(o), st.delete(f)), v || f.removeAttribute(n);
|
|
1557
|
+
}), Vt--, Vt || (_e = /* @__PURE__ */ new WeakMap(), _e = /* @__PURE__ */ new WeakMap(), st = /* @__PURE__ */ new WeakMap(), it = {});
|
|
1498
1558
|
};
|
|
1499
1559
|
}, Wo = function(e, t, n) {
|
|
1500
1560
|
n === void 0 && (n = "data-aria-hidden");
|
|
1501
|
-
var o = Array.from(Array.isArray(e) ? e : [e]), r =
|
|
1502
|
-
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))),
|
|
1561
|
+
var o = Array.from(Array.isArray(e) ? e : [e]), r = Vc(e);
|
|
1562
|
+
return r ? (o.push.apply(o, Array.from(r.querySelectorAll("[aria-live], script"))), Uc(o, r, n, "aria-hidden")) : function() {
|
|
1503
1563
|
return null;
|
|
1504
1564
|
};
|
|
1505
|
-
}, xt = "Dialog", [Ho] = fe(xt), [
|
|
1565
|
+
}, xt = "Dialog", [Ho] = fe(xt), [Gc, ne] = Ho(xt), Vo = (e) => {
|
|
1506
1566
|
const {
|
|
1507
1567
|
__scopeDialog: t,
|
|
1508
1568
|
children: n,
|
|
@@ -1510,14 +1570,14 @@ var ac = function(e) {
|
|
|
1510
1570
|
defaultOpen: r,
|
|
1511
1571
|
onOpenChange: i,
|
|
1512
1572
|
modal: a = !0
|
|
1513
|
-
} = e, c = s.useRef(null), d = s.useRef(null), [l, u] =
|
|
1573
|
+
} = e, c = s.useRef(null), d = s.useRef(null), [l, u] = Ne({
|
|
1514
1574
|
prop: o,
|
|
1515
1575
|
defaultProp: r ?? !1,
|
|
1516
1576
|
onChange: i,
|
|
1517
1577
|
caller: xt
|
|
1518
1578
|
});
|
|
1519
1579
|
return /* @__PURE__ */ p(
|
|
1520
|
-
|
|
1580
|
+
Gc,
|
|
1521
1581
|
{
|
|
1522
1582
|
scope: t,
|
|
1523
1583
|
triggerRef: c,
|
|
@@ -1536,7 +1596,7 @@ var ac = function(e) {
|
|
|
1536
1596
|
Vo.displayName = xt;
|
|
1537
1597
|
var Ko = "DialogTrigger", Uo = s.forwardRef(
|
|
1538
1598
|
(e, t) => {
|
|
1539
|
-
const { __scopeDialog: n, ...o } = e, r = ne(Ko, n), i =
|
|
1599
|
+
const { __scopeDialog: n, ...o } = e, r = ne(Ko, n), i = V(t, r.triggerRef);
|
|
1540
1600
|
return /* @__PURE__ */ p(
|
|
1541
1601
|
I.button,
|
|
1542
1602
|
{
|
|
@@ -1544,7 +1604,7 @@ var Ko = "DialogTrigger", Uo = s.forwardRef(
|
|
|
1544
1604
|
"aria-haspopup": "dialog",
|
|
1545
1605
|
"aria-expanded": r.open,
|
|
1546
1606
|
"aria-controls": r.contentId,
|
|
1547
|
-
"data-state":
|
|
1607
|
+
"data-state": vn(r.open),
|
|
1548
1608
|
...o,
|
|
1549
1609
|
ref: i,
|
|
1550
1610
|
onClick: _(e.onClick, r.onOpenToggle)
|
|
@@ -1553,30 +1613,30 @@ var Ko = "DialogTrigger", Uo = s.forwardRef(
|
|
|
1553
1613
|
}
|
|
1554
1614
|
);
|
|
1555
1615
|
Uo.displayName = Ko;
|
|
1556
|
-
var
|
|
1616
|
+
var mn = "DialogPortal", [jc, Go] = Ho(mn, {
|
|
1557
1617
|
forceMount: void 0
|
|
1558
|
-
}),
|
|
1559
|
-
const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = ne(
|
|
1560
|
-
return /* @__PURE__ */ p(
|
|
1618
|
+
}), jo = (e) => {
|
|
1619
|
+
const { __scopeDialog: t, forceMount: n, children: o, container: r } = e, i = ne(mn, t);
|
|
1620
|
+
return /* @__PURE__ */ p(jc, { scope: t, forceMount: n, children: s.Children.map(o, (a) => /* @__PURE__ */ p(Q, { present: n || i.open, children: /* @__PURE__ */ p(ze, { asChild: !0, container: r, children: a }) })) });
|
|
1561
1621
|
};
|
|
1562
|
-
|
|
1563
|
-
var pt = "DialogOverlay",
|
|
1622
|
+
jo.displayName = mn;
|
|
1623
|
+
var pt = "DialogOverlay", zo = s.forwardRef(
|
|
1564
1624
|
(e, t) => {
|
|
1565
1625
|
const n = Go(pt, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = ne(pt, e.__scopeDialog);
|
|
1566
|
-
return i.modal ? /* @__PURE__ */ p(Q, { present: o || i.open, children: /* @__PURE__ */ p(
|
|
1626
|
+
return i.modal ? /* @__PURE__ */ p(Q, { present: o || i.open, children: /* @__PURE__ */ p(Yc, { ...r, ref: t }) }) : null;
|
|
1567
1627
|
}
|
|
1568
1628
|
);
|
|
1569
|
-
|
|
1570
|
-
var
|
|
1629
|
+
zo.displayName = pt;
|
|
1630
|
+
var zc = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), Yc = s.forwardRef(
|
|
1571
1631
|
(e, t) => {
|
|
1572
1632
|
const { __scopeDialog: n, ...o } = e, r = ne(pt, n);
|
|
1573
1633
|
return (
|
|
1574
1634
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
1575
1635
|
// ie. when `Overlay` and `Content` are siblings
|
|
1576
|
-
/* @__PURE__ */ p(
|
|
1636
|
+
/* @__PURE__ */ p(pn, { as: zc, allowPinchZoom: !0, shards: [r.contentRef], children: /* @__PURE__ */ p(
|
|
1577
1637
|
I.div,
|
|
1578
1638
|
{
|
|
1579
|
-
"data-state":
|
|
1639
|
+
"data-state": vn(r.open),
|
|
1580
1640
|
...o,
|
|
1581
1641
|
ref: t,
|
|
1582
1642
|
style: { pointerEvents: "auto", ...o.style }
|
|
@@ -1587,13 +1647,13 @@ var fc = /* @__PURE__ */ We("DialogOverlay.RemoveScroll"), pc = s.forwardRef(
|
|
|
1587
1647
|
), Ee = "DialogContent", Yo = s.forwardRef(
|
|
1588
1648
|
(e, t) => {
|
|
1589
1649
|
const n = Go(Ee, e.__scopeDialog), { forceMount: o = n.forceMount, ...r } = e, i = ne(Ee, e.__scopeDialog);
|
|
1590
|
-
return /* @__PURE__ */ p(Q, { present: o || i.open, children: i.modal ? /* @__PURE__ */ p(
|
|
1650
|
+
return /* @__PURE__ */ p(Q, { present: o || i.open, children: i.modal ? /* @__PURE__ */ p(Xc, { ...r, ref: t }) : /* @__PURE__ */ p(qc, { ...r, ref: t }) });
|
|
1591
1651
|
}
|
|
1592
1652
|
);
|
|
1593
1653
|
Yo.displayName = Ee;
|
|
1594
|
-
var
|
|
1654
|
+
var Xc = s.forwardRef(
|
|
1595
1655
|
(e, t) => {
|
|
1596
|
-
const n = ne(Ee, e.__scopeDialog), o = s.useRef(null), r =
|
|
1656
|
+
const n = ne(Ee, e.__scopeDialog), o = s.useRef(null), r = V(t, n.contentRef, o);
|
|
1597
1657
|
return s.useEffect(() => {
|
|
1598
1658
|
const i = o.current;
|
|
1599
1659
|
if (i) return Wo(i);
|
|
@@ -1618,7 +1678,7 @@ var mc = s.forwardRef(
|
|
|
1618
1678
|
}
|
|
1619
1679
|
);
|
|
1620
1680
|
}
|
|
1621
|
-
),
|
|
1681
|
+
), qc = s.forwardRef(
|
|
1622
1682
|
(e, t) => {
|
|
1623
1683
|
const n = ne(Ee, e.__scopeDialog), o = s.useRef(!1), r = s.useRef(!1);
|
|
1624
1684
|
return /* @__PURE__ */ p(
|
|
@@ -1641,10 +1701,10 @@ var mc = s.forwardRef(
|
|
|
1641
1701
|
}
|
|
1642
1702
|
), Xo = s.forwardRef(
|
|
1643
1703
|
(e, t) => {
|
|
1644
|
-
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...a } = e, c = ne(Ee, n), d = s.useRef(null), l =
|
|
1645
|
-
return
|
|
1704
|
+
const { __scopeDialog: n, trapFocus: o, onOpenAutoFocus: r, onCloseAutoFocus: i, ...a } = e, c = ne(Ee, n), d = s.useRef(null), l = V(t, d);
|
|
1705
|
+
return ko(), /* @__PURE__ */ G(Ce, { children: [
|
|
1646
1706
|
/* @__PURE__ */ p(
|
|
1647
|
-
|
|
1707
|
+
fn,
|
|
1648
1708
|
{
|
|
1649
1709
|
asChild: !0,
|
|
1650
1710
|
loop: !0,
|
|
@@ -1652,13 +1712,13 @@ var mc = s.forwardRef(
|
|
|
1652
1712
|
onMountAutoFocus: r,
|
|
1653
1713
|
onUnmountAutoFocus: i,
|
|
1654
1714
|
children: /* @__PURE__ */ p(
|
|
1655
|
-
|
|
1715
|
+
je,
|
|
1656
1716
|
{
|
|
1657
1717
|
role: "dialog",
|
|
1658
1718
|
id: c.contentId,
|
|
1659
1719
|
"aria-describedby": c.descriptionId,
|
|
1660
1720
|
"aria-labelledby": c.titleId,
|
|
1661
|
-
"data-state":
|
|
1721
|
+
"data-state": vn(c.open),
|
|
1662
1722
|
...a,
|
|
1663
1723
|
ref: l,
|
|
1664
1724
|
onDismiss: () => c.onOpenChange(!1)
|
|
@@ -1666,26 +1726,26 @@ var mc = s.forwardRef(
|
|
|
1666
1726
|
)
|
|
1667
1727
|
}
|
|
1668
1728
|
),
|
|
1669
|
-
/* @__PURE__ */
|
|
1670
|
-
/* @__PURE__ */ p(
|
|
1671
|
-
/* @__PURE__ */ p(
|
|
1729
|
+
/* @__PURE__ */ G(Ce, { children: [
|
|
1730
|
+
/* @__PURE__ */ p(Qc, { titleId: c.titleId }),
|
|
1731
|
+
/* @__PURE__ */ p(el, { contentRef: d, descriptionId: c.descriptionId })
|
|
1672
1732
|
] })
|
|
1673
1733
|
] });
|
|
1674
1734
|
}
|
|
1675
|
-
),
|
|
1735
|
+
), hn = "DialogTitle", qo = s.forwardRef(
|
|
1676
1736
|
(e, t) => {
|
|
1677
|
-
const { __scopeDialog: n, ...o } = e, r = ne(
|
|
1737
|
+
const { __scopeDialog: n, ...o } = e, r = ne(hn, n);
|
|
1678
1738
|
return /* @__PURE__ */ p(I.h2, { id: r.titleId, ...o, ref: t });
|
|
1679
1739
|
}
|
|
1680
1740
|
);
|
|
1681
|
-
qo.displayName =
|
|
1682
|
-
var Zo = "DialogDescription",
|
|
1741
|
+
qo.displayName = hn;
|
|
1742
|
+
var Zo = "DialogDescription", Zc = s.forwardRef(
|
|
1683
1743
|
(e, t) => {
|
|
1684
1744
|
const { __scopeDialog: n, ...o } = e, r = ne(Zo, n);
|
|
1685
1745
|
return /* @__PURE__ */ p(I.p, { id: r.descriptionId, ...o, ref: t });
|
|
1686
1746
|
}
|
|
1687
1747
|
);
|
|
1688
|
-
|
|
1748
|
+
Zc.displayName = Zo;
|
|
1689
1749
|
var Qo = "DialogClose", Jo = s.forwardRef(
|
|
1690
1750
|
(e, t) => {
|
|
1691
1751
|
const { __scopeDialog: n, ...o } = e, r = ne(Qo, n);
|
|
@@ -1701,14 +1761,14 @@ var Qo = "DialogClose", Jo = s.forwardRef(
|
|
|
1701
1761
|
}
|
|
1702
1762
|
);
|
|
1703
1763
|
Jo.displayName = Qo;
|
|
1704
|
-
function
|
|
1764
|
+
function vn(e) {
|
|
1705
1765
|
return e ? "open" : "closed";
|
|
1706
1766
|
}
|
|
1707
|
-
var er = "DialogTitleWarning", [
|
|
1767
|
+
var er = "DialogTitleWarning", [xp, tr] = ga(er, {
|
|
1708
1768
|
contentName: Ee,
|
|
1709
|
-
titleName:
|
|
1769
|
+
titleName: hn,
|
|
1710
1770
|
docsSlug: "dialog"
|
|
1711
|
-
}),
|
|
1771
|
+
}), Qc = ({ titleId: e }) => {
|
|
1712
1772
|
const t = tr(er), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
1713
1773
|
|
|
1714
1774
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
@@ -1717,40 +1777,40 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
1717
1777
|
return s.useEffect(() => {
|
|
1718
1778
|
e && (document.getElementById(e) || console.error(n));
|
|
1719
1779
|
}, [n, e]), null;
|
|
1720
|
-
},
|
|
1721
|
-
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tr(
|
|
1780
|
+
}, Jc = "DialogDescriptionWarning", el = ({ contentRef: e, descriptionId: t }) => {
|
|
1781
|
+
const o = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${tr(Jc).contentName}}.`;
|
|
1722
1782
|
return s.useEffect(() => {
|
|
1723
1783
|
const r = e.current?.getAttribute("aria-describedby");
|
|
1724
1784
|
t && r && (document.getElementById(t) || console.warn(o));
|
|
1725
1785
|
}, [o, e, t]), null;
|
|
1726
|
-
},
|
|
1727
|
-
const
|
|
1728
|
-
dialogOverlay:
|
|
1729
|
-
dialogContent:
|
|
1730
|
-
dialogCloseButton:
|
|
1731
|
-
dialogTitle:
|
|
1732
|
-
},
|
|
1733
|
-
/* @__PURE__ */ p(
|
|
1734
|
-
/* @__PURE__ */
|
|
1735
|
-
/* @__PURE__ */ p(
|
|
1736
|
-
/* @__PURE__ */
|
|
1737
|
-
|
|
1786
|
+
}, tl = Vo, nl = Uo, ol = jo, rl = zo, sl = Yo, il = qo, al = Jo;
|
|
1787
|
+
const cl = "_dialogOverlay_1qzfk_1", ll = "_dialogContent_1qzfk_20", ul = "_dialogCloseButton_1qzfk_65", dl = "_dialogTitle_1qzfk_72", at = {
|
|
1788
|
+
dialogOverlay: cl,
|
|
1789
|
+
dialogContent: ll,
|
|
1790
|
+
dialogCloseButton: ul,
|
|
1791
|
+
dialogTitle: dl
|
|
1792
|
+
}, Rp = ["sm", "md", "lg"], Sp = ({ trigger: e, children: t, title: n, size: o = "md", ...r }) => /* @__PURE__ */ G(tl, { ...r, children: [
|
|
1793
|
+
/* @__PURE__ */ p(nl, { asChild: !0, children: e }),
|
|
1794
|
+
/* @__PURE__ */ G(ol, { children: [
|
|
1795
|
+
/* @__PURE__ */ p(rl, { className: `${at.dialogOverlay}` }),
|
|
1796
|
+
/* @__PURE__ */ G(
|
|
1797
|
+
sl,
|
|
1738
1798
|
{
|
|
1739
1799
|
className: at.dialogContent,
|
|
1740
|
-
|
|
1741
|
-
|
|
1800
|
+
"data-size": o,
|
|
1801
|
+
onPointerDownOutside: (i) => {
|
|
1802
|
+
i?.preventDefault();
|
|
1742
1803
|
},
|
|
1743
|
-
"data-size": "md",
|
|
1744
1804
|
children: [
|
|
1745
|
-
/* @__PURE__ */ p(
|
|
1746
|
-
/* @__PURE__ */ p(
|
|
1805
|
+
/* @__PURE__ */ p(al, { asChild: !0, children: /* @__PURE__ */ p(ln, { className: `${at.dialogCloseButton}`, variant: "tertiary", iconOnly: !0, children: /* @__PURE__ */ p(ho, {}) }) }),
|
|
1806
|
+
/* @__PURE__ */ p(il, { className: at.dialogTitle, children: n }),
|
|
1747
1807
|
t
|
|
1748
1808
|
]
|
|
1749
1809
|
}
|
|
1750
1810
|
)
|
|
1751
1811
|
] })
|
|
1752
1812
|
] });
|
|
1753
|
-
function
|
|
1813
|
+
function gn(e) {
|
|
1754
1814
|
const t = e + "CollectionProvider", [n, o] = fe(t), [r, i] = n(
|
|
1755
1815
|
t,
|
|
1756
1816
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -1761,15 +1821,15 @@ function vn(e) {
|
|
|
1761
1821
|
a.displayName = t;
|
|
1762
1822
|
const c = e + "CollectionSlot", d = /* @__PURE__ */ We(c), l = ye.forwardRef(
|
|
1763
1823
|
(m, g) => {
|
|
1764
|
-
const { scope: y, children: b } = m, C = i(c, y), E =
|
|
1824
|
+
const { scope: y, children: b } = m, C = i(c, y), E = V(g, C.collectionRef);
|
|
1765
1825
|
return /* @__PURE__ */ p(d, { ref: E, children: b });
|
|
1766
1826
|
}
|
|
1767
1827
|
);
|
|
1768
1828
|
l.displayName = c;
|
|
1769
1829
|
const u = e + "CollectionItemSlot", f = "data-radix-collection-item", h = /* @__PURE__ */ We(u), v = ye.forwardRef(
|
|
1770
1830
|
(m, g) => {
|
|
1771
|
-
const { scope: y, children: b, ...C } = m, E = ye.useRef(null), x =
|
|
1772
|
-
return ye.useEffect(() => (
|
|
1831
|
+
const { scope: y, children: b, ...C } = m, E = ye.useRef(null), x = V(g, E), S = i(u, y);
|
|
1832
|
+
return ye.useEffect(() => (S.itemMap.set(E, { ref: E, ...C }), () => void S.itemMap.delete(E))), /* @__PURE__ */ p(h, { [f]: "", ref: x, children: b });
|
|
1773
1833
|
}
|
|
1774
1834
|
);
|
|
1775
1835
|
v.displayName = u;
|
|
@@ -1780,7 +1840,7 @@ function vn(e) {
|
|
|
1780
1840
|
if (!b) return [];
|
|
1781
1841
|
const C = Array.from(b.querySelectorAll(`[${f}]`));
|
|
1782
1842
|
return Array.from(g.itemMap.values()).sort(
|
|
1783
|
-
(
|
|
1843
|
+
(S, R) => C.indexOf(S.ref.current) - C.indexOf(R.ref.current)
|
|
1784
1844
|
);
|
|
1785
1845
|
}, [g.collectionRef, g.itemMap]);
|
|
1786
1846
|
}
|
|
@@ -1790,25 +1850,25 @@ function vn(e) {
|
|
|
1790
1850
|
o
|
|
1791
1851
|
];
|
|
1792
1852
|
}
|
|
1793
|
-
var
|
|
1853
|
+
var fl = s.createContext(void 0);
|
|
1794
1854
|
function nr(e) {
|
|
1795
|
-
const t = s.useContext(
|
|
1855
|
+
const t = s.useContext(fl);
|
|
1796
1856
|
return e || t || "ltr";
|
|
1797
1857
|
}
|
|
1798
|
-
const
|
|
1858
|
+
const pl = ["top", "right", "bottom", "left"], ve = Math.min, z = Math.max, mt = Math.round, ct = Math.floor, ie = (e) => ({
|
|
1799
1859
|
x: e,
|
|
1800
1860
|
y: e
|
|
1801
|
-
}),
|
|
1861
|
+
}), ml = {
|
|
1802
1862
|
left: "right",
|
|
1803
1863
|
right: "left",
|
|
1804
1864
|
bottom: "top",
|
|
1805
1865
|
top: "bottom"
|
|
1806
|
-
},
|
|
1866
|
+
}, hl = {
|
|
1807
1867
|
start: "end",
|
|
1808
1868
|
end: "start"
|
|
1809
1869
|
};
|
|
1810
|
-
function
|
|
1811
|
-
return
|
|
1870
|
+
function qt(e, t, n) {
|
|
1871
|
+
return z(e, ve(t, n));
|
|
1812
1872
|
}
|
|
1813
1873
|
function ue(e, t) {
|
|
1814
1874
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -1816,57 +1876,57 @@ function ue(e, t) {
|
|
|
1816
1876
|
function de(e) {
|
|
1817
1877
|
return e.split("-")[0];
|
|
1818
1878
|
}
|
|
1819
|
-
function
|
|
1879
|
+
function Ie(e) {
|
|
1820
1880
|
return e.split("-")[1];
|
|
1821
1881
|
}
|
|
1822
|
-
function
|
|
1882
|
+
function wn(e) {
|
|
1823
1883
|
return e === "x" ? "y" : "x";
|
|
1824
1884
|
}
|
|
1825
|
-
function
|
|
1885
|
+
function yn(e) {
|
|
1826
1886
|
return e === "y" ? "height" : "width";
|
|
1827
1887
|
}
|
|
1828
|
-
const
|
|
1829
|
-
function
|
|
1830
|
-
return
|
|
1888
|
+
const vl = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
1889
|
+
function se(e) {
|
|
1890
|
+
return vl.has(de(e)) ? "y" : "x";
|
|
1831
1891
|
}
|
|
1832
|
-
function
|
|
1833
|
-
return
|
|
1892
|
+
function bn(e) {
|
|
1893
|
+
return wn(se(e));
|
|
1834
1894
|
}
|
|
1835
|
-
function
|
|
1895
|
+
function gl(e, t, n) {
|
|
1836
1896
|
n === void 0 && (n = !1);
|
|
1837
|
-
const o =
|
|
1897
|
+
const o = Ie(e), r = bn(e), i = yn(r);
|
|
1838
1898
|
let a = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
1839
1899
|
return t.reference[i] > t.floating[i] && (a = ht(a)), [a, ht(a)];
|
|
1840
1900
|
}
|
|
1841
|
-
function
|
|
1901
|
+
function wl(e) {
|
|
1842
1902
|
const t = ht(e);
|
|
1843
|
-
return [
|
|
1903
|
+
return [Zt(e), t, Zt(t)];
|
|
1844
1904
|
}
|
|
1845
|
-
function
|
|
1846
|
-
return e.replace(/start|end/g, (t) =>
|
|
1905
|
+
function Zt(e) {
|
|
1906
|
+
return e.replace(/start|end/g, (t) => hl[t]);
|
|
1847
1907
|
}
|
|
1848
|
-
const Jn = ["left", "right"], eo = ["right", "left"],
|
|
1849
|
-
function
|
|
1908
|
+
const Jn = ["left", "right"], eo = ["right", "left"], yl = ["top", "bottom"], bl = ["bottom", "top"];
|
|
1909
|
+
function Cl(e, t, n) {
|
|
1850
1910
|
switch (e) {
|
|
1851
1911
|
case "top":
|
|
1852
1912
|
case "bottom":
|
|
1853
1913
|
return n ? t ? eo : Jn : t ? Jn : eo;
|
|
1854
1914
|
case "left":
|
|
1855
1915
|
case "right":
|
|
1856
|
-
return t ?
|
|
1916
|
+
return t ? yl : bl;
|
|
1857
1917
|
default:
|
|
1858
1918
|
return [];
|
|
1859
1919
|
}
|
|
1860
1920
|
}
|
|
1861
|
-
function
|
|
1862
|
-
const r =
|
|
1863
|
-
let i =
|
|
1864
|
-
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(
|
|
1921
|
+
function El(e, t, n, o) {
|
|
1922
|
+
const r = Ie(e);
|
|
1923
|
+
let i = Cl(de(e), n === "start", o);
|
|
1924
|
+
return r && (i = i.map((a) => a + "-" + r), t && (i = i.concat(i.map(Zt)))), i;
|
|
1865
1925
|
}
|
|
1866
1926
|
function ht(e) {
|
|
1867
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
1927
|
+
return e.replace(/left|right|bottom|top/g, (t) => ml[t]);
|
|
1868
1928
|
}
|
|
1869
|
-
function
|
|
1929
|
+
function xl(e) {
|
|
1870
1930
|
return {
|
|
1871
1931
|
top: 0,
|
|
1872
1932
|
right: 0,
|
|
@@ -1876,7 +1936,7 @@ function Vc(e) {
|
|
|
1876
1936
|
};
|
|
1877
1937
|
}
|
|
1878
1938
|
function or(e) {
|
|
1879
|
-
return typeof e != "number" ?
|
|
1939
|
+
return typeof e != "number" ? xl(e) : {
|
|
1880
1940
|
top: e,
|
|
1881
1941
|
right: e,
|
|
1882
1942
|
bottom: e,
|
|
@@ -1906,7 +1966,7 @@ function to(e, t, n) {
|
|
|
1906
1966
|
reference: o,
|
|
1907
1967
|
floating: r
|
|
1908
1968
|
} = e;
|
|
1909
|
-
const i =
|
|
1969
|
+
const i = se(t), a = bn(t), c = yn(a), d = de(t), l = i === "y", u = o.x + o.width / 2 - r.width / 2, f = o.y + o.height / 2 - r.height / 2, h = o[c] / 2 - r[c] / 2;
|
|
1910
1970
|
let v;
|
|
1911
1971
|
switch (d) {
|
|
1912
1972
|
case "top":
|
|
@@ -1939,7 +1999,7 @@ function to(e, t, n) {
|
|
|
1939
1999
|
y: o.y
|
|
1940
2000
|
};
|
|
1941
2001
|
}
|
|
1942
|
-
switch (
|
|
2002
|
+
switch (Ie(t)) {
|
|
1943
2003
|
case "start":
|
|
1944
2004
|
v[a] -= h * (n && l ? -1 : 1);
|
|
1945
2005
|
break;
|
|
@@ -1949,7 +2009,7 @@ function to(e, t, n) {
|
|
|
1949
2009
|
}
|
|
1950
2010
|
return v;
|
|
1951
2011
|
}
|
|
1952
|
-
const
|
|
2012
|
+
const Rl = async (e, t, n) => {
|
|
1953
2013
|
const {
|
|
1954
2014
|
placement: o = "bottom",
|
|
1955
2015
|
strategy: r = "absolute",
|
|
@@ -2055,7 +2115,7 @@ async function He(e, t) {
|
|
|
2055
2115
|
right: (x.right - y.right + w.right) / E.x
|
|
2056
2116
|
};
|
|
2057
2117
|
}
|
|
2058
|
-
const
|
|
2118
|
+
const Sl = (e) => ({
|
|
2059
2119
|
name: "arrow",
|
|
2060
2120
|
options: e,
|
|
2061
2121
|
async fn(t) {
|
|
@@ -2076,23 +2136,23 @@ const Uc = (e) => ({
|
|
|
2076
2136
|
const f = or(u), h = {
|
|
2077
2137
|
x: n,
|
|
2078
2138
|
y: o
|
|
2079
|
-
}, v =
|
|
2080
|
-
let R =
|
|
2081
|
-
(!R || !await (a.isElement == null ? void 0 : a.isElement(
|
|
2082
|
-
const M = E / 2 - x / 2,
|
|
2139
|
+
}, v = bn(r), w = yn(v), m = await a.getDimensions(l), g = v === "y", y = g ? "top" : "left", b = g ? "bottom" : "right", C = g ? "clientHeight" : "clientWidth", E = i.reference[w] + i.reference[v] - h[v] - i.floating[w], x = h[v] - i.reference[v], S = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(l));
|
|
2140
|
+
let R = S ? S[C] : 0;
|
|
2141
|
+
(!R || !await (a.isElement == null ? void 0 : a.isElement(S))) && (R = c.floating[C] || i.floating[w]);
|
|
2142
|
+
const M = E / 2 - x / 2, D = R / 2 - m[w] / 2 - 1, O = ve(f[y], D), L = ve(f[b], D), H = O, $ = R - m[w] - L, P = R / 2 - m[w] / 2 + M, B = qt(H, P, $), k = !d.arrow && Ie(r) != null && P !== B && i.reference[w] / 2 - (P < H ? O : L) - m[w] / 2 < 0, W = k ? P < H ? P - H : P - $ : 0;
|
|
2083
2143
|
return {
|
|
2084
|
-
[v]: h[v] +
|
|
2144
|
+
[v]: h[v] + W,
|
|
2085
2145
|
data: {
|
|
2086
|
-
[v]:
|
|
2087
|
-
centerOffset: P -
|
|
2088
|
-
...
|
|
2089
|
-
alignmentOffset:
|
|
2146
|
+
[v]: B,
|
|
2147
|
+
centerOffset: P - B - W,
|
|
2148
|
+
...k && {
|
|
2149
|
+
alignmentOffset: W
|
|
2090
2150
|
}
|
|
2091
2151
|
},
|
|
2092
|
-
reset:
|
|
2152
|
+
reset: k
|
|
2093
2153
|
};
|
|
2094
2154
|
}
|
|
2095
|
-
}),
|
|
2155
|
+
}), Tl = function(e) {
|
|
2096
2156
|
return e === void 0 && (e = {}), {
|
|
2097
2157
|
name: "flip",
|
|
2098
2158
|
options: e,
|
|
@@ -2116,57 +2176,57 @@ const Uc = (e) => ({
|
|
|
2116
2176
|
} = ue(e, t);
|
|
2117
2177
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
2118
2178
|
return {};
|
|
2119
|
-
const y = de(r), b =
|
|
2120
|
-
!h &&
|
|
2121
|
-
const R = [c, ...x], M = await He(t, g),
|
|
2122
|
-
let
|
|
2123
|
-
if (u &&
|
|
2124
|
-
const P =
|
|
2125
|
-
|
|
2179
|
+
const y = de(r), b = se(c), C = de(c) === c, E = await (d.isRTL == null ? void 0 : d.isRTL(l.floating)), x = h || (C || !m ? [ht(c)] : wl(c)), S = w !== "none";
|
|
2180
|
+
!h && S && x.push(...El(c, m, w, E));
|
|
2181
|
+
const R = [c, ...x], M = await He(t, g), D = [];
|
|
2182
|
+
let O = ((o = i.flip) == null ? void 0 : o.overflows) || [];
|
|
2183
|
+
if (u && D.push(M[y]), f) {
|
|
2184
|
+
const P = gl(r, a, E);
|
|
2185
|
+
D.push(M[P[0]], M[P[1]]);
|
|
2126
2186
|
}
|
|
2127
|
-
if (
|
|
2187
|
+
if (O = [...O, {
|
|
2128
2188
|
placement: r,
|
|
2129
|
-
overflows:
|
|
2130
|
-
}], !
|
|
2131
|
-
var
|
|
2132
|
-
const P = (((
|
|
2133
|
-
if (
|
|
2189
|
+
overflows: D
|
|
2190
|
+
}], !D.every((P) => P <= 0)) {
|
|
2191
|
+
var L, H;
|
|
2192
|
+
const P = (((L = i.flip) == null ? void 0 : L.index) || 0) + 1, B = R[P];
|
|
2193
|
+
if (B && (!(f === "alignment" ? b !== se(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2134
2194
|
// overflows the main axis.
|
|
2135
|
-
|
|
2195
|
+
O.every((A) => se(A.placement) === b ? A.overflows[0] > 0 : !0)))
|
|
2136
2196
|
return {
|
|
2137
2197
|
data: {
|
|
2138
2198
|
index: P,
|
|
2139
|
-
overflows:
|
|
2199
|
+
overflows: O
|
|
2140
2200
|
},
|
|
2141
2201
|
reset: {
|
|
2142
|
-
placement:
|
|
2202
|
+
placement: B
|
|
2143
2203
|
}
|
|
2144
2204
|
};
|
|
2145
|
-
let
|
|
2146
|
-
if (!
|
|
2205
|
+
let k = (H = O.filter((W) => W.overflows[0] <= 0).sort((W, A) => W.overflows[1] - A.overflows[1])[0]) == null ? void 0 : H.placement;
|
|
2206
|
+
if (!k)
|
|
2147
2207
|
switch (v) {
|
|
2148
2208
|
case "bestFit": {
|
|
2149
|
-
var
|
|
2150
|
-
const
|
|
2151
|
-
if (
|
|
2152
|
-
const
|
|
2153
|
-
return
|
|
2209
|
+
var $;
|
|
2210
|
+
const W = ($ = O.filter((A) => {
|
|
2211
|
+
if (S) {
|
|
2212
|
+
const T = se(A.placement);
|
|
2213
|
+
return T === b || // Create a bias to the `y` side axis due to horizontal
|
|
2154
2214
|
// reading directions favoring greater width.
|
|
2155
|
-
|
|
2215
|
+
T === "y";
|
|
2156
2216
|
}
|
|
2157
2217
|
return !0;
|
|
2158
|
-
}).map((A) => [A.placement, A.overflows.filter((
|
|
2159
|
-
|
|
2218
|
+
}).map((A) => [A.placement, A.overflows.filter((T) => T > 0).reduce((T, K) => T + K, 0)]).sort((A, T) => A[1] - T[1])[0]) == null ? void 0 : $[0];
|
|
2219
|
+
W && (k = W);
|
|
2160
2220
|
break;
|
|
2161
2221
|
}
|
|
2162
2222
|
case "initialPlacement":
|
|
2163
|
-
|
|
2223
|
+
k = c;
|
|
2164
2224
|
break;
|
|
2165
2225
|
}
|
|
2166
|
-
if (r !==
|
|
2226
|
+
if (r !== k)
|
|
2167
2227
|
return {
|
|
2168
2228
|
reset: {
|
|
2169
|
-
placement:
|
|
2229
|
+
placement: k
|
|
2170
2230
|
}
|
|
2171
2231
|
};
|
|
2172
2232
|
}
|
|
@@ -2183,9 +2243,9 @@ function no(e, t) {
|
|
|
2183
2243
|
};
|
|
2184
2244
|
}
|
|
2185
2245
|
function oo(e) {
|
|
2186
|
-
return
|
|
2246
|
+
return pl.some((t) => e[t] >= 0);
|
|
2187
2247
|
}
|
|
2188
|
-
const
|
|
2248
|
+
const Pl = function(e) {
|
|
2189
2249
|
return e === void 0 && (e = {}), {
|
|
2190
2250
|
name: "hide",
|
|
2191
2251
|
options: e,
|
|
@@ -2227,12 +2287,12 @@ const zc = function(e) {
|
|
|
2227
2287
|
}
|
|
2228
2288
|
};
|
|
2229
2289
|
}, rr = /* @__PURE__ */ new Set(["left", "top"]);
|
|
2230
|
-
async function
|
|
2290
|
+
async function _l(e, t) {
|
|
2231
2291
|
const {
|
|
2232
2292
|
placement: n,
|
|
2233
2293
|
platform: o,
|
|
2234
2294
|
elements: r
|
|
2235
|
-
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = de(n), c =
|
|
2295
|
+
} = e, i = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), a = de(n), c = Ie(n), d = se(n) === "y", l = rr.has(a) ? -1 : 1, u = i && d ? -1 : 1, f = ue(t, e);
|
|
2236
2296
|
let {
|
|
2237
2297
|
mainAxis: h,
|
|
2238
2298
|
crossAxis: v,
|
|
@@ -2254,7 +2314,7 @@ async function jc(e, t) {
|
|
|
2254
2314
|
y: v * u
|
|
2255
2315
|
};
|
|
2256
2316
|
}
|
|
2257
|
-
const
|
|
2317
|
+
const Ml = function(e) {
|
|
2258
2318
|
return e === void 0 && (e = 0), {
|
|
2259
2319
|
name: "offset",
|
|
2260
2320
|
options: e,
|
|
@@ -2265,7 +2325,7 @@ const Yc = function(e) {
|
|
|
2265
2325
|
y: i,
|
|
2266
2326
|
placement: a,
|
|
2267
2327
|
middlewareData: c
|
|
2268
|
-
} = t, d = await
|
|
2328
|
+
} = t, d = await _l(t, e);
|
|
2269
2329
|
return a === ((n = c.offset) == null ? void 0 : n.placement) && (o = c.arrow) != null && o.alignmentOffset ? {} : {
|
|
2270
2330
|
x: r + d.x,
|
|
2271
2331
|
y: i + d.y,
|
|
@@ -2276,7 +2336,7 @@ const Yc = function(e) {
|
|
|
2276
2336
|
};
|
|
2277
2337
|
}
|
|
2278
2338
|
};
|
|
2279
|
-
},
|
|
2339
|
+
}, Al = function(e) {
|
|
2280
2340
|
return e === void 0 && (e = {}), {
|
|
2281
2341
|
name: "shift",
|
|
2282
2342
|
options: e,
|
|
@@ -2304,15 +2364,15 @@ const Yc = function(e) {
|
|
|
2304
2364
|
} = ue(e, t), l = {
|
|
2305
2365
|
x: n,
|
|
2306
2366
|
y: o
|
|
2307
|
-
}, u = await He(t, d), f =
|
|
2367
|
+
}, u = await He(t, d), f = se(de(r)), h = wn(f);
|
|
2308
2368
|
let v = l[h], w = l[f];
|
|
2309
2369
|
if (i) {
|
|
2310
2370
|
const g = h === "y" ? "top" : "left", y = h === "y" ? "bottom" : "right", b = v + u[g], C = v - u[y];
|
|
2311
|
-
v =
|
|
2371
|
+
v = qt(b, v, C);
|
|
2312
2372
|
}
|
|
2313
2373
|
if (a) {
|
|
2314
2374
|
const g = f === "y" ? "top" : "left", y = f === "y" ? "bottom" : "right", b = w + u[g], C = w - u[y];
|
|
2315
|
-
w =
|
|
2375
|
+
w = qt(b, w, C);
|
|
2316
2376
|
}
|
|
2317
2377
|
const m = c.fn({
|
|
2318
2378
|
...t,
|
|
@@ -2332,7 +2392,7 @@ const Yc = function(e) {
|
|
|
2332
2392
|
};
|
|
2333
2393
|
}
|
|
2334
2394
|
};
|
|
2335
|
-
},
|
|
2395
|
+
}, kl = function(e) {
|
|
2336
2396
|
return e === void 0 && (e = {}), {
|
|
2337
2397
|
options: e,
|
|
2338
2398
|
fn(t) {
|
|
@@ -2349,7 +2409,7 @@ const Yc = function(e) {
|
|
|
2349
2409
|
} = ue(e, t), u = {
|
|
2350
2410
|
x: n,
|
|
2351
2411
|
y: o
|
|
2352
|
-
}, f =
|
|
2412
|
+
}, f = se(r), h = wn(f);
|
|
2353
2413
|
let v = u[h], w = u[f];
|
|
2354
2414
|
const m = ue(c, t), g = typeof m == "number" ? {
|
|
2355
2415
|
mainAxis: m,
|
|
@@ -2365,8 +2425,8 @@ const Yc = function(e) {
|
|
|
2365
2425
|
}
|
|
2366
2426
|
if (l) {
|
|
2367
2427
|
var y, b;
|
|
2368
|
-
const C = h === "y" ? "width" : "height", E = rr.has(de(r)), x = i.reference[f] - i.floating[C] + (E && ((y = a.offset) == null ? void 0 : y[f]) || 0) + (E ? 0 : g.crossAxis),
|
|
2369
|
-
w < x ? w = x : w >
|
|
2428
|
+
const C = h === "y" ? "width" : "height", E = rr.has(de(r)), x = i.reference[f] - i.floating[C] + (E && ((y = a.offset) == null ? void 0 : y[f]) || 0) + (E ? 0 : g.crossAxis), S = i.reference[f] + i.reference[C] + (E ? 0 : ((b = a.offset) == null ? void 0 : b[f]) || 0) - (E ? g.crossAxis : 0);
|
|
2429
|
+
w < x ? w = x : w > S && (w = S);
|
|
2370
2430
|
}
|
|
2371
2431
|
return {
|
|
2372
2432
|
[h]: v,
|
|
@@ -2374,7 +2434,7 @@ const Yc = function(e) {
|
|
|
2374
2434
|
};
|
|
2375
2435
|
}
|
|
2376
2436
|
};
|
|
2377
|
-
},
|
|
2437
|
+
}, Ol = function(e) {
|
|
2378
2438
|
return e === void 0 && (e = {}), {
|
|
2379
2439
|
name: "size",
|
|
2380
2440
|
options: e,
|
|
@@ -2389,25 +2449,25 @@ const Yc = function(e) {
|
|
|
2389
2449
|
apply: d = () => {
|
|
2390
2450
|
},
|
|
2391
2451
|
...l
|
|
2392
|
-
} = ue(e, t), u = await He(t, l), f = de(r), h =
|
|
2452
|
+
} = ue(e, t), u = await He(t, l), f = de(r), h = Ie(r), v = se(r) === "y", {
|
|
2393
2453
|
width: w,
|
|
2394
2454
|
height: m
|
|
2395
2455
|
} = i.floating;
|
|
2396
2456
|
let g, y;
|
|
2397
2457
|
f === "top" || f === "bottom" ? (g = f, y = h === (await (a.isRTL == null ? void 0 : a.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (y = f, g = h === "end" ? "top" : "bottom");
|
|
2398
|
-
const b = m - u.top - u.bottom, C = w - u.left - u.right, E = ve(m - u[g], b), x = ve(w - u[y], C),
|
|
2458
|
+
const b = m - u.top - u.bottom, C = w - u.left - u.right, E = ve(m - u[g], b), x = ve(w - u[y], C), S = !t.middlewareData.shift;
|
|
2399
2459
|
let R = E, M = x;
|
|
2400
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = C), (o = t.middlewareData.shift) != null && o.enabled.y && (R = b),
|
|
2401
|
-
const
|
|
2402
|
-
v ? M = w - 2 * (
|
|
2460
|
+
if ((n = t.middlewareData.shift) != null && n.enabled.x && (M = C), (o = t.middlewareData.shift) != null && o.enabled.y && (R = b), S && !h) {
|
|
2461
|
+
const O = z(u.left, 0), L = z(u.right, 0), H = z(u.top, 0), $ = z(u.bottom, 0);
|
|
2462
|
+
v ? M = w - 2 * (O !== 0 || L !== 0 ? O + L : z(u.left, u.right)) : R = m - 2 * (H !== 0 || $ !== 0 ? H + $ : z(u.top, u.bottom));
|
|
2403
2463
|
}
|
|
2404
2464
|
await d({
|
|
2405
2465
|
...t,
|
|
2406
2466
|
availableWidth: M,
|
|
2407
2467
|
availableHeight: R
|
|
2408
2468
|
});
|
|
2409
|
-
const
|
|
2410
|
-
return w !==
|
|
2469
|
+
const D = await a.getDimensions(c.floating);
|
|
2470
|
+
return w !== D.width || m !== D.height ? {
|
|
2411
2471
|
reset: {
|
|
2412
2472
|
rects: !0
|
|
2413
2473
|
}
|
|
@@ -2419,7 +2479,7 @@ function Rt() {
|
|
|
2419
2479
|
return typeof window < "u";
|
|
2420
2480
|
}
|
|
2421
2481
|
function Le(e) {
|
|
2422
|
-
return
|
|
2482
|
+
return sr(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2423
2483
|
}
|
|
2424
2484
|
function Y(e) {
|
|
2425
2485
|
var t;
|
|
@@ -2427,9 +2487,9 @@ function Y(e) {
|
|
|
2427
2487
|
}
|
|
2428
2488
|
function ce(e) {
|
|
2429
2489
|
var t;
|
|
2430
|
-
return (t = (
|
|
2490
|
+
return (t = (sr(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2431
2491
|
}
|
|
2432
|
-
function
|
|
2492
|
+
function sr(e) {
|
|
2433
2493
|
return Rt() ? e instanceof Node || e instanceof Y(e).Node : !1;
|
|
2434
2494
|
}
|
|
2435
2495
|
function ee(e) {
|
|
@@ -2441,7 +2501,7 @@ function ae(e) {
|
|
|
2441
2501
|
function ro(e) {
|
|
2442
2502
|
return !Rt() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Y(e).ShadowRoot;
|
|
2443
2503
|
}
|
|
2444
|
-
const
|
|
2504
|
+
const Dl = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2445
2505
|
function Ye(e) {
|
|
2446
2506
|
const {
|
|
2447
2507
|
overflow: t,
|
|
@@ -2449,15 +2509,15 @@ function Ye(e) {
|
|
|
2449
2509
|
overflowY: o,
|
|
2450
2510
|
display: r
|
|
2451
2511
|
} = te(e);
|
|
2452
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !
|
|
2512
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !Dl.has(r);
|
|
2453
2513
|
}
|
|
2454
|
-
const
|
|
2455
|
-
function
|
|
2456
|
-
return
|
|
2514
|
+
const Nl = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
2515
|
+
function Il(e) {
|
|
2516
|
+
return Nl.has(Le(e));
|
|
2457
2517
|
}
|
|
2458
|
-
const
|
|
2459
|
-
function
|
|
2460
|
-
return
|
|
2518
|
+
const Ll = [":popover-open", ":modal"];
|
|
2519
|
+
function St(e) {
|
|
2520
|
+
return Ll.some((t) => {
|
|
2461
2521
|
try {
|
|
2462
2522
|
return e.matches(t);
|
|
2463
2523
|
} catch {
|
|
@@ -2465,33 +2525,33 @@ function Tt(e) {
|
|
|
2465
2525
|
}
|
|
2466
2526
|
});
|
|
2467
2527
|
}
|
|
2468
|
-
const
|
|
2469
|
-
function
|
|
2470
|
-
const t =
|
|
2471
|
-
return
|
|
2528
|
+
const Fl = ["transform", "translate", "scale", "rotate", "perspective"], $l = ["transform", "translate", "scale", "rotate", "perspective", "filter"], Bl = ["paint", "layout", "strict", "content"];
|
|
2529
|
+
function Cn(e) {
|
|
2530
|
+
const t = En(), n = ee(e) ? te(e) : e;
|
|
2531
|
+
return Fl.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) || $l.some((o) => (n.willChange || "").includes(o)) || Bl.some((o) => (n.contain || "").includes(o));
|
|
2472
2532
|
}
|
|
2473
|
-
function
|
|
2533
|
+
function Wl(e) {
|
|
2474
2534
|
let t = ge(e);
|
|
2475
|
-
for (; ae(t) && !
|
|
2476
|
-
if (
|
|
2535
|
+
for (; ae(t) && !Oe(t); ) {
|
|
2536
|
+
if (Cn(t))
|
|
2477
2537
|
return t;
|
|
2478
|
-
if (
|
|
2538
|
+
if (St(t))
|
|
2479
2539
|
return null;
|
|
2480
2540
|
t = ge(t);
|
|
2481
2541
|
}
|
|
2482
2542
|
return null;
|
|
2483
2543
|
}
|
|
2484
|
-
function
|
|
2544
|
+
function En() {
|
|
2485
2545
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
2486
2546
|
}
|
|
2487
|
-
const
|
|
2488
|
-
function
|
|
2489
|
-
return
|
|
2547
|
+
const Hl = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
2548
|
+
function Oe(e) {
|
|
2549
|
+
return Hl.has(Le(e));
|
|
2490
2550
|
}
|
|
2491
2551
|
function te(e) {
|
|
2492
2552
|
return Y(e).getComputedStyle(e);
|
|
2493
2553
|
}
|
|
2494
|
-
function
|
|
2554
|
+
function Tt(e) {
|
|
2495
2555
|
return ee(e) ? {
|
|
2496
2556
|
scrollLeft: e.scrollLeft,
|
|
2497
2557
|
scrollTop: e.scrollTop
|
|
@@ -2512,21 +2572,21 @@ function ge(e) {
|
|
|
2512
2572
|
);
|
|
2513
2573
|
return ro(t) ? t.host : t;
|
|
2514
2574
|
}
|
|
2515
|
-
function
|
|
2575
|
+
function ir(e) {
|
|
2516
2576
|
const t = ge(e);
|
|
2517
|
-
return
|
|
2577
|
+
return Oe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ae(t) && Ye(t) ? t : ir(t);
|
|
2518
2578
|
}
|
|
2519
2579
|
function Ve(e, t, n) {
|
|
2520
2580
|
var o;
|
|
2521
2581
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2522
|
-
const r =
|
|
2582
|
+
const r = ir(e), i = r === ((o = e.ownerDocument) == null ? void 0 : o.body), a = Y(r);
|
|
2523
2583
|
if (i) {
|
|
2524
|
-
const c =
|
|
2584
|
+
const c = Qt(a);
|
|
2525
2585
|
return t.concat(a, a.visualViewport || [], Ye(r) ? r : [], c && n ? Ve(c) : []);
|
|
2526
2586
|
}
|
|
2527
2587
|
return t.concat(r, Ve(r, [], n));
|
|
2528
2588
|
}
|
|
2529
|
-
function
|
|
2589
|
+
function Qt(e) {
|
|
2530
2590
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
2531
2591
|
}
|
|
2532
2592
|
function ar(e) {
|
|
@@ -2539,13 +2599,13 @@ function ar(e) {
|
|
|
2539
2599
|
$: c
|
|
2540
2600
|
};
|
|
2541
2601
|
}
|
|
2542
|
-
function
|
|
2602
|
+
function xn(e) {
|
|
2543
2603
|
return ee(e) ? e : e.contextElement;
|
|
2544
2604
|
}
|
|
2545
|
-
function
|
|
2546
|
-
const t =
|
|
2605
|
+
function ke(e) {
|
|
2606
|
+
const t = xn(e);
|
|
2547
2607
|
if (!ae(t))
|
|
2548
|
-
return
|
|
2608
|
+
return ie(1);
|
|
2549
2609
|
const n = t.getBoundingClientRect(), {
|
|
2550
2610
|
width: o,
|
|
2551
2611
|
height: r,
|
|
@@ -2557,30 +2617,30 @@ function Oe(e) {
|
|
|
2557
2617
|
y: c
|
|
2558
2618
|
};
|
|
2559
2619
|
}
|
|
2560
|
-
const
|
|
2620
|
+
const Vl = /* @__PURE__ */ ie(0);
|
|
2561
2621
|
function cr(e) {
|
|
2562
2622
|
const t = Y(e);
|
|
2563
|
-
return !
|
|
2623
|
+
return !En() || !t.visualViewport ? Vl : {
|
|
2564
2624
|
x: t.visualViewport.offsetLeft,
|
|
2565
2625
|
y: t.visualViewport.offsetTop
|
|
2566
2626
|
};
|
|
2567
2627
|
}
|
|
2568
|
-
function
|
|
2628
|
+
function Kl(e, t, n) {
|
|
2569
2629
|
return t === void 0 && (t = !1), !n || t && n !== Y(e) ? !1 : t;
|
|
2570
2630
|
}
|
|
2571
2631
|
function xe(e, t, n, o) {
|
|
2572
2632
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
2573
|
-
const r = e.getBoundingClientRect(), i =
|
|
2574
|
-
let a =
|
|
2575
|
-
t && (o ? ee(o) && (a =
|
|
2576
|
-
const c =
|
|
2633
|
+
const r = e.getBoundingClientRect(), i = xn(e);
|
|
2634
|
+
let a = ie(1);
|
|
2635
|
+
t && (o ? ee(o) && (a = ke(o)) : a = ke(e));
|
|
2636
|
+
const c = Kl(i, n, o) ? cr(i) : ie(0);
|
|
2577
2637
|
let d = (r.left + c.x) / a.x, l = (r.top + c.y) / a.y, u = r.width / a.x, f = r.height / a.y;
|
|
2578
2638
|
if (i) {
|
|
2579
2639
|
const h = Y(i), v = o && ee(o) ? Y(o) : o;
|
|
2580
|
-
let w = h, m =
|
|
2640
|
+
let w = h, m = Qt(w);
|
|
2581
2641
|
for (; m && o && v !== w; ) {
|
|
2582
|
-
const g =
|
|
2583
|
-
d *= g.x, l *= g.y, u *= g.x, f *= g.y, d += C, l += E, w = Y(m), m =
|
|
2642
|
+
const g = ke(m), y = m.getBoundingClientRect(), b = te(m), C = y.left + (m.clientLeft + parseFloat(b.paddingLeft)) * g.x, E = y.top + (m.clientTop + parseFloat(b.paddingTop)) * g.y;
|
|
2643
|
+
d *= g.x, l *= g.y, u *= g.x, f *= g.y, d += C, l += E, w = Y(m), m = Qt(w);
|
|
2584
2644
|
}
|
|
2585
2645
|
}
|
|
2586
2646
|
return vt({
|
|
@@ -2591,7 +2651,7 @@ function xe(e, t, n, o) {
|
|
|
2591
2651
|
});
|
|
2592
2652
|
}
|
|
2593
2653
|
function Pt(e, t) {
|
|
2594
|
-
const n =
|
|
2654
|
+
const n = Tt(e).scrollLeft;
|
|
2595
2655
|
return t ? t.left + n : xe(ce(e)).left + n;
|
|
2596
2656
|
}
|
|
2597
2657
|
function lr(e, t) {
|
|
@@ -2601,26 +2661,26 @@ function lr(e, t) {
|
|
|
2601
2661
|
y: r
|
|
2602
2662
|
};
|
|
2603
2663
|
}
|
|
2604
|
-
function
|
|
2664
|
+
function Ul(e) {
|
|
2605
2665
|
let {
|
|
2606
2666
|
elements: t,
|
|
2607
2667
|
rect: n,
|
|
2608
2668
|
offsetParent: o,
|
|
2609
2669
|
strategy: r
|
|
2610
2670
|
} = e;
|
|
2611
|
-
const i = r === "fixed", a = ce(o), c = t ?
|
|
2671
|
+
const i = r === "fixed", a = ce(o), c = t ? St(t.floating) : !1;
|
|
2612
2672
|
if (o === a || c && i)
|
|
2613
2673
|
return n;
|
|
2614
2674
|
let d = {
|
|
2615
2675
|
scrollLeft: 0,
|
|
2616
2676
|
scrollTop: 0
|
|
2617
|
-
}, l =
|
|
2618
|
-
const u =
|
|
2619
|
-
if ((f || !f && !i) && ((Le(o) !== "body" || Ye(a)) && (d =
|
|
2677
|
+
}, l = ie(1);
|
|
2678
|
+
const u = ie(0), f = ae(o);
|
|
2679
|
+
if ((f || !f && !i) && ((Le(o) !== "body" || Ye(a)) && (d = Tt(o)), ae(o))) {
|
|
2620
2680
|
const v = xe(o);
|
|
2621
|
-
l =
|
|
2681
|
+
l = ke(o), u.x = v.x + o.clientLeft, u.y = v.y + o.clientTop;
|
|
2622
2682
|
}
|
|
2623
|
-
const h = a && !f && !i ? lr(a, d) :
|
|
2683
|
+
const h = a && !f && !i ? lr(a, d) : ie(0);
|
|
2624
2684
|
return {
|
|
2625
2685
|
width: n.width * l.x,
|
|
2626
2686
|
height: n.height * l.y,
|
|
@@ -2628,34 +2688,34 @@ function ll(e) {
|
|
|
2628
2688
|
y: n.y * l.y - d.scrollTop * l.y + u.y + h.y
|
|
2629
2689
|
};
|
|
2630
2690
|
}
|
|
2631
|
-
function
|
|
2691
|
+
function Gl(e) {
|
|
2632
2692
|
return Array.from(e.getClientRects());
|
|
2633
2693
|
}
|
|
2634
|
-
function
|
|
2635
|
-
const t = ce(e), n =
|
|
2694
|
+
function jl(e) {
|
|
2695
|
+
const t = ce(e), n = Tt(e), o = e.ownerDocument.body, r = z(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), i = z(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
2636
2696
|
let a = -n.scrollLeft + Pt(e);
|
|
2637
2697
|
const c = -n.scrollTop;
|
|
2638
|
-
return te(o).direction === "rtl" && (a +=
|
|
2698
|
+
return te(o).direction === "rtl" && (a += z(t.clientWidth, o.clientWidth) - r), {
|
|
2639
2699
|
width: r,
|
|
2640
2700
|
height: i,
|
|
2641
2701
|
x: a,
|
|
2642
2702
|
y: c
|
|
2643
2703
|
};
|
|
2644
2704
|
}
|
|
2645
|
-
const
|
|
2646
|
-
function
|
|
2705
|
+
const so = 25;
|
|
2706
|
+
function zl(e, t) {
|
|
2647
2707
|
const n = Y(e), o = ce(e), r = n.visualViewport;
|
|
2648
2708
|
let i = o.clientWidth, a = o.clientHeight, c = 0, d = 0;
|
|
2649
2709
|
if (r) {
|
|
2650
2710
|
i = r.width, a = r.height;
|
|
2651
|
-
const u =
|
|
2711
|
+
const u = En();
|
|
2652
2712
|
(!u || u && t === "fixed") && (c = r.offsetLeft, d = r.offsetTop);
|
|
2653
2713
|
}
|
|
2654
2714
|
const l = Pt(o);
|
|
2655
2715
|
if (l <= 0) {
|
|
2656
2716
|
const u = o.ownerDocument, f = u.body, h = getComputedStyle(f), v = u.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, w = Math.abs(o.clientWidth - f.clientWidth - v);
|
|
2657
|
-
w <=
|
|
2658
|
-
} else l <=
|
|
2717
|
+
w <= so && (i -= w);
|
|
2718
|
+
} else l <= so && (i += l);
|
|
2659
2719
|
return {
|
|
2660
2720
|
width: i,
|
|
2661
2721
|
height: a,
|
|
@@ -2663,9 +2723,9 @@ function fl(e, t) {
|
|
|
2663
2723
|
y: d
|
|
2664
2724
|
};
|
|
2665
2725
|
}
|
|
2666
|
-
const
|
|
2667
|
-
function
|
|
2668
|
-
const n = xe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = ae(e) ?
|
|
2726
|
+
const Yl = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
2727
|
+
function Xl(e, t) {
|
|
2728
|
+
const n = xe(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, i = ae(e) ? ke(e) : ie(1), a = e.clientWidth * i.x, c = e.clientHeight * i.y, d = r * i.x, l = o * i.y;
|
|
2669
2729
|
return {
|
|
2670
2730
|
width: a,
|
|
2671
2731
|
height: c,
|
|
@@ -2673,14 +2733,14 @@ function ml(e, t) {
|
|
|
2673
2733
|
y: l
|
|
2674
2734
|
};
|
|
2675
2735
|
}
|
|
2676
|
-
function
|
|
2736
|
+
function io(e, t, n) {
|
|
2677
2737
|
let o;
|
|
2678
2738
|
if (t === "viewport")
|
|
2679
|
-
o =
|
|
2739
|
+
o = zl(e, n);
|
|
2680
2740
|
else if (t === "document")
|
|
2681
|
-
o =
|
|
2741
|
+
o = jl(ce(e));
|
|
2682
2742
|
else if (ee(t))
|
|
2683
|
-
o =
|
|
2743
|
+
o = Xl(t, n);
|
|
2684
2744
|
else {
|
|
2685
2745
|
const r = cr(e);
|
|
2686
2746
|
o = {
|
|
@@ -2694,32 +2754,32 @@ function so(e, t, n) {
|
|
|
2694
2754
|
}
|
|
2695
2755
|
function ur(e, t) {
|
|
2696
2756
|
const n = ge(e);
|
|
2697
|
-
return n === t || !ee(n) ||
|
|
2757
|
+
return n === t || !ee(n) || Oe(n) ? !1 : te(n).position === "fixed" || ur(n, t);
|
|
2698
2758
|
}
|
|
2699
|
-
function
|
|
2759
|
+
function ql(e, t) {
|
|
2700
2760
|
const n = t.get(e);
|
|
2701
2761
|
if (n)
|
|
2702
2762
|
return n;
|
|
2703
2763
|
let o = Ve(e, [], !1).filter((c) => ee(c) && Le(c) !== "body"), r = null;
|
|
2704
2764
|
const i = te(e).position === "fixed";
|
|
2705
2765
|
let a = i ? ge(e) : e;
|
|
2706
|
-
for (; ee(a) && !
|
|
2707
|
-
const c = te(a), d =
|
|
2708
|
-
!d && c.position === "fixed" && (r = null), (i ? !d && !r : !d && c.position === "static" && !!r &&
|
|
2766
|
+
for (; ee(a) && !Oe(a); ) {
|
|
2767
|
+
const c = te(a), d = Cn(a);
|
|
2768
|
+
!d && c.position === "fixed" && (r = null), (i ? !d && !r : !d && c.position === "static" && !!r && Yl.has(r.position) || Ye(a) && !d && ur(e, a)) ? o = o.filter((u) => u !== a) : r = c, a = ge(a);
|
|
2709
2769
|
}
|
|
2710
2770
|
return t.set(e, o), o;
|
|
2711
2771
|
}
|
|
2712
|
-
function
|
|
2772
|
+
function Zl(e) {
|
|
2713
2773
|
let {
|
|
2714
2774
|
element: t,
|
|
2715
2775
|
boundary: n,
|
|
2716
2776
|
rootBoundary: o,
|
|
2717
2777
|
strategy: r
|
|
2718
2778
|
} = e;
|
|
2719
|
-
const a = [...n === "clippingAncestors" ?
|
|
2720
|
-
const f =
|
|
2721
|
-
return l.top =
|
|
2722
|
-
},
|
|
2779
|
+
const a = [...n === "clippingAncestors" ? St(t) ? [] : ql(t, this._c) : [].concat(n), o], c = a[0], d = a.reduce((l, u) => {
|
|
2780
|
+
const f = io(t, u, r);
|
|
2781
|
+
return l.top = z(f.top, l.top), l.right = ve(f.right, l.right), l.bottom = ve(f.bottom, l.bottom), l.left = z(f.left, l.left), l;
|
|
2782
|
+
}, io(t, c, r));
|
|
2723
2783
|
return {
|
|
2724
2784
|
width: d.right - d.left,
|
|
2725
2785
|
height: d.bottom - d.top,
|
|
@@ -2727,7 +2787,7 @@ function vl(e) {
|
|
|
2727
2787
|
y: d.top
|
|
2728
2788
|
};
|
|
2729
2789
|
}
|
|
2730
|
-
function
|
|
2790
|
+
function Ql(e) {
|
|
2731
2791
|
const {
|
|
2732
2792
|
width: t,
|
|
2733
2793
|
height: n
|
|
@@ -2737,23 +2797,23 @@ function gl(e) {
|
|
|
2737
2797
|
height: n
|
|
2738
2798
|
};
|
|
2739
2799
|
}
|
|
2740
|
-
function
|
|
2800
|
+
function Jl(e, t, n) {
|
|
2741
2801
|
const o = ae(t), r = ce(t), i = n === "fixed", a = xe(e, !0, i, t);
|
|
2742
2802
|
let c = {
|
|
2743
2803
|
scrollLeft: 0,
|
|
2744
2804
|
scrollTop: 0
|
|
2745
2805
|
};
|
|
2746
|
-
const d =
|
|
2806
|
+
const d = ie(0);
|
|
2747
2807
|
function l() {
|
|
2748
2808
|
d.x = Pt(r);
|
|
2749
2809
|
}
|
|
2750
2810
|
if (o || !o && !i)
|
|
2751
|
-
if ((Le(t) !== "body" || Ye(r)) && (c =
|
|
2811
|
+
if ((Le(t) !== "body" || Ye(r)) && (c = Tt(t)), o) {
|
|
2752
2812
|
const v = xe(t, !0, i, t);
|
|
2753
2813
|
d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
|
|
2754
2814
|
} else r && l();
|
|
2755
2815
|
i && !o && r && l();
|
|
2756
|
-
const u = r && !o && !i ? lr(r, c) :
|
|
2816
|
+
const u = r && !o && !i ? lr(r, c) : ie(0), f = a.left + c.scrollLeft - d.x - u.x, h = a.top + c.scrollTop - d.y - u.y;
|
|
2757
2817
|
return {
|
|
2758
2818
|
x: f,
|
|
2759
2819
|
y: h,
|
|
@@ -2774,11 +2834,11 @@ function ao(e, t) {
|
|
|
2774
2834
|
}
|
|
2775
2835
|
function dr(e, t) {
|
|
2776
2836
|
const n = Y(e);
|
|
2777
|
-
if (
|
|
2837
|
+
if (St(e))
|
|
2778
2838
|
return n;
|
|
2779
2839
|
if (!ae(e)) {
|
|
2780
2840
|
let r = ge(e);
|
|
2781
|
-
for (; r && !
|
|
2841
|
+
for (; r && !Oe(r); ) {
|
|
2782
2842
|
if (ee(r) && !Kt(r))
|
|
2783
2843
|
return r;
|
|
2784
2844
|
r = ge(r);
|
|
@@ -2786,14 +2846,14 @@ function dr(e, t) {
|
|
|
2786
2846
|
return n;
|
|
2787
2847
|
}
|
|
2788
2848
|
let o = ao(e, t);
|
|
2789
|
-
for (; o &&
|
|
2849
|
+
for (; o && Il(o) && Kt(o); )
|
|
2790
2850
|
o = ao(o, t);
|
|
2791
|
-
return o &&
|
|
2851
|
+
return o && Oe(o) && Kt(o) && !Cn(o) ? n : o || Wl(e) || n;
|
|
2792
2852
|
}
|
|
2793
|
-
const
|
|
2853
|
+
const eu = async function(e) {
|
|
2794
2854
|
const t = this.getOffsetParent || dr, n = this.getDimensions, o = await n(e.floating);
|
|
2795
2855
|
return {
|
|
2796
|
-
reference:
|
|
2856
|
+
reference: Jl(e.reference, await t(e.floating), e.strategy),
|
|
2797
2857
|
floating: {
|
|
2798
2858
|
x: 0,
|
|
2799
2859
|
y: 0,
|
|
@@ -2802,25 +2862,25 @@ const yl = async function(e) {
|
|
|
2802
2862
|
}
|
|
2803
2863
|
};
|
|
2804
2864
|
};
|
|
2805
|
-
function
|
|
2865
|
+
function tu(e) {
|
|
2806
2866
|
return te(e).direction === "rtl";
|
|
2807
2867
|
}
|
|
2808
|
-
const
|
|
2809
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
2868
|
+
const nu = {
|
|
2869
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Ul,
|
|
2810
2870
|
getDocumentElement: ce,
|
|
2811
|
-
getClippingRect:
|
|
2871
|
+
getClippingRect: Zl,
|
|
2812
2872
|
getOffsetParent: dr,
|
|
2813
|
-
getElementRects:
|
|
2814
|
-
getClientRects:
|
|
2815
|
-
getDimensions:
|
|
2816
|
-
getScale:
|
|
2873
|
+
getElementRects: eu,
|
|
2874
|
+
getClientRects: Gl,
|
|
2875
|
+
getDimensions: Ql,
|
|
2876
|
+
getScale: ke,
|
|
2817
2877
|
isElement: ee,
|
|
2818
|
-
isRTL:
|
|
2878
|
+
isRTL: tu
|
|
2819
2879
|
};
|
|
2820
2880
|
function fr(e, t) {
|
|
2821
2881
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
2822
2882
|
}
|
|
2823
|
-
function
|
|
2883
|
+
function ou(e, t) {
|
|
2824
2884
|
let n = null, o;
|
|
2825
2885
|
const r = ce(e);
|
|
2826
2886
|
function i() {
|
|
@@ -2839,11 +2899,11 @@ function El(e, t) {
|
|
|
2839
2899
|
return;
|
|
2840
2900
|
const w = ct(f), m = ct(r.clientWidth - (u + h)), g = ct(r.clientHeight - (f + v)), y = ct(u), C = {
|
|
2841
2901
|
rootMargin: -w + "px " + -m + "px " + -g + "px " + -y + "px",
|
|
2842
|
-
threshold:
|
|
2902
|
+
threshold: z(0, ve(1, d)) || 1
|
|
2843
2903
|
};
|
|
2844
2904
|
let E = !0;
|
|
2845
|
-
function x(
|
|
2846
|
-
const R =
|
|
2905
|
+
function x(S) {
|
|
2906
|
+
const R = S[0].intersectionRatio;
|
|
2847
2907
|
if (R !== d) {
|
|
2848
2908
|
if (!E)
|
|
2849
2909
|
return a();
|
|
@@ -2866,7 +2926,7 @@ function El(e, t) {
|
|
|
2866
2926
|
}
|
|
2867
2927
|
return a(!0), i;
|
|
2868
2928
|
}
|
|
2869
|
-
function
|
|
2929
|
+
function ru(e, t, n, o) {
|
|
2870
2930
|
o === void 0 && (o = {});
|
|
2871
2931
|
const {
|
|
2872
2932
|
ancestorScroll: r = !0,
|
|
@@ -2874,13 +2934,13 @@ function xl(e, t, n, o) {
|
|
|
2874
2934
|
elementResize: a = typeof ResizeObserver == "function",
|
|
2875
2935
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
2876
2936
|
animationFrame: d = !1
|
|
2877
|
-
} = o, l =
|
|
2937
|
+
} = o, l = xn(e), u = r || i ? [...l ? Ve(l) : [], ...Ve(t)] : [];
|
|
2878
2938
|
u.forEach((y) => {
|
|
2879
2939
|
r && y.addEventListener("scroll", n, {
|
|
2880
2940
|
passive: !0
|
|
2881
2941
|
}), i && y.addEventListener("resize", n);
|
|
2882
2942
|
});
|
|
2883
|
-
const f = l && c ?
|
|
2943
|
+
const f = l && c ? ou(l, n) : null;
|
|
2884
2944
|
let h = -1, v = null;
|
|
2885
2945
|
a && (v = new ResizeObserver((y) => {
|
|
2886
2946
|
let [b] = y;
|
|
@@ -2902,21 +2962,21 @@ function xl(e, t, n, o) {
|
|
|
2902
2962
|
}), f?.(), (y = v) == null || y.disconnect(), v = null, d && cancelAnimationFrame(w);
|
|
2903
2963
|
};
|
|
2904
2964
|
}
|
|
2905
|
-
const
|
|
2965
|
+
const su = Ml, iu = Al, au = Tl, cu = Ol, lu = Pl, co = Sl, uu = kl, du = (e, t, n) => {
|
|
2906
2966
|
const o = /* @__PURE__ */ new Map(), r = {
|
|
2907
|
-
platform:
|
|
2967
|
+
platform: nu,
|
|
2908
2968
|
...n
|
|
2909
2969
|
}, i = {
|
|
2910
2970
|
...r.platform,
|
|
2911
2971
|
_c: o
|
|
2912
2972
|
};
|
|
2913
|
-
return
|
|
2973
|
+
return Rl(e, t, {
|
|
2914
2974
|
...r,
|
|
2915
2975
|
platform: i
|
|
2916
2976
|
});
|
|
2917
2977
|
};
|
|
2918
|
-
var
|
|
2919
|
-
}, ft =
|
|
2978
|
+
var fu = typeof document < "u", pu = function() {
|
|
2979
|
+
}, ft = fu ? Bs : pu;
|
|
2920
2980
|
function gt(e, t) {
|
|
2921
2981
|
if (e === t)
|
|
2922
2982
|
return !0;
|
|
@@ -2960,7 +3020,7 @@ function Ut(e) {
|
|
|
2960
3020
|
t.current = e;
|
|
2961
3021
|
}), t;
|
|
2962
3022
|
}
|
|
2963
|
-
function
|
|
3023
|
+
function mu(e) {
|
|
2964
3024
|
e === void 0 && (e = {});
|
|
2965
3025
|
const {
|
|
2966
3026
|
placement: t = "bottom",
|
|
@@ -2984,31 +3044,31 @@ function Nl(e) {
|
|
|
2984
3044
|
}), [h, v] = s.useState(o);
|
|
2985
3045
|
gt(h, o) || v(o);
|
|
2986
3046
|
const [w, m] = s.useState(null), [g, y] = s.useState(null), b = s.useCallback((A) => {
|
|
2987
|
-
A !==
|
|
3047
|
+
A !== S.current && (S.current = A, m(A));
|
|
2988
3048
|
}, []), C = s.useCallback((A) => {
|
|
2989
3049
|
A !== R.current && (R.current = A, y(A));
|
|
2990
|
-
}, []), E = i || w, x = a || g,
|
|
2991
|
-
if (!
|
|
3050
|
+
}, []), E = i || w, x = a || g, S = s.useRef(null), R = s.useRef(null), M = s.useRef(u), D = d != null, O = Ut(d), L = Ut(r), H = Ut(l), $ = s.useCallback(() => {
|
|
3051
|
+
if (!S.current || !R.current)
|
|
2992
3052
|
return;
|
|
2993
3053
|
const A = {
|
|
2994
3054
|
placement: t,
|
|
2995
3055
|
strategy: n,
|
|
2996
3056
|
middleware: h
|
|
2997
3057
|
};
|
|
2998
|
-
|
|
2999
|
-
const
|
|
3000
|
-
...
|
|
3058
|
+
L.current && (A.platform = L.current), du(S.current, R.current, A).then((T) => {
|
|
3059
|
+
const K = {
|
|
3060
|
+
...T,
|
|
3001
3061
|
// The floating element's position may be recomputed while it's closed
|
|
3002
3062
|
// but still mounted (such as when transitioning out). To ensure
|
|
3003
3063
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
3004
3064
|
// setting it to `true` when `open === false` (must be specified).
|
|
3005
|
-
isPositioned:
|
|
3065
|
+
isPositioned: H.current !== !1
|
|
3006
3066
|
};
|
|
3007
|
-
P.current && !gt(M.current,
|
|
3008
|
-
f(
|
|
3067
|
+
P.current && !gt(M.current, K) && (M.current = K, cn.flushSync(() => {
|
|
3068
|
+
f(K);
|
|
3009
3069
|
}));
|
|
3010
3070
|
});
|
|
3011
|
-
}, [h, t, n,
|
|
3071
|
+
}, [h, t, n, L, H]);
|
|
3012
3072
|
ft(() => {
|
|
3013
3073
|
l === !1 && M.current.isPositioned && (M.current.isPositioned = !1, f((A) => ({
|
|
3014
3074
|
...A,
|
|
@@ -3019,50 +3079,50 @@ function Nl(e) {
|
|
|
3019
3079
|
ft(() => (P.current = !0, () => {
|
|
3020
3080
|
P.current = !1;
|
|
3021
3081
|
}), []), ft(() => {
|
|
3022
|
-
if (E && (
|
|
3023
|
-
if (
|
|
3024
|
-
return
|
|
3025
|
-
|
|
3082
|
+
if (E && (S.current = E), x && (R.current = x), E && x) {
|
|
3083
|
+
if (O.current)
|
|
3084
|
+
return O.current(E, x, $);
|
|
3085
|
+
$();
|
|
3026
3086
|
}
|
|
3027
|
-
}, [E, x,
|
|
3028
|
-
const
|
|
3029
|
-
reference:
|
|
3087
|
+
}, [E, x, $, O, D]);
|
|
3088
|
+
const B = s.useMemo(() => ({
|
|
3089
|
+
reference: S,
|
|
3030
3090
|
floating: R,
|
|
3031
3091
|
setReference: b,
|
|
3032
3092
|
setFloating: C
|
|
3033
|
-
}), [b, C]),
|
|
3093
|
+
}), [b, C]), k = s.useMemo(() => ({
|
|
3034
3094
|
reference: E,
|
|
3035
3095
|
floating: x
|
|
3036
|
-
}), [E, x]),
|
|
3096
|
+
}), [E, x]), W = s.useMemo(() => {
|
|
3037
3097
|
const A = {
|
|
3038
3098
|
position: n,
|
|
3039
3099
|
left: 0,
|
|
3040
3100
|
top: 0
|
|
3041
3101
|
};
|
|
3042
|
-
if (!
|
|
3102
|
+
if (!k.floating)
|
|
3043
3103
|
return A;
|
|
3044
|
-
const
|
|
3104
|
+
const T = lo(k.floating, u.x), K = lo(k.floating, u.y);
|
|
3045
3105
|
return c ? {
|
|
3046
3106
|
...A,
|
|
3047
|
-
transform: "translate(" +
|
|
3048
|
-
...pr(
|
|
3107
|
+
transform: "translate(" + T + "px, " + K + "px)",
|
|
3108
|
+
...pr(k.floating) >= 1.5 && {
|
|
3049
3109
|
willChange: "transform"
|
|
3050
3110
|
}
|
|
3051
3111
|
} : {
|
|
3052
3112
|
position: n,
|
|
3053
|
-
left:
|
|
3054
|
-
top:
|
|
3113
|
+
left: T,
|
|
3114
|
+
top: K
|
|
3055
3115
|
};
|
|
3056
|
-
}, [n, c,
|
|
3116
|
+
}, [n, c, k.floating, u.x, u.y]);
|
|
3057
3117
|
return s.useMemo(() => ({
|
|
3058
3118
|
...u,
|
|
3059
|
-
update:
|
|
3060
|
-
refs:
|
|
3061
|
-
elements:
|
|
3062
|
-
floatingStyles:
|
|
3063
|
-
}), [u,
|
|
3119
|
+
update: $,
|
|
3120
|
+
refs: B,
|
|
3121
|
+
elements: k,
|
|
3122
|
+
floatingStyles: W
|
|
3123
|
+
}), [u, $, B, k, W]);
|
|
3064
3124
|
}
|
|
3065
|
-
const
|
|
3125
|
+
const hu = (e) => {
|
|
3066
3126
|
function t(n) {
|
|
3067
3127
|
return {}.hasOwnProperty.call(n, "current");
|
|
3068
3128
|
}
|
|
@@ -3083,29 +3143,29 @@ const Il = (e) => {
|
|
|
3083
3143
|
}).fn(n) : {};
|
|
3084
3144
|
}
|
|
3085
3145
|
};
|
|
3086
|
-
},
|
|
3087
|
-
...
|
|
3146
|
+
}, vu = (e, t) => ({
|
|
3147
|
+
...su(e),
|
|
3088
3148
|
options: [e, t]
|
|
3089
|
-
}),
|
|
3090
|
-
...
|
|
3149
|
+
}), gu = (e, t) => ({
|
|
3150
|
+
...iu(e),
|
|
3091
3151
|
options: [e, t]
|
|
3092
|
-
}),
|
|
3093
|
-
...
|
|
3152
|
+
}), wu = (e, t) => ({
|
|
3153
|
+
...uu(e),
|
|
3094
3154
|
options: [e, t]
|
|
3095
|
-
}),
|
|
3096
|
-
...
|
|
3155
|
+
}), yu = (e, t) => ({
|
|
3156
|
+
...au(e),
|
|
3097
3157
|
options: [e, t]
|
|
3098
|
-
}),
|
|
3099
|
-
...
|
|
3158
|
+
}), bu = (e, t) => ({
|
|
3159
|
+
...cu(e),
|
|
3100
3160
|
options: [e, t]
|
|
3101
|
-
}),
|
|
3102
|
-
...
|
|
3161
|
+
}), Cu = (e, t) => ({
|
|
3162
|
+
...lu(e),
|
|
3103
3163
|
options: [e, t]
|
|
3104
|
-
}),
|
|
3105
|
-
...
|
|
3164
|
+
}), Eu = (e, t) => ({
|
|
3165
|
+
...hu(e),
|
|
3106
3166
|
options: [e, t]
|
|
3107
3167
|
});
|
|
3108
|
-
var
|
|
3168
|
+
var xu = "Arrow", mr = s.forwardRef((e, t) => {
|
|
3109
3169
|
const { children: n, width: o = 10, height: r = 5, ...i } = e;
|
|
3110
3170
|
return /* @__PURE__ */ p(
|
|
3111
3171
|
I.svg,
|
|
@@ -3120,15 +3180,15 @@ var Vl = "Arrow", mr = s.forwardRef((e, t) => {
|
|
|
3120
3180
|
}
|
|
3121
3181
|
);
|
|
3122
3182
|
});
|
|
3123
|
-
mr.displayName =
|
|
3124
|
-
var
|
|
3183
|
+
mr.displayName = xu;
|
|
3184
|
+
var Ru = mr, Rn = "Popper", [hr, _t] = fe(Rn), [Su, vr] = hr(Rn), gr = (e) => {
|
|
3125
3185
|
const { __scopePopper: t, children: n } = e, [o, r] = s.useState(null);
|
|
3126
|
-
return /* @__PURE__ */ p(
|
|
3186
|
+
return /* @__PURE__ */ p(Su, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
3127
3187
|
};
|
|
3128
|
-
gr.displayName =
|
|
3188
|
+
gr.displayName = Rn;
|
|
3129
3189
|
var wr = "PopperAnchor", yr = s.forwardRef(
|
|
3130
3190
|
(e, t) => {
|
|
3131
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, i = vr(wr, n), a = s.useRef(null), c =
|
|
3191
|
+
const { __scopePopper: n, virtualRef: o, ...r } = e, i = vr(wr, n), a = s.useRef(null), c = V(t, a), d = s.useRef(null);
|
|
3132
3192
|
return s.useEffect(() => {
|
|
3133
3193
|
const l = d.current;
|
|
3134
3194
|
d.current = o?.current || a.current, l !== d.current && i.onAnchorChange(d.current);
|
|
@@ -3136,7 +3196,7 @@ var wr = "PopperAnchor", yr = s.forwardRef(
|
|
|
3136
3196
|
}
|
|
3137
3197
|
);
|
|
3138
3198
|
yr.displayName = wr;
|
|
3139
|
-
var
|
|
3199
|
+
var Sn = "PopperContent", [Tu, Pu] = hr(Sn), br = s.forwardRef(
|
|
3140
3200
|
(e, t) => {
|
|
3141
3201
|
const {
|
|
3142
3202
|
__scopePopper: n,
|
|
@@ -3153,45 +3213,45 @@ var Rn = "PopperContent", [Gl, zl] = hr(Rn), br = s.forwardRef(
|
|
|
3153
3213
|
updatePositionStrategy: v = "optimized",
|
|
3154
3214
|
onPlaced: w,
|
|
3155
3215
|
...m
|
|
3156
|
-
} = e, g = vr(
|
|
3157
|
-
padding:
|
|
3158
|
-
boundary:
|
|
3216
|
+
} = e, g = vr(Sn, n), [y, b] = s.useState(null), C = V(t, (U) => b(U)), [E, x] = s.useState(null), S = go(E), R = S?.width ?? 0, M = S?.height ?? 0, D = o + (i !== "center" ? "-" + i : ""), O = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, L = Array.isArray(l) ? l : [l], H = L.length > 0, $ = {
|
|
3217
|
+
padding: O,
|
|
3218
|
+
boundary: L.filter(Mu),
|
|
3159
3219
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
3160
|
-
altBoundary:
|
|
3161
|
-
}, { refs: P, floatingStyles:
|
|
3220
|
+
altBoundary: H
|
|
3221
|
+
}, { refs: P, floatingStyles: B, placement: k, isPositioned: W, middlewareData: A } = mu({
|
|
3162
3222
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
3163
3223
|
strategy: "fixed",
|
|
3164
|
-
placement:
|
|
3165
|
-
whileElementsMounted: (...
|
|
3224
|
+
placement: D,
|
|
3225
|
+
whileElementsMounted: (...U) => ru(...U, {
|
|
3166
3226
|
animationFrame: v === "always"
|
|
3167
3227
|
}),
|
|
3168
3228
|
elements: {
|
|
3169
3229
|
reference: g.anchor
|
|
3170
3230
|
},
|
|
3171
3231
|
middleware: [
|
|
3172
|
-
|
|
3173
|
-
d &&
|
|
3232
|
+
vu({ mainAxis: r + M, alignmentAxis: a }),
|
|
3233
|
+
d && gu({
|
|
3174
3234
|
mainAxis: !0,
|
|
3175
3235
|
crossAxis: !1,
|
|
3176
|
-
limiter: f === "partial" ?
|
|
3177
|
-
|
|
3236
|
+
limiter: f === "partial" ? wu() : void 0,
|
|
3237
|
+
...$
|
|
3178
3238
|
}),
|
|
3179
|
-
d &&
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
apply: ({ elements:
|
|
3183
|
-
const { width:
|
|
3184
|
-
tt.setProperty("--radix-popper-available-width", `${
|
|
3239
|
+
d && yu({ ...$ }),
|
|
3240
|
+
bu({
|
|
3241
|
+
...$,
|
|
3242
|
+
apply: ({ elements: U, rects: Fe, availableWidth: Ns, availableHeight: Is }) => {
|
|
3243
|
+
const { width: Ls, height: Fs } = Fe.reference, tt = U.floating.style;
|
|
3244
|
+
tt.setProperty("--radix-popper-available-width", `${Ns}px`), tt.setProperty("--radix-popper-available-height", `${Is}px`), tt.setProperty("--radix-popper-anchor-width", `${Ls}px`), tt.setProperty("--radix-popper-anchor-height", `${Fs}px`);
|
|
3185
3245
|
}
|
|
3186
3246
|
}),
|
|
3187
|
-
E &&
|
|
3188
|
-
|
|
3189
|
-
h &&
|
|
3247
|
+
E && Eu({ element: E, padding: c }),
|
|
3248
|
+
Au({ arrowWidth: R, arrowHeight: M }),
|
|
3249
|
+
h && Cu({ strategy: "referenceHidden", ...$ })
|
|
3190
3250
|
]
|
|
3191
|
-
}), [
|
|
3251
|
+
}), [T, K] = xr(k), q = X(w);
|
|
3192
3252
|
le(() => {
|
|
3193
|
-
|
|
3194
|
-
}, [
|
|
3253
|
+
W && q?.();
|
|
3254
|
+
}, [W, q]);
|
|
3195
3255
|
const J = A.arrow?.x, oe = A.arrow?.y, pe = A.arrow?.centerOffset !== 0, [et, we] = s.useState();
|
|
3196
3256
|
return le(() => {
|
|
3197
3257
|
y && we(window.getComputedStyle(y).zIndex);
|
|
@@ -3201,8 +3261,8 @@ var Rn = "PopperContent", [Gl, zl] = hr(Rn), br = s.forwardRef(
|
|
|
3201
3261
|
ref: P.setFloating,
|
|
3202
3262
|
"data-radix-popper-content-wrapper": "",
|
|
3203
3263
|
style: {
|
|
3204
|
-
...
|
|
3205
|
-
transform:
|
|
3264
|
+
...B,
|
|
3265
|
+
transform: W ? B.transform : "translate(0, -200%)",
|
|
3206
3266
|
// keep off the page when measuring
|
|
3207
3267
|
minWidth: "max-content",
|
|
3208
3268
|
zIndex: et,
|
|
@@ -3220,10 +3280,10 @@ var Rn = "PopperContent", [Gl, zl] = hr(Rn), br = s.forwardRef(
|
|
|
3220
3280
|
},
|
|
3221
3281
|
dir: e.dir,
|
|
3222
3282
|
children: /* @__PURE__ */ p(
|
|
3223
|
-
|
|
3283
|
+
Tu,
|
|
3224
3284
|
{
|
|
3225
3285
|
scope: n,
|
|
3226
|
-
placedSide:
|
|
3286
|
+
placedSide: T,
|
|
3227
3287
|
onArrowChange: x,
|
|
3228
3288
|
arrowX: J,
|
|
3229
3289
|
arrowY: oe,
|
|
@@ -3231,15 +3291,15 @@ var Rn = "PopperContent", [Gl, zl] = hr(Rn), br = s.forwardRef(
|
|
|
3231
3291
|
children: /* @__PURE__ */ p(
|
|
3232
3292
|
I.div,
|
|
3233
3293
|
{
|
|
3234
|
-
"data-side":
|
|
3235
|
-
"data-align":
|
|
3294
|
+
"data-side": T,
|
|
3295
|
+
"data-align": K,
|
|
3236
3296
|
...m,
|
|
3237
3297
|
ref: C,
|
|
3238
3298
|
style: {
|
|
3239
3299
|
...m.style,
|
|
3240
3300
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
3241
3301
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
3242
|
-
animation:
|
|
3302
|
+
animation: W ? void 0 : "none"
|
|
3243
3303
|
}
|
|
3244
3304
|
}
|
|
3245
3305
|
)
|
|
@@ -3249,14 +3309,14 @@ var Rn = "PopperContent", [Gl, zl] = hr(Rn), br = s.forwardRef(
|
|
|
3249
3309
|
);
|
|
3250
3310
|
}
|
|
3251
3311
|
);
|
|
3252
|
-
br.displayName =
|
|
3253
|
-
var Cr = "PopperArrow",
|
|
3312
|
+
br.displayName = Sn;
|
|
3313
|
+
var Cr = "PopperArrow", _u = {
|
|
3254
3314
|
top: "bottom",
|
|
3255
3315
|
right: "left",
|
|
3256
3316
|
bottom: "top",
|
|
3257
3317
|
left: "right"
|
|
3258
3318
|
}, Er = s.forwardRef(function(t, n) {
|
|
3259
|
-
const { __scopePopper: o, ...r } = t, i =
|
|
3319
|
+
const { __scopePopper: o, ...r } = t, i = Pu(Cr, o), a = _u[i.placedSide];
|
|
3260
3320
|
return (
|
|
3261
3321
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
3262
3322
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -3285,7 +3345,7 @@ var Cr = "PopperArrow", jl = {
|
|
|
3285
3345
|
visibility: i.shouldHideArrow ? "hidden" : void 0
|
|
3286
3346
|
},
|
|
3287
3347
|
children: /* @__PURE__ */ p(
|
|
3288
|
-
|
|
3348
|
+
Ru,
|
|
3289
3349
|
{
|
|
3290
3350
|
...r,
|
|
3291
3351
|
ref: n,
|
|
@@ -3301,10 +3361,10 @@ var Cr = "PopperArrow", jl = {
|
|
|
3301
3361
|
);
|
|
3302
3362
|
});
|
|
3303
3363
|
Er.displayName = Cr;
|
|
3304
|
-
function
|
|
3364
|
+
function Mu(e) {
|
|
3305
3365
|
return e !== null;
|
|
3306
3366
|
}
|
|
3307
|
-
var
|
|
3367
|
+
var Au = (e) => ({
|
|
3308
3368
|
name: "transformOrigin",
|
|
3309
3369
|
options: e,
|
|
3310
3370
|
fn(t) {
|
|
@@ -3317,14 +3377,14 @@ function xr(e) {
|
|
|
3317
3377
|
const [t, n = "center"] = e.split("-");
|
|
3318
3378
|
return [t, n];
|
|
3319
3379
|
}
|
|
3320
|
-
var Rr = gr,
|
|
3380
|
+
var Rr = gr, Sr = yr, Tr = br, Pr = Er, Gt = "rovingFocusGroup.onEntryFocus", ku = { bubbles: !1, cancelable: !0 }, Xe = "RovingFocusGroup", [Jt, _r, Ou] = gn(Xe), [Du, Mr] = fe(
|
|
3321
3381
|
Xe,
|
|
3322
|
-
[
|
|
3323
|
-
), [
|
|
3324
|
-
(e, t) => /* @__PURE__ */ p(
|
|
3382
|
+
[Ou]
|
|
3383
|
+
), [Nu, Iu] = Du(Xe), Ar = s.forwardRef(
|
|
3384
|
+
(e, t) => /* @__PURE__ */ p(Jt.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Jt.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p(Lu, { ...e, ref: t }) }) })
|
|
3325
3385
|
);
|
|
3326
3386
|
Ar.displayName = Xe;
|
|
3327
|
-
var
|
|
3387
|
+
var Lu = s.forwardRef((e, t) => {
|
|
3328
3388
|
const {
|
|
3329
3389
|
__scopeRovingFocusGroup: n,
|
|
3330
3390
|
orientation: o,
|
|
@@ -3336,18 +3396,18 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3336
3396
|
onEntryFocus: l,
|
|
3337
3397
|
preventScrollOnEntryFocus: u = !1,
|
|
3338
3398
|
...f
|
|
3339
|
-
} = e, h = s.useRef(null), v =
|
|
3399
|
+
} = e, h = s.useRef(null), v = V(t, h), w = nr(i), [m, g] = Ne({
|
|
3340
3400
|
prop: a,
|
|
3341
3401
|
defaultProp: c ?? null,
|
|
3342
3402
|
onChange: d,
|
|
3343
3403
|
caller: Xe
|
|
3344
|
-
}), [y, b] = s.useState(!1), C = X(l), E = _r(n), x = s.useRef(!1), [
|
|
3404
|
+
}), [y, b] = s.useState(!1), C = X(l), E = _r(n), x = s.useRef(!1), [S, R] = s.useState(0);
|
|
3345
3405
|
return s.useEffect(() => {
|
|
3346
3406
|
const M = h.current;
|
|
3347
3407
|
if (M)
|
|
3348
3408
|
return M.addEventListener(Gt, C), () => M.removeEventListener(Gt, C);
|
|
3349
3409
|
}, [C]), /* @__PURE__ */ p(
|
|
3350
|
-
|
|
3410
|
+
Nu,
|
|
3351
3411
|
{
|
|
3352
3412
|
scope: n,
|
|
3353
3413
|
orientation: o,
|
|
@@ -3370,7 +3430,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3370
3430
|
children: /* @__PURE__ */ p(
|
|
3371
3431
|
I.div,
|
|
3372
3432
|
{
|
|
3373
|
-
tabIndex: y ||
|
|
3433
|
+
tabIndex: y || S === 0 ? -1 : 0,
|
|
3374
3434
|
"data-orientation": o,
|
|
3375
3435
|
...f,
|
|
3376
3436
|
ref: v,
|
|
@@ -3379,14 +3439,14 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3379
3439
|
x.current = !0;
|
|
3380
3440
|
}),
|
|
3381
3441
|
onFocus: _(e.onFocus, (M) => {
|
|
3382
|
-
const
|
|
3383
|
-
if (M.target === M.currentTarget &&
|
|
3384
|
-
const
|
|
3385
|
-
if (M.currentTarget.dispatchEvent(
|
|
3386
|
-
const
|
|
3442
|
+
const D = !x.current;
|
|
3443
|
+
if (M.target === M.currentTarget && D && !y) {
|
|
3444
|
+
const O = new CustomEvent(Gt, ku);
|
|
3445
|
+
if (M.currentTarget.dispatchEvent(O), !O.defaultPrevented) {
|
|
3446
|
+
const L = E().filter((k) => k.focusable), H = L.find((k) => k.active), $ = L.find((k) => k.id === m), B = [H, $, ...L].filter(
|
|
3387
3447
|
Boolean
|
|
3388
|
-
).map((
|
|
3389
|
-
|
|
3448
|
+
).map((k) => k.ref.current);
|
|
3449
|
+
Dr(B, u);
|
|
3390
3450
|
}
|
|
3391
3451
|
}
|
|
3392
3452
|
x.current = !1;
|
|
@@ -3396,7 +3456,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3396
3456
|
)
|
|
3397
3457
|
}
|
|
3398
3458
|
);
|
|
3399
|
-
}),
|
|
3459
|
+
}), kr = "RovingFocusGroupItem", Or = s.forwardRef(
|
|
3400
3460
|
(e, t) => {
|
|
3401
3461
|
const {
|
|
3402
3462
|
__scopeRovingFocusGroup: n,
|
|
@@ -3405,12 +3465,12 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3405
3465
|
tabStopId: i,
|
|
3406
3466
|
children: a,
|
|
3407
3467
|
...c
|
|
3408
|
-
} = e, d = be(), l = i || d, u =
|
|
3468
|
+
} = e, d = be(), l = i || d, u = Iu(kr, n), f = u.currentTabStopId === l, h = _r(n), { onFocusableItemAdd: v, onFocusableItemRemove: w, currentTabStopId: m } = u;
|
|
3409
3469
|
return s.useEffect(() => {
|
|
3410
3470
|
if (o)
|
|
3411
3471
|
return v(), () => w();
|
|
3412
3472
|
}, [o, v, w]), /* @__PURE__ */ p(
|
|
3413
|
-
|
|
3473
|
+
Jt.ItemSlot,
|
|
3414
3474
|
{
|
|
3415
3475
|
scope: n,
|
|
3416
3476
|
id: l,
|
|
@@ -3433,7 +3493,7 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3433
3493
|
return;
|
|
3434
3494
|
}
|
|
3435
3495
|
if (g.target !== g.currentTarget) return;
|
|
3436
|
-
const y =
|
|
3496
|
+
const y = Bu(g, u.orientation, u.dir);
|
|
3437
3497
|
if (y !== void 0) {
|
|
3438
3498
|
if (g.metaKey || g.ctrlKey || g.altKey || g.shiftKey) return;
|
|
3439
3499
|
g.preventDefault();
|
|
@@ -3442,9 +3502,9 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3442
3502
|
else if (y === "prev" || y === "next") {
|
|
3443
3503
|
y === "prev" && C.reverse();
|
|
3444
3504
|
const E = C.indexOf(g.currentTarget);
|
|
3445
|
-
C = u.loop ?
|
|
3505
|
+
C = u.loop ? Wu(C, E + 1) : C.slice(E + 1);
|
|
3446
3506
|
}
|
|
3447
|
-
setTimeout(() =>
|
|
3507
|
+
setTimeout(() => Dr(C));
|
|
3448
3508
|
}
|
|
3449
3509
|
}),
|
|
3450
3510
|
children: typeof a == "function" ? a({ isCurrentTabStop: f, hasTabStop: m != null }) : a
|
|
@@ -3454,8 +3514,8 @@ var tu = s.forwardRef((e, t) => {
|
|
|
3454
3514
|
);
|
|
3455
3515
|
}
|
|
3456
3516
|
);
|
|
3457
|
-
|
|
3458
|
-
var
|
|
3517
|
+
Or.displayName = kr;
|
|
3518
|
+
var Fu = {
|
|
3459
3519
|
ArrowLeft: "prev",
|
|
3460
3520
|
ArrowUp: "prev",
|
|
3461
3521
|
ArrowRight: "next",
|
|
@@ -3465,33 +3525,33 @@ var nu = {
|
|
|
3465
3525
|
PageDown: "last",
|
|
3466
3526
|
End: "last"
|
|
3467
3527
|
};
|
|
3468
|
-
function
|
|
3528
|
+
function $u(e, t) {
|
|
3469
3529
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
3470
3530
|
}
|
|
3471
|
-
function
|
|
3472
|
-
const o =
|
|
3531
|
+
function Bu(e, t, n) {
|
|
3532
|
+
const o = $u(e.key, n);
|
|
3473
3533
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
3474
|
-
return
|
|
3534
|
+
return Fu[o];
|
|
3475
3535
|
}
|
|
3476
|
-
function
|
|
3536
|
+
function Dr(e, t = !1) {
|
|
3477
3537
|
const n = document.activeElement;
|
|
3478
3538
|
for (const o of e)
|
|
3479
3539
|
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
3480
3540
|
}
|
|
3481
|
-
function
|
|
3541
|
+
function Wu(e, t) {
|
|
3482
3542
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
3483
3543
|
}
|
|
3484
|
-
var
|
|
3485
|
-
ltr: [...
|
|
3486
|
-
rtl: [...
|
|
3487
|
-
},
|
|
3544
|
+
var Hu = Ar, Vu = Or, en = ["Enter", " "], Ku = ["ArrowDown", "PageUp", "Home"], Nr = ["ArrowUp", "PageDown", "End"], Uu = [...Ku, ...Nr], Gu = {
|
|
3545
|
+
ltr: [...en, "ArrowRight"],
|
|
3546
|
+
rtl: [...en, "ArrowLeft"]
|
|
3547
|
+
}, ju = {
|
|
3488
3548
|
ltr: ["ArrowLeft"],
|
|
3489
3549
|
rtl: ["ArrowRight"]
|
|
3490
|
-
}, qe = "Menu", [Ke,
|
|
3491
|
-
|
|
3550
|
+
}, qe = "Menu", [Ke, zu, Yu] = gn(qe), [Re, Ir] = fe(qe, [
|
|
3551
|
+
Yu,
|
|
3492
3552
|
_t,
|
|
3493
3553
|
Mr
|
|
3494
|
-
]), Mt = _t(), Lr = Mr(), [
|
|
3554
|
+
]), Mt = _t(), Lr = Mr(), [Xu, Se] = Re(qe), [qu, Ze] = Re(qe), Fr = (e) => {
|
|
3495
3555
|
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: i, modal: a = !0 } = e, c = Mt(t), [d, l] = s.useState(null), u = s.useRef(!1), f = X(i), h = nr(r);
|
|
3496
3556
|
return s.useEffect(() => {
|
|
3497
3557
|
const v = () => {
|
|
@@ -3501,7 +3561,7 @@ var su = Ar, au = Dr, Jt = ["Enter", " "], cu = ["ArrowDown", "PageUp", "Home"],
|
|
|
3501
3561
|
document.removeEventListener("keydown", v, { capture: !0 }), document.removeEventListener("pointerdown", w, { capture: !0 }), document.removeEventListener("pointermove", w, { capture: !0 });
|
|
3502
3562
|
};
|
|
3503
3563
|
}, []), /* @__PURE__ */ p(Rr, { ...c, children: /* @__PURE__ */ p(
|
|
3504
|
-
|
|
3564
|
+
Xu,
|
|
3505
3565
|
{
|
|
3506
3566
|
scope: t,
|
|
3507
3567
|
open: n,
|
|
@@ -3509,7 +3569,7 @@ var su = Ar, au = Dr, Jt = ["Enter", " "], cu = ["ArrowDown", "PageUp", "Home"],
|
|
|
3509
3569
|
content: d,
|
|
3510
3570
|
onContentChange: l,
|
|
3511
3571
|
children: /* @__PURE__ */ p(
|
|
3512
|
-
|
|
3572
|
+
qu,
|
|
3513
3573
|
{
|
|
3514
3574
|
scope: t,
|
|
3515
3575
|
onClose: s.useCallback(() => f(!1), [f]),
|
|
@@ -3523,33 +3583,33 @@ var su = Ar, au = Dr, Jt = ["Enter", " "], cu = ["ArrowDown", "PageUp", "Home"],
|
|
|
3523
3583
|
) });
|
|
3524
3584
|
};
|
|
3525
3585
|
Fr.displayName = qe;
|
|
3526
|
-
var
|
|
3586
|
+
var Zu = "MenuAnchor", Tn = s.forwardRef(
|
|
3527
3587
|
(e, t) => {
|
|
3528
3588
|
const { __scopeMenu: n, ...o } = e, r = Mt(n);
|
|
3529
|
-
return /* @__PURE__ */ p(
|
|
3589
|
+
return /* @__PURE__ */ p(Sr, { ...r, ...o, ref: t });
|
|
3530
3590
|
}
|
|
3531
3591
|
);
|
|
3532
|
-
Tn.displayName =
|
|
3533
|
-
var
|
|
3592
|
+
Tn.displayName = Zu;
|
|
3593
|
+
var Pn = "MenuPortal", [Qu, $r] = Re(Pn, {
|
|
3534
3594
|
forceMount: void 0
|
|
3535
3595
|
}), Br = (e) => {
|
|
3536
|
-
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i =
|
|
3537
|
-
return /* @__PURE__ */ p(
|
|
3596
|
+
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, i = Se(Pn, t);
|
|
3597
|
+
return /* @__PURE__ */ p(Qu, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Q, { present: n || i.open, children: /* @__PURE__ */ p(ze, { asChild: !0, container: r, children: o }) }) });
|
|
3538
3598
|
};
|
|
3539
|
-
Br.displayName =
|
|
3540
|
-
var Z = "MenuContent", [
|
|
3599
|
+
Br.displayName = Pn;
|
|
3600
|
+
var Z = "MenuContent", [Ju, _n] = Re(Z), Wr = s.forwardRef(
|
|
3541
3601
|
(e, t) => {
|
|
3542
|
-
const n = $r(Z, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i =
|
|
3543
|
-
return /* @__PURE__ */ p(Ke.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(Q, { present: o || i.open, children: /* @__PURE__ */ p(Ke.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(
|
|
3602
|
+
const n = $r(Z, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Se(Z, e.__scopeMenu), a = Ze(Z, e.__scopeMenu);
|
|
3603
|
+
return /* @__PURE__ */ p(Ke.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(Q, { present: o || i.open, children: /* @__PURE__ */ p(Ke.Slot, { scope: e.__scopeMenu, children: a.modal ? /* @__PURE__ */ p(ed, { ...r, ref: t }) : /* @__PURE__ */ p(td, { ...r, ref: t }) }) }) });
|
|
3544
3604
|
}
|
|
3545
|
-
),
|
|
3605
|
+
), ed = s.forwardRef(
|
|
3546
3606
|
(e, t) => {
|
|
3547
|
-
const n =
|
|
3607
|
+
const n = Se(Z, e.__scopeMenu), o = s.useRef(null), r = V(t, o);
|
|
3548
3608
|
return s.useEffect(() => {
|
|
3549
3609
|
const i = o.current;
|
|
3550
3610
|
if (i) return Wo(i);
|
|
3551
3611
|
}, []), /* @__PURE__ */ p(
|
|
3552
|
-
|
|
3612
|
+
Mn,
|
|
3553
3613
|
{
|
|
3554
3614
|
...e,
|
|
3555
3615
|
ref: r,
|
|
@@ -3565,10 +3625,10 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3565
3625
|
}
|
|
3566
3626
|
);
|
|
3567
3627
|
}
|
|
3568
|
-
),
|
|
3569
|
-
const n =
|
|
3628
|
+
), td = s.forwardRef((e, t) => {
|
|
3629
|
+
const n = Se(Z, e.__scopeMenu);
|
|
3570
3630
|
return /* @__PURE__ */ p(
|
|
3571
|
-
|
|
3631
|
+
Mn,
|
|
3572
3632
|
{
|
|
3573
3633
|
...e,
|
|
3574
3634
|
ref: t,
|
|
@@ -3578,7 +3638,7 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3578
3638
|
onDismiss: () => n.onOpenChange(!1)
|
|
3579
3639
|
}
|
|
3580
3640
|
);
|
|
3581
|
-
}),
|
|
3641
|
+
}), nd = /* @__PURE__ */ We("MenuContent.ScrollLock"), Mn = s.forwardRef(
|
|
3582
3642
|
(e, t) => {
|
|
3583
3643
|
const {
|
|
3584
3644
|
__scopeMenu: n,
|
|
@@ -3595,52 +3655,52 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3595
3655
|
onDismiss: v,
|
|
3596
3656
|
disableOutsideScroll: w,
|
|
3597
3657
|
...m
|
|
3598
|
-
} = e, g =
|
|
3599
|
-
const
|
|
3600
|
-
(function
|
|
3601
|
-
|
|
3602
|
-
})(
|
|
3658
|
+
} = e, g = Se(Z, n), y = Ze(Z, n), b = Mt(n), C = Lr(n), E = zu(n), [x, S] = s.useState(null), R = s.useRef(null), M = V(t, R, g.onContentChange), D = s.useRef(0), O = s.useRef(""), L = s.useRef(0), H = s.useRef(null), $ = s.useRef("right"), P = s.useRef(0), B = w ? pn : s.Fragment, k = w ? { as: nd, allowPinchZoom: !0 } : void 0, W = (T) => {
|
|
3659
|
+
const K = O.current + T, q = E().filter((U) => !U.disabled), J = document.activeElement, oe = q.find((U) => U.ref.current === J)?.textValue, pe = q.map((U) => U.textValue), et = md(pe, K, oe), we = q.find((U) => U.textValue === et)?.ref.current;
|
|
3660
|
+
(function U(Fe) {
|
|
3661
|
+
O.current = Fe, window.clearTimeout(D.current), Fe !== "" && (D.current = window.setTimeout(() => U(""), 1e3));
|
|
3662
|
+
})(K), we && setTimeout(() => we.focus());
|
|
3603
3663
|
};
|
|
3604
|
-
s.useEffect(() => () => window.clearTimeout(
|
|
3605
|
-
const A = s.useCallback((
|
|
3664
|
+
s.useEffect(() => () => window.clearTimeout(D.current), []), ko();
|
|
3665
|
+
const A = s.useCallback((T) => $.current === H.current?.side && vd(T, H.current?.area), []);
|
|
3606
3666
|
return /* @__PURE__ */ p(
|
|
3607
|
-
|
|
3667
|
+
Ju,
|
|
3608
3668
|
{
|
|
3609
3669
|
scope: n,
|
|
3610
|
-
searchRef:
|
|
3670
|
+
searchRef: O,
|
|
3611
3671
|
onItemEnter: s.useCallback(
|
|
3612
|
-
(
|
|
3613
|
-
A(
|
|
3672
|
+
(T) => {
|
|
3673
|
+
A(T) && T.preventDefault();
|
|
3614
3674
|
},
|
|
3615
3675
|
[A]
|
|
3616
3676
|
),
|
|
3617
3677
|
onItemLeave: s.useCallback(
|
|
3618
|
-
(
|
|
3619
|
-
A(
|
|
3678
|
+
(T) => {
|
|
3679
|
+
A(T) || (R.current?.focus(), S(null));
|
|
3620
3680
|
},
|
|
3621
3681
|
[A]
|
|
3622
3682
|
),
|
|
3623
3683
|
onTriggerLeave: s.useCallback(
|
|
3624
|
-
(
|
|
3625
|
-
A(
|
|
3684
|
+
(T) => {
|
|
3685
|
+
A(T) && T.preventDefault();
|
|
3626
3686
|
},
|
|
3627
3687
|
[A]
|
|
3628
3688
|
),
|
|
3629
|
-
pointerGraceTimerRef:
|
|
3630
|
-
onPointerGraceIntentChange: s.useCallback((
|
|
3631
|
-
|
|
3689
|
+
pointerGraceTimerRef: L,
|
|
3690
|
+
onPointerGraceIntentChange: s.useCallback((T) => {
|
|
3691
|
+
H.current = T;
|
|
3632
3692
|
}, []),
|
|
3633
|
-
children: /* @__PURE__ */ p(
|
|
3634
|
-
|
|
3693
|
+
children: /* @__PURE__ */ p(B, { ...k, children: /* @__PURE__ */ p(
|
|
3694
|
+
fn,
|
|
3635
3695
|
{
|
|
3636
3696
|
asChild: !0,
|
|
3637
3697
|
trapped: r,
|
|
3638
|
-
onMountAutoFocus: _(i, (
|
|
3639
|
-
|
|
3698
|
+
onMountAutoFocus: _(i, (T) => {
|
|
3699
|
+
T.preventDefault(), R.current?.focus({ preventScroll: !0 });
|
|
3640
3700
|
}),
|
|
3641
3701
|
onUnmountAutoFocus: a,
|
|
3642
3702
|
children: /* @__PURE__ */ p(
|
|
3643
|
-
|
|
3703
|
+
je,
|
|
3644
3704
|
{
|
|
3645
3705
|
asChild: !0,
|
|
3646
3706
|
disableOutsidePointerEvents: c,
|
|
@@ -3650,7 +3710,7 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3650
3710
|
onInteractOutside: h,
|
|
3651
3711
|
onDismiss: v,
|
|
3652
3712
|
children: /* @__PURE__ */ p(
|
|
3653
|
-
|
|
3713
|
+
Hu,
|
|
3654
3714
|
{
|
|
3655
3715
|
asChild: !0,
|
|
3656
3716
|
...C,
|
|
@@ -3658,42 +3718,42 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3658
3718
|
orientation: "vertical",
|
|
3659
3719
|
loop: o,
|
|
3660
3720
|
currentTabStopId: x,
|
|
3661
|
-
onCurrentTabStopIdChange:
|
|
3662
|
-
onEntryFocus: _(d, (
|
|
3663
|
-
y.isUsingKeyboardRef.current ||
|
|
3721
|
+
onCurrentTabStopIdChange: S,
|
|
3722
|
+
onEntryFocus: _(d, (T) => {
|
|
3723
|
+
y.isUsingKeyboardRef.current || T.preventDefault();
|
|
3664
3724
|
}),
|
|
3665
3725
|
preventScrollOnEntryFocus: !0,
|
|
3666
3726
|
children: /* @__PURE__ */ p(
|
|
3667
|
-
|
|
3727
|
+
Tr,
|
|
3668
3728
|
{
|
|
3669
3729
|
role: "menu",
|
|
3670
3730
|
"aria-orientation": "vertical",
|
|
3671
|
-
"data-state":
|
|
3731
|
+
"data-state": ns(g.open),
|
|
3672
3732
|
"data-radix-menu-content": "",
|
|
3673
3733
|
dir: y.dir,
|
|
3674
3734
|
...b,
|
|
3675
3735
|
...m,
|
|
3676
3736
|
ref: M,
|
|
3677
3737
|
style: { outline: "none", ...m.style },
|
|
3678
|
-
onKeyDown: _(m.onKeyDown, (
|
|
3679
|
-
const q =
|
|
3680
|
-
q && (
|
|
3738
|
+
onKeyDown: _(m.onKeyDown, (T) => {
|
|
3739
|
+
const q = T.target.closest("[data-radix-menu-content]") === T.currentTarget, J = T.ctrlKey || T.altKey || T.metaKey, oe = T.key.length === 1;
|
|
3740
|
+
q && (T.key === "Tab" && T.preventDefault(), !J && oe && W(T.key));
|
|
3681
3741
|
const pe = R.current;
|
|
3682
|
-
if (
|
|
3683
|
-
|
|
3684
|
-
const we = E().filter((
|
|
3685
|
-
|
|
3742
|
+
if (T.target !== pe || !Uu.includes(T.key)) return;
|
|
3743
|
+
T.preventDefault();
|
|
3744
|
+
const we = E().filter((U) => !U.disabled).map((U) => U.ref.current);
|
|
3745
|
+
Nr.includes(T.key) && we.reverse(), fd(we);
|
|
3686
3746
|
}),
|
|
3687
|
-
onBlur: _(e.onBlur, (
|
|
3688
|
-
|
|
3747
|
+
onBlur: _(e.onBlur, (T) => {
|
|
3748
|
+
T.currentTarget.contains(T.target) || (window.clearTimeout(D.current), O.current = "");
|
|
3689
3749
|
}),
|
|
3690
3750
|
onPointerMove: _(
|
|
3691
3751
|
e.onPointerMove,
|
|
3692
|
-
Ue((
|
|
3693
|
-
const
|
|
3694
|
-
if (
|
|
3695
|
-
const J =
|
|
3696
|
-
|
|
3752
|
+
Ue((T) => {
|
|
3753
|
+
const K = T.target, q = P.current !== T.clientX;
|
|
3754
|
+
if (T.currentTarget.contains(K) && q) {
|
|
3755
|
+
const J = T.clientX > P.current ? "right" : "left";
|
|
3756
|
+
$.current = J, P.current = T.clientX;
|
|
3697
3757
|
}
|
|
3698
3758
|
})
|
|
3699
3759
|
)
|
|
@@ -3710,27 +3770,27 @@ var Z = "MenuContent", [wu, Pn] = Re(Z), Wr = s.forwardRef(
|
|
|
3710
3770
|
}
|
|
3711
3771
|
);
|
|
3712
3772
|
Wr.displayName = Z;
|
|
3713
|
-
var
|
|
3773
|
+
var od = "MenuGroup", An = s.forwardRef(
|
|
3714
3774
|
(e, t) => {
|
|
3715
3775
|
const { __scopeMenu: n, ...o } = e;
|
|
3716
3776
|
return /* @__PURE__ */ p(I.div, { role: "group", ...o, ref: t });
|
|
3717
3777
|
}
|
|
3718
3778
|
);
|
|
3719
|
-
|
|
3720
|
-
var
|
|
3779
|
+
An.displayName = od;
|
|
3780
|
+
var rd = "MenuLabel", Hr = s.forwardRef(
|
|
3721
3781
|
(e, t) => {
|
|
3722
3782
|
const { __scopeMenu: n, ...o } = e;
|
|
3723
3783
|
return /* @__PURE__ */ p(I.div, { ...o, ref: t });
|
|
3724
3784
|
}
|
|
3725
3785
|
);
|
|
3726
|
-
Hr.displayName =
|
|
3786
|
+
Hr.displayName = rd;
|
|
3727
3787
|
var wt = "MenuItem", uo = "menu.itemSelect", At = s.forwardRef(
|
|
3728
3788
|
(e, t) => {
|
|
3729
|
-
const { disabled: n = !1, onSelect: o, ...r } = e, i = s.useRef(null), a = Ze(wt, e.__scopeMenu), c =
|
|
3789
|
+
const { disabled: n = !1, onSelect: o, ...r } = e, i = s.useRef(null), a = Ze(wt, e.__scopeMenu), c = _n(wt, e.__scopeMenu), d = V(t, i), l = s.useRef(!1), u = () => {
|
|
3730
3790
|
const f = i.current;
|
|
3731
3791
|
if (!n && f) {
|
|
3732
3792
|
const h = new CustomEvent(uo, { bubbles: !0, cancelable: !0 });
|
|
3733
|
-
f.addEventListener(uo, (v) => o?.(v), { once: !0 }),
|
|
3793
|
+
f.addEventListener(uo, (v) => o?.(v), { once: !0 }), un(f, h), h.defaultPrevented ? l.current = !1 : a.onClose();
|
|
3734
3794
|
}
|
|
3735
3795
|
};
|
|
3736
3796
|
return /* @__PURE__ */ p(
|
|
@@ -3748,7 +3808,7 @@ var wt = "MenuItem", uo = "menu.itemSelect", At = s.forwardRef(
|
|
|
3748
3808
|
}),
|
|
3749
3809
|
onKeyDown: _(e.onKeyDown, (f) => {
|
|
3750
3810
|
const h = c.searchRef.current !== "";
|
|
3751
|
-
n || h && f.key === " " ||
|
|
3811
|
+
n || h && f.key === " " || en.includes(f.key) && (f.currentTarget.click(), f.preventDefault());
|
|
3752
3812
|
})
|
|
3753
3813
|
}
|
|
3754
3814
|
);
|
|
@@ -3757,7 +3817,7 @@ var wt = "MenuItem", uo = "menu.itemSelect", At = s.forwardRef(
|
|
|
3757
3817
|
At.displayName = wt;
|
|
3758
3818
|
var Vr = s.forwardRef(
|
|
3759
3819
|
(e, t) => {
|
|
3760
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a =
|
|
3820
|
+
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...i } = e, a = _n(wt, n), c = Lr(n), d = s.useRef(null), l = V(t, d), [u, f] = s.useState(!1), [h, v] = s.useState("");
|
|
3761
3821
|
return s.useEffect(() => {
|
|
3762
3822
|
const w = d.current;
|
|
3763
3823
|
w && v((w.textContent ?? "").trim());
|
|
@@ -3767,7 +3827,7 @@ var Vr = s.forwardRef(
|
|
|
3767
3827
|
scope: n,
|
|
3768
3828
|
disabled: o,
|
|
3769
3829
|
textValue: r ?? h,
|
|
3770
|
-
children: /* @__PURE__ */ p(
|
|
3830
|
+
children: /* @__PURE__ */ p(Vu, { asChild: !0, ...c, focusable: !o, children: /* @__PURE__ */ p(
|
|
3771
3831
|
I.div,
|
|
3772
3832
|
{
|
|
3773
3833
|
role: "menuitem",
|
|
@@ -3793,7 +3853,7 @@ var Vr = s.forwardRef(
|
|
|
3793
3853
|
}
|
|
3794
3854
|
);
|
|
3795
3855
|
}
|
|
3796
|
-
),
|
|
3856
|
+
), sd = "MenuCheckboxItem", Kr = s.forwardRef(
|
|
3797
3857
|
(e, t) => {
|
|
3798
3858
|
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
3799
3859
|
return /* @__PURE__ */ p(Yr, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p(
|
|
@@ -3813,21 +3873,21 @@ var Vr = s.forwardRef(
|
|
|
3813
3873
|
) });
|
|
3814
3874
|
}
|
|
3815
3875
|
);
|
|
3816
|
-
Kr.displayName =
|
|
3817
|
-
var Ur = "MenuRadioGroup", [
|
|
3876
|
+
Kr.displayName = sd;
|
|
3877
|
+
var Ur = "MenuRadioGroup", [id, ad] = Re(
|
|
3818
3878
|
Ur,
|
|
3819
3879
|
{ value: void 0, onValueChange: () => {
|
|
3820
3880
|
} }
|
|
3821
3881
|
), Gr = s.forwardRef(
|
|
3822
3882
|
(e, t) => {
|
|
3823
3883
|
const { value: n, onValueChange: o, ...r } = e, i = X(o);
|
|
3824
|
-
return /* @__PURE__ */ p(
|
|
3884
|
+
return /* @__PURE__ */ p(id, { scope: e.__scopeMenu, value: n, onValueChange: i, children: /* @__PURE__ */ p(An, { ...r, ref: t }) });
|
|
3825
3885
|
}
|
|
3826
3886
|
);
|
|
3827
3887
|
Gr.displayName = Ur;
|
|
3828
|
-
var
|
|
3888
|
+
var jr = "MenuRadioItem", zr = s.forwardRef(
|
|
3829
3889
|
(e, t) => {
|
|
3830
|
-
const { value: n, ...o } = e, r =
|
|
3890
|
+
const { value: n, ...o } = e, r = ad(jr, e.__scopeMenu), i = n === r.value;
|
|
3831
3891
|
return /* @__PURE__ */ p(Yr, { scope: e.__scopeMenu, checked: i, children: /* @__PURE__ */ p(
|
|
3832
3892
|
At,
|
|
3833
3893
|
{
|
|
@@ -3845,13 +3905,13 @@ var zr = "MenuRadioItem", jr = s.forwardRef(
|
|
|
3845
3905
|
) });
|
|
3846
3906
|
}
|
|
3847
3907
|
);
|
|
3848
|
-
|
|
3849
|
-
var
|
|
3850
|
-
|
|
3908
|
+
zr.displayName = jr;
|
|
3909
|
+
var kn = "MenuItemIndicator", [Yr, cd] = Re(
|
|
3910
|
+
kn,
|
|
3851
3911
|
{ checked: !1 }
|
|
3852
3912
|
), Xr = s.forwardRef(
|
|
3853
3913
|
(e, t) => {
|
|
3854
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, i =
|
|
3914
|
+
const { __scopeMenu: n, forceMount: o, ...r } = e, i = cd(kn, n);
|
|
3855
3915
|
return /* @__PURE__ */ p(
|
|
3856
3916
|
Q,
|
|
3857
3917
|
{
|
|
@@ -3868,8 +3928,8 @@ var An = "MenuItemIndicator", [Yr, Pu] = Re(
|
|
|
3868
3928
|
);
|
|
3869
3929
|
}
|
|
3870
3930
|
);
|
|
3871
|
-
Xr.displayName =
|
|
3872
|
-
var
|
|
3931
|
+
Xr.displayName = kn;
|
|
3932
|
+
var ld = "MenuSeparator", qr = s.forwardRef(
|
|
3873
3933
|
(e, t) => {
|
|
3874
3934
|
const { __scopeMenu: n, ...o } = e;
|
|
3875
3935
|
return /* @__PURE__ */ p(
|
|
@@ -3883,17 +3943,17 @@ var _u = "MenuSeparator", qr = s.forwardRef(
|
|
|
3883
3943
|
);
|
|
3884
3944
|
}
|
|
3885
3945
|
);
|
|
3886
|
-
qr.displayName =
|
|
3887
|
-
var
|
|
3946
|
+
qr.displayName = ld;
|
|
3947
|
+
var ud = "MenuArrow", Zr = s.forwardRef(
|
|
3888
3948
|
(e, t) => {
|
|
3889
3949
|
const { __scopeMenu: n, ...o } = e, r = Mt(n);
|
|
3890
3950
|
return /* @__PURE__ */ p(Pr, { ...r, ...o, ref: t });
|
|
3891
3951
|
}
|
|
3892
3952
|
);
|
|
3893
|
-
Zr.displayName =
|
|
3894
|
-
var
|
|
3953
|
+
Zr.displayName = ud;
|
|
3954
|
+
var dd = "MenuSub", [Tp, Qr] = Re(dd), Be = "MenuSubTrigger", Jr = s.forwardRef(
|
|
3895
3955
|
(e, t) => {
|
|
3896
|
-
const n =
|
|
3956
|
+
const n = Se(Be, e.__scopeMenu), o = Ze(Be, e.__scopeMenu), r = Qr(Be, e.__scopeMenu), i = _n(Be, e.__scopeMenu), a = s.useRef(null), { pointerGraceTimerRef: c, onPointerGraceIntentChange: d } = i, l = { __scopeMenu: e.__scopeMenu }, u = s.useCallback(() => {
|
|
3897
3957
|
a.current && window.clearTimeout(a.current), a.current = null;
|
|
3898
3958
|
}, []);
|
|
3899
3959
|
return s.useEffect(() => u, [u]), s.useEffect(() => {
|
|
@@ -3908,7 +3968,7 @@ var Au = "MenuSub", [Wf, Qr] = Re(Au), Be = "MenuSubTrigger", Jr = s.forwardRef(
|
|
|
3908
3968
|
"aria-haspopup": "menu",
|
|
3909
3969
|
"aria-expanded": n.open,
|
|
3910
3970
|
"aria-controls": r.contentId,
|
|
3911
|
-
"data-state":
|
|
3971
|
+
"data-state": ns(n.open),
|
|
3912
3972
|
...e,
|
|
3913
3973
|
ref: bt(t, r.onTriggerChange),
|
|
3914
3974
|
onClick: (f) => {
|
|
@@ -3952,18 +4012,18 @@ var Au = "MenuSub", [Wf, Qr] = Re(Au), Be = "MenuSubTrigger", Jr = s.forwardRef(
|
|
|
3952
4012
|
),
|
|
3953
4013
|
onKeyDown: _(e.onKeyDown, (f) => {
|
|
3954
4014
|
const h = i.searchRef.current !== "";
|
|
3955
|
-
e.disabled || h && f.key === " " ||
|
|
4015
|
+
e.disabled || h && f.key === " " || Gu[o.dir].includes(f.key) && (n.onOpenChange(!0), n.content?.focus(), f.preventDefault());
|
|
3956
4016
|
})
|
|
3957
4017
|
}
|
|
3958
4018
|
) });
|
|
3959
4019
|
}
|
|
3960
4020
|
);
|
|
3961
4021
|
Jr.displayName = Be;
|
|
3962
|
-
var
|
|
4022
|
+
var es = "MenuSubContent", ts = s.forwardRef(
|
|
3963
4023
|
(e, t) => {
|
|
3964
|
-
const n = $r(Z, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i =
|
|
4024
|
+
const n = $r(Z, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, i = Se(Z, e.__scopeMenu), a = Ze(Z, e.__scopeMenu), c = Qr(es, e.__scopeMenu), d = s.useRef(null), l = V(t, d);
|
|
3965
4025
|
return /* @__PURE__ */ p(Ke.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(Q, { present: o || i.open, children: /* @__PURE__ */ p(Ke.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p(
|
|
3966
|
-
|
|
4026
|
+
Mn,
|
|
3967
4027
|
{
|
|
3968
4028
|
id: c.contentId,
|
|
3969
4029
|
"aria-labelledby": c.triggerId,
|
|
@@ -3985,15 +4045,15 @@ var ei = "MenuSubContent", ti = s.forwardRef(
|
|
|
3985
4045
|
a.onClose(), u.preventDefault();
|
|
3986
4046
|
}),
|
|
3987
4047
|
onKeyDown: _(e.onKeyDown, (u) => {
|
|
3988
|
-
const f = u.currentTarget.contains(u.target), h =
|
|
4048
|
+
const f = u.currentTarget.contains(u.target), h = ju[a.dir].includes(u.key);
|
|
3989
4049
|
f && h && (i.onOpenChange(!1), c.trigger?.focus(), u.preventDefault());
|
|
3990
4050
|
})
|
|
3991
4051
|
}
|
|
3992
4052
|
) }) }) });
|
|
3993
4053
|
}
|
|
3994
4054
|
);
|
|
3995
|
-
|
|
3996
|
-
function
|
|
4055
|
+
ts.displayName = es;
|
|
4056
|
+
function ns(e) {
|
|
3997
4057
|
return e ? "open" : "closed";
|
|
3998
4058
|
}
|
|
3999
4059
|
function yt(e) {
|
|
@@ -4002,24 +4062,24 @@ function yt(e) {
|
|
|
4002
4062
|
function On(e) {
|
|
4003
4063
|
return yt(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
4004
4064
|
}
|
|
4005
|
-
function
|
|
4065
|
+
function fd(e) {
|
|
4006
4066
|
const t = document.activeElement;
|
|
4007
4067
|
for (const n of e)
|
|
4008
4068
|
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
4009
4069
|
}
|
|
4010
|
-
function
|
|
4070
|
+
function pd(e, t) {
|
|
4011
4071
|
return e.map((n, o) => e[(t + o) % e.length]);
|
|
4012
4072
|
}
|
|
4013
|
-
function
|
|
4073
|
+
function md(e, t, n) {
|
|
4014
4074
|
const r = t.length > 1 && Array.from(t).every((l) => l === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
4015
|
-
let a =
|
|
4075
|
+
let a = pd(e, Math.max(i, 0));
|
|
4016
4076
|
r.length === 1 && (a = a.filter((l) => l !== n));
|
|
4017
4077
|
const d = a.find(
|
|
4018
4078
|
(l) => l.toLowerCase().startsWith(r.toLowerCase())
|
|
4019
4079
|
);
|
|
4020
4080
|
return d !== n ? d : void 0;
|
|
4021
4081
|
}
|
|
4022
|
-
function
|
|
4082
|
+
function hd(e, t) {
|
|
4023
4083
|
const { x: n, y: o } = e;
|
|
4024
4084
|
let r = !1;
|
|
4025
4085
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -4028,18 +4088,18 @@ function Iu(e, t) {
|
|
|
4028
4088
|
}
|
|
4029
4089
|
return r;
|
|
4030
4090
|
}
|
|
4031
|
-
function
|
|
4091
|
+
function vd(e, t) {
|
|
4032
4092
|
if (!t) return !1;
|
|
4033
4093
|
const n = { x: e.clientX, y: e.clientY };
|
|
4034
|
-
return
|
|
4094
|
+
return hd(n, t);
|
|
4035
4095
|
}
|
|
4036
4096
|
function Ue(e) {
|
|
4037
4097
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
4038
4098
|
}
|
|
4039
|
-
var
|
|
4040
|
-
|
|
4041
|
-
[
|
|
4042
|
-
),
|
|
4099
|
+
var gd = Fr, wd = Tn, yd = Br, bd = Wr, Cd = An, Ed = Hr, xd = At, Rd = Kr, Sd = Gr, Td = zr, Pd = Xr, _d = qr, Md = Zr, Ad = Jr, kd = ts, kt = "DropdownMenu", [Od] = fe(
|
|
4100
|
+
kt,
|
|
4101
|
+
[Ir]
|
|
4102
|
+
), j = Ir(), [Dd, os] = Od(kt), rs = (e) => {
|
|
4043
4103
|
const {
|
|
4044
4104
|
__scopeDropdownMenu: t,
|
|
4045
4105
|
children: n,
|
|
@@ -4048,14 +4108,14 @@ var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu = At, Ku = Kr, Uu =
|
|
|
4048
4108
|
defaultOpen: i,
|
|
4049
4109
|
onOpenChange: a,
|
|
4050
4110
|
modal: c = !0
|
|
4051
|
-
} = e, d =
|
|
4111
|
+
} = e, d = j(t), l = s.useRef(null), [u, f] = Ne({
|
|
4052
4112
|
prop: r,
|
|
4053
4113
|
defaultProp: i ?? !1,
|
|
4054
4114
|
onChange: a,
|
|
4055
|
-
caller:
|
|
4115
|
+
caller: kt
|
|
4056
4116
|
});
|
|
4057
4117
|
return /* @__PURE__ */ p(
|
|
4058
|
-
|
|
4118
|
+
Dd,
|
|
4059
4119
|
{
|
|
4060
4120
|
scope: t,
|
|
4061
4121
|
triggerId: be(),
|
|
@@ -4065,15 +4125,15 @@ var Lu = Fr, Fu = Tn, $u = Br, Bu = Wr, Wu = Mn, Hu = Hr, Vu = At, Ku = Kr, Uu =
|
|
|
4065
4125
|
onOpenChange: f,
|
|
4066
4126
|
onOpenToggle: s.useCallback(() => f((h) => !h), [f]),
|
|
4067
4127
|
modal: c,
|
|
4068
|
-
children: /* @__PURE__ */ p(
|
|
4128
|
+
children: /* @__PURE__ */ p(gd, { ...d, open: u, onOpenChange: f, dir: o, modal: c, children: n })
|
|
4069
4129
|
}
|
|
4070
4130
|
);
|
|
4071
4131
|
};
|
|
4072
|
-
|
|
4073
|
-
var
|
|
4132
|
+
rs.displayName = kt;
|
|
4133
|
+
var ss = "DropdownMenuTrigger", is = s.forwardRef(
|
|
4074
4134
|
(e, t) => {
|
|
4075
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i =
|
|
4076
|
-
return /* @__PURE__ */ p(
|
|
4135
|
+
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, i = os(ss, n), a = j(n);
|
|
4136
|
+
return /* @__PURE__ */ p(wd, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
4077
4137
|
I.button,
|
|
4078
4138
|
{
|
|
4079
4139
|
type: "button",
|
|
@@ -4096,17 +4156,17 @@ var ii = "DropdownMenuTrigger", si = s.forwardRef(
|
|
|
4096
4156
|
) });
|
|
4097
4157
|
}
|
|
4098
4158
|
);
|
|
4099
|
-
|
|
4100
|
-
var
|
|
4101
|
-
const { __scopeDropdownMenu: t, ...n } = e, o =
|
|
4102
|
-
return /* @__PURE__ */ p(
|
|
4159
|
+
is.displayName = ss;
|
|
4160
|
+
var Nd = "DropdownMenuPortal", as = (e) => {
|
|
4161
|
+
const { __scopeDropdownMenu: t, ...n } = e, o = j(t);
|
|
4162
|
+
return /* @__PURE__ */ p(yd, { ...o, ...n });
|
|
4103
4163
|
};
|
|
4104
|
-
|
|
4105
|
-
var
|
|
4164
|
+
as.displayName = Nd;
|
|
4165
|
+
var cs = "DropdownMenuContent", ls = s.forwardRef(
|
|
4106
4166
|
(e, t) => {
|
|
4107
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4167
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = os(cs, n), i = j(n), a = s.useRef(!1);
|
|
4108
4168
|
return /* @__PURE__ */ p(
|
|
4109
|
-
|
|
4169
|
+
bd,
|
|
4110
4170
|
{
|
|
4111
4171
|
id: r.contentId,
|
|
4112
4172
|
"aria-labelledby": r.triggerId,
|
|
@@ -4132,69 +4192,69 @@ var ci = "DropdownMenuContent", li = s.forwardRef(
|
|
|
4132
4192
|
);
|
|
4133
4193
|
}
|
|
4134
4194
|
);
|
|
4135
|
-
|
|
4136
|
-
var
|
|
4195
|
+
ls.displayName = cs;
|
|
4196
|
+
var Id = "DropdownMenuGroup", Ld = s.forwardRef(
|
|
4137
4197
|
(e, t) => {
|
|
4138
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4139
|
-
return /* @__PURE__ */ p(
|
|
4198
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4199
|
+
return /* @__PURE__ */ p(Cd, { ...r, ...o, ref: t });
|
|
4140
4200
|
}
|
|
4141
4201
|
);
|
|
4142
|
-
|
|
4143
|
-
var
|
|
4202
|
+
Ld.displayName = Id;
|
|
4203
|
+
var Fd = "DropdownMenuLabel", $d = s.forwardRef(
|
|
4144
4204
|
(e, t) => {
|
|
4145
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4146
|
-
return /* @__PURE__ */ p(
|
|
4205
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4206
|
+
return /* @__PURE__ */ p(Ed, { ...r, ...o, ref: t });
|
|
4147
4207
|
}
|
|
4148
4208
|
);
|
|
4149
|
-
|
|
4150
|
-
var
|
|
4209
|
+
$d.displayName = Fd;
|
|
4210
|
+
var Bd = "DropdownMenuItem", us = s.forwardRef(
|
|
4151
4211
|
(e, t) => {
|
|
4152
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4153
|
-
return /* @__PURE__ */ p(
|
|
4212
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4213
|
+
return /* @__PURE__ */ p(xd, { ...r, ...o, ref: t });
|
|
4154
4214
|
}
|
|
4155
4215
|
);
|
|
4156
|
-
|
|
4157
|
-
var
|
|
4158
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4159
|
-
return /* @__PURE__ */ p(
|
|
4216
|
+
us.displayName = Bd;
|
|
4217
|
+
var Wd = "DropdownMenuCheckboxItem", Hd = s.forwardRef((e, t) => {
|
|
4218
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4219
|
+
return /* @__PURE__ */ p(Rd, { ...r, ...o, ref: t });
|
|
4160
4220
|
});
|
|
4161
|
-
|
|
4162
|
-
var
|
|
4163
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4164
|
-
return /* @__PURE__ */ p(
|
|
4221
|
+
Hd.displayName = Wd;
|
|
4222
|
+
var Vd = "DropdownMenuRadioGroup", Kd = s.forwardRef((e, t) => {
|
|
4223
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4224
|
+
return /* @__PURE__ */ p(Sd, { ...r, ...o, ref: t });
|
|
4165
4225
|
});
|
|
4166
|
-
|
|
4167
|
-
var
|
|
4168
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4169
|
-
return /* @__PURE__ */ p(
|
|
4226
|
+
Kd.displayName = Vd;
|
|
4227
|
+
var Ud = "DropdownMenuRadioItem", Gd = s.forwardRef((e, t) => {
|
|
4228
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4229
|
+
return /* @__PURE__ */ p(Td, { ...r, ...o, ref: t });
|
|
4170
4230
|
});
|
|
4171
|
-
|
|
4172
|
-
var
|
|
4173
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4174
|
-
return /* @__PURE__ */ p(
|
|
4231
|
+
Gd.displayName = Ud;
|
|
4232
|
+
var jd = "DropdownMenuItemIndicator", zd = s.forwardRef((e, t) => {
|
|
4233
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4234
|
+
return /* @__PURE__ */ p(Pd, { ...r, ...o, ref: t });
|
|
4175
4235
|
});
|
|
4176
|
-
|
|
4177
|
-
var
|
|
4178
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4179
|
-
return /* @__PURE__ */ p(
|
|
4236
|
+
zd.displayName = jd;
|
|
4237
|
+
var Yd = "DropdownMenuSeparator", Xd = s.forwardRef((e, t) => {
|
|
4238
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4239
|
+
return /* @__PURE__ */ p(_d, { ...r, ...o, ref: t });
|
|
4180
4240
|
});
|
|
4181
|
-
|
|
4182
|
-
var
|
|
4241
|
+
Xd.displayName = Yd;
|
|
4242
|
+
var qd = "DropdownMenuArrow", ds = s.forwardRef(
|
|
4183
4243
|
(e, t) => {
|
|
4184
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4185
|
-
return /* @__PURE__ */ p(
|
|
4244
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4245
|
+
return /* @__PURE__ */ p(Md, { ...r, ...o, ref: t });
|
|
4186
4246
|
}
|
|
4187
4247
|
);
|
|
4188
|
-
|
|
4189
|
-
var
|
|
4190
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4191
|
-
return /* @__PURE__ */ p(
|
|
4248
|
+
ds.displayName = qd;
|
|
4249
|
+
var Zd = "DropdownMenuSubTrigger", Qd = s.forwardRef((e, t) => {
|
|
4250
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4251
|
+
return /* @__PURE__ */ p(Ad, { ...r, ...o, ref: t });
|
|
4192
4252
|
});
|
|
4193
|
-
|
|
4194
|
-
var
|
|
4195
|
-
const { __scopeDropdownMenu: n, ...o } = e, r =
|
|
4253
|
+
Qd.displayName = Zd;
|
|
4254
|
+
var Jd = "DropdownMenuSubContent", ef = s.forwardRef((e, t) => {
|
|
4255
|
+
const { __scopeDropdownMenu: n, ...o } = e, r = j(n);
|
|
4196
4256
|
return /* @__PURE__ */ p(
|
|
4197
|
-
|
|
4257
|
+
kd,
|
|
4198
4258
|
{
|
|
4199
4259
|
...r,
|
|
4200
4260
|
...o,
|
|
@@ -4210,20 +4270,26 @@ var wd = "DropdownMenuSubContent", yd = s.forwardRef((e, t) => {
|
|
|
4210
4270
|
}
|
|
4211
4271
|
);
|
|
4212
4272
|
});
|
|
4213
|
-
|
|
4214
|
-
var
|
|
4215
|
-
const
|
|
4216
|
-
menuButtonContent:
|
|
4217
|
-
menuButtonItem:
|
|
4218
|
-
menuButtonArrow:
|
|
4219
|
-
},
|
|
4220
|
-
/* @__PURE__ */ p(
|
|
4221
|
-
/* @__PURE__ */ p(
|
|
4273
|
+
ef.displayName = Jd;
|
|
4274
|
+
var tf = rs, nf = is, of = as, rf = ls, sf = us, af = ds;
|
|
4275
|
+
const cf = "_menuButtonContent_zvwim_1", lf = "_menuButtonItem_zvwim_13", uf = "_menuButtonArrow_zvwim_41", tn = {
|
|
4276
|
+
menuButtonContent: cf,
|
|
4277
|
+
menuButtonItem: lf,
|
|
4278
|
+
menuButtonArrow: uf
|
|
4279
|
+
}, Pp = ({ children: e, trigger: t, ...n }) => /* @__PURE__ */ G(tf, { modal: !1, ...n, children: [
|
|
4280
|
+
/* @__PURE__ */ p(nf, { asChild: !0, children: t }),
|
|
4281
|
+
/* @__PURE__ */ p(of, { children: /* @__PURE__ */ G(rf, { align: "end", className: tn.menuButtonContent, sideOffset: 5, children: [
|
|
4222
4282
|
e,
|
|
4223
|
-
/* @__PURE__ */ p(
|
|
4283
|
+
/* @__PURE__ */ p(af, { className: tn.menuButtonArrow })
|
|
4224
4284
|
] }) })
|
|
4225
|
-
] }),
|
|
4226
|
-
|
|
4285
|
+
] }), _p = ({ children: e, icon: t, ...n }) => {
|
|
4286
|
+
const o = t ? zt[t] : void 0;
|
|
4287
|
+
return /* @__PURE__ */ G(sf, { className: tn.menuButtonItem, ...n, children: [
|
|
4288
|
+
o && /* @__PURE__ */ p(o, { size: "md", className: "text-color-secondary" }),
|
|
4289
|
+
/* @__PURE__ */ p("label", { className: "label-3 text-color-secondary", children: e })
|
|
4290
|
+
] });
|
|
4291
|
+
};
|
|
4292
|
+
var df = Object.freeze({
|
|
4227
4293
|
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
4228
4294
|
position: "absolute",
|
|
4229
4295
|
border: 0,
|
|
@@ -4235,18 +4301,18 @@ var Md = Object.freeze({
|
|
|
4235
4301
|
clip: "rect(0, 0, 0, 0)",
|
|
4236
4302
|
whiteSpace: "nowrap",
|
|
4237
4303
|
wordWrap: "normal"
|
|
4238
|
-
}),
|
|
4304
|
+
}), ff = "VisuallyHidden", Ot = s.forwardRef(
|
|
4239
4305
|
(e, t) => /* @__PURE__ */ p(
|
|
4240
4306
|
I.span,
|
|
4241
4307
|
{
|
|
4242
4308
|
...e,
|
|
4243
4309
|
ref: t,
|
|
4244
|
-
style: { ...
|
|
4310
|
+
style: { ...df, ...e.style }
|
|
4245
4311
|
}
|
|
4246
4312
|
)
|
|
4247
4313
|
);
|
|
4248
|
-
|
|
4249
|
-
var
|
|
4314
|
+
Ot.displayName = ff;
|
|
4315
|
+
var pf = Ot, Dn = "ToastProvider", [Nn, mf, hf] = gn("Toast"), [fs] = fe("Toast", [hf]), [vf, Dt] = fs(Dn), ps = (e) => {
|
|
4250
4316
|
const {
|
|
4251
4317
|
__scopeToast: t,
|
|
4252
4318
|
label: n = "Notification",
|
|
@@ -4258,7 +4324,7 @@ var Od = Dt, Dn = "ToastProvider", [Nn, Dd, Nd] = vn("Toast"), [fi] = fe("Toast"
|
|
|
4258
4324
|
return n.trim() || console.error(
|
|
4259
4325
|
`Invalid prop \`label\` supplied to \`${Dn}\`. Expected non-empty \`string\`.`
|
|
4260
4326
|
), /* @__PURE__ */ p(Nn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
4261
|
-
|
|
4327
|
+
vf,
|
|
4262
4328
|
{
|
|
4263
4329
|
scope: t,
|
|
4264
4330
|
label: n,
|
|
@@ -4276,15 +4342,15 @@ var Od = Dt, Dn = "ToastProvider", [Nn, Dd, Nd] = vn("Toast"), [fi] = fe("Toast"
|
|
|
4276
4342
|
}
|
|
4277
4343
|
) });
|
|
4278
4344
|
};
|
|
4279
|
-
|
|
4280
|
-
var
|
|
4345
|
+
ps.displayName = Dn;
|
|
4346
|
+
var ms = "ToastViewport", gf = ["F8"], nn = "toast.viewportPause", on = "toast.viewportResume", hs = s.forwardRef(
|
|
4281
4347
|
(e, t) => {
|
|
4282
4348
|
const {
|
|
4283
4349
|
__scopeToast: n,
|
|
4284
|
-
hotkey: o =
|
|
4350
|
+
hotkey: o = gf,
|
|
4285
4351
|
label: r = "Notifications ({hotkey})",
|
|
4286
4352
|
...i
|
|
4287
|
-
} = e, a =
|
|
4353
|
+
} = e, a = Dt(ms, n), c = mf(n), d = s.useRef(null), l = s.useRef(null), u = s.useRef(null), f = s.useRef(null), h = V(t, f, a.onViewportChange), v = o.join("+").replace(/Key/g, "").replace(/Digit/g, ""), w = a.toastCount > 0;
|
|
4288
4354
|
s.useEffect(() => {
|
|
4289
4355
|
const g = (y) => {
|
|
4290
4356
|
o.length !== 0 && o.every((C) => y[C] || y.code === C) && f.current?.focus();
|
|
@@ -4295,16 +4361,16 @@ var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.v
|
|
|
4295
4361
|
if (w && g && y) {
|
|
4296
4362
|
const b = () => {
|
|
4297
4363
|
if (!a.isClosePausedRef.current) {
|
|
4298
|
-
const
|
|
4299
|
-
y.dispatchEvent(
|
|
4364
|
+
const S = new CustomEvent(nn);
|
|
4365
|
+
y.dispatchEvent(S), a.isClosePausedRef.current = !0;
|
|
4300
4366
|
}
|
|
4301
4367
|
}, C = () => {
|
|
4302
4368
|
if (a.isClosePausedRef.current) {
|
|
4303
|
-
const
|
|
4304
|
-
y.dispatchEvent(
|
|
4369
|
+
const S = new CustomEvent(on);
|
|
4370
|
+
y.dispatchEvent(S), a.isClosePausedRef.current = !1;
|
|
4305
4371
|
}
|
|
4306
|
-
}, E = (
|
|
4307
|
-
!g.contains(
|
|
4372
|
+
}, E = (S) => {
|
|
4373
|
+
!g.contains(S.relatedTarget) && C();
|
|
4308
4374
|
}, x = () => {
|
|
4309
4375
|
g.contains(document.activeElement) || C();
|
|
4310
4376
|
};
|
|
@@ -4316,7 +4382,7 @@ var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.v
|
|
|
4316
4382
|
const m = s.useCallback(
|
|
4317
4383
|
({ tabbingDirection: g }) => {
|
|
4318
4384
|
const b = c().map((C) => {
|
|
4319
|
-
const E = C.ref.current, x = [E, ...
|
|
4385
|
+
const E = C.ref.current, x = [E, ...Af(E)];
|
|
4320
4386
|
return g === "forwards" ? x : x.reverse();
|
|
4321
4387
|
});
|
|
4322
4388
|
return (g === "forwards" ? b.reverse() : b).flat();
|
|
@@ -4329,19 +4395,19 @@ var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.v
|
|
|
4329
4395
|
const y = (b) => {
|
|
4330
4396
|
const C = b.altKey || b.ctrlKey || b.metaKey;
|
|
4331
4397
|
if (b.key === "Tab" && !C) {
|
|
4332
|
-
const x = document.activeElement,
|
|
4333
|
-
if (b.target === g &&
|
|
4398
|
+
const x = document.activeElement, S = b.shiftKey;
|
|
4399
|
+
if (b.target === g && S) {
|
|
4334
4400
|
l.current?.focus();
|
|
4335
4401
|
return;
|
|
4336
4402
|
}
|
|
4337
|
-
const
|
|
4338
|
-
|
|
4403
|
+
const D = m({ tabbingDirection: S ? "backwards" : "forwards" }), O = D.findIndex((L) => L === x);
|
|
4404
|
+
jt(D.slice(O + 1)) ? b.preventDefault() : S ? l.current?.focus() : u.current?.focus();
|
|
4339
4405
|
}
|
|
4340
4406
|
};
|
|
4341
4407
|
return g.addEventListener("keydown", y), () => g.removeEventListener("keydown", y);
|
|
4342
4408
|
}
|
|
4343
|
-
}, [c, m]), /* @__PURE__ */
|
|
4344
|
-
|
|
4409
|
+
}, [c, m]), /* @__PURE__ */ G(
|
|
4410
|
+
Za,
|
|
4345
4411
|
{
|
|
4346
4412
|
ref: d,
|
|
4347
4413
|
role: "region",
|
|
@@ -4350,27 +4416,27 @@ var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.v
|
|
|
4350
4416
|
style: { pointerEvents: w ? void 0 : "none" },
|
|
4351
4417
|
children: [
|
|
4352
4418
|
w && /* @__PURE__ */ p(
|
|
4353
|
-
|
|
4419
|
+
rn,
|
|
4354
4420
|
{
|
|
4355
4421
|
ref: l,
|
|
4356
4422
|
onFocusFromOutsideViewport: () => {
|
|
4357
4423
|
const g = m({
|
|
4358
4424
|
tabbingDirection: "forwards"
|
|
4359
4425
|
});
|
|
4360
|
-
|
|
4426
|
+
jt(g);
|
|
4361
4427
|
}
|
|
4362
4428
|
}
|
|
4363
4429
|
),
|
|
4364
4430
|
/* @__PURE__ */ p(Nn.Slot, { scope: n, children: /* @__PURE__ */ p(I.ol, { tabIndex: -1, ...i, ref: h }) }),
|
|
4365
4431
|
w && /* @__PURE__ */ p(
|
|
4366
|
-
|
|
4432
|
+
rn,
|
|
4367
4433
|
{
|
|
4368
4434
|
ref: u,
|
|
4369
4435
|
onFocusFromOutsideViewport: () => {
|
|
4370
4436
|
const g = m({
|
|
4371
4437
|
tabbingDirection: "backwards"
|
|
4372
4438
|
});
|
|
4373
|
-
|
|
4439
|
+
jt(g);
|
|
4374
4440
|
}
|
|
4375
4441
|
}
|
|
4376
4442
|
)
|
|
@@ -4379,12 +4445,12 @@ var mi = "ToastViewport", kd = ["F8"], tn = "toast.viewportPause", nn = "toast.v
|
|
|
4379
4445
|
);
|
|
4380
4446
|
}
|
|
4381
4447
|
);
|
|
4382
|
-
|
|
4383
|
-
var
|
|
4448
|
+
hs.displayName = ms;
|
|
4449
|
+
var vs = "ToastFocusProxy", rn = s.forwardRef(
|
|
4384
4450
|
(e, t) => {
|
|
4385
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: o, ...r } = e, i =
|
|
4451
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: o, ...r } = e, i = Dt(vs, n);
|
|
4386
4452
|
return /* @__PURE__ */ p(
|
|
4387
|
-
|
|
4453
|
+
Ot,
|
|
4388
4454
|
{
|
|
4389
4455
|
tabIndex: 0,
|
|
4390
4456
|
...r,
|
|
@@ -4398,17 +4464,17 @@ var vi = "ToastFocusProxy", on = s.forwardRef(
|
|
|
4398
4464
|
);
|
|
4399
4465
|
}
|
|
4400
4466
|
);
|
|
4401
|
-
|
|
4402
|
-
var Qe = "Toast",
|
|
4467
|
+
rn.displayName = vs;
|
|
4468
|
+
var Qe = "Toast", wf = "toast.swipeStart", yf = "toast.swipeMove", bf = "toast.swipeCancel", Cf = "toast.swipeEnd", gs = s.forwardRef(
|
|
4403
4469
|
(e, t) => {
|
|
4404
|
-
const { forceMount: n, open: o, defaultOpen: r, onOpenChange: i, ...a } = e, [c, d] =
|
|
4470
|
+
const { forceMount: n, open: o, defaultOpen: r, onOpenChange: i, ...a } = e, [c, d] = Ne({
|
|
4405
4471
|
prop: o,
|
|
4406
4472
|
defaultProp: r ?? !0,
|
|
4407
4473
|
onChange: i,
|
|
4408
4474
|
caller: Qe
|
|
4409
4475
|
});
|
|
4410
4476
|
return /* @__PURE__ */ p(Q, { present: n || c, children: /* @__PURE__ */ p(
|
|
4411
|
-
|
|
4477
|
+
Rf,
|
|
4412
4478
|
{
|
|
4413
4479
|
open: c,
|
|
4414
4480
|
...a,
|
|
@@ -4434,11 +4500,11 @@ var Qe = "Toast", Ld = "toast.swipeStart", Fd = "toast.swipeMove", $d = "toast.s
|
|
|
4434
4500
|
) });
|
|
4435
4501
|
}
|
|
4436
4502
|
);
|
|
4437
|
-
|
|
4438
|
-
var [
|
|
4503
|
+
gs.displayName = Qe;
|
|
4504
|
+
var [Ef, xf] = fs(Qe, {
|
|
4439
4505
|
onClose() {
|
|
4440
4506
|
}
|
|
4441
|
-
}),
|
|
4507
|
+
}), Rf = s.forwardRef(
|
|
4442
4508
|
(e, t) => {
|
|
4443
4509
|
const {
|
|
4444
4510
|
__scopeToast: n,
|
|
@@ -4454,48 +4520,48 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4454
4520
|
onSwipeCancel: h,
|
|
4455
4521
|
onSwipeEnd: v,
|
|
4456
4522
|
...w
|
|
4457
|
-
} = e, m =
|
|
4523
|
+
} = e, m = Dt(Qe, n), [g, y] = s.useState(null), b = V(t, (P) => y(P)), C = s.useRef(null), E = s.useRef(null), x = r || m.duration, S = s.useRef(0), R = s.useRef(x), M = s.useRef(0), { onToastAdd: D, onToastRemove: O } = m, L = X(() => {
|
|
4458
4524
|
g?.contains(document.activeElement) && m.viewport?.focus(), a();
|
|
4459
|
-
}),
|
|
4525
|
+
}), H = s.useCallback(
|
|
4460
4526
|
(P) => {
|
|
4461
|
-
!P || P === 1 / 0 || (window.clearTimeout(M.current),
|
|
4527
|
+
!P || P === 1 / 0 || (window.clearTimeout(M.current), S.current = (/* @__PURE__ */ new Date()).getTime(), M.current = window.setTimeout(L, P));
|
|
4462
4528
|
},
|
|
4463
|
-
[
|
|
4529
|
+
[L]
|
|
4464
4530
|
);
|
|
4465
4531
|
s.useEffect(() => {
|
|
4466
4532
|
const P = m.viewport;
|
|
4467
4533
|
if (P) {
|
|
4468
|
-
const
|
|
4469
|
-
|
|
4470
|
-
},
|
|
4471
|
-
const
|
|
4472
|
-
R.current = R.current -
|
|
4534
|
+
const B = () => {
|
|
4535
|
+
H(R.current), l?.();
|
|
4536
|
+
}, k = () => {
|
|
4537
|
+
const W = (/* @__PURE__ */ new Date()).getTime() - S.current;
|
|
4538
|
+
R.current = R.current - W, window.clearTimeout(M.current), d?.();
|
|
4473
4539
|
};
|
|
4474
|
-
return P.addEventListener(
|
|
4475
|
-
P.removeEventListener(
|
|
4540
|
+
return P.addEventListener(nn, k), P.addEventListener(on, B), () => {
|
|
4541
|
+
P.removeEventListener(nn, k), P.removeEventListener(on, B);
|
|
4476
4542
|
};
|
|
4477
4543
|
}
|
|
4478
|
-
}, [m.viewport, x, d, l,
|
|
4479
|
-
i && !m.isClosePausedRef.current &&
|
|
4480
|
-
}, [i, x, m.isClosePausedRef,
|
|
4481
|
-
const
|
|
4482
|
-
return m.viewport ? /* @__PURE__ */
|
|
4483
|
-
|
|
4484
|
-
|
|
4544
|
+
}, [m.viewport, x, d, l, H]), s.useEffect(() => {
|
|
4545
|
+
i && !m.isClosePausedRef.current && H(x);
|
|
4546
|
+
}, [i, x, m.isClosePausedRef, H]), s.useEffect(() => (D(), () => O()), [D, O]);
|
|
4547
|
+
const $ = s.useMemo(() => g ? Rs(g) : null, [g]);
|
|
4548
|
+
return m.viewport ? /* @__PURE__ */ G(Ce, { children: [
|
|
4549
|
+
$ && /* @__PURE__ */ p(
|
|
4550
|
+
Sf,
|
|
4485
4551
|
{
|
|
4486
4552
|
__scopeToast: n,
|
|
4487
4553
|
role: "status",
|
|
4488
4554
|
"aria-live": o === "foreground" ? "assertive" : "polite",
|
|
4489
|
-
children:
|
|
4555
|
+
children: $
|
|
4490
4556
|
}
|
|
4491
4557
|
),
|
|
4492
|
-
/* @__PURE__ */ p(
|
|
4558
|
+
/* @__PURE__ */ p(Ef, { scope: n, onClose: L, children: cn.createPortal(
|
|
4493
4559
|
/* @__PURE__ */ p(Nn.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
4494
|
-
|
|
4560
|
+
qa,
|
|
4495
4561
|
{
|
|
4496
4562
|
asChild: !0,
|
|
4497
4563
|
onEscapeKeyDown: _(c, () => {
|
|
4498
|
-
m.isFocusedToastEscapeKeyDownRef.current ||
|
|
4564
|
+
m.isFocusedToastEscapeKeyDownRef.current || L(), m.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
4499
4565
|
}),
|
|
4500
4566
|
children: /* @__PURE__ */ p(
|
|
4501
4567
|
I.li,
|
|
@@ -4507,34 +4573,34 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4507
4573
|
ref: b,
|
|
4508
4574
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
4509
4575
|
onKeyDown: _(e.onKeyDown, (P) => {
|
|
4510
|
-
P.key === "Escape" && (c?.(P.nativeEvent), P.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0,
|
|
4576
|
+
P.key === "Escape" && (c?.(P.nativeEvent), P.nativeEvent.defaultPrevented || (m.isFocusedToastEscapeKeyDownRef.current = !0, L()));
|
|
4511
4577
|
}),
|
|
4512
4578
|
onPointerDown: _(e.onPointerDown, (P) => {
|
|
4513
4579
|
P.button === 0 && (C.current = { x: P.clientX, y: P.clientY });
|
|
4514
4580
|
}),
|
|
4515
4581
|
onPointerMove: _(e.onPointerMove, (P) => {
|
|
4516
4582
|
if (!C.current) return;
|
|
4517
|
-
const
|
|
4518
|
-
|
|
4583
|
+
const B = P.clientX - C.current.x, k = P.clientY - C.current.y, W = !!E.current, A = ["left", "right"].includes(m.swipeDirection), T = ["left", "up"].includes(m.swipeDirection) ? Math.min : Math.max, K = A ? T(0, B) : 0, q = A ? 0 : T(0, k), J = P.pointerType === "touch" ? 10 : 2, oe = { x: K, y: q }, pe = { originalEvent: P, delta: oe };
|
|
4584
|
+
W ? (E.current = oe, lt(yf, f, pe, {
|
|
4519
4585
|
discrete: !1
|
|
4520
|
-
})) : fo(oe, m.swipeDirection, J) ? (E.current = oe, lt(
|
|
4586
|
+
})) : fo(oe, m.swipeDirection, J) ? (E.current = oe, lt(wf, u, pe, {
|
|
4521
4587
|
discrete: !1
|
|
4522
|
-
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(
|
|
4588
|
+
}), P.target.setPointerCapture(P.pointerId)) : (Math.abs(B) > J || Math.abs(k) > J) && (C.current = null);
|
|
4523
4589
|
}),
|
|
4524
4590
|
onPointerUp: _(e.onPointerUp, (P) => {
|
|
4525
|
-
const
|
|
4526
|
-
if (
|
|
4527
|
-
const
|
|
4528
|
-
fo(
|
|
4591
|
+
const B = E.current, k = P.target;
|
|
4592
|
+
if (k.hasPointerCapture(P.pointerId) && k.releasePointerCapture(P.pointerId), E.current = null, C.current = null, B) {
|
|
4593
|
+
const W = P.currentTarget, A = { originalEvent: P, delta: B };
|
|
4594
|
+
fo(B, m.swipeDirection, m.swipeThreshold) ? lt(Cf, v, A, {
|
|
4529
4595
|
discrete: !0
|
|
4530
4596
|
}) : lt(
|
|
4531
|
-
|
|
4597
|
+
bf,
|
|
4532
4598
|
h,
|
|
4533
4599
|
A,
|
|
4534
4600
|
{
|
|
4535
4601
|
discrete: !0
|
|
4536
4602
|
}
|
|
4537
|
-
),
|
|
4603
|
+
), W.addEventListener("click", (T) => T.preventDefault(), {
|
|
4538
4604
|
once: !0
|
|
4539
4605
|
});
|
|
4540
4606
|
}
|
|
@@ -4547,43 +4613,43 @@ var [Wd, Hd] = fi(Qe, {
|
|
|
4547
4613
|
) })
|
|
4548
4614
|
] }) : null;
|
|
4549
4615
|
}
|
|
4550
|
-
),
|
|
4551
|
-
const { __scopeToast: t, children: n, ...o } = e, r =
|
|
4552
|
-
return
|
|
4616
|
+
), Sf = (e) => {
|
|
4617
|
+
const { __scopeToast: t, children: n, ...o } = e, r = Dt(Qe, t), [i, a] = s.useState(!1), [c, d] = s.useState(!1);
|
|
4618
|
+
return _f(() => a(!0)), s.useEffect(() => {
|
|
4553
4619
|
const l = window.setTimeout(() => d(!0), 1e3);
|
|
4554
4620
|
return () => window.clearTimeout(l);
|
|
4555
|
-
}, []), c ? null : /* @__PURE__ */ p(
|
|
4621
|
+
}, []), c ? null : /* @__PURE__ */ p(ze, { asChild: !0, children: /* @__PURE__ */ p(Ot, { ...o, children: i && /* @__PURE__ */ G(Ce, { children: [
|
|
4556
4622
|
r.label,
|
|
4557
4623
|
" ",
|
|
4558
4624
|
n
|
|
4559
4625
|
] }) }) });
|
|
4560
|
-
},
|
|
4626
|
+
}, Tf = "ToastTitle", ws = s.forwardRef(
|
|
4561
4627
|
(e, t) => {
|
|
4562
4628
|
const { __scopeToast: n, ...o } = e;
|
|
4563
4629
|
return /* @__PURE__ */ p(I.div, { ...o, ref: t });
|
|
4564
4630
|
}
|
|
4565
4631
|
);
|
|
4566
|
-
|
|
4567
|
-
var
|
|
4632
|
+
ws.displayName = Tf;
|
|
4633
|
+
var Pf = "ToastDescription", ys = s.forwardRef(
|
|
4568
4634
|
(e, t) => {
|
|
4569
4635
|
const { __scopeToast: n, ...o } = e;
|
|
4570
4636
|
return /* @__PURE__ */ p(I.div, { ...o, ref: t });
|
|
4571
4637
|
}
|
|
4572
4638
|
);
|
|
4573
|
-
|
|
4574
|
-
var
|
|
4639
|
+
ys.displayName = Pf;
|
|
4640
|
+
var bs = "ToastAction", Cs = s.forwardRef(
|
|
4575
4641
|
(e, t) => {
|
|
4576
4642
|
const { altText: n, ...o } = e;
|
|
4577
|
-
return n.trim() ? /* @__PURE__ */ p(
|
|
4578
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
4643
|
+
return n.trim() ? /* @__PURE__ */ p(xs, { altText: n, asChild: !0, children: /* @__PURE__ */ p(In, { ...o, ref: t }) }) : (console.error(
|
|
4644
|
+
`Invalid prop \`altText\` supplied to \`${bs}\`. Expected non-empty \`string\`.`
|
|
4579
4645
|
), null);
|
|
4580
4646
|
}
|
|
4581
4647
|
);
|
|
4582
|
-
|
|
4583
|
-
var
|
|
4648
|
+
Cs.displayName = bs;
|
|
4649
|
+
var Es = "ToastClose", In = s.forwardRef(
|
|
4584
4650
|
(e, t) => {
|
|
4585
|
-
const { __scopeToast: n, ...o } = e, r =
|
|
4586
|
-
return /* @__PURE__ */ p(
|
|
4651
|
+
const { __scopeToast: n, ...o } = e, r = xf(Es, n);
|
|
4652
|
+
return /* @__PURE__ */ p(xs, { asChild: !0, children: /* @__PURE__ */ p(
|
|
4587
4653
|
I.button,
|
|
4588
4654
|
{
|
|
4589
4655
|
type: "button",
|
|
@@ -4594,8 +4660,8 @@ var Ei = "ToastClose", In = s.forwardRef(
|
|
|
4594
4660
|
) });
|
|
4595
4661
|
}
|
|
4596
4662
|
);
|
|
4597
|
-
In.displayName =
|
|
4598
|
-
var
|
|
4663
|
+
In.displayName = Es;
|
|
4664
|
+
var xs = s.forwardRef((e, t) => {
|
|
4599
4665
|
const { __scopeToast: n, altText: o, ...r } = e;
|
|
4600
4666
|
return /* @__PURE__ */ p(
|
|
4601
4667
|
I.div,
|
|
@@ -4607,29 +4673,29 @@ var xi = s.forwardRef((e, t) => {
|
|
|
4607
4673
|
}
|
|
4608
4674
|
);
|
|
4609
4675
|
});
|
|
4610
|
-
function
|
|
4676
|
+
function Rs(e) {
|
|
4611
4677
|
const t = [];
|
|
4612
4678
|
return Array.from(e.childNodes).forEach((o) => {
|
|
4613
|
-
if (o.nodeType === o.TEXT_NODE && o.textContent && t.push(o.textContent),
|
|
4679
|
+
if (o.nodeType === o.TEXT_NODE && o.textContent && t.push(o.textContent), Mf(o)) {
|
|
4614
4680
|
const r = o.ariaHidden || o.hidden || o.style.display === "none", i = o.dataset.radixToastAnnounceExclude === "";
|
|
4615
4681
|
if (!r)
|
|
4616
4682
|
if (i) {
|
|
4617
4683
|
const a = o.dataset.radixToastAnnounceAlt;
|
|
4618
4684
|
a && t.push(a);
|
|
4619
4685
|
} else
|
|
4620
|
-
t.push(...
|
|
4686
|
+
t.push(...Rs(o));
|
|
4621
4687
|
}
|
|
4622
4688
|
}), t;
|
|
4623
4689
|
}
|
|
4624
4690
|
function lt(e, t, n, { discrete: o }) {
|
|
4625
4691
|
const r = n.originalEvent.currentTarget, i = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
4626
|
-
t && r.addEventListener(e, t, { once: !0 }), o ?
|
|
4692
|
+
t && r.addEventListener(e, t, { once: !0 }), o ? un(r, i) : r.dispatchEvent(i);
|
|
4627
4693
|
}
|
|
4628
4694
|
var fo = (e, t, n = 0) => {
|
|
4629
4695
|
const o = Math.abs(e.x), r = Math.abs(e.y), i = o > r;
|
|
4630
4696
|
return t === "left" || t === "right" ? i && o > n : !i && r > n;
|
|
4631
4697
|
};
|
|
4632
|
-
function
|
|
4698
|
+
function _f(e = () => {
|
|
4633
4699
|
}) {
|
|
4634
4700
|
const t = X(e);
|
|
4635
4701
|
le(() => {
|
|
@@ -4639,10 +4705,10 @@ function zd(e = () => {
|
|
|
4639
4705
|
};
|
|
4640
4706
|
}, [t]);
|
|
4641
4707
|
}
|
|
4642
|
-
function
|
|
4708
|
+
function Mf(e) {
|
|
4643
4709
|
return e.nodeType === e.ELEMENT_NODE;
|
|
4644
4710
|
}
|
|
4645
|
-
function
|
|
4711
|
+
function Af(e) {
|
|
4646
4712
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
4647
4713
|
acceptNode: (o) => {
|
|
4648
4714
|
const r = o.tagName === "INPUT" && o.type === "hidden";
|
|
@@ -4652,36 +4718,36 @@ function Yd(e) {
|
|
|
4652
4718
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
4653
4719
|
return t;
|
|
4654
4720
|
}
|
|
4655
|
-
function
|
|
4721
|
+
function jt(e) {
|
|
4656
4722
|
const t = document.activeElement;
|
|
4657
4723
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
4658
4724
|
}
|
|
4659
|
-
var
|
|
4660
|
-
const
|
|
4661
|
-
toast:
|
|
4662
|
-
toastContent:
|
|
4663
|
-
toastViewport:
|
|
4664
|
-
toastTitle:
|
|
4665
|
-
toastDescription:
|
|
4666
|
-
},
|
|
4667
|
-
|
|
4668
|
-
const
|
|
4669
|
-
({ toastTitle: e, toastDescription: t, toastAction: n, ...o }, r) => /* @__PURE__ */
|
|
4670
|
-
/* @__PURE__ */
|
|
4671
|
-
/* @__PURE__ */ p(
|
|
4672
|
-
t && /* @__PURE__ */ p(
|
|
4725
|
+
var kf = ps, Of = hs, Df = gs, Nf = ws, If = ys, Lf = Cs, Ff = In;
|
|
4726
|
+
const $f = "_toast_1ga0s_1", Bf = "_toastContent_1ga0s_12", Wf = "_toastViewport_1ga0s_70", Hf = "_toastTitle_1ga0s_89", Vf = "_toastDescription_1ga0s_95", Me = {
|
|
4727
|
+
toast: $f,
|
|
4728
|
+
toastContent: Bf,
|
|
4729
|
+
toastViewport: Wf,
|
|
4730
|
+
toastTitle: Hf,
|
|
4731
|
+
toastDescription: Vf
|
|
4732
|
+
}, Mp = ({ ...e }) => /* @__PURE__ */ p(kf, { ...e }), Kf = N(({ ...e }, t) => /* @__PURE__ */ p(Of, { className: Me.toastViewport, ref: t, ...e }));
|
|
4733
|
+
Kf.displayName = "ToastViewport";
|
|
4734
|
+
const Uf = N(
|
|
4735
|
+
({ toastTitle: e, toastDescription: t, toastAction: n, ...o }, r) => /* @__PURE__ */ G(Df, { className: Me.toast, ref: r, ...o, children: [
|
|
4736
|
+
/* @__PURE__ */ G("div", { className: Me.toastContent, children: [
|
|
4737
|
+
/* @__PURE__ */ p(Nf, { className: Me.toastTitle, children: e }),
|
|
4738
|
+
t && /* @__PURE__ */ p(If, { className: Me.toastDescription, children: t })
|
|
4673
4739
|
] }),
|
|
4674
|
-
n && /* @__PURE__ */ p(
|
|
4675
|
-
/* @__PURE__ */ p(
|
|
4740
|
+
n && /* @__PURE__ */ p(Lf, { className: Me.toastAction, asChild: !0, altText: "Toast action", children: n }),
|
|
4741
|
+
/* @__PURE__ */ p(Ff, { asChild: !0, children: /* @__PURE__ */ p(ln, { variant: "tertiary", iconOnly: !0, icon: "Close" }) })
|
|
4676
4742
|
] })
|
|
4677
4743
|
);
|
|
4678
|
-
|
|
4679
|
-
var [
|
|
4744
|
+
Uf.displayName = "Toast";
|
|
4745
|
+
var [Nt] = fe("Tooltip", [
|
|
4680
4746
|
_t
|
|
4681
|
-
]),
|
|
4747
|
+
]), It = _t(), Ss = "TooltipProvider", Gf = 700, sn = "tooltip.open", [jf, Ln] = Nt(Ss), Ts = (e) => {
|
|
4682
4748
|
const {
|
|
4683
4749
|
__scopeTooltip: t,
|
|
4684
|
-
delayDuration: n =
|
|
4750
|
+
delayDuration: n = Gf,
|
|
4685
4751
|
skipDelayDuration: o = 300,
|
|
4686
4752
|
disableHoverableContent: r = !1,
|
|
4687
4753
|
children: i
|
|
@@ -4690,7 +4756,7 @@ var [It] = fe("Tooltip", [
|
|
|
4690
4756
|
const l = d.current;
|
|
4691
4757
|
return () => window.clearTimeout(l);
|
|
4692
4758
|
}, []), /* @__PURE__ */ p(
|
|
4693
|
-
|
|
4759
|
+
jf,
|
|
4694
4760
|
{
|
|
4695
4761
|
scope: t,
|
|
4696
4762
|
isOpenDelayedRef: a,
|
|
@@ -4713,8 +4779,8 @@ var [It] = fe("Tooltip", [
|
|
|
4713
4779
|
}
|
|
4714
4780
|
);
|
|
4715
4781
|
};
|
|
4716
|
-
|
|
4717
|
-
var Ge = "Tooltip", [
|
|
4782
|
+
Ts.displayName = Ss;
|
|
4783
|
+
var Ge = "Tooltip", [zf, Je] = Nt(Ge), Ps = (e) => {
|
|
4718
4784
|
const {
|
|
4719
4785
|
__scopeTooltip: t,
|
|
4720
4786
|
children: n,
|
|
@@ -4723,18 +4789,18 @@ var Ge = "Tooltip", [ff, Je] = It(Ge), Pi = (e) => {
|
|
|
4723
4789
|
onOpenChange: i,
|
|
4724
4790
|
disableHoverableContent: a,
|
|
4725
4791
|
delayDuration: c
|
|
4726
|
-
} = e, d =
|
|
4792
|
+
} = e, d = Ln(Ge, e.__scopeTooltip), l = It(t), [u, f] = s.useState(null), h = be(), v = s.useRef(0), w = a ?? d.disableHoverableContent, m = c ?? d.delayDuration, g = s.useRef(!1), [y, b] = Ne({
|
|
4727
4793
|
prop: o,
|
|
4728
4794
|
defaultProp: r ?? !1,
|
|
4729
4795
|
onChange: (R) => {
|
|
4730
|
-
R ? (d.onOpen(), document.dispatchEvent(new CustomEvent(
|
|
4796
|
+
R ? (d.onOpen(), document.dispatchEvent(new CustomEvent(sn))) : d.onClose(), i?.(R);
|
|
4731
4797
|
},
|
|
4732
4798
|
caller: Ge
|
|
4733
4799
|
}), C = s.useMemo(() => y ? g.current ? "delayed-open" : "instant-open" : "closed", [y]), E = s.useCallback(() => {
|
|
4734
4800
|
window.clearTimeout(v.current), v.current = 0, g.current = !1, b(!0);
|
|
4735
4801
|
}, [b]), x = s.useCallback(() => {
|
|
4736
4802
|
window.clearTimeout(v.current), v.current = 0, b(!1);
|
|
4737
|
-
}, [b]),
|
|
4803
|
+
}, [b]), S = s.useCallback(() => {
|
|
4738
4804
|
window.clearTimeout(v.current), v.current = window.setTimeout(() => {
|
|
4739
4805
|
g.current = !0, b(!0), v.current = 0;
|
|
4740
4806
|
}, m);
|
|
@@ -4742,7 +4808,7 @@ var Ge = "Tooltip", [ff, Je] = It(Ge), Pi = (e) => {
|
|
|
4742
4808
|
return s.useEffect(() => () => {
|
|
4743
4809
|
v.current && (window.clearTimeout(v.current), v.current = 0);
|
|
4744
4810
|
}, []), /* @__PURE__ */ p(Rr, { ...l, children: /* @__PURE__ */ p(
|
|
4745
|
-
|
|
4811
|
+
zf,
|
|
4746
4812
|
{
|
|
4747
4813
|
scope: t,
|
|
4748
4814
|
contentId: h,
|
|
@@ -4751,8 +4817,8 @@ var Ge = "Tooltip", [ff, Je] = It(Ge), Pi = (e) => {
|
|
|
4751
4817
|
trigger: u,
|
|
4752
4818
|
onTriggerChange: f,
|
|
4753
4819
|
onTriggerEnter: s.useCallback(() => {
|
|
4754
|
-
d.isOpenDelayedRef.current ?
|
|
4755
|
-
}, [d.isOpenDelayedRef,
|
|
4820
|
+
d.isOpenDelayedRef.current ? S() : E();
|
|
4821
|
+
}, [d.isOpenDelayedRef, S, E]),
|
|
4756
4822
|
onTriggerLeave: s.useCallback(() => {
|
|
4757
4823
|
w ? x() : (window.clearTimeout(v.current), v.current = 0);
|
|
4758
4824
|
}, [x, w]),
|
|
@@ -4763,11 +4829,11 @@ var Ge = "Tooltip", [ff, Je] = It(Ge), Pi = (e) => {
|
|
|
4763
4829
|
}
|
|
4764
4830
|
) });
|
|
4765
4831
|
};
|
|
4766
|
-
|
|
4767
|
-
var
|
|
4832
|
+
Ps.displayName = Ge;
|
|
4833
|
+
var an = "TooltipTrigger", _s = s.forwardRef(
|
|
4768
4834
|
(e, t) => {
|
|
4769
|
-
const { __scopeTooltip: n, ...o } = e, r = Je(
|
|
4770
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(
|
|
4835
|
+
const { __scopeTooltip: n, ...o } = e, r = Je(an, n), i = Ln(an, n), a = It(n), c = s.useRef(null), d = V(t, c, r.onTriggerChange), l = s.useRef(!1), u = s.useRef(!1), f = s.useCallback(() => l.current = !1, []);
|
|
4836
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ p(Sr, { asChild: !0, ...a, children: /* @__PURE__ */ p(
|
|
4771
4837
|
I.button,
|
|
4772
4838
|
{
|
|
4773
4839
|
"aria-describedby": r.open ? r.contentId : void 0,
|
|
@@ -4792,25 +4858,25 @@ var sn = "TooltipTrigger", _i = s.forwardRef(
|
|
|
4792
4858
|
) });
|
|
4793
4859
|
}
|
|
4794
4860
|
);
|
|
4795
|
-
|
|
4796
|
-
var
|
|
4861
|
+
_s.displayName = an;
|
|
4862
|
+
var Fn = "TooltipPortal", [Yf, Xf] = Nt(Fn, {
|
|
4797
4863
|
forceMount: void 0
|
|
4798
|
-
}),
|
|
4799
|
-
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = Je(
|
|
4800
|
-
return /* @__PURE__ */ p(
|
|
4864
|
+
}), Ms = (e) => {
|
|
4865
|
+
const { __scopeTooltip: t, forceMount: n, children: o, container: r } = e, i = Je(Fn, t);
|
|
4866
|
+
return /* @__PURE__ */ p(Yf, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Q, { present: n || i.open, children: /* @__PURE__ */ p(ze, { asChild: !0, container: r, children: o }) }) });
|
|
4801
4867
|
};
|
|
4802
|
-
|
|
4803
|
-
var
|
|
4868
|
+
Ms.displayName = Fn;
|
|
4869
|
+
var De = "TooltipContent", As = s.forwardRef(
|
|
4804
4870
|
(e, t) => {
|
|
4805
|
-
const n =
|
|
4806
|
-
return /* @__PURE__ */ p(Q, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ p(
|
|
4871
|
+
const n = Xf(De, e.__scopeTooltip), { forceMount: o = n.forceMount, side: r = "top", ...i } = e, a = Je(De, e.__scopeTooltip);
|
|
4872
|
+
return /* @__PURE__ */ p(Q, { present: o || a.open, children: a.disableHoverableContent ? /* @__PURE__ */ p(ks, { side: r, ...i, ref: t }) : /* @__PURE__ */ p(qf, { side: r, ...i, ref: t }) });
|
|
4807
4873
|
}
|
|
4808
|
-
),
|
|
4809
|
-
const n = Je(
|
|
4874
|
+
), qf = s.forwardRef((e, t) => {
|
|
4875
|
+
const n = Je(De, e.__scopeTooltip), o = Ln(De, e.__scopeTooltip), r = s.useRef(null), i = V(t, r), [a, c] = s.useState(null), { trigger: d, onClose: l } = n, u = r.current, { onPointerInTransitChange: f } = o, h = s.useCallback(() => {
|
|
4810
4876
|
c(null), f(!1);
|
|
4811
4877
|
}, [f]), v = s.useCallback(
|
|
4812
4878
|
(w, m) => {
|
|
4813
|
-
const g = w.currentTarget, y = { x: w.clientX, y: w.clientY }, b =
|
|
4879
|
+
const g = w.currentTarget, y = { x: w.clientX, y: w.clientY }, b = ep(y, g.getBoundingClientRect()), C = tp(y, b), E = np(m.getBoundingClientRect()), x = rp([...C, ...E]);
|
|
4814
4880
|
c(x), f(!0);
|
|
4815
4881
|
},
|
|
4816
4882
|
[f]
|
|
@@ -4825,13 +4891,13 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4825
4891
|
}, [d, u, v, h]), s.useEffect(() => {
|
|
4826
4892
|
if (a) {
|
|
4827
4893
|
const w = (m) => {
|
|
4828
|
-
const g = m.target, y = { x: m.clientX, y: m.clientY }, b = d?.contains(g) || u?.contains(g), C = !
|
|
4894
|
+
const g = m.target, y = { x: m.clientX, y: m.clientY }, b = d?.contains(g) || u?.contains(g), C = !op(y, a);
|
|
4829
4895
|
b ? h() : C && (h(), l());
|
|
4830
4896
|
};
|
|
4831
4897
|
return document.addEventListener("pointermove", w), () => document.removeEventListener("pointermove", w);
|
|
4832
4898
|
}
|
|
4833
|
-
}, [d, u, a, l, h]), /* @__PURE__ */ p(
|
|
4834
|
-
}), [
|
|
4899
|
+
}, [d, u, a, l, h]), /* @__PURE__ */ p(ks, { ...e, ref: i });
|
|
4900
|
+
}), [Zf, Qf] = Nt(Ge, { isInside: !1 }), Jf = /* @__PURE__ */ Pa("TooltipContent"), ks = s.forwardRef(
|
|
4835
4901
|
(e, t) => {
|
|
4836
4902
|
const {
|
|
4837
4903
|
__scopeTooltip: n,
|
|
@@ -4840,8 +4906,8 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4840
4906
|
onEscapeKeyDown: i,
|
|
4841
4907
|
onPointerDownOutside: a,
|
|
4842
4908
|
...c
|
|
4843
|
-
} = e, d = Je(
|
|
4844
|
-
return s.useEffect(() => (document.addEventListener(
|
|
4909
|
+
} = e, d = Je(De, n), l = It(n), { onClose: u } = d;
|
|
4910
|
+
return s.useEffect(() => (document.addEventListener(sn, u), () => document.removeEventListener(sn, u)), [u]), s.useEffect(() => {
|
|
4845
4911
|
if (d.trigger) {
|
|
4846
4912
|
const f = (h) => {
|
|
4847
4913
|
h.target?.contains(d.trigger) && u();
|
|
@@ -4849,7 +4915,7 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4849
4915
|
return window.addEventListener("scroll", f, { capture: !0 }), () => window.removeEventListener("scroll", f, { capture: !0 });
|
|
4850
4916
|
}
|
|
4851
4917
|
}, [d.trigger, u]), /* @__PURE__ */ p(
|
|
4852
|
-
|
|
4918
|
+
je,
|
|
4853
4919
|
{
|
|
4854
4920
|
asChild: !0,
|
|
4855
4921
|
disableOutsidePointerEvents: !1,
|
|
@@ -4857,8 +4923,8 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4857
4923
|
onPointerDownOutside: a,
|
|
4858
4924
|
onFocusOutside: (f) => f.preventDefault(),
|
|
4859
4925
|
onDismiss: u,
|
|
4860
|
-
children: /* @__PURE__ */
|
|
4861
|
-
|
|
4926
|
+
children: /* @__PURE__ */ G(
|
|
4927
|
+
Tr,
|
|
4862
4928
|
{
|
|
4863
4929
|
"data-state": d.stateAttribute,
|
|
4864
4930
|
...l,
|
|
@@ -4873,8 +4939,8 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4873
4939
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
4874
4940
|
},
|
|
4875
4941
|
children: [
|
|
4876
|
-
/* @__PURE__ */ p(
|
|
4877
|
-
/* @__PURE__ */ p(
|
|
4942
|
+
/* @__PURE__ */ p(Jf, { children: o }),
|
|
4943
|
+
/* @__PURE__ */ p(Zf, { scope: n, isInside: !0, children: /* @__PURE__ */ p(pf, { id: d.contentId, role: "tooltip", children: r || o }) })
|
|
4878
4944
|
]
|
|
4879
4945
|
}
|
|
4880
4946
|
)
|
|
@@ -4882,18 +4948,18 @@ var Ne = "TooltipContent", Ai = s.forwardRef(
|
|
|
4882
4948
|
);
|
|
4883
4949
|
}
|
|
4884
4950
|
);
|
|
4885
|
-
|
|
4886
|
-
var
|
|
4951
|
+
As.displayName = De;
|
|
4952
|
+
var Os = "TooltipArrow", Ds = s.forwardRef(
|
|
4887
4953
|
(e, t) => {
|
|
4888
|
-
const { __scopeTooltip: n, ...o } = e, r =
|
|
4889
|
-
return
|
|
4890
|
-
|
|
4954
|
+
const { __scopeTooltip: n, ...o } = e, r = It(n);
|
|
4955
|
+
return Qf(
|
|
4956
|
+
Os,
|
|
4891
4957
|
n
|
|
4892
4958
|
).isInside ? null : /* @__PURE__ */ p(Pr, { ...r, ...o, ref: t });
|
|
4893
4959
|
}
|
|
4894
4960
|
);
|
|
4895
|
-
|
|
4896
|
-
function
|
|
4961
|
+
Ds.displayName = Os;
|
|
4962
|
+
function ep(e, t) {
|
|
4897
4963
|
const n = Math.abs(t.top - e.y), o = Math.abs(t.bottom - e.y), r = Math.abs(t.right - e.x), i = Math.abs(t.left - e.x);
|
|
4898
4964
|
switch (Math.min(n, o, r, i)) {
|
|
4899
4965
|
case i:
|
|
@@ -4908,7 +4974,7 @@ function yf(e, t) {
|
|
|
4908
4974
|
throw new Error("unreachable");
|
|
4909
4975
|
}
|
|
4910
4976
|
}
|
|
4911
|
-
function
|
|
4977
|
+
function tp(e, t, n = 5) {
|
|
4912
4978
|
const o = [];
|
|
4913
4979
|
switch (t) {
|
|
4914
4980
|
case "top":
|
|
@@ -4938,7 +5004,7 @@ function bf(e, t, n = 5) {
|
|
|
4938
5004
|
}
|
|
4939
5005
|
return o;
|
|
4940
5006
|
}
|
|
4941
|
-
function
|
|
5007
|
+
function np(e) {
|
|
4942
5008
|
const { top: t, right: n, bottom: o, left: r } = e;
|
|
4943
5009
|
return [
|
|
4944
5010
|
{ x: r, y: t },
|
|
@@ -4947,7 +5013,7 @@ function Cf(e) {
|
|
|
4947
5013
|
{ x: r, y: o }
|
|
4948
5014
|
];
|
|
4949
5015
|
}
|
|
4950
|
-
function
|
|
5016
|
+
function op(e, t) {
|
|
4951
5017
|
const { x: n, y: o } = e;
|
|
4952
5018
|
let r = !1;
|
|
4953
5019
|
for (let i = 0, a = t.length - 1; i < t.length; a = i++) {
|
|
@@ -4956,11 +5022,11 @@ function Ef(e, t) {
|
|
|
4956
5022
|
}
|
|
4957
5023
|
return r;
|
|
4958
5024
|
}
|
|
4959
|
-
function
|
|
5025
|
+
function rp(e) {
|
|
4960
5026
|
const t = e.slice();
|
|
4961
|
-
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),
|
|
5027
|
+
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), sp(t);
|
|
4962
5028
|
}
|
|
4963
|
-
function
|
|
5029
|
+
function sp(e) {
|
|
4964
5030
|
if (e.length <= 1) return e.slice();
|
|
4965
5031
|
const t = [];
|
|
4966
5032
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -4985,14 +5051,14 @@ function Rf(e) {
|
|
|
4985
5051
|
}
|
|
4986
5052
|
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);
|
|
4987
5053
|
}
|
|
4988
|
-
var
|
|
4989
|
-
const
|
|
4990
|
-
tooltipContent:
|
|
4991
|
-
tooltipArrow:
|
|
4992
|
-
},
|
|
4993
|
-
function
|
|
4994
|
-
return t === void 0 ? /* @__PURE__ */ p(Ce, { children: e }) : /* @__PURE__ */
|
|
4995
|
-
|
|
5054
|
+
var ip = Ts, ap = Ps, cp = _s, lp = Ms, up = As, dp = Ds;
|
|
5055
|
+
const fp = "_tooltipContent_17t5h_1", pp = "_tooltipArrow_17t5h_12", po = {
|
|
5056
|
+
tooltipContent: fp,
|
|
5057
|
+
tooltipArrow: pp
|
|
5058
|
+
}, Ap = ({ ...e }) => /* @__PURE__ */ p(ip, { ...e });
|
|
5059
|
+
function kp({ children: e, content: t, open: n, defaultOpen: o, onOpenChange: r, ...i }) {
|
|
5060
|
+
return t === void 0 ? /* @__PURE__ */ p(Ce, { children: e }) : /* @__PURE__ */ G(
|
|
5061
|
+
ap,
|
|
4996
5062
|
{
|
|
4997
5063
|
open: n,
|
|
4998
5064
|
defaultOpen: o,
|
|
@@ -5002,43 +5068,57 @@ function Gf({ children: e, content: t, open: n, defaultOpen: o, onOpenChange: r,
|
|
|
5002
5068
|
disableHoverableContent: !0,
|
|
5003
5069
|
delayDuration: 200,
|
|
5004
5070
|
children: [
|
|
5005
|
-
/* @__PURE__ */ p(
|
|
5006
|
-
/* @__PURE__ */ p(
|
|
5071
|
+
/* @__PURE__ */ p(cp, { asChild: !0, children: e }),
|
|
5072
|
+
/* @__PURE__ */ p(lp, { children: /* @__PURE__ */ G(up, { className: po.tooltipContent, ...i, sideOffset: 4, children: [
|
|
5007
5073
|
t,
|
|
5008
|
-
/* @__PURE__ */ p(
|
|
5074
|
+
/* @__PURE__ */ p(dp, { className: po.tooltipArrow })
|
|
5009
5075
|
] }) })
|
|
5010
5076
|
]
|
|
5011
5077
|
}
|
|
5012
5078
|
);
|
|
5013
5079
|
}
|
|
5014
5080
|
export {
|
|
5015
|
-
|
|
5016
|
-
|
|
5017
|
-
|
|
5081
|
+
zi as ArrowLeft,
|
|
5082
|
+
Yi as ArrowRight,
|
|
5083
|
+
ln as Button,
|
|
5084
|
+
Xi as Calendar,
|
|
5018
5085
|
mo as Check,
|
|
5019
|
-
|
|
5020
|
-
|
|
5086
|
+
Ep as Checkbox,
|
|
5087
|
+
wp as ChevronDown,
|
|
5088
|
+
yp as ChevronLeft,
|
|
5089
|
+
bp as ChevronRight,
|
|
5090
|
+
Cp as ChevronUp,
|
|
5091
|
+
qi as Circle,
|
|
5021
5092
|
ho as Close,
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5027
|
-
|
|
5028
|
-
|
|
5029
|
-
|
|
5030
|
-
|
|
5031
|
-
|
|
5032
|
-
|
|
5033
|
-
|
|
5034
|
-
|
|
5035
|
-
|
|
5093
|
+
Zi as Coffee,
|
|
5094
|
+
Sp as Dialog,
|
|
5095
|
+
Qi as ExternalLink,
|
|
5096
|
+
Ji as Gear,
|
|
5097
|
+
ea as Hammer,
|
|
5098
|
+
ta as Heart,
|
|
5099
|
+
zt as IconMap,
|
|
5100
|
+
na as Inbox,
|
|
5101
|
+
ra as Kebab,
|
|
5102
|
+
oa as Lamp,
|
|
5103
|
+
sa as Lightning,
|
|
5104
|
+
ia as LogIn,
|
|
5105
|
+
aa as LogOut,
|
|
5106
|
+
ca as Mail,
|
|
5107
|
+
la as Menu,
|
|
5108
|
+
Pp as MenuButton,
|
|
5109
|
+
_p as MenuButtonItem,
|
|
5110
|
+
ua as NoMobile,
|
|
5111
|
+
da as Pencil,
|
|
5112
|
+
fa as Plus,
|
|
5113
|
+
pa as Signpost,
|
|
5036
5114
|
vo as Spinner,
|
|
5037
|
-
|
|
5038
|
-
|
|
5039
|
-
|
|
5040
|
-
|
|
5041
|
-
|
|
5042
|
-
|
|
5043
|
-
|
|
5115
|
+
ma as SunMoon,
|
|
5116
|
+
Uf as Toast,
|
|
5117
|
+
Mp as ToastProvider,
|
|
5118
|
+
Kf as ToastViewport,
|
|
5119
|
+
kp as Tooltip,
|
|
5120
|
+
Ap as TooltipProvider,
|
|
5121
|
+
F as createIcon,
|
|
5122
|
+
Rp as dialogSizes,
|
|
5123
|
+
gp as iconSizes
|
|
5044
5124
|
};
|