@fluid-app/fluid-cli-theme-dev 0.1.433 → 0.1.434
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/dist-cli-preview/.vite/manifest.json +311 -314
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/{Breadcrumb-D_SqXp7d.js → Breadcrumb-BKdVGms9.js} +1 -1
- package/dist/dist-cli-preview/chunks/{Combobox-Km3Vrphp.js → Combobox-CyU4gagO.js} +27 -27
- package/dist/dist-cli-preview/chunks/{ContactsScreen-kuRxflCD.js → ContactsScreen-nqNyMwxa.js} +370 -370
- package/dist/dist-cli-preview/chunks/MediaScreen-BGWqRFE4.js +8 -0
- package/dist/dist-cli-preview/chunks/{MemberManagementProviders-BS6VVAvZ.js → MemberManagementProviders-D8tSqPWo.js} +6 -6
- package/dist/dist-cli-preview/chunks/{MemberShareablesScreen-DMuIxGxX.js → MemberShareablesScreen-nYcxHAnv.js} +1313 -1329
- package/dist/dist-cli-preview/chunks/MessagingScreen-DaCvmrAU.js +50551 -0
- package/dist/dist-cli-preview/chunks/MobileActionSheet-DaIBkwQD.js +3884 -0
- package/dist/dist-cli-preview/chunks/{MySiteScreen-Ch1cOkKp.js → MySiteScreen-BYY4CFhu.js} +15 -15
- package/dist/dist-cli-preview/chunks/OrdersScreen-DDdLpJ-7.js +9 -0
- package/dist/dist-cli-preview/chunks/{OrdersScreen-DFqHUrkC.js → OrdersScreen-DkZKc0Z_.js} +7 -7
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-F04j44L-.js +8 -0
- package/dist/dist-cli-preview/chunks/{PortalTenantClientProvider-DWOzWTBJ.js → PortalTenantClientProvider-D6a79po2.js} +1 -1
- package/dist/dist-cli-preview/chunks/{ProfileScreen-C_gqCV47.js → ProfileScreen-BPw0o_kl.js} +222 -237
- package/dist/dist-cli-preview/chunks/{SubscriptionsScreen-DiXGHeoZ.js → SubscriptionsScreen-DuiI_9iF.js} +3 -3
- package/dist/dist-cli-preview/chunks/{account-screen-runtime-BjzMc3GU.js → account-screen-runtime-BYj9PrHT.js} +2326 -2358
- package/dist/dist-cli-preview/chunks/ar-1KIG4DjU.js +1032 -0
- package/dist/dist-cli-preview/chunks/{arrow-left-D62DJteK.js → arrow-left-DnjGVTam.js} +1 -1
- package/dist/dist-cli-preview/chunks/bg-yBy5d6ww.js +1032 -0
- package/dist/dist-cli-preview/chunks/bn-BDIXtBiu.js +1032 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-c45YGC1E.js → cli-preview-C-nTMZQi.js} +10 -10
- package/dist/dist-cli-preview/chunks/{client.gen-DfWiOTes.js → client.gen-DO8I8bB0.js} +9 -9
- package/dist/dist-cli-preview/chunks/{copy-zqKnEIeM.js → copy-COLmacny.js} +1 -1
- package/dist/dist-cli-preview/chunks/{countries-api-adapter-DRty_8ei.js → countries-api-adapter-B2ub-v6x.js} +2 -2
- package/dist/dist-cli-preview/chunks/{create-card-entry-container-4VLe3B5O.js → create-card-entry-container-C7h1cYNe.js} +7380 -7374
- package/dist/dist-cli-preview/chunks/cs-eyeSjS66.js +1032 -0
- package/dist/dist-cli-preview/chunks/da-BMwLUsWZ.js +1032 -0
- package/dist/dist-cli-preview/chunks/de-CWgvDnNQ.js +1032 -0
- package/dist/dist-cli-preview/chunks/el-BhX-RBtB.js +1032 -0
- package/dist/dist-cli-preview/chunks/ellipsis-wdxlMcjt.js +15 -0
- package/dist/dist-cli-preview/chunks/es-fIpwOat4.js +1032 -0
- package/dist/dist-cli-preview/chunks/{eye-Ce93vUsx.js → eye-Cs-LW2s_.js} +1 -1
- package/dist/dist-cli-preview/chunks/fi-BI9n529u.js +1032 -0
- package/dist/dist-cli-preview/chunks/fr-DMDmmtDd.js +1032 -0
- package/dist/dist-cli-preview/chunks/he-BQxAPia2.js +1032 -0
- package/dist/dist-cli-preview/chunks/{hey-api-client-GUem9W6L.js → hey-api-client-C0XYGcOp.js} +1 -1
- package/dist/dist-cli-preview/chunks/hi--CH25zD0.js +1032 -0
- package/dist/dist-cli-preview/chunks/hr-vHPscpGv.js +1032 -0
- package/dist/dist-cli-preview/chunks/hu-BQTLt458.js +1032 -0
- package/dist/dist-cli-preview/chunks/id-R9lUJSOz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{index-B_xDY7q5.js → index-C3BTHcpz.js} +249 -232
- package/dist/dist-cli-preview/chunks/{index-DotYg_8P.js → index-DSTWchdg.js} +2294 -2088
- package/dist/dist-cli-preview/chunks/index-qwhiPvOP.js +135 -0
- package/dist/dist-cli-preview/chunks/isAfter-CcghMy5x.js +1324 -0
- package/dist/dist-cli-preview/chunks/it-iN8sGAC0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ja-BGIZaAW0.js +1032 -0
- package/dist/dist-cli-preview/chunks/ko-Cr6Wl_2I.js +1032 -0
- package/dist/dist-cli-preview/chunks/log-out-BIykSy7b.js +30 -0
- package/dist/dist-cli-preview/chunks/{map-pin-C_2_P4BZ.js → map-pin-Be34_dU6.js} +1 -1
- package/dist/dist-cli-preview/chunks/messaging-D7ENrup9.js +4 -0
- package/dist/dist-cli-preview/chunks/{mount-account-screen-DLu4WsoN.js → mount-account-screen-BfLjUsgR.js} +8 -8
- package/dist/dist-cli-preview/chunks/ms-CVPERbjz.js +1032 -0
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-Zm16FA01.js → navigate-account-screen-CiKHtySl.js} +1 -1
- package/dist/dist-cli-preview/chunks/nl-38XjLPxf.js +1032 -0
- package/dist/dist-cli-preview/chunks/no-C9CyNben.js +1032 -0
- package/dist/dist-cli-preview/chunks/pause-BBpqu34U.js +41 -0
- package/dist/dist-cli-preview/chunks/pl-DmR9h5su.js +1032 -0
- package/dist/dist-cli-preview/chunks/pt-t-mbd11H.js +1032 -0
- package/dist/dist-cli-preview/chunks/ro-T2DyDJMM.js +1032 -0
- package/dist/dist-cli-preview/chunks/ru-DEgbQN8m.js +1032 -0
- package/dist/dist-cli-preview/chunks/{schemas-CcDaDYH8.js → schemas-EHBiwcQ2.js} +1748 -1618
- package/dist/dist-cli-preview/chunks/{screen-route-slug-utils-CKharc6_.js → screen-route-slug-utils-Bq-L-ohr.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sheet-haptics-context-DTfySPrq.js → sheet-haptics-context-DT2_eUzd.js} +1 -1
- package/dist/dist-cli-preview/chunks/{sidebar-CkC-f9zG.js → sidebar-C09syHYk.js} +10 -10
- package/dist/dist-cli-preview/chunks/sk-CFYGY_a5.js +1032 -0
- package/dist/dist-cli-preview/chunks/{sortable.esm-e9hcrOle.js → sortable.esm-ClljxXn3.js} +2 -2
- package/dist/dist-cli-preview/chunks/{store-api-context-CDtl_X71.js → store-api-context-DzwRm7gt.js} +1 -1
- package/dist/dist-cli-preview/chunks/sv-i61vcDan.js +1032 -0
- package/dist/dist-cli-preview/chunks/th-DfFRan1t.js +1032 -0
- package/dist/dist-cli-preview/chunks/tl-olBNOPcn.js +1032 -0
- package/dist/dist-cli-preview/chunks/tr-LZKZ4tKb.js +1032 -0
- package/dist/dist-cli-preview/chunks/trash-2-CZhp1ODr.js +17 -0
- package/dist/dist-cli-preview/chunks/uk-BtXttbkl.js +1032 -0
- package/dist/dist-cli-preview/chunks/{use-mobile-DF76-293.js → use-mobile-B7ojcHh2.js} +3 -3
- package/dist/dist-cli-preview/chunks/{use-optional-store-DT9WAQPd.js → use-optional-store-DJYDCvhI.js} +2 -2
- package/dist/dist-cli-preview/chunks/use-store-DeK8QAFv.js +400 -0
- package/dist/dist-cli-preview/chunks/{useInfiniteQuery-CDXQnWw0.js → useInfiniteQuery-FHeNizQM.js} +1 -1
- package/dist/dist-cli-preview/chunks/{user-B-jZvwGL.js → user-ozIT6Hhj.js} +1 -1
- package/dist/dist-cli-preview/chunks/{users-TuK7MiQN.js → users-JoDv7hjw.js} +1 -1
- package/dist/dist-cli-preview/chunks/vi-BHWnhETf.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_CN-CTgClYOF.js +1032 -0
- package/dist/dist-cli-preview/chunks/zh_TW-aQ6cE6PF.js +1032 -0
- package/package.json +2 -2
- package/dist/dist-cli-preview/chunks/MediaScreen-BvJdBMeQ.js +0 -8
- package/dist/dist-cli-preview/chunks/MessagingScreen-BKHqT1Ej.js +0 -35760
- package/dist/dist-cli-preview/chunks/MobileActionSheet-CBoGiv4j.js +0 -2950
- package/dist/dist-cli-preview/chunks/OrdersScreen-BGgj4BZS.js +0 -9
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-Bx1XIkZA.js +0 -8
- package/dist/dist-cli-preview/chunks/Select-sVTiAmsy.js +0 -952
- package/dist/dist-cli-preview/chunks/Textarea-D-fkMEdH.js +0 -349
- package/dist/dist-cli-preview/chunks/ar-2rvzIrIR.js +0 -626
- package/dist/dist-cli-preview/chunks/bg-BYPRLePV.js +0 -626
- package/dist/dist-cli-preview/chunks/bn-C0wttE43.js +0 -626
- package/dist/dist-cli-preview/chunks/cs-C7Irs0-j.js +0 -626
- package/dist/dist-cli-preview/chunks/da-80sKijLl.js +0 -626
- package/dist/dist-cli-preview/chunks/de-tvILU4R6.js +0 -626
- package/dist/dist-cli-preview/chunks/el-B3kxyML7.js +0 -626
- package/dist/dist-cli-preview/chunks/es-BTQqBZ3c.js +0 -626
- package/dist/dist-cli-preview/chunks/fi-B3aiDLBd.js +0 -626
- package/dist/dist-cli-preview/chunks/fr-C6aLQLnC.js +0 -626
- package/dist/dist-cli-preview/chunks/he-yMMGeZ3u.js +0 -626
- package/dist/dist-cli-preview/chunks/hi-Cnovv3v0.js +0 -626
- package/dist/dist-cli-preview/chunks/hr-B9M6sJu9.js +0 -626
- package/dist/dist-cli-preview/chunks/hu-D__s9KvX.js +0 -626
- package/dist/dist-cli-preview/chunks/id-CrrK_-vk.js +0 -626
- package/dist/dist-cli-preview/chunks/index-BF-Yok75.js +0 -341
- package/dist/dist-cli-preview/chunks/it-C_g-lMfy.js +0 -626
- package/dist/dist-cli-preview/chunks/ja-Dmdbg-it.js +0 -626
- package/dist/dist-cli-preview/chunks/ko-C-jyYnAw.js +0 -626
- package/dist/dist-cli-preview/chunks/lock-B3ps7XBv.js +0 -14
- package/dist/dist-cli-preview/chunks/log-out-CDzQuZ5N.js +0 -15
- package/dist/dist-cli-preview/chunks/messaging-BETZIbiu.js +0 -4
- package/dist/dist-cli-preview/chunks/ms-Bk6rBm7W.js +0 -626
- package/dist/dist-cli-preview/chunks/nl-Bh5tyFlK.js +0 -626
- package/dist/dist-cli-preview/chunks/no-BqMQtHFU.js +0 -626
- package/dist/dist-cli-preview/chunks/pl-B4xTBpA_.js +0 -626
- package/dist/dist-cli-preview/chunks/pt-Biz6F-Fo.js +0 -626
- package/dist/dist-cli-preview/chunks/ro-BKd4fPGi.js +0 -626
- package/dist/dist-cli-preview/chunks/ru-CD8HG55y.js +0 -626
- package/dist/dist-cli-preview/chunks/sk-5vqOdyEq.js +0 -626
- package/dist/dist-cli-preview/chunks/sv-D-_y-QCE.js +0 -626
- package/dist/dist-cli-preview/chunks/th-BHVHNGsc.js +0 -626
- package/dist/dist-cli-preview/chunks/tl-DdaRIJXv.js +0 -626
- package/dist/dist-cli-preview/chunks/tr-CP55XLFp.js +0 -626
- package/dist/dist-cli-preview/chunks/trash-2-C5c1weGY.js +0 -137
- package/dist/dist-cli-preview/chunks/uk-C5cwrSwu.js +0 -626
- package/dist/dist-cli-preview/chunks/use-store-DUukxuYV.js +0 -92
- package/dist/dist-cli-preview/chunks/vi-7y-mSoow.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_CN-cvRqvqNw.js +0 -626
- package/dist/dist-cli-preview/chunks/zh_TW-_Qzm5B74.js +0 -626
|
@@ -1,2950 +0,0 @@
|
|
|
1
|
-
import { c as $t, l as u, j as p, ab as K, a7 as Ao, aa as Ae, aj as J, aY as So, ac as Se, ad as At, bq as Gt, ba as fe, am as A, ak as Bt, aW as Ve, al as ge, bb as Kt, bp as Ht, br as Vt, bs as Wt, bt as zt, bu as Ut, bv as Yt, bc as Xt, bx as _o, be as qt, M as re, R as Eo, K as Oo } from "./account-screen-runtime-BjzMc3GU.js";
|
|
2
|
-
import { M as Do, C as Io } from "./schemas-CcDaDYH8.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license lucide-react v0.575.0 - ISC
|
|
5
|
-
*
|
|
6
|
-
* This source code is licensed under the ISC license.
|
|
7
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
-
*/
|
|
9
|
-
const To = [["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]], Xi = $t("chevron-down", To);
|
|
10
|
-
/**
|
|
11
|
-
* @license lucide-react v0.575.0 - ISC
|
|
12
|
-
*
|
|
13
|
-
* This source code is licensed under the ISC license.
|
|
14
|
-
* See the LICENSE file in the root directory of this source tree.
|
|
15
|
-
*/
|
|
16
|
-
const No = [
|
|
17
|
-
["circle", { cx: "12", cy: "12", r: "1", key: "41hilf" }],
|
|
18
|
-
["circle", { cx: "12", cy: "5", r: "1", key: "gxeob9" }],
|
|
19
|
-
["circle", { cx: "12", cy: "19", r: "1", key: "lyex9k" }]
|
|
20
|
-
], qi = $t("ellipsis-vertical", No);
|
|
21
|
-
var jo = Object.freeze({
|
|
22
|
-
// See: https://github.com/twbs/bootstrap/blob/main/scss/mixins/_visually-hidden.scss
|
|
23
|
-
position: "absolute",
|
|
24
|
-
border: 0,
|
|
25
|
-
width: 1,
|
|
26
|
-
height: 1,
|
|
27
|
-
padding: 0,
|
|
28
|
-
margin: -1,
|
|
29
|
-
overflow: "hidden",
|
|
30
|
-
clip: "rect(0, 0, 0, 0)",
|
|
31
|
-
whiteSpace: "nowrap",
|
|
32
|
-
wordWrap: "normal"
|
|
33
|
-
}), Fo = "VisuallyHidden", Zt = u.forwardRef(
|
|
34
|
-
(e, t) => /* @__PURE__ */ p.jsx(
|
|
35
|
-
K.span,
|
|
36
|
-
{
|
|
37
|
-
...e,
|
|
38
|
-
ref: t,
|
|
39
|
-
style: { ...jo, ...e.style }
|
|
40
|
-
}
|
|
41
|
-
)
|
|
42
|
-
);
|
|
43
|
-
Zt.displayName = Fo;
|
|
44
|
-
var Zi = Zt;
|
|
45
|
-
const ko = ["top", "right", "bottom", "left"], ne = Math.min, H = Math.max, Le = Math.round, Fe = Math.floor, q = (e) => ({
|
|
46
|
-
x: e,
|
|
47
|
-
y: e
|
|
48
|
-
}), Lo = {
|
|
49
|
-
left: "right",
|
|
50
|
-
right: "left",
|
|
51
|
-
bottom: "top",
|
|
52
|
-
top: "bottom"
|
|
53
|
-
}, $o = {
|
|
54
|
-
start: "end",
|
|
55
|
-
end: "start"
|
|
56
|
-
};
|
|
57
|
-
function nt(e, t, n) {
|
|
58
|
-
return H(e, ne(t, n));
|
|
59
|
-
}
|
|
60
|
-
function ee(e, t) {
|
|
61
|
-
return typeof e == "function" ? e(t) : e;
|
|
62
|
-
}
|
|
63
|
-
function te(e) {
|
|
64
|
-
return e.split("-")[0];
|
|
65
|
-
}
|
|
66
|
-
function he(e) {
|
|
67
|
-
return e.split("-")[1];
|
|
68
|
-
}
|
|
69
|
-
function at(e) {
|
|
70
|
-
return e === "x" ? "y" : "x";
|
|
71
|
-
}
|
|
72
|
-
function ct(e) {
|
|
73
|
-
return e === "y" ? "height" : "width";
|
|
74
|
-
}
|
|
75
|
-
const Go = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
76
|
-
function X(e) {
|
|
77
|
-
return Go.has(te(e)) ? "y" : "x";
|
|
78
|
-
}
|
|
79
|
-
function lt(e) {
|
|
80
|
-
return at(X(e));
|
|
81
|
-
}
|
|
82
|
-
function Bo(e, t, n) {
|
|
83
|
-
n === void 0 && (n = !1);
|
|
84
|
-
const o = he(e), r = lt(e), s = ct(r);
|
|
85
|
-
let i = r === "x" ? o === (n ? "end" : "start") ? "right" : "left" : o === "start" ? "bottom" : "top";
|
|
86
|
-
return t.reference[s] > t.floating[s] && (i = $e(i)), [i, $e(i)];
|
|
87
|
-
}
|
|
88
|
-
function Ko(e) {
|
|
89
|
-
const t = $e(e);
|
|
90
|
-
return [ot(e), t, ot(t)];
|
|
91
|
-
}
|
|
92
|
-
function ot(e) {
|
|
93
|
-
return e.replace(/start|end/g, (t) => $o[t]);
|
|
94
|
-
}
|
|
95
|
-
const St = ["left", "right"], _t = ["right", "left"], Ho = ["top", "bottom"], Vo = ["bottom", "top"];
|
|
96
|
-
function Wo(e, t, n) {
|
|
97
|
-
switch (e) {
|
|
98
|
-
case "top":
|
|
99
|
-
case "bottom":
|
|
100
|
-
return n ? t ? _t : St : t ? St : _t;
|
|
101
|
-
case "left":
|
|
102
|
-
case "right":
|
|
103
|
-
return t ? Ho : Vo;
|
|
104
|
-
default:
|
|
105
|
-
return [];
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
function zo(e, t, n, o) {
|
|
109
|
-
const r = he(e);
|
|
110
|
-
let s = Wo(te(e), n === "start", o);
|
|
111
|
-
return r && (s = s.map((i) => i + "-" + r), t && (s = s.concat(s.map(ot)))), s;
|
|
112
|
-
}
|
|
113
|
-
function $e(e) {
|
|
114
|
-
return e.replace(/left|right|bottom|top/g, (t) => Lo[t]);
|
|
115
|
-
}
|
|
116
|
-
function Uo(e) {
|
|
117
|
-
return {
|
|
118
|
-
top: 0,
|
|
119
|
-
right: 0,
|
|
120
|
-
bottom: 0,
|
|
121
|
-
left: 0,
|
|
122
|
-
...e
|
|
123
|
-
};
|
|
124
|
-
}
|
|
125
|
-
function Jt(e) {
|
|
126
|
-
return typeof e != "number" ? Uo(e) : {
|
|
127
|
-
top: e,
|
|
128
|
-
right: e,
|
|
129
|
-
bottom: e,
|
|
130
|
-
left: e
|
|
131
|
-
};
|
|
132
|
-
}
|
|
133
|
-
function Ge(e) {
|
|
134
|
-
const {
|
|
135
|
-
x: t,
|
|
136
|
-
y: n,
|
|
137
|
-
width: o,
|
|
138
|
-
height: r
|
|
139
|
-
} = e;
|
|
140
|
-
return {
|
|
141
|
-
width: o,
|
|
142
|
-
height: r,
|
|
143
|
-
top: n,
|
|
144
|
-
left: t,
|
|
145
|
-
right: t + o,
|
|
146
|
-
bottom: n + r,
|
|
147
|
-
x: t,
|
|
148
|
-
y: n
|
|
149
|
-
};
|
|
150
|
-
}
|
|
151
|
-
function Et(e, t, n) {
|
|
152
|
-
let {
|
|
153
|
-
reference: o,
|
|
154
|
-
floating: r
|
|
155
|
-
} = e;
|
|
156
|
-
const s = X(t), i = lt(t), a = ct(i), d = te(t), f = s === "y", l = o.x + o.width / 2 - r.width / 2, c = o.y + o.height / 2 - r.height / 2, m = o[a] / 2 - r[a] / 2;
|
|
157
|
-
let g;
|
|
158
|
-
switch (d) {
|
|
159
|
-
case "top":
|
|
160
|
-
g = {
|
|
161
|
-
x: l,
|
|
162
|
-
y: o.y - r.height
|
|
163
|
-
};
|
|
164
|
-
break;
|
|
165
|
-
case "bottom":
|
|
166
|
-
g = {
|
|
167
|
-
x: l,
|
|
168
|
-
y: o.y + o.height
|
|
169
|
-
};
|
|
170
|
-
break;
|
|
171
|
-
case "right":
|
|
172
|
-
g = {
|
|
173
|
-
x: o.x + o.width,
|
|
174
|
-
y: c
|
|
175
|
-
};
|
|
176
|
-
break;
|
|
177
|
-
case "left":
|
|
178
|
-
g = {
|
|
179
|
-
x: o.x - r.width,
|
|
180
|
-
y: c
|
|
181
|
-
};
|
|
182
|
-
break;
|
|
183
|
-
default:
|
|
184
|
-
g = {
|
|
185
|
-
x: o.x,
|
|
186
|
-
y: o.y
|
|
187
|
-
};
|
|
188
|
-
}
|
|
189
|
-
switch (he(t)) {
|
|
190
|
-
case "start":
|
|
191
|
-
g[i] -= m * (n && f ? -1 : 1);
|
|
192
|
-
break;
|
|
193
|
-
case "end":
|
|
194
|
-
g[i] += m * (n && f ? -1 : 1);
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
return g;
|
|
198
|
-
}
|
|
199
|
-
const Yo = async (e, t, n) => {
|
|
200
|
-
const {
|
|
201
|
-
placement: o = "bottom",
|
|
202
|
-
strategy: r = "absolute",
|
|
203
|
-
middleware: s = [],
|
|
204
|
-
platform: i
|
|
205
|
-
} = n, a = s.filter(Boolean), d = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
206
|
-
let f = await i.getElementRects({
|
|
207
|
-
reference: e,
|
|
208
|
-
floating: t,
|
|
209
|
-
strategy: r
|
|
210
|
-
}), {
|
|
211
|
-
x: l,
|
|
212
|
-
y: c
|
|
213
|
-
} = Et(f, o, d), m = o, g = {}, h = 0;
|
|
214
|
-
for (let w = 0; w < a.length; w++) {
|
|
215
|
-
const {
|
|
216
|
-
name: v,
|
|
217
|
-
fn: x
|
|
218
|
-
} = a[w], {
|
|
219
|
-
x: R,
|
|
220
|
-
y: b,
|
|
221
|
-
data: C,
|
|
222
|
-
reset: M
|
|
223
|
-
} = await x({
|
|
224
|
-
x: l,
|
|
225
|
-
y: c,
|
|
226
|
-
initialPlacement: o,
|
|
227
|
-
placement: m,
|
|
228
|
-
strategy: r,
|
|
229
|
-
middlewareData: g,
|
|
230
|
-
rects: f,
|
|
231
|
-
platform: i,
|
|
232
|
-
elements: {
|
|
233
|
-
reference: e,
|
|
234
|
-
floating: t
|
|
235
|
-
}
|
|
236
|
-
});
|
|
237
|
-
l = R ?? l, c = b ?? c, g = {
|
|
238
|
-
...g,
|
|
239
|
-
[v]: {
|
|
240
|
-
...g[v],
|
|
241
|
-
...C
|
|
242
|
-
}
|
|
243
|
-
}, M && h <= 50 && (h++, typeof M == "object" && (M.placement && (m = M.placement), M.rects && (f = M.rects === !0 ? await i.getElementRects({
|
|
244
|
-
reference: e,
|
|
245
|
-
floating: t,
|
|
246
|
-
strategy: r
|
|
247
|
-
}) : M.rects), {
|
|
248
|
-
x: l,
|
|
249
|
-
y: c
|
|
250
|
-
} = Et(f, m, d)), w = -1);
|
|
251
|
-
}
|
|
252
|
-
return {
|
|
253
|
-
x: l,
|
|
254
|
-
y: c,
|
|
255
|
-
placement: m,
|
|
256
|
-
strategy: r,
|
|
257
|
-
middlewareData: g
|
|
258
|
-
};
|
|
259
|
-
};
|
|
260
|
-
async function Ce(e, t) {
|
|
261
|
-
var n;
|
|
262
|
-
t === void 0 && (t = {});
|
|
263
|
-
const {
|
|
264
|
-
x: o,
|
|
265
|
-
y: r,
|
|
266
|
-
platform: s,
|
|
267
|
-
rects: i,
|
|
268
|
-
elements: a,
|
|
269
|
-
strategy: d
|
|
270
|
-
} = e, {
|
|
271
|
-
boundary: f = "clippingAncestors",
|
|
272
|
-
rootBoundary: l = "viewport",
|
|
273
|
-
elementContext: c = "floating",
|
|
274
|
-
altBoundary: m = !1,
|
|
275
|
-
padding: g = 0
|
|
276
|
-
} = ee(t, e), h = Jt(g), v = a[m ? c === "floating" ? "reference" : "floating" : c], x = Ge(await s.getClippingRect({
|
|
277
|
-
element: (n = await (s.isElement == null ? void 0 : s.isElement(v))) == null || n ? v : v.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
278
|
-
boundary: f,
|
|
279
|
-
rootBoundary: l,
|
|
280
|
-
strategy: d
|
|
281
|
-
})), R = c === "floating" ? {
|
|
282
|
-
x: o,
|
|
283
|
-
y: r,
|
|
284
|
-
width: i.floating.width,
|
|
285
|
-
height: i.floating.height
|
|
286
|
-
} : i.reference, b = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating)), C = await (s.isElement == null ? void 0 : s.isElement(b)) ? await (s.getScale == null ? void 0 : s.getScale(b)) || {
|
|
287
|
-
x: 1,
|
|
288
|
-
y: 1
|
|
289
|
-
} : {
|
|
290
|
-
x: 1,
|
|
291
|
-
y: 1
|
|
292
|
-
}, M = Ge(s.convertOffsetParentRelativeRectToViewportRelativeRect ? await s.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
293
|
-
elements: a,
|
|
294
|
-
rect: R,
|
|
295
|
-
offsetParent: b,
|
|
296
|
-
strategy: d
|
|
297
|
-
}) : R);
|
|
298
|
-
return {
|
|
299
|
-
top: (x.top - M.top + h.top) / C.y,
|
|
300
|
-
bottom: (M.bottom - x.bottom + h.bottom) / C.y,
|
|
301
|
-
left: (x.left - M.left + h.left) / C.x,
|
|
302
|
-
right: (M.right - x.right + h.right) / C.x
|
|
303
|
-
};
|
|
304
|
-
}
|
|
305
|
-
const Xo = (e) => ({
|
|
306
|
-
name: "arrow",
|
|
307
|
-
options: e,
|
|
308
|
-
async fn(t) {
|
|
309
|
-
const {
|
|
310
|
-
x: n,
|
|
311
|
-
y: o,
|
|
312
|
-
placement: r,
|
|
313
|
-
rects: s,
|
|
314
|
-
platform: i,
|
|
315
|
-
elements: a,
|
|
316
|
-
middlewareData: d
|
|
317
|
-
} = t, {
|
|
318
|
-
element: f,
|
|
319
|
-
padding: l = 0
|
|
320
|
-
} = ee(e, t) || {};
|
|
321
|
-
if (f == null)
|
|
322
|
-
return {};
|
|
323
|
-
const c = Jt(l), m = {
|
|
324
|
-
x: n,
|
|
325
|
-
y: o
|
|
326
|
-
}, g = lt(r), h = ct(g), w = await i.getDimensions(f), v = g === "y", x = v ? "top" : "left", R = v ? "bottom" : "right", b = v ? "clientHeight" : "clientWidth", C = s.reference[h] + s.reference[g] - m[g] - s.floating[h], M = m[g] - s.reference[g], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(f));
|
|
327
|
-
let S = E ? E[b] : 0;
|
|
328
|
-
(!S || !await (i.isElement == null ? void 0 : i.isElement(E))) && (S = a.floating[b] || s.floating[h]);
|
|
329
|
-
const _ = C / 2 - M / 2, N = S / 2 - w[h] / 2 - 1, D = ne(c[x], N), j = ne(c[R], N), F = D, T = S - w[h] - j, I = S / 2 - w[h] / 2 + _, $ = nt(F, I, T), O = !d.arrow && he(r) != null && I !== $ && s.reference[h] / 2 - (I < F ? D : j) - w[h] / 2 < 0, k = O ? I < F ? I - F : I - T : 0;
|
|
330
|
-
return {
|
|
331
|
-
[g]: m[g] + k,
|
|
332
|
-
data: {
|
|
333
|
-
[g]: $,
|
|
334
|
-
centerOffset: I - $ - k,
|
|
335
|
-
...O && {
|
|
336
|
-
alignmentOffset: k
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
reset: O
|
|
340
|
-
};
|
|
341
|
-
}
|
|
342
|
-
}), qo = function(e) {
|
|
343
|
-
return e === void 0 && (e = {}), {
|
|
344
|
-
name: "flip",
|
|
345
|
-
options: e,
|
|
346
|
-
async fn(t) {
|
|
347
|
-
var n, o;
|
|
348
|
-
const {
|
|
349
|
-
placement: r,
|
|
350
|
-
middlewareData: s,
|
|
351
|
-
rects: i,
|
|
352
|
-
initialPlacement: a,
|
|
353
|
-
platform: d,
|
|
354
|
-
elements: f
|
|
355
|
-
} = t, {
|
|
356
|
-
mainAxis: l = !0,
|
|
357
|
-
crossAxis: c = !0,
|
|
358
|
-
fallbackPlacements: m,
|
|
359
|
-
fallbackStrategy: g = "bestFit",
|
|
360
|
-
fallbackAxisSideDirection: h = "none",
|
|
361
|
-
flipAlignment: w = !0,
|
|
362
|
-
...v
|
|
363
|
-
} = ee(e, t);
|
|
364
|
-
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
365
|
-
return {};
|
|
366
|
-
const x = te(r), R = X(a), b = te(a) === a, C = await (d.isRTL == null ? void 0 : d.isRTL(f.floating)), M = m || (b || !w ? [$e(a)] : Ko(a)), E = h !== "none";
|
|
367
|
-
!m && E && M.push(...zo(a, w, h, C));
|
|
368
|
-
const S = [a, ...M], _ = await Ce(t, v), N = [];
|
|
369
|
-
let D = ((o = s.flip) == null ? void 0 : o.overflows) || [];
|
|
370
|
-
if (l && N.push(_[x]), c) {
|
|
371
|
-
const I = Bo(r, i, C);
|
|
372
|
-
N.push(_[I[0]], _[I[1]]);
|
|
373
|
-
}
|
|
374
|
-
if (D = [...D, {
|
|
375
|
-
placement: r,
|
|
376
|
-
overflows: N
|
|
377
|
-
}], !N.every((I) => I <= 0)) {
|
|
378
|
-
var j, F;
|
|
379
|
-
const I = (((j = s.flip) == null ? void 0 : j.index) || 0) + 1, $ = S[I];
|
|
380
|
-
if ($ && (!(c === "alignment" ? R !== X($) : !1) || // We leave the current main axis only if every placement on that axis
|
|
381
|
-
// overflows the main axis.
|
|
382
|
-
D.every((P) => X(P.placement) === R ? P.overflows[0] > 0 : !0)))
|
|
383
|
-
return {
|
|
384
|
-
data: {
|
|
385
|
-
index: I,
|
|
386
|
-
overflows: D
|
|
387
|
-
},
|
|
388
|
-
reset: {
|
|
389
|
-
placement: $
|
|
390
|
-
}
|
|
391
|
-
};
|
|
392
|
-
let O = (F = D.filter((k) => k.overflows[0] <= 0).sort((k, P) => k.overflows[1] - P.overflows[1])[0]) == null ? void 0 : F.placement;
|
|
393
|
-
if (!O)
|
|
394
|
-
switch (g) {
|
|
395
|
-
case "bestFit": {
|
|
396
|
-
var T;
|
|
397
|
-
const k = (T = D.filter((P) => {
|
|
398
|
-
if (E) {
|
|
399
|
-
const y = X(P.placement);
|
|
400
|
-
return y === R || // Create a bias to the `y` side axis due to horizontal
|
|
401
|
-
// reading directions favoring greater width.
|
|
402
|
-
y === "y";
|
|
403
|
-
}
|
|
404
|
-
return !0;
|
|
405
|
-
}).map((P) => [P.placement, P.overflows.filter((y) => y > 0).reduce((y, G) => y + G, 0)]).sort((P, y) => P[1] - y[1])[0]) == null ? void 0 : T[0];
|
|
406
|
-
k && (O = k);
|
|
407
|
-
break;
|
|
408
|
-
}
|
|
409
|
-
case "initialPlacement":
|
|
410
|
-
O = a;
|
|
411
|
-
break;
|
|
412
|
-
}
|
|
413
|
-
if (r !== O)
|
|
414
|
-
return {
|
|
415
|
-
reset: {
|
|
416
|
-
placement: O
|
|
417
|
-
}
|
|
418
|
-
};
|
|
419
|
-
}
|
|
420
|
-
return {};
|
|
421
|
-
}
|
|
422
|
-
};
|
|
423
|
-
};
|
|
424
|
-
function Ot(e, t) {
|
|
425
|
-
return {
|
|
426
|
-
top: e.top - t.height,
|
|
427
|
-
right: e.right - t.width,
|
|
428
|
-
bottom: e.bottom - t.height,
|
|
429
|
-
left: e.left - t.width
|
|
430
|
-
};
|
|
431
|
-
}
|
|
432
|
-
function Dt(e) {
|
|
433
|
-
return ko.some((t) => e[t] >= 0);
|
|
434
|
-
}
|
|
435
|
-
const Zo = function(e) {
|
|
436
|
-
return e === void 0 && (e = {}), {
|
|
437
|
-
name: "hide",
|
|
438
|
-
options: e,
|
|
439
|
-
async fn(t) {
|
|
440
|
-
const {
|
|
441
|
-
rects: n
|
|
442
|
-
} = t, {
|
|
443
|
-
strategy: o = "referenceHidden",
|
|
444
|
-
...r
|
|
445
|
-
} = ee(e, t);
|
|
446
|
-
switch (o) {
|
|
447
|
-
case "referenceHidden": {
|
|
448
|
-
const s = await Ce(t, {
|
|
449
|
-
...r,
|
|
450
|
-
elementContext: "reference"
|
|
451
|
-
}), i = Ot(s, n.reference);
|
|
452
|
-
return {
|
|
453
|
-
data: {
|
|
454
|
-
referenceHiddenOffsets: i,
|
|
455
|
-
referenceHidden: Dt(i)
|
|
456
|
-
}
|
|
457
|
-
};
|
|
458
|
-
}
|
|
459
|
-
case "escaped": {
|
|
460
|
-
const s = await Ce(t, {
|
|
461
|
-
...r,
|
|
462
|
-
altBoundary: !0
|
|
463
|
-
}), i = Ot(s, n.floating);
|
|
464
|
-
return {
|
|
465
|
-
data: {
|
|
466
|
-
escapedOffsets: i,
|
|
467
|
-
escaped: Dt(i)
|
|
468
|
-
}
|
|
469
|
-
};
|
|
470
|
-
}
|
|
471
|
-
default:
|
|
472
|
-
return {};
|
|
473
|
-
}
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
}, Qt = /* @__PURE__ */ new Set(["left", "top"]);
|
|
477
|
-
async function Jo(e, t) {
|
|
478
|
-
const {
|
|
479
|
-
placement: n,
|
|
480
|
-
platform: o,
|
|
481
|
-
elements: r
|
|
482
|
-
} = e, s = await (o.isRTL == null ? void 0 : o.isRTL(r.floating)), i = te(n), a = he(n), d = X(n) === "y", f = Qt.has(i) ? -1 : 1, l = s && d ? -1 : 1, c = ee(t, e);
|
|
483
|
-
let {
|
|
484
|
-
mainAxis: m,
|
|
485
|
-
crossAxis: g,
|
|
486
|
-
alignmentAxis: h
|
|
487
|
-
} = typeof c == "number" ? {
|
|
488
|
-
mainAxis: c,
|
|
489
|
-
crossAxis: 0,
|
|
490
|
-
alignmentAxis: null
|
|
491
|
-
} : {
|
|
492
|
-
mainAxis: c.mainAxis || 0,
|
|
493
|
-
crossAxis: c.crossAxis || 0,
|
|
494
|
-
alignmentAxis: c.alignmentAxis
|
|
495
|
-
};
|
|
496
|
-
return a && typeof h == "number" && (g = a === "end" ? h * -1 : h), d ? {
|
|
497
|
-
x: g * l,
|
|
498
|
-
y: m * f
|
|
499
|
-
} : {
|
|
500
|
-
x: m * f,
|
|
501
|
-
y: g * l
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
const Qo = function(e) {
|
|
505
|
-
return e === void 0 && (e = 0), {
|
|
506
|
-
name: "offset",
|
|
507
|
-
options: e,
|
|
508
|
-
async fn(t) {
|
|
509
|
-
var n, o;
|
|
510
|
-
const {
|
|
511
|
-
x: r,
|
|
512
|
-
y: s,
|
|
513
|
-
placement: i,
|
|
514
|
-
middlewareData: a
|
|
515
|
-
} = t, d = await Jo(t, e);
|
|
516
|
-
return i === ((n = a.offset) == null ? void 0 : n.placement) && (o = a.arrow) != null && o.alignmentOffset ? {} : {
|
|
517
|
-
x: r + d.x,
|
|
518
|
-
y: s + d.y,
|
|
519
|
-
data: {
|
|
520
|
-
...d,
|
|
521
|
-
placement: i
|
|
522
|
-
}
|
|
523
|
-
};
|
|
524
|
-
}
|
|
525
|
-
};
|
|
526
|
-
}, er = function(e) {
|
|
527
|
-
return e === void 0 && (e = {}), {
|
|
528
|
-
name: "shift",
|
|
529
|
-
options: e,
|
|
530
|
-
async fn(t) {
|
|
531
|
-
const {
|
|
532
|
-
x: n,
|
|
533
|
-
y: o,
|
|
534
|
-
placement: r
|
|
535
|
-
} = t, {
|
|
536
|
-
mainAxis: s = !0,
|
|
537
|
-
crossAxis: i = !1,
|
|
538
|
-
limiter: a = {
|
|
539
|
-
fn: (v) => {
|
|
540
|
-
let {
|
|
541
|
-
x,
|
|
542
|
-
y: R
|
|
543
|
-
} = v;
|
|
544
|
-
return {
|
|
545
|
-
x,
|
|
546
|
-
y: R
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
},
|
|
550
|
-
...d
|
|
551
|
-
} = ee(e, t), f = {
|
|
552
|
-
x: n,
|
|
553
|
-
y: o
|
|
554
|
-
}, l = await Ce(t, d), c = X(te(r)), m = at(c);
|
|
555
|
-
let g = f[m], h = f[c];
|
|
556
|
-
if (s) {
|
|
557
|
-
const v = m === "y" ? "top" : "left", x = m === "y" ? "bottom" : "right", R = g + l[v], b = g - l[x];
|
|
558
|
-
g = nt(R, g, b);
|
|
559
|
-
}
|
|
560
|
-
if (i) {
|
|
561
|
-
const v = c === "y" ? "top" : "left", x = c === "y" ? "bottom" : "right", R = h + l[v], b = h - l[x];
|
|
562
|
-
h = nt(R, h, b);
|
|
563
|
-
}
|
|
564
|
-
const w = a.fn({
|
|
565
|
-
...t,
|
|
566
|
-
[m]: g,
|
|
567
|
-
[c]: h
|
|
568
|
-
});
|
|
569
|
-
return {
|
|
570
|
-
...w,
|
|
571
|
-
data: {
|
|
572
|
-
x: w.x - n,
|
|
573
|
-
y: w.y - o,
|
|
574
|
-
enabled: {
|
|
575
|
-
[m]: s,
|
|
576
|
-
[c]: i
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
};
|
|
580
|
-
}
|
|
581
|
-
};
|
|
582
|
-
}, tr = function(e) {
|
|
583
|
-
return e === void 0 && (e = {}), {
|
|
584
|
-
options: e,
|
|
585
|
-
fn(t) {
|
|
586
|
-
const {
|
|
587
|
-
x: n,
|
|
588
|
-
y: o,
|
|
589
|
-
placement: r,
|
|
590
|
-
rects: s,
|
|
591
|
-
middlewareData: i
|
|
592
|
-
} = t, {
|
|
593
|
-
offset: a = 0,
|
|
594
|
-
mainAxis: d = !0,
|
|
595
|
-
crossAxis: f = !0
|
|
596
|
-
} = ee(e, t), l = {
|
|
597
|
-
x: n,
|
|
598
|
-
y: o
|
|
599
|
-
}, c = X(r), m = at(c);
|
|
600
|
-
let g = l[m], h = l[c];
|
|
601
|
-
const w = ee(a, t), v = typeof w == "number" ? {
|
|
602
|
-
mainAxis: w,
|
|
603
|
-
crossAxis: 0
|
|
604
|
-
} : {
|
|
605
|
-
mainAxis: 0,
|
|
606
|
-
crossAxis: 0,
|
|
607
|
-
...w
|
|
608
|
-
};
|
|
609
|
-
if (d) {
|
|
610
|
-
const b = m === "y" ? "height" : "width", C = s.reference[m] - s.floating[b] + v.mainAxis, M = s.reference[m] + s.reference[b] - v.mainAxis;
|
|
611
|
-
g < C ? g = C : g > M && (g = M);
|
|
612
|
-
}
|
|
613
|
-
if (f) {
|
|
614
|
-
var x, R;
|
|
615
|
-
const b = m === "y" ? "width" : "height", C = Qt.has(te(r)), M = s.reference[c] - s.floating[b] + (C && ((x = i.offset) == null ? void 0 : x[c]) || 0) + (C ? 0 : v.crossAxis), E = s.reference[c] + s.reference[b] + (C ? 0 : ((R = i.offset) == null ? void 0 : R[c]) || 0) - (C ? v.crossAxis : 0);
|
|
616
|
-
h < M ? h = M : h > E && (h = E);
|
|
617
|
-
}
|
|
618
|
-
return {
|
|
619
|
-
[m]: g,
|
|
620
|
-
[c]: h
|
|
621
|
-
};
|
|
622
|
-
}
|
|
623
|
-
};
|
|
624
|
-
}, nr = function(e) {
|
|
625
|
-
return e === void 0 && (e = {}), {
|
|
626
|
-
name: "size",
|
|
627
|
-
options: e,
|
|
628
|
-
async fn(t) {
|
|
629
|
-
var n, o;
|
|
630
|
-
const {
|
|
631
|
-
placement: r,
|
|
632
|
-
rects: s,
|
|
633
|
-
platform: i,
|
|
634
|
-
elements: a
|
|
635
|
-
} = t, {
|
|
636
|
-
apply: d = () => {
|
|
637
|
-
},
|
|
638
|
-
...f
|
|
639
|
-
} = ee(e, t), l = await Ce(t, f), c = te(r), m = he(r), g = X(r) === "y", {
|
|
640
|
-
width: h,
|
|
641
|
-
height: w
|
|
642
|
-
} = s.floating;
|
|
643
|
-
let v, x;
|
|
644
|
-
c === "top" || c === "bottom" ? (v = c, x = m === (await (i.isRTL == null ? void 0 : i.isRTL(a.floating)) ? "start" : "end") ? "left" : "right") : (x = c, v = m === "end" ? "top" : "bottom");
|
|
645
|
-
const R = w - l.top - l.bottom, b = h - l.left - l.right, C = ne(w - l[v], R), M = ne(h - l[x], b), E = !t.middlewareData.shift;
|
|
646
|
-
let S = C, _ = M;
|
|
647
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (_ = b), (o = t.middlewareData.shift) != null && o.enabled.y && (S = R), E && !m) {
|
|
648
|
-
const D = H(l.left, 0), j = H(l.right, 0), F = H(l.top, 0), T = H(l.bottom, 0);
|
|
649
|
-
g ? _ = h - 2 * (D !== 0 || j !== 0 ? D + j : H(l.left, l.right)) : S = w - 2 * (F !== 0 || T !== 0 ? F + T : H(l.top, l.bottom));
|
|
650
|
-
}
|
|
651
|
-
await d({
|
|
652
|
-
...t,
|
|
653
|
-
availableWidth: _,
|
|
654
|
-
availableHeight: S
|
|
655
|
-
});
|
|
656
|
-
const N = await i.getDimensions(a.floating);
|
|
657
|
-
return h !== N.width || w !== N.height ? {
|
|
658
|
-
reset: {
|
|
659
|
-
rects: !0
|
|
660
|
-
}
|
|
661
|
-
} : {};
|
|
662
|
-
}
|
|
663
|
-
};
|
|
664
|
-
};
|
|
665
|
-
function We() {
|
|
666
|
-
return typeof window < "u";
|
|
667
|
-
}
|
|
668
|
-
function ve(e) {
|
|
669
|
-
return en(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
670
|
-
}
|
|
671
|
-
function V(e) {
|
|
672
|
-
var t;
|
|
673
|
-
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
674
|
-
}
|
|
675
|
-
function Q(e) {
|
|
676
|
-
var t;
|
|
677
|
-
return (t = (en(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
678
|
-
}
|
|
679
|
-
function en(e) {
|
|
680
|
-
return We() ? e instanceof Node || e instanceof V(e).Node : !1;
|
|
681
|
-
}
|
|
682
|
-
function z(e) {
|
|
683
|
-
return We() ? e instanceof Element || e instanceof V(e).Element : !1;
|
|
684
|
-
}
|
|
685
|
-
function Z(e) {
|
|
686
|
-
return We() ? e instanceof HTMLElement || e instanceof V(e).HTMLElement : !1;
|
|
687
|
-
}
|
|
688
|
-
function It(e) {
|
|
689
|
-
return !We() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof V(e).ShadowRoot;
|
|
690
|
-
}
|
|
691
|
-
const or = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
692
|
-
function _e(e) {
|
|
693
|
-
const {
|
|
694
|
-
overflow: t,
|
|
695
|
-
overflowX: n,
|
|
696
|
-
overflowY: o,
|
|
697
|
-
display: r
|
|
698
|
-
} = U(e);
|
|
699
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + o + n) && !or.has(r);
|
|
700
|
-
}
|
|
701
|
-
const rr = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
702
|
-
function sr(e) {
|
|
703
|
-
return rr.has(ve(e));
|
|
704
|
-
}
|
|
705
|
-
const ir = [":popover-open", ":modal"];
|
|
706
|
-
function ze(e) {
|
|
707
|
-
return ir.some((t) => {
|
|
708
|
-
try {
|
|
709
|
-
return e.matches(t);
|
|
710
|
-
} catch {
|
|
711
|
-
return !1;
|
|
712
|
-
}
|
|
713
|
-
});
|
|
714
|
-
}
|
|
715
|
-
const ar = ["transform", "translate", "scale", "rotate", "perspective"], cr = ["transform", "translate", "scale", "rotate", "perspective", "filter"], lr = ["paint", "layout", "strict", "content"];
|
|
716
|
-
function ut(e) {
|
|
717
|
-
const t = dt(), n = z(e) ? U(e) : e;
|
|
718
|
-
return ar.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) || cr.some((o) => (n.willChange || "").includes(o)) || lr.some((o) => (n.contain || "").includes(o));
|
|
719
|
-
}
|
|
720
|
-
function ur(e) {
|
|
721
|
-
let t = oe(e);
|
|
722
|
-
for (; Z(t) && !pe(t); ) {
|
|
723
|
-
if (ut(t))
|
|
724
|
-
return t;
|
|
725
|
-
if (ze(t))
|
|
726
|
-
return null;
|
|
727
|
-
t = oe(t);
|
|
728
|
-
}
|
|
729
|
-
return null;
|
|
730
|
-
}
|
|
731
|
-
function dt() {
|
|
732
|
-
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
733
|
-
}
|
|
734
|
-
const dr = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
735
|
-
function pe(e) {
|
|
736
|
-
return dr.has(ve(e));
|
|
737
|
-
}
|
|
738
|
-
function U(e) {
|
|
739
|
-
return V(e).getComputedStyle(e);
|
|
740
|
-
}
|
|
741
|
-
function Ue(e) {
|
|
742
|
-
return z(e) ? {
|
|
743
|
-
scrollLeft: e.scrollLeft,
|
|
744
|
-
scrollTop: e.scrollTop
|
|
745
|
-
} : {
|
|
746
|
-
scrollLeft: e.scrollX,
|
|
747
|
-
scrollTop: e.scrollY
|
|
748
|
-
};
|
|
749
|
-
}
|
|
750
|
-
function oe(e) {
|
|
751
|
-
if (ve(e) === "html")
|
|
752
|
-
return e;
|
|
753
|
-
const t = (
|
|
754
|
-
// Step into the shadow DOM of the parent of a slotted node.
|
|
755
|
-
e.assignedSlot || // DOM Element detected.
|
|
756
|
-
e.parentNode || // ShadowRoot detected.
|
|
757
|
-
It(e) && e.host || // Fallback.
|
|
758
|
-
Q(e)
|
|
759
|
-
);
|
|
760
|
-
return It(t) ? t.host : t;
|
|
761
|
-
}
|
|
762
|
-
function tn(e) {
|
|
763
|
-
const t = oe(e);
|
|
764
|
-
return pe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Z(t) && _e(t) ? t : tn(t);
|
|
765
|
-
}
|
|
766
|
-
function Re(e, t, n) {
|
|
767
|
-
var o;
|
|
768
|
-
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
769
|
-
const r = tn(e), s = r === ((o = e.ownerDocument) == null ? void 0 : o.body), i = V(r);
|
|
770
|
-
if (s) {
|
|
771
|
-
const a = rt(i);
|
|
772
|
-
return t.concat(i, i.visualViewport || [], _e(r) ? r : [], a && n ? Re(a) : []);
|
|
773
|
-
}
|
|
774
|
-
return t.concat(r, Re(r, [], n));
|
|
775
|
-
}
|
|
776
|
-
function rt(e) {
|
|
777
|
-
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
778
|
-
}
|
|
779
|
-
function nn(e) {
|
|
780
|
-
const t = U(e);
|
|
781
|
-
let n = parseFloat(t.width) || 0, o = parseFloat(t.height) || 0;
|
|
782
|
-
const r = Z(e), s = r ? e.offsetWidth : n, i = r ? e.offsetHeight : o, a = Le(n) !== s || Le(o) !== i;
|
|
783
|
-
return a && (n = s, o = i), {
|
|
784
|
-
width: n,
|
|
785
|
-
height: o,
|
|
786
|
-
$: a
|
|
787
|
-
};
|
|
788
|
-
}
|
|
789
|
-
function ft(e) {
|
|
790
|
-
return z(e) ? e : e.contextElement;
|
|
791
|
-
}
|
|
792
|
-
function de(e) {
|
|
793
|
-
const t = ft(e);
|
|
794
|
-
if (!Z(t))
|
|
795
|
-
return q(1);
|
|
796
|
-
const n = t.getBoundingClientRect(), {
|
|
797
|
-
width: o,
|
|
798
|
-
height: r,
|
|
799
|
-
$: s
|
|
800
|
-
} = nn(t);
|
|
801
|
-
let i = (s ? Le(n.width) : n.width) / o, a = (s ? Le(n.height) : n.height) / r;
|
|
802
|
-
return (!i || !Number.isFinite(i)) && (i = 1), (!a || !Number.isFinite(a)) && (a = 1), {
|
|
803
|
-
x: i,
|
|
804
|
-
y: a
|
|
805
|
-
};
|
|
806
|
-
}
|
|
807
|
-
const fr = /* @__PURE__ */ q(0);
|
|
808
|
-
function on(e) {
|
|
809
|
-
const t = V(e);
|
|
810
|
-
return !dt() || !t.visualViewport ? fr : {
|
|
811
|
-
x: t.visualViewport.offsetLeft,
|
|
812
|
-
y: t.visualViewport.offsetTop
|
|
813
|
-
};
|
|
814
|
-
}
|
|
815
|
-
function pr(e, t, n) {
|
|
816
|
-
return t === void 0 && (t = !1), !n || t && n !== V(e) ? !1 : t;
|
|
817
|
-
}
|
|
818
|
-
function le(e, t, n, o) {
|
|
819
|
-
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
820
|
-
const r = e.getBoundingClientRect(), s = ft(e);
|
|
821
|
-
let i = q(1);
|
|
822
|
-
t && (o ? z(o) && (i = de(o)) : i = de(e));
|
|
823
|
-
const a = pr(s, n, o) ? on(s) : q(0);
|
|
824
|
-
let d = (r.left + a.x) / i.x, f = (r.top + a.y) / i.y, l = r.width / i.x, c = r.height / i.y;
|
|
825
|
-
if (s) {
|
|
826
|
-
const m = V(s), g = o && z(o) ? V(o) : o;
|
|
827
|
-
let h = m, w = rt(h);
|
|
828
|
-
for (; w && o && g !== h; ) {
|
|
829
|
-
const v = de(w), x = w.getBoundingClientRect(), R = U(w), b = x.left + (w.clientLeft + parseFloat(R.paddingLeft)) * v.x, C = x.top + (w.clientTop + parseFloat(R.paddingTop)) * v.y;
|
|
830
|
-
d *= v.x, f *= v.y, l *= v.x, c *= v.y, d += b, f += C, h = V(w), w = rt(h);
|
|
831
|
-
}
|
|
832
|
-
}
|
|
833
|
-
return Ge({
|
|
834
|
-
width: l,
|
|
835
|
-
height: c,
|
|
836
|
-
x: d,
|
|
837
|
-
y: f
|
|
838
|
-
});
|
|
839
|
-
}
|
|
840
|
-
function Ye(e, t) {
|
|
841
|
-
const n = Ue(e).scrollLeft;
|
|
842
|
-
return t ? t.left + n : le(Q(e)).left + n;
|
|
843
|
-
}
|
|
844
|
-
function rn(e, t) {
|
|
845
|
-
const n = e.getBoundingClientRect(), o = n.left + t.scrollLeft - Ye(e, n), r = n.top + t.scrollTop;
|
|
846
|
-
return {
|
|
847
|
-
x: o,
|
|
848
|
-
y: r
|
|
849
|
-
};
|
|
850
|
-
}
|
|
851
|
-
function mr(e) {
|
|
852
|
-
let {
|
|
853
|
-
elements: t,
|
|
854
|
-
rect: n,
|
|
855
|
-
offsetParent: o,
|
|
856
|
-
strategy: r
|
|
857
|
-
} = e;
|
|
858
|
-
const s = r === "fixed", i = Q(o), a = t ? ze(t.floating) : !1;
|
|
859
|
-
if (o === i || a && s)
|
|
860
|
-
return n;
|
|
861
|
-
let d = {
|
|
862
|
-
scrollLeft: 0,
|
|
863
|
-
scrollTop: 0
|
|
864
|
-
}, f = q(1);
|
|
865
|
-
const l = q(0), c = Z(o);
|
|
866
|
-
if ((c || !c && !s) && ((ve(o) !== "body" || _e(i)) && (d = Ue(o)), Z(o))) {
|
|
867
|
-
const g = le(o);
|
|
868
|
-
f = de(o), l.x = g.x + o.clientLeft, l.y = g.y + o.clientTop;
|
|
869
|
-
}
|
|
870
|
-
const m = i && !c && !s ? rn(i, d) : q(0);
|
|
871
|
-
return {
|
|
872
|
-
width: n.width * f.x,
|
|
873
|
-
height: n.height * f.y,
|
|
874
|
-
x: n.x * f.x - d.scrollLeft * f.x + l.x + m.x,
|
|
875
|
-
y: n.y * f.y - d.scrollTop * f.y + l.y + m.y
|
|
876
|
-
};
|
|
877
|
-
}
|
|
878
|
-
function gr(e) {
|
|
879
|
-
return Array.from(e.getClientRects());
|
|
880
|
-
}
|
|
881
|
-
function hr(e) {
|
|
882
|
-
const t = Q(e), n = Ue(e), o = e.ownerDocument.body, r = H(t.scrollWidth, t.clientWidth, o.scrollWidth, o.clientWidth), s = H(t.scrollHeight, t.clientHeight, o.scrollHeight, o.clientHeight);
|
|
883
|
-
let i = -n.scrollLeft + Ye(e);
|
|
884
|
-
const a = -n.scrollTop;
|
|
885
|
-
return U(o).direction === "rtl" && (i += H(t.clientWidth, o.clientWidth) - r), {
|
|
886
|
-
width: r,
|
|
887
|
-
height: s,
|
|
888
|
-
x: i,
|
|
889
|
-
y: a
|
|
890
|
-
};
|
|
891
|
-
}
|
|
892
|
-
const Tt = 25;
|
|
893
|
-
function vr(e, t) {
|
|
894
|
-
const n = V(e), o = Q(e), r = n.visualViewport;
|
|
895
|
-
let s = o.clientWidth, i = o.clientHeight, a = 0, d = 0;
|
|
896
|
-
if (r) {
|
|
897
|
-
s = r.width, i = r.height;
|
|
898
|
-
const l = dt();
|
|
899
|
-
(!l || l && t === "fixed") && (a = r.offsetLeft, d = r.offsetTop);
|
|
900
|
-
}
|
|
901
|
-
const f = Ye(o);
|
|
902
|
-
if (f <= 0) {
|
|
903
|
-
const l = o.ownerDocument, c = l.body, m = getComputedStyle(c), g = l.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, h = Math.abs(o.clientWidth - c.clientWidth - g);
|
|
904
|
-
h <= Tt && (s -= h);
|
|
905
|
-
} else f <= Tt && (s += f);
|
|
906
|
-
return {
|
|
907
|
-
width: s,
|
|
908
|
-
height: i,
|
|
909
|
-
x: a,
|
|
910
|
-
y: d
|
|
911
|
-
};
|
|
912
|
-
}
|
|
913
|
-
const wr = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
914
|
-
function xr(e, t) {
|
|
915
|
-
const n = le(e, !0, t === "fixed"), o = n.top + e.clientTop, r = n.left + e.clientLeft, s = Z(e) ? de(e) : q(1), i = e.clientWidth * s.x, a = e.clientHeight * s.y, d = r * s.x, f = o * s.y;
|
|
916
|
-
return {
|
|
917
|
-
width: i,
|
|
918
|
-
height: a,
|
|
919
|
-
x: d,
|
|
920
|
-
y: f
|
|
921
|
-
};
|
|
922
|
-
}
|
|
923
|
-
function Nt(e, t, n) {
|
|
924
|
-
let o;
|
|
925
|
-
if (t === "viewport")
|
|
926
|
-
o = vr(e, n);
|
|
927
|
-
else if (t === "document")
|
|
928
|
-
o = hr(Q(e));
|
|
929
|
-
else if (z(t))
|
|
930
|
-
o = xr(t, n);
|
|
931
|
-
else {
|
|
932
|
-
const r = on(e);
|
|
933
|
-
o = {
|
|
934
|
-
x: t.x - r.x,
|
|
935
|
-
y: t.y - r.y,
|
|
936
|
-
width: t.width,
|
|
937
|
-
height: t.height
|
|
938
|
-
};
|
|
939
|
-
}
|
|
940
|
-
return Ge(o);
|
|
941
|
-
}
|
|
942
|
-
function sn(e, t) {
|
|
943
|
-
const n = oe(e);
|
|
944
|
-
return n === t || !z(n) || pe(n) ? !1 : U(n).position === "fixed" || sn(n, t);
|
|
945
|
-
}
|
|
946
|
-
function yr(e, t) {
|
|
947
|
-
const n = t.get(e);
|
|
948
|
-
if (n)
|
|
949
|
-
return n;
|
|
950
|
-
let o = Re(e, [], !1).filter((a) => z(a) && ve(a) !== "body"), r = null;
|
|
951
|
-
const s = U(e).position === "fixed";
|
|
952
|
-
let i = s ? oe(e) : e;
|
|
953
|
-
for (; z(i) && !pe(i); ) {
|
|
954
|
-
const a = U(i), d = ut(i);
|
|
955
|
-
!d && a.position === "fixed" && (r = null), (s ? !d && !r : !d && a.position === "static" && !!r && wr.has(r.position) || _e(i) && !d && sn(e, i)) ? o = o.filter((l) => l !== i) : r = a, i = oe(i);
|
|
956
|
-
}
|
|
957
|
-
return t.set(e, o), o;
|
|
958
|
-
}
|
|
959
|
-
function br(e) {
|
|
960
|
-
let {
|
|
961
|
-
element: t,
|
|
962
|
-
boundary: n,
|
|
963
|
-
rootBoundary: o,
|
|
964
|
-
strategy: r
|
|
965
|
-
} = e;
|
|
966
|
-
const i = [...n === "clippingAncestors" ? ze(t) ? [] : yr(t, this._c) : [].concat(n), o], a = i[0], d = i.reduce((f, l) => {
|
|
967
|
-
const c = Nt(t, l, r);
|
|
968
|
-
return f.top = H(c.top, f.top), f.right = ne(c.right, f.right), f.bottom = ne(c.bottom, f.bottom), f.left = H(c.left, f.left), f;
|
|
969
|
-
}, Nt(t, a, r));
|
|
970
|
-
return {
|
|
971
|
-
width: d.right - d.left,
|
|
972
|
-
height: d.bottom - d.top,
|
|
973
|
-
x: d.left,
|
|
974
|
-
y: d.top
|
|
975
|
-
};
|
|
976
|
-
}
|
|
977
|
-
function Cr(e) {
|
|
978
|
-
const {
|
|
979
|
-
width: t,
|
|
980
|
-
height: n
|
|
981
|
-
} = nn(e);
|
|
982
|
-
return {
|
|
983
|
-
width: t,
|
|
984
|
-
height: n
|
|
985
|
-
};
|
|
986
|
-
}
|
|
987
|
-
function Rr(e, t, n) {
|
|
988
|
-
const o = Z(t), r = Q(t), s = n === "fixed", i = le(e, !0, s, t);
|
|
989
|
-
let a = {
|
|
990
|
-
scrollLeft: 0,
|
|
991
|
-
scrollTop: 0
|
|
992
|
-
};
|
|
993
|
-
const d = q(0);
|
|
994
|
-
function f() {
|
|
995
|
-
d.x = Ye(r);
|
|
996
|
-
}
|
|
997
|
-
if (o || !o && !s)
|
|
998
|
-
if ((ve(t) !== "body" || _e(r)) && (a = Ue(t)), o) {
|
|
999
|
-
const g = le(t, !0, s, t);
|
|
1000
|
-
d.x = g.x + t.clientLeft, d.y = g.y + t.clientTop;
|
|
1001
|
-
} else r && f();
|
|
1002
|
-
s && !o && r && f();
|
|
1003
|
-
const l = r && !o && !s ? rn(r, a) : q(0), c = i.left + a.scrollLeft - d.x - l.x, m = i.top + a.scrollTop - d.y - l.y;
|
|
1004
|
-
return {
|
|
1005
|
-
x: c,
|
|
1006
|
-
y: m,
|
|
1007
|
-
width: i.width,
|
|
1008
|
-
height: i.height
|
|
1009
|
-
};
|
|
1010
|
-
}
|
|
1011
|
-
function Qe(e) {
|
|
1012
|
-
return U(e).position === "static";
|
|
1013
|
-
}
|
|
1014
|
-
function jt(e, t) {
|
|
1015
|
-
if (!Z(e) || U(e).position === "fixed")
|
|
1016
|
-
return null;
|
|
1017
|
-
if (t)
|
|
1018
|
-
return t(e);
|
|
1019
|
-
let n = e.offsetParent;
|
|
1020
|
-
return Q(e) === n && (n = n.ownerDocument.body), n;
|
|
1021
|
-
}
|
|
1022
|
-
function an(e, t) {
|
|
1023
|
-
const n = V(e);
|
|
1024
|
-
if (ze(e))
|
|
1025
|
-
return n;
|
|
1026
|
-
if (!Z(e)) {
|
|
1027
|
-
let r = oe(e);
|
|
1028
|
-
for (; r && !pe(r); ) {
|
|
1029
|
-
if (z(r) && !Qe(r))
|
|
1030
|
-
return r;
|
|
1031
|
-
r = oe(r);
|
|
1032
|
-
}
|
|
1033
|
-
return n;
|
|
1034
|
-
}
|
|
1035
|
-
let o = jt(e, t);
|
|
1036
|
-
for (; o && sr(o) && Qe(o); )
|
|
1037
|
-
o = jt(o, t);
|
|
1038
|
-
return o && pe(o) && Qe(o) && !ut(o) ? n : o || ur(e) || n;
|
|
1039
|
-
}
|
|
1040
|
-
const Mr = async function(e) {
|
|
1041
|
-
const t = this.getOffsetParent || an, n = this.getDimensions, o = await n(e.floating);
|
|
1042
|
-
return {
|
|
1043
|
-
reference: Rr(e.reference, await t(e.floating), e.strategy),
|
|
1044
|
-
floating: {
|
|
1045
|
-
x: 0,
|
|
1046
|
-
y: 0,
|
|
1047
|
-
width: o.width,
|
|
1048
|
-
height: o.height
|
|
1049
|
-
}
|
|
1050
|
-
};
|
|
1051
|
-
};
|
|
1052
|
-
function Pr(e) {
|
|
1053
|
-
return U(e).direction === "rtl";
|
|
1054
|
-
}
|
|
1055
|
-
const Ar = {
|
|
1056
|
-
convertOffsetParentRelativeRectToViewportRelativeRect: mr,
|
|
1057
|
-
getDocumentElement: Q,
|
|
1058
|
-
getClippingRect: br,
|
|
1059
|
-
getOffsetParent: an,
|
|
1060
|
-
getElementRects: Mr,
|
|
1061
|
-
getClientRects: gr,
|
|
1062
|
-
getDimensions: Cr,
|
|
1063
|
-
getScale: de,
|
|
1064
|
-
isElement: z,
|
|
1065
|
-
isRTL: Pr
|
|
1066
|
-
};
|
|
1067
|
-
function cn(e, t) {
|
|
1068
|
-
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
1069
|
-
}
|
|
1070
|
-
function Sr(e, t) {
|
|
1071
|
-
let n = null, o;
|
|
1072
|
-
const r = Q(e);
|
|
1073
|
-
function s() {
|
|
1074
|
-
var a;
|
|
1075
|
-
clearTimeout(o), (a = n) == null || a.disconnect(), n = null;
|
|
1076
|
-
}
|
|
1077
|
-
function i(a, d) {
|
|
1078
|
-
a === void 0 && (a = !1), d === void 0 && (d = 1), s();
|
|
1079
|
-
const f = e.getBoundingClientRect(), {
|
|
1080
|
-
left: l,
|
|
1081
|
-
top: c,
|
|
1082
|
-
width: m,
|
|
1083
|
-
height: g
|
|
1084
|
-
} = f;
|
|
1085
|
-
if (a || t(), !m || !g)
|
|
1086
|
-
return;
|
|
1087
|
-
const h = Fe(c), w = Fe(r.clientWidth - (l + m)), v = Fe(r.clientHeight - (c + g)), x = Fe(l), b = {
|
|
1088
|
-
rootMargin: -h + "px " + -w + "px " + -v + "px " + -x + "px",
|
|
1089
|
-
threshold: H(0, ne(1, d)) || 1
|
|
1090
|
-
};
|
|
1091
|
-
let C = !0;
|
|
1092
|
-
function M(E) {
|
|
1093
|
-
const S = E[0].intersectionRatio;
|
|
1094
|
-
if (S !== d) {
|
|
1095
|
-
if (!C)
|
|
1096
|
-
return i();
|
|
1097
|
-
S ? i(!1, S) : o = setTimeout(() => {
|
|
1098
|
-
i(!1, 1e-7);
|
|
1099
|
-
}, 1e3);
|
|
1100
|
-
}
|
|
1101
|
-
S === 1 && !cn(f, e.getBoundingClientRect()) && i(), C = !1;
|
|
1102
|
-
}
|
|
1103
|
-
try {
|
|
1104
|
-
n = new IntersectionObserver(M, {
|
|
1105
|
-
...b,
|
|
1106
|
-
// Handle <iframe>s
|
|
1107
|
-
root: r.ownerDocument
|
|
1108
|
-
});
|
|
1109
|
-
} catch {
|
|
1110
|
-
n = new IntersectionObserver(M, b);
|
|
1111
|
-
}
|
|
1112
|
-
n.observe(e);
|
|
1113
|
-
}
|
|
1114
|
-
return i(!0), s;
|
|
1115
|
-
}
|
|
1116
|
-
function _r(e, t, n, o) {
|
|
1117
|
-
o === void 0 && (o = {});
|
|
1118
|
-
const {
|
|
1119
|
-
ancestorScroll: r = !0,
|
|
1120
|
-
ancestorResize: s = !0,
|
|
1121
|
-
elementResize: i = typeof ResizeObserver == "function",
|
|
1122
|
-
layoutShift: a = typeof IntersectionObserver == "function",
|
|
1123
|
-
animationFrame: d = !1
|
|
1124
|
-
} = o, f = ft(e), l = r || s ? [...f ? Re(f) : [], ...Re(t)] : [];
|
|
1125
|
-
l.forEach((x) => {
|
|
1126
|
-
r && x.addEventListener("scroll", n, {
|
|
1127
|
-
passive: !0
|
|
1128
|
-
}), s && x.addEventListener("resize", n);
|
|
1129
|
-
});
|
|
1130
|
-
const c = f && a ? Sr(f, n) : null;
|
|
1131
|
-
let m = -1, g = null;
|
|
1132
|
-
i && (g = new ResizeObserver((x) => {
|
|
1133
|
-
let [R] = x;
|
|
1134
|
-
R && R.target === f && g && (g.unobserve(t), cancelAnimationFrame(m), m = requestAnimationFrame(() => {
|
|
1135
|
-
var b;
|
|
1136
|
-
(b = g) == null || b.observe(t);
|
|
1137
|
-
})), n();
|
|
1138
|
-
}), f && !d && g.observe(f), g.observe(t));
|
|
1139
|
-
let h, w = d ? le(e) : null;
|
|
1140
|
-
d && v();
|
|
1141
|
-
function v() {
|
|
1142
|
-
const x = le(e);
|
|
1143
|
-
w && !cn(w, x) && n(), w = x, h = requestAnimationFrame(v);
|
|
1144
|
-
}
|
|
1145
|
-
return n(), () => {
|
|
1146
|
-
var x;
|
|
1147
|
-
l.forEach((R) => {
|
|
1148
|
-
r && R.removeEventListener("scroll", n), s && R.removeEventListener("resize", n);
|
|
1149
|
-
}), c?.(), (x = g) == null || x.disconnect(), g = null, d && cancelAnimationFrame(h);
|
|
1150
|
-
};
|
|
1151
|
-
}
|
|
1152
|
-
const Er = Qo, Or = er, Dr = qo, Ir = nr, Tr = Zo, Ft = Xo, Nr = tr, jr = (e, t, n) => {
|
|
1153
|
-
const o = /* @__PURE__ */ new Map(), r = {
|
|
1154
|
-
platform: Ar,
|
|
1155
|
-
...n
|
|
1156
|
-
}, s = {
|
|
1157
|
-
...r.platform,
|
|
1158
|
-
_c: o
|
|
1159
|
-
};
|
|
1160
|
-
return Yo(e, t, {
|
|
1161
|
-
...r,
|
|
1162
|
-
platform: s
|
|
1163
|
-
});
|
|
1164
|
-
};
|
|
1165
|
-
var Fr = typeof document < "u", kr = function() {
|
|
1166
|
-
}, ke = Fr ? u.useLayoutEffect : kr;
|
|
1167
|
-
function Be(e, t) {
|
|
1168
|
-
if (e === t)
|
|
1169
|
-
return !0;
|
|
1170
|
-
if (typeof e != typeof t)
|
|
1171
|
-
return !1;
|
|
1172
|
-
if (typeof e == "function" && e.toString() === t.toString())
|
|
1173
|
-
return !0;
|
|
1174
|
-
let n, o, r;
|
|
1175
|
-
if (e && t && typeof e == "object") {
|
|
1176
|
-
if (Array.isArray(e)) {
|
|
1177
|
-
if (n = e.length, n !== t.length) return !1;
|
|
1178
|
-
for (o = n; o-- !== 0; )
|
|
1179
|
-
if (!Be(e[o], t[o]))
|
|
1180
|
-
return !1;
|
|
1181
|
-
return !0;
|
|
1182
|
-
}
|
|
1183
|
-
if (r = Object.keys(e), n = r.length, n !== Object.keys(t).length)
|
|
1184
|
-
return !1;
|
|
1185
|
-
for (o = n; o-- !== 0; )
|
|
1186
|
-
if (!{}.hasOwnProperty.call(t, r[o]))
|
|
1187
|
-
return !1;
|
|
1188
|
-
for (o = n; o-- !== 0; ) {
|
|
1189
|
-
const s = r[o];
|
|
1190
|
-
if (!(s === "_owner" && e.$$typeof) && !Be(e[s], t[s]))
|
|
1191
|
-
return !1;
|
|
1192
|
-
}
|
|
1193
|
-
return !0;
|
|
1194
|
-
}
|
|
1195
|
-
return e !== e && t !== t;
|
|
1196
|
-
}
|
|
1197
|
-
function ln(e) {
|
|
1198
|
-
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
1199
|
-
}
|
|
1200
|
-
function kt(e, t) {
|
|
1201
|
-
const n = ln(e);
|
|
1202
|
-
return Math.round(t * n) / n;
|
|
1203
|
-
}
|
|
1204
|
-
function et(e) {
|
|
1205
|
-
const t = u.useRef(e);
|
|
1206
|
-
return ke(() => {
|
|
1207
|
-
t.current = e;
|
|
1208
|
-
}), t;
|
|
1209
|
-
}
|
|
1210
|
-
function Lr(e) {
|
|
1211
|
-
e === void 0 && (e = {});
|
|
1212
|
-
const {
|
|
1213
|
-
placement: t = "bottom",
|
|
1214
|
-
strategy: n = "absolute",
|
|
1215
|
-
middleware: o = [],
|
|
1216
|
-
platform: r,
|
|
1217
|
-
elements: {
|
|
1218
|
-
reference: s,
|
|
1219
|
-
floating: i
|
|
1220
|
-
} = {},
|
|
1221
|
-
transform: a = !0,
|
|
1222
|
-
whileElementsMounted: d,
|
|
1223
|
-
open: f
|
|
1224
|
-
} = e, [l, c] = u.useState({
|
|
1225
|
-
x: 0,
|
|
1226
|
-
y: 0,
|
|
1227
|
-
strategy: n,
|
|
1228
|
-
placement: t,
|
|
1229
|
-
middlewareData: {},
|
|
1230
|
-
isPositioned: !1
|
|
1231
|
-
}), [m, g] = u.useState(o);
|
|
1232
|
-
Be(m, o) || g(o);
|
|
1233
|
-
const [h, w] = u.useState(null), [v, x] = u.useState(null), R = u.useCallback((P) => {
|
|
1234
|
-
P !== E.current && (E.current = P, w(P));
|
|
1235
|
-
}, []), b = u.useCallback((P) => {
|
|
1236
|
-
P !== S.current && (S.current = P, x(P));
|
|
1237
|
-
}, []), C = s || h, M = i || v, E = u.useRef(null), S = u.useRef(null), _ = u.useRef(l), N = d != null, D = et(d), j = et(r), F = et(f), T = u.useCallback(() => {
|
|
1238
|
-
if (!E.current || !S.current)
|
|
1239
|
-
return;
|
|
1240
|
-
const P = {
|
|
1241
|
-
placement: t,
|
|
1242
|
-
strategy: n,
|
|
1243
|
-
middleware: m
|
|
1244
|
-
};
|
|
1245
|
-
j.current && (P.platform = j.current), jr(E.current, S.current, P).then((y) => {
|
|
1246
|
-
const G = {
|
|
1247
|
-
...y,
|
|
1248
|
-
// The floating element's position may be recomputed while it's closed
|
|
1249
|
-
// but still mounted (such as when transitioning out). To ensure
|
|
1250
|
-
// `isPositioned` will be `false` initially on the next open, avoid
|
|
1251
|
-
// setting it to `true` when `open === false` (must be specified).
|
|
1252
|
-
isPositioned: F.current !== !1
|
|
1253
|
-
};
|
|
1254
|
-
I.current && !Be(_.current, G) && (_.current = G, Ao.flushSync(() => {
|
|
1255
|
-
c(G);
|
|
1256
|
-
}));
|
|
1257
|
-
});
|
|
1258
|
-
}, [m, t, n, j, F]);
|
|
1259
|
-
ke(() => {
|
|
1260
|
-
f === !1 && _.current.isPositioned && (_.current.isPositioned = !1, c((P) => ({
|
|
1261
|
-
...P,
|
|
1262
|
-
isPositioned: !1
|
|
1263
|
-
})));
|
|
1264
|
-
}, [f]);
|
|
1265
|
-
const I = u.useRef(!1);
|
|
1266
|
-
ke(() => (I.current = !0, () => {
|
|
1267
|
-
I.current = !1;
|
|
1268
|
-
}), []), ke(() => {
|
|
1269
|
-
if (C && (E.current = C), M && (S.current = M), C && M) {
|
|
1270
|
-
if (D.current)
|
|
1271
|
-
return D.current(C, M, T);
|
|
1272
|
-
T();
|
|
1273
|
-
}
|
|
1274
|
-
}, [C, M, T, D, N]);
|
|
1275
|
-
const $ = u.useMemo(() => ({
|
|
1276
|
-
reference: E,
|
|
1277
|
-
floating: S,
|
|
1278
|
-
setReference: R,
|
|
1279
|
-
setFloating: b
|
|
1280
|
-
}), [R, b]), O = u.useMemo(() => ({
|
|
1281
|
-
reference: C,
|
|
1282
|
-
floating: M
|
|
1283
|
-
}), [C, M]), k = u.useMemo(() => {
|
|
1284
|
-
const P = {
|
|
1285
|
-
position: n,
|
|
1286
|
-
left: 0,
|
|
1287
|
-
top: 0
|
|
1288
|
-
};
|
|
1289
|
-
if (!O.floating)
|
|
1290
|
-
return P;
|
|
1291
|
-
const y = kt(O.floating, l.x), G = kt(O.floating, l.y);
|
|
1292
|
-
return a ? {
|
|
1293
|
-
...P,
|
|
1294
|
-
transform: "translate(" + y + "px, " + G + "px)",
|
|
1295
|
-
...ln(O.floating) >= 1.5 && {
|
|
1296
|
-
willChange: "transform"
|
|
1297
|
-
}
|
|
1298
|
-
} : {
|
|
1299
|
-
position: n,
|
|
1300
|
-
left: y,
|
|
1301
|
-
top: G
|
|
1302
|
-
};
|
|
1303
|
-
}, [n, a, O.floating, l.x, l.y]);
|
|
1304
|
-
return u.useMemo(() => ({
|
|
1305
|
-
...l,
|
|
1306
|
-
update: T,
|
|
1307
|
-
refs: $,
|
|
1308
|
-
elements: O,
|
|
1309
|
-
floatingStyles: k
|
|
1310
|
-
}), [l, T, $, O, k]);
|
|
1311
|
-
}
|
|
1312
|
-
const $r = (e) => {
|
|
1313
|
-
function t(n) {
|
|
1314
|
-
return {}.hasOwnProperty.call(n, "current");
|
|
1315
|
-
}
|
|
1316
|
-
return {
|
|
1317
|
-
name: "arrow",
|
|
1318
|
-
options: e,
|
|
1319
|
-
fn(n) {
|
|
1320
|
-
const {
|
|
1321
|
-
element: o,
|
|
1322
|
-
padding: r
|
|
1323
|
-
} = typeof e == "function" ? e(n) : e;
|
|
1324
|
-
return o && t(o) ? o.current != null ? Ft({
|
|
1325
|
-
element: o.current,
|
|
1326
|
-
padding: r
|
|
1327
|
-
}).fn(n) : {} : o ? Ft({
|
|
1328
|
-
element: o,
|
|
1329
|
-
padding: r
|
|
1330
|
-
}).fn(n) : {};
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
}, Gr = (e, t) => ({
|
|
1334
|
-
...Er(e),
|
|
1335
|
-
options: [e, t]
|
|
1336
|
-
}), Br = (e, t) => ({
|
|
1337
|
-
...Or(e),
|
|
1338
|
-
options: [e, t]
|
|
1339
|
-
}), Kr = (e, t) => ({
|
|
1340
|
-
...Nr(e),
|
|
1341
|
-
options: [e, t]
|
|
1342
|
-
}), Hr = (e, t) => ({
|
|
1343
|
-
...Dr(e),
|
|
1344
|
-
options: [e, t]
|
|
1345
|
-
}), Vr = (e, t) => ({
|
|
1346
|
-
...Ir(e),
|
|
1347
|
-
options: [e, t]
|
|
1348
|
-
}), Wr = (e, t) => ({
|
|
1349
|
-
...Tr(e),
|
|
1350
|
-
options: [e, t]
|
|
1351
|
-
}), zr = (e, t) => ({
|
|
1352
|
-
...$r(e),
|
|
1353
|
-
options: [e, t]
|
|
1354
|
-
});
|
|
1355
|
-
var Ur = "Arrow", un = u.forwardRef((e, t) => {
|
|
1356
|
-
const { children: n, width: o = 10, height: r = 5, ...s } = e;
|
|
1357
|
-
return /* @__PURE__ */ p.jsx(
|
|
1358
|
-
K.svg,
|
|
1359
|
-
{
|
|
1360
|
-
...s,
|
|
1361
|
-
ref: t,
|
|
1362
|
-
width: o,
|
|
1363
|
-
height: r,
|
|
1364
|
-
viewBox: "0 0 30 10",
|
|
1365
|
-
preserveAspectRatio: "none",
|
|
1366
|
-
children: e.asChild ? n : /* @__PURE__ */ p.jsx("polygon", { points: "0,0 30,0 15,10" })
|
|
1367
|
-
}
|
|
1368
|
-
);
|
|
1369
|
-
});
|
|
1370
|
-
un.displayName = Ur;
|
|
1371
|
-
var Yr = un, pt = "Popper", [dn, Xe] = Ae(pt), [Xr, fn] = dn(pt), pn = (e) => {
|
|
1372
|
-
const { __scopePopper: t, children: n } = e, [o, r] = u.useState(null);
|
|
1373
|
-
return /* @__PURE__ */ p.jsx(Xr, { scope: t, anchor: o, onAnchorChange: r, children: n });
|
|
1374
|
-
};
|
|
1375
|
-
pn.displayName = pt;
|
|
1376
|
-
var mn = "PopperAnchor", gn = u.forwardRef(
|
|
1377
|
-
(e, t) => {
|
|
1378
|
-
const { __scopePopper: n, virtualRef: o, ...r } = e, s = fn(mn, n), i = u.useRef(null), a = J(t, i), d = u.useRef(null);
|
|
1379
|
-
return u.useEffect(() => {
|
|
1380
|
-
const f = d.current;
|
|
1381
|
-
d.current = o?.current || i.current, f !== d.current && s.onAnchorChange(d.current);
|
|
1382
|
-
}), o ? null : /* @__PURE__ */ p.jsx(K.div, { ...r, ref: a });
|
|
1383
|
-
}
|
|
1384
|
-
);
|
|
1385
|
-
gn.displayName = mn;
|
|
1386
|
-
var mt = "PopperContent", [qr, Zr] = dn(mt), hn = u.forwardRef(
|
|
1387
|
-
(e, t) => {
|
|
1388
|
-
const {
|
|
1389
|
-
__scopePopper: n,
|
|
1390
|
-
side: o = "bottom",
|
|
1391
|
-
sideOffset: r = 0,
|
|
1392
|
-
align: s = "center",
|
|
1393
|
-
alignOffset: i = 0,
|
|
1394
|
-
arrowPadding: a = 0,
|
|
1395
|
-
avoidCollisions: d = !0,
|
|
1396
|
-
collisionBoundary: f = [],
|
|
1397
|
-
collisionPadding: l = 0,
|
|
1398
|
-
sticky: c = "partial",
|
|
1399
|
-
hideWhenDetached: m = !1,
|
|
1400
|
-
updatePositionStrategy: g = "optimized",
|
|
1401
|
-
onPlaced: h,
|
|
1402
|
-
...w
|
|
1403
|
-
} = e, v = fn(mt, n), [x, R] = u.useState(null), b = J(t, (L) => R(L)), [C, M] = u.useState(null), E = So(C), S = E?.width ?? 0, _ = E?.height ?? 0, N = o + (s !== "center" ? "-" + s : ""), D = typeof l == "number" ? l : { top: 0, right: 0, bottom: 0, left: 0, ...l }, j = Array.isArray(f) ? f : [f], F = j.length > 0, T = {
|
|
1404
|
-
padding: D,
|
|
1405
|
-
boundary: j.filter(Qr),
|
|
1406
|
-
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
1407
|
-
altBoundary: F
|
|
1408
|
-
}, { refs: I, floatingStyles: $, placement: O, isPositioned: k, middlewareData: P } = Lr({
|
|
1409
|
-
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
1410
|
-
strategy: "fixed",
|
|
1411
|
-
placement: N,
|
|
1412
|
-
whileElementsMounted: (...L) => _r(...L, {
|
|
1413
|
-
animationFrame: g === "always"
|
|
1414
|
-
}),
|
|
1415
|
-
elements: {
|
|
1416
|
-
reference: v.anchor
|
|
1417
|
-
},
|
|
1418
|
-
middleware: [
|
|
1419
|
-
Gr({ mainAxis: r + _, alignmentAxis: i }),
|
|
1420
|
-
d && Br({
|
|
1421
|
-
mainAxis: !0,
|
|
1422
|
-
crossAxis: !1,
|
|
1423
|
-
limiter: c === "partial" ? Kr() : void 0,
|
|
1424
|
-
...T
|
|
1425
|
-
}),
|
|
1426
|
-
d && Hr({ ...T }),
|
|
1427
|
-
Vr({
|
|
1428
|
-
...T,
|
|
1429
|
-
apply: ({ elements: L, rects: ye, availableWidth: Co, availableHeight: Ro }) => {
|
|
1430
|
-
const { width: Mo, height: Po } = ye.reference, je = L.floating.style;
|
|
1431
|
-
je.setProperty("--radix-popper-available-width", `${Co}px`), je.setProperty("--radix-popper-available-height", `${Ro}px`), je.setProperty("--radix-popper-anchor-width", `${Mo}px`), je.setProperty("--radix-popper-anchor-height", `${Po}px`);
|
|
1432
|
-
}
|
|
1433
|
-
}),
|
|
1434
|
-
C && zr({ element: C, padding: a }),
|
|
1435
|
-
es({ arrowWidth: S, arrowHeight: _ }),
|
|
1436
|
-
m && Wr({ strategy: "referenceHidden", ...T })
|
|
1437
|
-
]
|
|
1438
|
-
}), [y, G] = xn(O), Y = Se(h);
|
|
1439
|
-
At(() => {
|
|
1440
|
-
k && Y?.();
|
|
1441
|
-
}, [k, Y]);
|
|
1442
|
-
const ae = P.arrow?.x, we = P.arrow?.y, xe = P.arrow?.centerOffset !== 0, [Ne, ce] = u.useState();
|
|
1443
|
-
return At(() => {
|
|
1444
|
-
x && ce(window.getComputedStyle(x).zIndex);
|
|
1445
|
-
}, [x]), /* @__PURE__ */ p.jsx(
|
|
1446
|
-
"div",
|
|
1447
|
-
{
|
|
1448
|
-
ref: I.setFloating,
|
|
1449
|
-
"data-radix-popper-content-wrapper": "",
|
|
1450
|
-
style: {
|
|
1451
|
-
...$,
|
|
1452
|
-
transform: k ? $.transform : "translate(0, -200%)",
|
|
1453
|
-
// keep off the page when measuring
|
|
1454
|
-
minWidth: "max-content",
|
|
1455
|
-
zIndex: Ne,
|
|
1456
|
-
"--radix-popper-transform-origin": [
|
|
1457
|
-
P.transformOrigin?.x,
|
|
1458
|
-
P.transformOrigin?.y
|
|
1459
|
-
].join(" "),
|
|
1460
|
-
// hide the content if using the hide middleware and should be hidden
|
|
1461
|
-
// set visibility to hidden and disable pointer events so the UI behaves
|
|
1462
|
-
// as if the PopperContent isn't there at all
|
|
1463
|
-
...P.hide?.referenceHidden && {
|
|
1464
|
-
visibility: "hidden",
|
|
1465
|
-
pointerEvents: "none"
|
|
1466
|
-
}
|
|
1467
|
-
},
|
|
1468
|
-
dir: e.dir,
|
|
1469
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1470
|
-
qr,
|
|
1471
|
-
{
|
|
1472
|
-
scope: n,
|
|
1473
|
-
placedSide: y,
|
|
1474
|
-
onArrowChange: M,
|
|
1475
|
-
arrowX: ae,
|
|
1476
|
-
arrowY: we,
|
|
1477
|
-
shouldHideArrow: xe,
|
|
1478
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1479
|
-
K.div,
|
|
1480
|
-
{
|
|
1481
|
-
"data-side": y,
|
|
1482
|
-
"data-align": G,
|
|
1483
|
-
...w,
|
|
1484
|
-
ref: b,
|
|
1485
|
-
style: {
|
|
1486
|
-
...w.style,
|
|
1487
|
-
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
1488
|
-
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
1489
|
-
animation: k ? void 0 : "none"
|
|
1490
|
-
}
|
|
1491
|
-
}
|
|
1492
|
-
)
|
|
1493
|
-
}
|
|
1494
|
-
)
|
|
1495
|
-
}
|
|
1496
|
-
);
|
|
1497
|
-
}
|
|
1498
|
-
);
|
|
1499
|
-
hn.displayName = mt;
|
|
1500
|
-
var vn = "PopperArrow", Jr = {
|
|
1501
|
-
top: "bottom",
|
|
1502
|
-
right: "left",
|
|
1503
|
-
bottom: "top",
|
|
1504
|
-
left: "right"
|
|
1505
|
-
}, wn = u.forwardRef(function(t, n) {
|
|
1506
|
-
const { __scopePopper: o, ...r } = t, s = Zr(vn, o), i = Jr[s.placedSide];
|
|
1507
|
-
return (
|
|
1508
|
-
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
1509
|
-
// doesn't report size as we'd expect on SVG elements.
|
|
1510
|
-
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
1511
|
-
/* @__PURE__ */ p.jsx(
|
|
1512
|
-
"span",
|
|
1513
|
-
{
|
|
1514
|
-
ref: s.onArrowChange,
|
|
1515
|
-
style: {
|
|
1516
|
-
position: "absolute",
|
|
1517
|
-
left: s.arrowX,
|
|
1518
|
-
top: s.arrowY,
|
|
1519
|
-
[i]: 0,
|
|
1520
|
-
transformOrigin: {
|
|
1521
|
-
top: "",
|
|
1522
|
-
right: "0 0",
|
|
1523
|
-
bottom: "center 0",
|
|
1524
|
-
left: "100% 0"
|
|
1525
|
-
}[s.placedSide],
|
|
1526
|
-
transform: {
|
|
1527
|
-
top: "translateY(100%)",
|
|
1528
|
-
right: "translateY(50%) rotate(90deg) translateX(-50%)",
|
|
1529
|
-
bottom: "rotate(180deg)",
|
|
1530
|
-
left: "translateY(50%) rotate(-90deg) translateX(50%)"
|
|
1531
|
-
}[s.placedSide],
|
|
1532
|
-
visibility: s.shouldHideArrow ? "hidden" : void 0
|
|
1533
|
-
},
|
|
1534
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1535
|
-
Yr,
|
|
1536
|
-
{
|
|
1537
|
-
...r,
|
|
1538
|
-
ref: n,
|
|
1539
|
-
style: {
|
|
1540
|
-
...r.style,
|
|
1541
|
-
// ensures the element can be measured correctly (mostly for if SVG)
|
|
1542
|
-
display: "block"
|
|
1543
|
-
}
|
|
1544
|
-
}
|
|
1545
|
-
)
|
|
1546
|
-
}
|
|
1547
|
-
)
|
|
1548
|
-
);
|
|
1549
|
-
});
|
|
1550
|
-
wn.displayName = vn;
|
|
1551
|
-
function Qr(e) {
|
|
1552
|
-
return e !== null;
|
|
1553
|
-
}
|
|
1554
|
-
var es = (e) => ({
|
|
1555
|
-
name: "transformOrigin",
|
|
1556
|
-
options: e,
|
|
1557
|
-
fn(t) {
|
|
1558
|
-
const { placement: n, rects: o, middlewareData: r } = t, i = r.arrow?.centerOffset !== 0, a = i ? 0 : e.arrowWidth, d = i ? 0 : e.arrowHeight, [f, l] = xn(n), c = { start: "0%", center: "50%", end: "100%" }[l], m = (r.arrow?.x ?? 0) + a / 2, g = (r.arrow?.y ?? 0) + d / 2;
|
|
1559
|
-
let h = "", w = "";
|
|
1560
|
-
return f === "bottom" ? (h = i ? c : `${m}px`, w = `${-d}px`) : f === "top" ? (h = i ? c : `${m}px`, w = `${o.floating.height + d}px`) : f === "right" ? (h = `${-d}px`, w = i ? c : `${g}px`) : f === "left" && (h = `${o.floating.width + d}px`, w = i ? c : `${g}px`), { data: { x: h, y: w } };
|
|
1561
|
-
}
|
|
1562
|
-
});
|
|
1563
|
-
function xn(e) {
|
|
1564
|
-
const [t, n = "center"] = e.split("-");
|
|
1565
|
-
return [t, n];
|
|
1566
|
-
}
|
|
1567
|
-
var gt = pn, ht = gn, yn = hn, bn = wn, tt = "rovingFocusGroup.onEntryFocus", ts = { bubbles: !1, cancelable: !0 }, Ee = "RovingFocusGroup", [st, Cn, ns] = Gt(Ee), [os, Rn] = Ae(
|
|
1568
|
-
Ee,
|
|
1569
|
-
[ns]
|
|
1570
|
-
), [rs, ss] = os(Ee), Mn = u.forwardRef(
|
|
1571
|
-
(e, t) => /* @__PURE__ */ p.jsx(st.Provider, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(st.Slot, { scope: e.__scopeRovingFocusGroup, children: /* @__PURE__ */ p.jsx(is, { ...e, ref: t }) }) })
|
|
1572
|
-
);
|
|
1573
|
-
Mn.displayName = Ee;
|
|
1574
|
-
var is = u.forwardRef((e, t) => {
|
|
1575
|
-
const {
|
|
1576
|
-
__scopeRovingFocusGroup: n,
|
|
1577
|
-
orientation: o,
|
|
1578
|
-
loop: r = !1,
|
|
1579
|
-
dir: s,
|
|
1580
|
-
currentTabStopId: i,
|
|
1581
|
-
defaultCurrentTabStopId: a,
|
|
1582
|
-
onCurrentTabStopIdChange: d,
|
|
1583
|
-
onEntryFocus: f,
|
|
1584
|
-
preventScrollOnEntryFocus: l = !1,
|
|
1585
|
-
...c
|
|
1586
|
-
} = e, m = u.useRef(null), g = J(t, m), h = Bt(s), [w, v] = Ve({
|
|
1587
|
-
prop: i,
|
|
1588
|
-
defaultProp: a ?? null,
|
|
1589
|
-
onChange: d,
|
|
1590
|
-
caller: Ee
|
|
1591
|
-
}), [x, R] = u.useState(!1), b = Se(f), C = Cn(n), M = u.useRef(!1), [E, S] = u.useState(0);
|
|
1592
|
-
return u.useEffect(() => {
|
|
1593
|
-
const _ = m.current;
|
|
1594
|
-
if (_)
|
|
1595
|
-
return _.addEventListener(tt, b), () => _.removeEventListener(tt, b);
|
|
1596
|
-
}, [b]), /* @__PURE__ */ p.jsx(
|
|
1597
|
-
rs,
|
|
1598
|
-
{
|
|
1599
|
-
scope: n,
|
|
1600
|
-
orientation: o,
|
|
1601
|
-
dir: h,
|
|
1602
|
-
loop: r,
|
|
1603
|
-
currentTabStopId: w,
|
|
1604
|
-
onItemFocus: u.useCallback(
|
|
1605
|
-
(_) => v(_),
|
|
1606
|
-
[v]
|
|
1607
|
-
),
|
|
1608
|
-
onItemShiftTab: u.useCallback(() => R(!0), []),
|
|
1609
|
-
onFocusableItemAdd: u.useCallback(
|
|
1610
|
-
() => S((_) => _ + 1),
|
|
1611
|
-
[]
|
|
1612
|
-
),
|
|
1613
|
-
onFocusableItemRemove: u.useCallback(
|
|
1614
|
-
() => S((_) => _ - 1),
|
|
1615
|
-
[]
|
|
1616
|
-
),
|
|
1617
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1618
|
-
K.div,
|
|
1619
|
-
{
|
|
1620
|
-
tabIndex: x || E === 0 ? -1 : 0,
|
|
1621
|
-
"data-orientation": o,
|
|
1622
|
-
...c,
|
|
1623
|
-
ref: g,
|
|
1624
|
-
style: { outline: "none", ...e.style },
|
|
1625
|
-
onMouseDown: A(e.onMouseDown, () => {
|
|
1626
|
-
M.current = !0;
|
|
1627
|
-
}),
|
|
1628
|
-
onFocus: A(e.onFocus, (_) => {
|
|
1629
|
-
const N = !M.current;
|
|
1630
|
-
if (_.target === _.currentTarget && N && !x) {
|
|
1631
|
-
const D = new CustomEvent(tt, ts);
|
|
1632
|
-
if (_.currentTarget.dispatchEvent(D), !D.defaultPrevented) {
|
|
1633
|
-
const j = C().filter((O) => O.focusable), F = j.find((O) => O.active), T = j.find((O) => O.id === w), $ = [F, T, ...j].filter(
|
|
1634
|
-
Boolean
|
|
1635
|
-
).map((O) => O.ref.current);
|
|
1636
|
-
Sn($, l);
|
|
1637
|
-
}
|
|
1638
|
-
}
|
|
1639
|
-
M.current = !1;
|
|
1640
|
-
}),
|
|
1641
|
-
onBlur: A(e.onBlur, () => R(!1))
|
|
1642
|
-
}
|
|
1643
|
-
)
|
|
1644
|
-
}
|
|
1645
|
-
);
|
|
1646
|
-
}), Pn = "RovingFocusGroupItem", An = u.forwardRef(
|
|
1647
|
-
(e, t) => {
|
|
1648
|
-
const {
|
|
1649
|
-
__scopeRovingFocusGroup: n,
|
|
1650
|
-
focusable: o = !0,
|
|
1651
|
-
active: r = !1,
|
|
1652
|
-
tabStopId: s,
|
|
1653
|
-
children: i,
|
|
1654
|
-
...a
|
|
1655
|
-
} = e, d = fe(), f = s || d, l = ss(Pn, n), c = l.currentTabStopId === f, m = Cn(n), { onFocusableItemAdd: g, onFocusableItemRemove: h, currentTabStopId: w } = l;
|
|
1656
|
-
return u.useEffect(() => {
|
|
1657
|
-
if (o)
|
|
1658
|
-
return g(), () => h();
|
|
1659
|
-
}, [o, g, h]), /* @__PURE__ */ p.jsx(
|
|
1660
|
-
st.ItemSlot,
|
|
1661
|
-
{
|
|
1662
|
-
scope: n,
|
|
1663
|
-
id: f,
|
|
1664
|
-
focusable: o,
|
|
1665
|
-
active: r,
|
|
1666
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1667
|
-
K.span,
|
|
1668
|
-
{
|
|
1669
|
-
tabIndex: c ? 0 : -1,
|
|
1670
|
-
"data-orientation": l.orientation,
|
|
1671
|
-
...a,
|
|
1672
|
-
ref: t,
|
|
1673
|
-
onMouseDown: A(e.onMouseDown, (v) => {
|
|
1674
|
-
o ? l.onItemFocus(f) : v.preventDefault();
|
|
1675
|
-
}),
|
|
1676
|
-
onFocus: A(e.onFocus, () => l.onItemFocus(f)),
|
|
1677
|
-
onKeyDown: A(e.onKeyDown, (v) => {
|
|
1678
|
-
if (v.key === "Tab" && v.shiftKey) {
|
|
1679
|
-
l.onItemShiftTab();
|
|
1680
|
-
return;
|
|
1681
|
-
}
|
|
1682
|
-
if (v.target !== v.currentTarget) return;
|
|
1683
|
-
const x = ls(v, l.orientation, l.dir);
|
|
1684
|
-
if (x !== void 0) {
|
|
1685
|
-
if (v.metaKey || v.ctrlKey || v.altKey || v.shiftKey) return;
|
|
1686
|
-
v.preventDefault();
|
|
1687
|
-
let b = m().filter((C) => C.focusable).map((C) => C.ref.current);
|
|
1688
|
-
if (x === "last") b.reverse();
|
|
1689
|
-
else if (x === "prev" || x === "next") {
|
|
1690
|
-
x === "prev" && b.reverse();
|
|
1691
|
-
const C = b.indexOf(v.currentTarget);
|
|
1692
|
-
b = l.loop ? us(b, C + 1) : b.slice(C + 1);
|
|
1693
|
-
}
|
|
1694
|
-
setTimeout(() => Sn(b));
|
|
1695
|
-
}
|
|
1696
|
-
}),
|
|
1697
|
-
children: typeof i == "function" ? i({ isCurrentTabStop: c, hasTabStop: w != null }) : i
|
|
1698
|
-
}
|
|
1699
|
-
)
|
|
1700
|
-
}
|
|
1701
|
-
);
|
|
1702
|
-
}
|
|
1703
|
-
);
|
|
1704
|
-
An.displayName = Pn;
|
|
1705
|
-
var as = {
|
|
1706
|
-
ArrowLeft: "prev",
|
|
1707
|
-
ArrowUp: "prev",
|
|
1708
|
-
ArrowRight: "next",
|
|
1709
|
-
ArrowDown: "next",
|
|
1710
|
-
PageUp: "first",
|
|
1711
|
-
Home: "first",
|
|
1712
|
-
PageDown: "last",
|
|
1713
|
-
End: "last"
|
|
1714
|
-
};
|
|
1715
|
-
function cs(e, t) {
|
|
1716
|
-
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
1717
|
-
}
|
|
1718
|
-
function ls(e, t, n) {
|
|
1719
|
-
const o = cs(e.key, n);
|
|
1720
|
-
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(o)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(o)))
|
|
1721
|
-
return as[o];
|
|
1722
|
-
}
|
|
1723
|
-
function Sn(e, t = !1) {
|
|
1724
|
-
const n = document.activeElement;
|
|
1725
|
-
for (const o of e)
|
|
1726
|
-
if (o === n || (o.focus({ preventScroll: t }), document.activeElement !== n)) return;
|
|
1727
|
-
}
|
|
1728
|
-
function us(e, t) {
|
|
1729
|
-
return e.map((n, o) => e[(t + o) % e.length]);
|
|
1730
|
-
}
|
|
1731
|
-
var ds = Mn, fs = An, it = ["Enter", " "], ps = ["ArrowDown", "PageUp", "Home"], _n = ["ArrowUp", "PageDown", "End"], ms = [...ps, ..._n], gs = {
|
|
1732
|
-
ltr: [...it, "ArrowRight"],
|
|
1733
|
-
rtl: [...it, "ArrowLeft"]
|
|
1734
|
-
}, hs = {
|
|
1735
|
-
ltr: ["ArrowLeft"],
|
|
1736
|
-
rtl: ["ArrowRight"]
|
|
1737
|
-
}, Oe = "Menu", [Me, vs, ws] = Gt(Oe), [ue, En] = Ae(Oe, [
|
|
1738
|
-
ws,
|
|
1739
|
-
Xe,
|
|
1740
|
-
Rn
|
|
1741
|
-
]), De = Xe(), On = Rn(), [Dn, se] = ue(Oe), [xs, Ie] = ue(Oe), In = (e) => {
|
|
1742
|
-
const { __scopeMenu: t, open: n = !1, children: o, dir: r, onOpenChange: s, modal: i = !0 } = e, a = De(t), [d, f] = u.useState(null), l = u.useRef(!1), c = Se(s), m = Bt(r);
|
|
1743
|
-
return u.useEffect(() => {
|
|
1744
|
-
const g = () => {
|
|
1745
|
-
l.current = !0, document.addEventListener("pointerdown", h, { capture: !0, once: !0 }), document.addEventListener("pointermove", h, { capture: !0, once: !0 });
|
|
1746
|
-
}, h = () => l.current = !1;
|
|
1747
|
-
return document.addEventListener("keydown", g, { capture: !0 }), () => {
|
|
1748
|
-
document.removeEventListener("keydown", g, { capture: !0 }), document.removeEventListener("pointerdown", h, { capture: !0 }), document.removeEventListener("pointermove", h, { capture: !0 });
|
|
1749
|
-
};
|
|
1750
|
-
}, []), /* @__PURE__ */ p.jsx(gt, { ...a, children: /* @__PURE__ */ p.jsx(
|
|
1751
|
-
Dn,
|
|
1752
|
-
{
|
|
1753
|
-
scope: t,
|
|
1754
|
-
open: n,
|
|
1755
|
-
onOpenChange: c,
|
|
1756
|
-
content: d,
|
|
1757
|
-
onContentChange: f,
|
|
1758
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1759
|
-
xs,
|
|
1760
|
-
{
|
|
1761
|
-
scope: t,
|
|
1762
|
-
onClose: u.useCallback(() => c(!1), [c]),
|
|
1763
|
-
isUsingKeyboardRef: l,
|
|
1764
|
-
dir: m,
|
|
1765
|
-
modal: i,
|
|
1766
|
-
children: o
|
|
1767
|
-
}
|
|
1768
|
-
)
|
|
1769
|
-
}
|
|
1770
|
-
) });
|
|
1771
|
-
};
|
|
1772
|
-
In.displayName = Oe;
|
|
1773
|
-
var ys = "MenuAnchor", vt = u.forwardRef(
|
|
1774
|
-
(e, t) => {
|
|
1775
|
-
const { __scopeMenu: n, ...o } = e, r = De(n);
|
|
1776
|
-
return /* @__PURE__ */ p.jsx(ht, { ...r, ...o, ref: t });
|
|
1777
|
-
}
|
|
1778
|
-
);
|
|
1779
|
-
vt.displayName = ys;
|
|
1780
|
-
var wt = "MenuPortal", [bs, Tn] = ue(wt, {
|
|
1781
|
-
forceMount: void 0
|
|
1782
|
-
}), Nn = (e) => {
|
|
1783
|
-
const { __scopeMenu: t, forceMount: n, children: o, container: r } = e, s = se(wt, t);
|
|
1784
|
-
return /* @__PURE__ */ p.jsx(bs, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(ge, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
|
|
1785
|
-
};
|
|
1786
|
-
Nn.displayName = wt;
|
|
1787
|
-
var W = "MenuContent", [Cs, xt] = ue(W), jn = u.forwardRef(
|
|
1788
|
-
(e, t) => {
|
|
1789
|
-
const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = se(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu);
|
|
1790
|
-
return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ p.jsx(Rs, { ...r, ref: t }) : /* @__PURE__ */ p.jsx(Ms, { ...r, ref: t }) }) }) });
|
|
1791
|
-
}
|
|
1792
|
-
), Rs = u.forwardRef(
|
|
1793
|
-
(e, t) => {
|
|
1794
|
-
const n = se(W, e.__scopeMenu), o = u.useRef(null), r = J(t, o);
|
|
1795
|
-
return u.useEffect(() => {
|
|
1796
|
-
const s = o.current;
|
|
1797
|
-
if (s) return Vt(s);
|
|
1798
|
-
}, []), /* @__PURE__ */ p.jsx(
|
|
1799
|
-
yt,
|
|
1800
|
-
{
|
|
1801
|
-
...e,
|
|
1802
|
-
ref: r,
|
|
1803
|
-
trapFocus: n.open,
|
|
1804
|
-
disableOutsidePointerEvents: n.open,
|
|
1805
|
-
disableOutsideScroll: !0,
|
|
1806
|
-
onFocusOutside: A(
|
|
1807
|
-
e.onFocusOutside,
|
|
1808
|
-
(s) => s.preventDefault(),
|
|
1809
|
-
{ checkForDefaultPrevented: !1 }
|
|
1810
|
-
),
|
|
1811
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1812
|
-
}
|
|
1813
|
-
);
|
|
1814
|
-
}
|
|
1815
|
-
), Ms = u.forwardRef((e, t) => {
|
|
1816
|
-
const n = se(W, e.__scopeMenu);
|
|
1817
|
-
return /* @__PURE__ */ p.jsx(
|
|
1818
|
-
yt,
|
|
1819
|
-
{
|
|
1820
|
-
...e,
|
|
1821
|
-
ref: t,
|
|
1822
|
-
trapFocus: !1,
|
|
1823
|
-
disableOutsidePointerEvents: !1,
|
|
1824
|
-
disableOutsideScroll: !1,
|
|
1825
|
-
onDismiss: () => n.onOpenChange(!1)
|
|
1826
|
-
}
|
|
1827
|
-
);
|
|
1828
|
-
}), Ps = Ut("MenuContent.ScrollLock"), yt = u.forwardRef(
|
|
1829
|
-
(e, t) => {
|
|
1830
|
-
const {
|
|
1831
|
-
__scopeMenu: n,
|
|
1832
|
-
loop: o = !1,
|
|
1833
|
-
trapFocus: r,
|
|
1834
|
-
onOpenAutoFocus: s,
|
|
1835
|
-
onCloseAutoFocus: i,
|
|
1836
|
-
disableOutsidePointerEvents: a,
|
|
1837
|
-
onEntryFocus: d,
|
|
1838
|
-
onEscapeKeyDown: f,
|
|
1839
|
-
onPointerDownOutside: l,
|
|
1840
|
-
onFocusOutside: c,
|
|
1841
|
-
onInteractOutside: m,
|
|
1842
|
-
onDismiss: g,
|
|
1843
|
-
disableOutsideScroll: h,
|
|
1844
|
-
...w
|
|
1845
|
-
} = e, v = se(W, n), x = Ie(W, n), R = De(n), b = On(n), C = vs(n), [M, E] = u.useState(null), S = u.useRef(null), _ = J(t, S, v.onContentChange), N = u.useRef(0), D = u.useRef(""), j = u.useRef(0), F = u.useRef(null), T = u.useRef("right"), I = u.useRef(0), $ = h ? zt : u.Fragment, O = h ? { as: Ps, allowPinchZoom: !0 } : void 0, k = (y) => {
|
|
1846
|
-
const G = D.current + y, Y = C().filter((L) => !L.disabled), ae = document.activeElement, we = Y.find((L) => L.ref.current === ae)?.textValue, xe = Y.map((L) => L.textValue), Ne = ks(xe, G, we), ce = Y.find((L) => L.textValue === Ne)?.ref.current;
|
|
1847
|
-
(function L(ye) {
|
|
1848
|
-
D.current = ye, window.clearTimeout(N.current), ye !== "" && (N.current = window.setTimeout(() => L(""), 1e3));
|
|
1849
|
-
})(G), ce && setTimeout(() => ce.focus());
|
|
1850
|
-
};
|
|
1851
|
-
u.useEffect(() => () => window.clearTimeout(N.current), []), Wt();
|
|
1852
|
-
const P = u.useCallback((y) => T.current === F.current?.side && $s(y, F.current?.area), []);
|
|
1853
|
-
return /* @__PURE__ */ p.jsx(
|
|
1854
|
-
Cs,
|
|
1855
|
-
{
|
|
1856
|
-
scope: n,
|
|
1857
|
-
searchRef: D,
|
|
1858
|
-
onItemEnter: u.useCallback(
|
|
1859
|
-
(y) => {
|
|
1860
|
-
P(y) && y.preventDefault();
|
|
1861
|
-
},
|
|
1862
|
-
[P]
|
|
1863
|
-
),
|
|
1864
|
-
onItemLeave: u.useCallback(
|
|
1865
|
-
(y) => {
|
|
1866
|
-
P(y) || (S.current?.focus(), E(null));
|
|
1867
|
-
},
|
|
1868
|
-
[P]
|
|
1869
|
-
),
|
|
1870
|
-
onTriggerLeave: u.useCallback(
|
|
1871
|
-
(y) => {
|
|
1872
|
-
P(y) && y.preventDefault();
|
|
1873
|
-
},
|
|
1874
|
-
[P]
|
|
1875
|
-
),
|
|
1876
|
-
pointerGraceTimerRef: j,
|
|
1877
|
-
onPointerGraceIntentChange: u.useCallback((y) => {
|
|
1878
|
-
F.current = y;
|
|
1879
|
-
}, []),
|
|
1880
|
-
children: /* @__PURE__ */ p.jsx($, { ...O, children: /* @__PURE__ */ p.jsx(
|
|
1881
|
-
Yt,
|
|
1882
|
-
{
|
|
1883
|
-
asChild: !0,
|
|
1884
|
-
trapped: r,
|
|
1885
|
-
onMountAutoFocus: A(s, (y) => {
|
|
1886
|
-
y.preventDefault(), S.current?.focus({ preventScroll: !0 });
|
|
1887
|
-
}),
|
|
1888
|
-
onUnmountAutoFocus: i,
|
|
1889
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1890
|
-
Xt,
|
|
1891
|
-
{
|
|
1892
|
-
asChild: !0,
|
|
1893
|
-
disableOutsidePointerEvents: a,
|
|
1894
|
-
onEscapeKeyDown: f,
|
|
1895
|
-
onPointerDownOutside: l,
|
|
1896
|
-
onFocusOutside: c,
|
|
1897
|
-
onInteractOutside: m,
|
|
1898
|
-
onDismiss: g,
|
|
1899
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1900
|
-
ds,
|
|
1901
|
-
{
|
|
1902
|
-
asChild: !0,
|
|
1903
|
-
...b,
|
|
1904
|
-
dir: x.dir,
|
|
1905
|
-
orientation: "vertical",
|
|
1906
|
-
loop: o,
|
|
1907
|
-
currentTabStopId: M,
|
|
1908
|
-
onCurrentTabStopIdChange: E,
|
|
1909
|
-
onEntryFocus: A(d, (y) => {
|
|
1910
|
-
x.isUsingKeyboardRef.current || y.preventDefault();
|
|
1911
|
-
}),
|
|
1912
|
-
preventScrollOnEntryFocus: !0,
|
|
1913
|
-
children: /* @__PURE__ */ p.jsx(
|
|
1914
|
-
yn,
|
|
1915
|
-
{
|
|
1916
|
-
role: "menu",
|
|
1917
|
-
"aria-orientation": "vertical",
|
|
1918
|
-
"data-state": Jn(v.open),
|
|
1919
|
-
"data-radix-menu-content": "",
|
|
1920
|
-
dir: x.dir,
|
|
1921
|
-
...R,
|
|
1922
|
-
...w,
|
|
1923
|
-
ref: _,
|
|
1924
|
-
style: { outline: "none", ...w.style },
|
|
1925
|
-
onKeyDown: A(w.onKeyDown, (y) => {
|
|
1926
|
-
const Y = y.target.closest("[data-radix-menu-content]") === y.currentTarget, ae = y.ctrlKey || y.altKey || y.metaKey, we = y.key.length === 1;
|
|
1927
|
-
Y && (y.key === "Tab" && y.preventDefault(), !ae && we && k(y.key));
|
|
1928
|
-
const xe = S.current;
|
|
1929
|
-
if (y.target !== xe || !ms.includes(y.key)) return;
|
|
1930
|
-
y.preventDefault();
|
|
1931
|
-
const ce = C().filter((L) => !L.disabled).map((L) => L.ref.current);
|
|
1932
|
-
_n.includes(y.key) && ce.reverse(), js(ce);
|
|
1933
|
-
}),
|
|
1934
|
-
onBlur: A(e.onBlur, (y) => {
|
|
1935
|
-
y.currentTarget.contains(y.target) || (window.clearTimeout(N.current), D.current = "");
|
|
1936
|
-
}),
|
|
1937
|
-
onPointerMove: A(
|
|
1938
|
-
e.onPointerMove,
|
|
1939
|
-
Pe((y) => {
|
|
1940
|
-
const G = y.target, Y = I.current !== y.clientX;
|
|
1941
|
-
if (y.currentTarget.contains(G) && Y) {
|
|
1942
|
-
const ae = y.clientX > I.current ? "right" : "left";
|
|
1943
|
-
T.current = ae, I.current = y.clientX;
|
|
1944
|
-
}
|
|
1945
|
-
})
|
|
1946
|
-
)
|
|
1947
|
-
}
|
|
1948
|
-
)
|
|
1949
|
-
}
|
|
1950
|
-
)
|
|
1951
|
-
}
|
|
1952
|
-
)
|
|
1953
|
-
}
|
|
1954
|
-
) })
|
|
1955
|
-
}
|
|
1956
|
-
);
|
|
1957
|
-
}
|
|
1958
|
-
);
|
|
1959
|
-
jn.displayName = W;
|
|
1960
|
-
var As = "MenuGroup", bt = u.forwardRef(
|
|
1961
|
-
(e, t) => {
|
|
1962
|
-
const { __scopeMenu: n, ...o } = e;
|
|
1963
|
-
return /* @__PURE__ */ p.jsx(K.div, { role: "group", ...o, ref: t });
|
|
1964
|
-
}
|
|
1965
|
-
);
|
|
1966
|
-
bt.displayName = As;
|
|
1967
|
-
var Ss = "MenuLabel", Fn = u.forwardRef(
|
|
1968
|
-
(e, t) => {
|
|
1969
|
-
const { __scopeMenu: n, ...o } = e;
|
|
1970
|
-
return /* @__PURE__ */ p.jsx(K.div, { ...o, ref: t });
|
|
1971
|
-
}
|
|
1972
|
-
);
|
|
1973
|
-
Fn.displayName = Ss;
|
|
1974
|
-
var Ke = "MenuItem", Lt = "menu.itemSelect", qe = u.forwardRef(
|
|
1975
|
-
(e, t) => {
|
|
1976
|
-
const { disabled: n = !1, onSelect: o, ...r } = e, s = u.useRef(null), i = Ie(Ke, e.__scopeMenu), a = xt(Ke, e.__scopeMenu), d = J(t, s), f = u.useRef(!1), l = () => {
|
|
1977
|
-
const c = s.current;
|
|
1978
|
-
if (!n && c) {
|
|
1979
|
-
const m = new CustomEvent(Lt, { bubbles: !0, cancelable: !0 });
|
|
1980
|
-
c.addEventListener(Lt, (g) => o?.(g), { once: !0 }), _o(c, m), m.defaultPrevented ? f.current = !1 : i.onClose();
|
|
1981
|
-
}
|
|
1982
|
-
};
|
|
1983
|
-
return /* @__PURE__ */ p.jsx(
|
|
1984
|
-
kn,
|
|
1985
|
-
{
|
|
1986
|
-
...r,
|
|
1987
|
-
ref: d,
|
|
1988
|
-
disabled: n,
|
|
1989
|
-
onClick: A(e.onClick, l),
|
|
1990
|
-
onPointerDown: (c) => {
|
|
1991
|
-
e.onPointerDown?.(c), f.current = !0;
|
|
1992
|
-
},
|
|
1993
|
-
onPointerUp: A(e.onPointerUp, (c) => {
|
|
1994
|
-
f.current || c.currentTarget?.click();
|
|
1995
|
-
}),
|
|
1996
|
-
onKeyDown: A(e.onKeyDown, (c) => {
|
|
1997
|
-
const m = a.searchRef.current !== "";
|
|
1998
|
-
n || m && c.key === " " || it.includes(c.key) && (c.currentTarget.click(), c.preventDefault());
|
|
1999
|
-
})
|
|
2000
|
-
}
|
|
2001
|
-
);
|
|
2002
|
-
}
|
|
2003
|
-
);
|
|
2004
|
-
qe.displayName = Ke;
|
|
2005
|
-
var kn = u.forwardRef(
|
|
2006
|
-
(e, t) => {
|
|
2007
|
-
const { __scopeMenu: n, disabled: o = !1, textValue: r, ...s } = e, i = xt(Ke, n), a = On(n), d = u.useRef(null), f = J(t, d), [l, c] = u.useState(!1), [m, g] = u.useState("");
|
|
2008
|
-
return u.useEffect(() => {
|
|
2009
|
-
const h = d.current;
|
|
2010
|
-
h && g((h.textContent ?? "").trim());
|
|
2011
|
-
}, [s.children]), /* @__PURE__ */ p.jsx(
|
|
2012
|
-
Me.ItemSlot,
|
|
2013
|
-
{
|
|
2014
|
-
scope: n,
|
|
2015
|
-
disabled: o,
|
|
2016
|
-
textValue: r ?? m,
|
|
2017
|
-
children: /* @__PURE__ */ p.jsx(fs, { asChild: !0, ...a, focusable: !o, children: /* @__PURE__ */ p.jsx(
|
|
2018
|
-
K.div,
|
|
2019
|
-
{
|
|
2020
|
-
role: "menuitem",
|
|
2021
|
-
"data-highlighted": l ? "" : void 0,
|
|
2022
|
-
"aria-disabled": o || void 0,
|
|
2023
|
-
"data-disabled": o ? "" : void 0,
|
|
2024
|
-
...s,
|
|
2025
|
-
ref: f,
|
|
2026
|
-
onPointerMove: A(
|
|
2027
|
-
e.onPointerMove,
|
|
2028
|
-
Pe((h) => {
|
|
2029
|
-
o ? i.onItemLeave(h) : (i.onItemEnter(h), h.defaultPrevented || h.currentTarget.focus({ preventScroll: !0 }));
|
|
2030
|
-
})
|
|
2031
|
-
),
|
|
2032
|
-
onPointerLeave: A(
|
|
2033
|
-
e.onPointerLeave,
|
|
2034
|
-
Pe((h) => i.onItemLeave(h))
|
|
2035
|
-
),
|
|
2036
|
-
onFocus: A(e.onFocus, () => c(!0)),
|
|
2037
|
-
onBlur: A(e.onBlur, () => c(!1))
|
|
2038
|
-
}
|
|
2039
|
-
) })
|
|
2040
|
-
}
|
|
2041
|
-
);
|
|
2042
|
-
}
|
|
2043
|
-
), _s = "MenuCheckboxItem", Ln = u.forwardRef(
|
|
2044
|
-
(e, t) => {
|
|
2045
|
-
const { checked: n = !1, onCheckedChange: o, ...r } = e;
|
|
2046
|
-
return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: n, children: /* @__PURE__ */ p.jsx(
|
|
2047
|
-
qe,
|
|
2048
|
-
{
|
|
2049
|
-
role: "menuitemcheckbox",
|
|
2050
|
-
"aria-checked": He(n) ? "mixed" : n,
|
|
2051
|
-
...r,
|
|
2052
|
-
ref: t,
|
|
2053
|
-
"data-state": Mt(n),
|
|
2054
|
-
onSelect: A(
|
|
2055
|
-
r.onSelect,
|
|
2056
|
-
() => o?.(He(n) ? !0 : !n),
|
|
2057
|
-
{ checkForDefaultPrevented: !1 }
|
|
2058
|
-
)
|
|
2059
|
-
}
|
|
2060
|
-
) });
|
|
2061
|
-
}
|
|
2062
|
-
);
|
|
2063
|
-
Ln.displayName = _s;
|
|
2064
|
-
var $n = "MenuRadioGroup", [Es, Os] = ue(
|
|
2065
|
-
$n,
|
|
2066
|
-
{ value: void 0, onValueChange: () => {
|
|
2067
|
-
} }
|
|
2068
|
-
), Gn = u.forwardRef(
|
|
2069
|
-
(e, t) => {
|
|
2070
|
-
const { value: n, onValueChange: o, ...r } = e, s = Se(o);
|
|
2071
|
-
return /* @__PURE__ */ p.jsx(Es, { scope: e.__scopeMenu, value: n, onValueChange: s, children: /* @__PURE__ */ p.jsx(bt, { ...r, ref: t }) });
|
|
2072
|
-
}
|
|
2073
|
-
);
|
|
2074
|
-
Gn.displayName = $n;
|
|
2075
|
-
var Bn = "MenuRadioItem", Kn = u.forwardRef(
|
|
2076
|
-
(e, t) => {
|
|
2077
|
-
const { value: n, ...o } = e, r = Os(Bn, e.__scopeMenu), s = n === r.value;
|
|
2078
|
-
return /* @__PURE__ */ p.jsx(Hn, { scope: e.__scopeMenu, checked: s, children: /* @__PURE__ */ p.jsx(
|
|
2079
|
-
qe,
|
|
2080
|
-
{
|
|
2081
|
-
role: "menuitemradio",
|
|
2082
|
-
"aria-checked": s,
|
|
2083
|
-
...o,
|
|
2084
|
-
ref: t,
|
|
2085
|
-
"data-state": Mt(s),
|
|
2086
|
-
onSelect: A(
|
|
2087
|
-
o.onSelect,
|
|
2088
|
-
() => r.onValueChange?.(n),
|
|
2089
|
-
{ checkForDefaultPrevented: !1 }
|
|
2090
|
-
)
|
|
2091
|
-
}
|
|
2092
|
-
) });
|
|
2093
|
-
}
|
|
2094
|
-
);
|
|
2095
|
-
Kn.displayName = Bn;
|
|
2096
|
-
var Ct = "MenuItemIndicator", [Hn, Ds] = ue(
|
|
2097
|
-
Ct,
|
|
2098
|
-
{ checked: !1 }
|
|
2099
|
-
), Vn = u.forwardRef(
|
|
2100
|
-
(e, t) => {
|
|
2101
|
-
const { __scopeMenu: n, forceMount: o, ...r } = e, s = Ds(Ct, n);
|
|
2102
|
-
return /* @__PURE__ */ p.jsx(
|
|
2103
|
-
ge,
|
|
2104
|
-
{
|
|
2105
|
-
present: o || He(s.checked) || s.checked === !0,
|
|
2106
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2107
|
-
K.span,
|
|
2108
|
-
{
|
|
2109
|
-
...r,
|
|
2110
|
-
ref: t,
|
|
2111
|
-
"data-state": Mt(s.checked)
|
|
2112
|
-
}
|
|
2113
|
-
)
|
|
2114
|
-
}
|
|
2115
|
-
);
|
|
2116
|
-
}
|
|
2117
|
-
);
|
|
2118
|
-
Vn.displayName = Ct;
|
|
2119
|
-
var Is = "MenuSeparator", Wn = u.forwardRef(
|
|
2120
|
-
(e, t) => {
|
|
2121
|
-
const { __scopeMenu: n, ...o } = e;
|
|
2122
|
-
return /* @__PURE__ */ p.jsx(
|
|
2123
|
-
K.div,
|
|
2124
|
-
{
|
|
2125
|
-
role: "separator",
|
|
2126
|
-
"aria-orientation": "horizontal",
|
|
2127
|
-
...o,
|
|
2128
|
-
ref: t
|
|
2129
|
-
}
|
|
2130
|
-
);
|
|
2131
|
-
}
|
|
2132
|
-
);
|
|
2133
|
-
Wn.displayName = Is;
|
|
2134
|
-
var Ts = "MenuArrow", zn = u.forwardRef(
|
|
2135
|
-
(e, t) => {
|
|
2136
|
-
const { __scopeMenu: n, ...o } = e, r = De(n);
|
|
2137
|
-
return /* @__PURE__ */ p.jsx(bn, { ...r, ...o, ref: t });
|
|
2138
|
-
}
|
|
2139
|
-
);
|
|
2140
|
-
zn.displayName = Ts;
|
|
2141
|
-
var Rt = "MenuSub", [Ns, Un] = ue(Rt), Yn = (e) => {
|
|
2142
|
-
const { __scopeMenu: t, children: n, open: o = !1, onOpenChange: r } = e, s = se(Rt, t), i = De(t), [a, d] = u.useState(null), [f, l] = u.useState(null), c = Se(r);
|
|
2143
|
-
return u.useEffect(() => (s.open === !1 && c(!1), () => c(!1)), [s.open, c]), /* @__PURE__ */ p.jsx(gt, { ...i, children: /* @__PURE__ */ p.jsx(
|
|
2144
|
-
Dn,
|
|
2145
|
-
{
|
|
2146
|
-
scope: t,
|
|
2147
|
-
open: o,
|
|
2148
|
-
onOpenChange: c,
|
|
2149
|
-
content: f,
|
|
2150
|
-
onContentChange: l,
|
|
2151
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2152
|
-
Ns,
|
|
2153
|
-
{
|
|
2154
|
-
scope: t,
|
|
2155
|
-
contentId: fe(),
|
|
2156
|
-
triggerId: fe(),
|
|
2157
|
-
trigger: a,
|
|
2158
|
-
onTriggerChange: d,
|
|
2159
|
-
children: n
|
|
2160
|
-
}
|
|
2161
|
-
)
|
|
2162
|
-
}
|
|
2163
|
-
) });
|
|
2164
|
-
};
|
|
2165
|
-
Yn.displayName = Rt;
|
|
2166
|
-
var be = "MenuSubTrigger", Xn = u.forwardRef(
|
|
2167
|
-
(e, t) => {
|
|
2168
|
-
const n = se(be, e.__scopeMenu), o = Ie(be, e.__scopeMenu), r = Un(be, e.__scopeMenu), s = xt(be, e.__scopeMenu), i = u.useRef(null), { pointerGraceTimerRef: a, onPointerGraceIntentChange: d } = s, f = { __scopeMenu: e.__scopeMenu }, l = u.useCallback(() => {
|
|
2169
|
-
i.current && window.clearTimeout(i.current), i.current = null;
|
|
2170
|
-
}, []);
|
|
2171
|
-
return u.useEffect(() => l, [l]), u.useEffect(() => {
|
|
2172
|
-
const c = a.current;
|
|
2173
|
-
return () => {
|
|
2174
|
-
window.clearTimeout(c), d(null);
|
|
2175
|
-
};
|
|
2176
|
-
}, [a, d]), /* @__PURE__ */ p.jsx(vt, { asChild: !0, ...f, children: /* @__PURE__ */ p.jsx(
|
|
2177
|
-
kn,
|
|
2178
|
-
{
|
|
2179
|
-
id: r.triggerId,
|
|
2180
|
-
"aria-haspopup": "menu",
|
|
2181
|
-
"aria-expanded": n.open,
|
|
2182
|
-
"aria-controls": r.contentId,
|
|
2183
|
-
"data-state": Jn(n.open),
|
|
2184
|
-
...e,
|
|
2185
|
-
ref: Ht(t, r.onTriggerChange),
|
|
2186
|
-
onClick: (c) => {
|
|
2187
|
-
e.onClick?.(c), !(e.disabled || c.defaultPrevented) && (c.currentTarget.focus(), n.open || n.onOpenChange(!0));
|
|
2188
|
-
},
|
|
2189
|
-
onPointerMove: A(
|
|
2190
|
-
e.onPointerMove,
|
|
2191
|
-
Pe((c) => {
|
|
2192
|
-
s.onItemEnter(c), !c.defaultPrevented && !e.disabled && !n.open && !i.current && (s.onPointerGraceIntentChange(null), i.current = window.setTimeout(() => {
|
|
2193
|
-
n.onOpenChange(!0), l();
|
|
2194
|
-
}, 100));
|
|
2195
|
-
})
|
|
2196
|
-
),
|
|
2197
|
-
onPointerLeave: A(
|
|
2198
|
-
e.onPointerLeave,
|
|
2199
|
-
Pe((c) => {
|
|
2200
|
-
l();
|
|
2201
|
-
const m = n.content?.getBoundingClientRect();
|
|
2202
|
-
if (m) {
|
|
2203
|
-
const g = n.content?.dataset.side, h = g === "right", w = h ? -5 : 5, v = m[h ? "left" : "right"], x = m[h ? "right" : "left"];
|
|
2204
|
-
s.onPointerGraceIntentChange({
|
|
2205
|
-
area: [
|
|
2206
|
-
// Apply a bleed on clientX to ensure that our exit point is
|
|
2207
|
-
// consistently within polygon bounds
|
|
2208
|
-
{ x: c.clientX + w, y: c.clientY },
|
|
2209
|
-
{ x: v, y: m.top },
|
|
2210
|
-
{ x, y: m.top },
|
|
2211
|
-
{ x, y: m.bottom },
|
|
2212
|
-
{ x: v, y: m.bottom }
|
|
2213
|
-
],
|
|
2214
|
-
side: g
|
|
2215
|
-
}), window.clearTimeout(a.current), a.current = window.setTimeout(
|
|
2216
|
-
() => s.onPointerGraceIntentChange(null),
|
|
2217
|
-
300
|
|
2218
|
-
);
|
|
2219
|
-
} else {
|
|
2220
|
-
if (s.onTriggerLeave(c), c.defaultPrevented) return;
|
|
2221
|
-
s.onPointerGraceIntentChange(null);
|
|
2222
|
-
}
|
|
2223
|
-
})
|
|
2224
|
-
),
|
|
2225
|
-
onKeyDown: A(e.onKeyDown, (c) => {
|
|
2226
|
-
const m = s.searchRef.current !== "";
|
|
2227
|
-
e.disabled || m && c.key === " " || gs[o.dir].includes(c.key) && (n.onOpenChange(!0), n.content?.focus(), c.preventDefault());
|
|
2228
|
-
})
|
|
2229
|
-
}
|
|
2230
|
-
) });
|
|
2231
|
-
}
|
|
2232
|
-
);
|
|
2233
|
-
Xn.displayName = be;
|
|
2234
|
-
var qn = "MenuSubContent", Zn = u.forwardRef(
|
|
2235
|
-
(e, t) => {
|
|
2236
|
-
const n = Tn(W, e.__scopeMenu), { forceMount: o = n.forceMount, ...r } = e, s = se(W, e.__scopeMenu), i = Ie(W, e.__scopeMenu), a = Un(qn, e.__scopeMenu), d = u.useRef(null), f = J(t, d);
|
|
2237
|
-
return /* @__PURE__ */ p.jsx(Me.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: /* @__PURE__ */ p.jsx(Me.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ p.jsx(
|
|
2238
|
-
yt,
|
|
2239
|
-
{
|
|
2240
|
-
id: a.contentId,
|
|
2241
|
-
"aria-labelledby": a.triggerId,
|
|
2242
|
-
...r,
|
|
2243
|
-
ref: f,
|
|
2244
|
-
align: "start",
|
|
2245
|
-
side: i.dir === "rtl" ? "left" : "right",
|
|
2246
|
-
disableOutsidePointerEvents: !1,
|
|
2247
|
-
disableOutsideScroll: !1,
|
|
2248
|
-
trapFocus: !1,
|
|
2249
|
-
onOpenAutoFocus: (l) => {
|
|
2250
|
-
i.isUsingKeyboardRef.current && d.current?.focus(), l.preventDefault();
|
|
2251
|
-
},
|
|
2252
|
-
onCloseAutoFocus: (l) => l.preventDefault(),
|
|
2253
|
-
onFocusOutside: A(e.onFocusOutside, (l) => {
|
|
2254
|
-
l.target !== a.trigger && s.onOpenChange(!1);
|
|
2255
|
-
}),
|
|
2256
|
-
onEscapeKeyDown: A(e.onEscapeKeyDown, (l) => {
|
|
2257
|
-
i.onClose(), l.preventDefault();
|
|
2258
|
-
}),
|
|
2259
|
-
onKeyDown: A(e.onKeyDown, (l) => {
|
|
2260
|
-
const c = l.currentTarget.contains(l.target), m = hs[i.dir].includes(l.key);
|
|
2261
|
-
c && m && (s.onOpenChange(!1), a.trigger?.focus(), l.preventDefault());
|
|
2262
|
-
})
|
|
2263
|
-
}
|
|
2264
|
-
) }) }) });
|
|
2265
|
-
}
|
|
2266
|
-
);
|
|
2267
|
-
Zn.displayName = qn;
|
|
2268
|
-
function Jn(e) {
|
|
2269
|
-
return e ? "open" : "closed";
|
|
2270
|
-
}
|
|
2271
|
-
function He(e) {
|
|
2272
|
-
return e === "indeterminate";
|
|
2273
|
-
}
|
|
2274
|
-
function Mt(e) {
|
|
2275
|
-
return He(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
2276
|
-
}
|
|
2277
|
-
function js(e) {
|
|
2278
|
-
const t = document.activeElement;
|
|
2279
|
-
for (const n of e)
|
|
2280
|
-
if (n === t || (n.focus(), document.activeElement !== t)) return;
|
|
2281
|
-
}
|
|
2282
|
-
function Fs(e, t) {
|
|
2283
|
-
return e.map((n, o) => e[(t + o) % e.length]);
|
|
2284
|
-
}
|
|
2285
|
-
function ks(e, t, n) {
|
|
2286
|
-
const r = t.length > 1 && Array.from(t).every((f) => f === t[0]) ? t[0] : t, s = n ? e.indexOf(n) : -1;
|
|
2287
|
-
let i = Fs(e, Math.max(s, 0));
|
|
2288
|
-
r.length === 1 && (i = i.filter((f) => f !== n));
|
|
2289
|
-
const d = i.find(
|
|
2290
|
-
(f) => f.toLowerCase().startsWith(r.toLowerCase())
|
|
2291
|
-
);
|
|
2292
|
-
return d !== n ? d : void 0;
|
|
2293
|
-
}
|
|
2294
|
-
function Ls(e, t) {
|
|
2295
|
-
const { x: n, y: o } = e;
|
|
2296
|
-
let r = !1;
|
|
2297
|
-
for (let s = 0, i = t.length - 1; s < t.length; i = s++) {
|
|
2298
|
-
const a = t[s], d = t[i], f = a.x, l = a.y, c = d.x, m = d.y;
|
|
2299
|
-
l > o != m > o && n < (c - f) * (o - l) / (m - l) + f && (r = !r);
|
|
2300
|
-
}
|
|
2301
|
-
return r;
|
|
2302
|
-
}
|
|
2303
|
-
function $s(e, t) {
|
|
2304
|
-
if (!t) return !1;
|
|
2305
|
-
const n = { x: e.clientX, y: e.clientY };
|
|
2306
|
-
return Ls(n, t);
|
|
2307
|
-
}
|
|
2308
|
-
function Pe(e) {
|
|
2309
|
-
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
2310
|
-
}
|
|
2311
|
-
var Gs = In, Bs = vt, Ks = Nn, Hs = jn, Vs = bt, Ws = Fn, zs = qe, Us = Ln, Ys = Gn, Xs = Kn, qs = Vn, Zs = Wn, Js = zn, Qs = Yn, ei = Xn, ti = Zn, Ze = "DropdownMenu", [ni] = Ae(
|
|
2312
|
-
Ze,
|
|
2313
|
-
[En]
|
|
2314
|
-
), B = En(), [oi, Qn] = ni(Ze), eo = (e) => {
|
|
2315
|
-
const {
|
|
2316
|
-
__scopeDropdownMenu: t,
|
|
2317
|
-
children: n,
|
|
2318
|
-
dir: o,
|
|
2319
|
-
open: r,
|
|
2320
|
-
defaultOpen: s,
|
|
2321
|
-
onOpenChange: i,
|
|
2322
|
-
modal: a = !0
|
|
2323
|
-
} = e, d = B(t), f = u.useRef(null), [l, c] = Ve({
|
|
2324
|
-
prop: r,
|
|
2325
|
-
defaultProp: s ?? !1,
|
|
2326
|
-
onChange: i,
|
|
2327
|
-
caller: Ze
|
|
2328
|
-
});
|
|
2329
|
-
return /* @__PURE__ */ p.jsx(
|
|
2330
|
-
oi,
|
|
2331
|
-
{
|
|
2332
|
-
scope: t,
|
|
2333
|
-
triggerId: fe(),
|
|
2334
|
-
triggerRef: f,
|
|
2335
|
-
contentId: fe(),
|
|
2336
|
-
open: l,
|
|
2337
|
-
onOpenChange: c,
|
|
2338
|
-
onOpenToggle: u.useCallback(() => c((m) => !m), [c]),
|
|
2339
|
-
modal: a,
|
|
2340
|
-
children: /* @__PURE__ */ p.jsx(Gs, { ...d, open: l, onOpenChange: c, dir: o, modal: a, children: n })
|
|
2341
|
-
}
|
|
2342
|
-
);
|
|
2343
|
-
};
|
|
2344
|
-
eo.displayName = Ze;
|
|
2345
|
-
var to = "DropdownMenuTrigger", no = u.forwardRef(
|
|
2346
|
-
(e, t) => {
|
|
2347
|
-
const { __scopeDropdownMenu: n, disabled: o = !1, ...r } = e, s = Qn(to, n), i = B(n);
|
|
2348
|
-
return /* @__PURE__ */ p.jsx(Bs, { asChild: !0, ...i, children: /* @__PURE__ */ p.jsx(
|
|
2349
|
-
K.button,
|
|
2350
|
-
{
|
|
2351
|
-
type: "button",
|
|
2352
|
-
id: s.triggerId,
|
|
2353
|
-
"aria-haspopup": "menu",
|
|
2354
|
-
"aria-expanded": s.open,
|
|
2355
|
-
"aria-controls": s.open ? s.contentId : void 0,
|
|
2356
|
-
"data-state": s.open ? "open" : "closed",
|
|
2357
|
-
"data-disabled": o ? "" : void 0,
|
|
2358
|
-
disabled: o,
|
|
2359
|
-
...r,
|
|
2360
|
-
ref: Ht(t, s.triggerRef),
|
|
2361
|
-
onPointerDown: A(e.onPointerDown, (a) => {
|
|
2362
|
-
!o && a.button === 0 && a.ctrlKey === !1 && (s.onOpenToggle(), s.open || a.preventDefault());
|
|
2363
|
-
}),
|
|
2364
|
-
onKeyDown: A(e.onKeyDown, (a) => {
|
|
2365
|
-
o || (["Enter", " "].includes(a.key) && s.onOpenToggle(), a.key === "ArrowDown" && s.onOpenChange(!0), ["Enter", " ", "ArrowDown"].includes(a.key) && a.preventDefault());
|
|
2366
|
-
})
|
|
2367
|
-
}
|
|
2368
|
-
) });
|
|
2369
|
-
}
|
|
2370
|
-
);
|
|
2371
|
-
no.displayName = to;
|
|
2372
|
-
var ri = "DropdownMenuPortal", oo = (e) => {
|
|
2373
|
-
const { __scopeDropdownMenu: t, ...n } = e, o = B(t);
|
|
2374
|
-
return /* @__PURE__ */ p.jsx(Ks, { ...o, ...n });
|
|
2375
|
-
};
|
|
2376
|
-
oo.displayName = ri;
|
|
2377
|
-
var ro = "DropdownMenuContent", so = u.forwardRef(
|
|
2378
|
-
(e, t) => {
|
|
2379
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = Qn(ro, n), s = B(n), i = u.useRef(!1);
|
|
2380
|
-
return /* @__PURE__ */ p.jsx(
|
|
2381
|
-
Hs,
|
|
2382
|
-
{
|
|
2383
|
-
id: r.contentId,
|
|
2384
|
-
"aria-labelledby": r.triggerId,
|
|
2385
|
-
...s,
|
|
2386
|
-
...o,
|
|
2387
|
-
ref: t,
|
|
2388
|
-
onCloseAutoFocus: A(e.onCloseAutoFocus, (a) => {
|
|
2389
|
-
i.current || r.triggerRef.current?.focus(), i.current = !1, a.preventDefault();
|
|
2390
|
-
}),
|
|
2391
|
-
onInteractOutside: A(e.onInteractOutside, (a) => {
|
|
2392
|
-
const d = a.detail.originalEvent, f = d.button === 0 && d.ctrlKey === !0, l = d.button === 2 || f;
|
|
2393
|
-
(!r.modal || l) && (i.current = !0);
|
|
2394
|
-
}),
|
|
2395
|
-
style: {
|
|
2396
|
-
...e.style,
|
|
2397
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2398
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
2399
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
2400
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2401
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2402
|
-
}
|
|
2403
|
-
}
|
|
2404
|
-
);
|
|
2405
|
-
}
|
|
2406
|
-
);
|
|
2407
|
-
so.displayName = ro;
|
|
2408
|
-
var si = "DropdownMenuGroup", ii = u.forwardRef(
|
|
2409
|
-
(e, t) => {
|
|
2410
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2411
|
-
return /* @__PURE__ */ p.jsx(Vs, { ...r, ...o, ref: t });
|
|
2412
|
-
}
|
|
2413
|
-
);
|
|
2414
|
-
ii.displayName = si;
|
|
2415
|
-
var ai = "DropdownMenuLabel", io = u.forwardRef(
|
|
2416
|
-
(e, t) => {
|
|
2417
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2418
|
-
return /* @__PURE__ */ p.jsx(Ws, { ...r, ...o, ref: t });
|
|
2419
|
-
}
|
|
2420
|
-
);
|
|
2421
|
-
io.displayName = ai;
|
|
2422
|
-
var ci = "DropdownMenuItem", ao = u.forwardRef(
|
|
2423
|
-
(e, t) => {
|
|
2424
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2425
|
-
return /* @__PURE__ */ p.jsx(zs, { ...r, ...o, ref: t });
|
|
2426
|
-
}
|
|
2427
|
-
);
|
|
2428
|
-
ao.displayName = ci;
|
|
2429
|
-
var li = "DropdownMenuCheckboxItem", ui = u.forwardRef((e, t) => {
|
|
2430
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2431
|
-
return /* @__PURE__ */ p.jsx(Us, { ...r, ...o, ref: t });
|
|
2432
|
-
});
|
|
2433
|
-
ui.displayName = li;
|
|
2434
|
-
var di = "DropdownMenuRadioGroup", fi = u.forwardRef((e, t) => {
|
|
2435
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2436
|
-
return /* @__PURE__ */ p.jsx(Ys, { ...r, ...o, ref: t });
|
|
2437
|
-
});
|
|
2438
|
-
fi.displayName = di;
|
|
2439
|
-
var pi = "DropdownMenuRadioItem", mi = u.forwardRef((e, t) => {
|
|
2440
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2441
|
-
return /* @__PURE__ */ p.jsx(Xs, { ...r, ...o, ref: t });
|
|
2442
|
-
});
|
|
2443
|
-
mi.displayName = pi;
|
|
2444
|
-
var gi = "DropdownMenuItemIndicator", hi = u.forwardRef((e, t) => {
|
|
2445
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2446
|
-
return /* @__PURE__ */ p.jsx(qs, { ...r, ...o, ref: t });
|
|
2447
|
-
});
|
|
2448
|
-
hi.displayName = gi;
|
|
2449
|
-
var vi = "DropdownMenuSeparator", co = u.forwardRef((e, t) => {
|
|
2450
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2451
|
-
return /* @__PURE__ */ p.jsx(Zs, { ...r, ...o, ref: t });
|
|
2452
|
-
});
|
|
2453
|
-
co.displayName = vi;
|
|
2454
|
-
var wi = "DropdownMenuArrow", xi = u.forwardRef(
|
|
2455
|
-
(e, t) => {
|
|
2456
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2457
|
-
return /* @__PURE__ */ p.jsx(Js, { ...r, ...o, ref: t });
|
|
2458
|
-
}
|
|
2459
|
-
);
|
|
2460
|
-
xi.displayName = wi;
|
|
2461
|
-
var yi = (e) => {
|
|
2462
|
-
const { __scopeDropdownMenu: t, children: n, open: o, onOpenChange: r, defaultOpen: s } = e, i = B(t), [a, d] = Ve({
|
|
2463
|
-
prop: o,
|
|
2464
|
-
defaultProp: s ?? !1,
|
|
2465
|
-
onChange: r,
|
|
2466
|
-
caller: "DropdownMenuSub"
|
|
2467
|
-
});
|
|
2468
|
-
return /* @__PURE__ */ p.jsx(Qs, { ...i, open: a, onOpenChange: d, children: n });
|
|
2469
|
-
}, bi = "DropdownMenuSubTrigger", lo = u.forwardRef((e, t) => {
|
|
2470
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2471
|
-
return /* @__PURE__ */ p.jsx(ei, { ...r, ...o, ref: t });
|
|
2472
|
-
});
|
|
2473
|
-
lo.displayName = bi;
|
|
2474
|
-
var Ci = "DropdownMenuSubContent", uo = u.forwardRef((e, t) => {
|
|
2475
|
-
const { __scopeDropdownMenu: n, ...o } = e, r = B(n);
|
|
2476
|
-
return /* @__PURE__ */ p.jsx(
|
|
2477
|
-
ti,
|
|
2478
|
-
{
|
|
2479
|
-
...r,
|
|
2480
|
-
...o,
|
|
2481
|
-
ref: t,
|
|
2482
|
-
style: {
|
|
2483
|
-
...e.style,
|
|
2484
|
-
"--radix-dropdown-menu-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2485
|
-
"--radix-dropdown-menu-content-available-width": "var(--radix-popper-available-width)",
|
|
2486
|
-
"--radix-dropdown-menu-content-available-height": "var(--radix-popper-available-height)",
|
|
2487
|
-
"--radix-dropdown-menu-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2488
|
-
"--radix-dropdown-menu-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2489
|
-
}
|
|
2490
|
-
}
|
|
2491
|
-
);
|
|
2492
|
-
});
|
|
2493
|
-
uo.displayName = Ci;
|
|
2494
|
-
var Ri = eo, Mi = no, Pi = oo, Ai = so, Si = io, _i = ao, Ei = co, Oi = yi, Di = lo, Ii = uo, Je = "Popover", [fo] = Ae(Je, [
|
|
2495
|
-
Xe
|
|
2496
|
-
]), Te = Xe(), [Ti, ie] = fo(Je), po = (e) => {
|
|
2497
|
-
const {
|
|
2498
|
-
__scopePopover: t,
|
|
2499
|
-
children: n,
|
|
2500
|
-
open: o,
|
|
2501
|
-
defaultOpen: r,
|
|
2502
|
-
onOpenChange: s,
|
|
2503
|
-
modal: i = !1
|
|
2504
|
-
} = e, a = Te(t), d = u.useRef(null), [f, l] = u.useState(!1), [c, m] = Ve({
|
|
2505
|
-
prop: o,
|
|
2506
|
-
defaultProp: r ?? !1,
|
|
2507
|
-
onChange: s,
|
|
2508
|
-
caller: Je
|
|
2509
|
-
});
|
|
2510
|
-
return /* @__PURE__ */ p.jsx(gt, { ...a, children: /* @__PURE__ */ p.jsx(
|
|
2511
|
-
Ti,
|
|
2512
|
-
{
|
|
2513
|
-
scope: t,
|
|
2514
|
-
contentId: fe(),
|
|
2515
|
-
triggerRef: d,
|
|
2516
|
-
open: c,
|
|
2517
|
-
onOpenChange: m,
|
|
2518
|
-
onOpenToggle: u.useCallback(() => m((g) => !g), [m]),
|
|
2519
|
-
hasCustomAnchor: f,
|
|
2520
|
-
onCustomAnchorAdd: u.useCallback(() => l(!0), []),
|
|
2521
|
-
onCustomAnchorRemove: u.useCallback(() => l(!1), []),
|
|
2522
|
-
modal: i,
|
|
2523
|
-
children: n
|
|
2524
|
-
}
|
|
2525
|
-
) });
|
|
2526
|
-
};
|
|
2527
|
-
po.displayName = Je;
|
|
2528
|
-
var mo = "PopoverAnchor", Ni = u.forwardRef(
|
|
2529
|
-
(e, t) => {
|
|
2530
|
-
const { __scopePopover: n, ...o } = e, r = ie(mo, n), s = Te(n), { onCustomAnchorAdd: i, onCustomAnchorRemove: a } = r;
|
|
2531
|
-
return u.useEffect(() => (i(), () => a()), [i, a]), /* @__PURE__ */ p.jsx(ht, { ...s, ...o, ref: t });
|
|
2532
|
-
}
|
|
2533
|
-
);
|
|
2534
|
-
Ni.displayName = mo;
|
|
2535
|
-
var go = "PopoverTrigger", ho = u.forwardRef(
|
|
2536
|
-
(e, t) => {
|
|
2537
|
-
const { __scopePopover: n, ...o } = e, r = ie(go, n), s = Te(n), i = J(t, r.triggerRef), a = /* @__PURE__ */ p.jsx(
|
|
2538
|
-
K.button,
|
|
2539
|
-
{
|
|
2540
|
-
type: "button",
|
|
2541
|
-
"aria-haspopup": "dialog",
|
|
2542
|
-
"aria-expanded": r.open,
|
|
2543
|
-
"aria-controls": r.contentId,
|
|
2544
|
-
"data-state": bo(r.open),
|
|
2545
|
-
...o,
|
|
2546
|
-
ref: i,
|
|
2547
|
-
onClick: A(e.onClick, r.onOpenToggle)
|
|
2548
|
-
}
|
|
2549
|
-
);
|
|
2550
|
-
return r.hasCustomAnchor ? a : /* @__PURE__ */ p.jsx(ht, { asChild: !0, ...s, children: a });
|
|
2551
|
-
}
|
|
2552
|
-
);
|
|
2553
|
-
ho.displayName = go;
|
|
2554
|
-
var Pt = "PopoverPortal", [ji, Fi] = fo(Pt, {
|
|
2555
|
-
forceMount: void 0
|
|
2556
|
-
}), vo = (e) => {
|
|
2557
|
-
const { __scopePopover: t, forceMount: n, children: o, container: r } = e, s = ie(Pt, t);
|
|
2558
|
-
return /* @__PURE__ */ p.jsx(ji, { scope: t, forceMount: n, children: /* @__PURE__ */ p.jsx(ge, { present: n || s.open, children: /* @__PURE__ */ p.jsx(Kt, { asChild: !0, container: r, children: o }) }) });
|
|
2559
|
-
};
|
|
2560
|
-
vo.displayName = Pt;
|
|
2561
|
-
var me = "PopoverContent", wo = u.forwardRef(
|
|
2562
|
-
(e, t) => {
|
|
2563
|
-
const n = Fi(me, e.__scopePopover), { forceMount: o = n.forceMount, ...r } = e, s = ie(me, e.__scopePopover);
|
|
2564
|
-
return /* @__PURE__ */ p.jsx(ge, { present: o || s.open, children: s.modal ? /* @__PURE__ */ p.jsx(Li, { ...r, ref: t }) : /* @__PURE__ */ p.jsx($i, { ...r, ref: t }) });
|
|
2565
|
-
}
|
|
2566
|
-
);
|
|
2567
|
-
wo.displayName = me;
|
|
2568
|
-
var ki = Ut("PopoverContent.RemoveScroll"), Li = u.forwardRef(
|
|
2569
|
-
(e, t) => {
|
|
2570
|
-
const n = ie(me, e.__scopePopover), o = u.useRef(null), r = J(t, o), s = u.useRef(!1);
|
|
2571
|
-
return u.useEffect(() => {
|
|
2572
|
-
const i = o.current;
|
|
2573
|
-
if (i) return Vt(i);
|
|
2574
|
-
}, []), /* @__PURE__ */ p.jsx(zt, { as: ki, allowPinchZoom: !0, children: /* @__PURE__ */ p.jsx(
|
|
2575
|
-
xo,
|
|
2576
|
-
{
|
|
2577
|
-
...e,
|
|
2578
|
-
ref: r,
|
|
2579
|
-
trapFocus: n.open,
|
|
2580
|
-
disableOutsidePointerEvents: !0,
|
|
2581
|
-
onCloseAutoFocus: A(e.onCloseAutoFocus, (i) => {
|
|
2582
|
-
i.preventDefault(), s.current || n.triggerRef.current?.focus();
|
|
2583
|
-
}),
|
|
2584
|
-
onPointerDownOutside: A(
|
|
2585
|
-
e.onPointerDownOutside,
|
|
2586
|
-
(i) => {
|
|
2587
|
-
const a = i.detail.originalEvent, d = a.button === 0 && a.ctrlKey === !0, f = a.button === 2 || d;
|
|
2588
|
-
s.current = f;
|
|
2589
|
-
},
|
|
2590
|
-
{ checkForDefaultPrevented: !1 }
|
|
2591
|
-
),
|
|
2592
|
-
onFocusOutside: A(
|
|
2593
|
-
e.onFocusOutside,
|
|
2594
|
-
(i) => i.preventDefault(),
|
|
2595
|
-
{ checkForDefaultPrevented: !1 }
|
|
2596
|
-
)
|
|
2597
|
-
}
|
|
2598
|
-
) });
|
|
2599
|
-
}
|
|
2600
|
-
), $i = u.forwardRef(
|
|
2601
|
-
(e, t) => {
|
|
2602
|
-
const n = ie(me, e.__scopePopover), o = u.useRef(!1), r = u.useRef(!1);
|
|
2603
|
-
return /* @__PURE__ */ p.jsx(
|
|
2604
|
-
xo,
|
|
2605
|
-
{
|
|
2606
|
-
...e,
|
|
2607
|
-
ref: t,
|
|
2608
|
-
trapFocus: !1,
|
|
2609
|
-
disableOutsidePointerEvents: !1,
|
|
2610
|
-
onCloseAutoFocus: (s) => {
|
|
2611
|
-
e.onCloseAutoFocus?.(s), s.defaultPrevented || (o.current || n.triggerRef.current?.focus(), s.preventDefault()), o.current = !1, r.current = !1;
|
|
2612
|
-
},
|
|
2613
|
-
onInteractOutside: (s) => {
|
|
2614
|
-
e.onInteractOutside?.(s), s.defaultPrevented || (o.current = !0, s.detail.originalEvent.type === "pointerdown" && (r.current = !0));
|
|
2615
|
-
const i = s.target;
|
|
2616
|
-
n.triggerRef.current?.contains(i) && s.preventDefault(), s.detail.originalEvent.type === "focusin" && r.current && s.preventDefault();
|
|
2617
|
-
}
|
|
2618
|
-
}
|
|
2619
|
-
);
|
|
2620
|
-
}
|
|
2621
|
-
), xo = u.forwardRef(
|
|
2622
|
-
(e, t) => {
|
|
2623
|
-
const {
|
|
2624
|
-
__scopePopover: n,
|
|
2625
|
-
trapFocus: o,
|
|
2626
|
-
onOpenAutoFocus: r,
|
|
2627
|
-
onCloseAutoFocus: s,
|
|
2628
|
-
disableOutsidePointerEvents: i,
|
|
2629
|
-
onEscapeKeyDown: a,
|
|
2630
|
-
onPointerDownOutside: d,
|
|
2631
|
-
onFocusOutside: f,
|
|
2632
|
-
onInteractOutside: l,
|
|
2633
|
-
...c
|
|
2634
|
-
} = e, m = ie(me, n), g = Te(n);
|
|
2635
|
-
return Wt(), /* @__PURE__ */ p.jsx(
|
|
2636
|
-
Yt,
|
|
2637
|
-
{
|
|
2638
|
-
asChild: !0,
|
|
2639
|
-
loop: !0,
|
|
2640
|
-
trapped: o,
|
|
2641
|
-
onMountAutoFocus: r,
|
|
2642
|
-
onUnmountAutoFocus: s,
|
|
2643
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2644
|
-
Xt,
|
|
2645
|
-
{
|
|
2646
|
-
asChild: !0,
|
|
2647
|
-
disableOutsidePointerEvents: i,
|
|
2648
|
-
onInteractOutside: l,
|
|
2649
|
-
onEscapeKeyDown: a,
|
|
2650
|
-
onPointerDownOutside: d,
|
|
2651
|
-
onFocusOutside: f,
|
|
2652
|
-
onDismiss: () => m.onOpenChange(!1),
|
|
2653
|
-
children: /* @__PURE__ */ p.jsx(
|
|
2654
|
-
yn,
|
|
2655
|
-
{
|
|
2656
|
-
"data-state": bo(m.open),
|
|
2657
|
-
role: "dialog",
|
|
2658
|
-
id: m.contentId,
|
|
2659
|
-
...g,
|
|
2660
|
-
...c,
|
|
2661
|
-
ref: t,
|
|
2662
|
-
style: {
|
|
2663
|
-
...c.style,
|
|
2664
|
-
"--radix-popover-content-transform-origin": "var(--radix-popper-transform-origin)",
|
|
2665
|
-
"--radix-popover-content-available-width": "var(--radix-popper-available-width)",
|
|
2666
|
-
"--radix-popover-content-available-height": "var(--radix-popper-available-height)",
|
|
2667
|
-
"--radix-popover-trigger-width": "var(--radix-popper-anchor-width)",
|
|
2668
|
-
"--radix-popover-trigger-height": "var(--radix-popper-anchor-height)"
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
)
|
|
2672
|
-
}
|
|
2673
|
-
)
|
|
2674
|
-
}
|
|
2675
|
-
);
|
|
2676
|
-
}
|
|
2677
|
-
), yo = "PopoverClose", Gi = u.forwardRef(
|
|
2678
|
-
(e, t) => {
|
|
2679
|
-
const { __scopePopover: n, ...o } = e, r = ie(yo, n);
|
|
2680
|
-
return /* @__PURE__ */ p.jsx(
|
|
2681
|
-
K.button,
|
|
2682
|
-
{
|
|
2683
|
-
type: "button",
|
|
2684
|
-
...o,
|
|
2685
|
-
ref: t,
|
|
2686
|
-
onClick: A(e.onClick, () => r.onOpenChange(!1))
|
|
2687
|
-
}
|
|
2688
|
-
);
|
|
2689
|
-
}
|
|
2690
|
-
);
|
|
2691
|
-
Gi.displayName = yo;
|
|
2692
|
-
var Bi = "PopoverArrow", Ki = u.forwardRef(
|
|
2693
|
-
(e, t) => {
|
|
2694
|
-
const { __scopePopover: n, ...o } = e, r = Te(n);
|
|
2695
|
-
return /* @__PURE__ */ p.jsx(bn, { ...r, ...o, ref: t });
|
|
2696
|
-
}
|
|
2697
|
-
);
|
|
2698
|
-
Ki.displayName = Bi;
|
|
2699
|
-
function bo(e) {
|
|
2700
|
-
return e ? "open" : "closed";
|
|
2701
|
-
}
|
|
2702
|
-
var Hi = po, Vi = ho, Wi = vo, zi = wo;
|
|
2703
|
-
function Ji({
|
|
2704
|
-
...e
|
|
2705
|
-
}) {
|
|
2706
|
-
return /* @__PURE__ */ p.jsx(Hi, { "data-slot": "popover", ...e });
|
|
2707
|
-
}
|
|
2708
|
-
function Qi({
|
|
2709
|
-
...e
|
|
2710
|
-
}) {
|
|
2711
|
-
return /* @__PURE__ */ p.jsx(Vi, { "data-slot": "popover-trigger", ...e });
|
|
2712
|
-
}
|
|
2713
|
-
function ea({
|
|
2714
|
-
className: e,
|
|
2715
|
-
align: t = "center",
|
|
2716
|
-
sideOffset: n = 4,
|
|
2717
|
-
...o
|
|
2718
|
-
}) {
|
|
2719
|
-
const r = qt();
|
|
2720
|
-
return /* @__PURE__ */ p.jsx(Wi, { container: r, children: /* @__PURE__ */ p.jsx(
|
|
2721
|
-
zi,
|
|
2722
|
-
{
|
|
2723
|
-
"data-slot": "popover-content",
|
|
2724
|
-
align: t,
|
|
2725
|
-
sideOffset: n,
|
|
2726
|
-
className: re(
|
|
2727
|
-
"cn-popover-content z-50 w-72 origin-(--radix-popover-content-transform-origin) outline-hidden",
|
|
2728
|
-
e
|
|
2729
|
-
),
|
|
2730
|
-
...o
|
|
2731
|
-
}
|
|
2732
|
-
) });
|
|
2733
|
-
}
|
|
2734
|
-
function ta({
|
|
2735
|
-
...e
|
|
2736
|
-
}) {
|
|
2737
|
-
return /* @__PURE__ */ p.jsx(Ri, { "data-slot": "dropdown-menu", ...e });
|
|
2738
|
-
}
|
|
2739
|
-
function na({
|
|
2740
|
-
...e
|
|
2741
|
-
}) {
|
|
2742
|
-
return /* @__PURE__ */ p.jsx(
|
|
2743
|
-
Mi,
|
|
2744
|
-
{
|
|
2745
|
-
"data-slot": "dropdown-menu-trigger",
|
|
2746
|
-
...e
|
|
2747
|
-
}
|
|
2748
|
-
);
|
|
2749
|
-
}
|
|
2750
|
-
function oa({
|
|
2751
|
-
className: e,
|
|
2752
|
-
sideOffset: t = 4,
|
|
2753
|
-
...n
|
|
2754
|
-
}) {
|
|
2755
|
-
const o = qt();
|
|
2756
|
-
return /* @__PURE__ */ p.jsx(Pi, { container: o, children: /* @__PURE__ */ p.jsx(
|
|
2757
|
-
Ai,
|
|
2758
|
-
{
|
|
2759
|
-
"data-slot": "dropdown-menu-content",
|
|
2760
|
-
sideOffset: t,
|
|
2761
|
-
className: re(
|
|
2762
|
-
"bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",
|
|
2763
|
-
e
|
|
2764
|
-
),
|
|
2765
|
-
...n
|
|
2766
|
-
}
|
|
2767
|
-
) });
|
|
2768
|
-
}
|
|
2769
|
-
function ra({
|
|
2770
|
-
className: e,
|
|
2771
|
-
inset: t,
|
|
2772
|
-
variant: n = "default",
|
|
2773
|
-
...o
|
|
2774
|
-
}) {
|
|
2775
|
-
return /* @__PURE__ */ p.jsx(
|
|
2776
|
-
_i,
|
|
2777
|
-
{
|
|
2778
|
-
"data-slot": "dropdown-menu-item",
|
|
2779
|
-
"data-inset": t,
|
|
2780
|
-
"data-variant": n,
|
|
2781
|
-
className: re(
|
|
2782
|
-
"focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 data-[variant=destructive]:focus:text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground data-[variant=destructive]:*:[svg]:!text-destructive relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2783
|
-
e
|
|
2784
|
-
),
|
|
2785
|
-
...o
|
|
2786
|
-
}
|
|
2787
|
-
);
|
|
2788
|
-
}
|
|
2789
|
-
function sa({
|
|
2790
|
-
className: e,
|
|
2791
|
-
inset: t,
|
|
2792
|
-
...n
|
|
2793
|
-
}) {
|
|
2794
|
-
return /* @__PURE__ */ p.jsx(
|
|
2795
|
-
Si,
|
|
2796
|
-
{
|
|
2797
|
-
"data-slot": "dropdown-menu-label",
|
|
2798
|
-
"data-inset": t,
|
|
2799
|
-
className: re(
|
|
2800
|
-
"px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",
|
|
2801
|
-
e
|
|
2802
|
-
),
|
|
2803
|
-
...n
|
|
2804
|
-
}
|
|
2805
|
-
);
|
|
2806
|
-
}
|
|
2807
|
-
function ia({
|
|
2808
|
-
className: e,
|
|
2809
|
-
...t
|
|
2810
|
-
}) {
|
|
2811
|
-
return /* @__PURE__ */ p.jsx(
|
|
2812
|
-
Ei,
|
|
2813
|
-
{
|
|
2814
|
-
"data-slot": "dropdown-menu-separator",
|
|
2815
|
-
className: re("bg-border -mx-1 my-1 h-px", e),
|
|
2816
|
-
...t
|
|
2817
|
-
}
|
|
2818
|
-
);
|
|
2819
|
-
}
|
|
2820
|
-
function aa({
|
|
2821
|
-
...e
|
|
2822
|
-
}) {
|
|
2823
|
-
return /* @__PURE__ */ p.jsx(Oi, { "data-slot": "dropdown-menu-sub", ...e });
|
|
2824
|
-
}
|
|
2825
|
-
function ca({
|
|
2826
|
-
className: e,
|
|
2827
|
-
inset: t,
|
|
2828
|
-
children: n,
|
|
2829
|
-
...o
|
|
2830
|
-
}) {
|
|
2831
|
-
return /* @__PURE__ */ p.jsxs(
|
|
2832
|
-
Di,
|
|
2833
|
-
{
|
|
2834
|
-
"data-slot": "dropdown-menu-sub-trigger",
|
|
2835
|
-
"data-inset": t,
|
|
2836
|
-
className: re(
|
|
2837
|
-
"focus:bg-accent focus:text-accent-foreground data-[state=open]:bg-accent data-[state=open]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
2838
|
-
e
|
|
2839
|
-
),
|
|
2840
|
-
...o,
|
|
2841
|
-
children: [
|
|
2842
|
-
n,
|
|
2843
|
-
/* @__PURE__ */ p.jsx(Eo, { className: "ml-auto size-4" })
|
|
2844
|
-
]
|
|
2845
|
-
}
|
|
2846
|
-
);
|
|
2847
|
-
}
|
|
2848
|
-
function la({
|
|
2849
|
-
className: e,
|
|
2850
|
-
...t
|
|
2851
|
-
}) {
|
|
2852
|
-
return /* @__PURE__ */ p.jsx(
|
|
2853
|
-
Ii,
|
|
2854
|
-
{
|
|
2855
|
-
"data-slot": "dropdown-menu-sub-content",
|
|
2856
|
-
className: re(
|
|
2857
|
-
"bg-popover text-popover-foreground data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[state=open]:animate-in data-[state=open]:fade-in-0 data-[state=open]:zoom-in-95 z-50 min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-hidden rounded-md border p-1 shadow-lg",
|
|
2858
|
-
e
|
|
2859
|
-
),
|
|
2860
|
-
...t
|
|
2861
|
-
}
|
|
2862
|
-
);
|
|
2863
|
-
}
|
|
2864
|
-
function ua({
|
|
2865
|
-
open: e,
|
|
2866
|
-
onOpenChange: t,
|
|
2867
|
-
title: n,
|
|
2868
|
-
actions: o
|
|
2869
|
-
}) {
|
|
2870
|
-
return /* @__PURE__ */ p.jsxs(Do, { open: e, onOpenChange: t, title: n, children: [
|
|
2871
|
-
/* @__PURE__ */ p.jsx(
|
|
2872
|
-
"div",
|
|
2873
|
-
{
|
|
2874
|
-
"aria-hidden": "true",
|
|
2875
|
-
className: "border-border -mr-[max(0.5rem,env(safe-area-inset-right))] -ml-[max(0.5rem,env(safe-area-inset-left))] border-t"
|
|
2876
|
-
}
|
|
2877
|
-
),
|
|
2878
|
-
/* @__PURE__ */ p.jsx("div", { className: "divide-border/50 border-border/50 divide-y border-b", children: o.map((r) => /* @__PURE__ */ p.jsxs(
|
|
2879
|
-
Oo,
|
|
2880
|
-
{
|
|
2881
|
-
type: "button",
|
|
2882
|
-
variant: "ghost",
|
|
2883
|
-
disabled: r.disabled,
|
|
2884
|
-
"aria-pressed": r.selected,
|
|
2885
|
-
className: re(
|
|
2886
|
-
"h-13 w-full justify-start rounded-none px-4 text-base font-medium",
|
|
2887
|
-
r.variant === "destructive" && "text-destructive hover:bg-destructive/10 hover:text-destructive focus-visible:ring-destructive/20"
|
|
2888
|
-
),
|
|
2889
|
-
onClick: () => {
|
|
2890
|
-
r.onSelect(), t(!1);
|
|
2891
|
-
},
|
|
2892
|
-
children: [
|
|
2893
|
-
/* @__PURE__ */ p.jsx("span", { className: "flex-1 text-left", children: r.label }),
|
|
2894
|
-
r.selected ? /* @__PURE__ */ p.jsx(
|
|
2895
|
-
Io,
|
|
2896
|
-
{
|
|
2897
|
-
"aria-hidden": "true",
|
|
2898
|
-
className: "text-muted-foreground size-4"
|
|
2899
|
-
}
|
|
2900
|
-
) : null
|
|
2901
|
-
]
|
|
2902
|
-
},
|
|
2903
|
-
r.id
|
|
2904
|
-
)) })
|
|
2905
|
-
] });
|
|
2906
|
-
}
|
|
2907
|
-
export {
|
|
2908
|
-
ht as A,
|
|
2909
|
-
Js as B,
|
|
2910
|
-
Xi as C,
|
|
2911
|
-
ta as D,
|
|
2912
|
-
qi as E,
|
|
2913
|
-
Rn as F,
|
|
2914
|
-
Vs as G,
|
|
2915
|
-
ds as H,
|
|
2916
|
-
zs as I,
|
|
2917
|
-
fs as J,
|
|
2918
|
-
Ws as L,
|
|
2919
|
-
ua as M,
|
|
2920
|
-
Ji as P,
|
|
2921
|
-
gt as R,
|
|
2922
|
-
Qs as S,
|
|
2923
|
-
jo as V,
|
|
2924
|
-
na as a,
|
|
2925
|
-
oa as b,
|
|
2926
|
-
ra as c,
|
|
2927
|
-
aa as d,
|
|
2928
|
-
ca as e,
|
|
2929
|
-
la as f,
|
|
2930
|
-
Qi as g,
|
|
2931
|
-
ea as h,
|
|
2932
|
-
ia as i,
|
|
2933
|
-
sa as j,
|
|
2934
|
-
Xe as k,
|
|
2935
|
-
yn as l,
|
|
2936
|
-
Zi as m,
|
|
2937
|
-
bn as n,
|
|
2938
|
-
En as o,
|
|
2939
|
-
Gs as p,
|
|
2940
|
-
Bs as q,
|
|
2941
|
-
Ks as r,
|
|
2942
|
-
Hs as s,
|
|
2943
|
-
ei as t,
|
|
2944
|
-
ti as u,
|
|
2945
|
-
Zs as v,
|
|
2946
|
-
Us as w,
|
|
2947
|
-
Ys as x,
|
|
2948
|
-
Xs as y,
|
|
2949
|
-
qs as z
|
|
2950
|
-
};
|