@usace/groundwork 4.0.0-beta.2 → 4.0.0-beta.4
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/groundwork.es.js +798 -794
- package/dist/groundwork.umd.js +13 -5
- package/dist/style.css +1 -62
- package/package.json +1 -1
package/dist/groundwork.es.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
import { jsx as O, jsxs as T, Fragment as KA } from "react/jsx-runtime";
|
|
2
2
|
import * as V from "react";
|
|
3
|
-
import P, { useMemo as L, forwardRef as Ht, createContext as rA, useContext as h, useRef as C, useState as K, useEffect as eA, useCallback as AA, useLayoutEffect as pn, Fragment as qA, isValidElement as
|
|
3
|
+
import P, { useMemo as L, forwardRef as Ht, createContext as rA, useContext as h, useRef as C, useState as K, useEffect as eA, useCallback as AA, useLayoutEffect as pn, Fragment as qA, isValidElement as su, cloneElement as fu, createElement as au, useId as lA, useReducer as be, useSyncExternalStore as lu, createRef as vu } from "react";
|
|
4
4
|
import * as ue from "react-dom";
|
|
5
|
-
import { createPortal as
|
|
6
|
-
const Dn = "-",
|
|
7
|
-
const t =
|
|
5
|
+
import { createPortal as Ou, flushSync as dn } from "react-dom";
|
|
6
|
+
const Dn = "-", zu = (A) => {
|
|
7
|
+
const t = ou(A), {
|
|
8
8
|
conflictingClassGroups: e,
|
|
9
9
|
conflictingClassGroupModifiers: n
|
|
10
10
|
} = A;
|
|
11
11
|
return {
|
|
12
12
|
getClassGroupId: (u) => {
|
|
13
13
|
const s = u.split(Dn);
|
|
14
|
-
return s[0] === "" && s.length !== 1 && s.shift(),
|
|
14
|
+
return s[0] === "" && s.length !== 1 && s.shift(), zr(s, t) || cu(u);
|
|
15
15
|
},
|
|
16
16
|
getConflictingClassGroupIds: (u, s) => {
|
|
17
17
|
const f = e[u] || [];
|
|
18
18
|
return s && n[u] ? [...f, ...n[u]] : f;
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
|
-
},
|
|
21
|
+
}, zr = (A, t) => {
|
|
22
22
|
var u;
|
|
23
23
|
if (A.length === 0)
|
|
24
24
|
return t.classGroupId;
|
|
25
|
-
const e = A[0], n = t.nextPart.get(e), d = n ?
|
|
25
|
+
const e = A[0], n = t.nextPart.get(e), d = n ? zr(A.slice(1), n) : void 0;
|
|
26
26
|
if (d)
|
|
27
27
|
return d;
|
|
28
28
|
if (t.validators.length === 0)
|
|
@@ -31,13 +31,13 @@ const Dn = "-", su = (A) => {
|
|
|
31
31
|
return (u = t.validators.find(({
|
|
32
32
|
validator: s
|
|
33
33
|
}) => s(r))) == null ? void 0 : u.classGroupId;
|
|
34
|
-
}, fd = /^\[(.+)\]$/,
|
|
34
|
+
}, fd = /^\[(.+)\]$/, cu = (A) => {
|
|
35
35
|
if (fd.test(A)) {
|
|
36
36
|
const t = fd.exec(A)[1], e = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
37
37
|
if (e)
|
|
38
38
|
return "arbitrary.." + e;
|
|
39
39
|
}
|
|
40
|
-
},
|
|
40
|
+
}, ou = (A) => {
|
|
41
41
|
const {
|
|
42
42
|
theme: t,
|
|
43
43
|
prefix: e
|
|
@@ -45,7 +45,7 @@ const Dn = "-", su = (A) => {
|
|
|
45
45
|
nextPart: /* @__PURE__ */ new Map(),
|
|
46
46
|
validators: []
|
|
47
47
|
};
|
|
48
|
-
return
|
|
48
|
+
return gu(Object.entries(A.classGroups), e).forEach(([r, u]) => {
|
|
49
49
|
rn(u, n, r, t);
|
|
50
50
|
}), n;
|
|
51
51
|
}, rn = (A, t, e, n) => {
|
|
@@ -56,7 +56,7 @@ const Dn = "-", su = (A) => {
|
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
if (typeof d == "function") {
|
|
59
|
-
if (
|
|
59
|
+
if (wu(d)) {
|
|
60
60
|
rn(d(n), t, e, n);
|
|
61
61
|
return;
|
|
62
62
|
}
|
|
@@ -78,10 +78,10 @@ const Dn = "-", su = (A) => {
|
|
|
78
78
|
validators: []
|
|
79
79
|
}), e = e.nextPart.get(n);
|
|
80
80
|
}), e;
|
|
81
|
-
},
|
|
81
|
+
}, wu = (A) => A.isThemeGetter, gu = (A, t) => t ? A.map(([e, n]) => {
|
|
82
82
|
const d = n.map((r) => typeof r == "string" ? t + r : typeof r == "object" ? Object.fromEntries(Object.entries(r).map(([u, s]) => [t + u, s])) : r);
|
|
83
83
|
return [e, d];
|
|
84
|
-
}) : A,
|
|
84
|
+
}) : A, bu = (A) => {
|
|
85
85
|
if (A < 1)
|
|
86
86
|
return {
|
|
87
87
|
get: () => {
|
|
@@ -105,7 +105,7 @@ const Dn = "-", su = (A) => {
|
|
|
105
105
|
e.has(r) ? e.set(r, u) : d(r, u);
|
|
106
106
|
}
|
|
107
107
|
};
|
|
108
|
-
},
|
|
108
|
+
}, cr = "!", pu = (A) => {
|
|
109
109
|
const {
|
|
110
110
|
separator: t,
|
|
111
111
|
experimentalParseClassName: e
|
|
@@ -126,7 +126,7 @@ const Dn = "-", su = (A) => {
|
|
|
126
126
|
}
|
|
127
127
|
b === "[" ? l++ : b === "]" && l--;
|
|
128
128
|
}
|
|
129
|
-
const o = f.length === 0 ? s : s.substring(a), v = o.startsWith(
|
|
129
|
+
const o = f.length === 0 ? s : s.substring(a), v = o.startsWith(cr), c = v ? o.substring(1) : o, w = z && z > a ? z - a : void 0;
|
|
130
130
|
return {
|
|
131
131
|
modifiers: f,
|
|
132
132
|
hasImportantModifier: v,
|
|
@@ -138,7 +138,7 @@ const Dn = "-", su = (A) => {
|
|
|
138
138
|
className: s,
|
|
139
139
|
parseClassName: u
|
|
140
140
|
}) : u;
|
|
141
|
-
},
|
|
141
|
+
}, Du = (A) => {
|
|
142
142
|
if (A.length <= 1)
|
|
143
143
|
return A;
|
|
144
144
|
const t = [];
|
|
@@ -146,16 +146,16 @@ const Dn = "-", su = (A) => {
|
|
|
146
146
|
return A.forEach((n) => {
|
|
147
147
|
n[0] === "[" ? (t.push(...e.sort(), n), e = []) : e.push(n);
|
|
148
148
|
}), t.push(...e.sort()), t;
|
|
149
|
-
},
|
|
150
|
-
cache:
|
|
151
|
-
parseClassName:
|
|
152
|
-
...
|
|
153
|
-
}),
|
|
149
|
+
}, Xu = (A) => ({
|
|
150
|
+
cache: bu(A.cacheSize),
|
|
151
|
+
parseClassName: pu(A),
|
|
152
|
+
...zu(A)
|
|
153
|
+
}), Pu = /\s+/, Bu = (A, t) => {
|
|
154
154
|
const {
|
|
155
155
|
parseClassName: e,
|
|
156
156
|
getClassGroupId: n,
|
|
157
157
|
getConflictingClassGroupIds: d
|
|
158
|
-
} = t, r = [], u = A.trim().split(
|
|
158
|
+
} = t, r = [], u = A.trim().split(Pu);
|
|
159
159
|
let s = "";
|
|
160
160
|
for (let f = u.length - 1; f >= 0; f -= 1) {
|
|
161
161
|
const l = u[f], {
|
|
@@ -176,7 +176,7 @@ const Dn = "-", su = (A) => {
|
|
|
176
176
|
}
|
|
177
177
|
c = !1;
|
|
178
178
|
}
|
|
179
|
-
const g =
|
|
179
|
+
const g = Du(a).join(":"), b = z ? g + cr : g, p = b + w;
|
|
180
180
|
if (r.includes(p))
|
|
181
181
|
continue;
|
|
182
182
|
r.push(p);
|
|
@@ -189,49 +189,49 @@ const Dn = "-", su = (A) => {
|
|
|
189
189
|
}
|
|
190
190
|
return s;
|
|
191
191
|
};
|
|
192
|
-
function
|
|
192
|
+
function qu() {
|
|
193
193
|
let A = 0, t, e, n = "";
|
|
194
194
|
for (; A < arguments.length; )
|
|
195
|
-
(t = arguments[A++]) && (e =
|
|
195
|
+
(t = arguments[A++]) && (e = or(t)) && (n && (n += " "), n += e);
|
|
196
196
|
return n;
|
|
197
197
|
}
|
|
198
|
-
const
|
|
198
|
+
const or = (A) => {
|
|
199
199
|
if (typeof A == "string")
|
|
200
200
|
return A;
|
|
201
201
|
let t, e = "";
|
|
202
202
|
for (let n = 0; n < A.length; n++)
|
|
203
|
-
A[n] && (t =
|
|
203
|
+
A[n] && (t = or(A[n])) && (e && (e += " "), e += t);
|
|
204
204
|
return e;
|
|
205
205
|
};
|
|
206
206
|
function ld(A, ...t) {
|
|
207
207
|
let e, n, d, r = u;
|
|
208
208
|
function u(f) {
|
|
209
209
|
const l = t.reduce((a, z) => z(a), A());
|
|
210
|
-
return e =
|
|
210
|
+
return e = Xu(l), n = e.cache.get, d = e.cache.set, r = s, s(f);
|
|
211
211
|
}
|
|
212
212
|
function s(f) {
|
|
213
213
|
const l = n(f);
|
|
214
214
|
if (l)
|
|
215
215
|
return l;
|
|
216
|
-
const a =
|
|
216
|
+
const a = Bu(f, e);
|
|
217
217
|
return d(f, a), a;
|
|
218
218
|
}
|
|
219
219
|
return function() {
|
|
220
|
-
return r(
|
|
220
|
+
return r(qu.apply(null, arguments));
|
|
221
221
|
};
|
|
222
222
|
}
|
|
223
223
|
const sA = (A) => {
|
|
224
224
|
const t = (e) => e[A] || [];
|
|
225
225
|
return t.isThemeGetter = !0, t;
|
|
226
|
-
},
|
|
227
|
-
const n =
|
|
226
|
+
}, wr = /^\[(?:([a-z-]+):)?(.+)\]$/i, iu = /^\d+\/\d+$/, Hu = /* @__PURE__ */ new Set(["px", "full", "screen"]), Mu = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Wu = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zu = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, mu = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Qu = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, SA = (A) => Pt(A) || Hu.has(A) || iu.test(A), et = (A) => Mt(A, "length", ju), Pt = (A) => !!A && !Number.isNaN(Number(A)), Ke = (A) => Mt(A, "number", Pt), Lt = (A) => !!A && Number.isInteger(Number(A)), Lu = (A) => A.endsWith("%") && Pt(A.slice(0, -1)), J = (A) => wr.test(A), nt = (A) => Mu.test(A), Tu = /* @__PURE__ */ new Set(["length", "size", "percentage"]), xu = (A) => Mt(A, Tu, gr), Vu = (A) => Mt(A, "position", gr), Nu = /* @__PURE__ */ new Set(["image", "url"]), Cu = (A) => Mt(A, Nu, Gu), yu = (A) => Mt(A, "", Uu), Tt = () => !0, Mt = (A, t, e) => {
|
|
227
|
+
const n = wr.exec(A);
|
|
228
228
|
return n ? n[1] ? typeof t == "string" ? n[1] === t : t.has(n[1]) : e(n[2]) : !1;
|
|
229
|
-
},
|
|
229
|
+
}, ju = (A) => (
|
|
230
230
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
231
231
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
232
232
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
233
|
-
|
|
234
|
-
),
|
|
233
|
+
Wu.test(A) && !Zu.test(A)
|
|
234
|
+
), gr = () => !1, Uu = (A) => mu.test(A), Gu = (A) => Qu.test(A), vd = () => {
|
|
235
235
|
const A = sA("colors"), t = sA("spacing"), e = sA("blur"), n = sA("brightness"), d = sA("borderColor"), r = sA("borderRadius"), u = sA("borderSpacing"), s = sA("borderWidth"), f = sA("contrast"), l = sA("grayscale"), a = sA("hueRotate"), z = sA("invert"), o = sA("gap"), v = sA("gradientColorStops"), c = sA("gradientColorStopPositions"), w = sA("inset"), g = sA("margin"), b = sA("opacity"), p = sA("padding"), D = sA("saturate"), X = sA("scale"), B = sA("sepia"), i = sA("skew"), Z = sA("space"), k = sA("translate"), U = () => ["auto", "contain", "none"], W = () => ["auto", "hidden", "clip", "visible", "scroll"], x = () => ["auto", J, t], Q = () => [J, t], M = () => ["", SA, et], m = () => ["auto", Pt, J], _ = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], R = () => ["solid", "dashed", "dotted", "double", "none"], $ = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], G = () => ["start", "end", "center", "between", "around", "evenly", "stretch"], q = () => ["", "0", J], y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => [Pt, J];
|
|
236
236
|
return {
|
|
237
237
|
cacheSize: 500,
|
|
@@ -251,7 +251,7 @@ const sA = (A) => {
|
|
|
251
251
|
invert: q(),
|
|
252
252
|
gap: Q(),
|
|
253
253
|
gradientColorStops: [A],
|
|
254
|
-
gradientColorStopPositions: [
|
|
254
|
+
gradientColorStopPositions: [Lu, et],
|
|
255
255
|
inset: x(),
|
|
256
256
|
margin: x(),
|
|
257
257
|
opacity: S(),
|
|
@@ -1164,7 +1164,7 @@ const sA = (A) => {
|
|
|
1164
1164
|
* @see https://tailwindcss.com/docs/background-position
|
|
1165
1165
|
*/
|
|
1166
1166
|
"bg-position": [{
|
|
1167
|
-
bg: [..._(),
|
|
1167
|
+
bg: [..._(), Vu]
|
|
1168
1168
|
}],
|
|
1169
1169
|
/**
|
|
1170
1170
|
* Background Repeat
|
|
@@ -1180,7 +1180,7 @@ const sA = (A) => {
|
|
|
1180
1180
|
* @see https://tailwindcss.com/docs/background-size
|
|
1181
1181
|
*/
|
|
1182
1182
|
"bg-size": [{
|
|
1183
|
-
bg: ["auto", "cover", "contain",
|
|
1183
|
+
bg: ["auto", "cover", "contain", xu]
|
|
1184
1184
|
}],
|
|
1185
1185
|
/**
|
|
1186
1186
|
* Background Image
|
|
@@ -1189,7 +1189,7 @@ const sA = (A) => {
|
|
|
1189
1189
|
"bg-image": [{
|
|
1190
1190
|
bg: ["none", {
|
|
1191
1191
|
"gradient-to": ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1192
|
-
},
|
|
1192
|
+
}, Cu]
|
|
1193
1193
|
}],
|
|
1194
1194
|
/**
|
|
1195
1195
|
* Background Color
|
|
@@ -1605,7 +1605,7 @@ const sA = (A) => {
|
|
|
1605
1605
|
* @see https://tailwindcss.com/docs/box-shadow
|
|
1606
1606
|
*/
|
|
1607
1607
|
shadow: [{
|
|
1608
|
-
shadow: ["", "inner", "none", nt,
|
|
1608
|
+
shadow: ["", "inner", "none", nt, yu]
|
|
1609
1609
|
}],
|
|
1610
1610
|
/**
|
|
1611
1611
|
* Box Shadow Color
|
|
@@ -2260,7 +2260,7 @@ const sA = (A) => {
|
|
|
2260
2260
|
"font-size": ["leading"]
|
|
2261
2261
|
}
|
|
2262
2262
|
};
|
|
2263
|
-
},
|
|
2263
|
+
}, Yu = (A, {
|
|
2264
2264
|
cacheSize: t,
|
|
2265
2265
|
prefix: e,
|
|
2266
2266
|
separator: n,
|
|
@@ -2270,28 +2270,28 @@ const sA = (A) => {
|
|
|
2270
2270
|
}) => {
|
|
2271
2271
|
xt(A, "cacheSize", t), xt(A, "prefix", e), xt(A, "separator", n), xt(A, "experimentalParseClassName", d);
|
|
2272
2272
|
for (const s in u)
|
|
2273
|
-
|
|
2273
|
+
ku(A[s], u[s]);
|
|
2274
2274
|
for (const s in r)
|
|
2275
|
-
|
|
2275
|
+
Ku(A[s], r[s]);
|
|
2276
2276
|
return A;
|
|
2277
2277
|
}, xt = (A, t, e) => {
|
|
2278
2278
|
e !== void 0 && (A[t] = e);
|
|
2279
|
-
},
|
|
2279
|
+
}, ku = (A, t) => {
|
|
2280
2280
|
if (t)
|
|
2281
2281
|
for (const e in t)
|
|
2282
2282
|
xt(A, e, t[e]);
|
|
2283
|
-
},
|
|
2283
|
+
}, Ku = (A, t) => {
|
|
2284
2284
|
if (t)
|
|
2285
2285
|
for (const e in t) {
|
|
2286
2286
|
const n = t[e];
|
|
2287
2287
|
n !== void 0 && (A[e] = (A[e] || []).concat(n));
|
|
2288
2288
|
}
|
|
2289
|
-
},
|
|
2289
|
+
}, Eu = (A, ...t) => typeof A == "function" ? ld(vd, A, ...t) : ld(() => Yu(vd(), A), ...t), Ju = ["gw", "gww"], Y = Eu({
|
|
2290
2290
|
experimentalParseClassName: ({ className: A, parseClassName: t }) => {
|
|
2291
2291
|
const e = t(A);
|
|
2292
|
-
return Array.isArray(e.modifiers) && e.modifiers.length &&
|
|
2293
|
-
(
|
|
2294
|
-
) ? {
|
|
2292
|
+
return Array.isArray(e.modifiers) && e.modifiers.length && Ju.some((d) => {
|
|
2293
|
+
console.log(e.modifiers), e.modifiers.includes(d);
|
|
2294
|
+
}) ? {
|
|
2295
2295
|
...e,
|
|
2296
2296
|
// remove all occurrences of the gw modifier from the chain
|
|
2297
2297
|
modifiers: e.modifiers.filter((d) => {
|
|
@@ -2299,7 +2299,7 @@ const sA = (A) => {
|
|
|
2299
2299
|
} : e;
|
|
2300
2300
|
}
|
|
2301
2301
|
});
|
|
2302
|
-
function
|
|
2302
|
+
function br({ className: A, children: t, fluid: e }) {
|
|
2303
2303
|
const n = L(() => Y(
|
|
2304
2304
|
"gw:w-full gw:mx-auto gw:px-4 gw:box-border",
|
|
2305
2305
|
e ? "gw:max-w-screen" : "gw:max-w-(--gw:breakpoint-2xl)",
|
|
@@ -2316,10 +2316,10 @@ const Od = Ht(function({ children: t, className: e, title: n, customTitle: d, id
|
|
|
2316
2316
|
] }),
|
|
2317
2317
|
t
|
|
2318
2318
|
] });
|
|
2319
|
-
}),
|
|
2320
|
-
const { component: d, hrefMap: r } =
|
|
2319
|
+
}), pr = rA({ component: "a", hrefMap: "href" }), K9 = ({ component: A, hrefMap: t, children: e }) => /* @__PURE__ */ O(pr.Provider, { value: { component: A, hrefMap: t }, children: e }), Fu = () => h(pr), Dr = ({ href: A, children: t, ...e }, n) => {
|
|
2320
|
+
const { component: d, hrefMap: r } = Fu();
|
|
2321
2321
|
return /* @__PURE__ */ O(d || "a", { [r || "href"]: A, ...e, ref: n, children: t });
|
|
2322
|
-
}, E9 = Ht(
|
|
2322
|
+
}, E9 = Ht(Dr), pA = Ht(Dr);
|
|
2323
2323
|
function zd({ className: A, ...t }) {
|
|
2324
2324
|
return /* @__PURE__ */ O(
|
|
2325
2325
|
"p",
|
|
@@ -2385,7 +2385,7 @@ function $9({ className: A, children: t, ...e }) {
|
|
|
2385
2385
|
const n = L(() => Y("gw:text-lg gw:font-bold", A), [A]);
|
|
2386
2386
|
return /* @__PURE__ */ O("h4", { className: n, ...e, children: t });
|
|
2387
2387
|
}
|
|
2388
|
-
function
|
|
2388
|
+
function Ru() {
|
|
2389
2389
|
const A = C(null), [t, e] = K(!1);
|
|
2390
2390
|
return eA(() => {
|
|
2391
2391
|
const n = A.current;
|
|
@@ -2418,7 +2418,7 @@ function _9({
|
|
|
2418
2418
|
stickyHeader: f = !1,
|
|
2419
2419
|
...l
|
|
2420
2420
|
}) {
|
|
2421
|
-
const { scrollRef: a, showFade: z } =
|
|
2421
|
+
const { scrollRef: a, showFade: z } = Ru();
|
|
2422
2422
|
return /* @__PURE__ */ O(
|
|
2423
2423
|
Yt.Provider,
|
|
2424
2424
|
{
|
|
@@ -2487,7 +2487,7 @@ function Al({ className: A, ...t }) {
|
|
|
2487
2487
|
function tl(A) {
|
|
2488
2488
|
return /* @__PURE__ */ O("tbody", { ...A });
|
|
2489
2489
|
}
|
|
2490
|
-
const
|
|
2490
|
+
const Xr = rA({
|
|
2491
2491
|
href: void 0,
|
|
2492
2492
|
target: void 0,
|
|
2493
2493
|
title: void 0
|
|
@@ -2501,7 +2501,7 @@ function el({
|
|
|
2501
2501
|
...r
|
|
2502
2502
|
}) {
|
|
2503
2503
|
let { striped: u } = h(Yt);
|
|
2504
|
-
return /* @__PURE__ */ O(
|
|
2504
|
+
return /* @__PURE__ */ O(Xr.Provider, { value: { href: A, target: t, title: e }, children: /* @__PURE__ */ O(
|
|
2505
2505
|
"tr",
|
|
2506
2506
|
{
|
|
2507
2507
|
...r,
|
|
@@ -2532,7 +2532,7 @@ function nl({ className: A, ...t }) {
|
|
|
2532
2532
|
);
|
|
2533
2533
|
}
|
|
2534
2534
|
function dl({ className: A, children: t, ...e }) {
|
|
2535
|
-
let { bleed: n, dense: d, grid: r, striped: u } = h(Yt), { href: s, target: f, title: l } = h(
|
|
2535
|
+
let { bleed: n, dense: d, grid: r, striped: u } = h(Yt), { href: s, target: f, title: l } = h(Xr), [a, z] = K(null);
|
|
2536
2536
|
return /* @__PURE__ */ T(
|
|
2537
2537
|
"td",
|
|
2538
2538
|
{
|
|
@@ -2571,13 +2571,13 @@ function rl({ className: A, children: t, stretch: e = !1, ...n }) {
|
|
|
2571
2571
|
), [A]);
|
|
2572
2572
|
return /* @__PURE__ */ O("div", { className: d, ...n, children: t });
|
|
2573
2573
|
}
|
|
2574
|
-
const
|
|
2574
|
+
const Pr = typeof document < "u" ? P.useLayoutEffect : () => {
|
|
2575
2575
|
};
|
|
2576
2576
|
var Ee;
|
|
2577
|
-
const
|
|
2578
|
-
function
|
|
2577
|
+
const Su = (Ee = P.useInsertionEffect) !== null && Ee !== void 0 ? Ee : Pr;
|
|
2578
|
+
function Iu(A) {
|
|
2579
2579
|
const t = C(null);
|
|
2580
|
-
return
|
|
2580
|
+
return Su(() => {
|
|
2581
2581
|
t.current = A;
|
|
2582
2582
|
}, [
|
|
2583
2583
|
A
|
|
@@ -2590,23 +2590,23 @@ const ft = (A) => {
|
|
|
2590
2590
|
var t;
|
|
2591
2591
|
return (t = A == null ? void 0 : A.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
2592
2592
|
}, zt = (A) => A && "window" in A && A.window === A ? A : ft(A).defaultView || window;
|
|
2593
|
-
function
|
|
2593
|
+
function hu(A) {
|
|
2594
2594
|
return A !== null && typeof A == "object" && "nodeType" in A && typeof A.nodeType == "number";
|
|
2595
2595
|
}
|
|
2596
|
-
function
|
|
2597
|
-
return
|
|
2596
|
+
function $u(A) {
|
|
2597
|
+
return hu(A) && A.nodeType === Node.DOCUMENT_FRAGMENT_NODE && "host" in A;
|
|
2598
2598
|
}
|
|
2599
|
-
let
|
|
2599
|
+
let _u = !1;
|
|
2600
2600
|
function Xn() {
|
|
2601
|
-
return
|
|
2601
|
+
return _u;
|
|
2602
2602
|
}
|
|
2603
|
-
function
|
|
2603
|
+
function Br(A, t) {
|
|
2604
2604
|
if (!Xn()) return t && A ? A.contains(t) : !1;
|
|
2605
2605
|
if (!A || !t) return !1;
|
|
2606
2606
|
let e = t;
|
|
2607
2607
|
for (; e !== null; ) {
|
|
2608
2608
|
if (e === A) return !0;
|
|
2609
|
-
e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode :
|
|
2609
|
+
e.tagName === "SLOT" && e.assignedSlot ? e = e.assignedSlot.parentNode : $u(e) ? e = e.host : e = e.parentNode;
|
|
2610
2610
|
}
|
|
2611
2611
|
return !1;
|
|
2612
2612
|
}
|
|
@@ -2617,7 +2617,7 @@ const un = (A = document) => {
|
|
|
2617
2617
|
for (; e && "shadowRoot" in e && (!((t = e.shadowRoot) === null || t === void 0) && t.activeElement); ) e = e.shadowRoot.activeElement;
|
|
2618
2618
|
return e;
|
|
2619
2619
|
};
|
|
2620
|
-
function
|
|
2620
|
+
function qr(A) {
|
|
2621
2621
|
return Xn() && A.target.shadowRoot && A.composedPath ? A.composedPath()[0] : A.target;
|
|
2622
2622
|
}
|
|
2623
2623
|
function pe(A) {
|
|
@@ -2637,29 +2637,29 @@ function tt(A) {
|
|
|
2637
2637
|
}
|
|
2638
2638
|
const Bn = tt(function() {
|
|
2639
2639
|
return Pn(/^Mac/i);
|
|
2640
|
-
}),
|
|
2640
|
+
}), A3 = tt(function() {
|
|
2641
2641
|
return Pn(/^iPhone/i);
|
|
2642
|
-
}),
|
|
2642
|
+
}), t3 = tt(function() {
|
|
2643
2643
|
return Pn(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
2644
2644
|
Bn() && navigator.maxTouchPoints > 1;
|
|
2645
|
-
}),
|
|
2646
|
-
return
|
|
2645
|
+
}), e3 = tt(function() {
|
|
2646
|
+
return A3() || t3();
|
|
2647
2647
|
});
|
|
2648
2648
|
tt(function() {
|
|
2649
|
-
return Bn() ||
|
|
2649
|
+
return Bn() || e3();
|
|
2650
2650
|
});
|
|
2651
2651
|
tt(function() {
|
|
2652
|
-
return pe(/AppleWebKit/i) && !
|
|
2652
|
+
return pe(/AppleWebKit/i) && !n3();
|
|
2653
2653
|
});
|
|
2654
|
-
const
|
|
2654
|
+
const n3 = tt(function() {
|
|
2655
2655
|
return pe(/Chrome/i);
|
|
2656
|
-
}),
|
|
2656
|
+
}), d3 = tt(function() {
|
|
2657
2657
|
return pe(/Android/i);
|
|
2658
2658
|
});
|
|
2659
2659
|
tt(function() {
|
|
2660
2660
|
return pe(/Firefox/i);
|
|
2661
2661
|
});
|
|
2662
|
-
function
|
|
2662
|
+
function ir() {
|
|
2663
2663
|
let A = C(/* @__PURE__ */ new Map()), t = AA((d, r, u, s) => {
|
|
2664
2664
|
let f = s != null && s.once ? (...l) => {
|
|
2665
2665
|
A.current.delete(u), u(...l);
|
|
@@ -2689,33 +2689,33 @@ function pr() {
|
|
|
2689
2689
|
removeAllGlobalListeners: n
|
|
2690
2690
|
};
|
|
2691
2691
|
}
|
|
2692
|
-
function
|
|
2693
|
-
return A.pointerType === "" && A.isTrusted ? !0 :
|
|
2692
|
+
function r3(A) {
|
|
2693
|
+
return A.pointerType === "" && A.isTrusted ? !0 : d3() && A.pointerType ? A.type === "click" && A.buttons === 1 : A.detail === 0 && !A.pointerType;
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2695
|
+
function Hr(A) {
|
|
2696
2696
|
let t = A;
|
|
2697
2697
|
return t.nativeEvent = A, t.isDefaultPrevented = () => t.defaultPrevented, t.isPropagationStopped = () => t.cancelBubble, t.persist = () => {
|
|
2698
2698
|
}, t;
|
|
2699
2699
|
}
|
|
2700
|
-
function
|
|
2700
|
+
function u3(A, t) {
|
|
2701
2701
|
Object.defineProperty(A, "target", {
|
|
2702
2702
|
value: t
|
|
2703
2703
|
}), Object.defineProperty(A, "currentTarget", {
|
|
2704
2704
|
value: t
|
|
2705
2705
|
});
|
|
2706
2706
|
}
|
|
2707
|
-
function
|
|
2707
|
+
function Mr(A) {
|
|
2708
2708
|
let t = C({
|
|
2709
2709
|
isFocused: !1,
|
|
2710
2710
|
observer: null
|
|
2711
2711
|
});
|
|
2712
|
-
|
|
2712
|
+
Pr(() => {
|
|
2713
2713
|
const n = t.current;
|
|
2714
2714
|
return () => {
|
|
2715
2715
|
n.observer && (n.observer.disconnect(), n.observer = null);
|
|
2716
2716
|
};
|
|
2717
2717
|
}, []);
|
|
2718
|
-
let e =
|
|
2718
|
+
let e = Iu((n) => {
|
|
2719
2719
|
A == null || A(n);
|
|
2720
2720
|
});
|
|
2721
2721
|
return AA((n) => {
|
|
@@ -2723,7 +2723,7 @@ function Xr(A) {
|
|
|
2723
2723
|
t.current.isFocused = !0;
|
|
2724
2724
|
let d = n.target, r = (u) => {
|
|
2725
2725
|
if (t.current.isFocused = !1, d.disabled) {
|
|
2726
|
-
let s =
|
|
2726
|
+
let s = Hr(u);
|
|
2727
2727
|
e(s);
|
|
2728
2728
|
}
|
|
2729
2729
|
t.current.observer && (t.current.observer.disconnect(), t.current.observer = null);
|
|
@@ -2753,30 +2753,30 @@ function Xr(A) {
|
|
|
2753
2753
|
e
|
|
2754
2754
|
]);
|
|
2755
2755
|
}
|
|
2756
|
-
let
|
|
2757
|
-
const
|
|
2756
|
+
let s3 = !1, kt = null, sn = /* @__PURE__ */ new Set(), Ct = /* @__PURE__ */ new Map(), wt = !1, fn = !1;
|
|
2757
|
+
const f3 = {
|
|
2758
2758
|
Tab: !0,
|
|
2759
2759
|
Escape: !0
|
|
2760
2760
|
};
|
|
2761
2761
|
function qn(A, t) {
|
|
2762
2762
|
for (let e of sn) e(A, t);
|
|
2763
2763
|
}
|
|
2764
|
-
function
|
|
2764
|
+
function a3(A) {
|
|
2765
2765
|
return !(A.metaKey || !Bn() && A.altKey || A.ctrlKey || A.key === "Control" || A.key === "Shift" || A.key === "Meta");
|
|
2766
2766
|
}
|
|
2767
2767
|
function se(A) {
|
|
2768
|
-
wt = !0,
|
|
2768
|
+
wt = !0, a3(A) && (kt = "keyboard", qn("keyboard", A));
|
|
2769
2769
|
}
|
|
2770
2770
|
function xA(A) {
|
|
2771
2771
|
kt = "pointer", (A.type === "mousedown" || A.type === "pointerdown") && (wt = !0, qn("pointer", A));
|
|
2772
2772
|
}
|
|
2773
|
-
function
|
|
2774
|
-
|
|
2773
|
+
function Wr(A) {
|
|
2774
|
+
r3(A) && (wt = !0, kt = "virtual");
|
|
2775
2775
|
}
|
|
2776
|
-
function
|
|
2777
|
-
A.target === window || A.target === document ||
|
|
2776
|
+
function Zr(A) {
|
|
2777
|
+
A.target === window || A.target === document || s3 || !A.isTrusted || (!wt && !fn && (kt = "virtual", qn("virtual", A)), wt = !1, fn = !1);
|
|
2778
2778
|
}
|
|
2779
|
-
function
|
|
2779
|
+
function mr() {
|
|
2780
2780
|
wt = !1, fn = !0;
|
|
2781
2781
|
}
|
|
2782
2782
|
function an(A) {
|
|
@@ -2785,30 +2785,30 @@ function an(A) {
|
|
|
2785
2785
|
let n = t.HTMLElement.prototype.focus;
|
|
2786
2786
|
t.HTMLElement.prototype.focus = function() {
|
|
2787
2787
|
wt = !0, n.apply(this, arguments);
|
|
2788
|
-
}, e.addEventListener("keydown", se, !0), e.addEventListener("keyup", se, !0), e.addEventListener("click",
|
|
2789
|
-
|
|
2788
|
+
}, e.addEventListener("keydown", se, !0), e.addEventListener("keyup", se, !0), e.addEventListener("click", Wr, !0), t.addEventListener("focus", Zr, !0), t.addEventListener("blur", mr, !1), typeof PointerEvent < "u" ? (e.addEventListener("pointerdown", xA, !0), e.addEventListener("pointermove", xA, !0), e.addEventListener("pointerup", xA, !0)) : process.env.NODE_ENV === "test" && (e.addEventListener("mousedown", xA, !0), e.addEventListener("mousemove", xA, !0), e.addEventListener("mouseup", xA, !0)), t.addEventListener("beforeunload", () => {
|
|
2789
|
+
Qr(A);
|
|
2790
2790
|
}, {
|
|
2791
2791
|
once: !0
|
|
2792
2792
|
}), Ct.set(t, {
|
|
2793
2793
|
focus: n
|
|
2794
2794
|
});
|
|
2795
2795
|
}
|
|
2796
|
-
const
|
|
2796
|
+
const Qr = (A, t) => {
|
|
2797
2797
|
const e = zt(A), n = ft(A);
|
|
2798
|
-
t && n.removeEventListener("DOMContentLoaded", t), Ct.has(e) && (e.HTMLElement.prototype.focus = Ct.get(e).focus, n.removeEventListener("keydown", se, !0), n.removeEventListener("keyup", se, !0), n.removeEventListener("click",
|
|
2798
|
+
t && n.removeEventListener("DOMContentLoaded", t), Ct.has(e) && (e.HTMLElement.prototype.focus = Ct.get(e).focus, n.removeEventListener("keydown", se, !0), n.removeEventListener("keyup", se, !0), n.removeEventListener("click", Wr, !0), e.removeEventListener("focus", Zr, !0), e.removeEventListener("blur", mr, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", xA, !0), n.removeEventListener("pointermove", xA, !0), n.removeEventListener("pointerup", xA, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", xA, !0), n.removeEventListener("mousemove", xA, !0), n.removeEventListener("mouseup", xA, !0)), Ct.delete(e));
|
|
2799
2799
|
};
|
|
2800
|
-
function
|
|
2800
|
+
function l3(A) {
|
|
2801
2801
|
const t = ft(A);
|
|
2802
2802
|
let e;
|
|
2803
2803
|
return t.readyState !== "loading" ? an(A) : (e = () => {
|
|
2804
2804
|
an(A);
|
|
2805
|
-
}, t.addEventListener("DOMContentLoaded", e)), () =>
|
|
2805
|
+
}, t.addEventListener("DOMContentLoaded", e)), () => Qr(A, e);
|
|
2806
2806
|
}
|
|
2807
|
-
typeof document < "u" &&
|
|
2808
|
-
function
|
|
2807
|
+
typeof document < "u" && l3();
|
|
2808
|
+
function Lr() {
|
|
2809
2809
|
return kt !== "pointer";
|
|
2810
2810
|
}
|
|
2811
|
-
const
|
|
2811
|
+
const v3 = /* @__PURE__ */ new Set([
|
|
2812
2812
|
"checkbox",
|
|
2813
2813
|
"radio",
|
|
2814
2814
|
"range",
|
|
@@ -2819,22 +2819,22 @@ const r3 = /* @__PURE__ */ new Set([
|
|
|
2819
2819
|
"submit",
|
|
2820
2820
|
"reset"
|
|
2821
2821
|
]);
|
|
2822
|
-
function
|
|
2822
|
+
function O3(A, t, e) {
|
|
2823
2823
|
let n = ft(e == null ? void 0 : e.target);
|
|
2824
2824
|
const d = typeof window < "u" ? zt(e == null ? void 0 : e.target).HTMLInputElement : HTMLInputElement, r = typeof window < "u" ? zt(e == null ? void 0 : e.target).HTMLTextAreaElement : HTMLTextAreaElement, u = typeof window < "u" ? zt(e == null ? void 0 : e.target).HTMLElement : HTMLElement, s = typeof window < "u" ? zt(e == null ? void 0 : e.target).KeyboardEvent : KeyboardEvent;
|
|
2825
|
-
return A = A || n.activeElement instanceof d && !
|
|
2825
|
+
return A = A || n.activeElement instanceof d && !v3.has(n.activeElement.type) || n.activeElement instanceof r || n.activeElement instanceof u && n.activeElement.isContentEditable, !(A && t === "keyboard" && e instanceof s && !f3[e.key]);
|
|
2826
2826
|
}
|
|
2827
|
-
function
|
|
2827
|
+
function z3(A, t, e) {
|
|
2828
2828
|
an(), eA(() => {
|
|
2829
2829
|
let n = (d, r) => {
|
|
2830
|
-
|
|
2830
|
+
O3(!!(e != null && e.isTextInput), d, r) && A(Lr());
|
|
2831
2831
|
};
|
|
2832
2832
|
return sn.add(n), () => {
|
|
2833
2833
|
sn.delete(n);
|
|
2834
2834
|
};
|
|
2835
2835
|
}, t);
|
|
2836
2836
|
}
|
|
2837
|
-
function
|
|
2837
|
+
function c3(A) {
|
|
2838
2838
|
let { isDisabled: t, onFocus: e, onBlur: n, onFocusChange: d } = A;
|
|
2839
2839
|
const r = AA((f) => {
|
|
2840
2840
|
if (f.target === f.currentTarget)
|
|
@@ -2842,9 +2842,9 @@ function f3(A) {
|
|
|
2842
2842
|
}, [
|
|
2843
2843
|
n,
|
|
2844
2844
|
d
|
|
2845
|
-
]), u =
|
|
2845
|
+
]), u = Mr(r), s = AA((f) => {
|
|
2846
2846
|
const l = ft(f.target), a = l ? un(l) : un();
|
|
2847
|
-
f.target === f.currentTarget && a ===
|
|
2847
|
+
f.target === f.currentTarget && a === qr(f.nativeEvent) && (e && e(f), d && d(!0), u(f));
|
|
2848
2848
|
}, [
|
|
2849
2849
|
d,
|
|
2850
2850
|
e,
|
|
@@ -2857,29 +2857,29 @@ function f3(A) {
|
|
|
2857
2857
|
}
|
|
2858
2858
|
};
|
|
2859
2859
|
}
|
|
2860
|
-
function
|
|
2860
|
+
function o3(A) {
|
|
2861
2861
|
let { isDisabled: t, onBlurWithin: e, onFocusWithin: n, onFocusWithinChange: d } = A, r = C({
|
|
2862
2862
|
isFocusWithin: !1
|
|
2863
|
-
}), { addGlobalListener: u, removeAllGlobalListeners: s } =
|
|
2863
|
+
}), { addGlobalListener: u, removeAllGlobalListeners: s } = ir(), f = AA((z) => {
|
|
2864
2864
|
z.currentTarget.contains(z.target) && r.current.isFocusWithin && !z.currentTarget.contains(z.relatedTarget) && (r.current.isFocusWithin = !1, s(), e && e(z), d && d(!1));
|
|
2865
2865
|
}, [
|
|
2866
2866
|
e,
|
|
2867
2867
|
d,
|
|
2868
2868
|
r,
|
|
2869
2869
|
s
|
|
2870
|
-
]), l =
|
|
2870
|
+
]), l = Mr(f), a = AA((z) => {
|
|
2871
2871
|
if (!z.currentTarget.contains(z.target)) return;
|
|
2872
2872
|
const o = ft(z.target), v = un(o);
|
|
2873
|
-
if (!r.current.isFocusWithin && v ===
|
|
2873
|
+
if (!r.current.isFocusWithin && v === qr(z.nativeEvent)) {
|
|
2874
2874
|
n && n(z), d && d(!0), r.current.isFocusWithin = !0, l(z);
|
|
2875
2875
|
let c = z.currentTarget;
|
|
2876
2876
|
u(o, "focus", (w) => {
|
|
2877
|
-
if (r.current.isFocusWithin && !
|
|
2877
|
+
if (r.current.isFocusWithin && !Br(c, w.target)) {
|
|
2878
2878
|
let g = new o.defaultView.FocusEvent("blur", {
|
|
2879
2879
|
relatedTarget: w.target
|
|
2880
2880
|
});
|
|
2881
|
-
|
|
2882
|
-
let b =
|
|
2881
|
+
u3(g, c);
|
|
2882
|
+
let b = Hr(g);
|
|
2883
2883
|
f(b);
|
|
2884
2884
|
}
|
|
2885
2885
|
}, {
|
|
@@ -2915,7 +2915,7 @@ function ln() {
|
|
|
2915
2915
|
function cd(A) {
|
|
2916
2916
|
A.pointerType === "touch" && ln();
|
|
2917
2917
|
}
|
|
2918
|
-
function
|
|
2918
|
+
function w3() {
|
|
2919
2919
|
if (!(typeof document > "u"))
|
|
2920
2920
|
return Ae === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", cd) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", ln)), Ae++, () => {
|
|
2921
2921
|
Ae--, !(Ae > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", cd) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", ln));
|
|
@@ -2928,14 +2928,14 @@ function pt(A) {
|
|
|
2928
2928
|
pointerType: "",
|
|
2929
2929
|
target: null
|
|
2930
2930
|
}).current;
|
|
2931
|
-
eA(
|
|
2932
|
-
let { addGlobalListener: f, removeAllGlobalListeners: l } =
|
|
2931
|
+
eA(w3, []);
|
|
2932
|
+
let { addGlobalListener: f, removeAllGlobalListeners: l } = ir(), { hoverProps: a, triggerHoverEnd: z } = L(() => {
|
|
2933
2933
|
let o = (w, g) => {
|
|
2934
2934
|
if (s.pointerType = g, d || g === "touch" || s.isHovered || !w.currentTarget.contains(w.target)) return;
|
|
2935
2935
|
s.isHovered = !0;
|
|
2936
2936
|
let b = w.currentTarget;
|
|
2937
2937
|
s.target = b, f(ft(w.target), "pointerover", (p) => {
|
|
2938
|
-
s.isHovered && s.target && !
|
|
2938
|
+
s.isHovered && s.target && !Br(s.target, p.target) && v(p, p.pointerType);
|
|
2939
2939
|
}, {
|
|
2940
2940
|
capture: !0
|
|
2941
2941
|
}), t && t({
|
|
@@ -2988,21 +2988,21 @@ function pt(A) {
|
|
|
2988
2988
|
function at(A = {}) {
|
|
2989
2989
|
let { autoFocus: t = !1, isTextInput: e, within: n } = A, d = C({
|
|
2990
2990
|
isFocused: !1,
|
|
2991
|
-
isFocusVisible: t ||
|
|
2991
|
+
isFocusVisible: t || Lr()
|
|
2992
2992
|
}), [r, u] = K(!1), [s, f] = K(() => d.current.isFocused && d.current.isFocusVisible), l = AA(() => f(d.current.isFocused && d.current.isFocusVisible), []), a = AA((v) => {
|
|
2993
2993
|
d.current.isFocused = v, u(v), l();
|
|
2994
2994
|
}, [
|
|
2995
2995
|
l
|
|
2996
2996
|
]);
|
|
2997
|
-
|
|
2997
|
+
z3((v) => {
|
|
2998
2998
|
d.current.isFocusVisible = v, l();
|
|
2999
2999
|
}, [], {
|
|
3000
3000
|
isTextInput: e
|
|
3001
3001
|
});
|
|
3002
|
-
let { focusProps: z } =
|
|
3002
|
+
let { focusProps: z } = c3({
|
|
3003
3003
|
isDisabled: n,
|
|
3004
3004
|
onFocusChange: a
|
|
3005
|
-
}), { focusWithinProps: o } =
|
|
3005
|
+
}), { focusWithinProps: o } = o3({
|
|
3006
3006
|
isDisabled: !n,
|
|
3007
3007
|
onFocusWithinChange: a
|
|
3008
3008
|
});
|
|
@@ -3012,8 +3012,8 @@ function at(A = {}) {
|
|
|
3012
3012
|
focusProps: n ? o : z
|
|
3013
3013
|
};
|
|
3014
3014
|
}
|
|
3015
|
-
var
|
|
3016
|
-
let
|
|
3015
|
+
var g3 = Object.defineProperty, b3 = (A, t, e) => t in A ? g3(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, Je = (A, t, e) => (b3(A, typeof t != "symbol" ? t + "" : t, e), e);
|
|
3016
|
+
let p3 = class {
|
|
3017
3017
|
constructor() {
|
|
3018
3018
|
Je(this, "current", this.detect()), Je(this, "handoffState", "pending"), Je(this, "currentId", 0);
|
|
3019
3019
|
}
|
|
@@ -3041,7 +3041,7 @@ let z3 = class {
|
|
|
3041
3041
|
get isHandoffComplete() {
|
|
3042
3042
|
return this.handoffState === "complete";
|
|
3043
3043
|
}
|
|
3044
|
-
}, GA = new
|
|
3044
|
+
}, GA = new p3();
|
|
3045
3045
|
function FA(A) {
|
|
3046
3046
|
var t, e;
|
|
3047
3047
|
return GA.isServer ? null : A ? "ownerDocument" in A ? A.ownerDocument : "current" in A ? (e = (t = A.current) == null ? void 0 : t.ownerDocument) != null ? e : document : null : document;
|
|
@@ -3104,11 +3104,11 @@ let H = function(A) {
|
|
|
3104
3104
|
let t = ZA(A);
|
|
3105
3105
|
return P.useCallback((...e) => t.current(...e), [t]);
|
|
3106
3106
|
};
|
|
3107
|
-
function
|
|
3107
|
+
function D3(A) {
|
|
3108
3108
|
let t = A.width / 2, e = A.height / 2;
|
|
3109
3109
|
return { top: A.clientY - e, right: A.clientX + t, bottom: A.clientY + e, left: A.clientX - t };
|
|
3110
3110
|
}
|
|
3111
|
-
function
|
|
3111
|
+
function X3(A, t) {
|
|
3112
3112
|
return !(!A || !t || A.right < t.left || A.left > t.right || A.bottom < t.top || A.top > t.bottom);
|
|
3113
3113
|
}
|
|
3114
3114
|
function Et({ disabled: A = !1 } = {}) {
|
|
@@ -3121,8 +3121,8 @@ function Et({ disabled: A = !1 } = {}) {
|
|
|
3121
3121
|
let f = FA(s.currentTarget);
|
|
3122
3122
|
d.addEventListener(f, "pointerup", r, !1), d.addEventListener(f, "pointermove", (l) => {
|
|
3123
3123
|
if (t.current) {
|
|
3124
|
-
let a =
|
|
3125
|
-
n(
|
|
3124
|
+
let a = D3(l);
|
|
3125
|
+
n(X3(a, t.current.getBoundingClientRect()));
|
|
3126
3126
|
}
|
|
3127
3127
|
}, !1), d.addEventListener(f, "pointercancel", r, !1);
|
|
3128
3128
|
}
|
|
@@ -3130,12 +3130,12 @@ function Et({ disabled: A = !1 } = {}) {
|
|
|
3130
3130
|
});
|
|
3131
3131
|
return { pressed: e, pressProps: A ? {} : { onPointerDown: u, onPointerUp: r, onClick: r } };
|
|
3132
3132
|
}
|
|
3133
|
-
let
|
|
3133
|
+
let Tr = rA(void 0);
|
|
3134
3134
|
function Dt() {
|
|
3135
|
-
return h(
|
|
3135
|
+
return h(Tr);
|
|
3136
3136
|
}
|
|
3137
|
-
function
|
|
3138
|
-
return P.createElement(
|
|
3137
|
+
function xr({ value: A, children: t }) {
|
|
3138
|
+
return P.createElement(Tr.Provider, { value: A }, t);
|
|
3139
3139
|
}
|
|
3140
3140
|
function vn(...A) {
|
|
3141
3141
|
return Array.from(new Set(A.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -3150,12 +3150,12 @@ function aA(A, t, ...e) {
|
|
|
3150
3150
|
}
|
|
3151
3151
|
var WA = ((A) => (A[A.None = 0] = "None", A[A.RenderStrategy = 1] = "RenderStrategy", A[A.Static = 2] = "Static", A))(WA || {}), rt = ((A) => (A[A.Unmount = 0] = "Unmount", A[A.Hidden = 1] = "Hidden", A))(rt || {});
|
|
3152
3152
|
function I() {
|
|
3153
|
-
let A =
|
|
3154
|
-
return AA((t) =>
|
|
3153
|
+
let A = B3();
|
|
3154
|
+
return AA((t) => P3({ mergeRefs: A, ...t }), [A]);
|
|
3155
3155
|
}
|
|
3156
|
-
function
|
|
3157
|
-
s = s ??
|
|
3158
|
-
let f =
|
|
3156
|
+
function P3({ ourProps: A, theirProps: t, slot: e, defaultTag: n, features: d, visible: r = !0, name: u, mergeRefs: s }) {
|
|
3157
|
+
s = s ?? q3;
|
|
3158
|
+
let f = Vr(t, A);
|
|
3159
3159
|
if (r) return te(f, e, n, u, s);
|
|
3160
3160
|
let l = d ?? 0;
|
|
3161
3161
|
if (l & 2) {
|
|
@@ -3184,19 +3184,19 @@ function te(A, t = {}, e, n, d) {
|
|
|
3184
3184
|
for (let c of v) z[`data-${c}`] = "";
|
|
3185
3185
|
}
|
|
3186
3186
|
}
|
|
3187
|
-
if (r === qA && (Object.keys(vt(f)).length > 0 || Object.keys(vt(z)).length > 0)) if (!
|
|
3187
|
+
if (r === qA && (Object.keys(vt(f)).length > 0 || Object.keys(vt(z)).length > 0)) if (!su(a) || Array.isArray(a) && a.length > 1) {
|
|
3188
3188
|
if (Object.keys(vt(f)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${n} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(vt(f)).concat(Object.keys(vt(z))).map((o) => ` - ${o}`).join(`
|
|
3189
3189
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((o) => ` - ${o}`).join(`
|
|
3190
3190
|
`)].join(`
|
|
3191
3191
|
`));
|
|
3192
3192
|
} else {
|
|
3193
|
-
let o = a.props, v = o == null ? void 0 : o.className, c = typeof v == "function" ? (...b) => vn(v(...b), f.className) : vn(v, f.className), w = c ? { className: c } : {}, g =
|
|
3193
|
+
let o = a.props, v = o == null ? void 0 : o.className, c = typeof v == "function" ? (...b) => vn(v(...b), f.className) : vn(v, f.className), w = c ? { className: c } : {}, g = Vr(a.props, vt(Fe(f, ["ref"])));
|
|
3194
3194
|
for (let b in z) b in g && delete z[b];
|
|
3195
|
-
return
|
|
3195
|
+
return fu(a, Object.assign({}, g, z, l, { ref: d(i3(a), l.ref) }, w));
|
|
3196
3196
|
}
|
|
3197
|
-
return
|
|
3197
|
+
return au(r, Object.assign({}, Fe(f, ["ref"]), r !== qA && l, r !== qA && z), a);
|
|
3198
3198
|
}
|
|
3199
|
-
function
|
|
3199
|
+
function B3() {
|
|
3200
3200
|
let A = C([]), t = AA((e) => {
|
|
3201
3201
|
for (let n of A.current) n != null && (typeof n == "function" ? n(e) : n.current = e);
|
|
3202
3202
|
}, []);
|
|
@@ -3204,12 +3204,12 @@ function g3() {
|
|
|
3204
3204
|
if (!e.every((n) => n == null)) return A.current = e, t;
|
|
3205
3205
|
};
|
|
3206
3206
|
}
|
|
3207
|
-
function
|
|
3207
|
+
function q3(...A) {
|
|
3208
3208
|
return A.every((t) => t == null) ? void 0 : (t) => {
|
|
3209
3209
|
for (let e of A) e != null && (typeof e == "function" ? e(t) : e.current = t);
|
|
3210
3210
|
};
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3212
|
+
function Vr(...A) {
|
|
3213
3213
|
if (A.length === 0) return {};
|
|
3214
3214
|
if (A.length === 1) return A[0];
|
|
3215
3215
|
let t = {}, e = {};
|
|
@@ -3252,33 +3252,33 @@ function Fe(A, t = []) {
|
|
|
3252
3252
|
for (let n of t) n in e && delete e[n];
|
|
3253
3253
|
return e;
|
|
3254
3254
|
}
|
|
3255
|
-
function
|
|
3255
|
+
function i3(A) {
|
|
3256
3256
|
return P.version.split(".")[0] >= "19" ? A.props.ref : A.ref;
|
|
3257
3257
|
}
|
|
3258
|
-
let
|
|
3259
|
-
function
|
|
3258
|
+
let H3 = "button";
|
|
3259
|
+
function M3(A, t) {
|
|
3260
3260
|
var e;
|
|
3261
3261
|
let n = Dt(), { disabled: d = n || !1, autoFocus: r = !1, ...u } = A, { isFocusVisible: s, focusProps: f } = at({ autoFocus: r }), { isHovered: l, hoverProps: a } = pt({ isDisabled: d }), { pressed: z, pressProps: o } = Et({ disabled: d }), v = VA({ ref: t, type: (e = u.type) != null ? e : "button", disabled: d || void 0, autoFocus: r }, f, a, o), c = L(() => ({ disabled: d, hover: l, focus: s, active: z, autofocus: r }), [d, l, s, z, r]);
|
|
3262
|
-
return I()({ ourProps: v, theirProps: u, slot: c, defaultTag:
|
|
3262
|
+
return I()({ ourProps: v, theirProps: u, slot: c, defaultTag: H3, name: "Button" });
|
|
3263
3263
|
}
|
|
3264
|
-
let
|
|
3264
|
+
let Nr = E(M3), W3 = "span";
|
|
3265
3265
|
var _A = ((A) => (A[A.None = 1] = "None", A[A.Focusable = 2] = "Focusable", A[A.Hidden = 4] = "Hidden", A))(_A || {});
|
|
3266
|
-
function
|
|
3266
|
+
function Z3(A, t) {
|
|
3267
3267
|
var e;
|
|
3268
3268
|
let { features: n = 1, ...d } = A, r = { ref: t, "aria-hidden": (n & 2) === 2 ? !0 : (e = d["aria-hidden"]) != null ? e : void 0, hidden: (n & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(n & 4) === 4 && (n & 2) !== 2 && { display: "none" } } };
|
|
3269
|
-
return I()({ ourProps: r, theirProps: d, slot: {}, defaultTag:
|
|
3269
|
+
return I()({ ourProps: r, theirProps: d, slot: {}, defaultTag: W3, name: "Hidden" });
|
|
3270
3270
|
}
|
|
3271
|
-
let At = E(
|
|
3272
|
-
function
|
|
3271
|
+
let At = E(Z3), m3 = rA(null);
|
|
3272
|
+
function Q3(A) {
|
|
3273
3273
|
let [t, e] = K(null);
|
|
3274
|
-
return P.createElement(
|
|
3274
|
+
return P.createElement(m3.Provider, { value: { target: t } }, A.children, P.createElement(At, { features: _A.Hidden, ref: e }));
|
|
3275
3275
|
}
|
|
3276
|
-
let
|
|
3276
|
+
let Cr = rA(void 0);
|
|
3277
3277
|
function Hn() {
|
|
3278
|
-
return h(
|
|
3278
|
+
return h(Cr);
|
|
3279
3279
|
}
|
|
3280
|
-
function
|
|
3281
|
-
return P.createElement(
|
|
3280
|
+
function L3({ id: A, children: t }) {
|
|
3281
|
+
return P.createElement(Cr.Provider, { value: A }, t);
|
|
3282
3282
|
}
|
|
3283
3283
|
function Mn(A) {
|
|
3284
3284
|
return typeof A != "object" || A === null ? !1 : "nodeType" in A;
|
|
@@ -3292,45 +3292,45 @@ function XA(A) {
|
|
|
3292
3292
|
function mA(A) {
|
|
3293
3293
|
return hA(A) && "tabIndex" in A;
|
|
3294
3294
|
}
|
|
3295
|
-
function
|
|
3295
|
+
function T3(A) {
|
|
3296
3296
|
return hA(A) && "style" in A;
|
|
3297
3297
|
}
|
|
3298
|
-
function
|
|
3298
|
+
function x3(A) {
|
|
3299
3299
|
return XA(A) && A.nodeName === "IFRAME";
|
|
3300
3300
|
}
|
|
3301
|
-
function
|
|
3301
|
+
function yr(A) {
|
|
3302
3302
|
return XA(A) && A.nodeName === "INPUT";
|
|
3303
3303
|
}
|
|
3304
3304
|
function od(A) {
|
|
3305
3305
|
return XA(A) && A.nodeName === "LABEL";
|
|
3306
3306
|
}
|
|
3307
|
-
function
|
|
3307
|
+
function V3(A) {
|
|
3308
3308
|
return XA(A) && A.nodeName === "FIELDSET";
|
|
3309
3309
|
}
|
|
3310
|
-
function
|
|
3310
|
+
function jr(A) {
|
|
3311
3311
|
return XA(A) && A.nodeName === "LEGEND";
|
|
3312
3312
|
}
|
|
3313
|
-
function
|
|
3313
|
+
function N3(A) {
|
|
3314
3314
|
return hA(A) ? A.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
|
|
3315
3315
|
}
|
|
3316
3316
|
function De(A) {
|
|
3317
3317
|
let t = A.parentElement, e = null;
|
|
3318
|
-
for (; t && !
|
|
3318
|
+
for (; t && !V3(t); ) jr(t) && (e = t), t = t.parentElement;
|
|
3319
3319
|
let n = (t == null ? void 0 : t.getAttribute("disabled")) === "";
|
|
3320
|
-
return n &&
|
|
3320
|
+
return n && C3(e) ? !1 : n;
|
|
3321
3321
|
}
|
|
3322
|
-
function
|
|
3322
|
+
function C3(A) {
|
|
3323
3323
|
if (!A) return !1;
|
|
3324
3324
|
let t = A.previousElementSibling;
|
|
3325
3325
|
for (; t !== null; ) {
|
|
3326
|
-
if (
|
|
3326
|
+
if (jr(t)) return !1;
|
|
3327
3327
|
t = t.previousElementSibling;
|
|
3328
3328
|
}
|
|
3329
3329
|
return !0;
|
|
3330
3330
|
}
|
|
3331
|
-
let
|
|
3331
|
+
let Ur = Symbol();
|
|
3332
3332
|
function Wn(A, t = !0) {
|
|
3333
|
-
return Object.assign(A, { [
|
|
3333
|
+
return Object.assign(A, { [Ur]: t });
|
|
3334
3334
|
}
|
|
3335
3335
|
function nA(...A) {
|
|
3336
3336
|
let t = C(A);
|
|
@@ -3340,19 +3340,19 @@ function nA(...A) {
|
|
|
3340
3340
|
let e = H((n) => {
|
|
3341
3341
|
for (let d of t.current) d != null && (typeof d == "function" ? d(n) : d.current = n);
|
|
3342
3342
|
});
|
|
3343
|
-
return A.every((n) => n == null || (n == null ? void 0 : n[
|
|
3343
|
+
return A.every((n) => n == null || (n == null ? void 0 : n[Ur])) ? void 0 : e;
|
|
3344
3344
|
}
|
|
3345
3345
|
let Xe = rA(null);
|
|
3346
3346
|
Xe.displayName = "DescriptionContext";
|
|
3347
|
-
function
|
|
3347
|
+
function Gr() {
|
|
3348
3348
|
let A = h(Xe);
|
|
3349
3349
|
if (A === null) {
|
|
3350
3350
|
let t = new Error("You used a <Description /> component, but it is not inside a relevant parent.");
|
|
3351
|
-
throw Error.captureStackTrace && Error.captureStackTrace(t,
|
|
3351
|
+
throw Error.captureStackTrace && Error.captureStackTrace(t, Gr), t;
|
|
3352
3352
|
}
|
|
3353
3353
|
return A;
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function Yr() {
|
|
3356
3356
|
var A, t;
|
|
3357
3357
|
return (t = (A = h(Xe)) == null ? void 0 : A.value) != null ? t : void 0;
|
|
3358
3358
|
}
|
|
@@ -3366,14 +3366,14 @@ function Zn() {
|
|
|
3366
3366
|
return P.createElement(Xe.Provider, { value: d }, e.children);
|
|
3367
3367
|
}, [t])];
|
|
3368
3368
|
}
|
|
3369
|
-
let
|
|
3370
|
-
function
|
|
3371
|
-
let e = lA(), n = Dt(), { id: d = `headlessui-description-${e}`, ...r } = A, u =
|
|
3369
|
+
let y3 = "p";
|
|
3370
|
+
function j3(A, t) {
|
|
3371
|
+
let e = lA(), n = Dt(), { id: d = `headlessui-description-${e}`, ...r } = A, u = Gr(), s = nA(t);
|
|
3372
3372
|
tA(() => u.register(d), [d, u.register]);
|
|
3373
3373
|
let f = n || !1, l = L(() => ({ ...u.slot, disabled: f }), [u.slot, f]), a = { ref: s, ...u.props, id: d };
|
|
3374
|
-
return I()({ ourProps: a, theirProps: r, slot: l, defaultTag:
|
|
3374
|
+
return I()({ ourProps: a, theirProps: r, slot: l, defaultTag: y3, name: u.name || "Description" });
|
|
3375
3375
|
}
|
|
3376
|
-
let
|
|
3376
|
+
let U3 = E(j3), Pe = Object.assign(U3, {});
|
|
3377
3377
|
var F = ((A) => (A.Space = " ", A.Enter = "Enter", A.Escape = "Escape", A.Backspace = "Backspace", A.Delete = "Delete", A.ArrowLeft = "ArrowLeft", A.ArrowUp = "ArrowUp", A.ArrowRight = "ArrowRight", A.ArrowDown = "ArrowDown", A.Home = "Home", A.End = "End", A.PageUp = "PageUp", A.PageDown = "PageDown", A.Tab = "Tab", A))(F || {});
|
|
3378
3378
|
let Be = rA(null);
|
|
3379
3379
|
Be.displayName = "LabelContext";
|
|
@@ -3400,38 +3400,38 @@ function qe({ inherit: A = !1 } = {}) {
|
|
|
3400
3400
|
return P.createElement(Be.Provider, { value: s }, r.children);
|
|
3401
3401
|
}, [n])];
|
|
3402
3402
|
}
|
|
3403
|
-
let
|
|
3404
|
-
function
|
|
3403
|
+
let G3 = "label";
|
|
3404
|
+
function Y3(A, t) {
|
|
3405
3405
|
var e;
|
|
3406
3406
|
let n = lA(), d = mn(), r = Hn(), u = Dt(), { id: s = `headlessui-label-${n}`, htmlFor: f = r ?? ((e = d.props) == null ? void 0 : e.htmlFor), passive: l = !1, ...a } = A, z = nA(t);
|
|
3407
3407
|
tA(() => d.register(s), [s, d.register]);
|
|
3408
3408
|
let o = H((g) => {
|
|
3409
3409
|
let b = g.currentTarget;
|
|
3410
|
-
if (!(g.target !== g.currentTarget &&
|
|
3410
|
+
if (!(g.target !== g.currentTarget && N3(g.target)) && (od(b) && g.preventDefault(), d.props && "onClick" in d.props && typeof d.props.onClick == "function" && d.props.onClick(g), od(b))) {
|
|
3411
3411
|
let p = document.getElementById(b.htmlFor);
|
|
3412
3412
|
if (p) {
|
|
3413
3413
|
let D = p.getAttribute("disabled");
|
|
3414
3414
|
if (D === "true" || D === "") return;
|
|
3415
3415
|
let X = p.getAttribute("aria-disabled");
|
|
3416
3416
|
if (X === "true" || X === "") return;
|
|
3417
|
-
(
|
|
3417
|
+
(yr(p) && (p.type === "file" || p.type === "radio" || p.type === "checkbox") || p.role === "radio" || p.role === "checkbox" || p.role === "switch") && p.click(), p.focus({ preventScroll: !0 });
|
|
3418
3418
|
}
|
|
3419
3419
|
}
|
|
3420
3420
|
}), v = u || !1, c = L(() => ({ ...d.slot, disabled: v }), [d.slot, v]), w = { ref: z, ...d.props, id: s, htmlFor: f, onClick: o };
|
|
3421
|
-
return l && ("onClick" in w && (delete w.htmlFor, delete w.onClick), "onClick" in a && delete a.onClick), I()({ ourProps: w, theirProps: a, slot: c, defaultTag: f ?
|
|
3421
|
+
return l && ("onClick" in w && (delete w.htmlFor, delete w.onClick), "onClick" in a && delete a.onClick), I()({ ourProps: w, theirProps: a, slot: c, defaultTag: f ? G3 : "div", name: d.name || "Label" });
|
|
3422
3422
|
}
|
|
3423
|
-
let
|
|
3423
|
+
let k3 = E(Y3), kr = Object.assign(k3, {}), K3 = rA(() => {
|
|
3424
3424
|
});
|
|
3425
3425
|
function ie({ value: A, children: t }) {
|
|
3426
|
-
return P.createElement(
|
|
3426
|
+
return P.createElement(K3.Provider, { value: A }, t);
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3428
|
+
function E3(A) {
|
|
3429
3429
|
if (A === null) return { width: 0, height: 0 };
|
|
3430
3430
|
let { width: t, height: e } = A.getBoundingClientRect();
|
|
3431
3431
|
return { width: t, height: e };
|
|
3432
3432
|
}
|
|
3433
|
-
function
|
|
3434
|
-
let [e, n] = be(() => ({}), {}), d = L(() =>
|
|
3433
|
+
function Kr(A, t = !1) {
|
|
3434
|
+
let [e, n] = be(() => ({}), {}), d = L(() => E3(A), [A, e]);
|
|
3435
3435
|
return tA(() => {
|
|
3436
3436
|
if (!A) return;
|
|
3437
3437
|
let r = new ResizeObserver(n);
|
|
@@ -3440,7 +3440,7 @@ function yr(A, t = !1) {
|
|
|
3440
3440
|
};
|
|
3441
3441
|
}, [A]), t ? { width: `${d.width}px`, height: `${d.height}px` } : d;
|
|
3442
3442
|
}
|
|
3443
|
-
let
|
|
3443
|
+
let Er = class extends Map {
|
|
3444
3444
|
constructor(t) {
|
|
3445
3445
|
super(), this.factory = t;
|
|
3446
3446
|
}
|
|
@@ -3449,15 +3449,15 @@ let jr = class extends Map {
|
|
|
3449
3449
|
return e === void 0 && (e = this.factory(t), this.set(t, e)), e;
|
|
3450
3450
|
}
|
|
3451
3451
|
};
|
|
3452
|
-
var
|
|
3452
|
+
var J3 = Object.defineProperty, F3 = (A, t, e) => t in A ? J3(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, R3 = (A, t, e) => (F3(A, t + "", e), e), Jr = (A, t, e) => {
|
|
3453
3453
|
if (!t.has(A)) throw TypeError("Cannot " + e);
|
|
3454
|
-
}, TA = (A, t, e) => (
|
|
3454
|
+
}, TA = (A, t, e) => (Jr(A, t, "read from private field"), e ? e.call(A) : t.get(A)), Re = (A, t, e) => {
|
|
3455
3455
|
if (t.has(A)) throw TypeError("Cannot add the same private member more than once");
|
|
3456
3456
|
t instanceof WeakSet ? t.add(A) : t.set(A, e);
|
|
3457
|
-
}, wd = (A, t, e, n) => (
|
|
3457
|
+
}, wd = (A, t, e, n) => (Jr(A, t, "write to private field"), t.set(A, e), e), yA, Vt, Nt;
|
|
3458
3458
|
let Ln = class {
|
|
3459
3459
|
constructor(t) {
|
|
3460
|
-
Re(this, yA, {}), Re(this, Vt, new
|
|
3460
|
+
Re(this, yA, {}), Re(this, Vt, new Er(() => /* @__PURE__ */ new Set())), Re(this, Nt, /* @__PURE__ */ new Set()), R3(this, "disposables", NA()), wd(this, yA, t), GA.isServer && this.disposables.microTask(() => {
|
|
3461
3461
|
this.dispose();
|
|
3462
3462
|
});
|
|
3463
3463
|
}
|
|
@@ -3487,14 +3487,14 @@ let Ln = class {
|
|
|
3487
3487
|
wd(this, yA, e);
|
|
3488
3488
|
for (let n of TA(this, Nt)) {
|
|
3489
3489
|
let d = n.selector(TA(this, yA));
|
|
3490
|
-
|
|
3490
|
+
Fr(n.current, d) || (n.current = d, n.callback(d));
|
|
3491
3491
|
}
|
|
3492
3492
|
for (let n of TA(this, Vt).get(t.type)) n(TA(this, yA), t);
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
};
|
|
3496
3496
|
yA = /* @__PURE__ */ new WeakMap(), Vt = /* @__PURE__ */ new WeakMap(), Nt = /* @__PURE__ */ new WeakMap();
|
|
3497
|
-
function
|
|
3497
|
+
function Fr(A, t) {
|
|
3498
3498
|
return Object.is(A, t) ? !0 : typeof A != "object" || A === null || typeof t != "object" || t === null ? !1 : Array.isArray(A) && Array.isArray(t) ? A.length !== t.length ? !1 : Se(A[Symbol.iterator](), t[Symbol.iterator]()) : A instanceof Map && t instanceof Map || A instanceof Set && t instanceof Set ? A.size !== t.size ? !1 : Se(A.entries(), t.entries()) : gd(A) && gd(t) ? Se(Object.entries(A)[Symbol.iterator](), Object.entries(t)[Symbol.iterator]()) : !1;
|
|
3499
3499
|
}
|
|
3500
3500
|
function Se(A, t) {
|
|
@@ -3515,8 +3515,8 @@ function bd(A) {
|
|
|
3515
3515
|
t(...d), n.dispose(), n.microTask(e);
|
|
3516
3516
|
};
|
|
3517
3517
|
}
|
|
3518
|
-
var
|
|
3519
|
-
let
|
|
3518
|
+
var S3 = Object.defineProperty, I3 = (A, t, e) => t in A ? S3(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, pd = (A, t, e) => (I3(A, typeof t != "symbol" ? t + "" : t, e), e), Rr = ((A) => (A[A.Push = 0] = "Push", A[A.Pop = 1] = "Pop", A))(Rr || {});
|
|
3519
|
+
let h3 = { 0(A, t) {
|
|
3520
3520
|
let e = t.id, n = A.stack, d = A.stack.indexOf(e);
|
|
3521
3521
|
if (d !== -1) {
|
|
3522
3522
|
let r = A.stack.slice();
|
|
@@ -3528,18 +3528,18 @@ let E3 = { 0(A, t) {
|
|
|
3528
3528
|
if (n === -1) return A;
|
|
3529
3529
|
let d = A.stack.slice();
|
|
3530
3530
|
return d.splice(n, 1), { ...A, stack: d };
|
|
3531
|
-
} },
|
|
3531
|
+
} }, $3 = class Sr extends Ln {
|
|
3532
3532
|
constructor() {
|
|
3533
3533
|
super(...arguments), pd(this, "actions", { push: (t) => this.send({ type: 0, id: t }), pop: (t) => this.send({ type: 1, id: t }) }), pd(this, "selectors", { isTop: (t, e) => t.stack[t.stack.length - 1] === e, inStack: (t, e) => t.stack.includes(e) });
|
|
3534
3534
|
}
|
|
3535
3535
|
static new() {
|
|
3536
|
-
return new
|
|
3536
|
+
return new Sr({ stack: [] });
|
|
3537
3537
|
}
|
|
3538
3538
|
reduce(t, e) {
|
|
3539
|
-
return aA(e.type,
|
|
3539
|
+
return aA(e.type, h3, t, e);
|
|
3540
3540
|
}
|
|
3541
3541
|
};
|
|
3542
|
-
const Jt = new
|
|
3542
|
+
const Jt = new Er(() => $3.new());
|
|
3543
3543
|
var On = { exports: {} }, Ie = {};
|
|
3544
3544
|
/**
|
|
3545
3545
|
* @license React
|
|
@@ -3551,7 +3551,7 @@ var On = { exports: {} }, Ie = {};
|
|
|
3551
3551
|
* LICENSE file in the root directory of this source tree.
|
|
3552
3552
|
*/
|
|
3553
3553
|
var Dd;
|
|
3554
|
-
function
|
|
3554
|
+
function _3() {
|
|
3555
3555
|
if (Dd) return Ie;
|
|
3556
3556
|
Dd = 1;
|
|
3557
3557
|
var A = P;
|
|
@@ -3612,7 +3612,7 @@ var he = {};
|
|
|
3612
3612
|
* LICENSE file in the root directory of this source tree.
|
|
3613
3613
|
*/
|
|
3614
3614
|
var Xd;
|
|
3615
|
-
function
|
|
3615
|
+
function A1() {
|
|
3616
3616
|
return Xd || (Xd = 1, process.env.NODE_ENV !== "production" && function() {
|
|
3617
3617
|
function A(f, l) {
|
|
3618
3618
|
return f === l && (f !== 0 || 1 / f === 1 / l) || f !== f && l !== l;
|
|
@@ -3663,12 +3663,12 @@ function R3() {
|
|
|
3663
3663
|
}, typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
|
|
3664
3664
|
}()), he;
|
|
3665
3665
|
}
|
|
3666
|
-
process.env.NODE_ENV === "production" ? On.exports =
|
|
3667
|
-
var
|
|
3668
|
-
function DA(A, t, e =
|
|
3669
|
-
return
|
|
3666
|
+
process.env.NODE_ENV === "production" ? On.exports = _3() : On.exports = A1();
|
|
3667
|
+
var t1 = On.exports;
|
|
3668
|
+
function DA(A, t, e = Fr) {
|
|
3669
|
+
return t1.useSyncExternalStoreWithSelector(H((n) => A.subscribe(e1, n)), H(() => A.state), H(() => A.state), H(t), e);
|
|
3670
3670
|
}
|
|
3671
|
-
function
|
|
3671
|
+
function e1(A) {
|
|
3672
3672
|
return A;
|
|
3673
3673
|
}
|
|
3674
3674
|
function Ft(A, t) {
|
|
@@ -3690,7 +3690,7 @@ function Bd(A) {
|
|
|
3690
3690
|
let n = zn.get(A);
|
|
3691
3691
|
n && (n["aria-hidden"] === null ? A.removeAttribute("aria-hidden") : A.setAttribute("aria-hidden", n["aria-hidden"]), A.inert = n.inert, zn.delete(A));
|
|
3692
3692
|
}
|
|
3693
|
-
function
|
|
3693
|
+
function Ir(A, { allowed: t, disallowed: e } = {}) {
|
|
3694
3694
|
let n = Ft(A, "inert-others");
|
|
3695
3695
|
tA(() => {
|
|
3696
3696
|
var d, r;
|
|
@@ -3732,13 +3732,13 @@ function Tn(A, t, e) {
|
|
|
3732
3732
|
return () => r.dispose();
|
|
3733
3733
|
}, [t, n, A]);
|
|
3734
3734
|
}
|
|
3735
|
-
let ae = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((A) => `${A}:not([tabindex='-1'])`).join(","),
|
|
3736
|
-
var dA = ((A) => (A[A.First = 1] = "First", A[A.Previous = 2] = "Previous", A[A.Next = 4] = "Next", A[A.Last = 8] = "Last", A[A.WrapAround = 16] = "WrapAround", A[A.NoScroll = 32] = "NoScroll", A[A.AutoFocus = 64] = "AutoFocus", A))(dA || {}), UA = ((A) => (A[A.Error = 0] = "Error", A[A.Overflow = 1] = "Overflow", A[A.Success = 2] = "Success", A[A.Underflow = 3] = "Underflow", A))(UA || {}),
|
|
3735
|
+
let ae = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "textarea:not([disabled])"].map((A) => `${A}:not([tabindex='-1'])`).join(","), n1 = ["[data-autofocus]"].map((A) => `${A}:not([tabindex='-1'])`).join(",");
|
|
3736
|
+
var dA = ((A) => (A[A.First = 1] = "First", A[A.Previous = 2] = "Previous", A[A.Next = 4] = "Next", A[A.Last = 8] = "Last", A[A.WrapAround = 16] = "WrapAround", A[A.NoScroll = 32] = "NoScroll", A[A.AutoFocus = 64] = "AutoFocus", A))(dA || {}), UA = ((A) => (A[A.Error = 0] = "Error", A[A.Overflow = 1] = "Overflow", A[A.Success = 2] = "Success", A[A.Underflow = 3] = "Underflow", A))(UA || {}), d1 = ((A) => (A[A.Previous = -1] = "Previous", A[A.Next = 1] = "Next", A))(d1 || {});
|
|
3737
3737
|
function Rt(A = document.body) {
|
|
3738
3738
|
return A == null ? [] : Array.from(A.querySelectorAll(ae)).sort((t, e) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3739
3739
|
}
|
|
3740
|
-
function
|
|
3741
|
-
return A == null ? [] : Array.from(A.querySelectorAll(
|
|
3740
|
+
function r1(A = document.body) {
|
|
3741
|
+
return A == null ? [] : Array.from(A.querySelectorAll(n1)).sort((t, e) => Math.sign((t.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3742
3742
|
}
|
|
3743
3743
|
var He = ((A) => (A[A.Strict = 0] = "Strict", A[A.Loose = 1] = "Loose", A))(He || {});
|
|
3744
3744
|
function Me(A, t = 0) {
|
|
@@ -3754,13 +3754,13 @@ function Me(A, t = 0) {
|
|
|
3754
3754
|
return !1;
|
|
3755
3755
|
} });
|
|
3756
3756
|
}
|
|
3757
|
-
function
|
|
3757
|
+
function hr(A) {
|
|
3758
3758
|
let t = FA(A);
|
|
3759
3759
|
NA().nextFrame(() => {
|
|
3760
3760
|
t && mA(t.activeElement) && !Me(t.activeElement, 0) && YA(A);
|
|
3761
3761
|
});
|
|
3762
3762
|
}
|
|
3763
|
-
var
|
|
3763
|
+
var u1 = ((A) => (A[A.Keyboard = 0] = "Keyboard", A[A.Mouse = 1] = "Mouse", A))(u1 || {});
|
|
3764
3764
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (A) => {
|
|
3765
3765
|
A.metaKey || A.altKey || A.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
3766
3766
|
}, !0), document.addEventListener("click", (A) => {
|
|
@@ -3769,10 +3769,10 @@ typeof window < "u" && typeof document < "u" && (document.addEventListener("keyd
|
|
|
3769
3769
|
function YA(A) {
|
|
3770
3770
|
A == null || A.focus({ preventScroll: !0 });
|
|
3771
3771
|
}
|
|
3772
|
-
let
|
|
3773
|
-
function
|
|
3772
|
+
let s1 = ["textarea", "input"].join(",");
|
|
3773
|
+
function f1(A) {
|
|
3774
3774
|
var t, e;
|
|
3775
|
-
return (e = (t = A == null ? void 0 : A.matches) == null ? void 0 : t.call(A,
|
|
3775
|
+
return (e = (t = A == null ? void 0 : A.matches) == null ? void 0 : t.call(A, s1)) != null ? e : !1;
|
|
3776
3776
|
}
|
|
3777
3777
|
function ct(A, t = (e) => e) {
|
|
3778
3778
|
return A.slice().sort((e, n) => {
|
|
@@ -3782,11 +3782,11 @@ function ct(A, t = (e) => e) {
|
|
|
3782
3782
|
return u & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : u & Node.DOCUMENT_POSITION_PRECEDING ? 1 : 0;
|
|
3783
3783
|
});
|
|
3784
3784
|
}
|
|
3785
|
-
function
|
|
3785
|
+
function a1(A, t) {
|
|
3786
3786
|
return oA(Rt(), t, { relativeTo: A });
|
|
3787
3787
|
}
|
|
3788
3788
|
function oA(A, t, { sorted: e = !0, relativeTo: n = null, skipElements: d = [] } = {}) {
|
|
3789
|
-
let r = Array.isArray(A) ? A.length > 0 ? A[0].ownerDocument : document : A.ownerDocument, u = Array.isArray(A) ? e ? ct(A) : A : t & 64 ?
|
|
3789
|
+
let r = Array.isArray(A) ? A.length > 0 ? A[0].ownerDocument : document : A.ownerDocument, u = Array.isArray(A) ? e ? ct(A) : A : t & 64 ? r1(A) : Rt(A);
|
|
3790
3790
|
d.length > 0 && u.length > 1 && (u = u.filter((v) => !d.some((c) => c != null && "current" in c ? (c == null ? void 0 : c.current) === v : c === v))), n = n ?? r.activeElement;
|
|
3791
3791
|
let s = (() => {
|
|
3792
3792
|
if (t & 5) return 1;
|
|
@@ -3809,16 +3809,16 @@ function oA(A, t, { sorted: e = !0, relativeTo: n = null, skipElements: d = [] }
|
|
|
3809
3809
|
}
|
|
3810
3810
|
o = u[v], o == null || o.focus(l), a += s;
|
|
3811
3811
|
} while (o !== r.activeElement);
|
|
3812
|
-
return t & 6 &&
|
|
3812
|
+
return t & 6 && f1(o) && o.select(), 2;
|
|
3813
3813
|
}
|
|
3814
|
-
function
|
|
3814
|
+
function $r() {
|
|
3815
3815
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
3816
3816
|
}
|
|
3817
|
-
function
|
|
3817
|
+
function l1() {
|
|
3818
3818
|
return /Android/gi.test(window.navigator.userAgent);
|
|
3819
3819
|
}
|
|
3820
3820
|
function qd() {
|
|
3821
|
-
return
|
|
3821
|
+
return $r() || l1();
|
|
3822
3822
|
}
|
|
3823
3823
|
function Xt(A, t, e, n) {
|
|
3824
3824
|
let d = ZA(e);
|
|
@@ -3830,7 +3830,7 @@ function Xt(A, t, e, n) {
|
|
|
3830
3830
|
return document.addEventListener(t, r, n), () => document.removeEventListener(t, r, n);
|
|
3831
3831
|
}, [A, t, n]);
|
|
3832
3832
|
}
|
|
3833
|
-
function
|
|
3833
|
+
function _r(A, t, e, n) {
|
|
3834
3834
|
let d = ZA(e);
|
|
3835
3835
|
eA(() => {
|
|
3836
3836
|
if (!A) return;
|
|
@@ -3866,14 +3866,14 @@ function xn(A, t, e) {
|
|
|
3866
3866
|
}, !0), Xt(A, "touchend", (s) => {
|
|
3867
3867
|
let f = { x: s.changedTouches[0].clientX, y: s.changedTouches[0].clientY };
|
|
3868
3868
|
if (!(Math.abs(f.x - u.current.x) >= id || Math.abs(f.y - u.current.y) >= id)) return d(s, () => mA(s.target) ? s.target : null);
|
|
3869
|
-
}, !0),
|
|
3869
|
+
}, !0), _r(A, "blur", (s) => d(s, () => x3(window.document.activeElement) ? window.document.activeElement : null), !0);
|
|
3870
3870
|
}
|
|
3871
3871
|
function EA(...A) {
|
|
3872
3872
|
return L(() => FA(...A), [...A]);
|
|
3873
3873
|
}
|
|
3874
|
-
var
|
|
3875
|
-
const ee = { Ignore: { kind: 0 }, Select: (A) => ({ kind: 1, target: A }), Close: { kind: 2 } },
|
|
3876
|
-
function
|
|
3874
|
+
var v1 = ((A) => (A[A.Ignore = 0] = "Ignore", A[A.Select = 1] = "Select", A[A.Close = 2] = "Close", A))(v1 || {});
|
|
3875
|
+
const ee = { Ignore: { kind: 0 }, Select: (A) => ({ kind: 1, target: A }), Close: { kind: 2 } }, O1 = 200, Hd = 5;
|
|
3876
|
+
function z1(A, { trigger: t, action: e, close: n, select: d }) {
|
|
3877
3877
|
let r = C(null), u = C(null), s = C(null);
|
|
3878
3878
|
Xt(A && t !== null, "pointerdown", (f) => {
|
|
3879
3879
|
Mn(f == null ? void 0 : f.target) && t != null && t.contains(f.target) && (u.current = f.x, s.current = f.y, r.current = f.timeStamp);
|
|
@@ -3886,7 +3886,7 @@ function s1(A, { trigger: t, action: e, close: n, select: d }) {
|
|
|
3886
3886
|
case 0:
|
|
3887
3887
|
return;
|
|
3888
3888
|
case 1: {
|
|
3889
|
-
f.timeStamp - z >
|
|
3889
|
+
f.timeStamp - z > O1 && (d(o.target), n());
|
|
3890
3890
|
break;
|
|
3891
3891
|
}
|
|
3892
3892
|
case 2: {
|
|
@@ -3914,10 +3914,10 @@ function We(A, t) {
|
|
|
3914
3914
|
if (typeof n == "string" && n.toLowerCase() === "button" || (t == null ? void 0 : t.tagName) === "BUTTON" && !t.hasAttribute("type")) return "button";
|
|
3915
3915
|
}, [A.type, A.as, t]);
|
|
3916
3916
|
}
|
|
3917
|
-
function
|
|
3918
|
-
return
|
|
3917
|
+
function c1(A) {
|
|
3918
|
+
return lu(A.subscribe, A.getSnapshot, A.getSnapshot);
|
|
3919
3919
|
}
|
|
3920
|
-
function
|
|
3920
|
+
function o1(A, t) {
|
|
3921
3921
|
let e = A(), n = /* @__PURE__ */ new Set();
|
|
3922
3922
|
return { getSnapshot() {
|
|
3923
3923
|
return e;
|
|
@@ -3928,7 +3928,7 @@ function a1(A, t) {
|
|
|
3928
3928
|
u && (e = u, n.forEach((s) => s()));
|
|
3929
3929
|
} };
|
|
3930
3930
|
}
|
|
3931
|
-
function
|
|
3931
|
+
function w1() {
|
|
3932
3932
|
let A;
|
|
3933
3933
|
return { before({ doc: t }) {
|
|
3934
3934
|
var e;
|
|
@@ -3939,8 +3939,8 @@ function l1() {
|
|
|
3939
3939
|
e.style(n, "paddingRight", `${r}px`);
|
|
3940
3940
|
} };
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3943
|
-
return
|
|
3942
|
+
function g1() {
|
|
3943
|
+
return $r() ? { before({ doc: A, d: t, meta: e }) {
|
|
3944
3944
|
function n(d) {
|
|
3945
3945
|
return e.containers.flatMap((r) => r()).some((r) => r.contains(d));
|
|
3946
3946
|
}
|
|
@@ -3960,14 +3960,14 @@ function v1() {
|
|
|
3960
3960
|
} catch {
|
|
3961
3961
|
}
|
|
3962
3962
|
}, !0), t.addEventListener(A, "touchstart", (s) => {
|
|
3963
|
-
if (mA(s.target) &&
|
|
3963
|
+
if (mA(s.target) && T3(s.target)) if (n(s.target)) {
|
|
3964
3964
|
let f = s.target;
|
|
3965
3965
|
for (; f.parentElement && n(f.parentElement); ) f = f.parentElement;
|
|
3966
3966
|
t.style(f, "overscrollBehavior", "contain");
|
|
3967
3967
|
} else t.style(s.target, "touchAction", "none");
|
|
3968
3968
|
}), t.addEventListener(A, "touchmove", (s) => {
|
|
3969
3969
|
if (mA(s.target)) {
|
|
3970
|
-
if (
|
|
3970
|
+
if (yr(s.target)) return;
|
|
3971
3971
|
if (n(s.target)) {
|
|
3972
3972
|
let f = s.target;
|
|
3973
3973
|
for (; f.parentElement && f.dataset.headlessuiPortal !== "" && !(f.scrollHeight > f.clientHeight || f.scrollWidth > f.clientWidth); ) f = f.parentElement;
|
|
@@ -3982,17 +3982,17 @@ function v1() {
|
|
|
3982
3982
|
});
|
|
3983
3983
|
} } : {};
|
|
3984
3984
|
}
|
|
3985
|
-
function
|
|
3985
|
+
function b1() {
|
|
3986
3986
|
return { before({ doc: A, d: t }) {
|
|
3987
3987
|
t.style(A.documentElement, "overflow", "hidden");
|
|
3988
3988
|
} };
|
|
3989
3989
|
}
|
|
3990
|
-
function
|
|
3990
|
+
function p1(A) {
|
|
3991
3991
|
let t = {};
|
|
3992
3992
|
for (let e of A) Object.assign(t, e(t));
|
|
3993
3993
|
return t;
|
|
3994
3994
|
}
|
|
3995
|
-
let ot =
|
|
3995
|
+
let ot = o1(() => /* @__PURE__ */ new Map(), { PUSH(A, t) {
|
|
3996
3996
|
var e;
|
|
3997
3997
|
let n = (e = this.get(A)) != null ? e : { doc: A, count: 0, d: NA(), meta: /* @__PURE__ */ new Set() };
|
|
3998
3998
|
return n.count++, n.meta.add(t), this.set(A, n), this;
|
|
@@ -4000,7 +4000,7 @@ let ot = a1(() => /* @__PURE__ */ new Map(), { PUSH(A, t) {
|
|
|
4000
4000
|
let e = this.get(A);
|
|
4001
4001
|
return e && (e.count--, e.meta.delete(t)), this;
|
|
4002
4002
|
}, SCROLL_PREVENT({ doc: A, d: t, meta: e }) {
|
|
4003
|
-
let n = { doc: A, d: t, meta:
|
|
4003
|
+
let n = { doc: A, d: t, meta: p1(e) }, d = [g1(), w1(), b1()];
|
|
4004
4004
|
d.forEach(({ before: r }) => r == null ? void 0 : r(n)), d.forEach(({ after: r }) => r == null ? void 0 : r(n));
|
|
4005
4005
|
}, SCROLL_ALLOW({ d: A }) {
|
|
4006
4006
|
A.dispose();
|
|
@@ -4015,15 +4015,15 @@ ot.subscribe(() => {
|
|
|
4015
4015
|
(d && !n || !d && n) && ot.dispatch(e.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", e), e.count === 0 && ot.dispatch("TEARDOWN", e);
|
|
4016
4016
|
}
|
|
4017
4017
|
});
|
|
4018
|
-
function
|
|
4019
|
-
let n =
|
|
4018
|
+
function D1(A, t, e = () => ({ containers: [] })) {
|
|
4019
|
+
let n = c1(ot), d = t ? n.get(t) : void 0, r = d ? d.count > 0 : !1;
|
|
4020
4020
|
return tA(() => {
|
|
4021
4021
|
if (!(!t || !A)) return ot.dispatch("PUSH", t, e), () => ot.dispatch("POP", t, e);
|
|
4022
4022
|
}, [A, t]), r;
|
|
4023
4023
|
}
|
|
4024
4024
|
function Nn(A, t, e = () => [document.body]) {
|
|
4025
4025
|
let n = Ft(A, "scroll-lock");
|
|
4026
|
-
|
|
4026
|
+
D1(n, t, (d) => {
|
|
4027
4027
|
var r;
|
|
4028
4028
|
return { containers: [...(r = d.containers) != null ? r : [], e] };
|
|
4029
4029
|
});
|
|
@@ -4031,7 +4031,7 @@ function Nn(A, t, e = () => [document.body]) {
|
|
|
4031
4031
|
function Md(A) {
|
|
4032
4032
|
return [A.screenX, A.screenY];
|
|
4033
4033
|
}
|
|
4034
|
-
function
|
|
4034
|
+
function X1() {
|
|
4035
4035
|
let A = C([-1, -1]);
|
|
4036
4036
|
return { wasMoved(t) {
|
|
4037
4037
|
let e = Md(t);
|
|
@@ -4040,7 +4040,7 @@ function o1() {
|
|
|
4040
4040
|
A.current = Md(t);
|
|
4041
4041
|
} };
|
|
4042
4042
|
}
|
|
4043
|
-
function
|
|
4043
|
+
function P1(A = 0) {
|
|
4044
4044
|
let [t, e] = K(A), n = AA((f) => e(f), [t]), d = AA((f) => e((l) => l | f), [t]), r = AA((f) => (t & f) === f, [t]), u = AA((f) => e((l) => l & ~f), [e]), s = AA((f) => e((l) => l ^ f), [e]);
|
|
4045
4045
|
return { flags: t, setFlag: n, addFlag: d, hasFlag: r, removeFlag: u, toggleFlag: s };
|
|
4046
4046
|
}
|
|
@@ -4049,14 +4049,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Wd
|
|
|
4049
4049
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
4050
4050
|
`)), [];
|
|
4051
4051
|
});
|
|
4052
|
-
var
|
|
4052
|
+
var B1 = ((A) => (A[A.None = 0] = "None", A[A.Closed = 1] = "Closed", A[A.Enter = 2] = "Enter", A[A.Leave = 4] = "Leave", A))(B1 || {});
|
|
4053
4053
|
function St(A) {
|
|
4054
4054
|
let t = {};
|
|
4055
4055
|
for (let e in A) A[e] === !0 && (t[`data-${e}`] = "");
|
|
4056
4056
|
return t;
|
|
4057
4057
|
}
|
|
4058
4058
|
function It(A, t, e, n) {
|
|
4059
|
-
let [d, r] = K(e), { hasFlag: u, addFlag: s, removeFlag: f } =
|
|
4059
|
+
let [d, r] = K(e), { hasFlag: u, addFlag: s, removeFlag: f } = P1(A && d ? 3 : 0), l = C(!1), a = C(!1), z = Wt();
|
|
4060
4060
|
return tA(() => {
|
|
4061
4061
|
var o;
|
|
4062
4062
|
if (A) {
|
|
@@ -4064,7 +4064,7 @@ function It(A, t, e, n) {
|
|
|
4064
4064
|
e && s(3);
|
|
4065
4065
|
return;
|
|
4066
4066
|
}
|
|
4067
|
-
return (o = n == null ? void 0 : n.start) == null || o.call(n, e),
|
|
4067
|
+
return (o = n == null ? void 0 : n.start) == null || o.call(n, e), q1(t, { inFlight: l, prepare() {
|
|
4068
4068
|
a.current ? a.current = !1 : a.current = l.current, l.current = !0, !a.current && (e ? (s(3), f(4)) : (s(4), f(2)));
|
|
4069
4069
|
}, run() {
|
|
4070
4070
|
a.current ? e ? (f(3), s(4)) : (f(4), s(3)) : e ? f(1) : s(1);
|
|
@@ -4075,15 +4075,15 @@ function It(A, t, e, n) {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
}, [A, e, t, z]), A ? [d, { closed: u(1), enter: u(2), leave: u(4), transition: u(2) || u(4) }] : [e, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4078
|
+
function q1(A, { prepare: t, run: e, done: n, inFlight: d }) {
|
|
4079
4079
|
let r = NA();
|
|
4080
|
-
return
|
|
4080
|
+
return H1(A, { prepare: t, inFlight: d }), r.nextFrame(() => {
|
|
4081
4081
|
e(), r.requestAnimationFrame(() => {
|
|
4082
|
-
r.add(
|
|
4082
|
+
r.add(i1(A, n));
|
|
4083
4083
|
});
|
|
4084
4084
|
}), r.dispose;
|
|
4085
4085
|
}
|
|
4086
|
-
function
|
|
4086
|
+
function i1(A, t) {
|
|
4087
4087
|
var e, n;
|
|
4088
4088
|
let d = NA();
|
|
4089
4089
|
if (!A) return d.dispose;
|
|
@@ -4096,7 +4096,7 @@ function p1(A, t) {
|
|
|
4096
4096
|
r || t();
|
|
4097
4097
|
}), d.dispose);
|
|
4098
4098
|
}
|
|
4099
|
-
function
|
|
4099
|
+
function H1(A, { inFlight: t, prepare: e }) {
|
|
4100
4100
|
if (t != null && t.current) {
|
|
4101
4101
|
e();
|
|
4102
4102
|
return;
|
|
@@ -4104,7 +4104,7 @@ function D1(A, { inFlight: t, prepare: e }) {
|
|
|
4104
4104
|
let n = A.style.transition;
|
|
4105
4105
|
A.style.transition = "none", e(), A.offsetHeight, A.style.transition = n;
|
|
4106
4106
|
}
|
|
4107
|
-
function
|
|
4107
|
+
function M1(A, { container: t, accept: e, walk: n }) {
|
|
4108
4108
|
let d = C(e), r = C(n);
|
|
4109
4109
|
eA(() => {
|
|
4110
4110
|
d.current = e, r.current = n;
|
|
@@ -4130,7 +4130,7 @@ function Ze() {
|
|
|
4130
4130
|
return typeof window < "u";
|
|
4131
4131
|
}
|
|
4132
4132
|
function Zt(A) {
|
|
4133
|
-
return
|
|
4133
|
+
return A7(A) ? (A.nodeName || "").toLowerCase() : "#document";
|
|
4134
4134
|
}
|
|
4135
4135
|
function LA(A) {
|
|
4136
4136
|
var t;
|
|
@@ -4138,9 +4138,9 @@ function LA(A) {
|
|
|
4138
4138
|
}
|
|
4139
4139
|
function RA(A) {
|
|
4140
4140
|
var t;
|
|
4141
|
-
return (t = (
|
|
4141
|
+
return (t = (A7(A) ? A.ownerDocument : A.document) || window.document) == null ? void 0 : t.documentElement;
|
|
4142
4142
|
}
|
|
4143
|
-
function
|
|
4143
|
+
function A7(A) {
|
|
4144
4144
|
return Ze() ? A instanceof Node || A instanceof LA(A).Node : !1;
|
|
4145
4145
|
}
|
|
4146
4146
|
function BA(A) {
|
|
@@ -4152,7 +4152,7 @@ function JA(A) {
|
|
|
4152
4152
|
function md(A) {
|
|
4153
4153
|
return !Ze() || typeof ShadowRoot > "u" ? !1 : A instanceof ShadowRoot || A instanceof LA(A).ShadowRoot;
|
|
4154
4154
|
}
|
|
4155
|
-
const
|
|
4155
|
+
const W1 = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
4156
4156
|
function ht(A) {
|
|
4157
4157
|
const {
|
|
4158
4158
|
overflow: t,
|
|
@@ -4160,15 +4160,15 @@ function ht(A) {
|
|
|
4160
4160
|
overflowY: n,
|
|
4161
4161
|
display: d
|
|
4162
4162
|
} = CA(A);
|
|
4163
|
-
return /auto|scroll|overlay|hidden|clip/.test(t + n + e) && !
|
|
4163
|
+
return /auto|scroll|overlay|hidden|clip/.test(t + n + e) && !W1.has(d);
|
|
4164
4164
|
}
|
|
4165
|
-
const
|
|
4166
|
-
function
|
|
4167
|
-
return
|
|
4165
|
+
const Z1 = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
4166
|
+
function m1(A) {
|
|
4167
|
+
return Z1.has(Zt(A));
|
|
4168
4168
|
}
|
|
4169
|
-
const
|
|
4169
|
+
const Q1 = [":popover-open", ":modal"];
|
|
4170
4170
|
function me(A) {
|
|
4171
|
-
return
|
|
4171
|
+
return Q1.some((t) => {
|
|
4172
4172
|
try {
|
|
4173
4173
|
return A.matches(t);
|
|
4174
4174
|
} catch {
|
|
@@ -4176,12 +4176,12 @@ function me(A) {
|
|
|
4176
4176
|
}
|
|
4177
4177
|
});
|
|
4178
4178
|
}
|
|
4179
|
-
const
|
|
4179
|
+
const L1 = ["transform", "translate", "scale", "rotate", "perspective"], T1 = ["transform", "translate", "scale", "rotate", "perspective", "filter"], x1 = ["paint", "layout", "strict", "content"];
|
|
4180
4180
|
function yn(A) {
|
|
4181
4181
|
const t = jn(), e = BA(A) ? CA(A) : A;
|
|
4182
|
-
return
|
|
4182
|
+
return L1.some((n) => e[n] ? e[n] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || T1.some((n) => (e.willChange || "").includes(n)) || x1.some((n) => (e.contain || "").includes(n));
|
|
4183
4183
|
}
|
|
4184
|
-
function
|
|
4184
|
+
function V1(A) {
|
|
4185
4185
|
let t = ut(A);
|
|
4186
4186
|
for (; JA(t) && !qt(t); ) {
|
|
4187
4187
|
if (yn(t))
|
|
@@ -4195,9 +4195,9 @@ function Z1(A) {
|
|
|
4195
4195
|
function jn() {
|
|
4196
4196
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
4197
4197
|
}
|
|
4198
|
-
const
|
|
4198
|
+
const N1 = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
4199
4199
|
function qt(A) {
|
|
4200
|
-
return
|
|
4200
|
+
return N1.has(Zt(A));
|
|
4201
4201
|
}
|
|
4202
4202
|
function CA(A) {
|
|
4203
4203
|
return LA(A).getComputedStyle(A);
|
|
@@ -4223,14 +4223,14 @@ function ut(A) {
|
|
|
4223
4223
|
);
|
|
4224
4224
|
return md(t) ? t.host : t;
|
|
4225
4225
|
}
|
|
4226
|
-
function
|
|
4226
|
+
function t7(A) {
|
|
4227
4227
|
const t = ut(A);
|
|
4228
|
-
return qt(t) ? A.ownerDocument ? A.ownerDocument.body : A.body : JA(t) && ht(t) ? t :
|
|
4228
|
+
return qt(t) ? A.ownerDocument ? A.ownerDocument.body : A.body : JA(t) && ht(t) ? t : t7(t);
|
|
4229
4229
|
}
|
|
4230
4230
|
function jt(A, t, e) {
|
|
4231
4231
|
var n;
|
|
4232
4232
|
t === void 0 && (t = []), e === void 0 && (e = !0);
|
|
4233
|
-
const d =
|
|
4233
|
+
const d = t7(A), r = d === ((n = A.ownerDocument) == null ? void 0 : n.body), u = LA(d);
|
|
4234
4234
|
if (r) {
|
|
4235
4235
|
const s = cn(u);
|
|
4236
4236
|
return t.concat(u, u.visualViewport || [], ht(d) ? d : [], s && e ? jt(s) : []);
|
|
@@ -4240,7 +4240,7 @@ function jt(A, t, e) {
|
|
|
4240
4240
|
function cn(A) {
|
|
4241
4241
|
return A.parent && Object.getPrototypeOf(A.parent) ? A.frameElement : null;
|
|
4242
4242
|
}
|
|
4243
|
-
function
|
|
4243
|
+
function C1() {
|
|
4244
4244
|
const A = navigator.userAgentData;
|
|
4245
4245
|
return A && Array.isArray(A.brands) ? A.brands.map((t) => {
|
|
4246
4246
|
let {
|
|
@@ -4253,12 +4253,12 @@ function Q1() {
|
|
|
4253
4253
|
const gt = Math.min, PA = Math.max, Ut = Math.round, ne = Math.floor, kA = (A) => ({
|
|
4254
4254
|
x: A,
|
|
4255
4255
|
y: A
|
|
4256
|
-
}),
|
|
4256
|
+
}), y1 = {
|
|
4257
4257
|
left: "right",
|
|
4258
4258
|
right: "left",
|
|
4259
4259
|
bottom: "top",
|
|
4260
4260
|
top: "bottom"
|
|
4261
|
-
},
|
|
4261
|
+
}, j1 = {
|
|
4262
4262
|
start: "end",
|
|
4263
4263
|
end: "start"
|
|
4264
4264
|
};
|
|
@@ -4274,54 +4274,54 @@ function st(A) {
|
|
|
4274
4274
|
function $t(A) {
|
|
4275
4275
|
return A.split("-")[1];
|
|
4276
4276
|
}
|
|
4277
|
-
function
|
|
4277
|
+
function e7(A) {
|
|
4278
4278
|
return A === "x" ? "y" : "x";
|
|
4279
4279
|
}
|
|
4280
|
-
function
|
|
4280
|
+
function n7(A) {
|
|
4281
4281
|
return A === "y" ? "height" : "width";
|
|
4282
4282
|
}
|
|
4283
|
-
const
|
|
4283
|
+
const U1 = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4284
4284
|
function IA(A) {
|
|
4285
|
-
return
|
|
4285
|
+
return U1.has(st(A)) ? "y" : "x";
|
|
4286
4286
|
}
|
|
4287
|
-
function
|
|
4288
|
-
return
|
|
4287
|
+
function d7(A) {
|
|
4288
|
+
return e7(IA(A));
|
|
4289
4289
|
}
|
|
4290
|
-
function
|
|
4290
|
+
function G1(A, t, e) {
|
|
4291
4291
|
e === void 0 && (e = !1);
|
|
4292
|
-
const n = $t(A), d =
|
|
4292
|
+
const n = $t(A), d = d7(A), r = n7(d);
|
|
4293
4293
|
let u = d === "x" ? n === (e ? "end" : "start") ? "right" : "left" : n === "start" ? "bottom" : "top";
|
|
4294
4294
|
return t.reference[r] > t.floating[r] && (u = le(u)), [u, le(u)];
|
|
4295
4295
|
}
|
|
4296
|
-
function
|
|
4296
|
+
function Y1(A) {
|
|
4297
4297
|
const t = le(A);
|
|
4298
4298
|
return [on(A), t, on(t)];
|
|
4299
4299
|
}
|
|
4300
4300
|
function on(A) {
|
|
4301
|
-
return A.replace(/start|end/g, (t) =>
|
|
4301
|
+
return A.replace(/start|end/g, (t) => j1[t]);
|
|
4302
4302
|
}
|
|
4303
|
-
const Ld = ["left", "right"], Td = ["right", "left"],
|
|
4304
|
-
function
|
|
4303
|
+
const Ld = ["left", "right"], Td = ["right", "left"], k1 = ["top", "bottom"], K1 = ["bottom", "top"];
|
|
4304
|
+
function E1(A, t, e) {
|
|
4305
4305
|
switch (A) {
|
|
4306
4306
|
case "top":
|
|
4307
4307
|
case "bottom":
|
|
4308
4308
|
return e ? t ? Td : Ld : t ? Ld : Td;
|
|
4309
4309
|
case "left":
|
|
4310
4310
|
case "right":
|
|
4311
|
-
return t ?
|
|
4311
|
+
return t ? k1 : K1;
|
|
4312
4312
|
default:
|
|
4313
4313
|
return [];
|
|
4314
4314
|
}
|
|
4315
4315
|
}
|
|
4316
|
-
function
|
|
4316
|
+
function J1(A, t, e, n) {
|
|
4317
4317
|
const d = $t(A);
|
|
4318
|
-
let r =
|
|
4318
|
+
let r = E1(st(A), e === "start", n);
|
|
4319
4319
|
return d && (r = r.map((u) => u + "-" + d), t && (r = r.concat(r.map(on)))), r;
|
|
4320
4320
|
}
|
|
4321
4321
|
function le(A) {
|
|
4322
|
-
return A.replace(/left|right|bottom|top/g, (t) =>
|
|
4322
|
+
return A.replace(/left|right|bottom|top/g, (t) => y1[t]);
|
|
4323
4323
|
}
|
|
4324
|
-
function
|
|
4324
|
+
function F1(A) {
|
|
4325
4325
|
return {
|
|
4326
4326
|
top: 0,
|
|
4327
4327
|
right: 0,
|
|
@@ -4330,8 +4330,8 @@ function G1(A) {
|
|
|
4330
4330
|
...A
|
|
4331
4331
|
};
|
|
4332
4332
|
}
|
|
4333
|
-
function
|
|
4334
|
-
return typeof A != "number" ?
|
|
4333
|
+
function R1(A) {
|
|
4334
|
+
return typeof A != "number" ? F1(A) : {
|
|
4335
4335
|
top: A,
|
|
4336
4336
|
right: A,
|
|
4337
4337
|
bottom: A,
|
|
@@ -4361,7 +4361,7 @@ function xd(A, t, e) {
|
|
|
4361
4361
|
reference: n,
|
|
4362
4362
|
floating: d
|
|
4363
4363
|
} = A;
|
|
4364
|
-
const r = IA(t), u =
|
|
4364
|
+
const r = IA(t), u = d7(t), s = n7(u), f = st(t), l = r === "y", a = n.x + n.width / 2 - d.width / 2, z = n.y + n.height / 2 - d.height / 2, o = n[s] / 2 - d[s] / 2;
|
|
4365
4365
|
let v;
|
|
4366
4366
|
switch (f) {
|
|
4367
4367
|
case "top":
|
|
@@ -4404,7 +4404,7 @@ function xd(A, t, e) {
|
|
|
4404
4404
|
}
|
|
4405
4405
|
return v;
|
|
4406
4406
|
}
|
|
4407
|
-
const
|
|
4407
|
+
const S1 = async (A, t, e) => {
|
|
4408
4408
|
const {
|
|
4409
4409
|
placement: n = "bottom",
|
|
4410
4410
|
strategy: d = "absolute",
|
|
@@ -4481,7 +4481,7 @@ async function Le(A, t) {
|
|
|
4481
4481
|
elementContext: z = "floating",
|
|
4482
4482
|
altBoundary: o = !1,
|
|
4483
4483
|
padding: v = 0
|
|
4484
|
-
} = mt(t, A), c =
|
|
4484
|
+
} = mt(t, A), c = R1(v), g = s[o ? z === "floating" ? "reference" : "floating" : z], b = ve(await r.getClippingRect({
|
|
4485
4485
|
element: (e = await (r.isElement == null ? void 0 : r.isElement(g))) == null || e ? g : g.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
4486
4486
|
boundary: l,
|
|
4487
4487
|
rootBoundary: a,
|
|
@@ -4510,7 +4510,7 @@ async function Le(A, t) {
|
|
|
4510
4510
|
right: (B.right - b.right + c.right) / X.x
|
|
4511
4511
|
};
|
|
4512
4512
|
}
|
|
4513
|
-
const
|
|
4513
|
+
const I1 = function(A) {
|
|
4514
4514
|
return A === void 0 && (A = {}), {
|
|
4515
4515
|
name: "flip",
|
|
4516
4516
|
options: A,
|
|
@@ -4534,12 +4534,12 @@ const K1 = function(A) {
|
|
|
4534
4534
|
} = mt(A, t);
|
|
4535
4535
|
if ((e = r.arrow) != null && e.alignmentOffset)
|
|
4536
4536
|
return {};
|
|
4537
|
-
const b = st(d), p = IA(s), D = st(s) === s, X = await (f.isRTL == null ? void 0 : f.isRTL(l.floating)), B = o || (D || !w ? [le(s)] :
|
|
4538
|
-
!o && i && B.push(...
|
|
4537
|
+
const b = st(d), p = IA(s), D = st(s) === s, X = await (f.isRTL == null ? void 0 : f.isRTL(l.floating)), B = o || (D || !w ? [le(s)] : Y1(s)), i = c !== "none";
|
|
4538
|
+
!o && i && B.push(...J1(s, w, c, X));
|
|
4539
4539
|
const Z = [s, ...B], k = await Le(t, g), U = [];
|
|
4540
4540
|
let W = ((n = r.flip) == null ? void 0 : n.overflows) || [];
|
|
4541
4541
|
if (a && U.push(k[b]), z) {
|
|
4542
|
-
const m =
|
|
4542
|
+
const m = G1(d, u, X);
|
|
4543
4543
|
U.push(k[m[0]], k[m[1]]);
|
|
4544
4544
|
}
|
|
4545
4545
|
if (W = [...W, {
|
|
@@ -4591,13 +4591,13 @@ const K1 = function(A) {
|
|
|
4591
4591
|
return {};
|
|
4592
4592
|
}
|
|
4593
4593
|
};
|
|
4594
|
-
},
|
|
4595
|
-
async function
|
|
4594
|
+
}, h1 = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4595
|
+
async function $1(A, t) {
|
|
4596
4596
|
const {
|
|
4597
4597
|
placement: e,
|
|
4598
4598
|
platform: n,
|
|
4599
4599
|
elements: d
|
|
4600
|
-
} = A, r = await (n.isRTL == null ? void 0 : n.isRTL(d.floating)), u = st(e), s = $t(e), f = IA(e) === "y", l =
|
|
4600
|
+
} = A, r = await (n.isRTL == null ? void 0 : n.isRTL(d.floating)), u = st(e), s = $t(e), f = IA(e) === "y", l = h1.has(u) ? -1 : 1, a = r && f ? -1 : 1, z = mt(t, A);
|
|
4601
4601
|
let {
|
|
4602
4602
|
mainAxis: o,
|
|
4603
4603
|
crossAxis: v,
|
|
@@ -4619,7 +4619,7 @@ async function J1(A, t) {
|
|
|
4619
4619
|
y: v * a
|
|
4620
4620
|
};
|
|
4621
4621
|
}
|
|
4622
|
-
const
|
|
4622
|
+
const _1 = function(A) {
|
|
4623
4623
|
return A === void 0 && (A = 0), {
|
|
4624
4624
|
name: "offset",
|
|
4625
4625
|
options: A,
|
|
@@ -4630,7 +4630,7 @@ const F1 = function(A) {
|
|
|
4630
4630
|
y: r,
|
|
4631
4631
|
placement: u,
|
|
4632
4632
|
middlewareData: s
|
|
4633
|
-
} = t, f = await
|
|
4633
|
+
} = t, f = await $1(t, A);
|
|
4634
4634
|
return u === ((e = s.offset) == null ? void 0 : e.placement) && (n = s.arrow) != null && n.alignmentOffset ? {} : {
|
|
4635
4635
|
x: d + f.x,
|
|
4636
4636
|
y: r + f.y,
|
|
@@ -4641,7 +4641,7 @@ const F1 = function(A) {
|
|
|
4641
4641
|
};
|
|
4642
4642
|
}
|
|
4643
4643
|
};
|
|
4644
|
-
},
|
|
4644
|
+
}, As = function(A) {
|
|
4645
4645
|
return A === void 0 && (A = {}), {
|
|
4646
4646
|
name: "shift",
|
|
4647
4647
|
options: A,
|
|
@@ -4669,7 +4669,7 @@ const F1 = function(A) {
|
|
|
4669
4669
|
} = mt(A, t), l = {
|
|
4670
4670
|
x: e,
|
|
4671
4671
|
y: n
|
|
4672
|
-
}, a = await Le(t, f), z = IA(st(d)), o =
|
|
4672
|
+
}, a = await Le(t, f), z = IA(st(d)), o = e7(z);
|
|
4673
4673
|
let v = l[o], c = l[z];
|
|
4674
4674
|
if (r) {
|
|
4675
4675
|
const g = o === "y" ? "top" : "left", b = o === "y" ? "bottom" : "right", p = v + a[g], D = v - a[b];
|
|
@@ -4697,7 +4697,7 @@ const F1 = function(A) {
|
|
|
4697
4697
|
};
|
|
4698
4698
|
}
|
|
4699
4699
|
};
|
|
4700
|
-
},
|
|
4700
|
+
}, ts = function(A) {
|
|
4701
4701
|
return A === void 0 && (A = {}), {
|
|
4702
4702
|
name: "size",
|
|
4703
4703
|
options: A,
|
|
@@ -4738,7 +4738,7 @@ const F1 = function(A) {
|
|
|
4738
4738
|
}
|
|
4739
4739
|
};
|
|
4740
4740
|
};
|
|
4741
|
-
function
|
|
4741
|
+
function r7(A) {
|
|
4742
4742
|
const t = CA(A);
|
|
4743
4743
|
let e = parseFloat(t.width) || 0, n = parseFloat(t.height) || 0;
|
|
4744
4744
|
const d = JA(A), r = d ? A.offsetWidth : e, u = d ? A.offsetHeight : n, s = Ut(e) !== r || Ut(n) !== u;
|
|
@@ -4759,22 +4759,22 @@ function Bt(A) {
|
|
|
4759
4759
|
width: n,
|
|
4760
4760
|
height: d,
|
|
4761
4761
|
$: r
|
|
4762
|
-
} =
|
|
4762
|
+
} = r7(t);
|
|
4763
4763
|
let u = (r ? Ut(e.width) : e.width) / n, s = (r ? Ut(e.height) : e.height) / d;
|
|
4764
4764
|
return (!u || !Number.isFinite(u)) && (u = 1), (!s || !Number.isFinite(s)) && (s = 1), {
|
|
4765
4765
|
x: u,
|
|
4766
4766
|
y: s
|
|
4767
4767
|
};
|
|
4768
4768
|
}
|
|
4769
|
-
const
|
|
4770
|
-
function
|
|
4769
|
+
const es = /* @__PURE__ */ kA(0);
|
|
4770
|
+
function u7(A) {
|
|
4771
4771
|
const t = LA(A);
|
|
4772
|
-
return !jn() || !t.visualViewport ?
|
|
4772
|
+
return !jn() || !t.visualViewport ? es : {
|
|
4773
4773
|
x: t.visualViewport.offsetLeft,
|
|
4774
4774
|
y: t.visualViewport.offsetTop
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
|
-
function
|
|
4777
|
+
function ns(A, t, e) {
|
|
4778
4778
|
return t === void 0 && (t = !1), !e || t && e !== LA(A) ? !1 : t;
|
|
4779
4779
|
}
|
|
4780
4780
|
function bt(A, t, e, n) {
|
|
@@ -4782,7 +4782,7 @@ function bt(A, t, e, n) {
|
|
|
4782
4782
|
const d = A.getBoundingClientRect(), r = Un(A);
|
|
4783
4783
|
let u = kA(1);
|
|
4784
4784
|
t && (n ? BA(n) && (u = Bt(n)) : u = Bt(A));
|
|
4785
|
-
const s =
|
|
4785
|
+
const s = ns(r, e, n) ? u7(r) : kA(0);
|
|
4786
4786
|
let f = (d.left + s.x) / u.x, l = (d.top + s.y) / u.y, a = d.width / u.x, z = d.height / u.y;
|
|
4787
4787
|
if (r) {
|
|
4788
4788
|
const o = LA(r), v = n && BA(n) ? LA(n) : n;
|
|
@@ -4803,14 +4803,14 @@ function Te(A, t) {
|
|
|
4803
4803
|
const e = Qe(A).scrollLeft;
|
|
4804
4804
|
return t ? t.left + e : bt(RA(A)).left + e;
|
|
4805
4805
|
}
|
|
4806
|
-
function
|
|
4806
|
+
function s7(A, t) {
|
|
4807
4807
|
const e = A.getBoundingClientRect(), n = e.left + t.scrollLeft - Te(A, e), d = e.top + t.scrollTop;
|
|
4808
4808
|
return {
|
|
4809
4809
|
x: n,
|
|
4810
4810
|
y: d
|
|
4811
4811
|
};
|
|
4812
4812
|
}
|
|
4813
|
-
function
|
|
4813
|
+
function ds(A) {
|
|
4814
4814
|
let {
|
|
4815
4815
|
elements: t,
|
|
4816
4816
|
rect: e,
|
|
@@ -4829,7 +4829,7 @@ function $1(A) {
|
|
|
4829
4829
|
const v = bt(n);
|
|
4830
4830
|
l = Bt(n), a.x = v.x + n.clientLeft, a.y = v.y + n.clientTop;
|
|
4831
4831
|
}
|
|
4832
|
-
const o = u && !z && !r ?
|
|
4832
|
+
const o = u && !z && !r ? s7(u, f) : kA(0);
|
|
4833
4833
|
return {
|
|
4834
4834
|
width: e.width * l.x,
|
|
4835
4835
|
height: e.height * l.y,
|
|
@@ -4837,10 +4837,10 @@ function $1(A) {
|
|
|
4837
4837
|
y: e.y * l.y - f.scrollTop * l.y + a.y + o.y
|
|
4838
4838
|
};
|
|
4839
4839
|
}
|
|
4840
|
-
function
|
|
4840
|
+
function rs(A) {
|
|
4841
4841
|
return Array.from(A.getClientRects());
|
|
4842
4842
|
}
|
|
4843
|
-
function
|
|
4843
|
+
function us(A) {
|
|
4844
4844
|
const t = RA(A), e = Qe(A), n = A.ownerDocument.body, d = PA(t.scrollWidth, t.clientWidth, n.scrollWidth, n.clientWidth), r = PA(t.scrollHeight, t.clientHeight, n.scrollHeight, n.clientHeight);
|
|
4845
4845
|
let u = -e.scrollLeft + Te(A);
|
|
4846
4846
|
const s = -e.scrollTop;
|
|
@@ -4852,7 +4852,7 @@ function As(A) {
|
|
|
4852
4852
|
};
|
|
4853
4853
|
}
|
|
4854
4854
|
const Vd = 25;
|
|
4855
|
-
function
|
|
4855
|
+
function ss(A, t) {
|
|
4856
4856
|
const e = LA(A), n = RA(A), d = e.visualViewport;
|
|
4857
4857
|
let r = n.clientWidth, u = n.clientHeight, s = 0, f = 0;
|
|
4858
4858
|
if (d) {
|
|
@@ -4872,8 +4872,8 @@ function ts(A, t) {
|
|
|
4872
4872
|
y: f
|
|
4873
4873
|
};
|
|
4874
4874
|
}
|
|
4875
|
-
const
|
|
4876
|
-
function
|
|
4875
|
+
const fs = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4876
|
+
function as(A, t) {
|
|
4877
4877
|
const e = bt(A, !0, t === "fixed"), n = e.top + A.clientTop, d = e.left + A.clientLeft, r = JA(A) ? Bt(A) : kA(1), u = A.clientWidth * r.x, s = A.clientHeight * r.y, f = d * r.x, l = n * r.y;
|
|
4878
4878
|
return {
|
|
4879
4879
|
width: u,
|
|
@@ -4885,13 +4885,13 @@ function ns(A, t) {
|
|
|
4885
4885
|
function Nd(A, t, e) {
|
|
4886
4886
|
let n;
|
|
4887
4887
|
if (t === "viewport")
|
|
4888
|
-
n =
|
|
4888
|
+
n = ss(A, e);
|
|
4889
4889
|
else if (t === "document")
|
|
4890
|
-
n =
|
|
4890
|
+
n = us(RA(A));
|
|
4891
4891
|
else if (BA(t))
|
|
4892
|
-
n =
|
|
4892
|
+
n = as(t, e);
|
|
4893
4893
|
else {
|
|
4894
|
-
const d =
|
|
4894
|
+
const d = u7(A);
|
|
4895
4895
|
n = {
|
|
4896
4896
|
x: t.x - d.x,
|
|
4897
4897
|
y: t.y - d.y,
|
|
@@ -4901,11 +4901,11 @@ function Nd(A, t, e) {
|
|
|
4901
4901
|
}
|
|
4902
4902
|
return ve(n);
|
|
4903
4903
|
}
|
|
4904
|
-
function
|
|
4904
|
+
function f7(A, t) {
|
|
4905
4905
|
const e = ut(A);
|
|
4906
|
-
return e === t || !BA(e) || qt(e) ? !1 : CA(e).position === "fixed" ||
|
|
4906
|
+
return e === t || !BA(e) || qt(e) ? !1 : CA(e).position === "fixed" || f7(e, t);
|
|
4907
4907
|
}
|
|
4908
|
-
function
|
|
4908
|
+
function ls(A, t) {
|
|
4909
4909
|
const e = t.get(A);
|
|
4910
4910
|
if (e)
|
|
4911
4911
|
return e;
|
|
@@ -4914,18 +4914,18 @@ function ds(A, t) {
|
|
|
4914
4914
|
let u = r ? ut(A) : A;
|
|
4915
4915
|
for (; BA(u) && !qt(u); ) {
|
|
4916
4916
|
const s = CA(u), f = yn(u);
|
|
4917
|
-
!f && s.position === "fixed" && (d = null), (r ? !f && !d : !f && s.position === "static" && !!d &&
|
|
4917
|
+
!f && s.position === "fixed" && (d = null), (r ? !f && !d : !f && s.position === "static" && !!d && fs.has(d.position) || ht(u) && !f && f7(A, u)) ? n = n.filter((a) => a !== u) : d = s, u = ut(u);
|
|
4918
4918
|
}
|
|
4919
4919
|
return t.set(A, n), n;
|
|
4920
4920
|
}
|
|
4921
|
-
function
|
|
4921
|
+
function vs(A) {
|
|
4922
4922
|
let {
|
|
4923
4923
|
element: t,
|
|
4924
4924
|
boundary: e,
|
|
4925
4925
|
rootBoundary: n,
|
|
4926
4926
|
strategy: d
|
|
4927
4927
|
} = A;
|
|
4928
|
-
const u = [...e === "clippingAncestors" ? me(t) ? [] :
|
|
4928
|
+
const u = [...e === "clippingAncestors" ? me(t) ? [] : ls(t, this._c) : [].concat(e), n], s = u[0], f = u.reduce((l, a) => {
|
|
4929
4929
|
const z = Nd(t, a, d);
|
|
4930
4930
|
return l.top = PA(z.top, l.top), l.right = gt(z.right, l.right), l.bottom = gt(z.bottom, l.bottom), l.left = PA(z.left, l.left), l;
|
|
4931
4931
|
}, Nd(t, s, d));
|
|
@@ -4936,17 +4936,17 @@ function rs(A) {
|
|
|
4936
4936
|
y: f.top
|
|
4937
4937
|
};
|
|
4938
4938
|
}
|
|
4939
|
-
function
|
|
4939
|
+
function Os(A) {
|
|
4940
4940
|
const {
|
|
4941
4941
|
width: t,
|
|
4942
4942
|
height: e
|
|
4943
|
-
} =
|
|
4943
|
+
} = r7(A);
|
|
4944
4944
|
return {
|
|
4945
4945
|
width: t,
|
|
4946
4946
|
height: e
|
|
4947
4947
|
};
|
|
4948
4948
|
}
|
|
4949
|
-
function
|
|
4949
|
+
function zs(A, t, e) {
|
|
4950
4950
|
const n = JA(t), d = RA(t), r = e === "fixed", u = bt(A, !0, r, t);
|
|
4951
4951
|
let s = {
|
|
4952
4952
|
scrollLeft: 0,
|
|
@@ -4962,7 +4962,7 @@ function ss(A, t, e) {
|
|
|
4962
4962
|
f.x = v.x + t.clientLeft, f.y = v.y + t.clientTop;
|
|
4963
4963
|
} else d && l();
|
|
4964
4964
|
r && !n && d && l();
|
|
4965
|
-
const a = d && !n && !r ?
|
|
4965
|
+
const a = d && !n && !r ? s7(d, s) : kA(0), z = u.left + s.scrollLeft - f.x - a.x, o = u.top + s.scrollTop - f.y - a.y;
|
|
4966
4966
|
return {
|
|
4967
4967
|
x: z,
|
|
4968
4968
|
y: o,
|
|
@@ -4981,7 +4981,7 @@ function Cd(A, t) {
|
|
|
4981
4981
|
let e = A.offsetParent;
|
|
4982
4982
|
return RA(A) === e && (e = e.ownerDocument.body), e;
|
|
4983
4983
|
}
|
|
4984
|
-
function
|
|
4984
|
+
function a7(A, t) {
|
|
4985
4985
|
const e = LA(A);
|
|
4986
4986
|
if (me(A))
|
|
4987
4987
|
return e;
|
|
@@ -4995,14 +4995,14 @@ function n7(A, t) {
|
|
|
4995
4995
|
return e;
|
|
4996
4996
|
}
|
|
4997
4997
|
let n = Cd(A, t);
|
|
4998
|
-
for (; n &&
|
|
4998
|
+
for (; n && m1(n) && $e(n); )
|
|
4999
4999
|
n = Cd(n, t);
|
|
5000
|
-
return n && qt(n) && $e(n) && !yn(n) ? e : n ||
|
|
5000
|
+
return n && qt(n) && $e(n) && !yn(n) ? e : n || V1(A) || e;
|
|
5001
5001
|
}
|
|
5002
|
-
const
|
|
5003
|
-
const t = this.getOffsetParent ||
|
|
5002
|
+
const cs = async function(A) {
|
|
5003
|
+
const t = this.getOffsetParent || a7, e = this.getDimensions, n = await e(A.floating);
|
|
5004
5004
|
return {
|
|
5005
|
-
reference:
|
|
5005
|
+
reference: zs(A.reference, await t(A.floating), A.strategy),
|
|
5006
5006
|
floating: {
|
|
5007
5007
|
x: 0,
|
|
5008
5008
|
y: 0,
|
|
@@ -5011,25 +5011,25 @@ const fs = async function(A) {
|
|
|
5011
5011
|
}
|
|
5012
5012
|
};
|
|
5013
5013
|
};
|
|
5014
|
-
function
|
|
5014
|
+
function os(A) {
|
|
5015
5015
|
return CA(A).direction === "rtl";
|
|
5016
5016
|
}
|
|
5017
|
-
const
|
|
5018
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5017
|
+
const ws = {
|
|
5018
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: ds,
|
|
5019
5019
|
getDocumentElement: RA,
|
|
5020
|
-
getClippingRect:
|
|
5021
|
-
getOffsetParent:
|
|
5022
|
-
getElementRects:
|
|
5023
|
-
getClientRects:
|
|
5024
|
-
getDimensions:
|
|
5020
|
+
getClippingRect: vs,
|
|
5021
|
+
getOffsetParent: a7,
|
|
5022
|
+
getElementRects: cs,
|
|
5023
|
+
getClientRects: rs,
|
|
5024
|
+
getDimensions: Os,
|
|
5025
5025
|
getScale: Bt,
|
|
5026
5026
|
isElement: BA,
|
|
5027
|
-
isRTL:
|
|
5027
|
+
isRTL: os
|
|
5028
5028
|
};
|
|
5029
|
-
function
|
|
5029
|
+
function l7(A, t) {
|
|
5030
5030
|
return A.x === t.x && A.y === t.y && A.width === t.width && A.height === t.height;
|
|
5031
5031
|
}
|
|
5032
|
-
function
|
|
5032
|
+
function gs(A, t) {
|
|
5033
5033
|
let e = null, n;
|
|
5034
5034
|
const d = RA(A);
|
|
5035
5035
|
function r() {
|
|
@@ -5060,7 +5060,7 @@ function vs(A, t) {
|
|
|
5060
5060
|
u(!1, 1e-7);
|
|
5061
5061
|
}, 1e3);
|
|
5062
5062
|
}
|
|
5063
|
-
Z === 1 && !
|
|
5063
|
+
Z === 1 && !l7(l, A.getBoundingClientRect()) && u(), X = !1;
|
|
5064
5064
|
}
|
|
5065
5065
|
try {
|
|
5066
5066
|
e = new IntersectionObserver(B, {
|
|
@@ -5075,7 +5075,7 @@ function vs(A, t) {
|
|
|
5075
5075
|
}
|
|
5076
5076
|
return u(!0), r;
|
|
5077
5077
|
}
|
|
5078
|
-
function
|
|
5078
|
+
function bs(A, t, e, n) {
|
|
5079
5079
|
n === void 0 && (n = {});
|
|
5080
5080
|
const {
|
|
5081
5081
|
ancestorScroll: d = !0,
|
|
@@ -5089,7 +5089,7 @@ function Os(A, t, e, n) {
|
|
|
5089
5089
|
passive: !0
|
|
5090
5090
|
}), r && b.addEventListener("resize", e);
|
|
5091
5091
|
});
|
|
5092
|
-
const z = l && s ?
|
|
5092
|
+
const z = l && s ? gs(l, e) : null;
|
|
5093
5093
|
let o = -1, v = null;
|
|
5094
5094
|
u && (v = new ResizeObserver((b) => {
|
|
5095
5095
|
let [p] = b;
|
|
@@ -5102,7 +5102,7 @@ function Os(A, t, e, n) {
|
|
|
5102
5102
|
f && g();
|
|
5103
5103
|
function g() {
|
|
5104
5104
|
const b = bt(A);
|
|
5105
|
-
w && !
|
|
5105
|
+
w && !l7(w, b) && e(), w = b, c = requestAnimationFrame(g);
|
|
5106
5106
|
}
|
|
5107
5107
|
return e(), () => {
|
|
5108
5108
|
var b;
|
|
@@ -5111,21 +5111,21 @@ function Os(A, t, e, n) {
|
|
|
5111
5111
|
}), z == null || z(), (b = v) == null || b.disconnect(), v = null, f && cancelAnimationFrame(c);
|
|
5112
5112
|
};
|
|
5113
5113
|
}
|
|
5114
|
-
const _e = Le,
|
|
5114
|
+
const _e = Le, ps = _1, Ds = As, Xs = I1, Ps = ts, Bs = (A, t, e) => {
|
|
5115
5115
|
const n = /* @__PURE__ */ new Map(), d = {
|
|
5116
|
-
platform:
|
|
5116
|
+
platform: ws,
|
|
5117
5117
|
...e
|
|
5118
5118
|
}, r = {
|
|
5119
5119
|
...d.platform,
|
|
5120
5120
|
_c: n
|
|
5121
5121
|
};
|
|
5122
|
-
return
|
|
5122
|
+
return S1(A, t, {
|
|
5123
5123
|
...d,
|
|
5124
5124
|
platform: r
|
|
5125
5125
|
});
|
|
5126
5126
|
};
|
|
5127
|
-
var
|
|
5128
|
-
}, re =
|
|
5127
|
+
var qs = typeof document < "u", is = function() {
|
|
5128
|
+
}, re = qs ? pn : is;
|
|
5129
5129
|
function Oe(A, t) {
|
|
5130
5130
|
if (A === t)
|
|
5131
5131
|
return !0;
|
|
@@ -5156,11 +5156,11 @@ function Oe(A, t) {
|
|
|
5156
5156
|
}
|
|
5157
5157
|
return A !== A && t !== t;
|
|
5158
5158
|
}
|
|
5159
|
-
function
|
|
5159
|
+
function v7(A) {
|
|
5160
5160
|
return typeof window > "u" ? 1 : (A.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5161
5161
|
}
|
|
5162
5162
|
function yd(A, t) {
|
|
5163
|
-
const e =
|
|
5163
|
+
const e = v7(A);
|
|
5164
5164
|
return Math.round(t * e) / e;
|
|
5165
5165
|
}
|
|
5166
5166
|
function An(A) {
|
|
@@ -5169,7 +5169,7 @@ function An(A) {
|
|
|
5169
5169
|
t.current = A;
|
|
5170
5170
|
}), t;
|
|
5171
5171
|
}
|
|
5172
|
-
function
|
|
5172
|
+
function Hs(A) {
|
|
5173
5173
|
A === void 0 && (A = {});
|
|
5174
5174
|
const {
|
|
5175
5175
|
placement: t = "bottom",
|
|
@@ -5204,7 +5204,7 @@ function Ds(A) {
|
|
|
5204
5204
|
strategy: e,
|
|
5205
5205
|
middleware: o
|
|
5206
5206
|
};
|
|
5207
|
-
x.current && (G.platform = x.current),
|
|
5207
|
+
x.current && (G.platform = x.current), Bs(i.current, Z.current, G).then((q) => {
|
|
5208
5208
|
const y = {
|
|
5209
5209
|
...q,
|
|
5210
5210
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5254,7 +5254,7 @@ function Ds(A) {
|
|
|
5254
5254
|
return s ? {
|
|
5255
5255
|
...G,
|
|
5256
5256
|
transform: "translate(" + q + "px, " + y + "px)",
|
|
5257
|
-
...
|
|
5257
|
+
...v7(R.floating) >= 1.5 && {
|
|
5258
5258
|
willChange: "transform"
|
|
5259
5259
|
}
|
|
5260
5260
|
} : {
|
|
@@ -5271,27 +5271,27 @@ function Ds(A) {
|
|
|
5271
5271
|
floatingStyles: $
|
|
5272
5272
|
}), [a, M, _, R, $]);
|
|
5273
5273
|
}
|
|
5274
|
-
const
|
|
5275
|
-
...
|
|
5274
|
+
const O7 = (A, t) => ({
|
|
5275
|
+
...ps(A),
|
|
5276
5276
|
options: [A, t]
|
|
5277
|
-
}),
|
|
5278
|
-
...
|
|
5277
|
+
}), Ms = (A, t) => ({
|
|
5278
|
+
...Ds(A),
|
|
5279
5279
|
options: [A, t]
|
|
5280
|
-
}),
|
|
5281
|
-
...
|
|
5280
|
+
}), Ws = (A, t) => ({
|
|
5281
|
+
...Xs(A),
|
|
5282
5282
|
options: [A, t]
|
|
5283
|
-
}),
|
|
5284
|
-
...
|
|
5283
|
+
}), Zs = (A, t) => ({
|
|
5284
|
+
...Ps(A),
|
|
5285
5285
|
options: [A, t]
|
|
5286
|
-
}),
|
|
5286
|
+
}), z7 = {
|
|
5287
5287
|
...V
|
|
5288
|
-
},
|
|
5289
|
-
function
|
|
5288
|
+
}, ms = z7.useInsertionEffect, Qs = ms || ((A) => A());
|
|
5289
|
+
function c7(A) {
|
|
5290
5290
|
const t = V.useRef(() => {
|
|
5291
5291
|
if (process.env.NODE_ENV !== "production")
|
|
5292
5292
|
throw new Error("Cannot call an event handler while rendering.");
|
|
5293
5293
|
});
|
|
5294
|
-
return
|
|
5294
|
+
return Qs(() => {
|
|
5295
5295
|
t.current = A;
|
|
5296
5296
|
}), V.useCallback(function() {
|
|
5297
5297
|
for (var e = arguments.length, n = new Array(e), d = 0; d < e; d++)
|
|
@@ -5300,13 +5300,13 @@ function f7(A) {
|
|
|
5300
5300
|
}, []);
|
|
5301
5301
|
}
|
|
5302
5302
|
var wn = typeof document < "u" ? pn : eA;
|
|
5303
|
-
let jd = !1,
|
|
5303
|
+
let jd = !1, Ls = 0;
|
|
5304
5304
|
const Ud = () => (
|
|
5305
5305
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
5306
5306
|
// on <React 18
|
|
5307
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
5307
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Ls++
|
|
5308
5308
|
);
|
|
5309
|
-
function
|
|
5309
|
+
function Ts() {
|
|
5310
5310
|
const [A, t] = V.useState(() => jd ? Ud() : void 0);
|
|
5311
5311
|
return wn(() => {
|
|
5312
5312
|
A == null && t(Ud());
|
|
@@ -5314,10 +5314,10 @@ function Ms() {
|
|
|
5314
5314
|
jd = !0;
|
|
5315
5315
|
}, []), A;
|
|
5316
5316
|
}
|
|
5317
|
-
const
|
|
5317
|
+
const xs = z7.useId, Vs = xs || Ts;
|
|
5318
5318
|
let Gt;
|
|
5319
5319
|
process.env.NODE_ENV !== "production" && (Gt = /* @__PURE__ */ new Set());
|
|
5320
|
-
function
|
|
5320
|
+
function Ns() {
|
|
5321
5321
|
for (var A, t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
5322
5322
|
e[n] = arguments[n];
|
|
5323
5323
|
const d = "Floating UI: " + e.join(" ");
|
|
@@ -5326,7 +5326,7 @@ function ms() {
|
|
|
5326
5326
|
(r = Gt) == null || r.add(d), console.warn(d);
|
|
5327
5327
|
}
|
|
5328
5328
|
}
|
|
5329
|
-
function
|
|
5329
|
+
function Cs() {
|
|
5330
5330
|
for (var A, t = arguments.length, e = new Array(t), n = 0; n < t; n++)
|
|
5331
5331
|
e[n] = arguments[n];
|
|
5332
5332
|
const d = "Floating UI: " + e.join(" ");
|
|
@@ -5335,7 +5335,7 @@ function Qs() {
|
|
|
5335
5335
|
(r = Gt) == null || r.add(d), console.error(d);
|
|
5336
5336
|
}
|
|
5337
5337
|
}
|
|
5338
|
-
function
|
|
5338
|
+
function ys() {
|
|
5339
5339
|
const A = /* @__PURE__ */ new Map();
|
|
5340
5340
|
return {
|
|
5341
5341
|
emit(t, e) {
|
|
@@ -5351,21 +5351,21 @@ function Ls() {
|
|
|
5351
5351
|
}
|
|
5352
5352
|
};
|
|
5353
5353
|
}
|
|
5354
|
-
const
|
|
5354
|
+
const js = /* @__PURE__ */ V.createContext(null), Us = /* @__PURE__ */ V.createContext(null), Gs = () => {
|
|
5355
5355
|
var A;
|
|
5356
|
-
return ((A = V.useContext(
|
|
5357
|
-
},
|
|
5358
|
-
function
|
|
5356
|
+
return ((A = V.useContext(js)) == null ? void 0 : A.id) || null;
|
|
5357
|
+
}, Ys = () => V.useContext(Us), ks = "data-floating-ui-focusable";
|
|
5358
|
+
function Ks(A) {
|
|
5359
5359
|
const {
|
|
5360
5360
|
open: t = !1,
|
|
5361
5361
|
onOpenChange: e,
|
|
5362
5362
|
elements: n
|
|
5363
|
-
} = A, d =
|
|
5363
|
+
} = A, d = Vs(), r = V.useRef({}), [u] = V.useState(() => ys()), s = Gs() != null;
|
|
5364
5364
|
if (process.env.NODE_ENV !== "production") {
|
|
5365
5365
|
const v = n.reference;
|
|
5366
|
-
v && !BA(v) &&
|
|
5366
|
+
v && !BA(v) && Cs("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
5367
5367
|
}
|
|
5368
|
-
const [f, l] = V.useState(n.reference), a =
|
|
5368
|
+
const [f, l] = V.useState(n.reference), a = c7((v, c, w) => {
|
|
5369
5369
|
r.current.openEvent = v ? c : void 0, u.emit("openchange", {
|
|
5370
5370
|
open: v,
|
|
5371
5371
|
event: c,
|
|
@@ -5389,22 +5389,22 @@ function ys(A) {
|
|
|
5389
5389
|
refs: z
|
|
5390
5390
|
}), [t, a, o, u, d, z]);
|
|
5391
5391
|
}
|
|
5392
|
-
function
|
|
5392
|
+
function Es(A) {
|
|
5393
5393
|
A === void 0 && (A = {});
|
|
5394
5394
|
const {
|
|
5395
5395
|
nodeId: t
|
|
5396
|
-
} = A, e =
|
|
5396
|
+
} = A, e = Ks({
|
|
5397
5397
|
...A,
|
|
5398
5398
|
elements: {
|
|
5399
5399
|
reference: null,
|
|
5400
5400
|
floating: null,
|
|
5401
5401
|
...A.elements
|
|
5402
5402
|
}
|
|
5403
|
-
}), n = A.rootContext || e, d = n.elements, [r, u] = V.useState(null), [s, f] = V.useState(null), a = (d == null ? void 0 : d.domReference) || r, z = V.useRef(null), o =
|
|
5403
|
+
}), n = A.rootContext || e, d = n.elements, [r, u] = V.useState(null), [s, f] = V.useState(null), a = (d == null ? void 0 : d.domReference) || r, z = V.useRef(null), o = Ys();
|
|
5404
5404
|
wn(() => {
|
|
5405
5405
|
a && (z.current = a);
|
|
5406
5406
|
}, [a]);
|
|
5407
|
-
const v =
|
|
5407
|
+
const v = Hs({
|
|
5408
5408
|
...A,
|
|
5409
5409
|
elements: {
|
|
5410
5410
|
...d,
|
|
@@ -5464,7 +5464,7 @@ function tn(A, t, e) {
|
|
|
5464
5464
|
return {
|
|
5465
5465
|
...e === "floating" && {
|
|
5466
5466
|
tabIndex: -1,
|
|
5467
|
-
[
|
|
5467
|
+
[ks]: ""
|
|
5468
5468
|
},
|
|
5469
5469
|
...r,
|
|
5470
5470
|
...t.map((u) => {
|
|
@@ -5487,7 +5487,7 @@ function tn(A, t, e) {
|
|
|
5487
5487
|
}), u), {})
|
|
5488
5488
|
};
|
|
5489
5489
|
}
|
|
5490
|
-
function
|
|
5490
|
+
function Js(A) {
|
|
5491
5491
|
A === void 0 && (A = []);
|
|
5492
5492
|
const t = A.map((s) => s == null ? void 0 : s.reference), e = A.map((s) => s == null ? void 0 : s.floating), n = A.map((s) => s == null ? void 0 : s.item), d = V.useCallback(
|
|
5493
5493
|
(s) => tn(s, A, "reference"),
|
|
@@ -5520,7 +5520,7 @@ function kd(A, t) {
|
|
|
5520
5520
|
}
|
|
5521
5521
|
};
|
|
5522
5522
|
}
|
|
5523
|
-
const
|
|
5523
|
+
const Fs = (A) => ({
|
|
5524
5524
|
name: "inner",
|
|
5525
5525
|
options: A,
|
|
5526
5526
|
async fn(t) {
|
|
@@ -5540,11 +5540,11 @@ const Gs = (A) => ({
|
|
|
5540
5540
|
floating: o
|
|
5541
5541
|
}
|
|
5542
5542
|
} = t, v = e.current[u], c = (l == null ? void 0 : l.current) || o, w = o.clientTop || c.clientTop, g = o.clientTop !== 0, b = c.clientTop !== 0, p = o === c;
|
|
5543
|
-
if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") ||
|
|
5543
|
+
if (process.env.NODE_ENV !== "production" && (t.placement.startsWith("bottom") || Ns('`placement` side must be "bottom" when using the `inner`', "middleware.")), !v)
|
|
5544
5544
|
return {};
|
|
5545
5545
|
const D = {
|
|
5546
5546
|
...t,
|
|
5547
|
-
...await
|
|
5547
|
+
...await O7(-v.offsetTop - o.clientTop - z.reference.height / 2 - v.offsetHeight / 2 - r).fn(t)
|
|
5548
5548
|
}, X = await _e(kd(D, c.scrollHeight + w + o.clientTop), a), B = await _e(D, {
|
|
5549
5549
|
...a,
|
|
5550
5550
|
elementContext: "reference"
|
|
@@ -5561,7 +5561,7 @@ const Gs = (A) => ({
|
|
|
5561
5561
|
};
|
|
5562
5562
|
}
|
|
5563
5563
|
});
|
|
5564
|
-
function
|
|
5564
|
+
function Rs(A, t) {
|
|
5565
5565
|
const {
|
|
5566
5566
|
open: e,
|
|
5567
5567
|
elements: n
|
|
@@ -5570,7 +5570,7 @@ function Ys(A, t) {
|
|
|
5570
5570
|
overflowRef: r,
|
|
5571
5571
|
scrollRef: u,
|
|
5572
5572
|
onChange: s
|
|
5573
|
-
} = t, f =
|
|
5573
|
+
} = t, f = c7(s), l = V.useRef(!1), a = V.useRef(null), z = V.useRef(null);
|
|
5574
5574
|
V.useEffect(() => {
|
|
5575
5575
|
if (!d) return;
|
|
5576
5576
|
function v(w) {
|
|
@@ -5579,7 +5579,7 @@ function Ys(A, t) {
|
|
|
5579
5579
|
const g = w.deltaY, b = r.current.top >= -0.5, p = r.current.bottom >= -0.5, D = c.scrollHeight - c.clientHeight, X = g < 0 ? -1 : 1, B = g < 0 ? "max" : "min";
|
|
5580
5580
|
c.scrollHeight <= c.clientHeight || (!b && g > 0 || !p && g < 0 ? (w.preventDefault(), ue.flushSync(() => {
|
|
5581
5581
|
f((i) => i + Math[B](g, D * X));
|
|
5582
|
-
})) : /firefox/i.test(
|
|
5582
|
+
})) : /firefox/i.test(C1()) && (c.scrollTop += g));
|
|
5583
5583
|
}
|
|
5584
5584
|
const c = (u == null ? void 0 : u.current) || n.floating;
|
|
5585
5585
|
if (e && c)
|
|
@@ -5624,20 +5624,20 @@ let Qt = rA({ styles: void 0, setReference: () => {
|
|
|
5624
5624
|
Qt.displayName = "FloatingContext";
|
|
5625
5625
|
let Gn = rA(null);
|
|
5626
5626
|
Gn.displayName = "PlacementContext";
|
|
5627
|
-
function
|
|
5627
|
+
function o7(A) {
|
|
5628
5628
|
return L(() => A ? typeof A == "string" ? { to: A } : A : null, [A]);
|
|
5629
5629
|
}
|
|
5630
|
-
function
|
|
5630
|
+
function w7() {
|
|
5631
5631
|
return h(Qt).setReference;
|
|
5632
5632
|
}
|
|
5633
|
-
function
|
|
5633
|
+
function Ss() {
|
|
5634
5634
|
return h(Qt).getReferenceProps;
|
|
5635
5635
|
}
|
|
5636
|
-
function
|
|
5636
|
+
function g7() {
|
|
5637
5637
|
let { getFloatingProps: A, slot: t } = h(Qt);
|
|
5638
5638
|
return AA((...e) => Object.assign({}, A(...e), { "data-anchor": t.anchor }), [A, t]);
|
|
5639
5639
|
}
|
|
5640
|
-
function
|
|
5640
|
+
function b7(A = null) {
|
|
5641
5641
|
A === !1 && (A = null), typeof A == "string" && (A = { to: A });
|
|
5642
5642
|
let t = h(Gn), e = L(() => A, [JSON.stringify(A, (d, r) => {
|
|
5643
5643
|
var u;
|
|
@@ -5650,14 +5650,14 @@ function O7(A = null) {
|
|
|
5650
5650
|
return L(() => [n.setFloating, A ? n.styles : {}], [n.setFloating, A, n.styles]);
|
|
5651
5651
|
}
|
|
5652
5652
|
let Kd = 4;
|
|
5653
|
-
function
|
|
5653
|
+
function p7({ children: A, enabled: t = !0 }) {
|
|
5654
5654
|
let [e, n] = K(null), [d, r] = K(0), u = C(null), [s, f] = K(null);
|
|
5655
|
-
|
|
5656
|
-
let l = t && e !== null && s !== null, { to: a = "bottom", gap: z = 0, offset: o = 0, padding: v = 0, inner: c } =
|
|
5655
|
+
Is(s);
|
|
5656
|
+
let l = t && e !== null && s !== null, { to: a = "bottom", gap: z = 0, offset: o = 0, padding: v = 0, inner: c } = hs(e, s), [w, g = "center"] = a.split(" ");
|
|
5657
5657
|
tA(() => {
|
|
5658
5658
|
l && r(0);
|
|
5659
5659
|
}, [l]);
|
|
5660
|
-
let { refs: b, floatingStyles: p, context: D } =
|
|
5660
|
+
let { refs: b, floatingStyles: p, context: D } = Es({ open: l, placement: w === "selection" ? g === "center" ? "bottom" : `bottom-${g}` : g === "center" ? `${w}` : `${w}-${g}`, strategy: "absolute", transform: !1, middleware: [O7({ mainAxis: w === "selection" ? 0 : z, crossAxis: o }), Ms({ padding: v }), w !== "selection" && Ws({ padding: v }), w === "selection" && c ? Fs({ ...c, padding: v, overflowRef: u, offset: d, minItemsVisible: Kd, referenceOverflowThreshold: v, onFallbackChange(x) {
|
|
5661
5661
|
var Q, M;
|
|
5662
5662
|
if (!x) return;
|
|
5663
5663
|
let m = D.elements.floating;
|
|
@@ -5675,16 +5675,16 @@ function z7({ children: A, enabled: t = !0 }) {
|
|
|
5675
5675
|
let y = $ * R - G + _;
|
|
5676
5676
|
return q >= y ? q : y;
|
|
5677
5677
|
});
|
|
5678
|
-
} }) : null,
|
|
5678
|
+
} }) : null, Zs({ padding: v, apply({ availableWidth: x, availableHeight: Q, elements: M }) {
|
|
5679
5679
|
Object.assign(M.floating.style, { overflow: "auto", maxWidth: `${x}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${Q}px)` });
|
|
5680
|
-
} })].filter(Boolean), whileElementsMounted:
|
|
5680
|
+
} })].filter(Boolean), whileElementsMounted: bs }), [X = w, B = g] = D.placement.split("-");
|
|
5681
5681
|
w === "selection" && (X = "selection");
|
|
5682
|
-
let i = L(() => ({ anchor: [X, B].filter(Boolean).join(" ") }), [X, B]), Z =
|
|
5682
|
+
let i = L(() => ({ anchor: [X, B].filter(Boolean).join(" ") }), [X, B]), Z = Rs(D, { overflowRef: u, onChange: r }), { getReferenceProps: k, getFloatingProps: U } = Js([Z]), W = H((x) => {
|
|
5683
5683
|
f(x), b.setFloating(x);
|
|
5684
5684
|
});
|
|
5685
5685
|
return V.createElement(Gn.Provider, { value: n }, V.createElement(Qt.Provider, { value: { setFloating: W, setReference: b.setReference, styles: p, getReferenceProps: k, getFloatingProps: U, slot: i } }, A));
|
|
5686
5686
|
}
|
|
5687
|
-
function
|
|
5687
|
+
function Is(A) {
|
|
5688
5688
|
tA(() => {
|
|
5689
5689
|
if (!A) return;
|
|
5690
5690
|
let t = new MutationObserver(() => {
|
|
@@ -5698,7 +5698,7 @@ function Ks(A) {
|
|
|
5698
5698
|
};
|
|
5699
5699
|
}, [A]);
|
|
5700
5700
|
}
|
|
5701
|
-
function
|
|
5701
|
+
function hs(A, t) {
|
|
5702
5702
|
var e, n, d;
|
|
5703
5703
|
let r = en((e = A == null ? void 0 : A.gap) != null ? e : "var(--anchor-gap, 0)", t), u = en((n = A == null ? void 0 : A.offset) != null ? n : "var(--anchor-offset, 0)", t), s = en((d = A == null ? void 0 : A.padding) != null ? d : "var(--anchor-padding, 0)", t);
|
|
5704
5704
|
return { ...A, gap: r, offset: u, padding: s };
|
|
@@ -5711,7 +5711,7 @@ function en(A, t, e = void 0) {
|
|
|
5711
5711
|
if (!l) return [e, null];
|
|
5712
5712
|
let a = Ed(f, l);
|
|
5713
5713
|
return [a, (z) => {
|
|
5714
|
-
let o =
|
|
5714
|
+
let o = D7(f);
|
|
5715
5715
|
{
|
|
5716
5716
|
let v = o.map((c) => window.getComputedStyle(l).getPropertyValue(c));
|
|
5717
5717
|
n.requestAnimationFrame(function c() {
|
|
@@ -5739,13 +5739,13 @@ function en(A, t, e = void 0) {
|
|
|
5739
5739
|
if (s(f), !!l) return l(s);
|
|
5740
5740
|
}, [A, t]), u;
|
|
5741
5741
|
}
|
|
5742
|
-
function
|
|
5742
|
+
function D7(A) {
|
|
5743
5743
|
let t = /var\((.*)\)/.exec(A);
|
|
5744
5744
|
if (t) {
|
|
5745
5745
|
let e = t[1].indexOf(",");
|
|
5746
5746
|
if (e === -1) return [t[1]];
|
|
5747
5747
|
let n = t[1].slice(0, e).trim(), d = t[1].slice(e + 1).trim();
|
|
5748
|
-
return d ? [n, ...
|
|
5748
|
+
return d ? [n, ...D7(d)] : [n];
|
|
5749
5749
|
}
|
|
5750
5750
|
return [];
|
|
5751
5751
|
}
|
|
@@ -5767,14 +5767,14 @@ function Ve({ value: A, children: t }) {
|
|
|
5767
5767
|
function Yn({ children: A }) {
|
|
5768
5768
|
return P.createElement(xe.Provider, { value: null }, A);
|
|
5769
5769
|
}
|
|
5770
|
-
function
|
|
5770
|
+
function $s(A) {
|
|
5771
5771
|
function t() {
|
|
5772
5772
|
document.readyState !== "loading" && (A(), document.removeEventListener("DOMContentLoaded", t));
|
|
5773
5773
|
}
|
|
5774
5774
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", t), t());
|
|
5775
5775
|
}
|
|
5776
5776
|
let dt = [];
|
|
5777
|
-
|
|
5777
|
+
$s(() => {
|
|
5778
5778
|
function A(t) {
|
|
5779
5779
|
if (!mA(t.target) || t.target === document.body || dt[0] === t.target) return;
|
|
5780
5780
|
let e = t.target;
|
|
@@ -5782,7 +5782,7 @@ Js(() => {
|
|
|
5782
5782
|
}
|
|
5783
5783
|
window.addEventListener("click", A, { capture: !0 }), window.addEventListener("mousedown", A, { capture: !0 }), window.addEventListener("focus", A, { capture: !0 }), document.body.addEventListener("click", A, { capture: !0 }), document.body.addEventListener("mousedown", A, { capture: !0 }), document.body.addEventListener("focus", A, { capture: !0 });
|
|
5784
5784
|
});
|
|
5785
|
-
function
|
|
5785
|
+
function _s(A) {
|
|
5786
5786
|
throw new Error("Unexpected object: " + A);
|
|
5787
5787
|
}
|
|
5788
5788
|
var OA = ((A) => (A[A.First = 0] = "First", A[A.Previous = 1] = "Previous", A[A.Next = 2] = "Next", A[A.Last = 3] = "Last", A[A.Specific = 4] = "Specific", A[A.Nothing = 5] = "Nothing", A))(OA || {});
|
|
@@ -5815,10 +5815,10 @@ function de(A, t) {
|
|
|
5815
5815
|
case 5:
|
|
5816
5816
|
return null;
|
|
5817
5817
|
default:
|
|
5818
|
-
|
|
5818
|
+
_s(A);
|
|
5819
5819
|
}
|
|
5820
5820
|
}
|
|
5821
|
-
var
|
|
5821
|
+
var X7 = ((A) => (A[A.Left = 0] = "Left", A[A.Right = 2] = "Right", A))(X7 || {});
|
|
5822
5822
|
function Ne(A) {
|
|
5823
5823
|
let t = H(A), e = C(!1);
|
|
5824
5824
|
eA(() => (e.current = !1, () => {
|
|
@@ -5827,26 +5827,26 @@ function Ne(A) {
|
|
|
5827
5827
|
});
|
|
5828
5828
|
}), [t]);
|
|
5829
5829
|
}
|
|
5830
|
-
function
|
|
5830
|
+
function Af() {
|
|
5831
5831
|
let A = typeof document > "u";
|
|
5832
5832
|
return "useSyncExternalStore" in V ? ((t) => t.useSyncExternalStore)(V)(() => () => {
|
|
5833
5833
|
}, () => !1, () => !A) : !1;
|
|
5834
5834
|
}
|
|
5835
5835
|
function _t() {
|
|
5836
|
-
let A =
|
|
5836
|
+
let A = Af(), [t, e] = V.useState(GA.isHandoffComplete);
|
|
5837
5837
|
return t && GA.isHandoffComplete === !1 && e(!1), V.useEffect(() => {
|
|
5838
5838
|
t !== !0 && e(!0);
|
|
5839
5839
|
}, [t]), V.useEffect(() => GA.handoff(), []), A ? !1 : t;
|
|
5840
5840
|
}
|
|
5841
|
-
let
|
|
5842
|
-
function
|
|
5843
|
-
return h(
|
|
5841
|
+
let P7 = rA(!1);
|
|
5842
|
+
function tf() {
|
|
5843
|
+
return h(P7);
|
|
5844
5844
|
}
|
|
5845
5845
|
function Jd(A) {
|
|
5846
|
-
return P.createElement(
|
|
5846
|
+
return P.createElement(P7.Provider, { value: A.force }, A.children);
|
|
5847
5847
|
}
|
|
5848
|
-
function
|
|
5849
|
-
let t =
|
|
5848
|
+
function ef(A) {
|
|
5849
|
+
let t = tf(), e = h(q7), [n, d] = K(() => {
|
|
5850
5850
|
var r;
|
|
5851
5851
|
if (!t && e !== null) return (r = e.current) != null ? r : null;
|
|
5852
5852
|
if (GA.isServer) return null;
|
|
@@ -5862,10 +5862,10 @@ function Is(A) {
|
|
|
5862
5862
|
t || e !== null && d(e.current);
|
|
5863
5863
|
}, [e, d, t]), n;
|
|
5864
5864
|
}
|
|
5865
|
-
let
|
|
5865
|
+
let B7 = qA, nf = E(function(A, t) {
|
|
5866
5866
|
let { ownerDocument: e = null, ...n } = A, d = C(null), r = nA(Wn((v) => {
|
|
5867
5867
|
d.current = v;
|
|
5868
|
-
}), t), u = EA(d), s = e ?? u, f =
|
|
5868
|
+
}), t), u = EA(d), s = e ?? u, f = ef(s), [l] = K(() => {
|
|
5869
5869
|
var v;
|
|
5870
5870
|
return GA.isServer ? null : (v = s == null ? void 0 : s.createElement("div")) != null ? v : null;
|
|
5871
5871
|
}), a = h(gn), z = _t();
|
|
@@ -5878,19 +5878,19 @@ let g7 = qA, hs = E(function(A, t) {
|
|
|
5878
5878
|
!f || !l || (Mn(l) && f.contains(l) && f.removeChild(l), f.childNodes.length <= 0 && ((v = f.parentElement) == null || v.removeChild(f)));
|
|
5879
5879
|
});
|
|
5880
5880
|
let o = I();
|
|
5881
|
-
return z ? !f || !l ? null :
|
|
5881
|
+
return z ? !f || !l ? null : Ou(o({ ourProps: { ref: r }, theirProps: n, slot: {}, defaultTag: B7, name: "Portal" }), l) : null;
|
|
5882
5882
|
});
|
|
5883
|
-
function
|
|
5883
|
+
function df(A, t) {
|
|
5884
5884
|
let e = nA(t), { enabled: n = !0, ownerDocument: d, ...r } = A, u = I();
|
|
5885
|
-
return n ? P.createElement(
|
|
5885
|
+
return n ? P.createElement(nf, { ...r, ownerDocument: d, ref: e }) : u({ ourProps: { ref: e }, theirProps: r, slot: {}, defaultTag: B7, name: "Portal" });
|
|
5886
5886
|
}
|
|
5887
|
-
let
|
|
5888
|
-
function
|
|
5887
|
+
let rf = qA, q7 = rA(null);
|
|
5888
|
+
function uf(A, t) {
|
|
5889
5889
|
let { target: e, ...n } = A, d = { ref: nA(t) }, r = I();
|
|
5890
|
-
return P.createElement(
|
|
5890
|
+
return P.createElement(q7.Provider, { value: e }, r({ ourProps: d, theirProps: n, defaultTag: rf, name: "Popover.Group" }));
|
|
5891
5891
|
}
|
|
5892
5892
|
let gn = rA(null);
|
|
5893
|
-
function
|
|
5893
|
+
function i7() {
|
|
5894
5894
|
let A = h(gn), t = C([]), e = H((r) => (t.current.push(r), A && A.register(r), () => n(r))), n = H((r) => {
|
|
5895
5895
|
let u = t.current.indexOf(r);
|
|
5896
5896
|
u !== -1 && t.current.splice(u, 1), A && A.unregister(r);
|
|
@@ -5899,14 +5899,14 @@ function p7() {
|
|
|
5899
5899
|
return P.createElement(gn.Provider, { value: d }, r);
|
|
5900
5900
|
}, [d])];
|
|
5901
5901
|
}
|
|
5902
|
-
let
|
|
5903
|
-
function
|
|
5902
|
+
let sf = E(df), H7 = E(uf), kn = Object.assign(sf, { Group: H7 });
|
|
5903
|
+
function ff(A, t = typeof document < "u" ? document.defaultView : null, e) {
|
|
5904
5904
|
let n = Ft(A, "escape");
|
|
5905
5905
|
Vn(t, "keydown", (d) => {
|
|
5906
5906
|
n && (d.defaultPrevented || d.key === F.Escape && e(d));
|
|
5907
5907
|
});
|
|
5908
5908
|
}
|
|
5909
|
-
function
|
|
5909
|
+
function af() {
|
|
5910
5910
|
var A;
|
|
5911
5911
|
let [t] = K(() => typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia("(pointer: coarse)") : null), [e, n] = K((A = t == null ? void 0 : t.matches) != null ? A : !1);
|
|
5912
5912
|
return tA(() => {
|
|
@@ -5917,7 +5917,7 @@ function nf() {
|
|
|
5917
5917
|
return t.addEventListener("change", d), () => t.removeEventListener("change", d);
|
|
5918
5918
|
}, [t]), e;
|
|
5919
5919
|
}
|
|
5920
|
-
function
|
|
5920
|
+
function M7({ defaultContainers: A = [], portals: t, mainTreeNode: e } = {}) {
|
|
5921
5921
|
let n = EA(e), d = H(() => {
|
|
5922
5922
|
var r, u;
|
|
5923
5923
|
let s = [];
|
|
@@ -5928,10 +5928,10 @@ function X7({ defaultContainers: A = [], portals: t, mainTreeNode: e } = {}) {
|
|
|
5928
5928
|
});
|
|
5929
5929
|
return { resolveContainers: d, contains: H((r) => d().some((u) => u.contains(r))) };
|
|
5930
5930
|
}
|
|
5931
|
-
let
|
|
5931
|
+
let W7 = rA(null);
|
|
5932
5932
|
function ze({ children: A, node: t }) {
|
|
5933
5933
|
let [e, n] = K(null), d = Kn(t ?? e);
|
|
5934
|
-
return P.createElement(
|
|
5934
|
+
return P.createElement(W7.Provider, { value: d }, A, d === null && P.createElement(At, { features: _A.Hidden, ref: (r) => {
|
|
5935
5935
|
var u, s;
|
|
5936
5936
|
if (r) {
|
|
5937
5937
|
for (let f of (s = (u = FA(r)) == null ? void 0 : u.querySelectorAll("html > *, body > *")) != null ? s : []) if (f !== document.body && f !== document.head && hA(f) && f != null && f.contains(r)) {
|
|
@@ -5943,7 +5943,7 @@ function ze({ children: A, node: t }) {
|
|
|
5943
5943
|
}
|
|
5944
5944
|
function Kn(A = null) {
|
|
5945
5945
|
var t;
|
|
5946
|
-
return (t = h(
|
|
5946
|
+
return (t = h(W7)) != null ? t : A;
|
|
5947
5947
|
}
|
|
5948
5948
|
function Ce() {
|
|
5949
5949
|
let A = C(!1);
|
|
@@ -5954,26 +5954,26 @@ function Ce() {
|
|
|
5954
5954
|
var QA = ((A) => (A[A.Forwards = 0] = "Forwards", A[A.Backwards = 1] = "Backwards", A))(QA || {});
|
|
5955
5955
|
function En() {
|
|
5956
5956
|
let A = C(0);
|
|
5957
|
-
return
|
|
5957
|
+
return _r(!0, "keydown", (t) => {
|
|
5958
5958
|
t.key === "Tab" && (A.current = t.shiftKey ? 1 : 0);
|
|
5959
5959
|
}, !0), A;
|
|
5960
5960
|
}
|
|
5961
|
-
function
|
|
5961
|
+
function Z7(A) {
|
|
5962
5962
|
if (!A) return /* @__PURE__ */ new Set();
|
|
5963
5963
|
if (typeof A == "function") return new Set(A());
|
|
5964
5964
|
let t = /* @__PURE__ */ new Set();
|
|
5965
5965
|
for (let e of A.current) hA(e.current) && t.add(e.current);
|
|
5966
5966
|
return t;
|
|
5967
5967
|
}
|
|
5968
|
-
let
|
|
5968
|
+
let lf = "div";
|
|
5969
5969
|
var Ot = ((A) => (A[A.None = 0] = "None", A[A.InitialFocus = 1] = "InitialFocus", A[A.TabLock = 2] = "TabLock", A[A.FocusLock = 4] = "FocusLock", A[A.RestoreFocus = 8] = "RestoreFocus", A[A.AutoFocus = 16] = "AutoFocus", A))(Ot || {});
|
|
5970
|
-
function
|
|
5970
|
+
function vf(A, t) {
|
|
5971
5971
|
let e = C(null), n = nA(e, t), { initialFocus: d, initialFocusFallback: r, containers: u, features: s = 15, ...f } = A;
|
|
5972
5972
|
_t() || (s = 0);
|
|
5973
5973
|
let l = EA(e);
|
|
5974
|
-
|
|
5975
|
-
let a =
|
|
5976
|
-
|
|
5974
|
+
of(s, { ownerDocument: l });
|
|
5975
|
+
let a = wf(s, { ownerDocument: l, container: e, initialFocus: d, initialFocusFallback: r });
|
|
5976
|
+
gf(s, { ownerDocument: l, container: e, containers: u, previousActiveElement: a });
|
|
5977
5977
|
let z = En(), o = H((p) => {
|
|
5978
5978
|
if (!XA(e.current)) return;
|
|
5979
5979
|
let D = e.current;
|
|
@@ -5990,15 +5990,15 @@ function rf(A, t) {
|
|
|
5990
5990
|
}));
|
|
5991
5991
|
}, onBlur(p) {
|
|
5992
5992
|
if (!(s & 4)) return;
|
|
5993
|
-
let D =
|
|
5993
|
+
let D = Z7(u);
|
|
5994
5994
|
XA(e.current) && D.add(e.current);
|
|
5995
5995
|
let X = p.relatedTarget;
|
|
5996
|
-
mA(X) && X.dataset.headlessuiFocusGuard !== "true" && (
|
|
5996
|
+
mA(X) && X.dataset.headlessuiFocusGuard !== "true" && (m7(D, X) || (w.current ? oA(e.current, aA(z.current, { [QA.Forwards]: () => dA.Next, [QA.Backwards]: () => dA.Previous }) | dA.WrapAround, { relativeTo: p.target }) : mA(p.target) && YA(p.target)));
|
|
5997
5997
|
} }, b = I();
|
|
5998
|
-
return P.createElement(P.Fragment, null, v && P.createElement(At, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: o, features: _A.Focusable }), b({ ourProps: g, theirProps: f, defaultTag:
|
|
5998
|
+
return P.createElement(P.Fragment, null, v && P.createElement(At, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: o, features: _A.Focusable }), b({ ourProps: g, theirProps: f, defaultTag: lf, name: "FocusTrap" }), v && P.createElement(At, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: o, features: _A.Focusable }));
|
|
5999
5999
|
}
|
|
6000
|
-
let
|
|
6001
|
-
function
|
|
6000
|
+
let Of = E(vf), zf = Object.assign(Of, { features: Ot });
|
|
6001
|
+
function cf(A = !0) {
|
|
6002
6002
|
let t = C(dt.slice());
|
|
6003
6003
|
return Cn(([e], [n]) => {
|
|
6004
6004
|
n === !0 && e === !1 && Kt(() => {
|
|
@@ -6009,15 +6009,15 @@ function ff(A = !0) {
|
|
|
6009
6009
|
return (e = t.current.find((n) => n != null && n.isConnected)) != null ? e : null;
|
|
6010
6010
|
});
|
|
6011
6011
|
}
|
|
6012
|
-
function
|
|
6013
|
-
let e = !!(A & 8), n =
|
|
6012
|
+
function of(A, { ownerDocument: t }) {
|
|
6013
|
+
let e = !!(A & 8), n = cf(e);
|
|
6014
6014
|
Cn(() => {
|
|
6015
6015
|
e || (t == null ? void 0 : t.activeElement) === (t == null ? void 0 : t.body) && YA(n());
|
|
6016
6016
|
}, [e]), Ne(() => {
|
|
6017
6017
|
e && YA(n());
|
|
6018
6018
|
});
|
|
6019
6019
|
}
|
|
6020
|
-
function
|
|
6020
|
+
function wf(A, { ownerDocument: t, container: e, initialFocus: n, initialFocusFallback: d }) {
|
|
6021
6021
|
let r = C(null), u = Ft(!!(A & 1), "focus-trap#initial-focus"), s = Ce();
|
|
6022
6022
|
return Cn(() => {
|
|
6023
6023
|
if (A === 0) return;
|
|
@@ -6050,35 +6050,35 @@ function lf(A, { ownerDocument: t, container: e, initialFocus: n, initialFocusFa
|
|
|
6050
6050
|
});
|
|
6051
6051
|
}, [d, u, A]), r;
|
|
6052
6052
|
}
|
|
6053
|
-
function
|
|
6053
|
+
function gf(A, { ownerDocument: t, container: e, containers: n, previousActiveElement: d }) {
|
|
6054
6054
|
let r = Ce(), u = !!(A & 4);
|
|
6055
6055
|
Vn(t == null ? void 0 : t.defaultView, "focus", (s) => {
|
|
6056
6056
|
if (!u || !r.current) return;
|
|
6057
|
-
let f =
|
|
6057
|
+
let f = Z7(n);
|
|
6058
6058
|
XA(e.current) && f.add(e.current);
|
|
6059
6059
|
let l = d.current;
|
|
6060
6060
|
if (!l) return;
|
|
6061
6061
|
let a = s.target;
|
|
6062
|
-
XA(a) ?
|
|
6062
|
+
XA(a) ? m7(f, a) ? (d.current = a, YA(a)) : (s.preventDefault(), s.stopPropagation(), YA(l)) : YA(d.current);
|
|
6063
6063
|
}, !0);
|
|
6064
6064
|
}
|
|
6065
|
-
function
|
|
6065
|
+
function m7(A, t) {
|
|
6066
6066
|
for (let e of A) if (e.contains(t)) return !0;
|
|
6067
6067
|
return !1;
|
|
6068
6068
|
}
|
|
6069
|
-
function
|
|
6069
|
+
function Q7(A) {
|
|
6070
6070
|
var t;
|
|
6071
|
-
return !!(A.enter || A.enterFrom || A.enterTo || A.leave || A.leaveFrom || A.leaveTo) || ((t = A.as) != null ? t :
|
|
6071
|
+
return !!(A.enter || A.enterFrom || A.enterTo || A.leave || A.leaveFrom || A.leaveTo) || ((t = A.as) != null ? t : T7) !== qA || P.Children.count(A.children) === 1;
|
|
6072
6072
|
}
|
|
6073
6073
|
let ye = rA(null);
|
|
6074
6074
|
ye.displayName = "TransitionContext";
|
|
6075
|
-
var
|
|
6076
|
-
function
|
|
6075
|
+
var bf = ((A) => (A.Visible = "visible", A.Hidden = "hidden", A))(bf || {});
|
|
6076
|
+
function pf() {
|
|
6077
6077
|
let A = h(ye);
|
|
6078
6078
|
if (A === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6079
6079
|
return A;
|
|
6080
6080
|
}
|
|
6081
|
-
function
|
|
6081
|
+
function Df() {
|
|
6082
6082
|
let A = h(je);
|
|
6083
6083
|
if (A === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
6084
6084
|
return A;
|
|
@@ -6088,7 +6088,7 @@ je.displayName = "NestingContext";
|
|
|
6088
6088
|
function Ue(A) {
|
|
6089
6089
|
return "children" in A ? Ue(A.children) : A.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
6090
6090
|
}
|
|
6091
|
-
function
|
|
6091
|
+
function L7(A, t) {
|
|
6092
6092
|
let e = ZA(A), n = C([]), d = Ce(), r = Wt(), u = H((v, c = rt.Hidden) => {
|
|
6093
6093
|
let w = n.current.findIndex(({ el: g }) => g === v);
|
|
6094
6094
|
w !== -1 && (aA(c, { [rt.Unmount]() {
|
|
@@ -6116,10 +6116,10 @@ function H7(A, t) {
|
|
|
6116
6116
|
});
|
|
6117
6117
|
return L(() => ({ children: n, register: s, unregister: u, onStart: z, onStop: o, wait: l, chains: a }), [s, u, n, z, o, a, l]);
|
|
6118
6118
|
}
|
|
6119
|
-
let
|
|
6120
|
-
function
|
|
6119
|
+
let T7 = qA, x7 = WA.RenderStrategy;
|
|
6120
|
+
function Xf(A, t) {
|
|
6121
6121
|
var e, n;
|
|
6122
|
-
let { transition: d = !0, beforeEnter: r, afterEnter: u, beforeLeave: s, afterLeave: f, enter: l, enterFrom: a, enterTo: z, entered: o, leave: v, leaveFrom: c, leaveTo: w, ...g } = A, [b, p] = K(null), D = C(null), X =
|
|
6122
|
+
let { transition: d = !0, beforeEnter: r, afterEnter: u, beforeLeave: s, afterLeave: f, enter: l, enterFrom: a, enterTo: z, entered: o, leave: v, leaveFrom: c, leaveTo: w, ...g } = A, [b, p] = K(null), D = C(null), X = Q7(A), B = nA(...X ? [D, t, p] : t === null ? [] : [t]), i = (e = g.unmount) == null || e ? rt.Unmount : rt.Hidden, { show: Z, appear: k, initial: U } = pf(), [W, x] = K(Z ? "visible" : "hidden"), Q = Df(), { register: M, unregister: m } = Q;
|
|
6123
6123
|
tA(() => M(D), [M, D]), tA(() => {
|
|
6124
6124
|
if (i === rt.Hidden && D.current) {
|
|
6125
6125
|
if (Z && W !== "visible") {
|
|
@@ -6133,7 +6133,7 @@ function of(A, t) {
|
|
|
6133
6133
|
tA(() => {
|
|
6134
6134
|
if (X && _ && W === "visible" && D.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
6135
6135
|
}, [D, W, _, X]);
|
|
6136
|
-
let R = U && !k, $ = k && Z && U, G = C(!1), q =
|
|
6136
|
+
let R = U && !k, $ = k && Z && U, G = C(!1), q = L7(() => {
|
|
6137
6137
|
G.current || (x("hidden"), m(D));
|
|
6138
6138
|
}, Q), y = H((gA) => {
|
|
6139
6139
|
G.current = !0;
|
|
@@ -6153,14 +6153,14 @@ function of(A, t) {
|
|
|
6153
6153
|
let vA = !(!d || !X || !_ || R), [, N] = It(vA, b, Z, { start: y, end: S }), cA = vt({ ref: B, className: ((n = vn(g.className, $ && l, $ && a, N.enter && l, N.enter && N.closed && a, N.enter && !N.closed && z, N.leave && v, N.leave && !N.closed && c, N.leave && N.closed && w, !N.transition && Z && o)) == null ? void 0 : n.trim()) || void 0, ...St(N) }), j = 0;
|
|
6154
6154
|
W === "visible" && (j |= fA.Open), W === "hidden" && (j |= fA.Closed), Z && W === "hidden" && (j |= fA.Opening), !Z && W === "visible" && (j |= fA.Closing);
|
|
6155
6155
|
let wA = I();
|
|
6156
|
-
return P.createElement(je.Provider, { value: q }, P.createElement(Ve, { value: j }, wA({ ourProps: cA, theirProps: g, defaultTag:
|
|
6156
|
+
return P.createElement(je.Provider, { value: q }, P.createElement(Ve, { value: j }, wA({ ourProps: cA, theirProps: g, defaultTag: T7, features: x7, visible: W === "visible", name: "Transition.Child" })));
|
|
6157
6157
|
}
|
|
6158
|
-
function
|
|
6159
|
-
let { show: e, appear: n = !1, unmount: d = !0, ...r } = A, u = C(null), s =
|
|
6158
|
+
function Pf(A, t) {
|
|
6159
|
+
let { show: e, appear: n = !1, unmount: d = !0, ...r } = A, u = C(null), s = Q7(A), f = nA(...s ? [u, t] : t === null ? [] : [t]);
|
|
6160
6160
|
_t();
|
|
6161
6161
|
let l = lt();
|
|
6162
6162
|
if (e === void 0 && l !== null && (e = (l & fA.Open) === fA.Open), e === void 0) throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");
|
|
6163
|
-
let [a, z] = K(e ? "visible" : "hidden"), o =
|
|
6163
|
+
let [a, z] = K(e ? "visible" : "hidden"), o = L7(() => {
|
|
6164
6164
|
e || z("hidden");
|
|
6165
6165
|
}), [v, c] = K(!0), w = C([e]);
|
|
6166
6166
|
tA(() => {
|
|
@@ -6177,15 +6177,15 @@ function wf(A, t) {
|
|
|
6177
6177
|
var B;
|
|
6178
6178
|
v && c(!1), (B = A.beforeLeave) == null || B.call(A);
|
|
6179
6179
|
}), X = I();
|
|
6180
|
-
return P.createElement(je.Provider, { value: o }, P.createElement(ye.Provider, { value: g }, X({ ourProps: { ...b, as: qA, children: P.createElement(
|
|
6180
|
+
return P.createElement(je.Provider, { value: o }, P.createElement(ye.Provider, { value: g }, X({ ourProps: { ...b, as: qA, children: P.createElement(V7, { ref: f, ...b, ...r, beforeEnter: p, beforeLeave: D }) }, theirProps: {}, defaultTag: qA, features: x7, visible: a === "visible", name: "Transition" })));
|
|
6181
6181
|
}
|
|
6182
|
-
function
|
|
6182
|
+
function Bf(A, t) {
|
|
6183
6183
|
let e = h(ye) !== null, n = lt() !== null;
|
|
6184
|
-
return P.createElement(P.Fragment, null, !e && n ? P.createElement(bn, { ref: t, ...A }) : P.createElement(
|
|
6184
|
+
return P.createElement(P.Fragment, null, !e && n ? P.createElement(bn, { ref: t, ...A }) : P.createElement(V7, { ref: t, ...A }));
|
|
6185
6185
|
}
|
|
6186
|
-
let bn = E(
|
|
6187
|
-
var
|
|
6188
|
-
let
|
|
6186
|
+
let bn = E(Pf), V7 = E(Xf), Jn = E(Bf), qf = Object.assign(bn, { Child: Jn, Root: bn });
|
|
6187
|
+
var Hf = ((A) => (A[A.Open = 0] = "Open", A[A.Closed = 1] = "Closed", A))(Hf || {}), Mf = ((A) => (A[A.SetTitleId = 0] = "SetTitleId", A))(Mf || {});
|
|
6188
|
+
let Wf = { 0(A, t) {
|
|
6189
6189
|
return A.titleId === t.id ? A : { ...A, titleId: t.id };
|
|
6190
6190
|
} }, Fn = rA(null);
|
|
6191
6191
|
Fn.displayName = "DialogContext";
|
|
@@ -6197,8 +6197,8 @@ function Ge(A) {
|
|
|
6197
6197
|
}
|
|
6198
6198
|
return t;
|
|
6199
6199
|
}
|
|
6200
|
-
function
|
|
6201
|
-
return aA(t.type,
|
|
6200
|
+
function Zf(A, t) {
|
|
6201
|
+
return aA(t.type, Wf, A, t);
|
|
6202
6202
|
}
|
|
6203
6203
|
let Fd = E(function(A, t) {
|
|
6204
6204
|
let e = lA(), { id: n = `headlessui-dialog-${e}`, open: d, onClose: r, initialFocus: u, role: s = "dialog", autoFocus: f = !0, __demoMode: l = !1, unmount: a = !1, ...z } = A, o = C(!1);
|
|
@@ -6207,11 +6207,11 @@ let Fd = E(function(A, t) {
|
|
|
6207
6207
|
}();
|
|
6208
6208
|
let v = lt();
|
|
6209
6209
|
d === void 0 && v !== null && (d = (v & fA.Open) === fA.Open);
|
|
6210
|
-
let c = C(null), w = nA(c, t), g = EA(c), b = d ? 0 : 1, [p, D] = be(
|
|
6210
|
+
let c = C(null), w = nA(c, t), g = EA(c), b = d ? 0 : 1, [p, D] = be(Zf, { titleId: null, descriptionId: null, panelRef: vu() }), X = H(() => r(!1)), B = H((N) => D({ type: 0, id: N })), i = _t() ? b === 0 : !1, [Z, k] = i7(), U = { get current() {
|
|
6211
6211
|
var N;
|
|
6212
6212
|
return (N = p.panelRef.current) != null ? N : c.current;
|
|
6213
|
-
} }, W = Kn(), { resolveContainers: x } =
|
|
6214
|
-
|
|
6213
|
+
} }, W = Kn(), { resolveContainers: x } = M7({ mainTreeNode: W, portals: Z, defaultContainers: [U] }), Q = v !== null ? (v & fA.Closing) === fA.Closing : !1;
|
|
6214
|
+
Ir(l || Q ? !1 : i, { allowed: H(() => {
|
|
6215
6215
|
var N, cA;
|
|
6216
6216
|
return [(cA = (N = c.current) == null ? void 0 : N.closest("[data-headlessui-portal]")) != null ? cA : null];
|
|
6217
6217
|
}), disallowed: H(() => {
|
|
@@ -6225,49 +6225,49 @@ let Fd = E(function(A, t) {
|
|
|
6225
6225
|
let m = DA(M, AA((N) => M.selectors.isTop(N, n), [M, n]));
|
|
6226
6226
|
xn(m, x, (N) => {
|
|
6227
6227
|
N.preventDefault(), X();
|
|
6228
|
-
}),
|
|
6228
|
+
}), ff(m, g == null ? void 0 : g.defaultView, (N) => {
|
|
6229
6229
|
N.preventDefault(), N.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), X();
|
|
6230
6230
|
}), Nn(l || Q ? !1 : i, g, x), Tn(i, c, X);
|
|
6231
|
-
let [_, R] = Zn(), $ = L(() => [{ dialogState: b, close: X, setTitleId: B, unmount: a }, p], [b, p, X, B, a]), G = L(() => ({ open: b === 0 }), [b]), q = { ref: w, id: n, role: s, tabIndex: -1, "aria-modal": l ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": p.titleId, "aria-describedby": _, unmount: a }, y = !
|
|
6231
|
+
let [_, R] = Zn(), $ = L(() => [{ dialogState: b, close: X, setTitleId: B, unmount: a }, p], [b, p, X, B, a]), G = L(() => ({ open: b === 0 }), [b]), q = { ref: w, id: n, role: s, tabIndex: -1, "aria-modal": l ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": p.titleId, "aria-describedby": _, unmount: a }, y = !af(), S = Ot.None;
|
|
6232
6232
|
i && !l && (S |= Ot.RestoreFocus, S |= Ot.TabLock, f && (S |= Ot.AutoFocus), y && (S |= Ot.InitialFocus));
|
|
6233
6233
|
let vA = I();
|
|
6234
|
-
return P.createElement(Yn, null, P.createElement(Jd, { force: !0 }, P.createElement(kn, null, P.createElement(Fn.Provider, { value: $ }, P.createElement(
|
|
6235
|
-
}),
|
|
6236
|
-
function
|
|
6234
|
+
return P.createElement(Yn, null, P.createElement(Jd, { force: !0 }, P.createElement(kn, null, P.createElement(Fn.Provider, { value: $ }, P.createElement(H7, { target: c }, P.createElement(Jd, { force: !1 }, P.createElement(R, { slot: G }, P.createElement(k, null, P.createElement(zf, { initialFocus: u, initialFocusFallback: c, containers: x, features: S }, P.createElement(ie, { value: X }, vA({ ourProps: q, theirProps: z, slot: G, defaultTag: mf, features: Qf, visible: b === 0, name: "Dialog" })))))))))));
|
|
6235
|
+
}), mf = "div", Qf = WA.RenderStrategy | WA.Static;
|
|
6236
|
+
function Lf(A, t) {
|
|
6237
6237
|
let { transition: e = !1, open: n, ...d } = A, r = lt(), u = A.hasOwnProperty("open") || r !== null, s = A.hasOwnProperty("onClose");
|
|
6238
6238
|
if (!u && !s) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
6239
6239
|
if (!u) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
6240
6240
|
if (!s) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
6241
6241
|
if (!r && typeof A.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${A.open}`);
|
|
6242
6242
|
if (typeof A.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${A.onClose}`);
|
|
6243
|
-
return (n !== void 0 || e) && !d.static ? P.createElement(ze, null, P.createElement(
|
|
6243
|
+
return (n !== void 0 || e) && !d.static ? P.createElement(ze, null, P.createElement(qf, { show: n, transition: e, unmount: d.unmount }, P.createElement(Fd, { ref: t, ...d }))) : P.createElement(ze, null, P.createElement(Fd, { ref: t, open: n, ...d }));
|
|
6244
6244
|
}
|
|
6245
|
-
let
|
|
6246
|
-
function
|
|
6245
|
+
let Tf = "div";
|
|
6246
|
+
function xf(A, t) {
|
|
6247
6247
|
let e = lA(), { id: n = `headlessui-dialog-panel-${e}`, transition: d = !1, ...r } = A, [{ dialogState: u, unmount: s }, f] = Ge("Dialog.Panel"), l = nA(t, f.panelRef), a = L(() => ({ open: u === 0 }), [u]), z = H((g) => {
|
|
6248
6248
|
g.stopPropagation();
|
|
6249
6249
|
}), o = { ref: l, id: n, onClick: z }, v = d ? Jn : qA, c = d ? { unmount: s } : {}, w = I();
|
|
6250
|
-
return P.createElement(v, { ...c }, w({ ourProps: o, theirProps: r, slot: a, defaultTag:
|
|
6250
|
+
return P.createElement(v, { ...c }, w({ ourProps: o, theirProps: r, slot: a, defaultTag: Tf, name: "Dialog.Panel" }));
|
|
6251
6251
|
}
|
|
6252
|
-
let
|
|
6253
|
-
function
|
|
6252
|
+
let Vf = "div";
|
|
6253
|
+
function Nf(A, t) {
|
|
6254
6254
|
let { transition: e = !1, ...n } = A, [{ dialogState: d, unmount: r }] = Ge("Dialog.Backdrop"), u = L(() => ({ open: d === 0 }), [d]), s = { ref: t, "aria-hidden": !0 }, f = e ? Jn : qA, l = e ? { unmount: r } : {}, a = I();
|
|
6255
|
-
return P.createElement(f, { ...l }, a({ ourProps: s, theirProps: n, slot: u, defaultTag:
|
|
6255
|
+
return P.createElement(f, { ...l }, a({ ourProps: s, theirProps: n, slot: u, defaultTag: Vf, name: "Dialog.Backdrop" }));
|
|
6256
6256
|
}
|
|
6257
|
-
let
|
|
6258
|
-
function
|
|
6257
|
+
let Cf = "h2";
|
|
6258
|
+
function yf(A, t) {
|
|
6259
6259
|
let e = lA(), { id: n = `headlessui-dialog-title-${e}`, ...d } = A, [{ dialogState: r, setTitleId: u }] = Ge("Dialog.Title"), s = nA(t);
|
|
6260
6260
|
eA(() => (u(n), () => u(null)), [n, u]);
|
|
6261
6261
|
let f = L(() => ({ open: r === 0 }), [r]), l = { ref: s, id: n };
|
|
6262
|
-
return I()({ ourProps: l, theirProps: d, slot: f, defaultTag:
|
|
6262
|
+
return I()({ ourProps: l, theirProps: d, slot: f, defaultTag: Cf, name: "Dialog.Title" });
|
|
6263
6263
|
}
|
|
6264
|
-
let
|
|
6264
|
+
let jf = E(Lf), N7 = E(xf), Uf = E(Nf), C7 = E(yf), Gf = Object.assign(jf, { Panel: N7, Title: C7, Description: Pe });
|
|
6265
6265
|
var Rd;
|
|
6266
|
-
let
|
|
6266
|
+
let Yf = (Rd = P.startTransition) != null ? Rd : function(A) {
|
|
6267
6267
|
A();
|
|
6268
6268
|
};
|
|
6269
|
-
var
|
|
6270
|
-
let
|
|
6269
|
+
var kf = ((A) => (A[A.Open = 0] = "Open", A[A.Closed = 1] = "Closed", A))(kf || {}), Kf = ((A) => (A[A.ToggleDisclosure = 0] = "ToggleDisclosure", A[A.CloseDisclosure = 1] = "CloseDisclosure", A[A.SetButtonId = 2] = "SetButtonId", A[A.SetPanelId = 3] = "SetPanelId", A[A.SetButtonElement = 4] = "SetButtonElement", A[A.SetPanelElement = 5] = "SetPanelElement", A))(Kf || {});
|
|
6270
|
+
let Ef = { 0: (A) => ({ ...A, disclosureState: aA(A.disclosureState, { 0: 1, 1: 0 }) }), 1: (A) => A.disclosureState === 1 ? A : { ...A, disclosureState: 1 }, 2(A, t) {
|
|
6271
6271
|
return A.buttonId === t.buttonId ? A : { ...A, buttonId: t.buttonId };
|
|
6272
6272
|
}, 3(A, t) {
|
|
6273
6273
|
return A.panelId === t.panelId ? A : { ...A, panelId: t.panelId };
|
|
@@ -6287,38 +6287,38 @@ function Sn(A) {
|
|
|
6287
6287
|
}
|
|
6288
6288
|
let In = rA(null);
|
|
6289
6289
|
In.displayName = "DisclosureAPIContext";
|
|
6290
|
-
function
|
|
6290
|
+
function y7(A) {
|
|
6291
6291
|
let t = h(In);
|
|
6292
6292
|
if (t === null) {
|
|
6293
6293
|
let e = new Error(`<${A} /> is missing a parent <Disclosure /> component.`);
|
|
6294
|
-
throw Error.captureStackTrace && Error.captureStackTrace(e,
|
|
6294
|
+
throw Error.captureStackTrace && Error.captureStackTrace(e, y7), e;
|
|
6295
6295
|
}
|
|
6296
6296
|
return t;
|
|
6297
6297
|
}
|
|
6298
6298
|
let hn = rA(null);
|
|
6299
6299
|
hn.displayName = "DisclosurePanelContext";
|
|
6300
|
-
function
|
|
6300
|
+
function Jf() {
|
|
6301
6301
|
return h(hn);
|
|
6302
6302
|
}
|
|
6303
|
-
function
|
|
6304
|
-
return aA(t.type,
|
|
6303
|
+
function Ff(A, t) {
|
|
6304
|
+
return aA(t.type, Ef, A, t);
|
|
6305
6305
|
}
|
|
6306
|
-
let
|
|
6307
|
-
function
|
|
6306
|
+
let Rf = qA;
|
|
6307
|
+
function Sf(A, t) {
|
|
6308
6308
|
let { defaultOpen: e = !1, ...n } = A, d = C(null), r = nA(t, Wn((w) => {
|
|
6309
6309
|
d.current = w;
|
|
6310
|
-
}, A.as === void 0 || A.as === qA)), u = be(
|
|
6310
|
+
}, A.as === void 0 || A.as === qA)), u = be(Ff, { disclosureState: e ? 0 : 1, buttonElement: null, panelElement: null, buttonId: null, panelId: null }), [{ disclosureState: s, buttonId: f }, l] = u, a = H((w) => {
|
|
6311
6311
|
l({ type: 1 });
|
|
6312
6312
|
let g = FA(d);
|
|
6313
6313
|
if (!g || !f) return;
|
|
6314
6314
|
let b = w ? mA(w) ? w : "current" in w && mA(w.current) ? w.current : g.getElementById(f) : g.getElementById(f);
|
|
6315
6315
|
b == null || b.focus();
|
|
6316
6316
|
}), z = L(() => ({ close: a }), [a]), o = L(() => ({ open: s === 0, close: a }), [s, a]), v = { ref: r }, c = I();
|
|
6317
|
-
return P.createElement(Rn.Provider, { value: u }, P.createElement(In.Provider, { value: z }, P.createElement(ie, { value: a }, P.createElement(Ve, { value: aA(s, { 0: fA.Open, 1: fA.Closed }) }, c({ ourProps: v, theirProps: n, slot: o, defaultTag:
|
|
6317
|
+
return P.createElement(Rn.Provider, { value: u }, P.createElement(In.Provider, { value: z }, P.createElement(ie, { value: a }, P.createElement(Ve, { value: aA(s, { 0: fA.Open, 1: fA.Closed }) }, c({ ourProps: v, theirProps: n, slot: o, defaultTag: Rf, name: "Disclosure" })))));
|
|
6318
6318
|
}
|
|
6319
|
-
let
|
|
6320
|
-
function
|
|
6321
|
-
let e = lA(), { id: n = `headlessui-disclosure-button-${e}`, disabled: d = !1, autoFocus: r = !1, ...u } = A, [s, f] = Sn("Disclosure.Button"), l =
|
|
6319
|
+
let If = "button";
|
|
6320
|
+
function hf(A, t) {
|
|
6321
|
+
let e = lA(), { id: n = `headlessui-disclosure-button-${e}`, disabled: d = !1, autoFocus: r = !1, ...u } = A, [s, f] = Sn("Disclosure.Button"), l = Jf(), a = l === null ? !1 : l === s.panelId, z = C(null), o = nA(z, t, H((U) => {
|
|
6322
6322
|
if (!a) return f({ type: 4, element: U });
|
|
6323
6323
|
}));
|
|
6324
6324
|
eA(() => {
|
|
@@ -6352,48 +6352,48 @@ function Ef(A, t) {
|
|
|
6352
6352
|
var W;
|
|
6353
6353
|
De(U.currentTarget) || d || (a ? (f({ type: 0 }), (W = s.buttonElement) == null || W.focus()) : f({ type: 0 }));
|
|
6354
6354
|
}), { isFocusVisible: g, focusProps: b } = at({ autoFocus: r }), { isHovered: p, hoverProps: D } = pt({ isDisabled: d }), { pressed: X, pressProps: B } = Et({ disabled: d }), i = L(() => ({ open: s.disclosureState === 0, hover: p, active: X, disabled: d, focus: g, autofocus: r }), [s, p, X, g, d, r]), Z = We(A, s.buttonElement), k = VA(a ? { ref: o, type: Z, disabled: d || void 0, autoFocus: r, onKeyDown: v, onClick: w } : { ref: o, id: n, type: Z, "aria-expanded": s.disclosureState === 0, "aria-controls": s.panelElement ? s.panelId : void 0, disabled: d || void 0, autoFocus: r, onKeyDown: v, onKeyUp: c, onClick: w }, b, D, B);
|
|
6355
|
-
return I()({ ourProps: k, theirProps: u, slot: i, defaultTag:
|
|
6355
|
+
return I()({ ourProps: k, theirProps: u, slot: i, defaultTag: If, name: "Disclosure.Button" });
|
|
6356
6356
|
}
|
|
6357
|
-
let
|
|
6358
|
-
function
|
|
6359
|
-
let e = lA(), { id: n = `headlessui-disclosure-panel-${e}`, transition: d = !1, ...r } = A, [u, s] = Sn("Disclosure.Panel"), { close: f } =
|
|
6360
|
-
|
|
6357
|
+
let $f = "div", _f = WA.RenderStrategy | WA.Static;
|
|
6358
|
+
function Aa(A, t) {
|
|
6359
|
+
let e = lA(), { id: n = `headlessui-disclosure-panel-${e}`, transition: d = !1, ...r } = A, [u, s] = Sn("Disclosure.Panel"), { close: f } = y7("Disclosure.Panel"), [l, a] = K(null), z = nA(t, H((p) => {
|
|
6360
|
+
Yf(() => s({ type: 5, element: p }));
|
|
6361
6361
|
}), a);
|
|
6362
6362
|
eA(() => (s({ type: 3, panelId: n }), () => {
|
|
6363
6363
|
s({ type: 3, panelId: null });
|
|
6364
6364
|
}), [n, s]);
|
|
6365
6365
|
let o = lt(), [v, c] = It(d, l, o !== null ? (o & fA.Open) === fA.Open : u.disclosureState === 0), w = L(() => ({ open: u.disclosureState === 0, close: f }), [u.disclosureState, f]), g = { ref: z, id: n, ...St(c) }, b = I();
|
|
6366
|
-
return P.createElement(Yn, null, P.createElement(hn.Provider, { value: u.panelId }, b({ ourProps: g, theirProps: r, slot: w, defaultTag:
|
|
6366
|
+
return P.createElement(Yn, null, P.createElement(hn.Provider, { value: u.panelId }, b({ ourProps: g, theirProps: r, slot: w, defaultTag: $f, features: _f, visible: v, name: "Disclosure.Panel" })));
|
|
6367
6367
|
}
|
|
6368
|
-
let
|
|
6369
|
-
function
|
|
6368
|
+
let ta = E(Sf), ea = E(hf), na = E(Aa), nn = Object.assign(ta, { Button: ea, Panel: na }), da = "div";
|
|
6369
|
+
function ra(A, t) {
|
|
6370
6370
|
let e = `headlessui-control-${lA()}`, [n, d] = qe(), [r, u] = Zn(), s = Dt(), { disabled: f = s || !1, ...l } = A, a = L(() => ({ disabled: f }), [f]), z = { ref: t, disabled: f || void 0, "aria-disabled": f || void 0 }, o = I();
|
|
6371
|
-
return P.createElement(
|
|
6371
|
+
return P.createElement(xr, { value: f }, P.createElement(d, { value: n }, P.createElement(u, { value: r }, P.createElement(L3, { id: e }, o({ ourProps: z, theirProps: { ...l, children: P.createElement(Q3, null, typeof l.children == "function" ? l.children(a) : l.children) }, slot: a, defaultTag: da, name: "Field" })))));
|
|
6372
6372
|
}
|
|
6373
|
-
let
|
|
6374
|
-
function
|
|
6373
|
+
let ua = E(ra);
|
|
6374
|
+
function sa(A) {
|
|
6375
6375
|
let t = typeof A == "string" ? A : void 0, [e, n] = K(t);
|
|
6376
6376
|
return [t ?? e, AA((d) => {
|
|
6377
6377
|
t || XA(d) && n(d.tagName.toLowerCase());
|
|
6378
6378
|
}, [t])];
|
|
6379
6379
|
}
|
|
6380
6380
|
let Sd = "fieldset";
|
|
6381
|
-
function
|
|
6381
|
+
function fa(A, t) {
|
|
6382
6382
|
var e;
|
|
6383
|
-
let n = Dt(), { disabled: d = n || !1, ...r } = A, [u, s] =
|
|
6384
|
-
return P.createElement(
|
|
6383
|
+
let n = Dt(), { disabled: d = n || !1, ...r } = A, [u, s] = sa((e = A.as) != null ? e : Sd), f = nA(t, s), [l, a] = qe(), z = L(() => ({ disabled: d }), [d]), o = u === "fieldset" ? { ref: f, "aria-labelledby": l, disabled: d || void 0 } : { ref: f, role: "group", "aria-labelledby": l, "aria-disabled": d || void 0 }, v = I();
|
|
6384
|
+
return P.createElement(xr, { value: d }, P.createElement(a, null, v({ ourProps: o, theirProps: r, slot: z, defaultTag: Sd, name: "Fieldset" })));
|
|
6385
6385
|
}
|
|
6386
|
-
let
|
|
6387
|
-
function
|
|
6388
|
-
let e = lA(), n = Hn(), d = Dt(), { id: r = n || `headlessui-input-${e}`, disabled: u = d || !1, autoFocus: s = !1, invalid: f = !1, ...l } = A, a = Qn(), z =
|
|
6389
|
-
return I()({ ourProps: g, theirProps: l, slot: b, defaultTag:
|
|
6386
|
+
let aa = E(fa), la = "input";
|
|
6387
|
+
function va(A, t) {
|
|
6388
|
+
let e = lA(), n = Hn(), d = Dt(), { id: r = n || `headlessui-input-${e}`, disabled: u = d || !1, autoFocus: s = !1, invalid: f = !1, ...l } = A, a = Qn(), z = Yr(), { isFocused: o, focusProps: v } = at({ autoFocus: s }), { isHovered: c, hoverProps: w } = pt({ isDisabled: u }), g = VA({ ref: t, id: r, "aria-labelledby": a, "aria-describedby": z, "aria-invalid": f ? "true" : void 0, disabled: u || void 0, autoFocus: s }, v, w), b = L(() => ({ disabled: u, invalid: f, hover: c, focus: o, autofocus: s }), [u, f, c, o, s]);
|
|
6389
|
+
return I()({ ourProps: g, theirProps: l, slot: b, defaultTag: la, name: "Input" });
|
|
6390
6390
|
}
|
|
6391
|
-
let
|
|
6392
|
-
function
|
|
6393
|
-
return P.createElement(
|
|
6391
|
+
let Oa = E(va);
|
|
6392
|
+
function za(A, t) {
|
|
6393
|
+
return P.createElement(kr, { as: "div", ref: t, ...A });
|
|
6394
6394
|
}
|
|
6395
|
-
let
|
|
6396
|
-
function
|
|
6395
|
+
let ca = E(za);
|
|
6396
|
+
function oa(A, t) {
|
|
6397
6397
|
let e = C({ left: 0, top: 0 });
|
|
6398
6398
|
if (tA(() => {
|
|
6399
6399
|
if (!t) return;
|
|
@@ -6413,7 +6413,7 @@ function hd(A) {
|
|
|
6413
6413
|
let u = r ? (e = d.innerText) != null ? e : "" : n;
|
|
6414
6414
|
return Id.test(u) && (u = u.replace(Id, "")), u;
|
|
6415
6415
|
}
|
|
6416
|
-
function
|
|
6416
|
+
function wa(A) {
|
|
6417
6417
|
let t = A.getAttribute("aria-label");
|
|
6418
6418
|
if (typeof t == "string") return t.trim();
|
|
6419
6419
|
let e = A.getAttribute("aria-labelledby");
|
|
@@ -6430,23 +6430,23 @@ function la(A) {
|
|
|
6430
6430
|
}
|
|
6431
6431
|
return hd(A).trim();
|
|
6432
6432
|
}
|
|
6433
|
-
function
|
|
6433
|
+
function ga(A) {
|
|
6434
6434
|
let t = C(""), e = C("");
|
|
6435
6435
|
return H(() => {
|
|
6436
6436
|
let n = A.current;
|
|
6437
6437
|
if (!n) return "";
|
|
6438
6438
|
let d = n.innerText;
|
|
6439
6439
|
if (t.current === d) return e.current;
|
|
6440
|
-
let r =
|
|
6440
|
+
let r = wa(n).trim().toLowerCase();
|
|
6441
6441
|
return t.current = d, e.current = r, r;
|
|
6442
6442
|
});
|
|
6443
6443
|
}
|
|
6444
|
-
var
|
|
6444
|
+
var ba = Object.defineProperty, pa = (A, t, e) => t in A ? ba(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, $d = (A, t, e) => (pa(A, typeof t != "symbol" ? t + "" : t, e), e), bA = ((A) => (A[A.Open = 0] = "Open", A[A.Closed = 1] = "Closed", A))(bA || {}), ce = ((A) => (A[A.Pointer = 0] = "Pointer", A[A.Other = 1] = "Other", A))(ce || {}), uA = ((A) => (A[A.OpenMenu = 0] = "OpenMenu", A[A.CloseMenu = 1] = "CloseMenu", A[A.GoToItem = 2] = "GoToItem", A[A.Search = 3] = "Search", A[A.ClearSearch = 4] = "ClearSearch", A[A.RegisterItems = 5] = "RegisterItems", A[A.UnregisterItems = 6] = "UnregisterItems", A[A.SetButtonElement = 7] = "SetButtonElement", A[A.SetItemsElement = 8] = "SetItemsElement", A[A.SortItems = 9] = "SortItems", A))(uA || {});
|
|
6445
6445
|
function _d(A, t = (e) => e) {
|
|
6446
6446
|
let e = A.activeItemIndex !== null ? A.items[A.activeItemIndex] : null, n = ct(t(A.items.slice()), (r) => r.dataRef.current.domRef.current), d = e ? n.indexOf(e) : null;
|
|
6447
6447
|
return d === -1 && (d = null), { items: n, activeItemIndex: d };
|
|
6448
6448
|
}
|
|
6449
|
-
let
|
|
6449
|
+
let Da = { 1(A) {
|
|
6450
6450
|
return A.menuState === 1 ? A : { ...A, activeItemIndex: null, pendingFocus: { focus: OA.Nothing }, menuState: 1 };
|
|
6451
6451
|
}, 0(A, t) {
|
|
6452
6452
|
return A.menuState === 0 ? A : { ...A, __demoMode: !1, pendingFocus: t.focus, menuState: 0 };
|
|
@@ -6524,7 +6524,7 @@ class $n extends Ln {
|
|
|
6524
6524
|
});
|
|
6525
6525
|
{
|
|
6526
6526
|
let e = this.state.id, n = Jt.get(null);
|
|
6527
|
-
this.disposables.add(n.on(
|
|
6527
|
+
this.disposables.add(n.on(Rr.Push, (d) => {
|
|
6528
6528
|
!n.selectors.isTop(d, e) && this.state.menuState === 0 && this.send({ type: 1 });
|
|
6529
6529
|
})), this.on(0, () => n.actions.push(e)), this.on(1, () => n.actions.pop(e));
|
|
6530
6530
|
}
|
|
@@ -6533,25 +6533,25 @@ class $n extends Ln {
|
|
|
6533
6533
|
return new $n({ id: t, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: OA.Nothing } });
|
|
6534
6534
|
}
|
|
6535
6535
|
reduce(t, e) {
|
|
6536
|
-
return aA(e.type,
|
|
6536
|
+
return aA(e.type, Da, t, e);
|
|
6537
6537
|
}
|
|
6538
6538
|
}
|
|
6539
|
-
const
|
|
6539
|
+
const j7 = rA(null);
|
|
6540
6540
|
function _n(A) {
|
|
6541
|
-
let t = h(
|
|
6541
|
+
let t = h(j7);
|
|
6542
6542
|
if (t === null) {
|
|
6543
6543
|
let e = new Error(`<${A} /> is missing a parent <Menu /> component.`);
|
|
6544
|
-
throw Error.captureStackTrace && Error.captureStackTrace(e,
|
|
6544
|
+
throw Error.captureStackTrace && Error.captureStackTrace(e, U7), e;
|
|
6545
6545
|
}
|
|
6546
6546
|
return t;
|
|
6547
6547
|
}
|
|
6548
|
-
function
|
|
6548
|
+
function U7({ id: A, __demoMode: t = !1 }) {
|
|
6549
6549
|
let e = L(() => $n.new({ id: A, __demoMode: t }), []);
|
|
6550
6550
|
return Ne(() => e.dispose()), e;
|
|
6551
6551
|
}
|
|
6552
|
-
let
|
|
6553
|
-
function
|
|
6554
|
-
let e = lA(), { __demoMode: n = !1, ...d } = A, r =
|
|
6552
|
+
let Xa = qA;
|
|
6553
|
+
function Pa(A, t) {
|
|
6554
|
+
let e = lA(), { __demoMode: n = !1, ...d } = A, r = U7({ id: e, __demoMode: n }), [u, s, f] = DA(r, (g) => [g.menuState, g.itemsElement, g.buttonElement]), l = nA(t), a = Jt.get(null), z = DA(a, AA((g) => a.selectors.isTop(g, e), [a, e]));
|
|
6555
6555
|
xn(z, [f, s], (g, b) => {
|
|
6556
6556
|
var p;
|
|
6557
6557
|
r.send({ type: uA.CloseMenu }), Me(b, He.Loose) || (g.preventDefault(), (p = r.state.buttonElement) == null || p.focus());
|
|
@@ -6559,11 +6559,11 @@ function wa(A, t) {
|
|
|
6559
6559
|
let o = H(() => {
|
|
6560
6560
|
r.send({ type: uA.CloseMenu });
|
|
6561
6561
|
}), v = L(() => ({ open: u === bA.Open, close: o }), [u, o]), c = { ref: l }, w = I();
|
|
6562
|
-
return P.createElement(
|
|
6562
|
+
return P.createElement(p7, null, P.createElement(j7.Provider, { value: r }, P.createElement(Ve, { value: aA(u, { [bA.Open]: fA.Open, [bA.Closed]: fA.Closed }) }, w({ ourProps: c, theirProps: d, slot: v, defaultTag: Xa, name: "Menu" }))));
|
|
6563
6563
|
}
|
|
6564
|
-
let
|
|
6565
|
-
function
|
|
6566
|
-
let e = _n("Menu.Button"), n = lA(), { id: d = `headlessui-menu-button-${n}`, disabled: r = !1, autoFocus: u = !1, ...s } = A, f = C(null), l =
|
|
6564
|
+
let Ba = "button";
|
|
6565
|
+
function qa(A, t) {
|
|
6566
|
+
let e = _n("Menu.Button"), n = lA(), { id: d = `headlessui-menu-button-${n}`, disabled: r = !1, autoFocus: u = !1, ...s } = A, f = C(null), l = Ss(), a = nA(t, f, w7(), H((M) => e.send({ type: uA.SetButtonElement, element: M }))), z = H((M) => {
|
|
6567
6567
|
switch (M.key) {
|
|
6568
6568
|
case F.Space:
|
|
6569
6569
|
case F.Enter:
|
|
@@ -6581,14 +6581,14 @@ function ba(A, t) {
|
|
|
6581
6581
|
break;
|
|
6582
6582
|
}
|
|
6583
6583
|
}), [v, c, w] = DA(e, (M) => [M.menuState, M.buttonElement, M.itemsElement]), g = v === bA.Open;
|
|
6584
|
-
|
|
6584
|
+
z1(g, { trigger: c, action: AA((M) => {
|
|
6585
6585
|
if (c != null && c.contains(M.target)) return ee.Ignore;
|
|
6586
6586
|
let m = M.target.closest('[role="menuitem"]:not([data-disabled])');
|
|
6587
6587
|
return XA(m) ? ee.Select(m) : w != null && w.contains(M.target) ? ee.Ignore : ee.Close;
|
|
6588
6588
|
}, [c, w]), close: AA(() => e.send({ type: uA.CloseMenu }), []), select: AA((M) => M.click(), []) });
|
|
6589
6589
|
let b = H((M) => {
|
|
6590
6590
|
var m;
|
|
6591
|
-
if (M.button ===
|
|
6591
|
+
if (M.button === X7.Left) {
|
|
6592
6592
|
if (De(M.currentTarget)) return M.preventDefault();
|
|
6593
6593
|
r || (v === bA.Open ? (dn(() => e.send({ type: uA.CloseMenu })), (m = f.current) == null || m.focus({ preventScroll: !0 })) : (M.preventDefault(), e.send({ type: uA.OpenMenu, focus: { focus: OA.Nothing }, trigger: ce.Pointer })));
|
|
6594
6594
|
}
|
|
@@ -6597,11 +6597,11 @@ function ba(A, t) {
|
|
|
6597
6597
|
}), X = H((M) => {
|
|
6598
6598
|
p.current !== "mouse" && b(M);
|
|
6599
6599
|
}), { isFocusVisible: B, focusProps: i } = at({ autoFocus: u }), { isHovered: Z, hoverProps: k } = pt({ isDisabled: r }), { pressed: U, pressProps: W } = Et({ disabled: r }), x = L(() => ({ open: v === bA.Open, active: U || v === bA.Open, disabled: r, hover: Z, focus: B, autofocus: u }), [v, Z, B, U, r, u]), Q = VA(l(), { ref: a, id: d, type: We(A, f.current), "aria-haspopup": "menu", "aria-controls": w == null ? void 0 : w.id, "aria-expanded": v === bA.Open, disabled: r || void 0, autoFocus: u, onKeyDown: z, onKeyUp: o, onPointerDown: D, onClick: X }, i, k, W);
|
|
6600
|
-
return I()({ ourProps: Q, theirProps: s, slot: x, defaultTag:
|
|
6600
|
+
return I()({ ourProps: Q, theirProps: s, slot: x, defaultTag: Ba, name: "Menu.Button" });
|
|
6601
6601
|
}
|
|
6602
|
-
let
|
|
6603
|
-
function
|
|
6604
|
-
let e = lA(), { id: n = `headlessui-menu-items-${e}`, anchor: d, portal: r = !1, modal: u = !0, transition: s = !1, ...f } = A, l =
|
|
6602
|
+
let ia = "div", Ha = WA.RenderStrategy | WA.Static;
|
|
6603
|
+
function Ma(A, t) {
|
|
6604
|
+
let e = lA(), { id: n = `headlessui-menu-items-${e}`, anchor: d, portal: r = !1, modal: u = !0, transition: s = !1, ...f } = A, l = o7(d), a = _n("Menu.Items"), [z, o] = b7(l), v = g7(), [c, w] = K(null), g = nA(t, l ? z : null, H((q) => a.send({ type: uA.SetItemsElement, element: q })), w), [b, p] = DA(a, (q) => [q.menuState, q.buttonElement]), D = EA(p), X = EA(c);
|
|
6605
6605
|
l && (r = !0);
|
|
6606
6606
|
let B = lt(), [i, Z] = It(s, c, B !== null ? (B & fA.Open) === fA.Open : b === bA.Open);
|
|
6607
6607
|
Tn(i, p, () => {
|
|
@@ -6610,12 +6610,12 @@ function Xa(A, t) {
|
|
|
6610
6610
|
let k = DA(a, (q) => q.__demoMode), U = k ? !1 : u && b === bA.Open;
|
|
6611
6611
|
Nn(U, X);
|
|
6612
6612
|
let W = k ? !1 : u && b === bA.Open;
|
|
6613
|
-
|
|
6614
|
-
let x = b !== bA.Open, Q =
|
|
6613
|
+
Ir(W, { allowed: AA(() => [p, c], [p, c]) });
|
|
6614
|
+
let x = b !== bA.Open, Q = oa(x, p) ? !1 : i;
|
|
6615
6615
|
eA(() => {
|
|
6616
6616
|
let q = c;
|
|
6617
6617
|
q && b === bA.Open && q !== (X == null ? void 0 : X.activeElement) && q.focus({ preventScroll: !0 });
|
|
6618
|
-
}, [b, c, X]),
|
|
6618
|
+
}, [b, c, X]), M1(b === bA.Open, { container: c, accept(q) {
|
|
6619
6619
|
return q.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : q.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
6620
6620
|
}, walk(q) {
|
|
6621
6621
|
q.setAttribute("role", "none");
|
|
@@ -6630,7 +6630,7 @@ function Xa(A, t) {
|
|
|
6630
6630
|
let { dataRef: N } = a.state.items[a.state.activeItemIndex];
|
|
6631
6631
|
(S = (y = N.current) == null ? void 0 : y.domRef.current) == null || S.click();
|
|
6632
6632
|
}
|
|
6633
|
-
a.send({ type: uA.CloseMenu }),
|
|
6633
|
+
a.send({ type: uA.CloseMenu }), hr(a.state.buttonElement);
|
|
6634
6634
|
break;
|
|
6635
6635
|
case F.ArrowDown:
|
|
6636
6636
|
return q.preventDefault(), q.stopPropagation(), a.send({ type: uA.GoToItem, focus: OA.Next });
|
|
@@ -6646,7 +6646,7 @@ function Xa(A, t) {
|
|
|
6646
6646
|
q.preventDefault(), q.stopPropagation(), dn(() => a.send({ type: uA.CloseMenu })), (vA = a.state.buttonElement) == null || vA.focus({ preventScroll: !0 });
|
|
6647
6647
|
break;
|
|
6648
6648
|
case F.Tab:
|
|
6649
|
-
q.preventDefault(), q.stopPropagation(), dn(() => a.send({ type: uA.CloseMenu })),
|
|
6649
|
+
q.preventDefault(), q.stopPropagation(), dn(() => a.send({ type: uA.CloseMenu })), a1(a.state.buttonElement, q.shiftKey ? dA.Previous : dA.Next);
|
|
6650
6650
|
break;
|
|
6651
6651
|
default:
|
|
6652
6652
|
q.key.length === 1 && (a.send({ type: uA.Search, value: q.key }), M.setTimeout(() => a.send({ type: uA.ClearSearch }), 350));
|
|
@@ -6661,11 +6661,11 @@ function Xa(A, t) {
|
|
|
6661
6661
|
}), R = L(() => ({ open: b === bA.Open }), [b]), $ = VA(l ? v() : {}, { "aria-activedescendant": DA(a, a.selectors.activeDescendantId), "aria-labelledby": DA(a, (q) => {
|
|
6662
6662
|
var y;
|
|
6663
6663
|
return (y = q.buttonElement) == null ? void 0 : y.id;
|
|
6664
|
-
}), id: n, onKeyDown: m, onKeyUp: _, role: "menu", tabIndex: b === bA.Open ? 0 : void 0, ref: g, style: { ...f.style, ...o, "--button-width":
|
|
6665
|
-
return P.createElement(kn, { enabled: r ? A.static || i : !1, ownerDocument: D }, G({ ourProps: $, theirProps: f, slot: R, defaultTag:
|
|
6664
|
+
}), id: n, onKeyDown: m, onKeyUp: _, role: "menu", tabIndex: b === bA.Open ? 0 : void 0, ref: g, style: { ...f.style, ...o, "--button-width": Kr(p, !0).width }, ...St(Z) }), G = I();
|
|
6665
|
+
return P.createElement(kn, { enabled: r ? A.static || i : !1, ownerDocument: D }, G({ ourProps: $, theirProps: f, slot: R, defaultTag: ia, features: Ha, visible: Q, name: "Menu.Items" }));
|
|
6666
6666
|
}
|
|
6667
|
-
let
|
|
6668
|
-
function
|
|
6667
|
+
let Wa = qA;
|
|
6668
|
+
function Za(A, t) {
|
|
6669
6669
|
let e = lA(), { id: n = `headlessui-menu-item-${e}`, disabled: d = !1, ...r } = A, u = _n("Menu.Item"), s = DA(u, (x) => u.selectors.isActive(x, n)), f = C(null), l = nA(t, f), a = DA(u, (x) => u.selectors.shouldScrollIntoView(x, n));
|
|
6670
6670
|
tA(() => {
|
|
6671
6671
|
if (a) return NA().requestAnimationFrame(() => {
|
|
@@ -6673,7 +6673,7 @@ function Ba(A, t) {
|
|
|
6673
6673
|
(Q = (x = f.current) == null ? void 0 : x.scrollIntoView) == null || Q.call(x, { block: "nearest" });
|
|
6674
6674
|
});
|
|
6675
6675
|
}, [a, f]);
|
|
6676
|
-
let z =
|
|
6676
|
+
let z = ga(f), o = C({ disabled: d, domRef: f, get textValue() {
|
|
6677
6677
|
return z();
|
|
6678
6678
|
} });
|
|
6679
6679
|
tA(() => {
|
|
@@ -6683,37 +6683,37 @@ function Ba(A, t) {
|
|
|
6683
6683
|
u.send({ type: uA.CloseMenu });
|
|
6684
6684
|
}), c = H((x) => {
|
|
6685
6685
|
if (d) return x.preventDefault();
|
|
6686
|
-
u.send({ type: uA.CloseMenu }),
|
|
6686
|
+
u.send({ type: uA.CloseMenu }), hr(u.state.buttonElement);
|
|
6687
6687
|
}), w = H(() => {
|
|
6688
6688
|
if (d) return u.send({ type: uA.GoToItem, focus: OA.Nothing });
|
|
6689
6689
|
u.send({ type: uA.GoToItem, focus: OA.Specific, id: n });
|
|
6690
|
-
}), g =
|
|
6690
|
+
}), g = X1(), b = H((x) => g.update(x)), p = H((x) => {
|
|
6691
6691
|
g.wasMoved(x) && (d || s || u.send({ type: uA.GoToItem, focus: OA.Specific, id: n, trigger: ce.Pointer }));
|
|
6692
6692
|
}), D = H((x) => {
|
|
6693
6693
|
g.wasMoved(x) && (d || s && u.state.activationTrigger === ce.Pointer && u.send({ type: uA.GoToItem, focus: OA.Nothing }));
|
|
6694
6694
|
}), [X, B] = qe(), [i, Z] = Zn(), k = L(() => ({ active: s, focus: s, disabled: d, close: v }), [s, d, v]), U = { id: n, ref: l, role: "menuitem", tabIndex: d === !0 ? void 0 : -1, "aria-disabled": d === !0 ? !0 : void 0, "aria-labelledby": X, "aria-describedby": i, disabled: void 0, onClick: c, onFocus: w, onPointerEnter: b, onMouseEnter: b, onPointerMove: p, onMouseMove: p, onPointerLeave: D, onMouseLeave: D }, W = I();
|
|
6695
|
-
return P.createElement(B, null, P.createElement(Z, null, W({ ourProps: U, theirProps: r, slot: k, defaultTag:
|
|
6695
|
+
return P.createElement(B, null, P.createElement(Z, null, W({ ourProps: U, theirProps: r, slot: k, defaultTag: Wa, name: "Menu.Item" })));
|
|
6696
6696
|
}
|
|
6697
|
-
let
|
|
6698
|
-
function
|
|
6697
|
+
let ma = "div";
|
|
6698
|
+
function Qa(A, t) {
|
|
6699
6699
|
let [e, n] = qe(), d = A, r = { ref: t, "aria-labelledby": e, role: "group" }, u = I();
|
|
6700
|
-
return P.createElement(n, null, u({ ourProps: r, theirProps: d, slot: {}, defaultTag:
|
|
6700
|
+
return P.createElement(n, null, u({ ourProps: r, theirProps: d, slot: {}, defaultTag: ma, name: "Menu.Section" }));
|
|
6701
6701
|
}
|
|
6702
|
-
let
|
|
6703
|
-
function
|
|
6702
|
+
let La = "header";
|
|
6703
|
+
function Ta(A, t) {
|
|
6704
6704
|
let e = lA(), { id: n = `headlessui-menu-heading-${e}`, ...d } = A, r = mn();
|
|
6705
6705
|
tA(() => r.register(n), [n, r.register]);
|
|
6706
6706
|
let u = { id: n, ref: t, role: "presentation", ...r.props };
|
|
6707
|
-
return I()({ ourProps: u, theirProps: d, slot: {}, defaultTag:
|
|
6707
|
+
return I()({ ourProps: u, theirProps: d, slot: {}, defaultTag: La, name: "Menu.Heading" });
|
|
6708
6708
|
}
|
|
6709
|
-
let
|
|
6710
|
-
function
|
|
6709
|
+
let xa = "div";
|
|
6710
|
+
function Va(A, t) {
|
|
6711
6711
|
let e = A, n = { ref: t, role: "separator" };
|
|
6712
|
-
return I()({ ourProps: n, theirProps: e, slot: {}, defaultTag:
|
|
6712
|
+
return I()({ ourProps: n, theirProps: e, slot: {}, defaultTag: xa, name: "Menu.Separator" });
|
|
6713
6713
|
}
|
|
6714
|
-
let
|
|
6715
|
-
var
|
|
6716
|
-
let
|
|
6714
|
+
let Na = E(Pa), Ca = E(qa), ya = E(Ma), ja = E(Za), Ua = E(Qa), Ga = E(Ta), Ya = E(Va), jA = Object.assign(Na, { Button: Ca, Items: ya, Item: ja, Section: Ua, Heading: Ga, Separator: Ya });
|
|
6715
|
+
var ka = Object.defineProperty, Ka = (A, t, e) => t in A ? ka(A, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : A[t] = e, Ar = (A, t, e) => (Ka(A, typeof t != "symbol" ? t + "" : t, e), e), zA = ((A) => (A[A.Open = 0] = "Open", A[A.Closed = 1] = "Closed", A))(zA || {}), Ea = ((A) => (A[A.OpenPopover = 0] = "OpenPopover", A[A.ClosePopover = 1] = "ClosePopover", A[A.SetButton = 2] = "SetButton", A[A.SetButtonId = 3] = "SetButtonId", A[A.SetPanel = 4] = "SetPanel", A[A.SetPanelId = 5] = "SetPanelId", A))(Ea || {});
|
|
6716
|
+
let Ja = { 0: (A) => A.popoverState === 0 ? A : { ...A, popoverState: 0, __demoMode: !1 }, 1(A) {
|
|
6717
6717
|
return A.popoverState === 1 ? A : { ...A, popoverState: 1, __demoMode: !1 };
|
|
6718
6718
|
}, 2(A, t) {
|
|
6719
6719
|
return A.button === t.button ? A : { ...A, button: t.button };
|
|
@@ -6745,43 +6745,43 @@ class Ad extends Ln {
|
|
|
6745
6745
|
return new Ad({ id: t, __demoMode: e, popoverState: e ? 0 : 1, buttons: { current: [] }, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: { current: null }, afterPanelSentinel: { current: null }, afterButtonSentinel: { current: null } });
|
|
6746
6746
|
}
|
|
6747
6747
|
reduce(t, e) {
|
|
6748
|
-
return aA(e.type,
|
|
6748
|
+
return aA(e.type, Ja, t, e);
|
|
6749
6749
|
}
|
|
6750
6750
|
}
|
|
6751
|
-
const
|
|
6751
|
+
const G7 = rA(null);
|
|
6752
6752
|
function Ye(A) {
|
|
6753
|
-
let t = h(
|
|
6753
|
+
let t = h(G7);
|
|
6754
6754
|
if (t === null) {
|
|
6755
6755
|
let e = new Error(`<${A} /> is missing a parent <Popover /> component.`);
|
|
6756
6756
|
throw Error.captureStackTrace && Error.captureStackTrace(e, Ye), e;
|
|
6757
6757
|
}
|
|
6758
6758
|
return t;
|
|
6759
6759
|
}
|
|
6760
|
-
function
|
|
6760
|
+
function Fa({ id: A, __demoMode: t = !1 }) {
|
|
6761
6761
|
let e = L(() => Ad.new({ id: A, __demoMode: t }), []);
|
|
6762
6762
|
return Ne(() => e.dispose()), e;
|
|
6763
6763
|
}
|
|
6764
6764
|
let td = rA(null);
|
|
6765
6765
|
td.displayName = "PopoverGroupContext";
|
|
6766
|
-
function
|
|
6766
|
+
function Y7() {
|
|
6767
6767
|
return h(td);
|
|
6768
6768
|
}
|
|
6769
6769
|
let ke = rA(null);
|
|
6770
6770
|
ke.displayName = "PopoverPanelContext";
|
|
6771
|
-
function
|
|
6771
|
+
function Ra() {
|
|
6772
6772
|
return h(ke);
|
|
6773
6773
|
}
|
|
6774
|
-
let
|
|
6775
|
-
function
|
|
6774
|
+
let Sa = "div";
|
|
6775
|
+
function Ia(A, t) {
|
|
6776
6776
|
var e;
|
|
6777
|
-
let n = lA(), { __demoMode: d = !1, ...r } = A, u =
|
|
6777
|
+
let n = lA(), { __demoMode: d = !1, ...r } = A, u = Fa({ id: n, __demoMode: d }), s = C(null), f = nA(t, Wn((m) => {
|
|
6778
6778
|
s.current = m;
|
|
6779
|
-
})), [l, a, z, o, v] = DA(u, AA((m) => [m.popoverState, m.button, m.panel, m.buttonId, m.panelId], [])), c = EA((e = s.current) != null ? e : a), w = ZA(o), g = ZA(v), b = L(() => ({ buttonId: w, panelId: g, close: u.actions.close }), [w, g, u]), p =
|
|
6779
|
+
})), [l, a, z, o, v] = DA(u, AA((m) => [m.popoverState, m.button, m.panel, m.buttonId, m.panelId], [])), c = EA((e = s.current) != null ? e : a), w = ZA(o), g = ZA(v), b = L(() => ({ buttonId: w, panelId: g, close: u.actions.close }), [w, g, u]), p = Y7(), D = p == null ? void 0 : p.registerPopover, X = H(() => {
|
|
6780
6780
|
var m;
|
|
6781
6781
|
return (m = p == null ? void 0 : p.isFocusWithinPopoverGroup()) != null ? m : (c == null ? void 0 : c.activeElement) && ((a == null ? void 0 : a.contains(c.activeElement)) || (z == null ? void 0 : z.contains(c.activeElement)));
|
|
6782
6782
|
});
|
|
6783
6783
|
eA(() => D == null ? void 0 : D(b), [D, b]);
|
|
6784
|
-
let [B, i] =
|
|
6784
|
+
let [B, i] = i7(), Z = Kn(a), k = M7({ mainTreeNode: Z, portals: B, defaultContainers: [{ get current() {
|
|
6785
6785
|
return u.state.button;
|
|
6786
6786
|
} }, { get current() {
|
|
6787
6787
|
return u.state.panel;
|
|
@@ -6795,15 +6795,15 @@ function Ka(A, t) {
|
|
|
6795
6795
|
u.actions.close(), Me(_, He.Loose) || (m.preventDefault(), a == null || a.focus());
|
|
6796
6796
|
});
|
|
6797
6797
|
let W = L(() => ({ open: l === zA.Open, close: u.actions.refocusableClose }), [l, u]), x = DA(u, AA((m) => aA(m.popoverState, { [zA.Open]: fA.Open, [zA.Closed]: fA.Closed }), [])), Q = { ref: f }, M = I();
|
|
6798
|
-
return P.createElement(ze, { node: Z }, P.createElement(
|
|
6798
|
+
return P.createElement(ze, { node: Z }, P.createElement(p7, null, P.createElement(ke.Provider, { value: null }, P.createElement(G7.Provider, { value: u }, P.createElement(ie, { value: u.actions.refocusableClose }, P.createElement(Ve, { value: x }, P.createElement(i, null, M({ ourProps: Q, theirProps: r, slot: W, defaultTag: Sa, name: "Popover" }))))))));
|
|
6799
6799
|
}
|
|
6800
|
-
let
|
|
6801
|
-
function
|
|
6802
|
-
let e = lA(), { id: n = `headlessui-popover-button-${e}`, disabled: d = !1, autoFocus: r = !1, ...u } = A, s = Ye("Popover.Button"), [f, l, a, z, o, v, c] = DA(s, AA((j) => [j.popoverState, s.selectors.isPortalled(j), j.button, j.buttonId, j.panel, j.panelId, j.afterButtonSentinel], [])), w = C(null), g = `headlessui-focus-sentinel-${lA()}`, b =
|
|
6800
|
+
let ha = "button";
|
|
6801
|
+
function $a(A, t) {
|
|
6802
|
+
let e = lA(), { id: n = `headlessui-popover-button-${e}`, disabled: d = !1, autoFocus: r = !1, ...u } = A, s = Ye("Popover.Button"), [f, l, a, z, o, v, c] = DA(s, AA((j) => [j.popoverState, s.selectors.isPortalled(j), j.button, j.buttonId, j.panel, j.panelId, j.afterButtonSentinel], [])), w = C(null), g = `headlessui-focus-sentinel-${lA()}`, b = Y7(), p = b == null ? void 0 : b.closeOthers, D = Ra() !== null;
|
|
6803
6803
|
eA(() => {
|
|
6804
6804
|
if (!D) return s.actions.setButtonId(n), () => s.actions.setButtonId(null);
|
|
6805
6805
|
}, [D, n, s]);
|
|
6806
|
-
let [X] = K(() => Symbol()), B = nA(w, t,
|
|
6806
|
+
let [X] = K(() => Symbol()), B = nA(w, t, w7(), H((j) => {
|
|
6807
6807
|
if (!D) {
|
|
6808
6808
|
if (j) s.state.buttons.current.push(X);
|
|
6809
6809
|
else {
|
|
@@ -6848,19 +6848,19 @@ function Ja(A, t) {
|
|
|
6848
6848
|
}
|
|
6849
6849
|
wA();
|
|
6850
6850
|
}), cA = I();
|
|
6851
|
-
return P.createElement(P.Fragment, null, cA({ ourProps: S, theirProps: u, slot: q, defaultTag:
|
|
6851
|
+
return P.createElement(P.Fragment, null, cA({ ourProps: S, theirProps: u, slot: q, defaultTag: ha, name: "Popover.Button" }), G && !D && l && P.createElement(At, { id: g, ref: c, features: _A.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: N }));
|
|
6852
6852
|
}
|
|
6853
|
-
let
|
|
6854
|
-
function
|
|
6853
|
+
let _a = "div", A6 = WA.RenderStrategy | WA.Static;
|
|
6854
|
+
function k7(A, t) {
|
|
6855
6855
|
let e = lA(), { id: n = `headlessui-popover-backdrop-${e}`, transition: d = !1, ...r } = A, u = Ye("Popover.Backdrop"), s = DA(u, AA((b) => b.popoverState, [])), [f, l] = K(null), a = nA(t, l), z = lt(), [o, v] = It(d, f, z !== null ? (z & fA.Open) === fA.Open : s === zA.Open), c = H((b) => {
|
|
6856
6856
|
if (De(b.currentTarget)) return b.preventDefault();
|
|
6857
6857
|
u.actions.close();
|
|
6858
6858
|
}), w = L(() => ({ open: s === zA.Open }), [s]), g = { ref: a, id: n, "aria-hidden": !0, onClick: c, ...St(v) };
|
|
6859
|
-
return I()({ ourProps: g, theirProps: r, slot: w, defaultTag:
|
|
6859
|
+
return I()({ ourProps: g, theirProps: r, slot: w, defaultTag: _a, features: A6, visible: o, name: "Popover.Backdrop" });
|
|
6860
6860
|
}
|
|
6861
|
-
let
|
|
6862
|
-
function
|
|
6863
|
-
let e = lA(), { id: n = `headlessui-popover-panel-${e}`, focus: d = !1, anchor: r, portal: u = !1, modal: s = !1, transition: f = !1, ...l } = A, a = Ye("Popover.Panel"), z = DA(a, a.selectors.isPortalled), [o, v, c, w, g] = DA(a, AA((N) => [N.popoverState, N.button, N.__demoMode, N.beforePanelSentinel, N.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${e}`, p = `headlessui-focus-sentinel-after-${e}`, D = C(null), X =
|
|
6861
|
+
let t6 = "div", e6 = WA.RenderStrategy | WA.Static;
|
|
6862
|
+
function n6(A, t) {
|
|
6863
|
+
let e = lA(), { id: n = `headlessui-popover-panel-${e}`, focus: d = !1, anchor: r, portal: u = !1, modal: s = !1, transition: f = !1, ...l } = A, a = Ye("Popover.Panel"), z = DA(a, a.selectors.isPortalled), [o, v, c, w, g] = DA(a, AA((N) => [N.popoverState, N.button, N.__demoMode, N.beforePanelSentinel, N.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${e}`, p = `headlessui-focus-sentinel-after-${e}`, D = C(null), X = o7(r), [B, i] = b7(X), Z = g7();
|
|
6864
6864
|
X && (u = !0);
|
|
6865
6865
|
let [k, U] = K(null), W = nA(D, t, X ? B : null, a.actions.setPanel, U), x = EA(v), Q = EA(D);
|
|
6866
6866
|
tA(() => (a.actions.setPanelId(n), () => a.actions.setPanelId(null)), [n, a]);
|
|
@@ -6887,7 +6887,7 @@ function ha(A, t) {
|
|
|
6887
6887
|
var cA, j, wA, gA, iA;
|
|
6888
6888
|
let HA = N.relatedTarget;
|
|
6889
6889
|
HA && D.current && ((cA = D.current) != null && cA.contains(HA) || (a.actions.close(), ((wA = (j = w.current) == null ? void 0 : j.contains) != null && wA.call(j, HA) || (iA = (gA = g.current) == null ? void 0 : gA.contains) != null && iA.call(gA, HA)) && HA.focus({ preventScroll: !0 })));
|
|
6890
|
-
} : void 0, tabIndex: -1, style: { ...l.style, ...i, "--button-width":
|
|
6890
|
+
} : void 0, tabIndex: -1, style: { ...l.style, ...i, "--button-width": Kr(v, !0).width }, ...St(_) }), q = En(), y = H(() => {
|
|
6891
6891
|
let N = D.current;
|
|
6892
6892
|
if (!N) return;
|
|
6893
6893
|
function cA() {
|
|
@@ -6919,10 +6919,10 @@ function ha(A, t) {
|
|
|
6919
6919
|
}
|
|
6920
6920
|
cA();
|
|
6921
6921
|
}), vA = I();
|
|
6922
|
-
return P.createElement(Yn, null, P.createElement(ke.Provider, { value: n }, P.createElement(ie, { value: a.actions.refocusableClose }, P.createElement(kn, { enabled: u ? A.static || m : !1, ownerDocument: x }, m && z && P.createElement(At, { id: b, ref: w, features: _A.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: y }), vA({ ourProps: G, theirProps: l, slot: $, defaultTag:
|
|
6922
|
+
return P.createElement(Yn, null, P.createElement(ke.Provider, { value: n }, P.createElement(ie, { value: a.actions.refocusableClose }, P.createElement(kn, { enabled: u ? A.static || m : !1, ownerDocument: x }, m && z && P.createElement(At, { id: b, ref: w, features: _A.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: y }), vA({ ourProps: G, theirProps: l, slot: $, defaultTag: t6, features: e6, visible: m, name: "Popover.Panel" }), m && z && P.createElement(At, { id: p, ref: g, features: _A.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: S })))));
|
|
6923
6923
|
}
|
|
6924
|
-
let
|
|
6925
|
-
function
|
|
6924
|
+
let d6 = "div";
|
|
6925
|
+
function r6(A, t) {
|
|
6926
6926
|
let e = C(null), n = nA(e, t), [d, r] = K([]), u = H((w) => {
|
|
6927
6927
|
r((g) => {
|
|
6928
6928
|
let b = g.indexOf(w);
|
|
@@ -6944,10 +6944,10 @@ function _a(A, t) {
|
|
|
6944
6944
|
}), l = H((w) => {
|
|
6945
6945
|
for (let g of d) g.buttonId.current !== w && g.close();
|
|
6946
6946
|
}), a = L(() => ({ registerPopover: s, unregisterPopover: u, isFocusWithinPopoverGroup: f, closeOthers: l }), [s, u, f, l]), z = L(() => ({}), []), o = A, v = { ref: n }, c = I();
|
|
6947
|
-
return P.createElement(ze, null, P.createElement(td.Provider, { value: a }, c({ ourProps: v, theirProps: o, slot: z, defaultTag:
|
|
6947
|
+
return P.createElement(ze, null, P.createElement(td.Provider, { value: a }, c({ ourProps: v, theirProps: o, slot: z, defaultTag: d6, name: "Popover.Group" })));
|
|
6948
6948
|
}
|
|
6949
|
-
let
|
|
6950
|
-
function
|
|
6949
|
+
let u6 = E(Ia), K7 = E($a), s6 = E(k7), f6 = E(k7), E7 = E(n6), a6 = E(r6), l6 = Object.assign(u6, { Button: K7, Backdrop: f6, Overlay: s6, Panel: E7, Group: a6 });
|
|
6950
|
+
function v6({ onFocus: A }) {
|
|
6951
6951
|
let [t, e] = K(!0), n = Ce();
|
|
6952
6952
|
return t ? P.createElement(At, { as: "button", type: "button", features: _A.Focusable, onFocus: (d) => {
|
|
6953
6953
|
d.preventDefault();
|
|
@@ -6967,8 +6967,8 @@ function r6({ onFocus: A }) {
|
|
|
6967
6967
|
r = requestAnimationFrame(s);
|
|
6968
6968
|
} }) : null;
|
|
6969
6969
|
}
|
|
6970
|
-
const
|
|
6971
|
-
function
|
|
6970
|
+
const J7 = V.createContext(null);
|
|
6971
|
+
function O6() {
|
|
6972
6972
|
return { groups: /* @__PURE__ */ new Map(), get(A, t) {
|
|
6973
6973
|
var e;
|
|
6974
6974
|
let n = this.groups.get(A);
|
|
@@ -6983,18 +6983,18 @@ function u6() {
|
|
|
6983
6983
|
return [r, u];
|
|
6984
6984
|
} };
|
|
6985
6985
|
}
|
|
6986
|
-
function
|
|
6987
|
-
let t = V.useRef(
|
|
6988
|
-
return V.createElement(
|
|
6986
|
+
function z6({ children: A }) {
|
|
6987
|
+
let t = V.useRef(O6());
|
|
6988
|
+
return V.createElement(J7.Provider, { value: t }, A);
|
|
6989
6989
|
}
|
|
6990
|
-
function
|
|
6991
|
-
let t = V.useContext(
|
|
6990
|
+
function F7(A) {
|
|
6991
|
+
let t = V.useContext(J7);
|
|
6992
6992
|
if (!t) throw new Error("You must wrap your component in a <StableCollection>");
|
|
6993
6993
|
let e = V.useId(), [n, d] = t.current.get(A, e);
|
|
6994
6994
|
return V.useEffect(() => d, []), n;
|
|
6995
6995
|
}
|
|
6996
|
-
var
|
|
6997
|
-
let
|
|
6996
|
+
var c6 = ((A) => (A[A.Forwards = 0] = "Forwards", A[A.Backwards = 1] = "Backwards", A))(c6 || {}), o6 = ((A) => (A[A.Less = -1] = "Less", A[A.Equal = 0] = "Equal", A[A.Greater = 1] = "Greater", A))(o6 || {}), w6 = ((A) => (A[A.SetSelectedIndex = 0] = "SetSelectedIndex", A[A.RegisterTab = 1] = "RegisterTab", A[A.UnregisterTab = 2] = "UnregisterTab", A[A.RegisterPanel = 3] = "RegisterPanel", A[A.UnregisterPanel = 4] = "UnregisterPanel", A))(w6 || {});
|
|
6997
|
+
let g6 = { 0(A, t) {
|
|
6998
6998
|
var e;
|
|
6999
6999
|
let n = ct(A.tabs, (a) => a.current), d = ct(A.panels, (a) => a.current), r = n.filter((a) => {
|
|
7000
7000
|
var z;
|
|
@@ -7040,14 +7040,14 @@ function dd(A) {
|
|
|
7040
7040
|
}
|
|
7041
7041
|
return t;
|
|
7042
7042
|
}
|
|
7043
|
-
function
|
|
7044
|
-
return aA(t.type,
|
|
7043
|
+
function b6(A, t) {
|
|
7044
|
+
return aA(t.type, g6, A, t);
|
|
7045
7045
|
}
|
|
7046
|
-
let
|
|
7047
|
-
function
|
|
7046
|
+
let p6 = "div";
|
|
7047
|
+
function D6(A, t) {
|
|
7048
7048
|
let { defaultIndex: e = 0, vertical: n = !1, manual: d = !1, onChange: r, selectedIndex: u = null, ...s } = A;
|
|
7049
7049
|
const f = n ? "vertical" : "horizontal", l = d ? "manual" : "auto";
|
|
7050
|
-
let a = u !== null, z = ZA({ isControlled: a }), o = nA(t), [v, c] = be(
|
|
7050
|
+
let a = u !== null, z = ZA({ isControlled: a }), o = nA(t), [v, c] = be(b6, { info: z, selectedIndex: u ?? e, tabs: [], panels: [] }), w = L(() => ({ selectedIndex: v.selectedIndex }), [v.selectedIndex]), g = ZA(r || (() => {
|
|
7051
7051
|
})), b = ZA(v.tabs), p = L(() => ({ orientation: f, activation: l, ...v }), [f, l, v]), D = H((W) => (c({ type: 1, tab: W }), () => c({ type: 2, tab: W }))), X = H((W) => (c({ type: 3, panel: W }), () => c({ type: 4, panel: W }))), B = H((W) => {
|
|
7052
7052
|
i.current !== W && g.current(W), a || c({ type: 0, index: W });
|
|
7053
7053
|
}), i = ZA(a ? A.selectedIndex : v.selectedIndex), Z = L(() => ({ registerTab: D, registerPanel: X, change: B }), []);
|
|
@@ -7059,23 +7059,23 @@ function c6(A, t) {
|
|
|
7059
7059
|
W.some((x, Q) => v.tabs[Q] !== x) && B(W.indexOf(v.tabs[i.current]));
|
|
7060
7060
|
});
|
|
7061
7061
|
let k = { ref: o }, U = I();
|
|
7062
|
-
return P.createElement(
|
|
7062
|
+
return P.createElement(z6, null, P.createElement(nd.Provider, { value: Z }, P.createElement(ed.Provider, { value: p }, p.tabs.length <= 0 && P.createElement(v6, { onFocus: () => {
|
|
7063
7063
|
var W, x;
|
|
7064
7064
|
for (let Q of b.current) if (((W = Q.current) == null ? void 0 : W.tabIndex) === 0) return (x = Q.current) == null || x.focus(), !0;
|
|
7065
7065
|
return !1;
|
|
7066
|
-
} }), U({ ourProps: k, theirProps: s, slot: w, defaultTag:
|
|
7066
|
+
} }), U({ ourProps: k, theirProps: s, slot: w, defaultTag: p6, name: "Tabs" }))));
|
|
7067
7067
|
}
|
|
7068
|
-
let
|
|
7069
|
-
function
|
|
7068
|
+
let X6 = "div";
|
|
7069
|
+
function P6(A, t) {
|
|
7070
7070
|
let { orientation: e, selectedIndex: n } = it("Tab.List"), d = nA(t), r = L(() => ({ selectedIndex: n }), [n]), u = A, s = { ref: d, role: "tablist", "aria-orientation": e };
|
|
7071
|
-
return I()({ ourProps: s, theirProps: u, slot: r, defaultTag:
|
|
7071
|
+
return I()({ ourProps: s, theirProps: u, slot: r, defaultTag: X6, name: "Tabs.List" });
|
|
7072
7072
|
}
|
|
7073
|
-
let
|
|
7074
|
-
function
|
|
7073
|
+
let B6 = "button";
|
|
7074
|
+
function q6(A, t) {
|
|
7075
7075
|
var e, n;
|
|
7076
7076
|
let d = lA(), { id: r = `headlessui-tabs-tab-${d}`, disabled: u = !1, autoFocus: s = !1, ...f } = A, { orientation: l, activation: a, selectedIndex: z, tabs: o, panels: v } = it("Tab"), c = dd("Tab"), w = it("Tab"), [g, b] = K(null), p = C(null), D = nA(p, t, b);
|
|
7077
7077
|
tA(() => c.registerTab(p), [c, p]);
|
|
7078
|
-
let X =
|
|
7078
|
+
let X = F7("tabs"), B = o.indexOf(p);
|
|
7079
7079
|
B === -1 && (B = X);
|
|
7080
7080
|
let i = B === z, Z = H((y) => {
|
|
7081
7081
|
var S;
|
|
@@ -7112,40 +7112,40 @@ function b6(A, t) {
|
|
|
7112
7112
|
}), x = H((y) => {
|
|
7113
7113
|
y.preventDefault();
|
|
7114
7114
|
}), { isFocusVisible: Q, focusProps: M } = at({ autoFocus: s }), { isHovered: m, hoverProps: _ } = pt({ isDisabled: u }), { pressed: R, pressProps: $ } = Et({ disabled: u }), G = L(() => ({ selected: i, hover: m, active: R, focus: Q, autofocus: s, disabled: u }), [i, m, Q, R, s, u]), q = VA({ ref: D, onKeyDown: k, onMouseDown: x, onClick: W, id: r, role: "tab", type: We(A, g), "aria-controls": (n = (e = v[B]) == null ? void 0 : e.current) == null ? void 0 : n.id, "aria-selected": i, tabIndex: i ? 0 : -1, disabled: u || void 0, autoFocus: s }, M, _, $);
|
|
7115
|
-
return I()({ ourProps: q, theirProps: f, slot: G, defaultTag:
|
|
7115
|
+
return I()({ ourProps: q, theirProps: f, slot: G, defaultTag: B6, name: "Tabs.Tab" });
|
|
7116
7116
|
}
|
|
7117
|
-
let
|
|
7118
|
-
function
|
|
7117
|
+
let i6 = "div";
|
|
7118
|
+
function H6(A, t) {
|
|
7119
7119
|
let { selectedIndex: e } = it("Tab.Panels"), n = nA(t), d = L(() => ({ selectedIndex: e }), [e]), r = A, u = { ref: n };
|
|
7120
|
-
return I()({ ourProps: u, theirProps: r, slot: d, defaultTag:
|
|
7120
|
+
return I()({ ourProps: u, theirProps: r, slot: d, defaultTag: i6, name: "Tabs.Panels" });
|
|
7121
7121
|
}
|
|
7122
|
-
let
|
|
7123
|
-
function
|
|
7122
|
+
let M6 = "div", W6 = WA.RenderStrategy | WA.Static;
|
|
7123
|
+
function Z6(A, t) {
|
|
7124
7124
|
var e, n, d, r;
|
|
7125
7125
|
let u = lA(), { id: s = `headlessui-tabs-panel-${u}`, tabIndex: f = 0, ...l } = A, { selectedIndex: a, tabs: z, panels: o } = it("Tab.Panel"), v = dd("Tab.Panel"), c = C(null), w = nA(c, t);
|
|
7126
7126
|
tA(() => v.registerPanel(c), [v, c]);
|
|
7127
|
-
let g =
|
|
7127
|
+
let g = F7("panels"), b = o.indexOf(c);
|
|
7128
7128
|
b === -1 && (b = g);
|
|
7129
7129
|
let p = b === a, { isFocusVisible: D, focusProps: X } = at(), B = L(() => ({ selected: p, focus: D }), [p, D]), i = VA({ ref: w, id: s, role: "tabpanel", "aria-labelledby": (n = (e = z[b]) == null ? void 0 : e.current) == null ? void 0 : n.id, tabIndex: p ? f : -1 }, X), Z = I();
|
|
7130
|
-
return !p && ((d = l.unmount) == null || d) && !((r = l.static) != null && r) ? P.createElement(At, { "aria-hidden": "true", ...i }) : Z({ ourProps: i, theirProps: l, slot: B, defaultTag:
|
|
7130
|
+
return !p && ((d = l.unmount) == null || d) && !((r = l.static) != null && r) ? P.createElement(At, { "aria-hidden": "true", ...i }) : Z({ ourProps: i, theirProps: l, slot: B, defaultTag: M6, features: W6, visible: p, name: "Tabs.Panel" });
|
|
7131
7131
|
}
|
|
7132
|
-
let
|
|
7133
|
-
function
|
|
7134
|
-
let e = lA(), n = Hn(), d = Dt(), { id: r = n || `headlessui-textarea-${e}`, disabled: u = d || !1, autoFocus: s = !1, invalid: f = !1, ...l } = A, a = Qn(), z =
|
|
7135
|
-
return I()({ ourProps: g, theirProps: l, slot: b, defaultTag:
|
|
7132
|
+
let m6 = E(q6), R7 = E(D6), S7 = E(P6), I7 = E(H6), h7 = E(Z6), Q6 = Object.assign(m6, { Group: R7, List: S7, Panels: I7, Panel: h7 }), L6 = "textarea";
|
|
7133
|
+
function T6(A, t) {
|
|
7134
|
+
let e = lA(), n = Hn(), d = Dt(), { id: r = n || `headlessui-textarea-${e}`, disabled: u = d || !1, autoFocus: s = !1, invalid: f = !1, ...l } = A, a = Qn(), z = Yr(), { isFocused: o, focusProps: v } = at({ autoFocus: s }), { isHovered: c, hoverProps: w } = pt({ isDisabled: u }), g = VA({ ref: t, id: r, "aria-labelledby": a, "aria-describedby": z, "aria-invalid": f ? "true" : void 0, disabled: u || void 0, autoFocus: s }, v, w), b = L(() => ({ disabled: u, invalid: f, hover: c, focus: o, autofocus: s }), [u, f, c, o, s]);
|
|
7135
|
+
return I()({ ourProps: g, theirProps: l, slot: b, defaultTag: L6, name: "Textarea" });
|
|
7136
7136
|
}
|
|
7137
|
-
let
|
|
7138
|
-
function
|
|
7137
|
+
let x6 = E(T6);
|
|
7138
|
+
function V6(A) {
|
|
7139
7139
|
const e = new TextEncoder().encode(A);
|
|
7140
7140
|
return window.crypto.subtle.digest("SHA-256", e).then((n) => Array.from(new Uint8Array(n)).map((u) => u.toString(16).padStart(2, "0")).join(""));
|
|
7141
7141
|
}
|
|
7142
|
-
function
|
|
7142
|
+
function N6({ email: A }) {
|
|
7143
7143
|
const [t, e] = K(
|
|
7144
7144
|
"https://www.gravatar.com/avatar/unknown?d=identicon"
|
|
7145
7145
|
);
|
|
7146
7146
|
return eA(() => {
|
|
7147
7147
|
async function n() {
|
|
7148
|
-
const d = await
|
|
7148
|
+
const d = await V6(A);
|
|
7149
7149
|
e(`https://www.gravatar.com/avatar/${d}?d=identicon`);
|
|
7150
7150
|
}
|
|
7151
7151
|
n();
|
|
@@ -7170,7 +7170,7 @@ function al({
|
|
|
7170
7170
|
/* @__PURE__ */ O("div", { children: /* @__PURE__ */ T(jA.Button, { className: "gw:relative gw:flex gw:rounded-full gw:bg-white gw:focus:gw:outline-none", children: [
|
|
7171
7171
|
/* @__PURE__ */ O("span", { className: "gw:absolute gw:-inset-1.gw:5" }),
|
|
7172
7172
|
/* @__PURE__ */ O("span", { className: "gw:sr-only", children: "Open user menu" }),
|
|
7173
|
-
t ? /* @__PURE__ */ O(
|
|
7173
|
+
t ? /* @__PURE__ */ O(N6, { email: t }) : /* @__PURE__ */ O("strong", { className: "gw:inline-block gw:h-8 gw:w-8 gw:rounded-full gw:overflow-hidden gw:text-nav-black gw:text-xl gw:bg-nav-gray", children: /* @__PURE__ */ O("span", { className: "gw:align-middle", children: A ? A[0].toUpperCase() : "U" }) })
|
|
7174
7174
|
] }) }),
|
|
7175
7175
|
e && e.length > 0 ? /* @__PURE__ */ T(jA.Items, { className: "gw:absolute gw:right-0 gw:z-10 gw:mt-2 gw:w-48 gw:origin-top-right gw:rounded-sm gw:bg-white gw:py-1 gw:shadow-lg gw:ring-1 gw:ring-black gw:ring-opacity-5 gw:focus:gw:outline-none", children: [
|
|
7176
7176
|
e.map((r) => /* @__PURE__ */ O(jA.Item, { children: /* @__PURE__ */ O(
|
|
@@ -7216,8 +7216,8 @@ const tr = {
|
|
|
7216
7216
|
"3xl": "max-w-3xl",
|
|
7217
7217
|
"4xl": "max-w-4xl",
|
|
7218
7218
|
"5xl": "max-w-5xl"
|
|
7219
|
-
},
|
|
7220
|
-
function
|
|
7219
|
+
}, C6 = ["dialog", "alertdialog"];
|
|
7220
|
+
function y6({
|
|
7221
7221
|
opened: A = !1,
|
|
7222
7222
|
onClose: t,
|
|
7223
7223
|
dialogTitle: e,
|
|
@@ -7237,12 +7237,12 @@ function L6({
|
|
|
7237
7237
|
`Invalid size prop: ${z}. Must be one of: 'sx', 'sm', 'md', 'lg', 'xl', '2xl', '4xl', 'full'`
|
|
7238
7238
|
), console.warn(
|
|
7239
7239
|
`Defaulting to '2xl' for size of <Modal modalTitle="${e}" .../>`
|
|
7240
|
-
), z = "2xl"),
|
|
7240
|
+
), z = "2xl"), C6.includes(l) || (console.error(
|
|
7241
7241
|
`Invalid role option for dialog ${l}. Must be one of: 'dialog','alertdialog'`
|
|
7242
7242
|
), console.warn(
|
|
7243
7243
|
`Defaulting to 'dialog' for role of <Modal modalTitle="${e}" .../>`
|
|
7244
7244
|
), l = "dialog"), /* @__PURE__ */ T(
|
|
7245
|
-
|
|
7245
|
+
Gf,
|
|
7246
7246
|
{
|
|
7247
7247
|
open: A,
|
|
7248
7248
|
onClose: t,
|
|
@@ -7253,9 +7253,9 @@ function L6({
|
|
|
7253
7253
|
role: l,
|
|
7254
7254
|
className: Y("gw:relative", "gw:z-200", o),
|
|
7255
7255
|
children: [
|
|
7256
|
-
/* @__PURE__ */ O(
|
|
7256
|
+
/* @__PURE__ */ O(Uf, { className: "gw:fixed gw:inset-0 gw:bg-black/30" }),
|
|
7257
7257
|
/* @__PURE__ */ O("div", { className: "gw:fixed gw:inset-0 gw:w-screen gw:overflow-auto gw:p-4", children: /* @__PURE__ */ O("div", { className: "gw:flex gw:min-h-full gw:items-center gw:justify-center", children: /* @__PURE__ */ T(
|
|
7258
|
-
|
|
7258
|
+
N7,
|
|
7259
7259
|
{
|
|
7260
7260
|
className: Y(
|
|
7261
7261
|
tr[z],
|
|
@@ -7268,7 +7268,7 @@ function L6({
|
|
|
7268
7268
|
),
|
|
7269
7269
|
transition: s,
|
|
7270
7270
|
children: [
|
|
7271
|
-
e && /* @__PURE__ */ O(
|
|
7271
|
+
e && /* @__PURE__ */ O(C7, { className: "gw:font-bold gw:text-center", children: e }),
|
|
7272
7272
|
n && /* @__PURE__ */ O(Pe, { children: n }),
|
|
7273
7273
|
v,
|
|
7274
7274
|
a
|
|
@@ -7328,9 +7328,9 @@ const vl = ({ type: A, className: t, ...e }) => /* @__PURE__ */ O(
|
|
|
7328
7328
|
)
|
|
7329
7329
|
}
|
|
7330
7330
|
);
|
|
7331
|
-
},
|
|
7332
|
-
function
|
|
7333
|
-
const [e, n] = K(!1), d =
|
|
7331
|
+
}, j6 = (...A) => A.filter(Boolean).join(" ");
|
|
7332
|
+
function U6({ link: A, ...t }) {
|
|
7333
|
+
const [e, n] = K(!1), d = j6(
|
|
7334
7334
|
"gw:inline-block gw:relative gw:h-12 gw:inline-flex gw:w-auto gw:justify-center gw:items-center gw:px-3 gw:text-sm gw:text-nowrap",
|
|
7335
7335
|
e ? "gw:bg-nav-dark-gray gw:text-white" : "gw:text-nav-light-gray",
|
|
7336
7336
|
A.children ? "gw:after:content-['▼'] gw:after:text-[10px] gw:after:ml-2" : ""
|
|
@@ -7407,28 +7407,28 @@ function x6({ link: A, ...t }) {
|
|
|
7407
7407
|
}
|
|
7408
7408
|
);
|
|
7409
7409
|
}
|
|
7410
|
-
function
|
|
7410
|
+
function G6({ links: A, ...t }) {
|
|
7411
7411
|
return /* @__PURE__ */ O(
|
|
7412
7412
|
"ul",
|
|
7413
7413
|
{
|
|
7414
7414
|
role: "list",
|
|
7415
7415
|
className: "gw:flex gw:flex-row gw:flex-wrap gw:justify-start gw:m-0 gw:pl-0 gw:w-full",
|
|
7416
7416
|
...t,
|
|
7417
|
-
children: A.map((e) => /* @__PURE__ */ O(
|
|
7417
|
+
children: A.map((e) => /* @__PURE__ */ O(U6, { link: e }, e.id || e.text))
|
|
7418
7418
|
}
|
|
7419
7419
|
);
|
|
7420
7420
|
}
|
|
7421
|
-
const
|
|
7422
|
-
var
|
|
7421
|
+
const Y6 = ({ links: A = [] }) => /* @__PURE__ */ O("div", { className: "gw:hidden gw:md:flex gw:flex-row gw:content-center gw:justify-between gw:w-full gw:min-h-12 gw:pr-3", children: /* @__PURE__ */ O(G6, { links: A }) });
|
|
7422
|
+
var $7 = {
|
|
7423
7423
|
color: void 0,
|
|
7424
7424
|
size: void 0,
|
|
7425
7425
|
className: void 0,
|
|
7426
7426
|
style: void 0,
|
|
7427
7427
|
attr: void 0
|
|
7428
|
-
}, er = P.createContext && /* @__PURE__ */ P.createContext(
|
|
7429
|
-
function
|
|
7428
|
+
}, er = P.createContext && /* @__PURE__ */ P.createContext($7), k6 = ["attr", "size", "title"];
|
|
7429
|
+
function K6(A, t) {
|
|
7430
7430
|
if (A == null) return {};
|
|
7431
|
-
var e =
|
|
7431
|
+
var e = E6(A, t), n, d;
|
|
7432
7432
|
if (Object.getOwnPropertySymbols) {
|
|
7433
7433
|
var r = Object.getOwnPropertySymbols(A);
|
|
7434
7434
|
for (d = 0; d < r.length; d++)
|
|
@@ -7436,7 +7436,7 @@ function y6(A, t) {
|
|
|
7436
7436
|
}
|
|
7437
7437
|
return e;
|
|
7438
7438
|
}
|
|
7439
|
-
function
|
|
7439
|
+
function E6(A, t) {
|
|
7440
7440
|
if (A == null) return {};
|
|
7441
7441
|
var e = {};
|
|
7442
7442
|
for (var n in A)
|
|
@@ -7470,21 +7470,21 @@ function we(A) {
|
|
|
7470
7470
|
for (var t = 1; t < arguments.length; t++) {
|
|
7471
7471
|
var e = arguments[t] != null ? arguments[t] : {};
|
|
7472
7472
|
t % 2 ? nr(Object(e), !0).forEach(function(n) {
|
|
7473
|
-
|
|
7473
|
+
J6(A, n, e[n]);
|
|
7474
7474
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(A, Object.getOwnPropertyDescriptors(e)) : nr(Object(e)).forEach(function(n) {
|
|
7475
7475
|
Object.defineProperty(A, n, Object.getOwnPropertyDescriptor(e, n));
|
|
7476
7476
|
});
|
|
7477
7477
|
}
|
|
7478
7478
|
return A;
|
|
7479
7479
|
}
|
|
7480
|
-
function
|
|
7481
|
-
return t =
|
|
7480
|
+
function J6(A, t, e) {
|
|
7481
|
+
return t = F6(t), t in A ? Object.defineProperty(A, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : A[t] = e, A;
|
|
7482
7482
|
}
|
|
7483
|
-
function
|
|
7484
|
-
var t =
|
|
7483
|
+
function F6(A) {
|
|
7484
|
+
var t = R6(A, "string");
|
|
7485
7485
|
return typeof t == "symbol" ? t : t + "";
|
|
7486
7486
|
}
|
|
7487
|
-
function
|
|
7487
|
+
function R6(A, t) {
|
|
7488
7488
|
if (typeof A != "object" || !A) return A;
|
|
7489
7489
|
var e = A[Symbol.toPrimitive];
|
|
7490
7490
|
if (e !== void 0) {
|
|
@@ -7494,23 +7494,23 @@ function Y6(A, t) {
|
|
|
7494
7494
|
}
|
|
7495
7495
|
return (t === "string" ? String : Number)(A);
|
|
7496
7496
|
}
|
|
7497
|
-
function
|
|
7497
|
+
function _7(A) {
|
|
7498
7498
|
return A && A.map((t, e) => /* @__PURE__ */ P.createElement(t.tag, we({
|
|
7499
7499
|
key: e
|
|
7500
|
-
}, t.attr),
|
|
7500
|
+
}, t.attr), _7(t.child)));
|
|
7501
7501
|
}
|
|
7502
7502
|
function MA(A) {
|
|
7503
|
-
return (t) => /* @__PURE__ */ P.createElement(
|
|
7503
|
+
return (t) => /* @__PURE__ */ P.createElement(S6, oe({
|
|
7504
7504
|
attr: we({}, A.attr)
|
|
7505
|
-
}, t),
|
|
7505
|
+
}, t), _7(A.child));
|
|
7506
7506
|
}
|
|
7507
|
-
function
|
|
7507
|
+
function S6(A) {
|
|
7508
7508
|
var t = (e) => {
|
|
7509
7509
|
var {
|
|
7510
7510
|
attr: n,
|
|
7511
7511
|
size: d,
|
|
7512
7512
|
title: r
|
|
7513
|
-
} = A, u =
|
|
7513
|
+
} = A, u = K6(A, k6), s = d || e.size || "1em", f;
|
|
7514
7514
|
return e.className && (f = e.className), A.className && (f = (f ? f + " " : "") + A.className), /* @__PURE__ */ P.createElement("svg", oe({
|
|
7515
7515
|
stroke: "currentColor",
|
|
7516
7516
|
fill: "currentColor",
|
|
@@ -7525,46 +7525,46 @@ function k6(A) {
|
|
|
7525
7525
|
xmlns: "http://www.w3.org/2000/svg"
|
|
7526
7526
|
}), r && /* @__PURE__ */ P.createElement("title", null, r), A.children);
|
|
7527
7527
|
};
|
|
7528
|
-
return er !== void 0 ? /* @__PURE__ */ P.createElement(er.Consumer, null, (e) => t(e)) : t(
|
|
7528
|
+
return er !== void 0 ? /* @__PURE__ */ P.createElement(er.Consumer, null, (e) => t(e)) : t($7);
|
|
7529
7529
|
}
|
|
7530
|
-
function
|
|
7530
|
+
function I6(A) {
|
|
7531
7531
|
return MA({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M504 256C504 119 393 8 256 8S8 119 8 256c0 123.78 90.69 226.38 209.25 245V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.28c-30.8 0-40.41 19.12-40.41 38.73V256h68.78l-11 71.69h-57.78V501C413.31 482.38 504 379.78 504 256z" }, child: [] }] })(A);
|
|
7532
7532
|
}
|
|
7533
|
-
function
|
|
7533
|
+
function h6(A) {
|
|
7534
7534
|
return MA({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M400 32H48C21.5 32 0 53.5 0 80v352c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V80c0-26.5-21.5-48-48-48zM144.5 319c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5zm159 0c-35.1 0-63.5-28.4-63.5-63.5s28.4-63.5 63.5-63.5 63.5 28.4 63.5 63.5-28.4 63.5-63.5 63.5z" }, child: [] }] })(A);
|
|
7535
7535
|
}
|
|
7536
|
-
function
|
|
7536
|
+
function $6(A) {
|
|
7537
7537
|
return MA({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z" }, child: [] }] })(A);
|
|
7538
7538
|
}
|
|
7539
|
-
function
|
|
7539
|
+
function _6(A) {
|
|
7540
7540
|
return MA({ attr: { viewBox: "0 0 448 512" }, child: [{ tag: "path", attr: { d: "M416 32H31.9C14.3 32 0 46.5 0 64.3v383.4C0 465.5 14.3 480 31.9 480H416c17.6 0 32-14.5 32-32.3V64.3c0-17.8-14.4-32.3-32-32.3zM135.4 416H69V202.2h66.5V416zm-33.2-243c-21.3 0-38.5-17.3-38.5-38.5S80.9 96 102.2 96c21.2 0 38.5 17.3 38.5 38.5 0 21.3-17.2 38.5-38.5 38.5zm282.1 243h-66.4V312c0-24.8-.5-56.7-34.5-56.7-34.6 0-39.9 27-39.9 54.9V416h-66.4V202.2h63.7v29.2h.9c8.9-16.8 30.6-34.5 62.9-34.5 67.2 0 79.7 44.3 79.7 101.9V416z" }, child: [] }] })(A);
|
|
7541
7541
|
}
|
|
7542
|
-
function
|
|
7542
|
+
function A9(A) {
|
|
7543
7543
|
return MA({ attr: { viewBox: "0 0 576 512" }, child: [{ tag: "path", attr: { d: "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z" }, child: [] }] })(A);
|
|
7544
7544
|
}
|
|
7545
|
-
function
|
|
7545
|
+
function t9(A) {
|
|
7546
7546
|
return MA({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M31.3 192h257.3c17.8 0 26.7 21.5 14.1 34.1L174.1 354.8c-7.8 7.8-20.5 7.8-28.3 0L17.2 226.1C4.6 213.5 13.5 192 31.3 192z" }, child: [] }] })(A);
|
|
7547
7547
|
}
|
|
7548
|
-
function
|
|
7548
|
+
function e9(A) {
|
|
7549
7549
|
return MA({ attr: { viewBox: "0 0 320 512" }, child: [{ tag: "path", attr: { d: "M288.662 352H31.338c-17.818 0-26.741-21.543-14.142-34.142l128.662-128.662c7.81-7.81 20.474-7.81 28.284 0l128.662 128.662c12.6 12.599 3.676 34.142-14.142 34.142z" }, child: [] }] })(A);
|
|
7550
7550
|
}
|
|
7551
|
-
const
|
|
7551
|
+
const dr = [
|
|
7552
7552
|
"gw:cursor-pointer gw:relative gw:isolate gw:inline-flex gw:items-center gw:justify-center gw:gap-x-2 gw:font-semibold",
|
|
7553
7553
|
// Disabled
|
|
7554
7554
|
"gw:data-disabled:cursor-not-allowed gw:data-disabled:opacity-50"
|
|
7555
|
-
],
|
|
7555
|
+
], rr = {
|
|
7556
7556
|
xs: "gw:px-2 gw:py-1 gw:text-xs",
|
|
7557
7557
|
sm: "gw:px-3 gw:py-1.5 gw:text-sm",
|
|
7558
7558
|
md: "gw:px-4 gw:py-2 gw:text-sm",
|
|
7559
7559
|
lg: "gw:px-5 gw:py-3 gw:text-base",
|
|
7560
7560
|
xl: "gw:px-6 gw:py-4 gw:text-lg"
|
|
7561
|
-
},
|
|
7561
|
+
}, ur = {
|
|
7562
7562
|
none: "gw:rounded-none",
|
|
7563
7563
|
sm: "gw:rounded-sm",
|
|
7564
7564
|
md: "gw:rounded-md",
|
|
7565
7565
|
lg: "gw:rounded-lg",
|
|
7566
7566
|
xl: "gw:rounded-xl"
|
|
7567
|
-
},
|
|
7567
|
+
}, sr = {
|
|
7568
7568
|
light: "gw:bg-white gw:text-usace-black gw:border gw:border-gray/60 gw:hover:bg-gray-100/80 gw:active:bg-gray-200/70",
|
|
7569
7569
|
dark: "gw:bg-gray-900 gw:text-white gw:border gw:border-gray-900/90 gw:hover:bg-gray-900/90 gw:active:bg-gray-900/80",
|
|
7570
7570
|
primary: "gw:bg-blue-600 gw:text-white gw:border gw:border-blue-700/90 gw:hover:bg-blue-600/90 gw:active:bg-blue-600/80",
|
|
@@ -7592,7 +7592,7 @@ const h6 = [
|
|
|
7592
7592
|
fuchsia: "gw:bg-fuchsia-600 gw:text-white gw:border gw:border-fuchsia-700/90 gw:hover:bg-fuchsia-600/90 gw:active:bg-fuchsia-600/80",
|
|
7593
7593
|
pink: "gw:bg-pink-600 gw:text-white gw:border gw:border-pink-700/90 gw:hover:bg-pink-600/90 gw:active:bg-pink-600/80",
|
|
7594
7594
|
rose: "gw:bg-rose-600 gw:text-white gw:border gw:border-rose-700/90 gw:hover:bg-rose-600/90 gw:active:bg-rose-600/80"
|
|
7595
|
-
},
|
|
7595
|
+
}, fr = {
|
|
7596
7596
|
light: "gw:bg-transparent gw:text-usace-black gw:border gw:border-gray/60 gw:hover:bg-gray-100/80 gw:active:bg-gray-200/70",
|
|
7597
7597
|
dark: "gw:bg-transparent gw:text-usace-black gw:border gw:border-gray-900/90 gw:hover:bg-gray-900 gw:hover:text-white gw:active:bg-gray-200/70",
|
|
7598
7598
|
primary: "gw:bg-transparent gw:text-blue-600 gw:border gw:border-blue-700/90 gw:border gw:border-blue-700/90 gw:hover:bg-blue-600/90 gw:hover:text-white gw:active:bg-blue-600/80",
|
|
@@ -7620,7 +7620,7 @@ const h6 = [
|
|
|
7620
7620
|
fuchsia: "gw:bg-transparent gw:text-fuchsia-600 gw:border gw:border-fuchsia-700/90 gw:hover:bg-fuchsia-600/90 gw:hover:text-white gw:active:bg-fuchsia-600/80",
|
|
7621
7621
|
pink: "gw:bg-transparent gw:text-pink-600 gw:border gw:border-pink-700/90 gw:hover:bg-pink-600/90 gw:hover:text-white gw:active:bg-pink-600/80",
|
|
7622
7622
|
rose: "gw:bg-transparent gw:text-rose-600 gw:border gw:border-rose-700/90 gw:hover:bg-rose-600/90 gw:hover:text-white gw:active:bg-rose-600/80"
|
|
7623
|
-
},
|
|
7623
|
+
}, ar = {
|
|
7624
7624
|
light: "gw:bg-transparent gw:text-gray-600",
|
|
7625
7625
|
dark: "gw:bg-transparent gw:text-usace-black",
|
|
7626
7626
|
primary: "gw:bg-transparent gw:text-blue-600",
|
|
@@ -7660,25 +7660,29 @@ const h6 = [
|
|
|
7660
7660
|
...l
|
|
7661
7661
|
}, a) {
|
|
7662
7662
|
let z = Y(
|
|
7663
|
-
|
|
7664
|
-
|
|
7665
|
-
|
|
7666
|
-
|
|
7667
|
-
|
|
7668
|
-
|
|
7669
|
-
// : gwMerge(styles.solid, styles.colors[color ?? "dark/zinc"]),
|
|
7670
|
-
_6[d],
|
|
7671
|
-
$6[n],
|
|
7672
|
-
t === "filled" ? A9[e] : "",
|
|
7673
|
-
t === "outline" ? t9[e] : "",
|
|
7674
|
-
t === "plain" ? e9[e] : "",
|
|
7663
|
+
dr,
|
|
7664
|
+
ur[d],
|
|
7665
|
+
rr[n],
|
|
7666
|
+
t === "filled" ? sr[e] : "",
|
|
7667
|
+
t === "outline" ? fr[e] : "",
|
|
7668
|
+
t === "plain" ? ar[e] : "",
|
|
7675
7669
|
s
|
|
7676
7670
|
);
|
|
7677
|
-
return
|
|
7678
|
-
|
|
7671
|
+
return console.log(
|
|
7672
|
+
`${dr},
|
|
7673
|
+
${ur[d]},
|
|
7674
|
+
${rr[n]},
|
|
7675
|
+
${t === "filled" ? sr[e] : ""},
|
|
7676
|
+
${t === "outline" ? fr[e] : ""},
|
|
7677
|
+
${t === "plain" ? ar[e] : ""},
|
|
7678
|
+
${s},
|
|
7679
|
+
|
|
7680
|
+
${z},`
|
|
7681
|
+
), "href" in l ? /* @__PURE__ */ O(pA, { ...l, className: z, ref: a, children: /* @__PURE__ */ O(ge, { children: f }) }) : /* @__PURE__ */ O(
|
|
7682
|
+
Nr,
|
|
7679
7683
|
{
|
|
7680
7684
|
...l,
|
|
7681
|
-
className: Y(z, "cursor-
|
|
7685
|
+
className: Y(z, "cursor-pointer"),
|
|
7682
7686
|
ref: a,
|
|
7683
7687
|
children: /* @__PURE__ */ O(ge, { children: f })
|
|
7684
7688
|
}
|
|
@@ -7690,13 +7694,13 @@ function ge({ children: A }) {
|
|
|
7690
7694
|
/* @__PURE__ */ O(
|
|
7691
7695
|
"span",
|
|
7692
7696
|
{
|
|
7693
|
-
className: "gw:absolute gw:left-1/2 gw:top-1/2 gw:size-[max(
|
|
7697
|
+
className: "gw:absolute gw:left-1/2 gw:top-1/2 gw:size-[max(100%,2.75rem)] gw:-translate-x-1/2 gw:-translate-y-1/2 gw:pointer-fine:hidden",
|
|
7694
7698
|
"aria-hidden": "true"
|
|
7695
7699
|
}
|
|
7696
7700
|
)
|
|
7697
7701
|
] });
|
|
7698
7702
|
}
|
|
7699
|
-
function
|
|
7703
|
+
function Au(A) {
|
|
7700
7704
|
return MA({ attr: { viewBox: "0 0 16 16", fill: "currentColor" }, child: [{ tag: "path", attr: { fillRule: "evenodd", clipRule: "evenodd", d: "M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z" }, child: [] }] })(A);
|
|
7701
7705
|
}
|
|
7702
7706
|
function n9(A) {
|
|
@@ -7723,14 +7727,14 @@ function u9({ link: A, close: t }) {
|
|
|
7723
7727
|
onClick: () => {
|
|
7724
7728
|
n(!e);
|
|
7725
7729
|
},
|
|
7726
|
-
children: /* @__PURE__ */ O("span", { className: "gw:flex gw:justify-end", children: A.children && (e ? /* @__PURE__ */ O(
|
|
7730
|
+
children: /* @__PURE__ */ O("span", { className: "gw:flex gw:justify-end", children: A.children && (e ? /* @__PURE__ */ O(e9, {}) : /* @__PURE__ */ O(t9, {})) })
|
|
7727
7731
|
}
|
|
7728
7732
|
)
|
|
7729
7733
|
] }),
|
|
7730
|
-
A.children && e ? /* @__PURE__ */ O("div", { className: "gw:pl-5", children: /* @__PURE__ */ O(
|
|
7734
|
+
A.children && e ? /* @__PURE__ */ O("div", { className: "gw:pl-5", children: /* @__PURE__ */ O(tu, { links: A.children, close: t }) }) : null
|
|
7731
7735
|
] });
|
|
7732
7736
|
}
|
|
7733
|
-
function
|
|
7737
|
+
function tu({ links: A, close: t }) {
|
|
7734
7738
|
return /* @__PURE__ */ O("ul", { className: "gw:flex gw:flex-col", children: A.map((e) => /* @__PURE__ */ O(u9, { link: e, close: t }, e.id || e.text)) });
|
|
7735
7739
|
}
|
|
7736
7740
|
function s9({ links: A = [], onClose: t }) {
|
|
@@ -7739,10 +7743,10 @@ function s9({ links: A = [], onClose: t }) {
|
|
|
7739
7743
|
};
|
|
7740
7744
|
return /* @__PURE__ */ T("div", { className: "gw:fixed gw:top-0 gw:left-0 gw:h-full gw:right-0 gw:bg-nav-black gw:bg-opacity-90 gw:z-50", children: [
|
|
7741
7745
|
/* @__PURE__ */ O("div", { className: "gw:flex gw:justify-end", children: /* @__PURE__ */ O($A, { style: "plain", color: "white", size: "lg", onClick: e, children: /* @__PURE__ */ O(r9, {}) }) }),
|
|
7742
|
-
/* @__PURE__ */ O("div", { className: "gw:relative gw:h-full gw:overflow-y-auto gw:hide-scrollbar", children: /* @__PURE__ */ O(
|
|
7746
|
+
/* @__PURE__ */ O("div", { className: "gw:relative gw:h-full gw:overflow-y-auto gw:hide-scrollbar", children: /* @__PURE__ */ O(tu, { links: A, close: e }) })
|
|
7743
7747
|
] });
|
|
7744
7748
|
}
|
|
7745
|
-
const
|
|
7749
|
+
const eu = "data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20105.52%2080.94'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:%23DE1E2E;}.cls-2{fill:%23fff;}%3c/style%3e%3c/defs%3e%3ctitle%3eusace-logo%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='105.52'%20height='80.94'%20rx='10.67'%20ry='10.67'/%3e%3cpath%20class='cls-2'%20d='M95.07,74.83H11A4.9,4.9,0,0,1,6.1,69.94V11A4.9,4.9,0,0,1,11,6.1H95.07A4.9,4.9,0,0,1,100,11v59A4.89,4.89,0,0,1,95.07,74.83ZM11,8.1A2.9,2.9,0,0,0,8.1,11v59A2.9,2.9,0,0,0,11,72.83H95.07A2.9,2.9,0,0,0,98,69.94V11A2.9,2.9,0,0,0,95.07,8.1Z'/%3e%3cpath%20class='cls-2'%20d='M84.5,52V26.42l4.12-4.12V16.42H83.69v4.33L80,20.68V16.42c0-.05-4.53,0-4.53,0v4.33H71.81V16.42c0-.06-4.87,0-4.87,0V22.3L71,26.42s.06,12.83.06,12.7-10.92,0-10.94,0,0-5.07,0-5.07l2.77-2.77V24.06c0-.14-4.12.06-4.39,0-.09,0,0,4.25,0,4.25H55.06V24.12H50.6a40.46,40.46,0,0,0,.07,4.12H46.82V24.12H42.49c-.13,0,0,7,0,7l3.11,3.11.07,4.86h-11V26.42l3.92-3.92V16.42H33.71v4.33l-3.78-.07V16.42H25.68s0,4.34,0,4.33-3.45-.07-3.78-.07V16.42s-4.93-.06-4.93,0v6.22l3.78,3.71V52.83s-3.92,3.85-3.92,4,.07,6.42.07,6.42H89V56.48ZM29.19,56.41h-3V45.74h3Zm.07-17.29h-3V28.45h3ZM41.08,53.23h-3V45.67h3ZM60.8,60.66H45.74V50.06s2.89-7.51,7.16-7.57l.13,0,.14-.15.17.17c4.65.38,7.46,7.53,7.46,7.53Zm7.29-7.36h-3V45.74h3Zm11.75,3.11h-3V45.74h3ZM80,37.9H77V27.23h3Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
7746
7750
|
function f9(A) {
|
|
7747
7751
|
return MA({ attr: { viewBox: "0 0 512 512" }, child: [{ tag: "path", attr: { d: "M32 96v64h448V96H32zm0 128v64h448v-64H32zm0 128v64h448v-64H32z" }, child: [] }] })(A);
|
|
7748
7752
|
}
|
|
@@ -7765,7 +7769,7 @@ function l9() {
|
|
|
7765
7769
|
"img",
|
|
7766
7770
|
{
|
|
7767
7771
|
className: "gw:w-[50px] gw:sm:w-[60px] gw:h-auto",
|
|
7768
|
-
src:
|
|
7772
|
+
src: eu,
|
|
7769
7773
|
alt: "U.S. Army Corps of Engineers",
|
|
7770
7774
|
"aria-label": "Visit the homepage of this site"
|
|
7771
7775
|
}
|
|
@@ -7782,7 +7786,7 @@ function v9({ links: A, title: t, subtitle: e, navRight: n, fluidNav: d }) {
|
|
|
7782
7786
|
/* @__PURE__ */ O("header", { className: "gw:flex gw:flex-col gw:w-full gw:sticky gw:top-0 gw:z-20", children: /* @__PURE__ */ T("div", { children: [
|
|
7783
7787
|
/* @__PURE__ */ O("div", { className: "gw:min-h-12 gw:bg-nav-black gw:text-white", children: /* @__PURE__ */ O("div", { className: s, children: /* @__PURE__ */ T("div", { className: "gw:flex gw:justify-between gw:items-center", children: [
|
|
7784
7788
|
/* @__PURE__ */ O(l9, {}),
|
|
7785
|
-
/* @__PURE__ */ O(
|
|
7789
|
+
/* @__PURE__ */ O(Y6, { links: A }),
|
|
7786
7790
|
/* @__PURE__ */ O("span", { className: "gw:flex gw:flex-row-reverse gw:justify-end gw:items-center gw:w-full gw:md:max-w-[300px] gw:mr-2", children: n || null }),
|
|
7787
7791
|
/* @__PURE__ */ O(
|
|
7788
7792
|
$A,
|
|
@@ -7850,7 +7854,7 @@ function p9({ army: A, army250: t, usace: e, usace250: n, rsgis: d, cwbi: r }) {
|
|
|
7850
7854
|
e && /* @__PURE__ */ O("a", { href: "https://www.usace.army.mil", target: "_blank", rel: "noopener", children: /* @__PURE__ */ O(
|
|
7851
7855
|
"img",
|
|
7852
7856
|
{
|
|
7853
|
-
src:
|
|
7857
|
+
src: eu,
|
|
7854
7858
|
"aria-label": "U.S. Army Corps of Engineers",
|
|
7855
7859
|
alt: "U.S. Army Corps of Engineers",
|
|
7856
7860
|
className: "gw:max-h-[75px] gw:h-[75px] gw:w-auto"
|
|
@@ -7920,7 +7924,7 @@ function X9({
|
|
|
7920
7924
|
target: "_blank",
|
|
7921
7925
|
rel: "noopener noreferrer",
|
|
7922
7926
|
title: "Facebook",
|
|
7923
|
-
children: /* @__PURE__ */ O(
|
|
7927
|
+
children: /* @__PURE__ */ O(I6, {})
|
|
7924
7928
|
}
|
|
7925
7929
|
) }),
|
|
7926
7930
|
t && /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
@@ -7940,7 +7944,7 @@ function X9({
|
|
|
7940
7944
|
target: "_blank",
|
|
7941
7945
|
rel: "noopener noreferrer",
|
|
7942
7946
|
title: "YouTube",
|
|
7943
|
-
children: /* @__PURE__ */ O(
|
|
7947
|
+
children: /* @__PURE__ */ O(A9, {})
|
|
7944
7948
|
}
|
|
7945
7949
|
) }),
|
|
7946
7950
|
n && /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
@@ -7950,7 +7954,7 @@ function X9({
|
|
|
7950
7954
|
target: "_blank",
|
|
7951
7955
|
rel: "noopener noreferrer",
|
|
7952
7956
|
title: "Flickr",
|
|
7953
|
-
children: /* @__PURE__ */ O(
|
|
7957
|
+
children: /* @__PURE__ */ O(h6, {})
|
|
7954
7958
|
}
|
|
7955
7959
|
) }),
|
|
7956
7960
|
d && /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
@@ -7960,7 +7964,7 @@ function X9({
|
|
|
7960
7964
|
target: "_blank",
|
|
7961
7965
|
rel: "noopener noreferrer",
|
|
7962
7966
|
title: "Instagram",
|
|
7963
|
-
children: /* @__PURE__ */ O(
|
|
7967
|
+
children: /* @__PURE__ */ O($6, {})
|
|
7964
7968
|
}
|
|
7965
7969
|
) }),
|
|
7966
7970
|
r && /* @__PURE__ */ O("li", { children: /* @__PURE__ */ O(
|
|
@@ -7970,12 +7974,12 @@ function X9({
|
|
|
7970
7974
|
target: "_blank",
|
|
7971
7975
|
rel: "noopener noreferrer",
|
|
7972
7976
|
title: "LinkedIn",
|
|
7973
|
-
children: /* @__PURE__ */ O(
|
|
7977
|
+
children: /* @__PURE__ */ O(_6, {})
|
|
7974
7978
|
}
|
|
7975
7979
|
) })
|
|
7976
7980
|
] });
|
|
7977
7981
|
}
|
|
7978
|
-
function
|
|
7982
|
+
function lr({ links: A = [], columnCount: t = 2 }) {
|
|
7979
7983
|
return /* @__PURE__ */ O(
|
|
7980
7984
|
"ul",
|
|
7981
7985
|
{
|
|
@@ -8024,7 +8028,7 @@ function P9({
|
|
|
8024
8028
|
return /* @__PURE__ */ T("footer", { className: "gw:relative gw:text-footer-light-gray gw:text-sm gw:bg-footer-black gw:border-t-gray-600 gw:border-t-4 gw:pb-[128px]", children: [
|
|
8025
8029
|
/* @__PURE__ */ O(z9, {}),
|
|
8026
8030
|
/* @__PURE__ */ T("div", { className: "gw:bg-footer-gray gw:pt-8 gw:pb-16", children: [
|
|
8027
|
-
/* @__PURE__ */ O(
|
|
8031
|
+
/* @__PURE__ */ O(br, { fluid: A, children: /* @__PURE__ */ T("div", { className: "gw:grid gw:grid-cols-12 gw:gap-2 gw:lg:gap-10", children: [
|
|
8028
8032
|
/* @__PURE__ */ O("div", { className: "gw:col-span-12 gw:lg:col-span-6", children: /* @__PURE__ */ T("div", { className: "gw:grid gw:grid-cols-12 gw:gap-2", children: [
|
|
8029
8033
|
/* @__PURE__ */ O("div", { className: "gw:col-span-12 gw:lg:col-span-12", children: t && /* @__PURE__ */ T(KA, { children: [
|
|
8030
8034
|
/* @__PURE__ */ O("h2", { className: "gw:text-lg", children: "Our Mission" }),
|
|
@@ -8047,9 +8051,9 @@ function P9({
|
|
|
8047
8051
|
linkedIn: f
|
|
8048
8052
|
}
|
|
8049
8053
|
),
|
|
8050
|
-
/* @__PURE__ */ O(
|
|
8054
|
+
/* @__PURE__ */ O(lr, { links: l })
|
|
8051
8055
|
] }),
|
|
8052
|
-
/* @__PURE__ */ O("div", { className: "gw:col-span-8 gw:md:mt-20 gw:lg:mt-14 gw:md:col-span-2", children: /* @__PURE__ */ O(
|
|
8056
|
+
/* @__PURE__ */ O("div", { className: "gw:col-span-8 gw:md:mt-20 gw:lg:mt-14 gw:md:col-span-2", children: /* @__PURE__ */ O(lr, { links: a, columnCount: 1 }) })
|
|
8053
8057
|
] }) }),
|
|
8054
8058
|
/* @__PURE__ */ O(
|
|
8055
8059
|
p9,
|
|
@@ -8153,8 +8157,8 @@ function i9(A, t = " - ") {
|
|
|
8153
8157
|
}
|
|
8154
8158
|
return n(A), e;
|
|
8155
8159
|
}
|
|
8156
|
-
const ud = 3,
|
|
8157
|
-
function
|
|
8160
|
+
const ud = 3, nu = `Maximum sidebar nesting level of ${ud} is exceeded for %s. To ensure a clean and readable sidebar, please reduce the nesting level of your links by moving some of them to the top level.`;
|
|
8161
|
+
function du({
|
|
8158
8162
|
link: A,
|
|
8159
8163
|
selectedPath: t,
|
|
8160
8164
|
enablePopout: e,
|
|
@@ -8167,7 +8171,7 @@ function $7({
|
|
|
8167
8171
|
"maxScrollHeight must be a string. Something like '50vh' or '100px'. Defaulting to '50vh'"
|
|
8168
8172
|
), d = "50vh");
|
|
8169
8173
|
const u = t === (A == null ? void 0 : A.href);
|
|
8170
|
-
return r > ud ? (console.error(
|
|
8174
|
+
return r > ud ? (console.error(nu.replaceAll("%s", A == null ? void 0 : A.text)), null) : /* @__PURE__ */ O("div", { className: "gw:py-2 gw:border-b gw:hover:bg-gray-100", children: A != null && A.children ? /* @__PURE__ */ T(
|
|
8171
8175
|
x9,
|
|
8172
8176
|
{
|
|
8173
8177
|
title: A == null ? void 0 : A.text,
|
|
@@ -8191,7 +8195,7 @@ function $7({
|
|
|
8191
8195
|
className: "gw:overflow-y-auto",
|
|
8192
8196
|
style: { maxHeight: d },
|
|
8193
8197
|
children: (s = A == null ? void 0 : A.children) == null ? void 0 : s.map(
|
|
8194
|
-
(f) =>
|
|
8198
|
+
(f) => du({
|
|
8195
8199
|
link: f,
|
|
8196
8200
|
selectedPath: t,
|
|
8197
8201
|
enablePopout: e,
|
|
@@ -8216,9 +8220,9 @@ function $7({
|
|
|
8216
8220
|
A == null ? void 0 : A.id
|
|
8217
8221
|
) }, A == null ? void 0 : A.id);
|
|
8218
8222
|
}
|
|
8219
|
-
function
|
|
8223
|
+
function ru(A, t, e = 0) {
|
|
8220
8224
|
const n = t === (A == null ? void 0 : A.href), d = { paddingLeft: `${e * 20}px` };
|
|
8221
|
-
return e > ud ? (console.error(
|
|
8225
|
+
return e > ud ? (console.error(nu.replaceAll("%s", A == null ? void 0 : A.text)), null) : /* @__PURE__ */ T("div", { children: [
|
|
8222
8226
|
/* @__PURE__ */ O(pA, { href: A == null ? void 0 : A.href, target: A == null ? void 0 : A.target, rel: A == null ? void 0 : A.rel, children: /* @__PURE__ */ T(
|
|
8223
8227
|
"div",
|
|
8224
8228
|
{
|
|
@@ -8231,7 +8235,7 @@ function _7(A, t, e = 0) {
|
|
|
8231
8235
|
}
|
|
8232
8236
|
) }),
|
|
8233
8237
|
(A == null ? void 0 : A.children) && /* @__PURE__ */ O("div", { children: A == null ? void 0 : A.children.map(
|
|
8234
|
-
(r) =>
|
|
8238
|
+
(r) => ru(r, t, e + 1)
|
|
8235
8239
|
) })
|
|
8236
8240
|
] }, A == null ? void 0 : A.id);
|
|
8237
8241
|
}
|
|
@@ -8290,13 +8294,13 @@ function zl({
|
|
|
8290
8294
|
}
|
|
8291
8295
|
);
|
|
8292
8296
|
}
|
|
8293
|
-
return /* @__PURE__ */ O(Od, { ref: s, title: A, id: "sidebar", children: e.map((l) => n ?
|
|
8297
|
+
return /* @__PURE__ */ O(Od, { ref: s, title: A, id: "sidebar", children: e.map((l) => n ? du({
|
|
8294
8298
|
link: l,
|
|
8295
8299
|
selectedPath: t,
|
|
8296
8300
|
enablePopout: n,
|
|
8297
8301
|
maxScrollHeight: r,
|
|
8298
8302
|
popoutDirection: d
|
|
8299
|
-
}) :
|
|
8303
|
+
}) : ru(l, t)) });
|
|
8300
8304
|
}
|
|
8301
8305
|
const H9 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAALCAMAAABBPP0LAAAAG1BMVEUdM7EeNLIeM7HgQCDaPh/bPh/bPx/////bPyBEby41AAAAUElEQVQI123MNw4CABDEwD3jC/9/MQ1BQrgeOSkIqYe2o2FZtthXgQLgbHVMZdlsfUQFQnHtjP1+8BUhBDKOqtmfot6ojqPzR7TjdU+f6vkED+IDPhTBcMAAAAAASUVORK5CYII=", M9 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3e%3ctitle%3eicon-dot-gov%3c/title%3e%3cpath%20fill='%232378C3'%20fill-rule='evenodd'%20d='M32%200c17.673%200%2032%2014.327%2032%2032%200%2017.673-14.327%2032-32%2032C14.327%2064%200%2049.673%200%2032%200%2014.327%2014.327%200%2032%200zm0%201.208C14.994%201.208%201.208%2014.994%201.208%2032S14.994%2062.792%2032%2062.792%2062.792%2049.006%2062.792%2032%2049.006%201.208%2032%201.208zm10.59%2038.858a.857.857%200%200%201%20.882.822v1.642H18.886v-1.642a.857.857%200%200%201%20.882-.822H42.59zM25.443%2027.774v9.829h1.642v-9.83h3.273v9.83H32v-9.83h3.272v9.83h1.643v-9.83h3.272v9.83h.76a.857.857%200%200%201%20.882.821v.821h-21.3v-.809a.857.857%200%200%201%20.88-.82h.762v-9.842h3.272zm5.736-8.188l12.293%204.915v1.642h-1.63a.857.857%200%200%201-.882.822H21.41a.857.857%200%200%201-.882-.822h-1.642v-1.642l12.293-4.915z'/%3e%3c/svg%3e", W9 = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20xmlns='http://www.w3.org/2000/svg'%20width='64'%20height='64'%20viewBox='0%200%2064%2064'%3e%3ctitle%3eicon-https%3c/title%3e%3cpath%20fill='%23719F2A'%20fill-rule='evenodd'%20d='M32%200c17.673%200%2032%2014.327%2032%2032%200%2017.673-14.327%2032-32%2032C14.327%2064%200%2049.673%200%2032%200%2014.327%2014.327%200%2032%200zm0%201.208C14.994%201.208%201.208%2014.994%201.208%2032S14.994%2062.792%2032%2062.792%2062.792%2049.006%2062.792%2032%2049.006%201.208%2032%201.208zm0%2018.886a7.245%207.245%200%200%201%207.245%207.245v3.103h.52c.86%200%201.557.698%201.557%201.558v9.322c0%20.86-.697%201.558-1.557%201.558h-15.53c-.86%200-1.557-.697-1.557-1.558V32c0-.86.697-1.558%201.557-1.558h.52V27.34A7.245%207.245%200%200%201%2032%2020.094zm0%203.103a4.142%204.142%200%200%200-4.142%204.142v3.103h8.284V27.34A4.142%204.142%200%200%200%2032%2023.197z'/%3e%3c/svg%3e";
|
|
8302
8306
|
function Z9(...A) {
|
|
@@ -8471,7 +8475,7 @@ function T9({ warningTimeout: A }) {
|
|
|
8471
8475
|
return eA(() => {
|
|
8472
8476
|
t || L9();
|
|
8473
8477
|
}, [t]), /* @__PURE__ */ O(
|
|
8474
|
-
|
|
8478
|
+
y6,
|
|
8475
8479
|
{
|
|
8476
8480
|
opened: t,
|
|
8477
8481
|
onClose: () => e(!1),
|
|
@@ -8594,7 +8598,7 @@ function gl({ onDelete: A, alignConfirm: t = "right" }) {
|
|
|
8594
8598
|
];
|
|
8595
8599
|
return /* @__PURE__ */ O("div", { className: "gw:flex gw:gap-2", children: e ? /* @__PURE__ */ O(KA, { children: t === "right" ? s : s.reverse() }) : /* @__PURE__ */ O($A, { color: "red", onClick: d, children: "Delete" }) });
|
|
8596
8600
|
}
|
|
8597
|
-
const
|
|
8601
|
+
const vr = ["right", "left", "top", "bottom"];
|
|
8598
8602
|
function x9({
|
|
8599
8603
|
title: A,
|
|
8600
8604
|
children: t,
|
|
@@ -8602,9 +8606,9 @@ function x9({
|
|
|
8602
8606
|
className: n = "",
|
|
8603
8607
|
direction: d = "right"
|
|
8604
8608
|
}) {
|
|
8605
|
-
if (d = d.toLowerCase(), !
|
|
8609
|
+
if (d = d.toLowerCase(), !vr.includes(d))
|
|
8606
8610
|
throw new Error(
|
|
8607
|
-
`Invalid direction in component <Popover direction="${d}". Valid directions are: ${
|
|
8611
|
+
`Invalid direction in component <Popover direction="${d}". Valid directions are: ${vr.join(
|
|
8608
8612
|
", "
|
|
8609
8613
|
)}`
|
|
8610
8614
|
);
|
|
@@ -8617,10 +8621,10 @@ function x9({
|
|
|
8617
8621
|
right: rd,
|
|
8618
8622
|
left: n9,
|
|
8619
8623
|
top: d9,
|
|
8620
|
-
bottom:
|
|
8624
|
+
bottom: Au
|
|
8621
8625
|
}[d];
|
|
8622
8626
|
return /* @__PURE__ */ O(
|
|
8623
|
-
|
|
8627
|
+
l6,
|
|
8624
8628
|
{
|
|
8625
8629
|
name: "gw:popout-menu",
|
|
8626
8630
|
style: { zIndex: e * 10 + 100 },
|
|
@@ -8630,7 +8634,7 @@ function x9({
|
|
|
8630
8634
|
),
|
|
8631
8635
|
children: ({ open: s }) => /* @__PURE__ */ T(KA, { children: [
|
|
8632
8636
|
/* @__PURE__ */ T(
|
|
8633
|
-
|
|
8637
|
+
K7,
|
|
8634
8638
|
{
|
|
8635
8639
|
style: { zIndex: e * 10 + 110 },
|
|
8636
8640
|
className: "gw:inline-flex gw:w-full gw:items-center gw:justify-between gw:leading-6 gw:ps-1 gw:focus:outline-hidden",
|
|
@@ -8648,7 +8652,7 @@ function x9({
|
|
|
8648
8652
|
}
|
|
8649
8653
|
),
|
|
8650
8654
|
s && /* @__PURE__ */ O(
|
|
8651
|
-
|
|
8655
|
+
E7,
|
|
8652
8656
|
{
|
|
8653
8657
|
transition: "true",
|
|
8654
8658
|
className: `${e ? "gw:fixed" : "gw:absolute"} gw:max-w-[50vw] gw:mt-2 gw:w-56 gw:shrink gw:rounded-xl gw:bg-white gw:text-sm gw:leading-6 gw:text-gray-900 gw:shadow-lg gw:ring-1 gw:ring-gray-900/5 ${r[d]}`,
|
|
@@ -8752,7 +8756,7 @@ function pl({
|
|
|
8752
8756
|
}
|
|
8753
8757
|
),
|
|
8754
8758
|
d && /* @__PURE__ */ O("div", { className: "gw:absolute gw:inset-0 gw:flex gw:items-center gw:justify-center", children: d }),
|
|
8755
|
-
A && /* @__PURE__ */ O(
|
|
8759
|
+
A && /* @__PURE__ */ O(br, { className: "gw:relative", children: /* @__PURE__ */ O("div", { className: "gw:absolute gw:bottom-0 gw:left-0 gw:max-w-7xl gw:mx-auto gw:px-4", children: /* @__PURE__ */ T("div", { className: "gw:pb-8", children: [
|
|
8756
8760
|
/* @__PURE__ */ O("h1", { className: "gw:text-4xl gw:font-extrabold gw:tracking-tight gw:text-white gw:sm:text-5xl gw:lg:text-6xl", children: A }),
|
|
8757
8761
|
/* @__PURE__ */ O("p", { className: "gw:mt-1 gw:text-xl gw:text-zinc-200", children: t })
|
|
8758
8762
|
] }) }) })
|
|
@@ -8799,9 +8803,9 @@ function Xl({ className: A, children: t }) {
|
|
|
8799
8803
|
] });
|
|
8800
8804
|
}
|
|
8801
8805
|
function Pl({ tabs: A, fill: t = !1, defaultIndex: e = 0 }) {
|
|
8802
|
-
return /* @__PURE__ */ T(
|
|
8803
|
-
/* @__PURE__ */ O(
|
|
8804
|
-
|
|
8806
|
+
return /* @__PURE__ */ T(R7, { defaultIndex: e, children: [
|
|
8807
|
+
/* @__PURE__ */ O(S7, { className: "gw:flex gw:flex-wrap gw:gap-x-1 gw:text-gray-500 gw:font-semibold gw:border-b-2 gw:border-gray-300", children: A.map((n, d) => /* @__PURE__ */ O(
|
|
8808
|
+
Q6,
|
|
8805
8809
|
{
|
|
8806
8810
|
onClick: typeof n.onClick == "function" ? n.onClick : void 0,
|
|
8807
8811
|
className: ({ selected: r }) => Y("gw:px-4 gw:py-2 gw:shadow gw:hover:bg-gray-100", t ? "gw:flex-auto" : "", r ? "gw:bg-gray-50" : ""),
|
|
@@ -8819,7 +8823,7 @@ function Pl({ tabs: A, fill: t = !1, defaultIndex: e = 0 }) {
|
|
|
8819
8823
|
},
|
|
8820
8824
|
d
|
|
8821
8825
|
)) }),
|
|
8822
|
-
/* @__PURE__ */ O(
|
|
8826
|
+
/* @__PURE__ */ O(I7, { children: A.map((n) => /* @__PURE__ */ O(h7, { className: "gw:bg-white gw:p-0", children: n.content }, n.name)) })
|
|
8823
8827
|
] });
|
|
8824
8828
|
}
|
|
8825
8829
|
const y9 = {
|
|
@@ -8842,7 +8846,7 @@ const y9 = {
|
|
|
8842
8846
|
rose: "gw:bg-rose-400/15 gw:text-rose-700 gw:group-data-hover:bg-rose-400/25 gw:dark:bg-rose-400/10 gw:dark:text-rose-400 gw:dark:group-data-hover:bg-rose-400/20",
|
|
8843
8847
|
zinc: "gw:bg-zinc-600/10 gw:text-zinc-700 gw:group-data-hover:bg-zinc-600/20 gw:dark:bg-white/5 gw:dark:text-zinc-400 gw:dark:group-data-hover:bg-white/10"
|
|
8844
8848
|
};
|
|
8845
|
-
function
|
|
8849
|
+
function Or({ color: A = "zinc", className: t, ...e }) {
|
|
8846
8850
|
const n = L(() => Y(
|
|
8847
8851
|
"gw:inline-flex gw:items-center gw:gap-x-1.5 gw:rounded-md gw:px-1.5 gw:py-0.5 gw:text-sm/5 gw:font-medium gw:sm:text-xs/5 gw:forced-colors:outline",
|
|
8848
8852
|
y9[A],
|
|
@@ -8855,7 +8859,7 @@ const Bl = P.forwardRef(function({ color: t = "zinc", className: e, children: n,
|
|
|
8855
8859
|
"gw:group gw:relative gw:inline-flex gw:rounded-md gw:focus:outline-hidden gw:data-focus:outline gw:data-focus:outline-2 gw:data-focus:outline-offset-2 gw:data-focus:outline-blue-500",
|
|
8856
8860
|
e
|
|
8857
8861
|
), [e]);
|
|
8858
|
-
return "href" in d ? /* @__PURE__ */ O(pA, { ...d, className: u, ref: r, children: /* @__PURE__ */ O(ge, { children: /* @__PURE__ */ O(
|
|
8862
|
+
return "href" in d ? /* @__PURE__ */ O(pA, { ...d, className: u, ref: r, children: /* @__PURE__ */ O(ge, { children: /* @__PURE__ */ O(Or, { color: t, children: n }) }) }) : /* @__PURE__ */ O(Nr, { ...d, className: u, ref: r, children: /* @__PURE__ */ O(ge, { children: /* @__PURE__ */ O(Or, { color: t, children: n }) }) });
|
|
8859
8863
|
});
|
|
8860
8864
|
function ql({
|
|
8861
8865
|
heading: A,
|
|
@@ -8875,7 +8879,7 @@ function ql({
|
|
|
8875
8879
|
),
|
|
8876
8880
|
children: [
|
|
8877
8881
|
A,
|
|
8878
|
-
r ? /* @__PURE__ */ O(
|
|
8882
|
+
r ? /* @__PURE__ */ O(Au, {}) : /* @__PURE__ */ O(rd, {})
|
|
8879
8883
|
]
|
|
8880
8884
|
}
|
|
8881
8885
|
),
|
|
@@ -8903,7 +8907,7 @@ const j9 = ["date", "datetime-local", "month", "time", "week"], il = Ht(function
|
|
|
8903
8907
|
t
|
|
8904
8908
|
]),
|
|
8905
8909
|
children: /* @__PURE__ */ O(
|
|
8906
|
-
|
|
8910
|
+
Oa,
|
|
8907
8911
|
{
|
|
8908
8912
|
ref: n,
|
|
8909
8913
|
className: Y([
|
|
@@ -8943,19 +8947,19 @@ const j9 = ["date", "datetime-local", "month", "time", "week"], il = Ht(function
|
|
|
8943
8947
|
}
|
|
8944
8948
|
);
|
|
8945
8949
|
});
|
|
8946
|
-
function
|
|
8950
|
+
function uu({ className: A, ...t }) {
|
|
8947
8951
|
const e = L(() => Y(
|
|
8948
8952
|
"gw:[&>*+[data-slot=control]]:mt-6 gw:*:data-[slot=text]:mt-1",
|
|
8949
8953
|
A
|
|
8950
8954
|
), [A]);
|
|
8951
|
-
return /* @__PURE__ */ O(
|
|
8955
|
+
return /* @__PURE__ */ O(aa, { ...t, className: e });
|
|
8952
8956
|
}
|
|
8953
8957
|
function Hl({ ...A }) {
|
|
8954
8958
|
const t = L(() => Y(
|
|
8955
8959
|
"gw:text-base/6 gw:font-semibold gw:text-zinc-950 gw:data-disabled:opacity-50 gw:sm:text-sm/6 gw:dark:text-white",
|
|
8956
8960
|
A.className
|
|
8957
8961
|
), [A.className]);
|
|
8958
|
-
return /* @__PURE__ */ O(
|
|
8962
|
+
return /* @__PURE__ */ O(ca, { ...A, "data-slot": "legend", className: t });
|
|
8959
8963
|
}
|
|
8960
8964
|
function Ml({ className: A, ...t }) {
|
|
8961
8965
|
const e = L(() => Y("gw:space-y-8", A), [A]);
|
|
@@ -8971,14 +8975,14 @@ function Wl({ className: A, ...t }) {
|
|
|
8971
8975
|
"gw:*:data-[slot=label]:font-medium",
|
|
8972
8976
|
A
|
|
8973
8977
|
), [A]);
|
|
8974
|
-
return /* @__PURE__ */ O(
|
|
8978
|
+
return /* @__PURE__ */ O(ua, { className: e, ...t });
|
|
8975
8979
|
}
|
|
8976
8980
|
function Zl({ className: A, ...t }) {
|
|
8977
8981
|
const e = L(() => Y(
|
|
8978
8982
|
"gw:select-none gw:text-base/6 gw:text-zinc-950 gw:data-disabled:opacity-50 gw:sm:text-sm/6 gw:dark:text-white",
|
|
8979
8983
|
A
|
|
8980
8984
|
), [A]);
|
|
8981
|
-
return /* @__PURE__ */ O(
|
|
8985
|
+
return /* @__PURE__ */ O(kr, { ...t, "data-slot": "label", className: e });
|
|
8982
8986
|
}
|
|
8983
8987
|
function ml({ className: A, disabled: t, ...e }) {
|
|
8984
8988
|
const n = L(() => Y(
|
|
@@ -9027,7 +9031,7 @@ const Ll = Ht(function({ className: t, resizable: e = !0, ...n }, d) {
|
|
|
9027
9031
|
"gw:has-data-disabled:opacity-50 gw:has-data-disabled:before:bg-zinc-950/5 gw:has-data-disabled:before:shadow-none"
|
|
9028
9032
|
]),
|
|
9029
9033
|
children: /* @__PURE__ */ O(
|
|
9030
|
-
|
|
9034
|
+
x6,
|
|
9031
9035
|
{
|
|
9032
9036
|
ref: d,
|
|
9033
9037
|
className: Y([
|
|
@@ -9063,7 +9067,7 @@ function U9({
|
|
|
9063
9067
|
...r
|
|
9064
9068
|
}) {
|
|
9065
9069
|
if (!t) throw new Error("content is required for radio group!");
|
|
9066
|
-
return /* @__PURE__ */ T(
|
|
9070
|
+
return /* @__PURE__ */ T(uu, { className: Y("gw:my-2", d), ...r, children: [
|
|
9067
9071
|
A && /* @__PURE__ */ O("legend", { className: "gw:text-sm/6 gw:font-semibold gw:text-gray-900", children: A }),
|
|
9068
9072
|
e && /* @__PURE__ */ O("p", { className: "gw:mt-1 gw:text-sm/6 gw:text-gray-600", children: e }),
|
|
9069
9073
|
/* @__PURE__ */ O("div", { className: "gw:mt-6 gw:space-y-6", children: t.map((u, s) => {
|
|
@@ -9110,7 +9114,7 @@ U9.defaultProps = {
|
|
|
9110
9114
|
function Tl({ content: A, legend: t, className: e, ...n }) {
|
|
9111
9115
|
return !A || !Array.isArray(A) || A.length === 0 ? (console.warn(
|
|
9112
9116
|
"Checkboxes component requires a non-empty array of content items."
|
|
9113
|
-
), null) : /* @__PURE__ */ T(
|
|
9117
|
+
), null) : /* @__PURE__ */ T(uu, { className: e, ...n, children: [
|
|
9114
9118
|
t && /* @__PURE__ */ O("legend", { className: "gw:sr-only", children: t }),
|
|
9115
9119
|
A.map((d, r) => {
|
|
9116
9120
|
var u;
|
|
@@ -9200,7 +9204,7 @@ function Tl({ content: A, legend: t, className: e, ...n }) {
|
|
|
9200
9204
|
}
|
|
9201
9205
|
export {
|
|
9202
9206
|
ql as Accordion,
|
|
9203
|
-
|
|
9207
|
+
Or as Badge,
|
|
9204
9208
|
Bl as BadgeButton,
|
|
9205
9209
|
Dl as BreadcrumbItem,
|
|
9206
9210
|
Xl as Breadcrumbs,
|
|
@@ -9208,7 +9212,7 @@ export {
|
|
|
9208
9212
|
rl as Card,
|
|
9209
9213
|
Tl as Checkboxes,
|
|
9210
9214
|
R9 as Code,
|
|
9211
|
-
|
|
9215
|
+
br as Container,
|
|
9212
9216
|
gl as DeleteConfirm,
|
|
9213
9217
|
ml as Description,
|
|
9214
9218
|
ll as Divider,
|
|
@@ -9216,7 +9220,7 @@ export {
|
|
|
9216
9220
|
Ql as ErrorMessage,
|
|
9217
9221
|
Wl as Field,
|
|
9218
9222
|
Ml as FieldGroup,
|
|
9219
|
-
|
|
9223
|
+
uu as Fieldset,
|
|
9220
9224
|
P9 as Footer,
|
|
9221
9225
|
S9 as H1,
|
|
9222
9226
|
I9 as H2,
|
|
@@ -9230,7 +9234,7 @@ export {
|
|
|
9230
9234
|
E9 as Link,
|
|
9231
9235
|
K9 as LinkProvider,
|
|
9232
9236
|
ol as LoginButton,
|
|
9233
|
-
|
|
9237
|
+
y6 as Modal,
|
|
9234
9238
|
wl as OkCancel,
|
|
9235
9239
|
x9 as PopoutMenu,
|
|
9236
9240
|
al as ProfileDropdown,
|