@blakesteve/roster 2.2.0 → 2.3.0
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/components/organisms/Navbar/Navbar.d.ts +2 -1
- package/dist/roster.cjs.js +9 -9
- package/dist/roster.es.js +866 -854
- package/package.json +1 -1
package/dist/roster.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
2
|
+
import * as j from "react";
|
|
3
|
+
import $, { useRef as Y, useCallback as ie, useEffect as me, useState as ae, useMemo as ye, useLayoutEffect as Ko, useContext as fe, createContext as Ce, forwardRef as qo, isValidElement as Xo, cloneElement as zl, createElement as cf, Fragment as Ie, useId as xe, useSyncExternalStore as df, useReducer as ff, createRef as gf } from "react";
|
|
4
4
|
import * as Bn from "react-dom";
|
|
5
5
|
import { flushSync as nr, createPortal as Hl } from "react-dom";
|
|
6
6
|
var En = { exports: {} }, _r = {};
|
|
@@ -30,12 +30,12 @@ var Tr = {};
|
|
|
30
30
|
var Xi;
|
|
31
31
|
function pf() {
|
|
32
32
|
return Xi || (Xi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
33
|
-
function e(
|
|
34
|
-
if (
|
|
35
|
-
if (typeof
|
|
36
|
-
return
|
|
37
|
-
if (typeof
|
|
38
|
-
switch (
|
|
33
|
+
function e(C) {
|
|
34
|
+
if (C == null) return null;
|
|
35
|
+
if (typeof C == "function")
|
|
36
|
+
return C.$$typeof === I ? null : C.displayName || C.name || null;
|
|
37
|
+
if (typeof C == "string") return C;
|
|
38
|
+
switch (C) {
|
|
39
39
|
case v:
|
|
40
40
|
return "Fragment";
|
|
41
41
|
case x:
|
|
@@ -44,150 +44,150 @@ function pf() {
|
|
|
44
44
|
return "StrictMode";
|
|
45
45
|
case P:
|
|
46
46
|
return "Suspense";
|
|
47
|
-
case
|
|
47
|
+
case N:
|
|
48
48
|
return "SuspenseList";
|
|
49
|
-
case
|
|
49
|
+
case S:
|
|
50
50
|
return "Activity";
|
|
51
51
|
}
|
|
52
|
-
if (typeof
|
|
53
|
-
switch (typeof
|
|
52
|
+
if (typeof C == "object")
|
|
53
|
+
switch (typeof C.tag == "number" && console.error(
|
|
54
54
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
55
|
-
),
|
|
55
|
+
), C.$$typeof) {
|
|
56
56
|
case p:
|
|
57
57
|
return "Portal";
|
|
58
|
-
case
|
|
59
|
-
return
|
|
58
|
+
case E:
|
|
59
|
+
return C.displayName || "Context";
|
|
60
60
|
case y:
|
|
61
|
-
return (
|
|
61
|
+
return (C._context.displayName || "Context") + ".Consumer";
|
|
62
62
|
case w:
|
|
63
|
-
var
|
|
64
|
-
return
|
|
63
|
+
var L = C.render;
|
|
64
|
+
return C = C.displayName, C || (C = L.displayName || L.name || "", C = C !== "" ? "ForwardRef(" + C + ")" : "ForwardRef"), C;
|
|
65
65
|
case F:
|
|
66
|
-
return
|
|
67
|
-
case
|
|
68
|
-
|
|
66
|
+
return L = C.displayName || null, L !== null ? L : e(C.type) || "Memo";
|
|
67
|
+
case z:
|
|
68
|
+
L = C._payload, C = C._init;
|
|
69
69
|
try {
|
|
70
|
-
return e(
|
|
70
|
+
return e(C(L));
|
|
71
71
|
} catch {
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
74
|
return null;
|
|
75
75
|
}
|
|
76
|
-
function t(
|
|
77
|
-
return "" +
|
|
76
|
+
function t(C) {
|
|
77
|
+
return "" + C;
|
|
78
78
|
}
|
|
79
|
-
function r(
|
|
79
|
+
function r(C) {
|
|
80
80
|
try {
|
|
81
|
-
t(
|
|
82
|
-
var
|
|
81
|
+
t(C);
|
|
82
|
+
var L = !1;
|
|
83
83
|
} catch {
|
|
84
|
-
|
|
84
|
+
L = !0;
|
|
85
85
|
}
|
|
86
|
-
if (
|
|
87
|
-
|
|
88
|
-
var R =
|
|
86
|
+
if (L) {
|
|
87
|
+
L = console;
|
|
88
|
+
var R = L.error, O = typeof Symbol == "function" && Symbol.toStringTag && C[Symbol.toStringTag] || C.constructor.name || "Object";
|
|
89
89
|
return R.call(
|
|
90
|
-
|
|
90
|
+
L,
|
|
91
91
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
92
92
|
O
|
|
93
|
-
), t(
|
|
93
|
+
), t(C);
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
|
-
function n(
|
|
97
|
-
if (
|
|
98
|
-
if (typeof
|
|
96
|
+
function n(C) {
|
|
97
|
+
if (C === v) return "<>";
|
|
98
|
+
if (typeof C == "object" && C !== null && C.$$typeof === z)
|
|
99
99
|
return "<...>";
|
|
100
100
|
try {
|
|
101
|
-
var
|
|
102
|
-
return
|
|
101
|
+
var L = e(C);
|
|
102
|
+
return L ? "<" + L + ">" : "<...>";
|
|
103
103
|
} catch {
|
|
104
104
|
return "<...>";
|
|
105
105
|
}
|
|
106
106
|
}
|
|
107
107
|
function a() {
|
|
108
|
-
var
|
|
109
|
-
return
|
|
108
|
+
var C = K.A;
|
|
109
|
+
return C === null ? null : C.getOwner();
|
|
110
110
|
}
|
|
111
111
|
function o() {
|
|
112
112
|
return Error("react-stack-top-frame");
|
|
113
113
|
}
|
|
114
|
-
function i(
|
|
115
|
-
if (X.call(
|
|
116
|
-
var
|
|
117
|
-
if (
|
|
114
|
+
function i(C) {
|
|
115
|
+
if (X.call(C, "key")) {
|
|
116
|
+
var L = Object.getOwnPropertyDescriptor(C, "key").get;
|
|
117
|
+
if (L && L.isReactWarning) return !1;
|
|
118
118
|
}
|
|
119
|
-
return
|
|
119
|
+
return C.key !== void 0;
|
|
120
120
|
}
|
|
121
|
-
function s(
|
|
121
|
+
function s(C, L) {
|
|
122
122
|
function R() {
|
|
123
123
|
W || (W = !0, console.error(
|
|
124
124
|
"%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://react.dev/link/special-props)",
|
|
125
|
-
|
|
125
|
+
L
|
|
126
126
|
));
|
|
127
127
|
}
|
|
128
|
-
R.isReactWarning = !0, Object.defineProperty(
|
|
128
|
+
R.isReactWarning = !0, Object.defineProperty(C, "key", {
|
|
129
129
|
get: R,
|
|
130
130
|
configurable: !0
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
function l() {
|
|
134
|
-
var
|
|
135
|
-
return J[
|
|
134
|
+
var C = e(this.type);
|
|
135
|
+
return J[C] || (J[C] = !0, console.error(
|
|
136
136
|
"Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
|
|
137
|
-
)),
|
|
137
|
+
)), C = this.props.ref, C !== void 0 ? C : null;
|
|
138
138
|
}
|
|
139
|
-
function u(
|
|
140
|
-
var
|
|
141
|
-
return
|
|
139
|
+
function u(C, L, R, O, Q, B) {
|
|
140
|
+
var D = R.ref;
|
|
141
|
+
return C = {
|
|
142
142
|
$$typeof: m,
|
|
143
|
-
type:
|
|
144
|
-
key:
|
|
143
|
+
type: C,
|
|
144
|
+
key: L,
|
|
145
145
|
props: R,
|
|
146
146
|
_owner: O
|
|
147
|
-
}, (
|
|
147
|
+
}, (D !== void 0 ? D : null) !== null ? Object.defineProperty(C, "ref", {
|
|
148
148
|
enumerable: !1,
|
|
149
149
|
get: l
|
|
150
|
-
}) : Object.defineProperty(
|
|
150
|
+
}) : Object.defineProperty(C, "ref", { enumerable: !1, value: null }), C._store = {}, Object.defineProperty(C._store, "validated", {
|
|
151
151
|
configurable: !1,
|
|
152
152
|
enumerable: !1,
|
|
153
153
|
writable: !0,
|
|
154
154
|
value: 0
|
|
155
|
-
}), Object.defineProperty(
|
|
155
|
+
}), Object.defineProperty(C, "_debugInfo", {
|
|
156
156
|
configurable: !1,
|
|
157
157
|
enumerable: !1,
|
|
158
158
|
writable: !0,
|
|
159
159
|
value: null
|
|
160
|
-
}), Object.defineProperty(
|
|
160
|
+
}), Object.defineProperty(C, "_debugStack", {
|
|
161
161
|
configurable: !1,
|
|
162
162
|
enumerable: !1,
|
|
163
163
|
writable: !0,
|
|
164
164
|
value: Q
|
|
165
|
-
}), Object.defineProperty(
|
|
165
|
+
}), Object.defineProperty(C, "_debugTask", {
|
|
166
166
|
configurable: !1,
|
|
167
167
|
enumerable: !1,
|
|
168
168
|
writable: !0,
|
|
169
169
|
value: B
|
|
170
|
-
}), Object.freeze && (Object.freeze(
|
|
170
|
+
}), Object.freeze && (Object.freeze(C.props), Object.freeze(C)), C;
|
|
171
171
|
}
|
|
172
|
-
function c(
|
|
173
|
-
var
|
|
174
|
-
if (
|
|
172
|
+
function c(C, L, R, O, Q, B) {
|
|
173
|
+
var D = L.children;
|
|
174
|
+
if (D !== void 0)
|
|
175
175
|
if (O)
|
|
176
|
-
if (
|
|
177
|
-
for (O = 0; O <
|
|
178
|
-
f(
|
|
179
|
-
Object.freeze && Object.freeze(
|
|
176
|
+
if (M(D)) {
|
|
177
|
+
for (O = 0; O < D.length; O++)
|
|
178
|
+
f(D[O]);
|
|
179
|
+
Object.freeze && Object.freeze(D);
|
|
180
180
|
} else
|
|
181
181
|
console.error(
|
|
182
182
|
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
183
183
|
);
|
|
184
|
-
else f(
|
|
185
|
-
if (X.call(
|
|
186
|
-
|
|
187
|
-
var pe = Object.keys(
|
|
184
|
+
else f(D);
|
|
185
|
+
if (X.call(L, "key")) {
|
|
186
|
+
D = e(C);
|
|
187
|
+
var pe = Object.keys(L).filter(function(Xe) {
|
|
188
188
|
return Xe !== "key";
|
|
189
189
|
});
|
|
190
|
-
O = 0 < pe.length ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}", re[
|
|
190
|
+
O = 0 < pe.length ? "{key: someKey, " + pe.join(": ..., ") + ": ...}" : "{key: someKey}", re[D + O] || (pe = 0 < pe.length ? "{" + pe.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
191
191
|
`A props object containing a "key" prop is being spread into JSX:
|
|
192
192
|
let props = %s;
|
|
193
193
|
<%s {...props} />
|
|
@@ -195,65 +195,65 @@ React keys must be passed directly to JSX without using spread:
|
|
|
195
195
|
let props = %s;
|
|
196
196
|
<%s key={someKey} {...props} />`,
|
|
197
197
|
O,
|
|
198
|
-
|
|
198
|
+
D,
|
|
199
199
|
pe,
|
|
200
|
-
|
|
201
|
-
), re[
|
|
200
|
+
D
|
|
201
|
+
), re[D + O] = !0);
|
|
202
202
|
}
|
|
203
|
-
if (
|
|
203
|
+
if (D = null, R !== void 0 && (r(R), D = "" + R), i(L) && (r(L.key), D = "" + L.key), "key" in L) {
|
|
204
204
|
R = {};
|
|
205
|
-
for (var Se in
|
|
206
|
-
Se !== "key" && (R[Se] =
|
|
207
|
-
} else R =
|
|
208
|
-
return
|
|
205
|
+
for (var Se in L)
|
|
206
|
+
Se !== "key" && (R[Se] = L[Se]);
|
|
207
|
+
} else R = L;
|
|
208
|
+
return D && s(
|
|
209
209
|
R,
|
|
210
|
-
typeof
|
|
210
|
+
typeof C == "function" ? C.displayName || C.name || "Unknown" : C
|
|
211
211
|
), u(
|
|
212
|
-
|
|
213
|
-
|
|
212
|
+
C,
|
|
213
|
+
D,
|
|
214
214
|
R,
|
|
215
215
|
a(),
|
|
216
216
|
Q,
|
|
217
217
|
B
|
|
218
218
|
);
|
|
219
219
|
}
|
|
220
|
-
function f(
|
|
221
|
-
g(
|
|
220
|
+
function f(C) {
|
|
221
|
+
g(C) ? C._store && (C._store.validated = 1) : typeof C == "object" && C !== null && C.$$typeof === z && (C._payload.status === "fulfilled" ? g(C._payload.value) && C._payload.value._store && (C._payload.value._store.validated = 1) : C._store && (C._store.validated = 1));
|
|
222
222
|
}
|
|
223
|
-
function g(
|
|
224
|
-
return typeof
|
|
223
|
+
function g(C) {
|
|
224
|
+
return typeof C == "object" && C !== null && C.$$typeof === m;
|
|
225
225
|
}
|
|
226
|
-
var d =
|
|
226
|
+
var d = $, m = /* @__PURE__ */ Symbol.for("react.transitional.element"), p = /* @__PURE__ */ Symbol.for("react.portal"), v = /* @__PURE__ */ Symbol.for("react.fragment"), b = /* @__PURE__ */ Symbol.for("react.strict_mode"), x = /* @__PURE__ */ Symbol.for("react.profiler"), y = /* @__PURE__ */ Symbol.for("react.consumer"), E = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), P = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), F = /* @__PURE__ */ Symbol.for("react.memo"), z = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), I = /* @__PURE__ */ Symbol.for("react.client.reference"), K = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, M = Array.isArray, V = console.createTask ? console.createTask : function() {
|
|
227
227
|
return null;
|
|
228
228
|
};
|
|
229
229
|
d = {
|
|
230
|
-
react_stack_bottom_frame: function(
|
|
231
|
-
return
|
|
230
|
+
react_stack_bottom_frame: function(C) {
|
|
231
|
+
return C();
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
234
|
var W, J = {}, k = d.react_stack_bottom_frame.bind(
|
|
235
235
|
d,
|
|
236
236
|
o
|
|
237
|
-
)(), U =
|
|
238
|
-
Tr.Fragment = v, Tr.jsx = function(
|
|
237
|
+
)(), U = V(n(o)), re = {};
|
|
238
|
+
Tr.Fragment = v, Tr.jsx = function(C, L, R) {
|
|
239
239
|
var O = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
240
240
|
return c(
|
|
241
|
-
|
|
242
|
-
|
|
241
|
+
C,
|
|
242
|
+
L,
|
|
243
243
|
R,
|
|
244
244
|
!1,
|
|
245
245
|
O ? Error("react-stack-top-frame") : k,
|
|
246
|
-
O ?
|
|
246
|
+
O ? V(n(C)) : U
|
|
247
247
|
);
|
|
248
|
-
}, Tr.jsxs = function(
|
|
248
|
+
}, Tr.jsxs = function(C, L, R) {
|
|
249
249
|
var O = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
250
250
|
return c(
|
|
251
|
-
|
|
252
|
-
|
|
251
|
+
C,
|
|
252
|
+
L,
|
|
253
253
|
R,
|
|
254
254
|
!0,
|
|
255
255
|
O ? Error("react-stack-top-frame") : k,
|
|
256
|
-
O ?
|
|
256
|
+
O ? V(n(C)) : U
|
|
257
257
|
);
|
|
258
258
|
};
|
|
259
259
|
})()), Tr;
|
|
@@ -263,7 +263,7 @@ function hf() {
|
|
|
263
263
|
return Ji || (Ji = 1, process.env.NODE_ENV === "production" ? En.exports = mf() : En.exports = pf()), En.exports;
|
|
264
264
|
}
|
|
265
265
|
var h = hf();
|
|
266
|
-
const vf = typeof document < "u" ?
|
|
266
|
+
const vf = typeof document < "u" ? $.useLayoutEffect : () => {
|
|
267
267
|
}, Gt = (e) => {
|
|
268
268
|
var t;
|
|
269
269
|
return (t = e?.ownerDocument) !== null && t !== void 0 ? t : document;
|
|
@@ -518,7 +518,7 @@ function Tf(e) {
|
|
|
518
518
|
function Wn(e) {
|
|
519
519
|
ar = !0, !Zr.isOpening && Tf(e) && (sn = "keyboard", Zo("keyboard", e));
|
|
520
520
|
}
|
|
521
|
-
function
|
|
521
|
+
function Ye(e) {
|
|
522
522
|
sn = "pointer", "pointerType" in e && e.pointerType, (e.type === "mousedown" || e.type === "pointerdown") && (ar = !0, Zo("pointer", e));
|
|
523
523
|
}
|
|
524
524
|
function Xl(e) {
|
|
@@ -536,7 +536,7 @@ function mo(e) {
|
|
|
536
536
|
let n = t.HTMLElement.prototype.focus;
|
|
537
537
|
t.HTMLElement.prototype.focus = function() {
|
|
538
538
|
ar = !0, n.apply(this, arguments);
|
|
539
|
-
}, r.addEventListener("keydown", Wn, !0), r.addEventListener("keyup", Wn, !0), r.addEventListener("click", Xl, !0), t.addEventListener("focus", Jl, !0), t.addEventListener("blur", Ql, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown",
|
|
539
|
+
}, r.addEventListener("keydown", Wn, !0), r.addEventListener("keyup", Wn, !0), r.addEventListener("click", Xl, !0), t.addEventListener("focus", Jl, !0), t.addEventListener("blur", Ql, !1), typeof PointerEvent < "u" ? (r.addEventListener("pointerdown", Ye, !0), r.addEventListener("pointermove", Ye, !0), r.addEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (r.addEventListener("mousedown", Ye, !0), r.addEventListener("mousemove", Ye, !0), r.addEventListener("mouseup", Ye, !0)), t.addEventListener("beforeunload", () => {
|
|
540
540
|
Zl(e);
|
|
541
541
|
}, {
|
|
542
542
|
once: !0
|
|
@@ -546,7 +546,7 @@ function mo(e) {
|
|
|
546
546
|
}
|
|
547
547
|
const Zl = (e, t) => {
|
|
548
548
|
const r = er(e), n = Gt(e);
|
|
549
|
-
t && n.removeEventListener("DOMContentLoaded", t), Gr.has(r) && (r.HTMLElement.prototype.focus = Gr.get(r).focus, n.removeEventListener("keydown", Wn, !0), n.removeEventListener("keyup", Wn, !0), n.removeEventListener("click", Xl, !0), r.removeEventListener("focus", Jl, !0), r.removeEventListener("blur", Ql, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown",
|
|
549
|
+
t && n.removeEventListener("DOMContentLoaded", t), Gr.has(r) && (r.HTMLElement.prototype.focus = Gr.get(r).focus, n.removeEventListener("keydown", Wn, !0), n.removeEventListener("keyup", Wn, !0), n.removeEventListener("click", Xl, !0), r.removeEventListener("focus", Jl, !0), r.removeEventListener("blur", Ql, !1), typeof PointerEvent < "u" ? (n.removeEventListener("pointerdown", Ye, !0), n.removeEventListener("pointermove", Ye, !0), n.removeEventListener("pointerup", Ye, !0)) : process.env.NODE_ENV === "test" && (n.removeEventListener("mousedown", Ye, !0), n.removeEventListener("mousemove", Ye, !0), n.removeEventListener("mouseup", Ye, !0)), Gr.delete(r));
|
|
550
550
|
};
|
|
551
551
|
function Mf(e) {
|
|
552
552
|
const t = Gt(e);
|
|
@@ -867,9 +867,9 @@ function lt(e) {
|
|
|
867
867
|
t.current = e;
|
|
868
868
|
}, [e]), t;
|
|
869
869
|
}
|
|
870
|
-
let
|
|
870
|
+
let T = function(e) {
|
|
871
871
|
let t = lt(e);
|
|
872
|
-
return
|
|
872
|
+
return $.useCallback((...r) => t.current(...r), [t]);
|
|
873
873
|
};
|
|
874
874
|
function Uf(e) {
|
|
875
875
|
let t = e.width / 2, r = e.height / 2;
|
|
@@ -879,9 +879,9 @@ function Yf(e, t) {
|
|
|
879
879
|
return !(!e || !t || e.right < t.left || e.left > t.right || e.bottom < t.top || e.top > t.bottom);
|
|
880
880
|
}
|
|
881
881
|
function Sr({ disabled: e = !1 } = {}) {
|
|
882
|
-
let t = Y(null), [r, n] = ae(!1), a = rt(), o =
|
|
882
|
+
let t = Y(null), [r, n] = ae(!1), a = rt(), o = T(() => {
|
|
883
883
|
t.current = null, n(!1), a.dispose();
|
|
884
|
-
}), i =
|
|
884
|
+
}), i = T((s) => {
|
|
885
885
|
if (a.dispose(), t.current === null) {
|
|
886
886
|
t.current = s.currentTarget, n(!0);
|
|
887
887
|
{
|
|
@@ -905,7 +905,7 @@ function St() {
|
|
|
905
905
|
return fe(eu);
|
|
906
906
|
}
|
|
907
907
|
function Kf({ value: e, children: t }) {
|
|
908
|
-
return
|
|
908
|
+
return $.createElement(eu.Provider, { value: e }, t);
|
|
909
909
|
}
|
|
910
910
|
function vo(...e) {
|
|
911
911
|
return Array.from(new Set(e.flatMap((t) => typeof t == "string" ? t.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -1023,7 +1023,7 @@ function La(e, t = []) {
|
|
|
1023
1023
|
return r;
|
|
1024
1024
|
}
|
|
1025
1025
|
function Qf(e) {
|
|
1026
|
-
return
|
|
1026
|
+
return $.version.split(".")[0] >= "19" ? e.props.ref : e.ref;
|
|
1027
1027
|
}
|
|
1028
1028
|
function Br(e) {
|
|
1029
1029
|
return e === Ie || e === /* @__PURE__ */ Symbol.for("react.fragment");
|
|
@@ -1040,7 +1040,7 @@ function tg(e, t) {
|
|
|
1040
1040
|
let rg = le(tg);
|
|
1041
1041
|
function ti(e, t, r) {
|
|
1042
1042
|
let [n, a] = ae(r), o = e !== void 0, i = Y(o), s = Y(!1), l = Y(!1);
|
|
1043
|
-
return o && !i.current && !s.current ? (s.current = !0, i.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && i.current && !l.current && (l.current = !0, i.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? e : n,
|
|
1043
|
+
return o && !i.current && !s.current ? (s.current = !0, i.current = o, console.error("A component is changing from uncontrolled to controlled. This may be caused by the value changing from undefined to a defined value, which should not happen.")) : !o && i.current && !l.current && (l.current = !0, i.current = o, console.error("A component is changing from controlled to uncontrolled. This may be caused by the value changing from a defined value to undefined, which should not happen.")), [o ? e : n, T((u) => (o || nr(() => a(u)), t?.(u)))];
|
|
1044
1044
|
}
|
|
1045
1045
|
function ri(e) {
|
|
1046
1046
|
let [t] = ae(e);
|
|
@@ -1083,19 +1083,19 @@ function og(e, t) {
|
|
|
1083
1083
|
let bt = le(og), ou = Ce(null);
|
|
1084
1084
|
function ig(e) {
|
|
1085
1085
|
let [t, r] = ae(null);
|
|
1086
|
-
return
|
|
1086
|
+
return $.createElement(ou.Provider, { value: { target: t } }, e.children, $.createElement(bt, { features: ut.Hidden, ref: r }));
|
|
1087
1087
|
}
|
|
1088
1088
|
function sg({ children: e }) {
|
|
1089
1089
|
let t = fe(ou);
|
|
1090
|
-
if (!t) return
|
|
1090
|
+
if (!t) return $.createElement($.Fragment, null, e);
|
|
1091
1091
|
let { target: r } = t;
|
|
1092
|
-
return r ? Hl(
|
|
1092
|
+
return r ? Hl($.createElement($.Fragment, null, e), r) : null;
|
|
1093
1093
|
}
|
|
1094
1094
|
function ai({ data: e, form: t, disabled: r, onReset: n, overrides: a }) {
|
|
1095
1095
|
let [o, i] = ae(null), s = rt();
|
|
1096
1096
|
return me(() => {
|
|
1097
1097
|
if (n && o) return s.addEventListener(o, "reset", n);
|
|
1098
|
-
}, [o, t, n]),
|
|
1098
|
+
}, [o, t, n]), $.createElement(sg, null, $.createElement(lg, { setForm: i, formId: t }), ru(e).map(([l, u]) => $.createElement(bt, { features: ut.Hidden, ...$t({ key: l, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: t, disabled: r, name: l, value: u, ...a }) })));
|
|
1099
1099
|
}
|
|
1100
1100
|
function lg({ setForm: e, formId: t }) {
|
|
1101
1101
|
return me(() => {
|
|
@@ -1103,7 +1103,7 @@ function lg({ setForm: e, formId: t }) {
|
|
|
1103
1103
|
let r = document.getElementById(t);
|
|
1104
1104
|
r && e(r);
|
|
1105
1105
|
}
|
|
1106
|
-
}, [e, t]), t ? null :
|
|
1106
|
+
}, [e, t]), t ? null : $.createElement(bt, { features: ut.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (r) => {
|
|
1107
1107
|
if (!r) return;
|
|
1108
1108
|
let n = r.closest("form");
|
|
1109
1109
|
n && e(n);
|
|
@@ -1114,7 +1114,7 @@ function Er() {
|
|
|
1114
1114
|
return fe(iu);
|
|
1115
1115
|
}
|
|
1116
1116
|
function ug({ id: e, children: t }) {
|
|
1117
|
-
return
|
|
1117
|
+
return $.createElement(iu.Provider, { value: e }, t);
|
|
1118
1118
|
}
|
|
1119
1119
|
function su(e) {
|
|
1120
1120
|
return typeof e != "object" || e === null ? !1 : "nodeType" in e;
|
|
@@ -1173,7 +1173,7 @@ function be(...e) {
|
|
|
1173
1173
|
me(() => {
|
|
1174
1174
|
t.current = e;
|
|
1175
1175
|
}, [e]);
|
|
1176
|
-
let r =
|
|
1176
|
+
let r = T((n) => {
|
|
1177
1177
|
for (let a of t.current) a != null && (typeof a == "function" ? a(n) : a.current = n);
|
|
1178
1178
|
});
|
|
1179
1179
|
return e.every((n) => n == null || n?.[cu]) ? void 0 : r;
|
|
@@ -1195,11 +1195,11 @@ function ln() {
|
|
|
1195
1195
|
function la() {
|
|
1196
1196
|
let [e, t] = ae([]);
|
|
1197
1197
|
return [e.length > 0 ? e.join(" ") : void 0, ye(() => function(r) {
|
|
1198
|
-
let n =
|
|
1198
|
+
let n = T((o) => (t((i) => [...i, o]), () => t((i) => {
|
|
1199
1199
|
let s = i.slice(), l = s.indexOf(o);
|
|
1200
1200
|
return l !== -1 && s.splice(l, 1), s;
|
|
1201
1201
|
}))), a = ye(() => ({ register: n, slot: r.slot, name: r.name, props: r.props, value: r.value }), [n, r.slot, r.name, r.props, r.value]);
|
|
1202
|
-
return
|
|
1202
|
+
return $.createElement(sa.Provider, { value: a }, r.children);
|
|
1203
1203
|
}, [t])];
|
|
1204
1204
|
}
|
|
1205
1205
|
let pg = "p";
|
|
@@ -1229,11 +1229,11 @@ function Cr(e) {
|
|
|
1229
1229
|
function cn({ inherit: e = !1 } = {}) {
|
|
1230
1230
|
let t = Cr(), [r, n] = ae([]), a = e ? [t, ...r].filter(Boolean) : r;
|
|
1231
1231
|
return [a.length > 0 ? a.join(" ") : void 0, ye(() => function(o) {
|
|
1232
|
-
let i =
|
|
1232
|
+
let i = T((l) => (n((u) => [...u, l]), () => n((u) => {
|
|
1233
1233
|
let c = u.slice(), f = c.indexOf(l);
|
|
1234
1234
|
return f !== -1 && c.splice(f, 1), c;
|
|
1235
1235
|
}))), s = ye(() => ({ register: i, slot: o.slot, name: o.name, props: o.props, value: o.value }), [i, o.slot, o.name, o.props, o.value]);
|
|
1236
|
-
return
|
|
1236
|
+
return $.createElement(ua.Provider, { value: s }, o.children);
|
|
1237
1237
|
}, [n])];
|
|
1238
1238
|
}
|
|
1239
1239
|
let bg = "label";
|
|
@@ -1241,7 +1241,7 @@ function yg(e, t) {
|
|
|
1241
1241
|
var r;
|
|
1242
1242
|
let n = xe(), a = oi(), o = Er(), i = St(), { id: s = `headlessui-label-${n}`, htmlFor: l = o ?? ((r = a.props) == null ? void 0 : r.htmlFor), passive: u = !1, ...c } = e, f = be(t);
|
|
1243
1243
|
ge(() => a.register(s), [s, a.register]);
|
|
1244
|
-
let g =
|
|
1244
|
+
let g = T((p) => {
|
|
1245
1245
|
let v = p.currentTarget;
|
|
1246
1246
|
if (!(p.target !== p.currentTarget && gg(p.target)) && (bo(v) && p.preventDefault(), a.props && "onClick" in a.props && typeof a.props.onClick == "function" && a.props.onClick(p), bo(v))) {
|
|
1247
1247
|
let b = document.getElementById(v.htmlFor);
|
|
@@ -1258,24 +1258,24 @@ function yg(e, t) {
|
|
|
1258
1258
|
}
|
|
1259
1259
|
let xg = le(yg), $r = Object.assign(xg, {}), wg = "span";
|
|
1260
1260
|
function kg(e, t) {
|
|
1261
|
-
let r = xe(), n = Er(), a = St(), { id: o = n || `headlessui-checkbox-${r}`, disabled: i = a || !1, autoFocus: s = !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, indeterminate: m = !1, tabIndex: p = 0, ...v } = e, b = ri(u), [x, y] = ti(l, c, b ?? !1),
|
|
1261
|
+
let r = xe(), n = Er(), a = St(), { id: o = n || `headlessui-checkbox-${r}`, disabled: i = a || !1, autoFocus: s = !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, indeterminate: m = !1, tabIndex: p = 0, ...v } = e, b = ri(u), [x, y] = ti(l, c, b ?? !1), E = Cr(), w = ln(), P = rt(), [N, F] = ae(!1), z = T(() => {
|
|
1262
1262
|
F(!0), y?.(!x), P.nextFrame(() => {
|
|
1263
1263
|
F(!1);
|
|
1264
1264
|
});
|
|
1265
|
-
}),
|
|
1265
|
+
}), S = T((R) => {
|
|
1266
1266
|
if (vr(R.currentTarget)) return R.preventDefault();
|
|
1267
|
-
R.preventDefault(),
|
|
1268
|
-
}),
|
|
1269
|
-
R.key === te.Space ? (R.preventDefault(),
|
|
1270
|
-
}), K =
|
|
1267
|
+
R.preventDefault(), z();
|
|
1268
|
+
}), I = T((R) => {
|
|
1269
|
+
R.key === te.Space ? (R.preventDefault(), z()) : R.key === te.Enter && ni(R.currentTarget);
|
|
1270
|
+
}), K = T((R) => R.preventDefault()), { isFocusVisible: X, focusProps: M } = Wt({ autoFocus: s }), { isHovered: V, hoverProps: W } = Bt({ isDisabled: i }), { pressed: J, pressProps: k } = Sr({ disabled: i }), U = qe({ ref: t, id: o, role: "checkbox", "aria-checked": m ? "mixed" : x ? "true" : "false", "aria-labelledby": E, "aria-describedby": w, "aria-disabled": i ? !0 : void 0, indeterminate: m ? "true" : void 0, tabIndex: i ? void 0 : p, onKeyUp: i ? void 0 : I, onKeyPress: i ? void 0 : K, onClick: i ? void 0 : S }, M, W, k), re = ve({ checked: x, disabled: i, hover: V, focus: X, active: J, indeterminate: m, changing: N, autofocus: s }), C = ie(() => {
|
|
1271
1271
|
if (b !== void 0) return y?.(b);
|
|
1272
|
-
}, [y, b]),
|
|
1273
|
-
return
|
|
1272
|
+
}, [y, b]), L = ue();
|
|
1273
|
+
return $.createElement($.Fragment, null, f != null && $.createElement(ai, { disabled: i, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: x }, form: d, onReset: C }), L({ ourProps: U, theirProps: v, slot: re, defaultTag: wg, name: "Checkbox" }));
|
|
1274
1274
|
}
|
|
1275
1275
|
let Sg = le(kg), Eg = Ce(() => {
|
|
1276
1276
|
});
|
|
1277
1277
|
function ii({ value: e, children: t }) {
|
|
1278
|
-
return
|
|
1278
|
+
return $.createElement(Eg.Provider, { value: e }, t);
|
|
1279
1279
|
}
|
|
1280
1280
|
function Cg(e, t) {
|
|
1281
1281
|
return e !== null && t !== null && typeof e == "object" && typeof t == "object" && "id" in e && "id" in t ? e.id === t.id : e === t;
|
|
@@ -1311,9 +1311,9 @@ function si(e, t, r = !1) {
|
|
|
1311
1311
|
}
|
|
1312
1312
|
var gu = ((e) => (e[e.Left = 0] = "Left", e[e.Right = 2] = "Right", e))(gu || {});
|
|
1313
1313
|
function mu(e) {
|
|
1314
|
-
let t = Y(null), r =
|
|
1314
|
+
let t = Y(null), r = T((a) => {
|
|
1315
1315
|
t.current = a.pointerType, !vr(a.currentTarget) && a.pointerType === "mouse" && a.button === gu.Left && (a.preventDefault(), e(a));
|
|
1316
|
-
}), n =
|
|
1316
|
+
}), n = T((a) => {
|
|
1317
1317
|
t.current !== "mouse" && (vr(a.currentTarget) || e(a));
|
|
1318
1318
|
});
|
|
1319
1319
|
return { onPointerDown: r, onClick: n };
|
|
@@ -1329,7 +1329,7 @@ let pu = class extends Map {
|
|
|
1329
1329
|
};
|
|
1330
1330
|
var Rg = Object.defineProperty, Pg = (e, t, r) => t in e ? Rg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, Fg = (e, t, r) => (Pg(e, t + "", r), r), hu = (e, t, r) => {
|
|
1331
1331
|
if (!t.has(e)) throw TypeError("Cannot " + r);
|
|
1332
|
-
},
|
|
1332
|
+
}, Ue = (e, t, r) => (hu(e, t, "read from private field"), r ? r.call(e) : t.get(e)), Da = (e, t, r) => {
|
|
1333
1333
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
1334
1334
|
t instanceof WeakSet ? t.add(e) : t.set(e, r);
|
|
1335
1335
|
}, es = (e, t, r, n) => (hu(e, t, "write to private field"), t.set(e, r), r), nt, Dr, Vr;
|
|
@@ -1343,31 +1343,31 @@ let ca = class {
|
|
|
1343
1343
|
this.disposables.dispose();
|
|
1344
1344
|
}
|
|
1345
1345
|
get state() {
|
|
1346
|
-
return
|
|
1346
|
+
return Ue(this, nt);
|
|
1347
1347
|
}
|
|
1348
1348
|
subscribe(t, r) {
|
|
1349
1349
|
if (ot.isServer) return () => {
|
|
1350
1350
|
};
|
|
1351
|
-
let n = { selector: t, callback: r, current: t(
|
|
1352
|
-
return
|
|
1353
|
-
|
|
1351
|
+
let n = { selector: t, callback: r, current: t(Ue(this, nt)) };
|
|
1352
|
+
return Ue(this, Vr).add(n), this.disposables.add(() => {
|
|
1353
|
+
Ue(this, Vr).delete(n);
|
|
1354
1354
|
});
|
|
1355
1355
|
}
|
|
1356
1356
|
on(t, r) {
|
|
1357
1357
|
return ot.isServer ? () => {
|
|
1358
|
-
} : (
|
|
1359
|
-
|
|
1358
|
+
} : (Ue(this, Dr).get(t).add(r), this.disposables.add(() => {
|
|
1359
|
+
Ue(this, Dr).get(t).delete(r);
|
|
1360
1360
|
}));
|
|
1361
1361
|
}
|
|
1362
1362
|
send(t) {
|
|
1363
|
-
let r = this.reduce(
|
|
1364
|
-
if (r !==
|
|
1363
|
+
let r = this.reduce(Ue(this, nt), t);
|
|
1364
|
+
if (r !== Ue(this, nt)) {
|
|
1365
1365
|
es(this, nt, r);
|
|
1366
|
-
for (let n of
|
|
1367
|
-
let a = n.selector(
|
|
1366
|
+
for (let n of Ue(this, Vr)) {
|
|
1367
|
+
let a = n.selector(Ue(this, nt));
|
|
1368
1368
|
vu(n.current, a) || (n.current = a, n.callback(a));
|
|
1369
1369
|
}
|
|
1370
|
-
for (let n of
|
|
1370
|
+
for (let n of Ue(this, Dr).get(t.type)) n(Ue(this, nt), t);
|
|
1371
1371
|
}
|
|
1372
1372
|
}
|
|
1373
1373
|
};
|
|
@@ -1423,7 +1423,7 @@ var ns;
|
|
|
1423
1423
|
function _g() {
|
|
1424
1424
|
if (ns) return za;
|
|
1425
1425
|
ns = 1;
|
|
1426
|
-
var e =
|
|
1426
|
+
var e = $;
|
|
1427
1427
|
function t(l, u) {
|
|
1428
1428
|
return l === u && (l !== 0 || 1 / l === 1 / u) || l !== l && u !== u;
|
|
1429
1429
|
}
|
|
@@ -1446,16 +1446,16 @@ function _g() {
|
|
|
1446
1446
|
return y = w;
|
|
1447
1447
|
}
|
|
1448
1448
|
if (P = y, r(x, w)) return P;
|
|
1449
|
-
var
|
|
1450
|
-
return g !== void 0 && g(P,
|
|
1449
|
+
var N = f(w);
|
|
1450
|
+
return g !== void 0 && g(P, N) ? (x = w, P) : (x = w, y = N);
|
|
1451
1451
|
}
|
|
1452
|
-
var b = !1, x, y,
|
|
1452
|
+
var b = !1, x, y, E = c === void 0 ? null : c;
|
|
1453
1453
|
return [
|
|
1454
1454
|
function() {
|
|
1455
1455
|
return v(u());
|
|
1456
1456
|
},
|
|
1457
|
-
|
|
1458
|
-
return v(
|
|
1457
|
+
E === null ? void 0 : function() {
|
|
1458
|
+
return v(E());
|
|
1459
1459
|
}
|
|
1460
1460
|
];
|
|
1461
1461
|
},
|
|
@@ -1478,7 +1478,7 @@ function Tg() {
|
|
|
1478
1478
|
return l === u && (l !== 0 || 1 / l === 1 / u) || l !== l && u !== u;
|
|
1479
1479
|
}
|
|
1480
1480
|
typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ < "u" && typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart == "function" && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
|
|
1481
|
-
var t =
|
|
1481
|
+
var t = $, r = typeof Object.is == "function" ? Object.is : e, n = t.useSyncExternalStore, a = t.useRef, o = t.useEffect, i = t.useMemo, s = t.useDebugValue;
|
|
1482
1482
|
Ha.useSyncExternalStoreWithSelector = function(l, u, c, f, g) {
|
|
1483
1483
|
var d = a(null);
|
|
1484
1484
|
if (d.current === null) {
|
|
@@ -1498,16 +1498,16 @@ function Tg() {
|
|
|
1498
1498
|
}
|
|
1499
1499
|
if (P = y, r(x, w))
|
|
1500
1500
|
return P;
|
|
1501
|
-
var
|
|
1502
|
-
return g !== void 0 && g(P,
|
|
1501
|
+
var N = f(w);
|
|
1502
|
+
return g !== void 0 && g(P, N) ? (x = w, P) : (x = w, y = N);
|
|
1503
1503
|
}
|
|
1504
|
-
var b = !1, x, y,
|
|
1504
|
+
var b = !1, x, y, E = c === void 0 ? null : c;
|
|
1505
1505
|
return [
|
|
1506
1506
|
function() {
|
|
1507
1507
|
return v(u());
|
|
1508
1508
|
},
|
|
1509
|
-
|
|
1510
|
-
return v(
|
|
1509
|
+
E === null ? void 0 : function() {
|
|
1510
|
+
return v(E());
|
|
1511
1511
|
}
|
|
1512
1512
|
];
|
|
1513
1513
|
},
|
|
@@ -1529,7 +1529,7 @@ function Mg() {
|
|
|
1529
1529
|
}
|
|
1530
1530
|
var jg = Mg();
|
|
1531
1531
|
function de(e, t, r = vu) {
|
|
1532
|
-
return jg.useSyncExternalStoreWithSelector(
|
|
1532
|
+
return jg.useSyncExternalStoreWithSelector(T((n) => e.subscribe(Lg, n)), T(() => e.state), T(() => e.state), T(t), r);
|
|
1533
1533
|
}
|
|
1534
1534
|
function Lg(e) {
|
|
1535
1535
|
return e;
|
|
@@ -1646,9 +1646,9 @@ function ci(e, t = (r) => r) {
|
|
|
1646
1646
|
});
|
|
1647
1647
|
}
|
|
1648
1648
|
function xu(e, t, r = e === null ? document.body : Tt(e)) {
|
|
1649
|
-
return
|
|
1649
|
+
return ze(fn(r), t, { relativeTo: e });
|
|
1650
1650
|
}
|
|
1651
|
-
function
|
|
1651
|
+
function ze(e, t, { sorted: r = !0, relativeTo: n = null, skipElements: a = [] } = {}) {
|
|
1652
1652
|
let o = Array.isArray(e) ? e.length > 0 ? Tt(e[0]) : document : Tt(e), i = Array.isArray(e) ? r ? ci(e) : e : t & 64 ? zg(e) : fn(e);
|
|
1653
1653
|
a.length > 0 && i.length > 1 && (i = i.filter((d) => !a.some((m) => m != null && "current" in m ? m?.current === d : m === d))), n = n ?? o?.activeElement;
|
|
1654
1654
|
let s = (() => {
|
|
@@ -1992,7 +1992,7 @@ function sm(e, { container: t, accept: r, walk: n }) {
|
|
|
1992
1992
|
}, [t, e, a, o]);
|
|
1993
1993
|
}
|
|
1994
1994
|
function fi(e, t) {
|
|
1995
|
-
let r = Y([]), n =
|
|
1995
|
+
let r = Y([]), n = T(e);
|
|
1996
1996
|
me(() => {
|
|
1997
1997
|
let a = [...r.current];
|
|
1998
1998
|
for (let [o, i] of t.entries()) if (r.current[o] !== i) {
|
|
@@ -2007,7 +2007,7 @@ function pa() {
|
|
|
2007
2007
|
function Rr(e) {
|
|
2008
2008
|
return Cu(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
2009
2009
|
}
|
|
2010
|
-
function
|
|
2010
|
+
function Ge(e) {
|
|
2011
2011
|
var t;
|
|
2012
2012
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
2013
2013
|
}
|
|
@@ -2016,16 +2016,16 @@ function dt(e) {
|
|
|
2016
2016
|
return (t = (Cu(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2017
2017
|
}
|
|
2018
2018
|
function Cu(e) {
|
|
2019
|
-
return pa() ? e instanceof Node || e instanceof
|
|
2019
|
+
return pa() ? e instanceof Node || e instanceof Ge(e).Node : !1;
|
|
2020
2020
|
}
|
|
2021
2021
|
function je(e) {
|
|
2022
|
-
return pa() ? e instanceof Element || e instanceof
|
|
2022
|
+
return pa() ? e instanceof Element || e instanceof Ge(e).Element : !1;
|
|
2023
2023
|
}
|
|
2024
2024
|
function ct(e) {
|
|
2025
|
-
return pa() ? e instanceof HTMLElement || e instanceof
|
|
2025
|
+
return pa() ? e instanceof HTMLElement || e instanceof Ge(e).HTMLElement : !1;
|
|
2026
2026
|
}
|
|
2027
2027
|
function ps(e) {
|
|
2028
|
-
return !pa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
2028
|
+
return !pa() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Ge(e).ShadowRoot;
|
|
2029
2029
|
}
|
|
2030
2030
|
const lm = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
2031
2031
|
function vn(e) {
|
|
@@ -2075,7 +2075,7 @@ function yr(e) {
|
|
|
2075
2075
|
return hm.has(Rr(e));
|
|
2076
2076
|
}
|
|
2077
2077
|
function et(e) {
|
|
2078
|
-
return
|
|
2078
|
+
return Ge(e).getComputedStyle(e);
|
|
2079
2079
|
}
|
|
2080
2080
|
function va(e) {
|
|
2081
2081
|
return je(e) ? {
|
|
@@ -2105,7 +2105,7 @@ function $u(e) {
|
|
|
2105
2105
|
function en(e, t, r) {
|
|
2106
2106
|
var n;
|
|
2107
2107
|
t === void 0 && (t = []), r === void 0 && (r = !0);
|
|
2108
|
-
const a = $u(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), i =
|
|
2108
|
+
const a = $u(e), o = a === ((n = e.ownerDocument) == null ? void 0 : n.body), i = Ge(a);
|
|
2109
2109
|
if (o) {
|
|
2110
2110
|
const s = xo(i);
|
|
2111
2111
|
return t.concat(i, i.visualViewport || [], vn(a) ? a : [], s && r ? en(s) : []);
|
|
@@ -2305,7 +2305,7 @@ async function Iu(e, t) {
|
|
|
2305
2305
|
y: a,
|
|
2306
2306
|
width: i.floating.width,
|
|
2307
2307
|
height: i.floating.height
|
|
2308
|
-
} : i.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)),
|
|
2308
|
+
} : i.reference, y = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(s.floating)), E = await (o.isElement == null ? void 0 : o.isElement(y)) ? await (o.getScale == null ? void 0 : o.getScale(y)) || {
|
|
2309
2309
|
x: 1,
|
|
2310
2310
|
y: 1
|
|
2311
2311
|
} : {
|
|
@@ -2318,10 +2318,10 @@ async function Iu(e, t) {
|
|
|
2318
2318
|
strategy: l
|
|
2319
2319
|
}) : x);
|
|
2320
2320
|
return {
|
|
2321
|
-
top: (b.top - w.top + m.top) /
|
|
2322
|
-
bottom: (w.bottom - b.bottom + m.bottom) /
|
|
2323
|
-
left: (b.left - w.left + m.left) /
|
|
2324
|
-
right: (w.right - b.right + m.right) /
|
|
2321
|
+
top: (b.top - w.top + m.top) / E.y,
|
|
2322
|
+
bottom: (w.bottom - b.bottom + m.bottom) / E.y,
|
|
2323
|
+
left: (b.left - w.left + m.left) / E.x,
|
|
2324
|
+
right: (w.right - b.right + m.right) / E.x
|
|
2325
2325
|
};
|
|
2326
2326
|
}
|
|
2327
2327
|
const Fm = async (e, t, r) => {
|
|
@@ -2346,7 +2346,7 @@ const Fm = async (e, t, r) => {
|
|
|
2346
2346
|
fn: x
|
|
2347
2347
|
} = s[v], {
|
|
2348
2348
|
x: y,
|
|
2349
|
-
y:
|
|
2349
|
+
y: E,
|
|
2350
2350
|
data: w,
|
|
2351
2351
|
reset: P
|
|
2352
2352
|
} = await x({
|
|
@@ -2366,7 +2366,7 @@ const Fm = async (e, t, r) => {
|
|
|
2366
2366
|
floating: t
|
|
2367
2367
|
}
|
|
2368
2368
|
});
|
|
2369
|
-
c = y ?? c, f =
|
|
2369
|
+
c = y ?? c, f = E ?? f, d = {
|
|
2370
2370
|
...d,
|
|
2371
2371
|
[b]: {
|
|
2372
2372
|
...d[b],
|
|
@@ -2412,38 +2412,38 @@ const Fm = async (e, t, r) => {
|
|
|
2412
2412
|
} = Pr(e, t);
|
|
2413
2413
|
if ((r = o.arrow) != null && r.alignmentOffset)
|
|
2414
2414
|
return {};
|
|
2415
|
-
const b = Lt(a), x = ht(s), y = Lt(s) === s,
|
|
2416
|
-
!g && P && w.push(...$m(s, p, m,
|
|
2417
|
-
const
|
|
2418
|
-
let
|
|
2419
|
-
if (c &&
|
|
2420
|
-
const
|
|
2421
|
-
|
|
2422
|
-
}
|
|
2423
|
-
if (
|
|
2415
|
+
const b = Lt(a), x = ht(s), y = Lt(s) === s, E = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), w = g || (y || !p ? [Kn(s)] : km(s)), P = m !== "none";
|
|
2416
|
+
!g && P && w.push(...$m(s, p, m, E));
|
|
2417
|
+
const N = [s, ...w], F = await l.detectOverflow(t, v), z = [];
|
|
2418
|
+
let S = ((n = o.flip) == null ? void 0 : n.overflows) || [];
|
|
2419
|
+
if (c && z.push(F[b]), f) {
|
|
2420
|
+
const M = wm(a, i, E);
|
|
2421
|
+
z.push(F[M[0]], F[M[1]]);
|
|
2422
|
+
}
|
|
2423
|
+
if (S = [...S, {
|
|
2424
2424
|
placement: a,
|
|
2425
|
-
overflows:
|
|
2426
|
-
}], !
|
|
2427
|
-
var
|
|
2428
|
-
const
|
|
2429
|
-
if (
|
|
2425
|
+
overflows: z
|
|
2426
|
+
}], !z.every((M) => M <= 0)) {
|
|
2427
|
+
var I, K;
|
|
2428
|
+
const M = (((I = o.flip) == null ? void 0 : I.index) || 0) + 1, V = N[M];
|
|
2429
|
+
if (V && (!(f === "alignment" ? x !== ht(V) : !1) || // We leave the current main axis only if every placement on that axis
|
|
2430
2430
|
// overflows the main axis.
|
|
2431
|
-
|
|
2431
|
+
S.every((k) => ht(k.placement) === x ? k.overflows[0] > 0 : !0)))
|
|
2432
2432
|
return {
|
|
2433
2433
|
data: {
|
|
2434
|
-
index:
|
|
2435
|
-
overflows:
|
|
2434
|
+
index: M,
|
|
2435
|
+
overflows: S
|
|
2436
2436
|
},
|
|
2437
2437
|
reset: {
|
|
2438
|
-
placement:
|
|
2438
|
+
placement: V
|
|
2439
2439
|
}
|
|
2440
2440
|
};
|
|
2441
|
-
let W = (K =
|
|
2441
|
+
let W = (K = S.filter((J) => J.overflows[0] <= 0).sort((J, k) => J.overflows[1] - k.overflows[1])[0]) == null ? void 0 : K.placement;
|
|
2442
2442
|
if (!W)
|
|
2443
2443
|
switch (d) {
|
|
2444
2444
|
case "bestFit": {
|
|
2445
2445
|
var X;
|
|
2446
|
-
const J = (X =
|
|
2446
|
+
const J = (X = S.filter((k) => {
|
|
2447
2447
|
if (P) {
|
|
2448
2448
|
const U = ht(k.placement);
|
|
2449
2449
|
return U === x || // Create a bias to the `y` side axis due to horizontal
|
|
@@ -2551,12 +2551,12 @@ const Om = function(e) {
|
|
|
2551
2551
|
}, f = await o.detectOverflow(t, u), g = ht(Lt(a)), d = Ru(g);
|
|
2552
2552
|
let m = c[d], p = c[g];
|
|
2553
2553
|
if (i) {
|
|
2554
|
-
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b],
|
|
2555
|
-
m = hs(y, m,
|
|
2554
|
+
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b], E = m - f[x];
|
|
2555
|
+
m = hs(y, m, E);
|
|
2556
2556
|
}
|
|
2557
2557
|
if (s) {
|
|
2558
|
-
const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b],
|
|
2559
|
-
p = hs(y, p,
|
|
2558
|
+
const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b], E = p - f[x];
|
|
2559
|
+
p = hs(y, p, E);
|
|
2560
2560
|
}
|
|
2561
2561
|
const v = l.fn({
|
|
2562
2562
|
...t,
|
|
@@ -2597,19 +2597,19 @@ const Om = function(e) {
|
|
|
2597
2597
|
} = o.floating;
|
|
2598
2598
|
let v, b;
|
|
2599
2599
|
f === "top" || f === "bottom" ? (v = f, b = g === (await (i.isRTL == null ? void 0 : i.isRTL(s.floating)) ? "start" : "end") ? "left" : "right") : (b = f, v = g === "end" ? "top" : "bottom");
|
|
2600
|
-
const x = p - c.top - c.bottom, y = m - c.left - c.right,
|
|
2601
|
-
let
|
|
2602
|
-
if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = y), (n = t.middlewareData.shift) != null && n.enabled.y && (
|
|
2603
|
-
const
|
|
2604
|
-
d ? F = m - 2 * (
|
|
2600
|
+
const x = p - c.top - c.bottom, y = m - c.left - c.right, E = or(p - c[v], x), w = or(m - c[b], y), P = !t.middlewareData.shift;
|
|
2601
|
+
let N = E, F = w;
|
|
2602
|
+
if ((r = t.middlewareData.shift) != null && r.enabled.x && (F = y), (n = t.middlewareData.shift) != null && n.enabled.y && (N = x), P && !g) {
|
|
2603
|
+
const S = Te(c.left, 0), I = Te(c.right, 0), K = Te(c.top, 0), X = Te(c.bottom, 0);
|
|
2604
|
+
d ? F = m - 2 * (S !== 0 || I !== 0 ? S + I : Te(c.left, c.right)) : N = p - 2 * (K !== 0 || X !== 0 ? K + X : Te(c.top, c.bottom));
|
|
2605
2605
|
}
|
|
2606
2606
|
await l({
|
|
2607
2607
|
...t,
|
|
2608
2608
|
availableWidth: F,
|
|
2609
|
-
availableHeight:
|
|
2609
|
+
availableHeight: N
|
|
2610
2610
|
});
|
|
2611
|
-
const
|
|
2612
|
-
return m !==
|
|
2611
|
+
const z = await i.getDimensions(s.floating);
|
|
2612
|
+
return m !== z.width || p !== z.height ? {
|
|
2613
2613
|
reset: {
|
|
2614
2614
|
rects: !0
|
|
2615
2615
|
}
|
|
@@ -2647,14 +2647,14 @@ function pr(e) {
|
|
|
2647
2647
|
}
|
|
2648
2648
|
const Mm = /* @__PURE__ */ st(0);
|
|
2649
2649
|
function Au(e) {
|
|
2650
|
-
const t =
|
|
2650
|
+
const t = Ge(e);
|
|
2651
2651
|
return !mi() || !t.visualViewport ? Mm : {
|
|
2652
2652
|
x: t.visualViewport.offsetLeft,
|
|
2653
2653
|
y: t.visualViewport.offsetTop
|
|
2654
2654
|
};
|
|
2655
2655
|
}
|
|
2656
2656
|
function jm(e, t, r) {
|
|
2657
|
-
return t === void 0 && (t = !1), !r || t && r !==
|
|
2657
|
+
return t === void 0 && (t = !1), !r || t && r !== Ge(e) ? !1 : t;
|
|
2658
2658
|
}
|
|
2659
2659
|
function ir(e, t, r, n) {
|
|
2660
2660
|
t === void 0 && (t = !1), r === void 0 && (r = !1);
|
|
@@ -2664,11 +2664,11 @@ function ir(e, t, r, n) {
|
|
|
2664
2664
|
const s = jm(o, r, n) ? Au(o) : st(0);
|
|
2665
2665
|
let l = (a.left + s.x) / i.x, u = (a.top + s.y) / i.y, c = a.width / i.x, f = a.height / i.y;
|
|
2666
2666
|
if (o) {
|
|
2667
|
-
const g =
|
|
2667
|
+
const g = Ge(o), d = n && je(n) ? Ge(n) : n;
|
|
2668
2668
|
let m = g, p = xo(m);
|
|
2669
2669
|
for (; p && n && d !== m; ) {
|
|
2670
|
-
const v = pr(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x,
|
|
2671
|
-
l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u +=
|
|
2670
|
+
const v = pr(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, E = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
2671
|
+
l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u += E, m = Ge(p), p = xo(m);
|
|
2672
2672
|
}
|
|
2673
2673
|
}
|
|
2674
2674
|
return qn({
|
|
@@ -2732,7 +2732,7 @@ function Vm(e) {
|
|
|
2732
2732
|
}
|
|
2733
2733
|
const xs = 25;
|
|
2734
2734
|
function zm(e, t) {
|
|
2735
|
-
const r =
|
|
2735
|
+
const r = Ge(e), n = dt(e), a = r.visualViewport;
|
|
2736
2736
|
let o = n.clientWidth, i = n.clientHeight, s = 0, l = 0;
|
|
2737
2737
|
if (a) {
|
|
2738
2738
|
o = a.width, i = a.height;
|
|
@@ -2861,7 +2861,7 @@ function ks(e, t) {
|
|
|
2861
2861
|
return dt(e) === r && (r = r.ownerDocument.body), r;
|
|
2862
2862
|
}
|
|
2863
2863
|
function Tu(e, t) {
|
|
2864
|
-
const r =
|
|
2864
|
+
const r = Ge(e);
|
|
2865
2865
|
if (ha(e))
|
|
2866
2866
|
return r;
|
|
2867
2867
|
if (!ct(e)) {
|
|
@@ -2929,17 +2929,17 @@ function Jm(e, t) {
|
|
|
2929
2929
|
rootMargin: -m + "px " + -p + "px " + -v + "px " + -b + "px",
|
|
2930
2930
|
threshold: Te(0, or(1, l)) || 1
|
|
2931
2931
|
};
|
|
2932
|
-
let
|
|
2932
|
+
let E = !0;
|
|
2933
2933
|
function w(P) {
|
|
2934
|
-
const
|
|
2935
|
-
if (
|
|
2936
|
-
if (!
|
|
2934
|
+
const N = P[0].intersectionRatio;
|
|
2935
|
+
if (N !== l) {
|
|
2936
|
+
if (!E)
|
|
2937
2937
|
return i();
|
|
2938
|
-
|
|
2938
|
+
N ? i(!1, N) : n = setTimeout(() => {
|
|
2939
2939
|
i(!1, 1e-7);
|
|
2940
2940
|
}, 1e3);
|
|
2941
2941
|
}
|
|
2942
|
-
|
|
2942
|
+
N === 1 && !Mu(u, e.getBoundingClientRect()) && i(), E = !1;
|
|
2943
2943
|
}
|
|
2944
2944
|
try {
|
|
2945
2945
|
r = new IntersectionObserver(w, {
|
|
@@ -3043,7 +3043,7 @@ function Ss(e, t) {
|
|
|
3043
3043
|
return Math.round(t * r) / r;
|
|
3044
3044
|
}
|
|
3045
3045
|
function Wa(e) {
|
|
3046
|
-
const t =
|
|
3046
|
+
const t = j.useRef(e);
|
|
3047
3047
|
return Ln(() => {
|
|
3048
3048
|
t.current = e;
|
|
3049
3049
|
}), t;
|
|
@@ -3062,28 +3062,28 @@ function ip(e) {
|
|
|
3062
3062
|
transform: s = !0,
|
|
3063
3063
|
whileElementsMounted: l,
|
|
3064
3064
|
open: u
|
|
3065
|
-
} = e, [c, f] =
|
|
3065
|
+
} = e, [c, f] = j.useState({
|
|
3066
3066
|
x: 0,
|
|
3067
3067
|
y: 0,
|
|
3068
3068
|
strategy: r,
|
|
3069
3069
|
placement: t,
|
|
3070
3070
|
middlewareData: {},
|
|
3071
3071
|
isPositioned: !1
|
|
3072
|
-
}), [g, d] =
|
|
3072
|
+
}), [g, d] = j.useState(n);
|
|
3073
3073
|
Xn(g, n) || d(n);
|
|
3074
|
-
const [m, p] =
|
|
3074
|
+
const [m, p] = j.useState(null), [v, b] = j.useState(null), x = j.useCallback((k) => {
|
|
3075
3075
|
k !== P.current && (P.current = k, p(k));
|
|
3076
|
-
}, []), y =
|
|
3077
|
-
k !==
|
|
3078
|
-
}, []),
|
|
3079
|
-
if (!P.current || !
|
|
3076
|
+
}, []), y = j.useCallback((k) => {
|
|
3077
|
+
k !== N.current && (N.current = k, b(k));
|
|
3078
|
+
}, []), E = o || m, w = i || v, P = j.useRef(null), N = j.useRef(null), F = j.useRef(c), z = l != null, S = Wa(l), I = Wa(a), K = Wa(u), X = j.useCallback(() => {
|
|
3079
|
+
if (!P.current || !N.current)
|
|
3080
3080
|
return;
|
|
3081
3081
|
const k = {
|
|
3082
3082
|
placement: t,
|
|
3083
3083
|
strategy: r,
|
|
3084
3084
|
middleware: g
|
|
3085
3085
|
};
|
|
3086
|
-
|
|
3086
|
+
I.current && (k.platform = I.current), np(P.current, N.current, k).then((U) => {
|
|
3087
3087
|
const re = {
|
|
3088
3088
|
...U,
|
|
3089
3089
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -3092,36 +3092,36 @@ function ip(e) {
|
|
|
3092
3092
|
// setting it to `true` when `open === false` (must be specified).
|
|
3093
3093
|
isPositioned: K.current !== !1
|
|
3094
3094
|
};
|
|
3095
|
-
|
|
3095
|
+
M.current && !Xn(F.current, re) && (F.current = re, Bn.flushSync(() => {
|
|
3096
3096
|
f(re);
|
|
3097
3097
|
}));
|
|
3098
3098
|
});
|
|
3099
|
-
}, [g, t, r,
|
|
3099
|
+
}, [g, t, r, I, K]);
|
|
3100
3100
|
Ln(() => {
|
|
3101
3101
|
u === !1 && F.current.isPositioned && (F.current.isPositioned = !1, f((k) => ({
|
|
3102
3102
|
...k,
|
|
3103
3103
|
isPositioned: !1
|
|
3104
3104
|
})));
|
|
3105
3105
|
}, [u]);
|
|
3106
|
-
const
|
|
3107
|
-
Ln(() => (
|
|
3108
|
-
|
|
3106
|
+
const M = j.useRef(!1);
|
|
3107
|
+
Ln(() => (M.current = !0, () => {
|
|
3108
|
+
M.current = !1;
|
|
3109
3109
|
}), []), Ln(() => {
|
|
3110
|
-
if (
|
|
3111
|
-
if (
|
|
3112
|
-
return
|
|
3110
|
+
if (E && (P.current = E), w && (N.current = w), E && w) {
|
|
3111
|
+
if (S.current)
|
|
3112
|
+
return S.current(E, w, X);
|
|
3113
3113
|
X();
|
|
3114
3114
|
}
|
|
3115
|
-
}, [
|
|
3116
|
-
const
|
|
3115
|
+
}, [E, w, X, S, z]);
|
|
3116
|
+
const V = j.useMemo(() => ({
|
|
3117
3117
|
reference: P,
|
|
3118
|
-
floating:
|
|
3118
|
+
floating: N,
|
|
3119
3119
|
setReference: x,
|
|
3120
3120
|
setFloating: y
|
|
3121
|
-
}), [x, y]), W =
|
|
3122
|
-
reference:
|
|
3121
|
+
}), [x, y]), W = j.useMemo(() => ({
|
|
3122
|
+
reference: E,
|
|
3123
3123
|
floating: w
|
|
3124
|
-
}), [
|
|
3124
|
+
}), [E, w]), J = j.useMemo(() => {
|
|
3125
3125
|
const k = {
|
|
3126
3126
|
position: r,
|
|
3127
3127
|
left: 0,
|
|
@@ -3142,13 +3142,13 @@ function ip(e) {
|
|
|
3142
3142
|
top: re
|
|
3143
3143
|
};
|
|
3144
3144
|
}, [r, s, W.floating, c.x, c.y]);
|
|
3145
|
-
return
|
|
3145
|
+
return j.useMemo(() => ({
|
|
3146
3146
|
...c,
|
|
3147
3147
|
update: X,
|
|
3148
|
-
refs:
|
|
3148
|
+
refs: V,
|
|
3149
3149
|
elements: W,
|
|
3150
3150
|
floatingStyles: J
|
|
3151
|
-
}), [c, X,
|
|
3151
|
+
}), [c, X, V, W, J]);
|
|
3152
3152
|
}
|
|
3153
3153
|
const Lu = (e, t) => ({
|
|
3154
3154
|
...Zm(e),
|
|
@@ -3163,16 +3163,16 @@ const Lu = (e, t) => ({
|
|
|
3163
3163
|
...rp(e),
|
|
3164
3164
|
options: [e, t]
|
|
3165
3165
|
}), Du = {
|
|
3166
|
-
...
|
|
3166
|
+
...j
|
|
3167
3167
|
}, cp = Du.useInsertionEffect, dp = cp || ((e) => e());
|
|
3168
3168
|
function Vu(e) {
|
|
3169
|
-
const t =
|
|
3169
|
+
const t = j.useRef(() => {
|
|
3170
3170
|
if (process.env.NODE_ENV !== "production")
|
|
3171
3171
|
throw new Error("Cannot call an event handler while rendering.");
|
|
3172
3172
|
});
|
|
3173
3173
|
return dp(() => {
|
|
3174
3174
|
t.current = e;
|
|
3175
|
-
}),
|
|
3175
|
+
}), j.useCallback(function() {
|
|
3176
3176
|
for (var r = arguments.length, n = new Array(r), a = 0; a < r; a++)
|
|
3177
3177
|
n[a] = arguments[a];
|
|
3178
3178
|
return t.current == null ? void 0 : t.current(...n);
|
|
@@ -3186,10 +3186,10 @@ const Cs = () => (
|
|
|
3186
3186
|
"floating-ui-" + Math.random().toString(36).slice(2, 6) + fp++
|
|
3187
3187
|
);
|
|
3188
3188
|
function gp() {
|
|
3189
|
-
const [e, t] =
|
|
3189
|
+
const [e, t] = j.useState(() => Es ? Cs() : void 0);
|
|
3190
3190
|
return ko(() => {
|
|
3191
3191
|
e == null && t(Cs());
|
|
3192
|
-
}, []),
|
|
3192
|
+
}, []), j.useEffect(() => {
|
|
3193
3193
|
Es = !0;
|
|
3194
3194
|
}, []), e;
|
|
3195
3195
|
}
|
|
@@ -3230,35 +3230,35 @@ function bp() {
|
|
|
3230
3230
|
}
|
|
3231
3231
|
};
|
|
3232
3232
|
}
|
|
3233
|
-
const yp = /* @__PURE__ */
|
|
3233
|
+
const yp = /* @__PURE__ */ j.createContext(null), xp = /* @__PURE__ */ j.createContext(null), wp = () => {
|
|
3234
3234
|
var e;
|
|
3235
|
-
return ((e =
|
|
3236
|
-
}, kp = () =>
|
|
3235
|
+
return ((e = j.useContext(yp)) == null ? void 0 : e.id) || null;
|
|
3236
|
+
}, kp = () => j.useContext(xp), Sp = "data-floating-ui-focusable";
|
|
3237
3237
|
function Ep(e) {
|
|
3238
3238
|
const {
|
|
3239
3239
|
open: t = !1,
|
|
3240
3240
|
onOpenChange: r,
|
|
3241
3241
|
elements: n
|
|
3242
|
-
} = e, a = pp(), o =
|
|
3242
|
+
} = e, a = pp(), o = j.useRef({}), [i] = j.useState(() => bp()), s = wp() != null;
|
|
3243
3243
|
if (process.env.NODE_ENV !== "production") {
|
|
3244
3244
|
const d = n.reference;
|
|
3245
3245
|
d && !je(d) && vp("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
3246
3246
|
}
|
|
3247
|
-
const [l, u] =
|
|
3247
|
+
const [l, u] = j.useState(n.reference), c = Vu((d, m, p) => {
|
|
3248
3248
|
o.current.openEvent = d ? m : void 0, i.emit("openchange", {
|
|
3249
3249
|
open: d,
|
|
3250
3250
|
event: m,
|
|
3251
3251
|
reason: p,
|
|
3252
3252
|
nested: s
|
|
3253
3253
|
}), r?.(d, m, p);
|
|
3254
|
-
}), f =
|
|
3254
|
+
}), f = j.useMemo(() => ({
|
|
3255
3255
|
setPositionReference: u
|
|
3256
|
-
}), []), g =
|
|
3256
|
+
}), []), g = j.useMemo(() => ({
|
|
3257
3257
|
reference: l || n.reference || null,
|
|
3258
3258
|
floating: n.floating || null,
|
|
3259
3259
|
domReference: n.reference
|
|
3260
3260
|
}), [l, n.reference, n.floating]);
|
|
3261
|
-
return
|
|
3261
|
+
return j.useMemo(() => ({
|
|
3262
3262
|
dataRef: o,
|
|
3263
3263
|
open: t,
|
|
3264
3264
|
onOpenChange: c,
|
|
@@ -3279,7 +3279,7 @@ function Cp(e) {
|
|
|
3279
3279
|
floating: null,
|
|
3280
3280
|
...e.elements
|
|
3281
3281
|
}
|
|
3282
|
-
}), n = e.rootContext || r, a = n.elements, [o, i] =
|
|
3282
|
+
}), n = e.rootContext || r, a = n.elements, [o, i] = j.useState(null), [s, l] = j.useState(null), c = a?.domReference || o, f = j.useRef(null), g = kp();
|
|
3283
3283
|
ko(() => {
|
|
3284
3284
|
c && (f.current = c);
|
|
3285
3285
|
}, [c]);
|
|
@@ -3291,26 +3291,26 @@ function Cp(e) {
|
|
|
3291
3291
|
reference: s
|
|
3292
3292
|
}
|
|
3293
3293
|
}
|
|
3294
|
-
}), m =
|
|
3295
|
-
const
|
|
3294
|
+
}), m = j.useCallback((y) => {
|
|
3295
|
+
const E = je(y) ? {
|
|
3296
3296
|
getBoundingClientRect: () => y.getBoundingClientRect(),
|
|
3297
3297
|
contextElement: y
|
|
3298
3298
|
} : y;
|
|
3299
|
-
l(
|
|
3300
|
-
}, [d.refs]), p =
|
|
3299
|
+
l(E), d.refs.setReference(E);
|
|
3300
|
+
}, [d.refs]), p = j.useCallback((y) => {
|
|
3301
3301
|
(je(y) || y === null) && (f.current = y, i(y)), (je(d.refs.reference.current) || d.refs.reference.current === null || // Don't allow setting virtual elements using the old technique back to
|
|
3302
3302
|
// `null` to support `positionReference` + an unstable `reference`
|
|
3303
3303
|
// callback ref.
|
|
3304
3304
|
y !== null && !je(y)) && d.refs.setReference(y);
|
|
3305
|
-
}, [d.refs]), v =
|
|
3305
|
+
}, [d.refs]), v = j.useMemo(() => ({
|
|
3306
3306
|
...d.refs,
|
|
3307
3307
|
setReference: p,
|
|
3308
3308
|
setPositionReference: m,
|
|
3309
3309
|
domReference: f
|
|
3310
|
-
}), [d.refs, p, m]), b =
|
|
3310
|
+
}), [d.refs, p, m]), b = j.useMemo(() => ({
|
|
3311
3311
|
...d.elements,
|
|
3312
3312
|
domReference: c
|
|
3313
|
-
}), [d.elements, c]), x =
|
|
3313
|
+
}), [d.elements, c]), x = j.useMemo(() => ({
|
|
3314
3314
|
...d,
|
|
3315
3315
|
...n,
|
|
3316
3316
|
refs: v,
|
|
@@ -3319,9 +3319,9 @@ function Cp(e) {
|
|
|
3319
3319
|
}), [d, v, b, t, n]);
|
|
3320
3320
|
return ko(() => {
|
|
3321
3321
|
n.dataRef.current.floatingContext = x;
|
|
3322
|
-
const y = g?.nodesRef.current.find((
|
|
3322
|
+
const y = g?.nodesRef.current.find((E) => E.id === t);
|
|
3323
3323
|
y && (y.context = x);
|
|
3324
|
-
}),
|
|
3324
|
+
}), j.useMemo(() => ({
|
|
3325
3325
|
...d,
|
|
3326
3326
|
context: x,
|
|
3327
3327
|
refs: v,
|
|
@@ -3368,20 +3368,20 @@ function Ua(e, t, r) {
|
|
|
3368
3368
|
}
|
|
3369
3369
|
function $p(e) {
|
|
3370
3370
|
e === void 0 && (e = []);
|
|
3371
|
-
const t = e.map((s) => s?.reference), r = e.map((s) => s?.floating), n = e.map((s) => s?.item), a =
|
|
3371
|
+
const t = e.map((s) => s?.reference), r = e.map((s) => s?.floating), n = e.map((s) => s?.item), a = j.useCallback(
|
|
3372
3372
|
(s) => Ua(s, e, "reference"),
|
|
3373
3373
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3374
3374
|
t
|
|
3375
|
-
), o =
|
|
3375
|
+
), o = j.useCallback(
|
|
3376
3376
|
(s) => Ua(s, e, "floating"),
|
|
3377
3377
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3378
3378
|
r
|
|
3379
|
-
), i =
|
|
3379
|
+
), i = j.useCallback(
|
|
3380
3380
|
(s) => Ua(s, e, "item"),
|
|
3381
3381
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3382
3382
|
n
|
|
3383
3383
|
);
|
|
3384
|
-
return
|
|
3384
|
+
return j.useMemo(() => ({
|
|
3385
3385
|
getReferenceProps: a,
|
|
3386
3386
|
getFloatingProps: o,
|
|
3387
3387
|
getItemProps: i
|
|
@@ -3424,19 +3424,19 @@ const Rp = (e) => ({
|
|
|
3424
3424
|
const y = {
|
|
3425
3425
|
...t,
|
|
3426
3426
|
...await Lu(-d.offsetTop - g.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - o).fn(t)
|
|
3427
|
-
},
|
|
3427
|
+
}, E = await Ba(Ps(y, m.scrollHeight + p + g.clientTop), c), w = await Ba(y, {
|
|
3428
3428
|
...c,
|
|
3429
3429
|
elementContext: "reference"
|
|
3430
|
-
}), P = Te(0,
|
|
3431
|
-
if (m.style.maxHeight =
|
|
3432
|
-
const
|
|
3433
|
-
Bn.flushSync(() => a(
|
|
3430
|
+
}), P = Te(0, E.top), N = y.y + P, S = (m.scrollHeight > m.clientHeight ? (I) => I : tn)(Te(0, m.scrollHeight + (v && x || b ? p * 2 : 0) - P - Te(0, E.bottom)));
|
|
3431
|
+
if (m.style.maxHeight = S + "px", m.scrollTop = P, a) {
|
|
3432
|
+
const I = m.offsetHeight < d.offsetHeight * or(s, r.current.length) - 1 || w.top >= -l || w.bottom >= -l;
|
|
3433
|
+
Bn.flushSync(() => a(I));
|
|
3434
3434
|
}
|
|
3435
3435
|
return n && (n.current = await Ba(Ps({
|
|
3436
3436
|
...y,
|
|
3437
|
-
y:
|
|
3437
|
+
y: N
|
|
3438
3438
|
}, m.offsetHeight + p + g.clientTop), c)), {
|
|
3439
|
-
y:
|
|
3439
|
+
y: N
|
|
3440
3440
|
};
|
|
3441
3441
|
}
|
|
3442
3442
|
});
|
|
@@ -3449,15 +3449,15 @@ function Pp(e, t) {
|
|
|
3449
3449
|
overflowRef: o,
|
|
3450
3450
|
scrollRef: i,
|
|
3451
3451
|
onChange: s
|
|
3452
|
-
} = t, l = Vu(s), u =
|
|
3453
|
-
|
|
3452
|
+
} = t, l = Vu(s), u = j.useRef(!1), c = j.useRef(null), f = j.useRef(null);
|
|
3453
|
+
j.useEffect(() => {
|
|
3454
3454
|
if (!a) return;
|
|
3455
3455
|
function d(p) {
|
|
3456
3456
|
if (p.ctrlKey || !m || o.current == null)
|
|
3457
3457
|
return;
|
|
3458
|
-
const v = p.deltaY, b = o.current.top >= -0.5, x = o.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight,
|
|
3458
|
+
const v = p.deltaY, b = o.current.top >= -0.5, x = o.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight, E = v < 0 ? -1 : 1, w = v < 0 ? "max" : "min";
|
|
3459
3459
|
m.scrollHeight <= m.clientHeight || (!b && v > 0 || !x && v < 0 ? (p.preventDefault(), Bn.flushSync(() => {
|
|
3460
|
-
l((P) => P + Math[w](v, y *
|
|
3460
|
+
l((P) => P + Math[w](v, y * E));
|
|
3461
3461
|
})) : /firefox/i.test(vm()) && (m.scrollTop += v));
|
|
3462
3462
|
}
|
|
3463
3463
|
const m = i?.current || n.floating;
|
|
@@ -3470,7 +3470,7 @@ function Pp(e, t) {
|
|
|
3470
3470
|
c.current = null, f.current = null, m.removeEventListener("wheel", d);
|
|
3471
3471
|
};
|
|
3472
3472
|
}, [a, r, n.floating, o, i, l]);
|
|
3473
|
-
const g =
|
|
3473
|
+
const g = j.useMemo(() => ({
|
|
3474
3474
|
onKeyDown() {
|
|
3475
3475
|
u.current = !0;
|
|
3476
3476
|
},
|
|
@@ -3493,7 +3493,7 @@ function Pp(e, t) {
|
|
|
3493
3493
|
}
|
|
3494
3494
|
}
|
|
3495
3495
|
}), [n.floating, l, o, i]);
|
|
3496
|
-
return
|
|
3496
|
+
return j.useMemo(() => a ? {
|
|
3497
3497
|
floating: g
|
|
3498
3498
|
} : {}, [a, g]);
|
|
3499
3499
|
}
|
|
@@ -3536,32 +3536,32 @@ function wi({ children: e, enabled: t = !0 }) {
|
|
|
3536
3536
|
ge(() => {
|
|
3537
3537
|
u && o(0);
|
|
3538
3538
|
}, [u]);
|
|
3539
|
-
let { refs: b, floatingStyles: x, context: y } = Cp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Lu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), sp({ padding: d }), p !== "selection" && lp({ padding: d }), p === "selection" && m ? Rp({ ...m, padding: d, overflowRef: i, offset: a, minItemsVisible: Fs, referenceOverflowThreshold: d, onFallbackChange(
|
|
3539
|
+
let { refs: b, floatingStyles: x, context: y } = Cp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Lu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), sp({ padding: d }), p !== "selection" && lp({ padding: d }), p === "selection" && m ? Rp({ ...m, padding: d, overflowRef: i, offset: a, minItemsVisible: Fs, referenceOverflowThreshold: d, onFallbackChange(I) {
|
|
3540
3540
|
var K, X;
|
|
3541
|
-
if (!
|
|
3542
|
-
let
|
|
3543
|
-
if (!
|
|
3544
|
-
let
|
|
3541
|
+
if (!I) return;
|
|
3542
|
+
let M = y.elements.floating;
|
|
3543
|
+
if (!M) return;
|
|
3544
|
+
let V = parseFloat(getComputedStyle(M).scrollPaddingBottom) || 0, W = Math.min(Fs, M.childElementCount), J = 0, k = 0;
|
|
3545
3545
|
for (let U of (X = (K = y.elements.floating) == null ? void 0 : K.childNodes) != null ? X : []) if (Ne(U)) {
|
|
3546
|
-
let re = U.offsetTop,
|
|
3547
|
-
if (re >=
|
|
3546
|
+
let re = U.offsetTop, C = re + U.clientHeight + V, L = M.scrollTop, R = L + M.clientHeight;
|
|
3547
|
+
if (re >= L && C <= R) W--;
|
|
3548
3548
|
else {
|
|
3549
|
-
k = Math.max(0, Math.min(
|
|
3549
|
+
k = Math.max(0, Math.min(C, R) - Math.max(re, L)), J = U.clientHeight;
|
|
3550
3550
|
break;
|
|
3551
3551
|
}
|
|
3552
3552
|
}
|
|
3553
3553
|
W >= 1 && o((U) => {
|
|
3554
|
-
let re = J * W - k +
|
|
3554
|
+
let re = J * W - k + V;
|
|
3555
3555
|
return U >= re ? U : re;
|
|
3556
3556
|
});
|
|
3557
|
-
} }) : null, up({ padding: d, apply({ availableWidth:
|
|
3558
|
-
Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${
|
|
3559
|
-
} })].filter(Boolean), whileElementsMounted: Qm }), [
|
|
3560
|
-
p === "selection" && (
|
|
3561
|
-
let P = ye(() => ({ anchor: [
|
|
3562
|
-
l(
|
|
3557
|
+
} }) : null, up({ padding: d, apply({ availableWidth: I, availableHeight: K, elements: X }) {
|
|
3558
|
+
Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${I}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${K}px)` });
|
|
3559
|
+
} })].filter(Boolean), whileElementsMounted: Qm }), [E = p, w = v] = y.placement.split("-");
|
|
3560
|
+
p === "selection" && (E = "selection");
|
|
3561
|
+
let P = ye(() => ({ anchor: [E, w].filter(Boolean).join(" ") }), [E, w]), N = Pp(y, { overflowRef: i, onChange: o }), { getReferenceProps: F, getFloatingProps: z } = $p([N]), S = T((I) => {
|
|
3562
|
+
l(I), b.setFloating(I);
|
|
3563
3563
|
});
|
|
3564
|
-
return
|
|
3564
|
+
return j.createElement(hi.Provider, { value: n }, j.createElement(Fr.Provider, { value: { setFloating: S, setReference: b.setReference, styles: x, getReferenceProps: F, getFloatingProps: z, slot: P } }, e));
|
|
3565
3565
|
}
|
|
3566
3566
|
function Fp(e) {
|
|
3567
3567
|
ge(() => {
|
|
@@ -3583,7 +3583,7 @@ function Ip(e, t) {
|
|
|
3583
3583
|
return { ...e, gap: o, offset: i, padding: s };
|
|
3584
3584
|
}
|
|
3585
3585
|
function Ya(e, t, r = void 0) {
|
|
3586
|
-
let n = rt(), a =
|
|
3586
|
+
let n = rt(), a = T((l, u) => {
|
|
3587
3587
|
if (l == null) return [r, null];
|
|
3588
3588
|
if (typeof l == "number") return [l, null];
|
|
3589
3589
|
if (typeof l == "string") {
|
|
@@ -3636,9 +3636,9 @@ function Is(e, t) {
|
|
|
3636
3636
|
}
|
|
3637
3637
|
function Np({ children: e, freeze: t }, r) {
|
|
3638
3638
|
let n = Gu(t, e);
|
|
3639
|
-
return Xo(n) ? zl(n, { ref: r }) :
|
|
3639
|
+
return Xo(n) ? zl(n, { ref: r }) : $.createElement($.Fragment, null, n);
|
|
3640
3640
|
}
|
|
3641
|
-
|
|
3641
|
+
$.forwardRef(Np);
|
|
3642
3642
|
function Gu(e, t) {
|
|
3643
3643
|
let [r, n] = ae(t);
|
|
3644
3644
|
return !e && r !== t && n(t), e ? r : t;
|
|
@@ -3650,10 +3650,10 @@ function Yt() {
|
|
|
3650
3650
|
return fe(ya);
|
|
3651
3651
|
}
|
|
3652
3652
|
function xa({ value: e, children: t }) {
|
|
3653
|
-
return
|
|
3653
|
+
return $.createElement(ya.Provider, { value: e }, t);
|
|
3654
3654
|
}
|
|
3655
3655
|
function Bu({ children: e }) {
|
|
3656
|
-
return
|
|
3656
|
+
return $.createElement(ya.Provider, { value: null }, e);
|
|
3657
3657
|
}
|
|
3658
3658
|
function Ap(e) {
|
|
3659
3659
|
function t() {
|
|
@@ -3707,7 +3707,7 @@ function Nt(e, t) {
|
|
|
3707
3707
|
}
|
|
3708
3708
|
}
|
|
3709
3709
|
function yn(e) {
|
|
3710
|
-
let t =
|
|
3710
|
+
let t = T(e), r = Y(!1);
|
|
3711
3711
|
me(() => (r.current = !1, () => {
|
|
3712
3712
|
r.current = !0, ia(() => {
|
|
3713
3713
|
r.current && t();
|
|
@@ -3719,7 +3719,7 @@ function _p() {
|
|
|
3719
3719
|
return fe(Wu);
|
|
3720
3720
|
}
|
|
3721
3721
|
function Ns(e) {
|
|
3722
|
-
return
|
|
3722
|
+
return $.createElement(Wu.Provider, { value: e.force }, e.children);
|
|
3723
3723
|
}
|
|
3724
3724
|
function Tp(e) {
|
|
3725
3725
|
let t = _p(), r = fe(Yu), [n, a] = ae(() => {
|
|
@@ -3745,27 +3745,27 @@ let Uu = Ie, Mp = le(function(e, t) {
|
|
|
3745
3745
|
return yn(() => {
|
|
3746
3746
|
var g;
|
|
3747
3747
|
l && l.childNodes.length <= 0 && ((g = l.parentElement) == null || g.removeChild(l));
|
|
3748
|
-
}), l ? Hl(
|
|
3748
|
+
}), l ? Hl($.createElement("div", { "data-headlessui-portal": "", ref: (g) => {
|
|
3749
3749
|
c.dispose(), u && g && c.add(u.register(g));
|
|
3750
3750
|
} }, f({ ourProps: { ref: o }, theirProps: n, slot: {}, defaultTag: Uu, name: "Portal" })), l) : null;
|
|
3751
3751
|
});
|
|
3752
3752
|
function jp(e, t) {
|
|
3753
3753
|
let r = be(t), { enabled: n = !0, ownerDocument: a, ...o } = e, i = ue();
|
|
3754
|
-
return n ?
|
|
3754
|
+
return n ? $.createElement(Mp, { ...o, ownerDocument: a, ref: r }) : i({ ourProps: { ref: r }, theirProps: o, slot: {}, defaultTag: Uu, name: "Portal" });
|
|
3755
3755
|
}
|
|
3756
3756
|
let Lp = Ie, Yu = Ce(null);
|
|
3757
3757
|
function Dp(e, t) {
|
|
3758
3758
|
let { target: r, ...n } = e, a = { ref: be(t) }, o = ue();
|
|
3759
|
-
return
|
|
3759
|
+
return $.createElement(Yu.Provider, { value: r }, o({ ourProps: a, theirProps: n, defaultTag: Lp, name: "Popover.Group" }));
|
|
3760
3760
|
}
|
|
3761
3761
|
let So = Ce(null);
|
|
3762
3762
|
function Ku() {
|
|
3763
|
-
let e = fe(So), t = Y([]), r =
|
|
3763
|
+
let e = fe(So), t = Y([]), r = T((o) => (t.current.push(o), e && e.register(o), () => n(o))), n = T((o) => {
|
|
3764
3764
|
let i = t.current.indexOf(o);
|
|
3765
3765
|
i !== -1 && t.current.splice(i, 1), e && e.unregister(o);
|
|
3766
3766
|
}), a = ye(() => ({ register: r, unregister: n, portals: t }), [r, n, t]);
|
|
3767
3767
|
return [t, ye(() => function({ children: o }) {
|
|
3768
|
-
return
|
|
3768
|
+
return $.createElement(So.Provider, { value: a }, o);
|
|
3769
3769
|
}, [a])];
|
|
3770
3770
|
}
|
|
3771
3771
|
let Vp = le(jp), qu = le(Dp), wa = Object.assign(Vp, { Group: qu });
|
|
@@ -3802,7 +3802,7 @@ function Hp() {
|
|
|
3802
3802
|
}, [t]), r;
|
|
3803
3803
|
}
|
|
3804
3804
|
function Ju({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
|
|
3805
|
-
let n =
|
|
3805
|
+
let n = T(() => {
|
|
3806
3806
|
var a, o;
|
|
3807
3807
|
let i = Ut(r), s = [];
|
|
3808
3808
|
for (let l of e) l !== null && (vt(l) ? s.push(l) : "current" in l && vt(l.current) && s.push(l.current));
|
|
@@ -3810,12 +3810,12 @@ function Ju({ defaultContainers: e = [], portals: t, mainTreeNode: r } = {}) {
|
|
|
3810
3810
|
for (let l of (a = i?.querySelectorAll("html > *, body > *")) != null ? a : []) l !== document.body && l !== document.head && vt(l) && l.id !== "headlessui-portal-root" && (r && (l.contains(r) || l.contains((o = r?.getRootNode()) == null ? void 0 : o.host)) || s.some((u) => l.contains(u)) || s.push(l));
|
|
3811
3811
|
return s;
|
|
3812
3812
|
});
|
|
3813
|
-
return { resolveContainers: n, contains:
|
|
3813
|
+
return { resolveContainers: n, contains: T((a) => n().some((o) => o.contains(a))) };
|
|
3814
3814
|
}
|
|
3815
3815
|
let Qu = Ce(null);
|
|
3816
3816
|
function Jn({ children: e, node: t }) {
|
|
3817
3817
|
let [r, n] = ae(null), a = Si(t ?? r);
|
|
3818
|
-
return
|
|
3818
|
+
return $.createElement(Qu.Provider, { value: a }, e, a === null && $.createElement(bt, { features: ut.Hidden, ref: (o) => {
|
|
3819
3819
|
var i, s;
|
|
3820
3820
|
if (o) {
|
|
3821
3821
|
for (let l of (s = (i = Ut(o)) == null ? void 0 : i.querySelectorAll("html > *, body > *")) != null ? s : []) if (l !== document.body && l !== document.head && vt(l) && l != null && l.contains(o)) {
|
|
@@ -3831,14 +3831,14 @@ function Si(e = null) {
|
|
|
3831
3831
|
}
|
|
3832
3832
|
function Gp() {
|
|
3833
3833
|
let e = typeof document > "u";
|
|
3834
|
-
return "useSyncExternalStore" in
|
|
3834
|
+
return "useSyncExternalStore" in j ? ((t) => t.useSyncExternalStore)(j)(() => () => {
|
|
3835
3835
|
}, () => !1, () => !e) : !1;
|
|
3836
3836
|
}
|
|
3837
3837
|
function ka() {
|
|
3838
|
-
let e = Gp(), [t, r] =
|
|
3839
|
-
return t && ot.isHandoffComplete === !1 && r(!1),
|
|
3838
|
+
let e = Gp(), [t, r] = j.useState(ot.isHandoffComplete);
|
|
3839
|
+
return t && ot.isHandoffComplete === !1 && r(!1), j.useEffect(() => {
|
|
3840
3840
|
t !== !0 && r(!0);
|
|
3841
|
-
}, [t]),
|
|
3841
|
+
}, [t]), j.useEffect(() => ot.handoff(), []), e ? !1 : t;
|
|
3842
3842
|
}
|
|
3843
3843
|
function Ei() {
|
|
3844
3844
|
let e = Y(!1);
|
|
@@ -3846,7 +3846,7 @@ function Ei() {
|
|
|
3846
3846
|
e.current = !1;
|
|
3847
3847
|
}), []), e;
|
|
3848
3848
|
}
|
|
3849
|
-
var
|
|
3849
|
+
var He = ((e) => (e[e.Forwards = 0] = "Forwards", e[e.Backwards = 1] = "Backwards", e))(He || {});
|
|
3850
3850
|
function Ci() {
|
|
3851
3851
|
let e = Y(0);
|
|
3852
3852
|
return ku(!0, "keydown", (t) => {
|
|
@@ -3869,14 +3869,14 @@ function Wp(e, t) {
|
|
|
3869
3869
|
qp(s, { ownerDocument: u });
|
|
3870
3870
|
let c = Xp(s, { ownerDocument: u, container: r, initialFocus: a, initialFocusFallback: o });
|
|
3871
3871
|
Jp(s, { ownerDocument: u, container: r, containers: i, previousActiveElement: c });
|
|
3872
|
-
let f = Ci(), g =
|
|
3872
|
+
let f = Ci(), g = T((x) => {
|
|
3873
3873
|
if (!Ne(r.current)) return;
|
|
3874
3874
|
let y = r.current;
|
|
3875
|
-
((
|
|
3876
|
-
$e(f.current, { [
|
|
3877
|
-
|
|
3878
|
-
}, [
|
|
3879
|
-
|
|
3875
|
+
((E) => E())(() => {
|
|
3876
|
+
$e(f.current, { [He.Forwards]: () => {
|
|
3877
|
+
ze(y, Re.First, { skipElements: [x.relatedTarget, o] });
|
|
3878
|
+
}, [He.Backwards]: () => {
|
|
3879
|
+
ze(y, Re.Last, { skipElements: [x.relatedTarget, o] });
|
|
3880
3880
|
} });
|
|
3881
3881
|
});
|
|
3882
3882
|
}), d = dn(!!(s & 2), "focus-trap#tab-lock"), m = rt(), p = Y(!1), v = { ref: n, onKeyDown(x) {
|
|
@@ -3887,10 +3887,10 @@ function Wp(e, t) {
|
|
|
3887
3887
|
if (!(s & 4)) return;
|
|
3888
3888
|
let y = Zu(i);
|
|
3889
3889
|
Ne(r.current) && y.add(r.current);
|
|
3890
|
-
let
|
|
3891
|
-
Je(
|
|
3890
|
+
let E = x.relatedTarget;
|
|
3891
|
+
Je(E) && E.dataset.headlessuiFocusGuard !== "true" && (ec(y, E) || (p.current ? ze(r.current, $e(f.current, { [He.Forwards]: () => Re.Next, [He.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: x.target }) : Je(x.target) && it(x.target)));
|
|
3892
3892
|
} }, b = ue();
|
|
3893
|
-
return
|
|
3893
|
+
return $.createElement($.Fragment, null, d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }), b({ ourProps: v, theirProps: l, defaultTag: Bp, name: "FocusTrap" }), d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: ut.Focusable }));
|
|
3894
3894
|
}
|
|
3895
3895
|
let Up = le(Wp), Yp = Object.assign(Up, { features: Qt });
|
|
3896
3896
|
function Kp(e = !0) {
|
|
@@ -3899,7 +3899,7 @@ function Kp(e = !0) {
|
|
|
3899
3899
|
n === !0 && r === !1 && ia(() => {
|
|
3900
3900
|
t.current.splice(0);
|
|
3901
3901
|
}), n === !1 && r === !0 && (t.current = Rt.slice());
|
|
3902
|
-
}, [e, Rt, t]),
|
|
3902
|
+
}, [e, Rt, t]), T(() => {
|
|
3903
3903
|
var r;
|
|
3904
3904
|
return (r = t.current.find((n) => n != null && n.isConnected)) != null ? r : null;
|
|
3905
3905
|
});
|
|
@@ -3936,8 +3936,8 @@ function Xp(e, { ownerDocument: t, container: r, initialFocus: n, initialFocusFa
|
|
|
3936
3936
|
if (n != null && n.current) it(n.current);
|
|
3937
3937
|
else {
|
|
3938
3938
|
if (e & 16) {
|
|
3939
|
-
if (
|
|
3940
|
-
} else if (
|
|
3939
|
+
if (ze(l, Re.First | Re.AutoFocus) !== br.Error) return;
|
|
3940
|
+
} else if (ze(l, Re.First) !== br.Error) return;
|
|
3941
3941
|
if (a != null && a.current && (it(a.current), t?.activeElement === a.current)) return;
|
|
3942
3942
|
console.warn("There are no focusable elements inside the <FocusTrap />");
|
|
3943
3943
|
}
|
|
@@ -3963,7 +3963,7 @@ function ec(e, t) {
|
|
|
3963
3963
|
}
|
|
3964
3964
|
function tc(e) {
|
|
3965
3965
|
var t;
|
|
3966
|
-
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Br((t = e.as) != null ? t : nc) ||
|
|
3966
|
+
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !Br((t = e.as) != null ? t : nc) || $.Children.count(e.children) === 1;
|
|
3967
3967
|
}
|
|
3968
3968
|
let Sa = Ce(null);
|
|
3969
3969
|
Sa.displayName = "TransitionContext";
|
|
@@ -3984,7 +3984,7 @@ function Ca(e) {
|
|
|
3984
3984
|
return "children" in e ? Ca(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3985
3985
|
}
|
|
3986
3986
|
function rc(e, t) {
|
|
3987
|
-
let r = lt(e), n = Y([]), a = Ei(), o = rt(), i =
|
|
3987
|
+
let r = lt(e), n = Y([]), a = Ei(), o = rt(), i = T((d, m = Ft.Hidden) => {
|
|
3988
3988
|
let p = n.current.findIndex(({ el: v }) => v === d);
|
|
3989
3989
|
p !== -1 && ($e(m, { [Ft.Unmount]() {
|
|
3990
3990
|
n.current.splice(p, 1);
|
|
@@ -3994,16 +3994,16 @@ function rc(e, t) {
|
|
|
3994
3994
|
var v;
|
|
3995
3995
|
!Ca(n) && a.current && ((v = r.current) == null || v.call(r));
|
|
3996
3996
|
}));
|
|
3997
|
-
}), s =
|
|
3997
|
+
}), s = T((d) => {
|
|
3998
3998
|
let m = n.current.find(({ el: p }) => p === d);
|
|
3999
3999
|
return m ? m.state !== "visible" && (m.state = "visible") : n.current.push({ el: d, state: "visible" }), () => i(d, Ft.Unmount);
|
|
4000
|
-
}), l = Y([]), u = Y(Promise.resolve()), c = Y({ enter: [], leave: [] }), f =
|
|
4000
|
+
}), l = Y([]), u = Y(Promise.resolve()), c = Y({ enter: [], leave: [] }), f = T((d, m, p) => {
|
|
4001
4001
|
l.current.splice(0), t && (t.chains.current[m] = t.chains.current[m].filter(([v]) => v !== d)), t?.chains.current[m].push([d, new Promise((v) => {
|
|
4002
4002
|
l.current.push(v);
|
|
4003
4003
|
})]), t?.chains.current[m].push([d, new Promise((v) => {
|
|
4004
4004
|
Promise.all(c.current[m].map(([b, x]) => x)).then(() => v());
|
|
4005
4005
|
})]), m === "enter" ? u.current = u.current.then(() => t?.wait.current).then(() => p(m)) : p(m);
|
|
4006
|
-
}), g =
|
|
4006
|
+
}), g = T((d, m, p) => {
|
|
4007
4007
|
Promise.all(c.current[m].splice(0).map(([v, b]) => b)).then(() => {
|
|
4008
4008
|
var v;
|
|
4009
4009
|
(v = l.current.shift()) == null || v();
|
|
@@ -4014,41 +4014,41 @@ function rc(e, t) {
|
|
|
4014
4014
|
let nc = Ie, ac = Ke.RenderStrategy;
|
|
4015
4015
|
function t0(e, t) {
|
|
4016
4016
|
var r, n;
|
|
4017
|
-
let { transition: a = !0, beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: m, leaveTo: p, ...v } = e, [b, x] = ae(null), y = Y(null),
|
|
4017
|
+
let { transition: a = !0, beforeEnter: o, afterEnter: i, beforeLeave: s, afterLeave: l, enter: u, enterFrom: c, enterTo: f, entered: g, leave: d, leaveFrom: m, leaveTo: p, ...v } = e, [b, x] = ae(null), y = Y(null), E = tc(e), w = be(...E ? [y, t, x] : t === null ? [] : [t]), P = (r = v.unmount) == null || r ? Ft.Unmount : Ft.Hidden, { show: N, appear: F, initial: z } = Zp(), [S, I] = ae(N ? "visible" : "hidden"), K = e0(), { register: X, unregister: M } = K;
|
|
4018
4018
|
ge(() => X(y), [X, y]), ge(() => {
|
|
4019
4019
|
if (P === Ft.Hidden && y.current) {
|
|
4020
|
-
if (
|
|
4021
|
-
|
|
4020
|
+
if (N && S !== "visible") {
|
|
4021
|
+
I("visible");
|
|
4022
4022
|
return;
|
|
4023
4023
|
}
|
|
4024
|
-
return $e(
|
|
4024
|
+
return $e(S, { hidden: () => M(y), visible: () => X(y) });
|
|
4025
4025
|
}
|
|
4026
|
-
}, [
|
|
4027
|
-
let
|
|
4026
|
+
}, [S, y, X, M, N, P]);
|
|
4027
|
+
let V = ka();
|
|
4028
4028
|
ge(() => {
|
|
4029
|
-
if (
|
|
4030
|
-
}, [y,
|
|
4031
|
-
let W =
|
|
4032
|
-
k.current || (
|
|
4033
|
-
}, K), re =
|
|
4029
|
+
if (E && V && S === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
4030
|
+
}, [y, S, V, E]);
|
|
4031
|
+
let W = z && !F, J = F && N && z, k = Y(!1), U = rc(() => {
|
|
4032
|
+
k.current || (I("hidden"), M(y));
|
|
4033
|
+
}, K), re = T((D) => {
|
|
4034
4034
|
k.current = !0;
|
|
4035
|
-
let pe =
|
|
4035
|
+
let pe = D ? "enter" : "leave";
|
|
4036
4036
|
U.onStart(y, pe, (Se) => {
|
|
4037
4037
|
Se === "enter" ? o?.() : Se === "leave" && s?.();
|
|
4038
4038
|
});
|
|
4039
|
-
}),
|
|
4040
|
-
let pe =
|
|
4039
|
+
}), C = T((D) => {
|
|
4040
|
+
let pe = D ? "enter" : "leave";
|
|
4041
4041
|
k.current = !1, U.onStop(y, pe, (Se) => {
|
|
4042
4042
|
Se === "enter" ? i?.() : Se === "leave" && l?.();
|
|
4043
|
-
}), pe === "leave" && !Ca(U) && (
|
|
4043
|
+
}), pe === "leave" && !Ca(U) && (I("hidden"), M(y));
|
|
4044
4044
|
});
|
|
4045
4045
|
me(() => {
|
|
4046
|
-
|
|
4047
|
-
}, [
|
|
4048
|
-
let
|
|
4049
|
-
|
|
4046
|
+
E && a || (re(N), C(N));
|
|
4047
|
+
}, [N, E, a]);
|
|
4048
|
+
let L = !(!a || !E || !V || W), [, R] = hn(L, b, N, { start: re, end: C }), O = $t({ ref: w, className: ((n = vo(v.className, J && u, J && c, R.enter && u, R.enter && R.closed && c, R.enter && !R.closed && f, R.leave && d, R.leave && !R.closed && m, R.leave && R.closed && p, !R.transition && N && g)) == null ? void 0 : n.trim()) || void 0, ...pn(R) }), Q = 0;
|
|
4049
|
+
S === "visible" && (Q |= we.Open), S === "hidden" && (Q |= we.Closed), N && S === "hidden" && (Q |= we.Opening), !N && S === "visible" && (Q |= we.Closing);
|
|
4050
4050
|
let B = ue();
|
|
4051
|
-
return
|
|
4051
|
+
return $.createElement(Ea.Provider, { value: U }, $.createElement(xa, { value: Q }, B({ ourProps: O, theirProps: v, defaultTag: nc, features: ac, visible: S === "visible", name: "Transition.Child" })));
|
|
4052
4052
|
}
|
|
4053
4053
|
function r0(e, t) {
|
|
4054
4054
|
let { show: r, appear: n = !1, unmount: a = !0, ...o } = e, i = Y(null), s = tc(e), l = be(...s ? [i, t] : t === null ? [] : [t]);
|
|
@@ -4065,18 +4065,18 @@ function r0(e, t) {
|
|
|
4065
4065
|
ge(() => {
|
|
4066
4066
|
r ? f("visible") : !Ca(g) && i.current !== null && f("hidden");
|
|
4067
4067
|
}, [r, g]);
|
|
4068
|
-
let b = { unmount: a }, x =
|
|
4068
|
+
let b = { unmount: a }, x = T(() => {
|
|
4069
4069
|
var w;
|
|
4070
4070
|
d && m(!1), (w = e.beforeEnter) == null || w.call(e);
|
|
4071
|
-
}), y =
|
|
4071
|
+
}), y = T(() => {
|
|
4072
4072
|
var w;
|
|
4073
4073
|
d && m(!1), (w = e.beforeLeave) == null || w.call(e);
|
|
4074
|
-
}),
|
|
4075
|
-
return
|
|
4074
|
+
}), E = ue();
|
|
4075
|
+
return $.createElement(Ea.Provider, { value: g }, $.createElement(Sa.Provider, { value: v }, E({ ourProps: { ...b, as: Ie, children: $.createElement(oc, { ref: l, ...b, ...o, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ie, features: ac, visible: c === "visible", name: "Transition" })));
|
|
4076
4076
|
}
|
|
4077
4077
|
function n0(e, t) {
|
|
4078
4078
|
let r = fe(Sa) !== null, n = Yt() !== null;
|
|
4079
|
-
return
|
|
4079
|
+
return $.createElement($.Fragment, null, !r && n ? $.createElement(Eo, { ref: t, ...e }) : $.createElement(oc, { ref: t, ...e }));
|
|
4080
4080
|
}
|
|
4081
4081
|
let Eo = le(r0), oc = le(t0), nn = le(n0), xr = Object.assign(Eo, { Child: nn, Root: Eo });
|
|
4082
4082
|
var a0 = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(a0 || {}), o0 = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(o0 || {});
|
|
@@ -4102,31 +4102,31 @@ let As = le(function(e, t) {
|
|
|
4102
4102
|
})();
|
|
4103
4103
|
let d = Yt();
|
|
4104
4104
|
a === void 0 && d !== null && (a = (d & we.Open) === we.Open);
|
|
4105
|
-
let m = Y(null), p = be(m, t), v = yt(m.current), b = a ? 0 : 1, [x, y] = ff(s0, { titleId: null, descriptionId: null, panelRef: gf() }),
|
|
4105
|
+
let m = Y(null), p = be(m, t), v = yt(m.current), b = a ? 0 : 1, [x, y] = ff(s0, { titleId: null, descriptionId: null, panelRef: gf() }), E = T(() => o(!1)), w = T((R) => y({ type: 0, id: R })), P = ka() ? b === 0 : !1, [N, F] = Ku(), z = { get current() {
|
|
4106
4106
|
var R;
|
|
4107
4107
|
return (R = x.panelRef.current) != null ? R : m.current;
|
|
4108
|
-
} },
|
|
4109
|
-
ui(u || K ? !1 : P, { allowed:
|
|
4108
|
+
} }, S = Si(), { resolveContainers: I } = Ju({ mainTreeNode: S, portals: N, defaultContainers: [z] }), K = d !== null ? (d & we.Closing) === we.Closing : !1;
|
|
4109
|
+
ui(u || K ? !1 : P, { allowed: T(() => {
|
|
4110
4110
|
var R, O;
|
|
4111
4111
|
return [(O = (R = m.current) == null ? void 0 : R.closest("[data-headlessui-portal]")) != null ? O : null];
|
|
4112
|
-
}), disallowed:
|
|
4112
|
+
}), disallowed: T(() => {
|
|
4113
4113
|
var R;
|
|
4114
|
-
return [(R =
|
|
4114
|
+
return [(R = S?.closest("body > *:not(#headlessui-portal-root)")) != null ? R : null];
|
|
4115
4115
|
}) });
|
|
4116
4116
|
let X = ur.get(null);
|
|
4117
4117
|
ge(() => {
|
|
4118
4118
|
if (P) return X.actions.push(n), () => X.actions.pop(n);
|
|
4119
4119
|
}, [X, n, P]);
|
|
4120
|
-
let
|
|
4121
|
-
fa(
|
|
4122
|
-
R.preventDefault(),
|
|
4123
|
-
}), zp(
|
|
4124
|
-
R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
4125
|
-
}), ma(u || K ? !1 : P, v,
|
|
4126
|
-
let [
|
|
4127
|
-
P && !u && (
|
|
4128
|
-
let
|
|
4129
|
-
return
|
|
4120
|
+
let M = de(X, ie((R) => X.selectors.isTop(R, n), [X, n]));
|
|
4121
|
+
fa(M, I, (R) => {
|
|
4122
|
+
R.preventDefault(), E();
|
|
4123
|
+
}), zp(M, v?.defaultView, (R) => {
|
|
4124
|
+
R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), E();
|
|
4125
|
+
}), ma(u || K ? !1 : P, v, I), da(P, m, E);
|
|
4126
|
+
let [V, W] = la(), J = ye(() => [{ dialogState: b, close: E, setTitleId: w, unmount: c }, x], [b, E, w, c, x]), k = ve({ open: b === 0 }), U = { ref: p, id: n, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": V, unmount: c }, re = !Hp(), C = Qt.None;
|
|
4127
|
+
P && !u && (C |= Qt.RestoreFocus, C |= Qt.TabLock, l && (C |= Qt.AutoFocus), re && (C |= Qt.InitialFocus));
|
|
4128
|
+
let L = ue();
|
|
4129
|
+
return $.createElement(Bu, null, $.createElement(Ns, { force: !0 }, $.createElement(wa, null, $.createElement($i.Provider, { value: J }, $.createElement(qu, { target: m }, $.createElement(Ns, { force: !1 }, $.createElement(W, { slot: k }, $.createElement(F, null, $.createElement(Yp, { initialFocus: i, initialFocusFallback: m, containers: I, features: C }, $.createElement(ii, { value: E }, L({ ourProps: U, theirProps: f, slot: k, defaultTag: l0, features: u0, visible: b === 0, name: "Dialog" })))))))))));
|
|
4130
4130
|
}), l0 = "div", u0 = Ke.RenderStrategy | Ke.Static;
|
|
4131
4131
|
function c0(e, t) {
|
|
4132
4132
|
let { transition: r = !1, open: n, ...a } = e, o = Yt(), i = e.hasOwnProperty("open") || o !== null, s = e.hasOwnProperty("onClose");
|
|
@@ -4135,19 +4135,19 @@ function c0(e, t) {
|
|
|
4135
4135
|
if (!s) throw new Error("You provided an `open` prop to the `Dialog`, but forgot an `onClose` prop.");
|
|
4136
4136
|
if (!o && typeof e.open != "boolean") throw new Error(`You provided an \`open\` prop to the \`Dialog\`, but the value is not a boolean. Received: ${e.open}`);
|
|
4137
4137
|
if (typeof e.onClose != "function") throw new Error(`You provided an \`onClose\` prop to the \`Dialog\`, but the value is not a function. Received: ${e.onClose}`);
|
|
4138
|
-
return (n !== void 0 || r) && !a.static ?
|
|
4138
|
+
return (n !== void 0 || r) && !a.static ? $.createElement(Jn, null, $.createElement(xr, { show: n, transition: r, unmount: a.unmount }, $.createElement(As, { ref: t, ...a }))) : $.createElement(Jn, null, $.createElement(As, { ref: t, open: n, ...a }));
|
|
4139
4139
|
}
|
|
4140
4140
|
let d0 = "div";
|
|
4141
4141
|
function f0(e, t) {
|
|
4142
|
-
let r = xe(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = e, [{ dialogState: i, unmount: s }, l] = $a("Dialog.Panel"), u = be(t, l.panelRef), c = ve({ open: i === 0 }), f =
|
|
4142
|
+
let r = xe(), { id: n = `headlessui-dialog-panel-${r}`, transition: a = !1, ...o } = e, [{ dialogState: i, unmount: s }, l] = $a("Dialog.Panel"), u = be(t, l.panelRef), c = ve({ open: i === 0 }), f = T((v) => {
|
|
4143
4143
|
v.stopPropagation();
|
|
4144
4144
|
}), g = { ref: u, id: n, onClick: f }, d = a ? nn : Ie, m = a ? { unmount: s } : {}, p = ue();
|
|
4145
|
-
return
|
|
4145
|
+
return $.createElement(d, { ...m }, p({ ourProps: g, theirProps: o, slot: c, defaultTag: d0, name: "Dialog.Panel" }));
|
|
4146
4146
|
}
|
|
4147
4147
|
let g0 = "div";
|
|
4148
4148
|
function m0(e, t) {
|
|
4149
4149
|
let { transition: r = !1, ...n } = e, [{ dialogState: a, unmount: o }] = $a("Dialog.Backdrop"), i = ve({ open: a === 0 }), s = { ref: t, "aria-hidden": !0 }, l = r ? nn : Ie, u = r ? { unmount: o } : {}, c = ue();
|
|
4150
|
-
return
|
|
4150
|
+
return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: n, slot: i, defaultTag: g0, name: "Dialog.Backdrop" }));
|
|
4151
4151
|
}
|
|
4152
4152
|
let p0 = "h2";
|
|
4153
4153
|
function h0(e, t) {
|
|
@@ -4159,7 +4159,7 @@ function h0(e, t) {
|
|
|
4159
4159
|
let v0 = le(c0), ic = le(f0), b0 = le(m0), sc = le(h0), y0 = Object.assign(v0, { Panel: ic, Title: sc, Description: un }), x0 = "div";
|
|
4160
4160
|
function w0(e, t) {
|
|
4161
4161
|
let r = `headlessui-control-${xe()}`, [n, a] = cn(), [o, i] = la(), s = St(), { disabled: l = s || !1, ...u } = e, c = ve({ disabled: l }), f = { ref: t, disabled: l || void 0, "aria-disabled": l || void 0 }, g = ue();
|
|
4162
|
-
return
|
|
4162
|
+
return $.createElement(Kf, { value: l }, $.createElement(a, { value: n }, $.createElement(i, { value: o }, $.createElement(ug, { id: r }, g({ ourProps: f, theirProps: { ...u, children: $.createElement(ig, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag: x0, name: "Field" })))));
|
|
4163
4163
|
}
|
|
4164
4164
|
let Ra = le(w0), k0 = "input";
|
|
4165
4165
|
function S0(e, t) {
|
|
@@ -4195,7 +4195,7 @@ function C0(e) {
|
|
|
4195
4195
|
}
|
|
4196
4196
|
function lc(e) {
|
|
4197
4197
|
let t = Y(""), r = Y("");
|
|
4198
|
-
return
|
|
4198
|
+
return T(() => {
|
|
4199
4199
|
let n = e.current;
|
|
4200
4200
|
if (!n) return "";
|
|
4201
4201
|
let a = n.innerText;
|
|
@@ -4388,75 +4388,75 @@ let I0 = Ie;
|
|
|
4388
4388
|
function N0(e, t) {
|
|
4389
4389
|
let r = xe(), n = St(), { value: a, defaultValue: o, form: i, name: s, onChange: l, by: u, invalid: c = !1, disabled: f = n || !1, horizontal: g = !1, multiple: d = !1, __demoMode: m = !1, ...p } = e;
|
|
4390
4390
|
const v = g ? "horizontal" : "vertical";
|
|
4391
|
-
let b = be(t), x = ri(o), [y = d ? [] : void 0,
|
|
4391
|
+
let b = be(t), x = ri(o), [y = d ? [] : void 0, E] = ti(a, l, x), w = fc({ id: r, __demoMode: m }), P = Y({ static: !1, hold: !1 }), N = Y(/* @__PURE__ */ new Map()), F = $g(u), z = ie((L) => $e(S.mode, { [At.Multi]: () => y.some((R) => F(R, L)), [At.Single]: () => F(y, L) }), [y]), S = ve({ value: y, disabled: f, invalid: c, mode: d ? At.Multi : At.Single, orientation: v, onChange: E, compare: F, isSelected: z, optionsPropsRef: P, listRef: N });
|
|
4392
4392
|
ge(() => {
|
|
4393
|
-
w.state.dataRef.current =
|
|
4394
|
-
}, [
|
|
4395
|
-
let
|
|
4396
|
-
fa(X, [
|
|
4397
|
-
w.send({ type: uc.CloseListbox }), mn(R, gn.Loose) || (
|
|
4393
|
+
w.state.dataRef.current = S;
|
|
4394
|
+
}, [S]);
|
|
4395
|
+
let I = de(w, (L) => L.listboxState), K = ur.get(null), X = de(K, ie((L) => K.selectors.isTop(L, r), [K, r])), [M, V] = de(w, (L) => [L.buttonElement, L.optionsElement]);
|
|
4396
|
+
fa(X, [M, V], (L, R) => {
|
|
4397
|
+
w.send({ type: uc.CloseListbox }), mn(R, gn.Loose) || (L.preventDefault(), M?.focus());
|
|
4398
4398
|
});
|
|
4399
|
-
let W = ve({ open:
|
|
4400
|
-
if (x !== void 0) return
|
|
4401
|
-
}, [
|
|
4402
|
-
return
|
|
4399
|
+
let W = ve({ open: I === Me.Open, disabled: f, invalid: c, value: y }), [J, k] = cn({ inherit: !0 }), U = { ref: b }, re = ie(() => {
|
|
4400
|
+
if (x !== void 0) return E?.(x);
|
|
4401
|
+
}, [E, x]), C = ue();
|
|
4402
|
+
return $.createElement(k, { value: J, props: { htmlFor: M?.id }, slot: { open: I === Me.Open, disabled: f } }, $.createElement(wi, null, $.createElement(dc.Provider, { value: w }, $.createElement(Pa.Provider, { value: S }, $.createElement(xa, { value: $e(I, { [Me.Open]: we.Open, [Me.Closed]: we.Closed }) }, s != null && y != null && $.createElement(ai, { disabled: f, data: { [s]: y }, form: i, onReset: re }), C({ ourProps: U, theirProps: p, slot: W, defaultTag: I0, name: "Listbox" }))))));
|
|
4403
4403
|
}
|
|
4404
4404
|
let A0 = "button";
|
|
4405
4405
|
function O0(e, t) {
|
|
4406
|
-
let r = xe(), n = Er(), a = xn("Listbox.Button"), o = Ri("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: s = a.disabled || !1, autoFocus: l = !1, ...u } = e, c = be(t, bi(), o.actions.setButtonElement), f = zu(), [g, d, m] = de(o, (
|
|
4407
|
-
Su(p, { trigger: d, action: ie((
|
|
4408
|
-
if (d != null && d.contains(
|
|
4409
|
-
let W =
|
|
4410
|
-
return Ne(W) ? It.Select(W) : m != null && m.contains(
|
|
4406
|
+
let r = xe(), n = Er(), a = xn("Listbox.Button"), o = Ri("Listbox.Button"), { id: i = n || `headlessui-listbox-button-${r}`, disabled: s = a.disabled || !1, autoFocus: l = !1, ...u } = e, c = be(t, bi(), o.actions.setButtonElement), f = zu(), [g, d, m] = de(o, (V) => [V.listboxState, V.buttonElement, V.optionsElement]), p = g === Me.Open;
|
|
4407
|
+
Su(p, { trigger: d, action: ie((V) => {
|
|
4408
|
+
if (d != null && d.contains(V.target)) return It.Ignore;
|
|
4409
|
+
let W = V.target.closest('[role="option"]:not([data-disabled])');
|
|
4410
|
+
return Ne(W) ? It.Select(W) : m != null && m.contains(V.target) ? It.Ignore : It.Close;
|
|
4411
4411
|
}, [d, m]), close: o.actions.closeListbox, select: o.actions.selectActiveOption });
|
|
4412
|
-
let v =
|
|
4413
|
-
switch (
|
|
4412
|
+
let v = T((V) => {
|
|
4413
|
+
switch (V.key) {
|
|
4414
4414
|
case te.Enter:
|
|
4415
|
-
ni(
|
|
4415
|
+
ni(V.currentTarget);
|
|
4416
4416
|
break;
|
|
4417
4417
|
case te.Space:
|
|
4418
4418
|
case te.ArrowDown:
|
|
4419
|
-
|
|
4419
|
+
V.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.First });
|
|
4420
4420
|
break;
|
|
4421
4421
|
case te.ArrowUp:
|
|
4422
|
-
|
|
4422
|
+
V.preventDefault(), o.actions.openListbox({ focus: a.value ? oe.Nothing : oe.Last });
|
|
4423
4423
|
break;
|
|
4424
4424
|
}
|
|
4425
|
-
}), b =
|
|
4426
|
-
|
|
4427
|
-
}), x = mu((
|
|
4425
|
+
}), b = T((V) => {
|
|
4426
|
+
V.key === te.Space && V.preventDefault();
|
|
4427
|
+
}), x = mu((V) => {
|
|
4428
4428
|
var W;
|
|
4429
|
-
o.state.listboxState === Me.Open ? (nr(() => o.actions.closeListbox()), (W = o.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (
|
|
4430
|
-
}), y =
|
|
4431
|
-
return ue()({ ourProps:
|
|
4429
|
+
o.state.listboxState === Me.Open ? (nr(() => o.actions.closeListbox()), (W = o.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (V.preventDefault(), o.actions.openListbox({ focus: oe.Nothing }));
|
|
4430
|
+
}), y = T((V) => V.preventDefault()), E = Cr([i]), w = ln(), { isFocusVisible: P, focusProps: N } = Wt({ autoFocus: l }), { isHovered: F, hoverProps: z } = Bt({ isDisabled: s }), { pressed: S, pressProps: I } = Sr({ disabled: s }), K = ve({ open: g === Me.Open, active: S || g === Me.Open, disabled: s, invalid: a.invalid, value: a.value, hover: F, focus: P, autofocus: l }), X = de(o, (V) => V.listboxState === Me.Open), M = qe(f(), { ref: c, id: i, type: ga(e, d), "aria-haspopup": "listbox", "aria-controls": m?.id, "aria-expanded": X, "aria-labelledby": E, "aria-describedby": w, disabled: s || void 0, autoFocus: l, onKeyDown: v, onKeyUp: b, onKeyPress: y }, x, N, z, I);
|
|
4431
|
+
return ue()({ ourProps: M, theirProps: u, slot: K, defaultTag: A0, name: "Listbox.Button" });
|
|
4432
4432
|
}
|
|
4433
4433
|
let gc = Ce(!1), _0 = "div", T0 = Ke.RenderStrategy | Ke.Static;
|
|
4434
4434
|
function M0(e, t) {
|
|
4435
4435
|
let r = xe(), { id: n = `headlessui-listbox-options-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), [c, f] = ae(null);
|
|
4436
4436
|
u && (o = !0);
|
|
4437
|
-
let g = xn("Listbox.Options"), d = Ri("Listbox.Options"), [m, p, v, b] = de(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), x = yt(p), y = yt(v),
|
|
4437
|
+
let g = xn("Listbox.Options"), d = Ri("Listbox.Options"), [m, p, v, b] = de(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), x = yt(p), y = yt(v), E = Yt(), [w, P] = hn(s, c, E !== null ? (E & we.Open) === we.Open : m === Me.Open);
|
|
4438
4438
|
da(w, p, d.actions.closeListbox);
|
|
4439
|
-
let
|
|
4440
|
-
ma(
|
|
4439
|
+
let N = b ? !1 : i && m === Me.Open;
|
|
4440
|
+
ma(N, y);
|
|
4441
4441
|
let F = b ? !1 : i && m === Me.Open;
|
|
4442
4442
|
ui(F, { allowed: ie(() => [p, v], [p, v]) });
|
|
4443
|
-
let
|
|
4444
|
-
var
|
|
4445
|
-
if (u == null || !((
|
|
4443
|
+
let z = de(d, d.selectors.didButtonMove) ? !1 : w, S = de(d, d.selectors.hasFrozenValue) && !e.static, I = Gu(S, g.value), K = ie((B) => g.compare(I, B), [g.compare, I]), X = de(d, (B) => {
|
|
4444
|
+
var D;
|
|
4445
|
+
if (u == null || !((D = u?.to) != null && D.includes("selection"))) return null;
|
|
4446
4446
|
let pe = B.options.findIndex((Se) => K(Se.dataRef.current.value));
|
|
4447
4447
|
return pe === -1 && (pe = 0), pe;
|
|
4448
|
-
}),
|
|
4448
|
+
}), M = (() => {
|
|
4449
4449
|
if (u == null) return;
|
|
4450
4450
|
if (X === null) return { ...u, inner: void 0 };
|
|
4451
4451
|
let B = Array.from(g.listRef.current.values());
|
|
4452
4452
|
return { ...u, inner: { listRef: { current: B }, index: X } };
|
|
4453
|
-
})(), [
|
|
4453
|
+
})(), [V, W] = xi(M), J = yi(), k = be(t, u ? V : null, d.actions.setOptionsElement, f), U = rt();
|
|
4454
4454
|
me(() => {
|
|
4455
4455
|
let B = v;
|
|
4456
4456
|
B && m === Me.Open && (ei(B) || B == null || B.focus({ preventScroll: !0 }));
|
|
4457
4457
|
}, [m, v]);
|
|
4458
|
-
let re =
|
|
4459
|
-
var
|
|
4458
|
+
let re = T((B) => {
|
|
4459
|
+
var D;
|
|
4460
4460
|
switch (U.dispose(), B.key) {
|
|
4461
4461
|
case te.Space:
|
|
4462
4462
|
if (d.state.searchQuery !== "") return B.preventDefault(), B.stopPropagation(), d.actions.search(B.key);
|
|
@@ -4474,7 +4474,7 @@ function M0(e, t) {
|
|
|
4474
4474
|
case te.PageDown:
|
|
4475
4475
|
return B.preventDefault(), B.stopPropagation(), d.actions.goToOption({ focus: oe.Last });
|
|
4476
4476
|
case te.Escape:
|
|
4477
|
-
B.preventDefault(), B.stopPropagation(), nr(() => d.actions.closeListbox()), (
|
|
4477
|
+
B.preventDefault(), B.stopPropagation(), nr(() => d.actions.closeListbox()), (D = d.state.buttonElement) == null || D.focus({ preventScroll: !0 });
|
|
4478
4478
|
return;
|
|
4479
4479
|
case te.Tab:
|
|
4480
4480
|
B.preventDefault(), B.stopPropagation(), nr(() => d.actions.closeListbox()), xu(d.state.buttonElement, B.shiftKey ? Re.Previous : Re.Next);
|
|
@@ -4483,44 +4483,44 @@ function M0(e, t) {
|
|
|
4483
4483
|
B.key.length === 1 && (d.actions.search(B.key), U.setTimeout(() => d.actions.clearSearch(), 350));
|
|
4484
4484
|
break;
|
|
4485
4485
|
}
|
|
4486
|
-
}),
|
|
4487
|
-
var
|
|
4488
|
-
return (
|
|
4489
|
-
}),
|
|
4490
|
-
return
|
|
4486
|
+
}), C = de(d, (B) => {
|
|
4487
|
+
var D;
|
|
4488
|
+
return (D = B.buttonElement) == null ? void 0 : D.id;
|
|
4489
|
+
}), L = ve({ open: m === Me.Open }), R = qe(u ? J() : {}, { id: n, ref: k, "aria-activedescendant": de(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === At.Multi ? !0 : void 0, "aria-labelledby": C, "aria-orientation": g.orientation, onKeyDown: re, role: "listbox", tabIndex: m === Me.Open ? 0 : void 0, style: { ...l.style, ...W, "--button-width": si(w, p, !0).width }, ...pn(P) }), O = ue(), Q = ye(() => g.mode === At.Multi ? g : { ...g, isSelected: K }, [g, K]);
|
|
4490
|
+
return $.createElement(wa, { enabled: o ? e.static || w : !1, ownerDocument: x }, $.createElement(Pa.Provider, { value: Q }, O({ ourProps: R, theirProps: l, slot: L, defaultTag: _0, features: T0, visible: z, name: "Listbox.Options" })));
|
|
4491
4491
|
}
|
|
4492
4492
|
let j0 = "div";
|
|
4493
4493
|
function L0(e, t) {
|
|
4494
|
-
let r = xe(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...i } = e, s = fe(gc) === !0, l = xn("Listbox.Option"), u = Ri("Listbox.Option"), c = de(u, (
|
|
4494
|
+
let r = xe(), { id: n = `headlessui-listbox-option-${r}`, disabled: a = !1, value: o, ...i } = e, s = fe(gc) === !0, l = xn("Listbox.Option"), u = Ri("Listbox.Option"), c = de(u, (S) => u.selectors.isActive(S, n)), f = l.isSelected(o), g = Y(null), d = lc(g), m = lt({ disabled: a, value: o, domRef: g, get textValue() {
|
|
4495
4495
|
return d();
|
|
4496
|
-
} }), p = be(t, g, (
|
|
4497
|
-
|
|
4498
|
-
}), v = de(u, (
|
|
4496
|
+
} }), p = be(t, g, (S) => {
|
|
4497
|
+
S ? l.listRef.current.set(n, S) : l.listRef.current.delete(n);
|
|
4498
|
+
}), v = de(u, (S) => u.selectors.shouldScrollIntoView(S, n));
|
|
4499
4499
|
ge(() => {
|
|
4500
4500
|
if (v) return Le().requestAnimationFrame(() => {
|
|
4501
|
-
var
|
|
4502
|
-
(
|
|
4501
|
+
var S, I;
|
|
4502
|
+
(I = (S = g.current) == null ? void 0 : S.scrollIntoView) == null || I.call(S, { block: "nearest" });
|
|
4503
4503
|
});
|
|
4504
4504
|
}, [v, g]), ge(() => {
|
|
4505
4505
|
if (!s) return u.actions.registerOption(n, m), () => u.actions.unregisterOption(n);
|
|
4506
4506
|
}, [m, n, s]);
|
|
4507
|
-
let b =
|
|
4508
|
-
if (a) return
|
|
4507
|
+
let b = T((S) => {
|
|
4508
|
+
if (a) return S.preventDefault();
|
|
4509
4509
|
u.actions.selectOption(o);
|
|
4510
|
-
}), x =
|
|
4510
|
+
}), x = T(() => {
|
|
4511
4511
|
if (a) return u.actions.goToOption({ focus: oe.Nothing });
|
|
4512
4512
|
u.actions.goToOption({ focus: oe.Specific, id: n });
|
|
4513
|
-
}), y = Eu(),
|
|
4514
|
-
y.wasMoved(
|
|
4515
|
-
}), P =
|
|
4516
|
-
y.wasMoved(
|
|
4517
|
-
}),
|
|
4518
|
-
return !f && s ? null :
|
|
4513
|
+
}), y = Eu(), E = T((S) => y.update(S)), w = T((S) => {
|
|
4514
|
+
y.wasMoved(S) && (a || c && u.state.activationTrigger === Dn.Pointer || u.actions.goToOption({ focus: oe.Specific, id: n }, Dn.Pointer));
|
|
4515
|
+
}), P = T((S) => {
|
|
4516
|
+
y.wasMoved(S) && (a || c && u.state.activationTrigger === Dn.Pointer && u.actions.goToOption({ focus: oe.Nothing }));
|
|
4517
|
+
}), N = ve({ active: c, focus: c, selected: f, disabled: a, selectedOption: f && s }), F = s ? {} : { id: n, ref: p, role: "option", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter: E, onMouseEnter: E, onPointerMove: w, onMouseMove: w, onPointerLeave: P, onMouseLeave: P }, z = ue();
|
|
4518
|
+
return !f && s ? null : z({ ourProps: F, theirProps: i, slot: N, defaultTag: j0, name: "Listbox.Option" });
|
|
4519
4519
|
}
|
|
4520
4520
|
let D0 = Ie;
|
|
4521
4521
|
function V0(e, t) {
|
|
4522
4522
|
let { options: r, placeholder: n, ...a } = e, o = { ref: be(t) }, i = xn("ListboxSelectedOption"), s = ve({}), l = i.value === void 0 || i.value === null || i.mode === At.Multi && Array.isArray(i.value) && i.value.length === 0, u = ue();
|
|
4523
|
-
return
|
|
4523
|
+
return $.createElement(gc.Provider, { value: !0 }, u({ ourProps: o, theirProps: { ...a, children: $.createElement($.Fragment, null, n && l ? n : r) }, slot: s, defaultTag: D0, name: "ListboxSelectedOption" }));
|
|
4524
4524
|
}
|
|
4525
4525
|
let z0 = le(N0), mc = le(O0), H0 = $r, pc = le(M0), hc = le(L0), G0 = le(V0), B0 = Object.assign(z0, { Button: mc, Label: H0, Options: pc, Option: hc, SelectedOption: G0 });
|
|
4526
4526
|
var W0 = Object.defineProperty, U0 = (e, t, r) => t in e ? W0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r, js = (e, t, r) => (U0(e, typeof t != "symbol" ? t + "" : t, r), r), _e = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(_e || {}), Qn = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Qn || {}), he = ((e) => (e[e.OpenMenu = 0] = "OpenMenu", e[e.CloseMenu = 1] = "CloseMenu", e[e.GoToItem = 2] = "GoToItem", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.RegisterItems = 5] = "RegisterItems", e[e.UnregisterItems = 6] = "UnregisterItems", e[e.SetButtonElement = 7] = "SetButtonElement", e[e.SetItemsElement = 8] = "SetItemsElement", e[e.SortItems = 9] = "SortItems", e[e.MarkButtonAsMoved = 10] = "MarkButtonAsMoved", e))(he || {});
|
|
@@ -4650,51 +4650,51 @@ function X0(e, t) {
|
|
|
4650
4650
|
var x;
|
|
4651
4651
|
o.send({ type: he.CloseMenu }), mn(b, gn.Loose) || (v.preventDefault(), (x = o.state.buttonElement) == null || x.focus());
|
|
4652
4652
|
});
|
|
4653
|
-
let g =
|
|
4653
|
+
let g = T(() => {
|
|
4654
4654
|
o.send({ type: he.CloseMenu });
|
|
4655
4655
|
}), d = ve({ open: i === _e.Open, close: g }), m = { ref: u }, p = ue();
|
|
4656
|
-
return
|
|
4656
|
+
return $.createElement(wi, null, $.createElement(bc.Provider, { value: o }, $.createElement(xa, { value: $e(i, { [_e.Open]: we.Open, [_e.Closed]: we.Closed }) }, p({ ourProps: m, theirProps: a, slot: d, defaultTag: q0, name: "Menu" }))));
|
|
4657
4657
|
}
|
|
4658
4658
|
let J0 = "button";
|
|
4659
4659
|
function Q0(e, t) {
|
|
4660
|
-
let r = Pi("Menu.Button"), n = xe(), { id: a = `headlessui-menu-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...s } = e, l = Y(null), u = zu(), c = be(t, l, bi(),
|
|
4661
|
-
switch (
|
|
4660
|
+
let r = Pi("Menu.Button"), n = xe(), { id: a = `headlessui-menu-button-${n}`, disabled: o = !1, autoFocus: i = !1, ...s } = e, l = Y(null), u = zu(), c = be(t, l, bi(), T((S) => r.send({ type: he.SetButtonElement, element: S }))), f = T((S) => {
|
|
4661
|
+
switch (S.key) {
|
|
4662
4662
|
case te.Space:
|
|
4663
4663
|
case te.Enter:
|
|
4664
4664
|
case te.ArrowDown:
|
|
4665
|
-
|
|
4665
|
+
S.preventDefault(), S.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.First } });
|
|
4666
4666
|
break;
|
|
4667
4667
|
case te.ArrowUp:
|
|
4668
|
-
|
|
4668
|
+
S.preventDefault(), S.stopPropagation(), r.send({ type: he.OpenMenu, focus: { focus: oe.Last } });
|
|
4669
4669
|
break;
|
|
4670
4670
|
}
|
|
4671
|
-
}), g =
|
|
4672
|
-
|
|
4673
|
-
}), [d, m, p] = de(r, (
|
|
4674
|
-
Su(v, { trigger: m, action: ie((
|
|
4675
|
-
if (m != null && m.contains(
|
|
4676
|
-
let
|
|
4677
|
-
return Ne(
|
|
4678
|
-
}, [m, p]), close: ie(() => r.send({ type: he.CloseMenu }), []), select: ie((
|
|
4679
|
-
let b = mu((
|
|
4680
|
-
var
|
|
4681
|
-
o || (d === _e.Open ? (nr(() => r.send({ type: he.CloseMenu })), (
|
|
4682
|
-
}), { isFocusVisible: x, focusProps: y } = Wt({ autoFocus: i }), { isHovered:
|
|
4683
|
-
return ue()({ ourProps:
|
|
4671
|
+
}), g = T((S) => {
|
|
4672
|
+
S.key === te.Space && S.preventDefault();
|
|
4673
|
+
}), [d, m, p] = de(r, (S) => [S.menuState, S.buttonElement, S.itemsElement]), v = d === _e.Open;
|
|
4674
|
+
Su(v, { trigger: m, action: ie((S) => {
|
|
4675
|
+
if (m != null && m.contains(S.target)) return It.Ignore;
|
|
4676
|
+
let I = S.target.closest('[role="menuitem"]:not([data-disabled])');
|
|
4677
|
+
return Ne(I) ? It.Select(I) : p != null && p.contains(S.target) ? It.Ignore : It.Close;
|
|
4678
|
+
}, [m, p]), close: ie(() => r.send({ type: he.CloseMenu }), []), select: ie((S) => S.click(), []) });
|
|
4679
|
+
let b = mu((S) => {
|
|
4680
|
+
var I;
|
|
4681
|
+
o || (d === _e.Open ? (nr(() => r.send({ type: he.CloseMenu })), (I = l.current) == null || I.focus({ preventScroll: !0 })) : (S.preventDefault(), r.send({ type: he.OpenMenu, focus: { focus: oe.Nothing }, trigger: Qn.Pointer })));
|
|
4682
|
+
}), { isFocusVisible: x, focusProps: y } = Wt({ autoFocus: i }), { isHovered: E, hoverProps: w } = Bt({ isDisabled: o }), { pressed: P, pressProps: N } = Sr({ disabled: o }), F = ve({ open: d === _e.Open, active: P || d === _e.Open, disabled: o, hover: E, focus: x, autofocus: i }), z = qe(u(), { ref: c, id: a, type: ga(e, l.current), "aria-haspopup": "menu", "aria-controls": p?.id, "aria-expanded": d === _e.Open, disabled: o || void 0, autoFocus: i, onKeyDown: f, onKeyUp: g }, b, y, w, N);
|
|
4683
|
+
return ue()({ ourProps: z, theirProps: s, slot: F, defaultTag: J0, name: "Menu.Button" });
|
|
4684
4684
|
}
|
|
4685
4685
|
let Z0 = "div", eh = Ke.RenderStrategy | Ke.Static;
|
|
4686
4686
|
function th(e, t) {
|
|
4687
|
-
let r = xe(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), c = Pi("Menu.Items"), [f, g] = xi(u), d = yi(), [m, p] = ae(null), v = be(t, u ? f : null,
|
|
4687
|
+
let r = xe(), { id: n = `headlessui-menu-items-${r}`, anchor: a, portal: o = !1, modal: i = !0, transition: s = !1, ...l } = e, u = vi(a), c = Pi("Menu.Items"), [f, g] = xi(u), d = yi(), [m, p] = ae(null), v = be(t, u ? f : null, T((k) => c.send({ type: he.SetItemsElement, element: k })), p), [b, x] = de(c, (k) => [k.menuState, k.buttonElement]), y = yt(x), E = yt(m);
|
|
4688
4688
|
u && (o = !0);
|
|
4689
|
-
let w = Yt(), [P,
|
|
4689
|
+
let w = Yt(), [P, N] = hn(s, m, w !== null ? (w & we.Open) === we.Open : b === _e.Open);
|
|
4690
4690
|
da(P, x, () => {
|
|
4691
4691
|
c.send({ type: he.CloseMenu });
|
|
4692
4692
|
});
|
|
4693
|
-
let F = de(c, (k) => k.__demoMode),
|
|
4694
|
-
ma(
|
|
4695
|
-
let
|
|
4696
|
-
ui(
|
|
4697
|
-
let
|
|
4693
|
+
let F = de(c, (k) => k.__demoMode), z = F ? !1 : i && b === _e.Open;
|
|
4694
|
+
ma(z, E);
|
|
4695
|
+
let S = F ? !1 : i && b === _e.Open;
|
|
4696
|
+
ui(S, { allowed: ie(() => [x, m], [x, m]) });
|
|
4697
|
+
let I = de(c, c.selectors.didButtonMove) ? !1 : P;
|
|
4698
4698
|
me(() => {
|
|
4699
4699
|
let k = m;
|
|
4700
4700
|
k && b === _e.Open && (ei(k) || k.focus({ preventScroll: !0 }));
|
|
@@ -4703,15 +4703,15 @@ function th(e, t) {
|
|
|
4703
4703
|
}, walk(k) {
|
|
4704
4704
|
k.setAttribute("role", "none");
|
|
4705
4705
|
} });
|
|
4706
|
-
let K = rt(), X =
|
|
4707
|
-
var U, re,
|
|
4706
|
+
let K = rt(), X = T((k) => {
|
|
4707
|
+
var U, re, C;
|
|
4708
4708
|
switch (K.dispose(), k.key) {
|
|
4709
4709
|
case te.Space:
|
|
4710
4710
|
if (c.state.searchQuery !== "") return k.preventDefault(), k.stopPropagation(), c.send({ type: he.Search, value: k.key });
|
|
4711
4711
|
case te.Enter:
|
|
4712
4712
|
if (k.preventDefault(), k.stopPropagation(), c.state.activeItemIndex !== null) {
|
|
4713
|
-
let { dataRef:
|
|
4714
|
-
(re = (U =
|
|
4713
|
+
let { dataRef: L } = c.state.items[c.state.activeItemIndex];
|
|
4714
|
+
(re = (U = L.current) == null ? void 0 : U.domRef.current) == null || re.click();
|
|
4715
4715
|
}
|
|
4716
4716
|
c.send({ type: he.CloseMenu }), yu(c.state.buttonElement);
|
|
4717
4717
|
break;
|
|
@@ -4726,7 +4726,7 @@ function th(e, t) {
|
|
|
4726
4726
|
case te.PageDown:
|
|
4727
4727
|
return k.preventDefault(), k.stopPropagation(), c.send({ type: he.GoToItem, focus: oe.Last });
|
|
4728
4728
|
case te.Escape:
|
|
4729
|
-
k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), (
|
|
4729
|
+
k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), (C = c.state.buttonElement) == null || C.focus({ preventScroll: !0 });
|
|
4730
4730
|
break;
|
|
4731
4731
|
case te.Tab:
|
|
4732
4732
|
k.preventDefault(), k.stopPropagation(), nr(() => c.send({ type: he.CloseMenu })), xu(c.state.buttonElement, k.shiftKey ? Re.Previous : Re.Next);
|
|
@@ -4735,21 +4735,21 @@ function th(e, t) {
|
|
|
4735
4735
|
k.key.length === 1 && (c.send({ type: he.Search, value: k.key }), K.setTimeout(() => c.send({ type: he.ClearSearch }), 350));
|
|
4736
4736
|
break;
|
|
4737
4737
|
}
|
|
4738
|
-
}),
|
|
4738
|
+
}), M = T((k) => {
|
|
4739
4739
|
k.key === te.Space && k.preventDefault();
|
|
4740
|
-
}),
|
|
4740
|
+
}), V = ve({ open: b === _e.Open }), W = qe(u ? d() : {}, { "aria-activedescendant": de(c, c.selectors.activeDescendantId), "aria-labelledby": de(c, (k) => {
|
|
4741
4741
|
var U;
|
|
4742
4742
|
return (U = k.buttonElement) == null ? void 0 : U.id;
|
|
4743
|
-
}), id: n, onKeyDown: X, onKeyUp:
|
|
4744
|
-
return
|
|
4743
|
+
}), id: n, onKeyDown: X, onKeyUp: M, role: "menu", tabIndex: b === _e.Open ? 0 : void 0, ref: v, style: { ...l.style, ...g, "--button-width": si(P, x, !0).width }, ...pn(N) }), J = ue();
|
|
4744
|
+
return $.createElement(wa, { enabled: o ? e.static || P : !1, ownerDocument: y }, J({ ourProps: W, theirProps: l, slot: V, defaultTag: Z0, features: eh, visible: I, name: "Menu.Items" }));
|
|
4745
4745
|
}
|
|
4746
4746
|
let rh = Ie;
|
|
4747
4747
|
function nh(e, t) {
|
|
4748
|
-
let r = xe(), { id: n = `headlessui-menu-item-${r}`, disabled: a = !1, ...o } = e, i = Pi("Menu.Item"), s = de(i, (
|
|
4748
|
+
let r = xe(), { id: n = `headlessui-menu-item-${r}`, disabled: a = !1, ...o } = e, i = Pi("Menu.Item"), s = de(i, (I) => i.selectors.isActive(I, n)), l = Y(null), u = be(t, l), c = de(i, (I) => i.selectors.shouldScrollIntoView(I, n));
|
|
4749
4749
|
ge(() => {
|
|
4750
4750
|
if (c) return Le().requestAnimationFrame(() => {
|
|
4751
|
-
var
|
|
4752
|
-
(K = (
|
|
4751
|
+
var I, K;
|
|
4752
|
+
(K = (I = l.current) == null ? void 0 : I.scrollIntoView) == null || K.call(I, { block: "nearest" });
|
|
4753
4753
|
});
|
|
4754
4754
|
}, [c, l]);
|
|
4755
4755
|
let f = lc(l), g = Y({ disabled: a, domRef: l, get textValue() {
|
|
@@ -4758,25 +4758,25 @@ function nh(e, t) {
|
|
|
4758
4758
|
ge(() => {
|
|
4759
4759
|
g.current.disabled = a;
|
|
4760
4760
|
}, [g, a]), ge(() => (i.actions.registerItem(n, g), () => i.actions.unregisterItem(n)), [g, n]);
|
|
4761
|
-
let d =
|
|
4761
|
+
let d = T(() => {
|
|
4762
4762
|
i.send({ type: he.CloseMenu });
|
|
4763
|
-
}), m =
|
|
4764
|
-
if (a) return
|
|
4763
|
+
}), m = T((I) => {
|
|
4764
|
+
if (a) return I.preventDefault();
|
|
4765
4765
|
i.send({ type: he.CloseMenu }), yu(i.state.buttonElement);
|
|
4766
|
-
}), p =
|
|
4766
|
+
}), p = T(() => {
|
|
4767
4767
|
if (a) return i.send({ type: he.GoToItem, focus: oe.Nothing });
|
|
4768
4768
|
i.send({ type: he.GoToItem, focus: oe.Specific, id: n });
|
|
4769
|
-
}), v = Eu(), b =
|
|
4770
|
-
v.wasMoved(
|
|
4771
|
-
}), y =
|
|
4772
|
-
v.wasMoved(
|
|
4773
|
-
}), [
|
|
4774
|
-
return
|
|
4769
|
+
}), v = Eu(), b = T((I) => v.update(I)), x = T((I) => {
|
|
4770
|
+
v.wasMoved(I) && (a || s || i.send({ type: he.GoToItem, focus: oe.Specific, id: n, trigger: Qn.Pointer }));
|
|
4771
|
+
}), y = T((I) => {
|
|
4772
|
+
v.wasMoved(I) && (a || s && i.state.activationTrigger === Qn.Pointer && i.send({ type: he.GoToItem, focus: oe.Nothing }));
|
|
4773
|
+
}), [E, w] = cn(), [P, N] = la(), F = ve({ active: s, focus: s, disabled: a, close: d }), z = { id: n, ref: u, role: "menuitem", tabIndex: a === !0 ? void 0 : -1, "aria-disabled": a === !0 ? !0 : void 0, "aria-labelledby": E, "aria-describedby": P, disabled: void 0, onClick: m, onFocus: p, onPointerEnter: b, onMouseEnter: b, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, S = ue();
|
|
4774
|
+
return $.createElement(w, null, $.createElement(N, null, S({ ourProps: z, theirProps: o, slot: F, defaultTag: rh, name: "Menu.Item" })));
|
|
4775
4775
|
}
|
|
4776
4776
|
let ah = "div";
|
|
4777
4777
|
function oh(e, t) {
|
|
4778
4778
|
let [r, n] = cn(), a = e, o = { ref: t, "aria-labelledby": r, role: "group" }, i = ue();
|
|
4779
|
-
return
|
|
4779
|
+
return $.createElement(n, null, i({ ourProps: o, theirProps: a, slot: {}, defaultTag: ah, name: "Menu.Section" }));
|
|
4780
4780
|
}
|
|
4781
4781
|
let ih = "header";
|
|
4782
4782
|
function sh(e, t) {
|
|
@@ -4854,29 +4854,29 @@ function wh() {
|
|
|
4854
4854
|
let kh = "div";
|
|
4855
4855
|
function Sh(e, t) {
|
|
4856
4856
|
var r;
|
|
4857
|
-
let n = xe(), { __demoMode: a = !1, ...o } = e, i = xh({ id: n, __demoMode: a }), s = Y(null), l = be(t, du((
|
|
4858
|
-
s.current =
|
|
4859
|
-
})), [u, c, f, g, d] = de(i, ie((
|
|
4860
|
-
var
|
|
4861
|
-
let W = Mt((
|
|
4862
|
-
return (
|
|
4857
|
+
let n = xe(), { __demoMode: a = !1, ...o } = e, i = xh({ id: n, __demoMode: a }), s = Y(null), l = be(t, du((M) => {
|
|
4858
|
+
s.current = M;
|
|
4859
|
+
})), [u, c, f, g, d] = de(i, ie((M) => [M.popoverState, M.button, M.panel, M.buttonId, M.panelId], [])), m = Ug((r = s.current) != null ? r : c), p = lt(g), v = lt(d), b = ye(() => ({ buttonId: p, panelId: v, close: i.actions.close }), [p, v, i]), x = Ec(), y = x?.registerPopover, E = T(() => {
|
|
4860
|
+
var M, V;
|
|
4861
|
+
let W = Mt((M = s.current) != null ? M : c);
|
|
4862
|
+
return (V = x?.isFocusWithinPopoverGroup()) != null ? V : W && (c?.contains(W) || f?.contains(W));
|
|
4863
4863
|
});
|
|
4864
4864
|
me(() => y?.(b), [y, b]);
|
|
4865
|
-
let [w, P] = Ku(),
|
|
4865
|
+
let [w, P] = Ku(), N = Si(c), F = Ju({ mainTreeNode: N, portals: w, defaultContainers: [{ get current() {
|
|
4866
4866
|
return i.state.button;
|
|
4867
4867
|
} }, { get current() {
|
|
4868
4868
|
return i.state.panel;
|
|
4869
4869
|
} }] });
|
|
4870
|
-
di(m, "focus", (
|
|
4871
|
-
var
|
|
4872
|
-
|
|
4870
|
+
di(m, "focus", (M) => {
|
|
4871
|
+
var V, W, J, k, U, re;
|
|
4872
|
+
M.target !== window && Je(M.target) && i.state.popoverState === Pe.Open && (E() || i.state.button && i.state.panel && (F.contains(M.target) || (W = (V = i.state.beforePanelSentinel.current) == null ? void 0 : V.contains) != null && W.call(V, M.target) || (k = (J = i.state.afterPanelSentinel.current) == null ? void 0 : J.contains) != null && k.call(J, M.target) || (re = (U = i.state.afterButtonSentinel.current) == null ? void 0 : U.contains) != null && re.call(U, M.target) || i.actions.close()));
|
|
4873
4873
|
}, !0);
|
|
4874
|
-
let
|
|
4875
|
-
fa(
|
|
4876
|
-
i.actions.close(), mn(
|
|
4874
|
+
let z = u === Pe.Open;
|
|
4875
|
+
fa(z, F.resolveContainers, (M, V) => {
|
|
4876
|
+
i.actions.close(), mn(V, gn.Loose) || (M.preventDefault(), c?.focus());
|
|
4877
4877
|
});
|
|
4878
|
-
let
|
|
4879
|
-
return
|
|
4878
|
+
let S = ve({ open: u === Pe.Open, close: i.actions.refocusableClose }), I = de(i, ie((M) => $e(M.popoverState, { [Pe.Open]: we.Open, [Pe.Closed]: we.Closed }), [])), K = { ref: l }, X = ue();
|
|
4879
|
+
return $.createElement(Jn, { node: N }, $.createElement(wi, null, $.createElement(Ia.Provider, { value: null }, $.createElement(Sc.Provider, { value: i }, $.createElement(ii, { value: i.actions.refocusableClose }, $.createElement(xa, { value: I }, $.createElement(P, null, X({ ourProps: K, theirProps: o, slot: S, defaultTag: kh, name: "Popover" }))))))));
|
|
4880
4880
|
}
|
|
4881
4881
|
let Eh = "button";
|
|
4882
4882
|
function Ch(e, t) {
|
|
@@ -4884,23 +4884,23 @@ function Ch(e, t) {
|
|
|
4884
4884
|
me(() => {
|
|
4885
4885
|
if (!y) return s.actions.setButtonId(n), () => s.actions.setButtonId(null);
|
|
4886
4886
|
}, [y, n, s]);
|
|
4887
|
-
let [
|
|
4887
|
+
let [E] = ae(() => /* @__PURE__ */ Symbol()), w = be(p, t, bi(), T((O) => {
|
|
4888
4888
|
if (!y) {
|
|
4889
|
-
if (O) s.state.buttons.current.push(
|
|
4889
|
+
if (O) s.state.buttons.current.push(E);
|
|
4890
4890
|
else {
|
|
4891
|
-
let Q = s.state.buttons.current.indexOf(
|
|
4891
|
+
let Q = s.state.buttons.current.indexOf(E);
|
|
4892
4892
|
Q !== -1 && s.state.buttons.current.splice(Q, 1);
|
|
4893
4893
|
}
|
|
4894
4894
|
s.state.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), O && s.actions.setButton(O);
|
|
4895
4895
|
}
|
|
4896
|
-
})), P = be(p, t),
|
|
4897
|
-
var Q, B,
|
|
4896
|
+
})), P = be(p, t), N = T((O) => {
|
|
4897
|
+
var Q, B, D;
|
|
4898
4898
|
if (y) {
|
|
4899
4899
|
if (s.state.popoverState === Pe.Closed) return;
|
|
4900
4900
|
switch (O.key) {
|
|
4901
4901
|
case te.Space:
|
|
4902
4902
|
case te.Enter:
|
|
4903
|
-
O.preventDefault(), (B = (Q = O.target).click) == null || B.call(Q), s.actions.close(), (
|
|
4903
|
+
O.preventDefault(), (B = (Q = O.target).click) == null || B.call(Q), s.actions.close(), (D = s.state.button) == null || D.focus();
|
|
4904
4904
|
break;
|
|
4905
4905
|
}
|
|
4906
4906
|
} else switch (O.key) {
|
|
@@ -4916,26 +4916,26 @@ function Ch(e, t) {
|
|
|
4916
4916
|
O.preventDefault(), O.stopPropagation(), s.actions.close();
|
|
4917
4917
|
break;
|
|
4918
4918
|
}
|
|
4919
|
-
}), F =
|
|
4919
|
+
}), F = T((O) => {
|
|
4920
4920
|
y || O.key === te.Space && O.preventDefault();
|
|
4921
|
-
}),
|
|
4921
|
+
}), z = T((O) => {
|
|
4922
4922
|
var Q, B;
|
|
4923
4923
|
vr(O.currentTarget) || a || (y ? (s.actions.close(), (Q = s.state.button) == null || Q.focus()) : (O.preventDefault(), O.stopPropagation(), s.state.popoverState === Pe.Closed ? (x?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (B = s.state.button) == null || B.focus()));
|
|
4924
|
-
}),
|
|
4924
|
+
}), S = T((O) => {
|
|
4925
4925
|
O.preventDefault(), O.stopPropagation();
|
|
4926
|
-
}), { isFocusVisible:
|
|
4926
|
+
}), { isFocusVisible: I, focusProps: K } = Wt({ autoFocus: o }), { isHovered: X, hoverProps: M } = Bt({ isDisabled: a }), { pressed: V, pressProps: W } = Sr({ disabled: a }), J = l === Pe.Open, k = ve({ open: J, active: V || J, disabled: a, hover: X, focus: I, autofocus: o }), U = ga(e, c), re = qe(y ? { ref: P, type: U, onKeyDown: N, onClick: z, disabled: a || void 0, autoFocus: o } : { ref: w, id: f, type: U, "aria-expanded": l === Pe.Open, "aria-controls": g ? d : void 0, disabled: a || void 0, autoFocus: o, onKeyDown: N, onKeyUp: F, onClick: z, onMouseDown: S }, K, M, W), C = Ci(), L = T(() => {
|
|
4927
4927
|
if (!Ne(s.state.panel)) return;
|
|
4928
4928
|
let O = s.state.panel;
|
|
4929
4929
|
function Q() {
|
|
4930
|
-
$e(
|
|
4930
|
+
$e(C.current, { [He.Forwards]: () => ze(O, Re.First), [He.Backwards]: () => ze(O, Re.Last) }) === br.Error && ze(fn(Tt(s.state.button)).filter((B) => B.dataset.headlessuiFocusGuard !== "true"), $e(C.current, { [He.Forwards]: Re.Next, [He.Backwards]: Re.Previous }), { relativeTo: s.state.button });
|
|
4931
4931
|
}
|
|
4932
4932
|
Q();
|
|
4933
4933
|
}), R = ue();
|
|
4934
|
-
return
|
|
4934
|
+
return $.createElement($.Fragment, null, R({ ourProps: re, theirProps: i, slot: k, defaultTag: Eh, name: "Popover.Button" }), J && !y && u && $.createElement(bt, { id: v, ref: m, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: L }));
|
|
4935
4935
|
}
|
|
4936
4936
|
let $h = "div", Rh = Ke.RenderStrategy | Ke.Static;
|
|
4937
4937
|
function Cc(e, t) {
|
|
4938
|
-
let r = xe(), { id: n = `headlessui-popover-backdrop-${r}`, transition: a = !1, ...o } = e, i = Fa("Popover.Backdrop"), s = de(i, ie((b) => b.popoverState, [])), [l, u] = ae(null), c = be(t, u), f = Yt(), [g, d] = hn(a, l, f !== null ? (f & we.Open) === we.Open : s === Pe.Open), m =
|
|
4938
|
+
let r = xe(), { id: n = `headlessui-popover-backdrop-${r}`, transition: a = !1, ...o } = e, i = Fa("Popover.Backdrop"), s = de(i, ie((b) => b.popoverState, [])), [l, u] = ae(null), c = be(t, u), f = Yt(), [g, d] = hn(a, l, f !== null ? (f & we.Open) === we.Open : s === Pe.Open), m = T((b) => {
|
|
4939
4939
|
if (vr(b.currentTarget)) return b.preventDefault();
|
|
4940
4940
|
i.actions.close();
|
|
4941
4941
|
}), p = ve({ open: s === Pe.Open }), v = { ref: c, id: n, "aria-hidden": !0, onClick: m, ...pn(d) };
|
|
@@ -4943,13 +4943,13 @@ function Cc(e, t) {
|
|
|
4943
4943
|
}
|
|
4944
4944
|
let Ph = "div", Fh = Ke.RenderStrategy | Ke.Static;
|
|
4945
4945
|
function Ih(e, t) {
|
|
4946
|
-
let r = xe(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Fa("Popover.Panel"), f = de(c, c.selectors.isPortalled), [g, d, m, p, v] = de(c, ie((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${r}`, x = `headlessui-focus-sentinel-after-${r}`, y = Y(null),
|
|
4947
|
-
|
|
4948
|
-
let [F,
|
|
4946
|
+
let r = xe(), { id: n = `headlessui-popover-panel-${r}`, focus: a = !1, anchor: o, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Fa("Popover.Panel"), f = de(c, c.selectors.isPortalled), [g, d, m, p, v] = de(c, ie((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${r}`, x = `headlessui-focus-sentinel-after-${r}`, y = Y(null), E = vi(o), [w, P] = xi(E), N = yi();
|
|
4947
|
+
E && (i = !0);
|
|
4948
|
+
let [F, z] = ae(null), S = be(y, t, E ? w : null, c.actions.setPanel, z), I = yt(d), K = yt(y.current);
|
|
4949
4949
|
ge(() => (c.actions.setPanelId(n), () => c.actions.setPanelId(null)), [n, c]);
|
|
4950
|
-
let X = Yt(), [
|
|
4951
|
-
da(
|
|
4952
|
-
let W =
|
|
4950
|
+
let X = Yt(), [M, V] = hn(l, F, X !== null ? (X & we.Open) === we.Open : g === Pe.Open);
|
|
4951
|
+
da(M, d, c.actions.close), ma(m ? !1 : s && M, K);
|
|
4952
|
+
let W = T((R) => {
|
|
4953
4953
|
var O;
|
|
4954
4954
|
switch (R.key) {
|
|
4955
4955
|
case te.Escape:
|
|
@@ -4966,50 +4966,50 @@ function Ih(e, t) {
|
|
|
4966
4966
|
}, [g, e.unmount, e.static, c]), me(() => {
|
|
4967
4967
|
if (m || !a || g !== Pe.Open || !y.current) return;
|
|
4968
4968
|
let R = Mt(y.current);
|
|
4969
|
-
y.current.contains(R) ||
|
|
4969
|
+
y.current.contains(R) || ze(y.current, Re.First);
|
|
4970
4970
|
}, [m, a, y.current, g]);
|
|
4971
|
-
let J = ve({ open: g === Pe.Open, close: c.actions.refocusableClose }), k = qe(
|
|
4972
|
-
var O, Q, B,
|
|
4971
|
+
let J = ve({ open: g === Pe.Open, close: c.actions.refocusableClose }), k = qe(E ? N() : {}, { ref: S, id: n, onKeyDown: W, onBlur: a && g === Pe.Open ? (R) => {
|
|
4972
|
+
var O, Q, B, D, pe;
|
|
4973
4973
|
let Se = R.relatedTarget;
|
|
4974
|
-
Se && y.current && ((O = y.current) != null && O.contains(Se) || (c.actions.close(), ((B = (Q = p.current) == null ? void 0 : Q.contains) != null && B.call(Q, Se) || (pe = (
|
|
4975
|
-
} : void 0, tabIndex: -1, style: { ...u.style, ...P, "--button-width": si(
|
|
4974
|
+
Se && y.current && ((O = y.current) != null && O.contains(Se) || (c.actions.close(), ((B = (Q = p.current) == null ? void 0 : Q.contains) != null && B.call(Q, Se) || (pe = (D = v.current) == null ? void 0 : D.contains) != null && pe.call(D, Se)) && Se.focus({ preventScroll: !0 })));
|
|
4975
|
+
} : void 0, tabIndex: -1, style: { ...u.style, ...P, "--button-width": si(M, d, !0).width }, ...pn(V) }), U = Ci(), re = T(() => {
|
|
4976
4976
|
let R = y.current;
|
|
4977
4977
|
if (!R) return;
|
|
4978
4978
|
function O() {
|
|
4979
|
-
$e(U.current, { [
|
|
4979
|
+
$e(U.current, { [He.Forwards]: () => {
|
|
4980
4980
|
var Q;
|
|
4981
|
-
|
|
4982
|
-
}, [
|
|
4981
|
+
ze(R, Re.First) === br.Error && ((Q = c.state.afterPanelSentinel.current) == null || Q.focus());
|
|
4982
|
+
}, [He.Backwards]: () => {
|
|
4983
4983
|
var Q;
|
|
4984
4984
|
(Q = c.state.button) == null || Q.focus({ preventScroll: !0 });
|
|
4985
4985
|
} });
|
|
4986
4986
|
}
|
|
4987
4987
|
O();
|
|
4988
|
-
}),
|
|
4988
|
+
}), C = T(() => {
|
|
4989
4989
|
let R = y.current;
|
|
4990
4990
|
if (!R) return;
|
|
4991
4991
|
function O() {
|
|
4992
|
-
$e(U.current, { [
|
|
4992
|
+
$e(U.current, { [He.Forwards]: () => {
|
|
4993
4993
|
var Q;
|
|
4994
4994
|
if (!c.state.button) return;
|
|
4995
|
-
let B = (Q = Tt(c.state.button)) != null ? Q : document.body,
|
|
4995
|
+
let B = (Q = Tt(c.state.button)) != null ? Q : document.body, D = fn(B), pe = D.indexOf(c.state.button), Se = D.slice(0, pe + 1), Xe = [...D.slice(pe + 1), ...Se];
|
|
4996
4996
|
for (let qt of Xe.slice()) if (qt.dataset.headlessuiFocusGuard === "true" || F != null && F.contains(qt)) {
|
|
4997
4997
|
let Xt = Xe.indexOf(qt);
|
|
4998
4998
|
Xt !== -1 && Xe.splice(Xt, 1);
|
|
4999
4999
|
}
|
|
5000
|
-
|
|
5001
|
-
}, [
|
|
5000
|
+
ze(Xe, Re.First, { sorted: !1 });
|
|
5001
|
+
}, [He.Backwards]: () => {
|
|
5002
5002
|
var Q;
|
|
5003
|
-
|
|
5003
|
+
ze(R, Re.Previous) === br.Error && ((Q = c.state.button) == null || Q.focus());
|
|
5004
5004
|
} });
|
|
5005
5005
|
}
|
|
5006
5006
|
O();
|
|
5007
|
-
}),
|
|
5008
|
-
return
|
|
5007
|
+
}), L = ue();
|
|
5008
|
+
return $.createElement(Bu, null, $.createElement(Ia.Provider, { value: n }, $.createElement(ii, { value: c.actions.refocusableClose }, $.createElement(wa, { enabled: i ? e.static || M : !1, ownerDocument: I }, M && f && $.createElement(bt, { id: b, ref: p, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: re }), L({ ourProps: k, theirProps: u, slot: J, defaultTag: Ph, features: Fh, visible: M, name: "Popover.Panel" }), M && f && $.createElement(bt, { id: x, ref: v, features: ut.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: C })))));
|
|
5009
5009
|
}
|
|
5010
5010
|
let Nh = "div";
|
|
5011
5011
|
function Ah(e, t) {
|
|
5012
|
-
let r = Y(null), n = be(r, t), [a, o] = ae([]), i =
|
|
5012
|
+
let r = Y(null), n = be(r, t), [a, o] = ae([]), i = T((p) => {
|
|
5013
5013
|
o((v) => {
|
|
5014
5014
|
let b = v.indexOf(p);
|
|
5015
5015
|
if (b !== -1) {
|
|
@@ -5018,19 +5018,19 @@ function Ah(e, t) {
|
|
|
5018
5018
|
}
|
|
5019
5019
|
return v;
|
|
5020
5020
|
});
|
|
5021
|
-
}), s =
|
|
5021
|
+
}), s = T((p) => (o((v) => [...v, p]), () => i(p))), l = T(() => {
|
|
5022
5022
|
var p;
|
|
5023
5023
|
let v = Tt(r.current);
|
|
5024
5024
|
if (!v) return !1;
|
|
5025
5025
|
let b = Mt(r.current);
|
|
5026
5026
|
return (p = r.current) != null && p.contains(b) ? !0 : a.some((x) => {
|
|
5027
|
-
var y,
|
|
5028
|
-
return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((
|
|
5027
|
+
var y, E;
|
|
5028
|
+
return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((E = v.getElementById(x.panelId.current)) == null ? void 0 : E.contains(b));
|
|
5029
5029
|
});
|
|
5030
|
-
}), u =
|
|
5030
|
+
}), u = T((p) => {
|
|
5031
5031
|
for (let v of a) v.buttonId.current !== p && v.close();
|
|
5032
5032
|
}), c = ye(() => ({ registerPopover: s, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: u }), [s, i, l, u]), f = ve({}), g = e, d = { ref: n }, m = ue();
|
|
5033
|
-
return
|
|
5033
|
+
return $.createElement(Jn, null, $.createElement(Fi.Provider, { value: c }, m({ ourProps: d, theirProps: g, slot: f, defaultTag: Nh, name: "Popover.Group" })));
|
|
5034
5034
|
}
|
|
5035
5035
|
let Oh = le(Sh), Zn = le(Ch), _h = le(Cc), Th = le(Cc), Ii = le(Ih), Mh = le(Ah), $c = Object.assign(Oh, { Button: Zn, Backdrop: Th, Overlay: _h, Panel: Ii, Group: Mh }), Ni = Ce(null);
|
|
5036
5036
|
Ni.displayName = "GroupContext";
|
|
@@ -5038,26 +5038,26 @@ let jh = Ie;
|
|
|
5038
5038
|
function Lh(e) {
|
|
5039
5039
|
var t;
|
|
5040
5040
|
let [r, n] = ae(null), [a, o] = cn(), [i, s] = la(), l = ye(() => ({ switch: r, setSwitch: n }), [r, n]), u = {}, c = e, f = ue();
|
|
5041
|
-
return
|
|
5041
|
+
return $.createElement(s, { name: "Switch.Description", value: i }, $.createElement(o, { name: "Switch.Label", value: a, props: { htmlFor: (t = l.switch) == null ? void 0 : t.id, onClick(g) {
|
|
5042
5042
|
r && (bo(g.currentTarget) && g.preventDefault(), r.click(), r.focus({ preventScroll: !0 }));
|
|
5043
|
-
} } },
|
|
5043
|
+
} } }, $.createElement(Ni.Provider, { value: l }, f({ ourProps: u, theirProps: c, slot: {}, defaultTag: jh, name: "Switch.Group" }))));
|
|
5044
5044
|
}
|
|
5045
5045
|
let Dh = "button";
|
|
5046
5046
|
function Vh(e, t) {
|
|
5047
5047
|
var r;
|
|
5048
|
-
let n = xe(), a = Er(), o = St(), { id: i = a || `headlessui-switch-${n}`, disabled: s = o || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = fe(Ni), [b, x] = ae(null), y = Y(null),
|
|
5049
|
-
|
|
5050
|
-
|
|
5048
|
+
let n = xe(), a = Er(), o = St(), { id: i = a || `headlessui-switch-${n}`, disabled: s = o || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = fe(Ni), [b, x] = ae(null), y = Y(null), E = be(y, t, v === null ? null : v.setSwitch, x), w = ri(u), [P, N] = ti(l, c, w ?? !1), F = rt(), [z, S] = ae(!1), I = T(() => {
|
|
5049
|
+
S(!0), N?.(!P), F.nextFrame(() => {
|
|
5050
|
+
S(!1);
|
|
5051
5051
|
});
|
|
5052
|
-
}), K =
|
|
5053
|
-
if (vr(
|
|
5054
|
-
|
|
5055
|
-
}), X =
|
|
5056
|
-
|
|
5057
|
-
}),
|
|
5058
|
-
if (w !== void 0) return
|
|
5059
|
-
}, [
|
|
5060
|
-
return
|
|
5052
|
+
}), K = T((D) => {
|
|
5053
|
+
if (vr(D.currentTarget)) return D.preventDefault();
|
|
5054
|
+
D.preventDefault(), I();
|
|
5055
|
+
}), X = T((D) => {
|
|
5056
|
+
D.key === te.Space ? (D.preventDefault(), I()) : D.key === te.Enter && ni(D.currentTarget);
|
|
5057
|
+
}), M = T((D) => D.preventDefault()), V = Cr(), W = ln(), { isFocusVisible: J, focusProps: k } = Wt({ autoFocus: m }), { isHovered: U, hoverProps: re } = Bt({ isDisabled: s }), { pressed: C, pressProps: L } = Sr({ disabled: s }), R = ve({ checked: P, disabled: s, hover: U, focus: J, active: C, autofocus: m, changing: z }), O = qe({ id: i, ref: E, role: "switch", type: ga(e, b), tabIndex: e.tabIndex === -1 ? 0 : (r = e.tabIndex) != null ? r : 0, "aria-checked": P, "aria-labelledby": V, "aria-describedby": W, disabled: s || void 0, autoFocus: m, onClick: K, onKeyUp: X, onKeyPress: M }, k, re, L), Q = ie(() => {
|
|
5058
|
+
if (w !== void 0) return N?.(w);
|
|
5059
|
+
}, [N, w]), B = ue();
|
|
5060
|
+
return $.createElement($.Fragment, null, f != null && $.createElement(ai, { disabled: s, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: P }, form: d, onReset: Q }), B({ ourProps: O, theirProps: p, slot: R, defaultTag: Dh, name: "Switch" }));
|
|
5061
5061
|
}
|
|
5062
5062
|
let zh = le(Vh), Hh = Lh, Gh = $r, Bh = un, Wh = Object.assign(zh, { Group: Hh, Label: Gh, Description: Bh }), Uh = "textarea";
|
|
5063
5063
|
function Yh(e, t) {
|
|
@@ -5328,14 +5328,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5328
5328
|
}
|
|
5329
5329
|
v = !1;
|
|
5330
5330
|
}
|
|
5331
|
-
const x = g.length === 0 ? "" : g.length === 1 ? g[0] : o(g).join(":"), y = d ? x + Co : x,
|
|
5332
|
-
if (i.indexOf(
|
|
5331
|
+
const x = g.length === 0 ? "" : g.length === 1 ? g[0] : o(g).join(":"), y = d ? x + Co : x, E = y + b;
|
|
5332
|
+
if (i.indexOf(E) > -1)
|
|
5333
5333
|
continue;
|
|
5334
|
-
i.push(
|
|
5334
|
+
i.push(E);
|
|
5335
5335
|
const w = a(b, v);
|
|
5336
5336
|
for (let P = 0; P < w.length; ++P) {
|
|
5337
|
-
const
|
|
5338
|
-
i.push(y +
|
|
5337
|
+
const N = w[P];
|
|
5338
|
+
i.push(y + N);
|
|
5339
5339
|
}
|
|
5340
5340
|
l = c + (l.length > 0 ? " " + l : l);
|
|
5341
5341
|
}
|
|
@@ -5380,7 +5380,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5380
5380
|
const n = Ac.exec(e);
|
|
5381
5381
|
return n ? n[1] ? t(n[1]) : r : !1;
|
|
5382
5382
|
}, _c = (e) => e === "position" || e === "percentage", Tc = (e) => e === "image" || e === "url", Mc = (e) => e === "length" || e === "size" || e === "bg-size", jc = (e) => e === "length", Ov = (e) => e === "number", _v = (e) => e === "family-name", Lc = (e) => e === "shadow", Tv = () => {
|
|
5383
|
-
const e = Fe("color"), t = Fe("font"), r = Fe("text"), n = Fe("font-weight"), a = Fe("tracking"), o = Fe("leading"), i = Fe("breakpoint"), s = Fe("container"), l = Fe("spacing"), u = Fe("radius"), c = Fe("shadow"), f = Fe("inset-shadow"), g = Fe("text-shadow"), d = Fe("drop-shadow"), m = Fe("blur"), p = Fe("perspective"), v = Fe("aspect"), b = Fe("ease"), x = Fe("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"],
|
|
5383
|
+
const e = Fe("color"), t = Fe("font"), r = Fe("text"), n = Fe("font-weight"), a = Fe("tracking"), o = Fe("leading"), i = Fe("breakpoint"), s = Fe("container"), l = Fe("spacing"), u = Fe("radius"), c = Fe("shadow"), f = Fe("inset-shadow"), g = Fe("text-shadow"), d = Fe("drop-shadow"), m = Fe("blur"), p = Fe("perspective"), v = Fe("aspect"), b = Fe("ease"), x = Fe("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], E = () => [
|
|
5384
5384
|
"center",
|
|
5385
5385
|
"top",
|
|
5386
5386
|
"bottom",
|
|
@@ -5398,15 +5398,15 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5398
5398
|
"bottom-left",
|
|
5399
5399
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5400
5400
|
"left-bottom"
|
|
5401
|
-
], w = () => [...
|
|
5401
|
+
], w = () => [...E(), G, H], P = () => ["auto", "hidden", "clip", "visible", "scroll"], N = () => ["auto", "contain", "none"], F = () => [G, H, l], z = () => [cr, "full", "auto", ...F()], S = () => [Ct, "none", "subgrid", G, H], I = () => ["auto", {
|
|
5402
5402
|
span: ["full", Ct, G, H]
|
|
5403
|
-
}, Ct, G, H], K = () => [Ct, "auto", G, H], X = () => ["auto", "min", "max", "fr", G, H],
|
|
5403
|
+
}, Ct, G, H], K = () => [Ct, "auto", G, H], X = () => ["auto", "min", "max", "fr", G, H], M = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], V = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], W = () => ["auto", ...F()], J = () => [cr, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], k = () => [e, G, H], U = () => [...E(), Us, Ws, {
|
|
5404
5404
|
position: [G, H]
|
|
5405
5405
|
}], re = () => ["no-repeat", {
|
|
5406
5406
|
repeat: ["", "x", "y", "space", "round"]
|
|
5407
|
-
}],
|
|
5407
|
+
}], C = () => ["auto", "cover", "contain", Nv, Pv, {
|
|
5408
5408
|
size: [G, H]
|
|
5409
|
-
}],
|
|
5409
|
+
}], L = () => [Ka, Mr, Jt], R = () => [
|
|
5410
5410
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5411
5411
|
"",
|
|
5412
5412
|
"none",
|
|
@@ -5414,7 +5414,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5414
5414
|
u,
|
|
5415
5415
|
G,
|
|
5416
5416
|
H
|
|
5417
|
-
], O = () => ["", se, Mr, Jt], Q = () => ["solid", "dashed", "dotted", "double"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
5417
|
+
], O = () => ["", se, Mr, Jt], Q = () => ["solid", "dashed", "dotted", "double"], B = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], D = () => [se, Ka, Us, Ws], pe = () => [
|
|
5418
5418
|
// Deprecated since Tailwind CSS v4.0.0
|
|
5419
5419
|
"",
|
|
5420
5420
|
"none",
|
|
@@ -5573,21 +5573,21 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5573
5573
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
5574
5574
|
*/
|
|
5575
5575
|
overscroll: [{
|
|
5576
|
-
overscroll:
|
|
5576
|
+
overscroll: N()
|
|
5577
5577
|
}],
|
|
5578
5578
|
/**
|
|
5579
5579
|
* Overscroll Behavior X
|
|
5580
5580
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
5581
5581
|
*/
|
|
5582
5582
|
"overscroll-x": [{
|
|
5583
|
-
"overscroll-x":
|
|
5583
|
+
"overscroll-x": N()
|
|
5584
5584
|
}],
|
|
5585
5585
|
/**
|
|
5586
5586
|
* Overscroll Behavior Y
|
|
5587
5587
|
* @see https://tailwindcss.com/docs/overscroll-behavior
|
|
5588
5588
|
*/
|
|
5589
5589
|
"overscroll-y": [{
|
|
5590
|
-
"overscroll-y":
|
|
5590
|
+
"overscroll-y": N()
|
|
5591
5591
|
}],
|
|
5592
5592
|
/**
|
|
5593
5593
|
* Position
|
|
@@ -5599,63 +5599,63 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5599
5599
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5600
5600
|
*/
|
|
5601
5601
|
inset: [{
|
|
5602
|
-
inset:
|
|
5602
|
+
inset: z()
|
|
5603
5603
|
}],
|
|
5604
5604
|
/**
|
|
5605
5605
|
* Right / Left
|
|
5606
5606
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5607
5607
|
*/
|
|
5608
5608
|
"inset-x": [{
|
|
5609
|
-
"inset-x":
|
|
5609
|
+
"inset-x": z()
|
|
5610
5610
|
}],
|
|
5611
5611
|
/**
|
|
5612
5612
|
* Top / Bottom
|
|
5613
5613
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5614
5614
|
*/
|
|
5615
5615
|
"inset-y": [{
|
|
5616
|
-
"inset-y":
|
|
5616
|
+
"inset-y": z()
|
|
5617
5617
|
}],
|
|
5618
5618
|
/**
|
|
5619
5619
|
* Start
|
|
5620
5620
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5621
5621
|
*/
|
|
5622
5622
|
start: [{
|
|
5623
|
-
start:
|
|
5623
|
+
start: z()
|
|
5624
5624
|
}],
|
|
5625
5625
|
/**
|
|
5626
5626
|
* End
|
|
5627
5627
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5628
5628
|
*/
|
|
5629
5629
|
end: [{
|
|
5630
|
-
end:
|
|
5630
|
+
end: z()
|
|
5631
5631
|
}],
|
|
5632
5632
|
/**
|
|
5633
5633
|
* Top
|
|
5634
5634
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5635
5635
|
*/
|
|
5636
5636
|
top: [{
|
|
5637
|
-
top:
|
|
5637
|
+
top: z()
|
|
5638
5638
|
}],
|
|
5639
5639
|
/**
|
|
5640
5640
|
* Right
|
|
5641
5641
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5642
5642
|
*/
|
|
5643
5643
|
right: [{
|
|
5644
|
-
right:
|
|
5644
|
+
right: z()
|
|
5645
5645
|
}],
|
|
5646
5646
|
/**
|
|
5647
5647
|
* Bottom
|
|
5648
5648
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5649
5649
|
*/
|
|
5650
5650
|
bottom: [{
|
|
5651
|
-
bottom:
|
|
5651
|
+
bottom: z()
|
|
5652
5652
|
}],
|
|
5653
5653
|
/**
|
|
5654
5654
|
* Left
|
|
5655
5655
|
* @see https://tailwindcss.com/docs/top-right-bottom-left
|
|
5656
5656
|
*/
|
|
5657
5657
|
left: [{
|
|
5658
|
-
left:
|
|
5658
|
+
left: z()
|
|
5659
5659
|
}],
|
|
5660
5660
|
/**
|
|
5661
5661
|
* Visibility
|
|
@@ -5726,14 +5726,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5726
5726
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
5727
5727
|
*/
|
|
5728
5728
|
"grid-cols": [{
|
|
5729
|
-
"grid-cols":
|
|
5729
|
+
"grid-cols": S()
|
|
5730
5730
|
}],
|
|
5731
5731
|
/**
|
|
5732
5732
|
* Grid Column Start / End
|
|
5733
5733
|
* @see https://tailwindcss.com/docs/grid-column
|
|
5734
5734
|
*/
|
|
5735
5735
|
"col-start-end": [{
|
|
5736
|
-
col:
|
|
5736
|
+
col: I()
|
|
5737
5737
|
}],
|
|
5738
5738
|
/**
|
|
5739
5739
|
* Grid Column Start
|
|
@@ -5754,14 +5754,14 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5754
5754
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
5755
5755
|
*/
|
|
5756
5756
|
"grid-rows": [{
|
|
5757
|
-
"grid-rows":
|
|
5757
|
+
"grid-rows": S()
|
|
5758
5758
|
}],
|
|
5759
5759
|
/**
|
|
5760
5760
|
* Grid Row Start / End
|
|
5761
5761
|
* @see https://tailwindcss.com/docs/grid-row
|
|
5762
5762
|
*/
|
|
5763
5763
|
"row-start-end": [{
|
|
5764
|
-
row:
|
|
5764
|
+
row: I()
|
|
5765
5765
|
}],
|
|
5766
5766
|
/**
|
|
5767
5767
|
* Grid Row Start
|
|
@@ -5824,35 +5824,35 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5824
5824
|
* @see https://tailwindcss.com/docs/justify-content
|
|
5825
5825
|
*/
|
|
5826
5826
|
"justify-content": [{
|
|
5827
|
-
justify: [...
|
|
5827
|
+
justify: [...M(), "normal"]
|
|
5828
5828
|
}],
|
|
5829
5829
|
/**
|
|
5830
5830
|
* Justify Items
|
|
5831
5831
|
* @see https://tailwindcss.com/docs/justify-items
|
|
5832
5832
|
*/
|
|
5833
5833
|
"justify-items": [{
|
|
5834
|
-
"justify-items": [...
|
|
5834
|
+
"justify-items": [...V(), "normal"]
|
|
5835
5835
|
}],
|
|
5836
5836
|
/**
|
|
5837
5837
|
* Justify Self
|
|
5838
5838
|
* @see https://tailwindcss.com/docs/justify-self
|
|
5839
5839
|
*/
|
|
5840
5840
|
"justify-self": [{
|
|
5841
|
-
"justify-self": ["auto", ...
|
|
5841
|
+
"justify-self": ["auto", ...V()]
|
|
5842
5842
|
}],
|
|
5843
5843
|
/**
|
|
5844
5844
|
* Align Content
|
|
5845
5845
|
* @see https://tailwindcss.com/docs/align-content
|
|
5846
5846
|
*/
|
|
5847
5847
|
"align-content": [{
|
|
5848
|
-
content: ["normal", ...
|
|
5848
|
+
content: ["normal", ...M()]
|
|
5849
5849
|
}],
|
|
5850
5850
|
/**
|
|
5851
5851
|
* Align Items
|
|
5852
5852
|
* @see https://tailwindcss.com/docs/align-items
|
|
5853
5853
|
*/
|
|
5854
5854
|
"align-items": [{
|
|
5855
|
-
items: [...
|
|
5855
|
+
items: [...V(), {
|
|
5856
5856
|
baseline: ["", "last"]
|
|
5857
5857
|
}]
|
|
5858
5858
|
}],
|
|
@@ -5861,7 +5861,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5861
5861
|
* @see https://tailwindcss.com/docs/align-self
|
|
5862
5862
|
*/
|
|
5863
5863
|
"align-self": [{
|
|
5864
|
-
self: ["auto", ...
|
|
5864
|
+
self: ["auto", ...V(), {
|
|
5865
5865
|
baseline: ["", "last"]
|
|
5866
5866
|
}]
|
|
5867
5867
|
}],
|
|
@@ -5870,21 +5870,21 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
5870
5870
|
* @see https://tailwindcss.com/docs/place-content
|
|
5871
5871
|
*/
|
|
5872
5872
|
"place-content": [{
|
|
5873
|
-
"place-content":
|
|
5873
|
+
"place-content": M()
|
|
5874
5874
|
}],
|
|
5875
5875
|
/**
|
|
5876
5876
|
* Place Items
|
|
5877
5877
|
* @see https://tailwindcss.com/docs/place-items
|
|
5878
5878
|
*/
|
|
5879
5879
|
"place-items": [{
|
|
5880
|
-
"place-items": [...
|
|
5880
|
+
"place-items": [...V(), "baseline"]
|
|
5881
5881
|
}],
|
|
5882
5882
|
/**
|
|
5883
5883
|
* Place Self
|
|
5884
5884
|
* @see https://tailwindcss.com/docs/place-self
|
|
5885
5885
|
*/
|
|
5886
5886
|
"place-self": [{
|
|
5887
|
-
"place-self": ["auto", ...
|
|
5887
|
+
"place-self": ["auto", ...V()]
|
|
5888
5888
|
}],
|
|
5889
5889
|
// Spacing
|
|
5890
5890
|
/**
|
|
@@ -6387,7 +6387,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6387
6387
|
* @see https://tailwindcss.com/docs/background-size
|
|
6388
6388
|
*/
|
|
6389
6389
|
"bg-size": [{
|
|
6390
|
-
bg:
|
|
6390
|
+
bg: C()
|
|
6391
6391
|
}],
|
|
6392
6392
|
/**
|
|
6393
6393
|
* Background Image
|
|
@@ -6414,21 +6414,21 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6414
6414
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6415
6415
|
*/
|
|
6416
6416
|
"gradient-from-pos": [{
|
|
6417
|
-
from:
|
|
6417
|
+
from: L()
|
|
6418
6418
|
}],
|
|
6419
6419
|
/**
|
|
6420
6420
|
* Gradient Color Stops Via Position
|
|
6421
6421
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6422
6422
|
*/
|
|
6423
6423
|
"gradient-via-pos": [{
|
|
6424
|
-
via:
|
|
6424
|
+
via: L()
|
|
6425
6425
|
}],
|
|
6426
6426
|
/**
|
|
6427
6427
|
* Gradient Color Stops To Position
|
|
6428
6428
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
6429
6429
|
*/
|
|
6430
6430
|
"gradient-to-pos": [{
|
|
6431
|
-
to:
|
|
6431
|
+
to: L()
|
|
6432
6432
|
}],
|
|
6433
6433
|
/**
|
|
6434
6434
|
* Gradient Color Stops From
|
|
@@ -6906,10 +6906,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6906
6906
|
"mask-linear": [se]
|
|
6907
6907
|
}],
|
|
6908
6908
|
"mask-image-linear-from-pos": [{
|
|
6909
|
-
"mask-linear-from":
|
|
6909
|
+
"mask-linear-from": D()
|
|
6910
6910
|
}],
|
|
6911
6911
|
"mask-image-linear-to-pos": [{
|
|
6912
|
-
"mask-linear-to":
|
|
6912
|
+
"mask-linear-to": D()
|
|
6913
6913
|
}],
|
|
6914
6914
|
"mask-image-linear-from-color": [{
|
|
6915
6915
|
"mask-linear-from": k()
|
|
@@ -6918,10 +6918,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6918
6918
|
"mask-linear-to": k()
|
|
6919
6919
|
}],
|
|
6920
6920
|
"mask-image-t-from-pos": [{
|
|
6921
|
-
"mask-t-from":
|
|
6921
|
+
"mask-t-from": D()
|
|
6922
6922
|
}],
|
|
6923
6923
|
"mask-image-t-to-pos": [{
|
|
6924
|
-
"mask-t-to":
|
|
6924
|
+
"mask-t-to": D()
|
|
6925
6925
|
}],
|
|
6926
6926
|
"mask-image-t-from-color": [{
|
|
6927
6927
|
"mask-t-from": k()
|
|
@@ -6930,10 +6930,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6930
6930
|
"mask-t-to": k()
|
|
6931
6931
|
}],
|
|
6932
6932
|
"mask-image-r-from-pos": [{
|
|
6933
|
-
"mask-r-from":
|
|
6933
|
+
"mask-r-from": D()
|
|
6934
6934
|
}],
|
|
6935
6935
|
"mask-image-r-to-pos": [{
|
|
6936
|
-
"mask-r-to":
|
|
6936
|
+
"mask-r-to": D()
|
|
6937
6937
|
}],
|
|
6938
6938
|
"mask-image-r-from-color": [{
|
|
6939
6939
|
"mask-r-from": k()
|
|
@@ -6942,10 +6942,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6942
6942
|
"mask-r-to": k()
|
|
6943
6943
|
}],
|
|
6944
6944
|
"mask-image-b-from-pos": [{
|
|
6945
|
-
"mask-b-from":
|
|
6945
|
+
"mask-b-from": D()
|
|
6946
6946
|
}],
|
|
6947
6947
|
"mask-image-b-to-pos": [{
|
|
6948
|
-
"mask-b-to":
|
|
6948
|
+
"mask-b-to": D()
|
|
6949
6949
|
}],
|
|
6950
6950
|
"mask-image-b-from-color": [{
|
|
6951
6951
|
"mask-b-from": k()
|
|
@@ -6954,10 +6954,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6954
6954
|
"mask-b-to": k()
|
|
6955
6955
|
}],
|
|
6956
6956
|
"mask-image-l-from-pos": [{
|
|
6957
|
-
"mask-l-from":
|
|
6957
|
+
"mask-l-from": D()
|
|
6958
6958
|
}],
|
|
6959
6959
|
"mask-image-l-to-pos": [{
|
|
6960
|
-
"mask-l-to":
|
|
6960
|
+
"mask-l-to": D()
|
|
6961
6961
|
}],
|
|
6962
6962
|
"mask-image-l-from-color": [{
|
|
6963
6963
|
"mask-l-from": k()
|
|
@@ -6966,10 +6966,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6966
6966
|
"mask-l-to": k()
|
|
6967
6967
|
}],
|
|
6968
6968
|
"mask-image-x-from-pos": [{
|
|
6969
|
-
"mask-x-from":
|
|
6969
|
+
"mask-x-from": D()
|
|
6970
6970
|
}],
|
|
6971
6971
|
"mask-image-x-to-pos": [{
|
|
6972
|
-
"mask-x-to":
|
|
6972
|
+
"mask-x-to": D()
|
|
6973
6973
|
}],
|
|
6974
6974
|
"mask-image-x-from-color": [{
|
|
6975
6975
|
"mask-x-from": k()
|
|
@@ -6978,10 +6978,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6978
6978
|
"mask-x-to": k()
|
|
6979
6979
|
}],
|
|
6980
6980
|
"mask-image-y-from-pos": [{
|
|
6981
|
-
"mask-y-from":
|
|
6981
|
+
"mask-y-from": D()
|
|
6982
6982
|
}],
|
|
6983
6983
|
"mask-image-y-to-pos": [{
|
|
6984
|
-
"mask-y-to":
|
|
6984
|
+
"mask-y-to": D()
|
|
6985
6985
|
}],
|
|
6986
6986
|
"mask-image-y-from-color": [{
|
|
6987
6987
|
"mask-y-from": k()
|
|
@@ -6993,10 +6993,10 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
6993
6993
|
"mask-radial": [G, H]
|
|
6994
6994
|
}],
|
|
6995
6995
|
"mask-image-radial-from-pos": [{
|
|
6996
|
-
"mask-radial-from":
|
|
6996
|
+
"mask-radial-from": D()
|
|
6997
6997
|
}],
|
|
6998
6998
|
"mask-image-radial-to-pos": [{
|
|
6999
|
-
"mask-radial-to":
|
|
6999
|
+
"mask-radial-to": D()
|
|
7000
7000
|
}],
|
|
7001
7001
|
"mask-image-radial-from-color": [{
|
|
7002
7002
|
"mask-radial-from": k()
|
|
@@ -7014,16 +7014,16 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
7014
7014
|
}]
|
|
7015
7015
|
}],
|
|
7016
7016
|
"mask-image-radial-pos": [{
|
|
7017
|
-
"mask-radial-at":
|
|
7017
|
+
"mask-radial-at": E()
|
|
7018
7018
|
}],
|
|
7019
7019
|
"mask-image-conic-pos": [{
|
|
7020
7020
|
"mask-conic": [se]
|
|
7021
7021
|
}],
|
|
7022
7022
|
"mask-image-conic-from-pos": [{
|
|
7023
|
-
"mask-conic-from":
|
|
7023
|
+
"mask-conic-from": D()
|
|
7024
7024
|
}],
|
|
7025
7025
|
"mask-image-conic-to-pos": [{
|
|
7026
|
-
"mask-conic-to":
|
|
7026
|
+
"mask-conic-to": D()
|
|
7027
7027
|
}],
|
|
7028
7028
|
"mask-image-conic-from-color": [{
|
|
7029
7029
|
"mask-conic-from": k()
|
|
@@ -7064,7 +7064,7 @@ const Vs = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, zs = Wl, c
|
|
|
7064
7064
|
* @see https://tailwindcss.com/docs/mask-size
|
|
7065
7065
|
*/
|
|
7066
7066
|
"mask-size": [{
|
|
7067
|
-
mask:
|
|
7067
|
+
mask: C()
|
|
7068
7068
|
}],
|
|
7069
7069
|
/**
|
|
7070
7070
|
* Mask Type
|
|
@@ -7885,7 +7885,7 @@ const jv = ce(
|
|
|
7885
7885
|
shape: "circle"
|
|
7886
7886
|
}
|
|
7887
7887
|
}
|
|
7888
|
-
), Dc =
|
|
7888
|
+
), Dc = $.forwardRef(
|
|
7889
7889
|
({
|
|
7890
7890
|
className: e,
|
|
7891
7891
|
size: t,
|
|
@@ -8018,7 +8018,7 @@ const Lv = ce(
|
|
|
8018
8018
|
statusBadge: !1
|
|
8019
8019
|
}
|
|
8020
8020
|
}
|
|
8021
|
-
), $o =
|
|
8021
|
+
), $o = j.forwardRef(
|
|
8022
8022
|
({
|
|
8023
8023
|
className: e,
|
|
8024
8024
|
variant: t,
|
|
@@ -8172,7 +8172,7 @@ const Dv = ce("animate-spin rounded-full transition-colors", {
|
|
|
8172
8172
|
size: "default"
|
|
8173
8173
|
}
|
|
8174
8174
|
}
|
|
8175
|
-
),
|
|
8175
|
+
), Ve = $.forwardRef(
|
|
8176
8176
|
({
|
|
8177
8177
|
className: e,
|
|
8178
8178
|
colorScheme: t,
|
|
@@ -8206,7 +8206,7 @@ const Dv = ce("animate-spin rounded-full transition-colors", {
|
|
|
8206
8206
|
);
|
|
8207
8207
|
}
|
|
8208
8208
|
);
|
|
8209
|
-
|
|
8209
|
+
Ve.displayName = "Button";
|
|
8210
8210
|
const Hv = ce(
|
|
8211
8211
|
// Base: relative and overflow-hidden are crucial for the branded stripes to clip.
|
|
8212
8212
|
"relative w-full overflow-hidden rounded-xl transition-all",
|
|
@@ -8239,7 +8239,7 @@ const Hv = ce(
|
|
|
8239
8239
|
padding: "md"
|
|
8240
8240
|
}
|
|
8241
8241
|
}
|
|
8242
|
-
), Gv =
|
|
8242
|
+
), Gv = $.forwardRef(
|
|
8243
8243
|
({
|
|
8244
8244
|
className: e,
|
|
8245
8245
|
variant: t,
|
|
@@ -8404,7 +8404,7 @@ function Ys(e, t) {
|
|
|
8404
8404
|
}
|
|
8405
8405
|
return r;
|
|
8406
8406
|
}
|
|
8407
|
-
function
|
|
8407
|
+
function A(e) {
|
|
8408
8408
|
for (var t = 1; t < arguments.length; t++) {
|
|
8409
8409
|
var r = arguments[t] != null ? arguments[t] : {};
|
|
8410
8410
|
t % 2 ? Ys(Object(r), !0).forEach(function(n) {
|
|
@@ -9170,20 +9170,20 @@ function kn(e) {
|
|
|
9170
9170
|
}
|
|
9171
9171
|
});
|
|
9172
9172
|
}
|
|
9173
|
-
var bd =
|
|
9174
|
-
bd[Ae] =
|
|
9173
|
+
var bd = A({}, Wc);
|
|
9174
|
+
bd[Ae] = A(A(A(A({}, {
|
|
9175
9175
|
"fa-duotone": "duotone"
|
|
9176
9176
|
}), Wc[Ae]), Qs.kit), Qs["kit-duotone"]);
|
|
9177
|
-
var Ty = kn(bd), No =
|
|
9178
|
-
No[Ae] =
|
|
9177
|
+
var Ty = kn(bd), No = A({}, $b);
|
|
9178
|
+
No[Ae] = A(A(A(A({}, {
|
|
9179
9179
|
duotone: "fad"
|
|
9180
9180
|
}), No[Ae]), Zs.kit), Zs["kit-duotone"]);
|
|
9181
|
-
var tl = kn(No), Ao =
|
|
9182
|
-
Ao[Ae] =
|
|
9183
|
-
var ji = kn(Ao), Oo =
|
|
9184
|
-
Oo[Ae] =
|
|
9181
|
+
var tl = kn(No), Ao = A({}, Po);
|
|
9182
|
+
Ao[Ae] = A(A({}, Ao[Ae]), _b.kit);
|
|
9183
|
+
var ji = kn(Ao), Oo = A({}, Ey);
|
|
9184
|
+
Oo[Ae] = A(A({}, Oo[Ae]), Ab.kit);
|
|
9185
9185
|
kn(Oo);
|
|
9186
|
-
var My = tb, yd = "fa-layers-text", jy = rb, Ly =
|
|
9186
|
+
var My = tb, yd = "fa-layers-text", jy = rb, Ly = A({}, Sb);
|
|
9187
9187
|
kn(Ly);
|
|
9188
9188
|
var Dy = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], Qa = nb, Vy = [].concat(tt(Rb), tt(Iy)), Yr = Dt.FontAwesomeConfig || {};
|
|
9189
9189
|
function zy(e) {
|
|
@@ -9218,7 +9218,7 @@ var xd = {
|
|
|
9218
9218
|
showMissingIcons: !0
|
|
9219
9219
|
};
|
|
9220
9220
|
Yr.familyPrefix && (Yr.cssPrefix = Yr.familyPrefix);
|
|
9221
|
-
var wr =
|
|
9221
|
+
var wr = A(A({}, xd), Yr);
|
|
9222
9222
|
wr.autoReplaceSvg || (wr.observeMutations = !1);
|
|
9223
9223
|
var q = {};
|
|
9224
9224
|
Object.keys(xd).forEach(function(e) {
|
|
@@ -9947,7 +9947,7 @@ function ol(e) {
|
|
|
9947
9947
|
}
|
|
9948
9948
|
function _o(e, t) {
|
|
9949
9949
|
var r = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {}, n = r.skipHooks, a = n === void 0 ? !1 : n, o = ol(t);
|
|
9950
|
-
typeof Qe.hooks.addPack == "function" && !a ? Qe.hooks.addPack(e, ol(t)) : Qe.styles[e] =
|
|
9950
|
+
typeof Qe.hooks.addPack == "function" && !a ? Qe.hooks.addPack(e, ol(t)) : Qe.styles[e] = A(A({}, Qe.styles[e] || {}), o), e === "fas" && _o("fa", t);
|
|
9951
9951
|
}
|
|
9952
9952
|
var an = Qe.styles, Zy = Qe.shims, $d = Object.keys(ji), ex = $d.reduce(function(e, t) {
|
|
9953
9953
|
return e[t] = Object.keys(ji[t]), e;
|
|
@@ -10089,12 +10089,12 @@ function _a(e) {
|
|
|
10089
10089
|
return !sl.includes(d);
|
|
10090
10090
|
})), s = o.filter(function(d) {
|
|
10091
10091
|
return a = d, !Uc.includes(d);
|
|
10092
|
-
}), l = Na(s, 1), u = l[0], c = u === void 0 ? null : u, f = ox(o), g =
|
|
10092
|
+
}), l = Na(s, 1), u = l[0], c = u === void 0 ? null : u, f = ox(o), g = A(A({}, ix(i)), {}, {
|
|
10093
10093
|
prefix: Oa(c, {
|
|
10094
10094
|
family: f
|
|
10095
10095
|
})
|
|
10096
10096
|
});
|
|
10097
|
-
return
|
|
10097
|
+
return A(A(A({}, g), cx({
|
|
10098
10098
|
values: e,
|
|
10099
10099
|
family: f,
|
|
10100
10100
|
styles: an,
|
|
@@ -10147,7 +10147,7 @@ var dx = /* @__PURE__ */ (function() {
|
|
|
10147
10147
|
a[o] = arguments[o];
|
|
10148
10148
|
var i = a.reduce(this._pullDefinitions, {});
|
|
10149
10149
|
Object.keys(i).forEach(function(s) {
|
|
10150
|
-
r.definitions[s] =
|
|
10150
|
+
r.definitions[s] = A(A({}, r.definitions[s] || {}), i[s]), _o(s, i[s]);
|
|
10151
10151
|
var l = ji[Ae][s];
|
|
10152
10152
|
l && _o(l, i[s]), Ad();
|
|
10153
10153
|
});
|
|
@@ -10265,7 +10265,7 @@ var Td = new dx(), mx = function() {
|
|
|
10265
10265
|
};
|
|
10266
10266
|
}
|
|
10267
10267
|
}
|
|
10268
|
-
},
|
|
10268
|
+
}, We = {
|
|
10269
10269
|
noAuto: mx,
|
|
10270
10270
|
config: q,
|
|
10271
10271
|
dom: px,
|
|
@@ -10275,7 +10275,7 @@ var Td = new dx(), mx = function() {
|
|
|
10275
10275
|
toHtml: Sn
|
|
10276
10276
|
}, vx = function() {
|
|
10277
10277
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, r = t.autoReplaceSvgRoot, n = r === void 0 ? ke : r;
|
|
10278
|
-
(Object.keys(Qe.styles).length > 0 || q.autoFetchSvg) && Et && q.autoReplaceSvg &&
|
|
10278
|
+
(Object.keys(Qe.styles).length > 0 || q.autoFetchSvg) && Et && q.autoReplaceSvg && We.dom.i2svg({
|
|
10279
10279
|
node: n
|
|
10280
10280
|
});
|
|
10281
10281
|
};
|
|
@@ -10304,7 +10304,7 @@ function bx(e) {
|
|
|
10304
10304
|
x: s / l / 2,
|
|
10305
10305
|
y: 0.5
|
|
10306
10306
|
};
|
|
10307
|
-
a.style = Aa(
|
|
10307
|
+
a.style = Aa(A(A({}, o), {}, {
|
|
10308
10308
|
"transform-origin": "".concat(u.x + i.x / 16, "em ").concat(u.y + i.y / 16, "em")
|
|
10309
10309
|
}));
|
|
10310
10310
|
}
|
|
@@ -10323,7 +10323,7 @@ function yx(e) {
|
|
|
10323
10323
|
},
|
|
10324
10324
|
children: [{
|
|
10325
10325
|
tag: "symbol",
|
|
10326
|
-
attributes:
|
|
10326
|
+
attributes: A(A({}, a), {}, {
|
|
10327
10327
|
id: i
|
|
10328
10328
|
}),
|
|
10329
10329
|
children: n
|
|
@@ -10343,7 +10343,7 @@ function Hi(e) {
|
|
|
10343
10343
|
return w !== "" || !!w;
|
|
10344
10344
|
}).concat(u.classes).join(" "), v = {
|
|
10345
10345
|
children: [],
|
|
10346
|
-
attributes:
|
|
10346
|
+
attributes: A(A({}, u.attributes), {}, {
|
|
10347
10347
|
"data-prefix": a,
|
|
10348
10348
|
"data-icon": o,
|
|
10349
10349
|
class: p,
|
|
@@ -10352,7 +10352,7 @@ function Hi(e) {
|
|
|
10352
10352
|
})
|
|
10353
10353
|
};
|
|
10354
10354
|
!xx(u.attributes) && !u.attributes["aria-hidden"] && (v.attributes["aria-hidden"] = "true"), f && (v.attributes[sr] = "");
|
|
10355
|
-
var b =
|
|
10355
|
+
var b = A(A({}, v), {}, {
|
|
10356
10356
|
prefix: a,
|
|
10357
10357
|
iconName: o,
|
|
10358
10358
|
main: r,
|
|
@@ -10360,22 +10360,22 @@ function Hi(e) {
|
|
|
10360
10360
|
maskId: l,
|
|
10361
10361
|
transform: i,
|
|
10362
10362
|
symbol: s,
|
|
10363
|
-
styles:
|
|
10363
|
+
styles: A({}, u.styles)
|
|
10364
10364
|
}), x = n.found && r.found ? zt("generateAbstractMask", b) || {
|
|
10365
10365
|
children: [],
|
|
10366
10366
|
attributes: {}
|
|
10367
10367
|
} : zt("generateAbstractIcon", b) || {
|
|
10368
10368
|
children: [],
|
|
10369
10369
|
attributes: {}
|
|
10370
|
-
}, y = x.children,
|
|
10371
|
-
return b.children = y, b.attributes =
|
|
10370
|
+
}, y = x.children, E = x.attributes;
|
|
10371
|
+
return b.children = y, b.attributes = E, s ? yx(b) : bx(b);
|
|
10372
10372
|
}
|
|
10373
10373
|
function ul(e) {
|
|
10374
|
-
var t = e.content, r = e.width, n = e.height, a = e.transform, o = e.extra, i = e.watchable, s = i === void 0 ? !1 : i, l =
|
|
10374
|
+
var t = e.content, r = e.width, n = e.height, a = e.transform, o = e.extra, i = e.watchable, s = i === void 0 ? !1 : i, l = A(A({}, o.attributes), {}, {
|
|
10375
10375
|
class: o.classes.join(" ")
|
|
10376
10376
|
});
|
|
10377
10377
|
s && (l[sr] = "");
|
|
10378
|
-
var u =
|
|
10378
|
+
var u = A({}, o.styles);
|
|
10379
10379
|
Di(a) && (u.transform = qy({
|
|
10380
10380
|
transform: a,
|
|
10381
10381
|
width: r,
|
|
@@ -10391,7 +10391,7 @@ function ul(e) {
|
|
|
10391
10391
|
}), f;
|
|
10392
10392
|
}
|
|
10393
10393
|
function wx(e) {
|
|
10394
|
-
var t = e.content, r = e.extra, n =
|
|
10394
|
+
var t = e.content, r = e.extra, n = A(A({}, r.attributes), {}, {
|
|
10395
10395
|
class: r.classes.join(" ")
|
|
10396
10396
|
}), a = Aa(r.styles);
|
|
10397
10397
|
a.length > 0 && (n.style = a);
|
|
@@ -10457,7 +10457,7 @@ function Lo(e, t) {
|
|
|
10457
10457
|
var i = to[t][e];
|
|
10458
10458
|
return n(jo(i));
|
|
10459
10459
|
}
|
|
10460
|
-
Sx(e, t), n(
|
|
10460
|
+
Sx(e, t), n(A(A({}, kx), {}, {
|
|
10461
10461
|
icon: q.showMissingIcons && e ? zt("missingIconAbstract") || {} : {}
|
|
10462
10462
|
}));
|
|
10463
10463
|
});
|
|
@@ -10640,7 +10640,7 @@ function ml(e) {
|
|
|
10640
10640
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {
|
|
10641
10641
|
styleParser: !0
|
|
10642
10642
|
}, r = Ox(e), n = r.iconName, a = r.prefix, o = r.rest, i = _x(e), s = To("parseNodeAttributes", {}, e), l = t.styleParser ? Ax(e) : [];
|
|
10643
|
-
return
|
|
10643
|
+
return A({
|
|
10644
10644
|
iconName: n,
|
|
10645
10645
|
prefix: a,
|
|
10646
10646
|
transform: at,
|
|
@@ -10719,7 +10719,7 @@ function Lx(e) {
|
|
|
10719
10719
|
function Dx(e) {
|
|
10720
10720
|
return function(t) {
|
|
10721
10721
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = (t || {}).icon ? t : Mo(t || {}), a = r.mask;
|
|
10722
|
-
return a && (a = (a || {}).icon ? a : Mo(a || {})), e(n,
|
|
10722
|
+
return a && (a = (a || {}).icon ? a : Mo(a || {})), e(n, A(A({}, r), {}, {
|
|
10723
10723
|
mask: a
|
|
10724
10724
|
}));
|
|
10725
10725
|
};
|
|
@@ -10728,7 +10728,7 @@ var Vx = function(t) {
|
|
|
10728
10728
|
var r = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = r.transform, a = n === void 0 ? at : n, o = r.symbol, i = o === void 0 ? !1 : o, s = r.mask, l = s === void 0 ? null : s, u = r.maskId, c = u === void 0 ? null : u, f = r.classes, g = f === void 0 ? [] : f, d = r.attributes, m = d === void 0 ? {} : d, p = r.styles, v = p === void 0 ? {} : p;
|
|
10729
10729
|
if (t) {
|
|
10730
10730
|
var b = t.prefix, x = t.iconName, y = t.icon;
|
|
10731
|
-
return Ta(
|
|
10731
|
+
return Ta(A({
|
|
10732
10732
|
type: "icon"
|
|
10733
10733
|
}, t), function() {
|
|
10734
10734
|
return lr("beforeDOMElementCreation", {
|
|
@@ -10746,7 +10746,7 @@ var Vx = function(t) {
|
|
|
10746
10746
|
},
|
|
10747
10747
|
prefix: b,
|
|
10748
10748
|
iconName: x,
|
|
10749
|
-
transform:
|
|
10749
|
+
transform: A(A({}, at), a),
|
|
10750
10750
|
symbol: i,
|
|
10751
10751
|
maskId: c,
|
|
10752
10752
|
extra: {
|
|
@@ -10883,7 +10883,7 @@ var Vx = function(t) {
|
|
|
10883
10883
|
params: n
|
|
10884
10884
|
}), ul({
|
|
10885
10885
|
content: r,
|
|
10886
|
-
transform:
|
|
10886
|
+
transform: A(A({}, at), o),
|
|
10887
10887
|
extra: {
|
|
10888
10888
|
attributes: u,
|
|
10889
10889
|
styles: f,
|
|
@@ -10911,7 +10911,7 @@ var Vx = function(t) {
|
|
|
10911
10911
|
})]);
|
|
10912
10912
|
};
|
|
10913
10913
|
}
|
|
10914
|
-
}, zd = new RegExp('"', "ug"), hl = [1105920, 1112319], vl =
|
|
10914
|
+
}, zd = new RegExp('"', "ug"), hl = [1105920, 1112319], vl = A(A(A(A({}, {
|
|
10915
10915
|
FontAwesome: {
|
|
10916
10916
|
normal: "fas",
|
|
10917
10917
|
400: "fas"
|
|
@@ -10952,9 +10952,9 @@ function bl(e, t) {
|
|
|
10952
10952
|
}
|
|
10953
10953
|
if (b && !v && (!i || i.getAttribute(Ti) !== d || i.getAttribute(Mi) !== x)) {
|
|
10954
10954
|
e.setAttribute(r, x), i && e.removeChild(i);
|
|
10955
|
-
var
|
|
10955
|
+
var E = Tx(), w = E.extra;
|
|
10956
10956
|
w.attributes[Io] = t, Lo(b, d).then(function(P) {
|
|
10957
|
-
var
|
|
10957
|
+
var N = Hi(A(A({}, E), {}, {
|
|
10958
10958
|
icons: {
|
|
10959
10959
|
main: P,
|
|
10960
10960
|
mask: _d()
|
|
@@ -10964,8 +10964,8 @@ function bl(e, t) {
|
|
|
10964
10964
|
extra: w,
|
|
10965
10965
|
watchable: !0
|
|
10966
10966
|
})), F = ke.createElementNS("http://www.w3.org/2000/svg", "svg");
|
|
10967
|
-
t === "::before" ? e.insertBefore(F, e.firstChild) : e.appendChild(F), F.outerHTML =
|
|
10968
|
-
return Sn(
|
|
10967
|
+
t === "::before" ? e.insertBefore(F, e.firstChild) : e.appendChild(F), F.outerHTML = N.map(function(z) {
|
|
10968
|
+
return Sn(z);
|
|
10969
10969
|
}).join(`
|
|
10970
10970
|
`), e.removeAttribute(r), n();
|
|
10971
10971
|
}).catch(a);
|
|
@@ -11189,14 +11189,14 @@ var Zx = {
|
|
|
11189
11189
|
};
|
|
11190
11190
|
return {
|
|
11191
11191
|
tag: "g",
|
|
11192
|
-
attributes:
|
|
11192
|
+
attributes: A({}, d.outer),
|
|
11193
11193
|
children: [{
|
|
11194
11194
|
tag: "g",
|
|
11195
|
-
attributes:
|
|
11195
|
+
attributes: A({}, d.inner),
|
|
11196
11196
|
children: [{
|
|
11197
11197
|
tag: n.icon.tag,
|
|
11198
11198
|
children: n.icon.children,
|
|
11199
|
-
attributes:
|
|
11199
|
+
attributes: A(A({}, n.icon.attributes), d.path)
|
|
11200
11200
|
}]
|
|
11201
11201
|
}]
|
|
11202
11202
|
};
|
|
@@ -11234,25 +11234,25 @@ var n1 = {
|
|
|
11234
11234
|
iconWidth: u
|
|
11235
11235
|
}), m = {
|
|
11236
11236
|
tag: "rect",
|
|
11237
|
-
attributes:
|
|
11237
|
+
attributes: A(A({}, ro), {}, {
|
|
11238
11238
|
fill: "white"
|
|
11239
11239
|
})
|
|
11240
11240
|
}, p = c.children ? {
|
|
11241
11241
|
children: c.children.map(kl)
|
|
11242
11242
|
} : {}, v = {
|
|
11243
11243
|
tag: "g",
|
|
11244
|
-
attributes:
|
|
11245
|
-
children: [kl(
|
|
11244
|
+
attributes: A({}, d.inner),
|
|
11245
|
+
children: [kl(A({
|
|
11246
11246
|
tag: c.tag,
|
|
11247
|
-
attributes:
|
|
11247
|
+
attributes: A(A({}, c.attributes), d.path)
|
|
11248
11248
|
}, p))]
|
|
11249
11249
|
}, b = {
|
|
11250
11250
|
tag: "g",
|
|
11251
|
-
attributes:
|
|
11251
|
+
attributes: A({}, d.outer),
|
|
11252
11252
|
children: [v]
|
|
11253
|
-
}, x = "mask-".concat(s || rl()), y = "clip-".concat(s || rl()),
|
|
11253
|
+
}, x = "mask-".concat(s || rl()), y = "clip-".concat(s || rl()), E = {
|
|
11254
11254
|
tag: "mask",
|
|
11255
|
-
attributes:
|
|
11255
|
+
attributes: A(A({}, ro), {}, {
|
|
11256
11256
|
id: x,
|
|
11257
11257
|
maskUnits: "userSpaceOnUse",
|
|
11258
11258
|
maskContentUnits: "userSpaceOnUse"
|
|
@@ -11266,11 +11266,11 @@ var n1 = {
|
|
|
11266
11266
|
id: y
|
|
11267
11267
|
},
|
|
11268
11268
|
children: r1(g)
|
|
11269
|
-
},
|
|
11269
|
+
}, E]
|
|
11270
11270
|
};
|
|
11271
11271
|
return n.push(w, {
|
|
11272
11272
|
tag: "rect",
|
|
11273
|
-
attributes:
|
|
11273
|
+
attributes: A({
|
|
11274
11274
|
fill: "currentColor",
|
|
11275
11275
|
"clip-path": "url(#".concat(y, ")"),
|
|
11276
11276
|
mask: "url(#".concat(x, ")")
|
|
@@ -11294,15 +11294,15 @@ var n1 = {
|
|
|
11294
11294
|
};
|
|
11295
11295
|
n.push({
|
|
11296
11296
|
tag: "path",
|
|
11297
|
-
attributes:
|
|
11297
|
+
attributes: A(A({}, a), {}, {
|
|
11298
11298
|
d: "M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"
|
|
11299
11299
|
})
|
|
11300
11300
|
});
|
|
11301
|
-
var i =
|
|
11301
|
+
var i = A(A({}, o), {}, {
|
|
11302
11302
|
attributeName: "opacity"
|
|
11303
11303
|
}), s = {
|
|
11304
11304
|
tag: "circle",
|
|
11305
|
-
attributes:
|
|
11305
|
+
attributes: A(A({}, a), {}, {
|
|
11306
11306
|
cx: "256",
|
|
11307
11307
|
cy: "364",
|
|
11308
11308
|
r: "28"
|
|
@@ -11311,36 +11311,36 @@ var n1 = {
|
|
|
11311
11311
|
};
|
|
11312
11312
|
return r || s.children.push({
|
|
11313
11313
|
tag: "animate",
|
|
11314
|
-
attributes:
|
|
11314
|
+
attributes: A(A({}, o), {}, {
|
|
11315
11315
|
attributeName: "r",
|
|
11316
11316
|
values: "28;14;28;28;14;28;"
|
|
11317
11317
|
})
|
|
11318
11318
|
}, {
|
|
11319
11319
|
tag: "animate",
|
|
11320
|
-
attributes:
|
|
11320
|
+
attributes: A(A({}, i), {}, {
|
|
11321
11321
|
values: "1;0;1;1;0;1;"
|
|
11322
11322
|
})
|
|
11323
11323
|
}), n.push(s), n.push({
|
|
11324
11324
|
tag: "path",
|
|
11325
|
-
attributes:
|
|
11325
|
+
attributes: A(A({}, a), {}, {
|
|
11326
11326
|
opacity: "1",
|
|
11327
11327
|
d: "M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"
|
|
11328
11328
|
}),
|
|
11329
11329
|
children: r ? [] : [{
|
|
11330
11330
|
tag: "animate",
|
|
11331
|
-
attributes:
|
|
11331
|
+
attributes: A(A({}, i), {}, {
|
|
11332
11332
|
values: "1;0;0;0;0;1;"
|
|
11333
11333
|
})
|
|
11334
11334
|
}]
|
|
11335
11335
|
}), r || n.push({
|
|
11336
11336
|
tag: "path",
|
|
11337
|
-
attributes:
|
|
11337
|
+
attributes: A(A({}, a), {}, {
|
|
11338
11338
|
opacity: "0",
|
|
11339
11339
|
d: "M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"
|
|
11340
11340
|
}),
|
|
11341
11341
|
children: [{
|
|
11342
11342
|
tag: "animate",
|
|
11343
|
-
attributes:
|
|
11343
|
+
attributes: A(A({}, i), {}, {
|
|
11344
11344
|
values: "0;0;1;1;0;0;"
|
|
11345
11345
|
})
|
|
11346
11346
|
}]
|
|
@@ -11364,19 +11364,19 @@ var n1 = {
|
|
|
11364
11364
|
}
|
|
11365
11365
|
}, i1 = [Jy, zx, Hx, Gx, Bx, Zx, e1, t1, n1, a1, o1];
|
|
11366
11366
|
gx(i1, {
|
|
11367
|
-
mixoutsTo:
|
|
11367
|
+
mixoutsTo: We
|
|
11368
11368
|
});
|
|
11369
|
-
|
|
11370
|
-
var on =
|
|
11371
|
-
|
|
11372
|
-
|
|
11373
|
-
var Hd =
|
|
11374
|
-
|
|
11375
|
-
|
|
11376
|
-
var s1 =
|
|
11377
|
-
|
|
11378
|
-
|
|
11379
|
-
|
|
11369
|
+
We.noAuto;
|
|
11370
|
+
var on = We.config;
|
|
11371
|
+
We.library;
|
|
11372
|
+
We.dom;
|
|
11373
|
+
var Hd = We.parse;
|
|
11374
|
+
We.findIconDefinition;
|
|
11375
|
+
We.toHtml;
|
|
11376
|
+
var s1 = We.icon;
|
|
11377
|
+
We.layer;
|
|
11378
|
+
We.text;
|
|
11379
|
+
We.counter;
|
|
11380
11380
|
function l1(e) {
|
|
11381
11381
|
return e = e - 0, e === e;
|
|
11382
11382
|
}
|
|
@@ -11443,7 +11443,7 @@ function Bd(e, t, r = {}) {
|
|
|
11443
11443
|
} = r;
|
|
11444
11444
|
return i && (o.style = o.style ? { ...o.style, ...i } : i), s && (o.role = s), l && (o["aria-label"] = l, o["aria-hidden"] = "false"), e(t.tag, { ...o, ...u }, ...n);
|
|
11445
11445
|
}
|
|
11446
|
-
var f1 = Bd.bind(null,
|
|
11446
|
+
var f1 = Bd.bind(null, $.createElement), Sl = (e, t) => {
|
|
11447
11447
|
const r = xe();
|
|
11448
11448
|
return e || (t ? r : void 0);
|
|
11449
11449
|
}, g1 = class {
|
|
@@ -11558,9 +11558,9 @@ function x1(e) {
|
|
|
11558
11558
|
swapOpacity: b,
|
|
11559
11559
|
rotateBy: x,
|
|
11560
11560
|
widthAuto: y,
|
|
11561
|
-
className:
|
|
11561
|
+
className: E
|
|
11562
11562
|
} = e, w = [];
|
|
11563
|
-
return
|
|
11563
|
+
return E && w.push(...E.split(" ")), t && w.push(gt.beat), r && w.push(gt.fade), n && w.push(gt.beatFade), a && w.push(gt.bounce), o && w.push(gt.shake), i && w.push(gt.spin), l && w.push(gt.spinReverse), s && w.push(gt.spinPulse), u && w.push(gt.pulse), c && w.push(mt.fixedWidth), f && w.push(mt.inverse), g && w.push(mt.border), d === !0 && w.push(mt.flip), (d === "horizontal" || d === "both") && w.push(mt.flipHorizontal), (d === "vertical" || d === "both") && w.push(mt.flipVertical), m != null && w.push(b1[m]), p != null && p !== 0 && w.push(v1[p]), v != null && w.push(h1[v]), b && w.push(mt.swapOpacity), p1 ? (x && w.push(mt.rotateBy), y && w.push(mt.widthAuto), (on.cssPrefix || on.familyPrefix || qr) === qr ? w : (
|
|
11564
11564
|
// TODO: see if we can achieve custom prefix support without iterating
|
|
11565
11565
|
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
11566
11566
|
w.map(y1)
|
|
@@ -11603,7 +11603,7 @@ var Cl = new g1("FontAwesomeIcon"), Wd = {
|
|
|
11603
11603
|
transform: void 0,
|
|
11604
11604
|
swapOpacity: !1,
|
|
11605
11605
|
widthAuto: !1
|
|
11606
|
-
}, S1 = new Set(Object.keys(Wd)), Ee =
|
|
11606
|
+
}, S1 = new Set(Object.keys(Wd)), Ee = $.forwardRef((e, t) => {
|
|
11607
11607
|
const r = { ...Wd, ...e }, {
|
|
11608
11608
|
icon: n,
|
|
11609
11609
|
mask: a,
|
|
@@ -11952,7 +11952,7 @@ const V1 = ce(
|
|
|
11952
11952
|
error: !1
|
|
11953
11953
|
}
|
|
11954
11954
|
}
|
|
11955
|
-
), B1 =
|
|
11955
|
+
), B1 = $.forwardRef(
|
|
11956
11956
|
({
|
|
11957
11957
|
className: e,
|
|
11958
11958
|
type: t,
|
|
@@ -12347,7 +12347,7 @@ const W1 = ce(
|
|
|
12347
12347
|
resize: "vertical"
|
|
12348
12348
|
}
|
|
12349
12349
|
}
|
|
12350
|
-
), X1 =
|
|
12350
|
+
), X1 = $.forwardRef(
|
|
12351
12351
|
({
|
|
12352
12352
|
className: e,
|
|
12353
12353
|
label: t,
|
|
@@ -12531,7 +12531,7 @@ const zk = ({
|
|
|
12531
12531
|
] }),
|
|
12532
12532
|
r && /* @__PURE__ */ h.jsx("div", { className: "shrink-0 pt-2 md:pt-0", children: r }),
|
|
12533
12533
|
o && /* @__PURE__ */ h.jsx("div", { className: "absolute right-2 top-2", children: /* @__PURE__ */ h.jsx(
|
|
12534
|
-
|
|
12534
|
+
Ve,
|
|
12535
12535
|
{
|
|
12536
12536
|
variant: "ghost",
|
|
12537
12537
|
size: "sm",
|
|
@@ -12609,7 +12609,7 @@ const zk = ({
|
|
|
12609
12609
|
}
|
|
12610
12610
|
),
|
|
12611
12611
|
/* @__PURE__ */ h.jsx("div", { className: "mt-6", children: n || (r ? /* @__PURE__ */ h.jsx(
|
|
12612
|
-
|
|
12612
|
+
Ve,
|
|
12613
12613
|
{
|
|
12614
12614
|
onClick: r,
|
|
12615
12615
|
colorScheme: "error",
|
|
@@ -12637,7 +12637,7 @@ const zk = ({
|
|
|
12637
12637
|
}
|
|
12638
12638
|
},
|
|
12639
12639
|
defaultVariants: { state: "default" }
|
|
12640
|
-
}), ew =
|
|
12640
|
+
}), ew = $.forwardRef(
|
|
12641
12641
|
({
|
|
12642
12642
|
awayTeam: e,
|
|
12643
12643
|
homeTeam: t,
|
|
@@ -13037,7 +13037,7 @@ const Sw = (e) => {
|
|
|
13037
13037
|
), _n = ({ value: e, label: t, size: r, variant: n }) => /* @__PURE__ */ h.jsxs("div", { className: "flex flex-col items-center", children: [
|
|
13038
13038
|
/* @__PURE__ */ h.jsx("span", { className: _(Ew({ size: r, variant: n })), children: String(e).padStart(2, "0") }),
|
|
13039
13039
|
/* @__PURE__ */ h.jsx("span", { className: _(Cw({ size: r })), children: t })
|
|
13040
|
-
] }), $w =
|
|
13040
|
+
] }), $w = $.forwardRef(
|
|
13041
13041
|
({
|
|
13042
13042
|
targetDate: e,
|
|
13043
13043
|
title: t,
|
|
@@ -13237,7 +13237,7 @@ const Rw = ce(
|
|
|
13237
13237
|
variant: "default"
|
|
13238
13238
|
}
|
|
13239
13239
|
}
|
|
13240
|
-
), Aw =
|
|
13240
|
+
), Aw = $.forwardRef(
|
|
13241
13241
|
({ className: e, variant: t, companyName: r = "Ball Collaborative", ...n }, a) => {
|
|
13242
13242
|
const o = (/* @__PURE__ */ new Date()).getFullYear();
|
|
13243
13243
|
return /* @__PURE__ */ h.jsx(
|
|
@@ -13292,32 +13292,33 @@ const Ow = ce(
|
|
|
13292
13292
|
activePath: n,
|
|
13293
13293
|
routerElement: a,
|
|
13294
13294
|
user: o,
|
|
13295
|
-
|
|
13296
|
-
|
|
13297
|
-
|
|
13298
|
-
|
|
13299
|
-
|
|
13300
|
-
|
|
13301
|
-
|
|
13302
|
-
|
|
13303
|
-
|
|
13304
|
-
|
|
13305
|
-
|
|
13306
|
-
|
|
13295
|
+
onLogin: i,
|
|
13296
|
+
onLogout: s,
|
|
13297
|
+
onInboxClick: l,
|
|
13298
|
+
onThemeToggle: u,
|
|
13299
|
+
actions: c,
|
|
13300
|
+
brandElement: f,
|
|
13301
|
+
userMenuItems: g = [],
|
|
13302
|
+
className: d,
|
|
13303
|
+
variant: m = "default",
|
|
13304
|
+
position: p = "sticky",
|
|
13305
|
+
themeMode: v,
|
|
13306
|
+
notificationVariant: b = "error",
|
|
13307
|
+
...x
|
|
13307
13308
|
}) => {
|
|
13308
|
-
const
|
|
13309
|
-
brand:
|
|
13310
|
-
linkBase:
|
|
13311
|
-
linkActive:
|
|
13312
|
-
hamburger:
|
|
13309
|
+
const y = (o?.notificationCount || 0) > 0, w = (v ?? (m === "white" || m === "default" ? "light" : "dark")) === "dark", P = m === "slate" || m === "primary" || m === "default" && w || m === "white" && w || m === "transparent" && w, N = {
|
|
13310
|
+
brand: P ? "text-white dark:text-white hover:text-gray-200 dark:hover:text-gray-200" : "text-gray-900 dark:text-gray-900 hover:text-gray-600 dark:hover:text-gray-600",
|
|
13311
|
+
linkBase: P ? "text-gray-300 dark:text-gray-300 hover:text-white dark:hover:text-white" : "text-gray-600 dark:text-gray-600 hover:text-gray-900 dark:hover:text-gray-900",
|
|
13312
|
+
linkActive: P ? "text-primary-400 dark:text-primary-400 font-semibold hover:text-primary-300 dark:hover:text-primary-300" : "text-primary-600 dark:text-primary-600 font-semibold hover:text-primary-700 dark:hover:text-primary-700",
|
|
13313
|
+
hamburger: P ? "text-gray-300 dark:text-gray-300 hover:bg-white/10 dark:hover:bg-white/10 hover:text-white dark:hover:text-white" : "text-gray-500 dark:text-gray-500 hover:bg-gray-100 dark:hover:bg-gray-100 hover:text-gray-700 dark:hover:text-gray-700"
|
|
13313
13314
|
};
|
|
13314
13315
|
return /* @__PURE__ */ h.jsx(
|
|
13315
13316
|
$c,
|
|
13316
13317
|
{
|
|
13317
13318
|
as: "nav",
|
|
13318
|
-
className: _("z-50", Ow({ variant:
|
|
13319
|
-
...
|
|
13320
|
-
children: ({ open:
|
|
13319
|
+
className: _("z-50", Ow({ variant: m, position: p }), d),
|
|
13320
|
+
...x,
|
|
13321
|
+
children: ({ open: F, close: z }) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
13321
13322
|
/* @__PURE__ */ h.jsxs("div", { className: "container mx-auto flex items-center justify-between px-4 h-16", children: [
|
|
13322
13323
|
/* @__PURE__ */ h.jsxs(
|
|
13323
13324
|
Zt,
|
|
@@ -13329,7 +13330,7 @@ const Ow = ce(
|
|
|
13329
13330
|
underline: "none",
|
|
13330
13331
|
className: _(
|
|
13331
13332
|
"flex items-center gap-3 transition-opacity",
|
|
13332
|
-
|
|
13333
|
+
N.brand
|
|
13333
13334
|
),
|
|
13334
13335
|
children: [
|
|
13335
13336
|
/* @__PURE__ */ h.jsx(
|
|
@@ -13340,31 +13341,31 @@ const Ow = ce(
|
|
|
13340
13341
|
className: "h-8 w-8 rounded-md"
|
|
13341
13342
|
}
|
|
13342
13343
|
),
|
|
13343
|
-
|
|
13344
|
+
f ?? /* @__PURE__ */ h.jsx("span", { className: "text-xl font-bold tracking-tight", children: t })
|
|
13344
13345
|
]
|
|
13345
13346
|
}
|
|
13346
13347
|
),
|
|
13347
13348
|
/* @__PURE__ */ h.jsxs("div", { className: "hidden md:flex items-center gap-8", children: [
|
|
13348
|
-
/* @__PURE__ */ h.jsx("div", { className: "flex items-center gap-6", children: r.map((
|
|
13349
|
-
const
|
|
13349
|
+
/* @__PURE__ */ h.jsx("div", { className: "flex items-center gap-6", children: r.map((S) => {
|
|
13350
|
+
const I = n === S.path;
|
|
13350
13351
|
return /* @__PURE__ */ h.jsx(
|
|
13351
13352
|
Zt,
|
|
13352
13353
|
{
|
|
13353
13354
|
as: a,
|
|
13354
|
-
href:
|
|
13355
|
-
to:
|
|
13355
|
+
href: S.path,
|
|
13356
|
+
to: S.path,
|
|
13356
13357
|
variant: "neutral",
|
|
13357
13358
|
underline: "none",
|
|
13358
13359
|
className: _(
|
|
13359
13360
|
"text-sm transition-colors duration-200",
|
|
13360
|
-
|
|
13361
|
+
I ? N.linkActive : N.linkBase
|
|
13361
13362
|
),
|
|
13362
|
-
children:
|
|
13363
|
+
children: S.label
|
|
13363
13364
|
},
|
|
13364
|
-
|
|
13365
|
+
S.path
|
|
13365
13366
|
);
|
|
13366
13367
|
}) }),
|
|
13367
|
-
|
|
13368
|
+
c ?? (o ? /* @__PURE__ */ h.jsxs(mh, { as: "div", className: "relative ml-2", children: [
|
|
13368
13369
|
/* @__PURE__ */ h.jsxs(xc, { className: "relative flex rounded-full text-sm focus:outline-none focus:ring-2 focus:ring-primary-500 focus:ring-offset-2 ring-offset-transparent", children: [
|
|
13369
13370
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open user menu" }),
|
|
13370
13371
|
/* @__PURE__ */ h.jsx(
|
|
@@ -13377,13 +13378,13 @@ const Ow = ce(
|
|
|
13377
13378
|
colorScheme: "primary"
|
|
13378
13379
|
}
|
|
13379
13380
|
),
|
|
13380
|
-
|
|
13381
|
+
y && /* @__PURE__ */ h.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ h.jsx(
|
|
13381
13382
|
$o,
|
|
13382
13383
|
{
|
|
13383
13384
|
fill: "solid",
|
|
13384
13385
|
size: "xs",
|
|
13385
13386
|
statusBadge: !0,
|
|
13386
|
-
variant:
|
|
13387
|
+
variant: b,
|
|
13387
13388
|
children: o.notificationCount
|
|
13388
13389
|
}
|
|
13389
13390
|
) })
|
|
@@ -13400,16 +13401,16 @@ const Ow = ce(
|
|
|
13400
13401
|
leaveTo: "transform opacity-0 scale-95",
|
|
13401
13402
|
children: /* @__PURE__ */ h.jsxs(wc, { className: "absolute right-0 z-50 mt-2 w-48 origin-top-right rounded-md bg-white dark:bg-gray-800 py-1 shadow-lg ring-1 ring-black/5 dark:ring-white/10 focus:outline-none divide-y divide-gray-100 dark:divide-gray-700", children: [
|
|
13402
13403
|
/* @__PURE__ */ h.jsxs("div", { className: "py-1", children: [
|
|
13403
|
-
|
|
13404
|
-
|
|
13404
|
+
y && l && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsxs(
|
|
13405
|
+
Ve,
|
|
13405
13406
|
{
|
|
13406
13407
|
variant: "ghost",
|
|
13407
13408
|
colorScheme: "neutral",
|
|
13408
13409
|
size: "sm",
|
|
13409
|
-
onClick:
|
|
13410
|
+
onClick: l,
|
|
13410
13411
|
className: _(
|
|
13411
13412
|
"w-full justify-start rounded-none px-4",
|
|
13412
|
-
|
|
13413
|
+
S && "bg-gray-50 dark:bg-gray-700"
|
|
13413
13414
|
),
|
|
13414
13415
|
startIcon: /* @__PURE__ */ h.jsx(
|
|
13415
13416
|
Ee,
|
|
@@ -13425,20 +13426,20 @@ const Ow = ce(
|
|
|
13425
13426
|
]
|
|
13426
13427
|
}
|
|
13427
13428
|
) }),
|
|
13428
|
-
|
|
13429
|
+
u && /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsxs(
|
|
13429
13430
|
"div",
|
|
13430
13431
|
{
|
|
13431
|
-
onClick: (
|
|
13432
|
-
|
|
13432
|
+
onClick: (I) => {
|
|
13433
|
+
I.preventDefault(), u();
|
|
13433
13434
|
},
|
|
13434
13435
|
role: "button",
|
|
13435
13436
|
tabIndex: 0,
|
|
13436
13437
|
className: _(
|
|
13437
13438
|
"flex w-full items-center justify-between px-4 py-2 text-sm text-gray-700 dark:text-gray-200 cursor-pointer transition-colors",
|
|
13438
|
-
|
|
13439
|
+
S && "bg-gray-50 dark:bg-gray-700"
|
|
13439
13440
|
),
|
|
13440
|
-
onKeyDown: (
|
|
13441
|
-
(
|
|
13441
|
+
onKeyDown: (I) => {
|
|
13442
|
+
(I.key === "Enter" || I.key === " ") && (I.preventDefault(), u());
|
|
13442
13443
|
},
|
|
13443
13444
|
children: [
|
|
13444
13445
|
/* @__PURE__ */ h.jsxs("div", { className: "flex items-center gap-2", children: [
|
|
@@ -13448,7 +13449,7 @@ const Ow = ce(
|
|
|
13448
13449
|
icon: Rl,
|
|
13449
13450
|
className: _(
|
|
13450
13451
|
"w-4 transition-colors",
|
|
13451
|
-
|
|
13452
|
+
w ? "text-amber-500" : "text-gray-400"
|
|
13452
13453
|
)
|
|
13453
13454
|
}
|
|
13454
13455
|
),
|
|
@@ -13457,7 +13458,7 @@ const Ow = ce(
|
|
|
13457
13458
|
/* @__PURE__ */ h.jsx(
|
|
13458
13459
|
Fl,
|
|
13459
13460
|
{
|
|
13460
|
-
checked:
|
|
13461
|
+
checked: w,
|
|
13461
13462
|
onChange: () => {
|
|
13462
13463
|
},
|
|
13463
13464
|
size: "xs",
|
|
@@ -13469,31 +13470,31 @@ const Ow = ce(
|
|
|
13469
13470
|
}
|
|
13470
13471
|
) })
|
|
13471
13472
|
] }),
|
|
13472
|
-
|
|
13473
|
+
g.length > 0 && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: g.map((S) => /* @__PURE__ */ h.jsx(zr, { children: ({ focus: I }) => /* @__PURE__ */ h.jsx(
|
|
13473
13474
|
Zt,
|
|
13474
13475
|
{
|
|
13475
13476
|
as: a,
|
|
13476
|
-
href:
|
|
13477
|
-
to:
|
|
13477
|
+
href: S.path,
|
|
13478
|
+
to: S.path,
|
|
13478
13479
|
variant: "neutral",
|
|
13479
13480
|
underline: "none",
|
|
13480
13481
|
className: _(
|
|
13481
13482
|
"block w-full px-4 py-2 text-sm text-gray-700 dark:text-gray-200 transition-colors",
|
|
13482
|
-
|
|
13483
|
+
I && "bg-gray-50 dark:bg-gray-700"
|
|
13483
13484
|
),
|
|
13484
|
-
children:
|
|
13485
|
+
children: S.label
|
|
13485
13486
|
}
|
|
13486
|
-
) },
|
|
13487
|
-
|
|
13488
|
-
|
|
13487
|
+
) }, S.path)) }),
|
|
13488
|
+
s && /* @__PURE__ */ h.jsx("div", { className: "py-1", children: /* @__PURE__ */ h.jsx(zr, { children: ({ focus: S }) => /* @__PURE__ */ h.jsx(
|
|
13489
|
+
Ve,
|
|
13489
13490
|
{
|
|
13490
13491
|
variant: "ghost",
|
|
13491
13492
|
colorScheme: "neutral",
|
|
13492
13493
|
size: "sm",
|
|
13493
|
-
onClick:
|
|
13494
|
+
onClick: s,
|
|
13494
13495
|
className: _(
|
|
13495
13496
|
"w-full justify-start rounded-none px-4",
|
|
13496
|
-
|
|
13497
|
+
S && "bg-gray-50 dark:bg-gray-700"
|
|
13497
13498
|
),
|
|
13498
13499
|
startIcon: /* @__PURE__ */ h.jsx(
|
|
13499
13500
|
Ee,
|
|
@@ -13508,18 +13509,18 @@ const Ow = ce(
|
|
|
13508
13509
|
] })
|
|
13509
13510
|
}
|
|
13510
13511
|
)
|
|
13511
|
-
] }) : /* @__PURE__ */ h.jsx(
|
|
13512
|
+
] }) : /* @__PURE__ */ h.jsx(Ve, { size: "sm", variant: "solid", colorScheme: "primary", onClick: i, children: "Log In" }))
|
|
13512
13513
|
] }),
|
|
13513
13514
|
/* @__PURE__ */ h.jsx("div", { className: "flex md:hidden", children: /* @__PURE__ */ h.jsxs(
|
|
13514
13515
|
Zn,
|
|
13515
13516
|
{
|
|
13516
13517
|
className: _(
|
|
13517
13518
|
"inline-flex items-center justify-center rounded-md p-2 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-primary-500",
|
|
13518
|
-
|
|
13519
|
+
N.hamburger
|
|
13519
13520
|
),
|
|
13520
13521
|
children: [
|
|
13521
13522
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open main menu" }),
|
|
13522
|
-
|
|
13523
|
+
F ? /* @__PURE__ */ h.jsx(
|
|
13523
13524
|
Ee,
|
|
13524
13525
|
{
|
|
13525
13526
|
icon: aa,
|
|
@@ -13535,7 +13536,7 @@ const Ow = ce(
|
|
|
13535
13536
|
"aria-hidden": "true"
|
|
13536
13537
|
}
|
|
13537
13538
|
),
|
|
13538
|
-
|
|
13539
|
+
y && /* @__PURE__ */ h.jsx("span", { className: "absolute top-0 right-0 block h-2.5 w-2.5 rounded-full bg-error-500 ring-2 ring-transparent transform translate-x-1/4 -translate-y-1/4" })
|
|
13539
13540
|
] })
|
|
13540
13541
|
]
|
|
13541
13542
|
}
|
|
@@ -13568,7 +13569,7 @@ const Ow = ce(
|
|
|
13568
13569
|
className: "h-8 w-8 rounded-md"
|
|
13569
13570
|
}
|
|
13570
13571
|
),
|
|
13571
|
-
|
|
13572
|
+
f ?? /* @__PURE__ */ h.jsx("span", { className: "font-bold text-gray-900 dark:text-white", children: t })
|
|
13572
13573
|
] }),
|
|
13573
13574
|
/* @__PURE__ */ h.jsx("div", { className: "-mr-2", children: /* @__PURE__ */ h.jsxs(Zn, { className: "inline-flex items-center justify-center rounded-md p-2 text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 hover:text-gray-500 dark:hover:text-white focus:outline-none", children: [
|
|
13574
13575
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Close menu" }),
|
|
@@ -13583,79 +13584,90 @@ const Ow = ce(
|
|
|
13583
13584
|
] }) })
|
|
13584
13585
|
] }),
|
|
13585
13586
|
/* @__PURE__ */ h.jsx("div", { className: "mt-6", children: /* @__PURE__ */ h.jsxs("nav", { className: "grid gap-y-4", children: [
|
|
13586
|
-
r.map((
|
|
13587
|
-
const
|
|
13587
|
+
r.map((S) => {
|
|
13588
|
+
const I = n === S.path;
|
|
13588
13589
|
return /* @__PURE__ */ h.jsx(
|
|
13589
13590
|
Zt,
|
|
13590
13591
|
{
|
|
13591
13592
|
as: a,
|
|
13592
|
-
href:
|
|
13593
|
-
to:
|
|
13594
|
-
onClick: () =>
|
|
13593
|
+
href: S.path,
|
|
13594
|
+
to: S.path,
|
|
13595
|
+
onClick: () => z(),
|
|
13595
13596
|
variant: "neutral",
|
|
13596
13597
|
underline: "none",
|
|
13597
13598
|
className: _(
|
|
13598
13599
|
"-m-3 flex items-center rounded-md p-3 transition-colors",
|
|
13599
13600
|
"hover:bg-gray-50 dark:hover:bg-gray-700",
|
|
13600
|
-
|
|
13601
|
+
I ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
|
|
13601
13602
|
),
|
|
13602
13603
|
children: /* @__PURE__ */ h.jsx(
|
|
13603
13604
|
"span",
|
|
13604
13605
|
{
|
|
13605
13606
|
className: _(
|
|
13606
13607
|
"ml-3 text-base font-medium",
|
|
13607
|
-
|
|
13608
|
+
I ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
|
|
13608
13609
|
),
|
|
13609
|
-
children:
|
|
13610
|
+
children: S.label
|
|
13610
13611
|
}
|
|
13611
13612
|
)
|
|
13612
13613
|
},
|
|
13613
|
-
|
|
13614
|
+
S.path
|
|
13614
13615
|
);
|
|
13615
13616
|
}),
|
|
13616
|
-
o &&
|
|
13617
|
+
o && g.length > 0 && /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
13617
13618
|
/* @__PURE__ */ h.jsx("hr", { className: "border-gray-100 dark:border-gray-700" }),
|
|
13618
|
-
|
|
13619
|
-
const
|
|
13619
|
+
g.map((S) => {
|
|
13620
|
+
const I = n === S.path;
|
|
13620
13621
|
return /* @__PURE__ */ h.jsx(
|
|
13621
13622
|
Zt,
|
|
13622
13623
|
{
|
|
13623
13624
|
as: a,
|
|
13624
|
-
href:
|
|
13625
|
-
to:
|
|
13626
|
-
onClick: () =>
|
|
13625
|
+
href: S.path,
|
|
13626
|
+
to: S.path,
|
|
13627
|
+
onClick: () => z(),
|
|
13627
13628
|
variant: "neutral",
|
|
13628
13629
|
underline: "none",
|
|
13629
13630
|
className: _(
|
|
13630
13631
|
"-m-3 flex items-center rounded-md p-3 transition-colors",
|
|
13631
13632
|
"hover:bg-gray-50 dark:hover:bg-gray-700",
|
|
13632
|
-
|
|
13633
|
+
I ? "bg-gray-50 dark:bg-gray-700" : "text-gray-900 dark:text-gray-100"
|
|
13633
13634
|
),
|
|
13634
13635
|
children: /* @__PURE__ */ h.jsx(
|
|
13635
13636
|
"span",
|
|
13636
13637
|
{
|
|
13637
13638
|
className: _(
|
|
13638
13639
|
"ml-3 text-base font-medium",
|
|
13639
|
-
|
|
13640
|
+
I ? "text-primary-600 dark:text-primary-400 font-bold" : "text-gray-900 dark:text-gray-100"
|
|
13640
13641
|
),
|
|
13641
|
-
children:
|
|
13642
|
+
children: S.label
|
|
13642
13643
|
}
|
|
13643
13644
|
)
|
|
13644
13645
|
},
|
|
13645
|
-
|
|
13646
|
+
S.path
|
|
13646
13647
|
);
|
|
13647
13648
|
})
|
|
13648
13649
|
] })
|
|
13649
13650
|
] }) })
|
|
13650
13651
|
] }),
|
|
13651
|
-
(o ||
|
|
13652
|
-
|
|
13653
|
-
|
|
13652
|
+
(o || c || i) && /* @__PURE__ */ h.jsx("div", { className: "py-6 px-5 space-y-4", children: c || (!o && i ? /* @__PURE__ */ h.jsx(
|
|
13653
|
+
Ve,
|
|
13654
|
+
{
|
|
13655
|
+
variant: "solid",
|
|
13656
|
+
colorScheme: "primary",
|
|
13657
|
+
className: "w-full justify-center",
|
|
13658
|
+
onClick: () => {
|
|
13659
|
+
i(), z();
|
|
13660
|
+
},
|
|
13661
|
+
children: "Log In"
|
|
13662
|
+
}
|
|
13663
|
+
) : /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
13664
|
+
y && l && /* @__PURE__ */ h.jsx(
|
|
13665
|
+
Ve,
|
|
13654
13666
|
{
|
|
13655
13667
|
variant: "ghost",
|
|
13656
13668
|
colorScheme: "neutral",
|
|
13657
13669
|
onClick: () => {
|
|
13658
|
-
|
|
13670
|
+
l?.(), z();
|
|
13659
13671
|
},
|
|
13660
13672
|
className: "w-full justify-between px-4 text-base font-medium hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
|
|
13661
13673
|
endIcon: /* @__PURE__ */ h.jsx(
|
|
@@ -13664,23 +13676,23 @@ const Ow = ce(
|
|
|
13664
13676
|
fill: "solid",
|
|
13665
13677
|
size: "xs",
|
|
13666
13678
|
statusBadge: !0,
|
|
13667
|
-
variant:
|
|
13679
|
+
variant: b,
|
|
13668
13680
|
children: o?.notificationCount
|
|
13669
13681
|
}
|
|
13670
13682
|
),
|
|
13671
13683
|
children: "Pending Invitations"
|
|
13672
13684
|
}
|
|
13673
13685
|
),
|
|
13674
|
-
|
|
13686
|
+
u && /* @__PURE__ */ h.jsxs(
|
|
13675
13687
|
"div",
|
|
13676
13688
|
{
|
|
13677
|
-
onClick: (
|
|
13678
|
-
|
|
13689
|
+
onClick: (S) => {
|
|
13690
|
+
S.preventDefault(), u();
|
|
13679
13691
|
},
|
|
13680
13692
|
role: "button",
|
|
13681
13693
|
tabIndex: 0,
|
|
13682
|
-
onKeyDown: (
|
|
13683
|
-
(
|
|
13694
|
+
onKeyDown: (S) => {
|
|
13695
|
+
(S.key === "Enter" || S.key === " ") && (S.preventDefault(), u());
|
|
13684
13696
|
},
|
|
13685
13697
|
className: "flex w-full items-center justify-between rounded-md px-4 py-2 text-base transition-colors cursor-pointer hover:bg-gray-50 dark:hover:bg-gray-700 text-gray-900 dark:text-gray-100",
|
|
13686
13698
|
children: [
|
|
@@ -13691,7 +13703,7 @@ const Ow = ce(
|
|
|
13691
13703
|
icon: Rl,
|
|
13692
13704
|
className: _(
|
|
13693
13705
|
"w-5 transition-colors",
|
|
13694
|
-
|
|
13706
|
+
w ? "text-amber-500" : "text-gray-400"
|
|
13695
13707
|
)
|
|
13696
13708
|
}
|
|
13697
13709
|
),
|
|
@@ -13700,7 +13712,7 @@ const Ow = ce(
|
|
|
13700
13712
|
/* @__PURE__ */ h.jsx(
|
|
13701
13713
|
Fl,
|
|
13702
13714
|
{
|
|
13703
|
-
checked:
|
|
13715
|
+
checked: w,
|
|
13704
13716
|
onChange: () => {
|
|
13705
13717
|
},
|
|
13706
13718
|
size: "sm",
|
|
@@ -13711,19 +13723,19 @@ const Ow = ce(
|
|
|
13711
13723
|
]
|
|
13712
13724
|
}
|
|
13713
13725
|
),
|
|
13714
|
-
|
|
13715
|
-
|
|
13726
|
+
s && /* @__PURE__ */ h.jsx(
|
|
13727
|
+
Ve,
|
|
13716
13728
|
{
|
|
13717
13729
|
variant: "outline",
|
|
13718
13730
|
colorScheme: "error",
|
|
13719
13731
|
className: "w-full justify-center",
|
|
13720
13732
|
onClick: () => {
|
|
13721
|
-
|
|
13733
|
+
s?.(), z();
|
|
13722
13734
|
},
|
|
13723
13735
|
children: "Log Out"
|
|
13724
13736
|
}
|
|
13725
13737
|
)
|
|
13726
|
-
] }) })
|
|
13738
|
+
] })) })
|
|
13727
13739
|
] })
|
|
13728
13740
|
}
|
|
13729
13741
|
)
|
|
@@ -13839,11 +13851,11 @@ const Ow = ce(
|
|
|
13839
13851
|
},
|
|
13840
13852
|
defaultVariants: { variant: "default", size: "md" }
|
|
13841
13853
|
}
|
|
13842
|
-
), Or =
|
|
13854
|
+
), Or = j.createContext({
|
|
13843
13855
|
variant: "default",
|
|
13844
13856
|
size: "md",
|
|
13845
13857
|
hoverable: !1
|
|
13846
|
-
}), Xd =
|
|
13858
|
+
}), Xd = j.forwardRef(
|
|
13847
13859
|
({
|
|
13848
13860
|
className: e,
|
|
13849
13861
|
variant: t = "default",
|
|
@@ -13860,8 +13872,8 @@ const Ow = ce(
|
|
|
13860
13872
|
) }) })
|
|
13861
13873
|
);
|
|
13862
13874
|
Xd.displayName = "Table";
|
|
13863
|
-
const Jd =
|
|
13864
|
-
const { variant: n } =
|
|
13875
|
+
const Jd = j.forwardRef(({ className: e, ...t }, r) => {
|
|
13876
|
+
const { variant: n } = j.useContext(Or);
|
|
13865
13877
|
return /* @__PURE__ */ h.jsx(
|
|
13866
13878
|
"thead",
|
|
13867
13879
|
{
|
|
@@ -13872,7 +13884,7 @@ const Jd = L.forwardRef(({ className: e, ...t }, r) => {
|
|
|
13872
13884
|
);
|
|
13873
13885
|
});
|
|
13874
13886
|
Jd.displayName = "TableHeader";
|
|
13875
|
-
const Qd =
|
|
13887
|
+
const Qd = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
|
|
13876
13888
|
"tbody",
|
|
13877
13889
|
{
|
|
13878
13890
|
ref: r,
|
|
@@ -13881,8 +13893,8 @@ const Qd = L.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
|
|
|
13881
13893
|
}
|
|
13882
13894
|
));
|
|
13883
13895
|
Qd.displayName = "TableBody";
|
|
13884
|
-
const Dw =
|
|
13885
|
-
const { variant: n } =
|
|
13896
|
+
const Dw = j.forwardRef(({ className: e, ...t }, r) => {
|
|
13897
|
+
const { variant: n } = j.useContext(Or);
|
|
13886
13898
|
return /* @__PURE__ */ h.jsx(
|
|
13887
13899
|
"tfoot",
|
|
13888
13900
|
{
|
|
@@ -13897,8 +13909,8 @@ const Dw = L.forwardRef(({ className: e, ...t }, r) => {
|
|
|
13897
13909
|
);
|
|
13898
13910
|
});
|
|
13899
13911
|
Dw.displayName = "TableFooter";
|
|
13900
|
-
const Gn =
|
|
13901
|
-
const { variant: n, hoverable: a } =
|
|
13912
|
+
const Gn = j.forwardRef(({ className: e, ...t }, r) => {
|
|
13913
|
+
const { variant: n, hoverable: a } = j.useContext(Or);
|
|
13902
13914
|
return /* @__PURE__ */ h.jsx(
|
|
13903
13915
|
"tr",
|
|
13904
13916
|
{
|
|
@@ -13909,8 +13921,8 @@ const Gn = L.forwardRef(({ className: e, ...t }, r) => {
|
|
|
13909
13921
|
);
|
|
13910
13922
|
});
|
|
13911
13923
|
Gn.displayName = "TableRow";
|
|
13912
|
-
const Zd =
|
|
13913
|
-
const { variant: n, size: a } =
|
|
13924
|
+
const Zd = j.forwardRef(({ className: e, ...t }, r) => {
|
|
13925
|
+
const { variant: n, size: a } = j.useContext(Or);
|
|
13914
13926
|
return /* @__PURE__ */ h.jsx(
|
|
13915
13927
|
"th",
|
|
13916
13928
|
{
|
|
@@ -13921,8 +13933,8 @@ const Zd = L.forwardRef(({ className: e, ...t }, r) => {
|
|
|
13921
13933
|
);
|
|
13922
13934
|
});
|
|
13923
13935
|
Zd.displayName = "TableHead";
|
|
13924
|
-
const Ho =
|
|
13925
|
-
const { variant: n, size: a } =
|
|
13936
|
+
const Ho = j.forwardRef(({ className: e, ...t }, r) => {
|
|
13937
|
+
const { variant: n, size: a } = j.useContext(Or);
|
|
13926
13938
|
return /* @__PURE__ */ h.jsx(
|
|
13927
13939
|
"td",
|
|
13928
13940
|
{
|
|
@@ -13933,7 +13945,7 @@ const Ho = L.forwardRef(({ className: e, ...t }, r) => {
|
|
|
13933
13945
|
);
|
|
13934
13946
|
});
|
|
13935
13947
|
Ho.displayName = "TableCell";
|
|
13936
|
-
const Vw =
|
|
13948
|
+
const Vw = j.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ h.jsx(
|
|
13937
13949
|
"caption",
|
|
13938
13950
|
{
|
|
13939
13951
|
ref: r,
|
|
@@ -13945,7 +13957,7 @@ Vw.displayName = "TableCaption";
|
|
|
13945
13957
|
function Ot(e, t) {
|
|
13946
13958
|
return typeof e == "function" ? e(t) : e;
|
|
13947
13959
|
}
|
|
13948
|
-
function
|
|
13960
|
+
function Be(e, t) {
|
|
13949
13961
|
return (r) => {
|
|
13950
13962
|
t.setState((n) => ({
|
|
13951
13963
|
...n,
|
|
@@ -14144,14 +14156,14 @@ function Tn(e, t, r, n) {
|
|
|
14144
14156
|
}, p = [];
|
|
14145
14157
|
g.forEach((v) => {
|
|
14146
14158
|
const b = [...p].reverse()[0], x = v.column.depth === m.depth;
|
|
14147
|
-
let y,
|
|
14148
|
-
if (x && v.column.parent ? y = v.column.parent : (y = v.column,
|
|
14159
|
+
let y, E = !1;
|
|
14160
|
+
if (x && v.column.parent ? y = v.column.parent : (y = v.column, E = !0), b && b?.column === y)
|
|
14149
14161
|
b.subHeaders.push(v);
|
|
14150
14162
|
else {
|
|
14151
14163
|
const w = Ll(r, y, {
|
|
14152
14164
|
id: [n, d, y.id, v?.id].filter(Boolean).join("_"),
|
|
14153
|
-
isPlaceholder:
|
|
14154
|
-
placeholderId:
|
|
14165
|
+
isPlaceholder: E,
|
|
14166
|
+
placeholderId: E ? `${p.filter((P) => P.column === y).length}` : void 0,
|
|
14155
14167
|
depth: d,
|
|
14156
14168
|
index: p.length
|
|
14157
14169
|
});
|
|
@@ -14168,10 +14180,10 @@ function Tn(e, t, r, n) {
|
|
|
14168
14180
|
let p = 0, v = 0, b = [0];
|
|
14169
14181
|
m.subHeaders && m.subHeaders.length ? (b = [], f(m.subHeaders).forEach((y) => {
|
|
14170
14182
|
let {
|
|
14171
|
-
colSpan:
|
|
14183
|
+
colSpan: E,
|
|
14172
14184
|
rowSpan: w
|
|
14173
14185
|
} = y;
|
|
14174
|
-
p +=
|
|
14186
|
+
p += E, b.push(w);
|
|
14175
14187
|
})) : p = 1;
|
|
14176
14188
|
const x = Math.min(...b);
|
|
14177
14189
|
return v = v + x, m.colSpan = p, m.rowSpan = v, {
|
|
@@ -14307,7 +14319,7 @@ const Kw = {
|
|
|
14307
14319
|
...e
|
|
14308
14320
|
}),
|
|
14309
14321
|
getDefaultOptions: (e) => ({
|
|
14310
|
-
onColumnFiltersChange:
|
|
14322
|
+
onColumnFiltersChange: Be("columnFilters", e),
|
|
14311
14323
|
filterFromLeafRows: !1,
|
|
14312
14324
|
maxLeafRowFilterDepth: 100
|
|
14313
14325
|
}),
|
|
@@ -14436,7 +14448,7 @@ const qw = (e, t, r) => r.reduce((n, a) => {
|
|
|
14436
14448
|
...e
|
|
14437
14449
|
}),
|
|
14438
14450
|
getDefaultOptions: (e) => ({
|
|
14439
|
-
onGroupingChange:
|
|
14451
|
+
onGroupingChange: Be("grouping", e),
|
|
14440
14452
|
groupedColumnMode: "reorder"
|
|
14441
14453
|
}),
|
|
14442
14454
|
createColumn: (e, t) => {
|
|
@@ -14502,7 +14514,7 @@ const ik = {
|
|
|
14502
14514
|
...e
|
|
14503
14515
|
}),
|
|
14504
14516
|
getDefaultOptions: (e) => ({
|
|
14505
|
-
onColumnOrderChange:
|
|
14517
|
+
onColumnOrderChange: Be("columnOrder", e)
|
|
14506
14518
|
}),
|
|
14507
14519
|
createColumn: (e, t) => {
|
|
14508
14520
|
e.getIndex = Z((r) => [Jr(t, r)], (r) => r.findIndex((n) => n.id === e.id), ee(t.options, "debugColumns", "getIndex")), e.getIsFirstColumn = (r) => {
|
|
@@ -14542,7 +14554,7 @@ const ik = {
|
|
|
14542
14554
|
...e
|
|
14543
14555
|
}),
|
|
14544
14556
|
getDefaultOptions: (e) => ({
|
|
14545
|
-
onColumnPinningChange:
|
|
14557
|
+
onColumnPinningChange: Be("columnPinning", e)
|
|
14546
14558
|
}),
|
|
14547
14559
|
createColumn: (e, t) => {
|
|
14548
14560
|
e.pin = (r) => {
|
|
@@ -14637,8 +14649,8 @@ const Mn = {
|
|
|
14637
14649
|
getDefaultOptions: (e) => ({
|
|
14638
14650
|
columnResizeMode: "onEnd",
|
|
14639
14651
|
columnResizeDirection: "ltr",
|
|
14640
|
-
onColumnSizingChange:
|
|
14641
|
-
onColumnSizingInfoChange:
|
|
14652
|
+
onColumnSizingChange: Be("columnSizing", e),
|
|
14653
|
+
onColumnSizingInfoChange: Be("columnSizingInfo", e)
|
|
14642
14654
|
}),
|
|
14643
14655
|
createColumn: (e, t) => {
|
|
14644
14656
|
e.getSize = () => {
|
|
@@ -14683,14 +14695,14 @@ const Mn = {
|
|
|
14683
14695
|
return;
|
|
14684
14696
|
const i = e.getSize(), s = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[n.id, n.getSize()]], l = io(o) ? Math.round(o.touches[0].clientX) : o.clientX, u = {}, c = (b, x) => {
|
|
14685
14697
|
typeof x == "number" && (t.setColumnSizingInfo((y) => {
|
|
14686
|
-
var
|
|
14687
|
-
const P = t.options.columnResizeDirection === "rtl" ? -1 : 1,
|
|
14688
|
-
return y.columnSizingStart.forEach((
|
|
14689
|
-
let [
|
|
14690
|
-
u[
|
|
14698
|
+
var E, w;
|
|
14699
|
+
const P = t.options.columnResizeDirection === "rtl" ? -1 : 1, N = (x - ((E = y?.startOffset) != null ? E : 0)) * P, F = Math.max(N / ((w = y?.startSize) != null ? w : 0), -0.999999);
|
|
14700
|
+
return y.columnSizingStart.forEach((z) => {
|
|
14701
|
+
let [S, I] = z;
|
|
14702
|
+
u[S] = Math.round(Math.max(I + I * F, 0) * 100) / 100;
|
|
14691
14703
|
}), {
|
|
14692
14704
|
...y,
|
|
14693
|
-
deltaOffset:
|
|
14705
|
+
deltaOffset: N,
|
|
14694
14706
|
deltaPercentage: F
|
|
14695
14707
|
};
|
|
14696
14708
|
}), (t.options.columnResizeMode === "onChange" || b === "end") && t.setColumnSizing((y) => ({
|
|
@@ -14781,7 +14793,7 @@ const dk = {
|
|
|
14781
14793
|
...e
|
|
14782
14794
|
}),
|
|
14783
14795
|
getDefaultOptions: (e) => ({
|
|
14784
|
-
onColumnVisibilityChange:
|
|
14796
|
+
onColumnVisibilityChange: Be("columnVisibility", e)
|
|
14785
14797
|
}),
|
|
14786
14798
|
createColumn: (e, t) => {
|
|
14787
14799
|
e.toggleVisibility = (r) => {
|
|
@@ -14836,7 +14848,7 @@ const fk = {
|
|
|
14836
14848
|
...e
|
|
14837
14849
|
}),
|
|
14838
14850
|
getDefaultOptions: (e) => ({
|
|
14839
|
-
onGlobalFilterChange:
|
|
14851
|
+
onGlobalFilterChange: Be("globalFilter", e),
|
|
14840
14852
|
globalFilterFn: "auto",
|
|
14841
14853
|
getColumnCanGlobalFilter: (t) => {
|
|
14842
14854
|
var r;
|
|
@@ -14869,7 +14881,7 @@ const fk = {
|
|
|
14869
14881
|
...e
|
|
14870
14882
|
}),
|
|
14871
14883
|
getDefaultOptions: (e) => ({
|
|
14872
|
-
onExpandedChange:
|
|
14884
|
+
onExpandedChange: Be("expanded", e),
|
|
14873
14885
|
paginateExpandedRows: !0
|
|
14874
14886
|
}),
|
|
14875
14887
|
createTable: (e) => {
|
|
@@ -14962,7 +14974,7 @@ const fk = {
|
|
|
14962
14974
|
}
|
|
14963
14975
|
}),
|
|
14964
14976
|
getDefaultOptions: (e) => ({
|
|
14965
|
-
onPaginationChange:
|
|
14977
|
+
onPaginationChange: Be("pagination", e)
|
|
14966
14978
|
}),
|
|
14967
14979
|
createTable: (e) => {
|
|
14968
14980
|
let t = !1, r = !1;
|
|
@@ -15042,7 +15054,7 @@ const fk = {
|
|
|
15042
15054
|
...e
|
|
15043
15055
|
}),
|
|
15044
15056
|
getDefaultOptions: (e) => ({
|
|
15045
|
-
onRowPinningChange:
|
|
15057
|
+
onRowPinningChange: Be("rowPinning", e)
|
|
15046
15058
|
}),
|
|
15047
15059
|
createRow: (e, t) => {
|
|
15048
15060
|
e.pin = (r, n, a) => {
|
|
@@ -15143,7 +15155,7 @@ const fk = {
|
|
|
15143
15155
|
...e
|
|
15144
15156
|
}),
|
|
15145
15157
|
getDefaultOptions: (e) => ({
|
|
15146
|
-
onRowSelectionChange:
|
|
15158
|
+
onRowSelectionChange: Be("rowSelection", e),
|
|
15147
15159
|
enableRowSelection: !0,
|
|
15148
15160
|
enableMultiRowSelection: !0,
|
|
15149
15161
|
enableSubRowSelection: !0
|
|
@@ -15340,7 +15352,7 @@ const Lr = {
|
|
|
15340
15352
|
sortUndefined: 1
|
|
15341
15353
|
}),
|
|
15342
15354
|
getDefaultOptions: (e) => ({
|
|
15343
|
-
onSortingChange:
|
|
15355
|
+
onSortingChange: Be("sorting", e),
|
|
15344
15356
|
isMultiSortEvent: (t) => t.shiftKey
|
|
15345
15357
|
}),
|
|
15346
15358
|
createColumn: (e, t) => {
|
|
@@ -15635,7 +15647,7 @@ function Ik() {
|
|
|
15635
15647
|
const m = o[d], p = i[m.id], v = p.sortUndefined, b = (g = m?.desc) != null ? g : !1;
|
|
15636
15648
|
let x = 0;
|
|
15637
15649
|
if (v) {
|
|
15638
|
-
const y = c.getValue(m.id),
|
|
15650
|
+
const y = c.getValue(m.id), E = f.getValue(m.id), w = y === void 0, P = E === void 0;
|
|
15639
15651
|
if (w || P) {
|
|
15640
15652
|
if (v === "first") return w ? -1 : 1;
|
|
15641
15653
|
if (v === "last") return w ? 1 : -1;
|
|
@@ -15659,7 +15671,7 @@ function Ik() {
|
|
|
15659
15671
|
}, ee(e.options, "debugTable", "getSortedRowModel", () => e._autoResetPageIndex()));
|
|
15660
15672
|
}
|
|
15661
15673
|
function Vl(e, t) {
|
|
15662
|
-
return e ? Nk(e) ? /* @__PURE__ */
|
|
15674
|
+
return e ? Nk(e) ? /* @__PURE__ */ j.createElement(e, t) : e : null;
|
|
15663
15675
|
}
|
|
15664
15676
|
function Nk(e) {
|
|
15665
15677
|
return Ak(e) || typeof e == "function" || Ok(e);
|
|
@@ -15682,9 +15694,9 @@ function _k(e) {
|
|
|
15682
15694
|
// noop
|
|
15683
15695
|
renderFallbackValue: null,
|
|
15684
15696
|
...e
|
|
15685
|
-
}, [r] =
|
|
15697
|
+
}, [r] = j.useState(() => ({
|
|
15686
15698
|
current: $k(t)
|
|
15687
|
-
})), [n, a] =
|
|
15699
|
+
})), [n, a] = j.useState(() => r.current.initialState);
|
|
15688
15700
|
return r.current.setOptions((o) => ({
|
|
15689
15701
|
...o,
|
|
15690
15702
|
...e,
|
|
@@ -15788,7 +15800,7 @@ function Kk({
|
|
|
15788
15800
|
] }),
|
|
15789
15801
|
/* @__PURE__ */ h.jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
15790
15802
|
/* @__PURE__ */ h.jsx(
|
|
15791
|
-
|
|
15803
|
+
Ve,
|
|
15792
15804
|
{
|
|
15793
15805
|
variant: "outline",
|
|
15794
15806
|
colorScheme: "neutral",
|
|
@@ -15800,7 +15812,7 @@ function Kk({
|
|
|
15800
15812
|
}
|
|
15801
15813
|
),
|
|
15802
15814
|
/* @__PURE__ */ h.jsx(
|
|
15803
|
-
|
|
15815
|
+
Ve,
|
|
15804
15816
|
{
|
|
15805
15817
|
variant: "outline",
|
|
15806
15818
|
colorScheme: "neutral",
|
|
@@ -15812,7 +15824,7 @@ function Kk({
|
|
|
15812
15824
|
}
|
|
15813
15825
|
),
|
|
15814
15826
|
/* @__PURE__ */ h.jsx(
|
|
15815
|
-
|
|
15827
|
+
Ve,
|
|
15816
15828
|
{
|
|
15817
15829
|
variant: "outline",
|
|
15818
15830
|
colorScheme: "neutral",
|
|
@@ -15824,7 +15836,7 @@ function Kk({
|
|
|
15824
15836
|
}
|
|
15825
15837
|
),
|
|
15826
15838
|
/* @__PURE__ */ h.jsx(
|
|
15827
|
-
|
|
15839
|
+
Ve,
|
|
15828
15840
|
{
|
|
15829
15841
|
variant: "outline",
|
|
15830
15842
|
colorScheme: "neutral",
|
|
@@ -15847,7 +15859,7 @@ export {
|
|
|
15847
15859
|
Dc as Avatar,
|
|
15848
15860
|
$o as Badge,
|
|
15849
15861
|
Hk as Breadcrumbs,
|
|
15850
|
-
|
|
15862
|
+
Ve as Button,
|
|
15851
15863
|
Gk as CallToAction,
|
|
15852
15864
|
Gv as Card,
|
|
15853
15865
|
D1 as Checkbox,
|