@blakesteve/roster 1.1.6 → 1.1.7
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/atoms/Card/card-variants.d.ts +1 -1
- package/dist/components/organisms/Dialog/Dialog.d.ts +1 -1
- package/dist/components/organisms/Navbar/navbar-variants.d.ts +1 -1
- package/dist/roster.css +1 -1
- package/dist/roster.es.js +500 -490
- package/dist/roster.umd.js +9 -9
- package/package.json +1 -1
package/dist/roster.es.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as V from "react";
|
|
2
|
-
import $, { useRef as Y, useCallback as se, useEffect as me, useState as ae, useMemo as be, useLayoutEffect as Ua, useContext as de, createContext as
|
|
2
|
+
import $, { useRef as Y, useCallback as se, useEffect as me, useState as ae, useMemo as be, useLayoutEffect as Ua, useContext as de, createContext as Ee, forwardRef as _l, isValidElement as Ya, cloneElement as Tl, createElement as sf, Fragment as Ie, useId as Se, useSyncExternalStore as lf, useReducer as uf, createRef as cf } from "react";
|
|
3
3
|
import * as Br from "react-dom";
|
|
4
4
|
import { flushSync as en, createPortal as Ml } from "react-dom";
|
|
5
5
|
var Sr = { exports: {} }, Pn = {};
|
|
@@ -29,12 +29,12 @@ var Fn = {};
|
|
|
29
29
|
var Gi;
|
|
30
30
|
function ff() {
|
|
31
31
|
return Gi || (Gi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
32
|
-
function e(
|
|
33
|
-
if (
|
|
34
|
-
if (typeof
|
|
35
|
-
return
|
|
36
|
-
if (typeof
|
|
37
|
-
switch (
|
|
32
|
+
function e(E) {
|
|
33
|
+
if (E == null) return null;
|
|
34
|
+
if (typeof E == "function")
|
|
35
|
+
return E.$$typeof === O ? null : E.displayName || E.name || null;
|
|
36
|
+
if (typeof E == "string") return E;
|
|
37
|
+
switch (E) {
|
|
38
38
|
case v:
|
|
39
39
|
return "Fragment";
|
|
40
40
|
case x:
|
|
@@ -48,127 +48,127 @@ function ff() {
|
|
|
48
48
|
case P:
|
|
49
49
|
return "Activity";
|
|
50
50
|
}
|
|
51
|
-
if (typeof
|
|
52
|
-
switch (typeof
|
|
51
|
+
if (typeof E == "object")
|
|
52
|
+
switch (typeof E.tag == "number" && console.error(
|
|
53
53
|
"Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
|
|
54
|
-
),
|
|
54
|
+
), E.$$typeof) {
|
|
55
55
|
case p:
|
|
56
56
|
return "Portal";
|
|
57
|
-
case
|
|
58
|
-
return
|
|
57
|
+
case k:
|
|
58
|
+
return E.displayName || "Context";
|
|
59
59
|
case y:
|
|
60
|
-
return (
|
|
60
|
+
return (E._context.displayName || "Context") + ".Consumer";
|
|
61
61
|
case w:
|
|
62
|
-
var L =
|
|
63
|
-
return
|
|
62
|
+
var L = E.render;
|
|
63
|
+
return E = E.displayName, E || (E = L.displayName || L.name || "", E = E !== "" ? "ForwardRef(" + E + ")" : "ForwardRef"), E;
|
|
64
64
|
case F:
|
|
65
|
-
return L =
|
|
65
|
+
return L = E.displayName || null, L !== null ? L : e(E.type) || "Memo";
|
|
66
66
|
case W:
|
|
67
|
-
L =
|
|
67
|
+
L = E._payload, E = E._init;
|
|
68
68
|
try {
|
|
69
|
-
return e(
|
|
69
|
+
return e(E(L));
|
|
70
70
|
} catch {
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
73
|
return null;
|
|
74
74
|
}
|
|
75
|
-
function t(
|
|
76
|
-
return "" +
|
|
75
|
+
function t(E) {
|
|
76
|
+
return "" + E;
|
|
77
77
|
}
|
|
78
|
-
function n(
|
|
78
|
+
function n(E) {
|
|
79
79
|
try {
|
|
80
|
-
t(
|
|
80
|
+
t(E);
|
|
81
81
|
var L = !1;
|
|
82
82
|
} catch {
|
|
83
83
|
L = !0;
|
|
84
84
|
}
|
|
85
85
|
if (L) {
|
|
86
86
|
L = console;
|
|
87
|
-
var R = L.error, N = typeof Symbol == "function" && Symbol.toStringTag &&
|
|
87
|
+
var R = L.error, N = typeof Symbol == "function" && Symbol.toStringTag && E[Symbol.toStringTag] || E.constructor.name || "Object";
|
|
88
88
|
return R.call(
|
|
89
89
|
L,
|
|
90
90
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
91
91
|
N
|
|
92
|
-
), t(
|
|
92
|
+
), t(E);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
function r(
|
|
96
|
-
if (
|
|
97
|
-
if (typeof
|
|
95
|
+
function r(E) {
|
|
96
|
+
if (E === v) return "<>";
|
|
97
|
+
if (typeof E == "object" && E !== null && E.$$typeof === W)
|
|
98
98
|
return "<...>";
|
|
99
99
|
try {
|
|
100
|
-
var L = e(
|
|
100
|
+
var L = e(E);
|
|
101
101
|
return L ? "<" + L + ">" : "<...>";
|
|
102
102
|
} catch {
|
|
103
103
|
return "<...>";
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
function o() {
|
|
107
|
-
var
|
|
108
|
-
return
|
|
107
|
+
var E = K.A;
|
|
108
|
+
return E === null ? null : E.getOwner();
|
|
109
109
|
}
|
|
110
110
|
function a() {
|
|
111
111
|
return Error("react-stack-top-frame");
|
|
112
112
|
}
|
|
113
|
-
function i(
|
|
114
|
-
if (X.call(
|
|
115
|
-
var L = Object.getOwnPropertyDescriptor(
|
|
113
|
+
function i(E) {
|
|
114
|
+
if (X.call(E, "key")) {
|
|
115
|
+
var L = Object.getOwnPropertyDescriptor(E, "key").get;
|
|
116
116
|
if (L && L.isReactWarning) return !1;
|
|
117
117
|
}
|
|
118
|
-
return
|
|
118
|
+
return E.key !== void 0;
|
|
119
119
|
}
|
|
120
|
-
function s(
|
|
120
|
+
function s(E, L) {
|
|
121
121
|
function R() {
|
|
122
122
|
G || (G = !0, console.error(
|
|
123
123
|
"%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)",
|
|
124
124
|
L
|
|
125
125
|
));
|
|
126
126
|
}
|
|
127
|
-
R.isReactWarning = !0, Object.defineProperty(
|
|
127
|
+
R.isReactWarning = !0, Object.defineProperty(E, "key", {
|
|
128
128
|
get: R,
|
|
129
129
|
configurable: !0
|
|
130
130
|
});
|
|
131
131
|
}
|
|
132
132
|
function l() {
|
|
133
|
-
var
|
|
134
|
-
return ee[
|
|
133
|
+
var E = e(this.type);
|
|
134
|
+
return ee[E] || (ee[E] = !0, console.error(
|
|
135
135
|
"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."
|
|
136
|
-
)),
|
|
136
|
+
)), E = this.props.ref, E !== void 0 ? E : null;
|
|
137
137
|
}
|
|
138
|
-
function u(
|
|
138
|
+
function u(E, L, R, N, J, B) {
|
|
139
139
|
var j = R.ref;
|
|
140
|
-
return
|
|
140
|
+
return E = {
|
|
141
141
|
$$typeof: m,
|
|
142
|
-
type:
|
|
142
|
+
type: E,
|
|
143
143
|
key: L,
|
|
144
144
|
props: R,
|
|
145
145
|
_owner: N
|
|
146
|
-
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(
|
|
146
|
+
}, (j !== void 0 ? j : null) !== null ? Object.defineProperty(E, "ref", {
|
|
147
147
|
enumerable: !1,
|
|
148
148
|
get: l
|
|
149
|
-
}) : Object.defineProperty(
|
|
149
|
+
}) : Object.defineProperty(E, "ref", { enumerable: !1, value: null }), E._store = {}, Object.defineProperty(E._store, "validated", {
|
|
150
150
|
configurable: !1,
|
|
151
151
|
enumerable: !1,
|
|
152
152
|
writable: !0,
|
|
153
153
|
value: 0
|
|
154
|
-
}), Object.defineProperty(
|
|
154
|
+
}), Object.defineProperty(E, "_debugInfo", {
|
|
155
155
|
configurable: !1,
|
|
156
156
|
enumerable: !1,
|
|
157
157
|
writable: !0,
|
|
158
158
|
value: null
|
|
159
|
-
}), Object.defineProperty(
|
|
159
|
+
}), Object.defineProperty(E, "_debugStack", {
|
|
160
160
|
configurable: !1,
|
|
161
161
|
enumerable: !1,
|
|
162
162
|
writable: !0,
|
|
163
163
|
value: J
|
|
164
|
-
}), Object.defineProperty(
|
|
164
|
+
}), Object.defineProperty(E, "_debugTask", {
|
|
165
165
|
configurable: !1,
|
|
166
166
|
enumerable: !1,
|
|
167
167
|
writable: !0,
|
|
168
168
|
value: B
|
|
169
|
-
}), Object.freeze && (Object.freeze(
|
|
169
|
+
}), Object.freeze && (Object.freeze(E.props), Object.freeze(E)), E;
|
|
170
170
|
}
|
|
171
|
-
function c(
|
|
171
|
+
function c(E, L, R, N, J, B) {
|
|
172
172
|
var j = L.children;
|
|
173
173
|
if (j !== void 0)
|
|
174
174
|
if (N)
|
|
@@ -182,7 +182,7 @@ function ff() {
|
|
|
182
182
|
);
|
|
183
183
|
else f(j);
|
|
184
184
|
if (X.call(L, "key")) {
|
|
185
|
-
j = e(
|
|
185
|
+
j = e(E);
|
|
186
186
|
var pe = Object.keys(L).filter(function(Ke) {
|
|
187
187
|
return Ke !== "key";
|
|
188
188
|
});
|
|
@@ -201,14 +201,14 @@ React keys must be passed directly to JSX without using spread:
|
|
|
201
201
|
}
|
|
202
202
|
if (j = null, R !== void 0 && (n(R), j = "" + R), i(L) && (n(L.key), j = "" + L.key), "key" in L) {
|
|
203
203
|
R = {};
|
|
204
|
-
for (var
|
|
205
|
-
|
|
204
|
+
for (var ke in L)
|
|
205
|
+
ke !== "key" && (R[ke] = L[ke]);
|
|
206
206
|
} else R = L;
|
|
207
207
|
return j && s(
|
|
208
208
|
R,
|
|
209
|
-
typeof
|
|
209
|
+
typeof E == "function" ? E.displayName || E.name || "Unknown" : E
|
|
210
210
|
), u(
|
|
211
|
-
|
|
211
|
+
E,
|
|
212
212
|
j,
|
|
213
213
|
R,
|
|
214
214
|
o(),
|
|
@@ -216,43 +216,43 @@ React keys must be passed directly to JSX without using spread:
|
|
|
216
216
|
B
|
|
217
217
|
);
|
|
218
218
|
}
|
|
219
|
-
function f(
|
|
220
|
-
g(
|
|
219
|
+
function f(E) {
|
|
220
|
+
g(E) ? E._store && (E._store.validated = 1) : typeof E == "object" && E !== null && E.$$typeof === W && (E._payload.status === "fulfilled" ? g(E._payload.value) && E._payload.value._store && (E._payload.value._store.validated = 1) : E._store && (E._store.validated = 1));
|
|
221
221
|
}
|
|
222
|
-
function g(
|
|
223
|
-
return typeof
|
|
222
|
+
function g(E) {
|
|
223
|
+
return typeof E == "object" && E !== null && E.$$typeof === m;
|
|
224
224
|
}
|
|
225
|
-
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"),
|
|
225
|
+
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"), k = /* @__PURE__ */ Symbol.for("react.context"), w = /* @__PURE__ */ Symbol.for("react.forward_ref"), C = /* @__PURE__ */ Symbol.for("react.suspense"), I = /* @__PURE__ */ Symbol.for("react.suspense_list"), F = /* @__PURE__ */ Symbol.for("react.memo"), W = /* @__PURE__ */ Symbol.for("react.lazy"), P = /* @__PURE__ */ Symbol.for("react.activity"), O = /* @__PURE__ */ Symbol.for("react.client.reference"), K = d.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, X = Object.prototype.hasOwnProperty, T = Array.isArray, D = console.createTask ? console.createTask : function() {
|
|
226
226
|
return null;
|
|
227
227
|
};
|
|
228
228
|
d = {
|
|
229
|
-
react_stack_bottom_frame: function(
|
|
230
|
-
return
|
|
229
|
+
react_stack_bottom_frame: function(E) {
|
|
230
|
+
return E();
|
|
231
231
|
}
|
|
232
232
|
};
|
|
233
233
|
var G, ee = {}, S = d.react_stack_bottom_frame.bind(
|
|
234
234
|
d,
|
|
235
235
|
a
|
|
236
236
|
)(), U = D(r(a)), re = {};
|
|
237
|
-
Fn.Fragment = v, Fn.jsx = function(
|
|
237
|
+
Fn.Fragment = v, Fn.jsx = function(E, L, R) {
|
|
238
238
|
var N = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
239
239
|
return c(
|
|
240
|
-
|
|
240
|
+
E,
|
|
241
241
|
L,
|
|
242
242
|
R,
|
|
243
243
|
!1,
|
|
244
244
|
N ? Error("react-stack-top-frame") : S,
|
|
245
|
-
N ? D(r(
|
|
245
|
+
N ? D(r(E)) : U
|
|
246
246
|
);
|
|
247
|
-
}, Fn.jsxs = function(
|
|
247
|
+
}, Fn.jsxs = function(E, L, R) {
|
|
248
248
|
var N = 1e4 > K.recentlyCreatedOwnerStacks++;
|
|
249
249
|
return c(
|
|
250
|
-
|
|
250
|
+
E,
|
|
251
251
|
L,
|
|
252
252
|
R,
|
|
253
253
|
!0,
|
|
254
254
|
N ? Error("react-stack-top-frame") : S,
|
|
255
|
-
N ? D(r(
|
|
255
|
+
N ? D(r(E)) : U
|
|
256
256
|
);
|
|
257
257
|
};
|
|
258
258
|
})()), Fn;
|
|
@@ -319,20 +319,20 @@ function bf(e) {
|
|
|
319
319
|
e.focus(), wf(t);
|
|
320
320
|
}
|
|
321
321
|
}
|
|
322
|
-
let
|
|
322
|
+
let kr = null;
|
|
323
323
|
function yf() {
|
|
324
|
-
if (
|
|
325
|
-
|
|
324
|
+
if (kr == null) {
|
|
325
|
+
kr = !1;
|
|
326
326
|
try {
|
|
327
327
|
document.createElement("div").focus({
|
|
328
328
|
get preventScroll() {
|
|
329
|
-
return
|
|
329
|
+
return kr = !0, !0;
|
|
330
330
|
}
|
|
331
331
|
});
|
|
332
332
|
} catch {
|
|
333
333
|
}
|
|
334
334
|
}
|
|
335
|
-
return
|
|
335
|
+
return kr;
|
|
336
336
|
}
|
|
337
337
|
function xf(e) {
|
|
338
338
|
let t = e.parentNode, n = [], r = document.scrollingElement || document.documentElement;
|
|
@@ -374,13 +374,13 @@ const Un = St(function() {
|
|
|
374
374
|
}), Vl = St(function() {
|
|
375
375
|
return Ka(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
376
376
|
Un() && navigator.maxTouchPoints > 1;
|
|
377
|
-
}),
|
|
377
|
+
}), kf = St(function() {
|
|
378
378
|
return Sf() || Vl();
|
|
379
379
|
});
|
|
380
380
|
St(function() {
|
|
381
|
-
return Un() ||
|
|
381
|
+
return Un() || kf();
|
|
382
382
|
});
|
|
383
|
-
const
|
|
383
|
+
const Ef = St(function() {
|
|
384
384
|
return oo(/AppleWebKit/i) && !Cf();
|
|
385
385
|
}), Cf = St(function() {
|
|
386
386
|
return oo(/Chrome/i);
|
|
@@ -393,7 +393,7 @@ function Yn(e, t, n = !0) {
|
|
|
393
393
|
var r, o;
|
|
394
394
|
let { metaKey: a, ctrlKey: i, altKey: s, shiftKey: l } = t;
|
|
395
395
|
Rf() && (!((o = window.event) === null || o === void 0 || (r = o.type) === null || r === void 0) && r.startsWith("key")) && e.target === "_blank" && (Un() ? a = !0 : i = !0);
|
|
396
|
-
let u =
|
|
396
|
+
let u = Ef() && Un() && !Vl() && process.env.NODE_ENV !== "test" ? new KeyboardEvent("keydown", {
|
|
397
397
|
keyIdentifier: "Enter",
|
|
398
398
|
metaKey: a,
|
|
399
399
|
ctrlKey: i,
|
|
@@ -657,7 +657,7 @@ function Lf(e) {
|
|
|
657
657
|
}
|
|
658
658
|
};
|
|
659
659
|
}
|
|
660
|
-
let Wr = !1,
|
|
660
|
+
let Wr = !1, Er = 0;
|
|
661
661
|
function ma() {
|
|
662
662
|
Wr = !0, setTimeout(() => {
|
|
663
663
|
Wr = !1;
|
|
@@ -668,8 +668,8 @@ function Ui(e) {
|
|
|
668
668
|
}
|
|
669
669
|
function Df() {
|
|
670
670
|
if (!(typeof document > "u"))
|
|
671
|
-
return
|
|
672
|
-
|
|
671
|
+
return Er === 0 && (typeof PointerEvent < "u" ? document.addEventListener("pointerup", Ui) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", ma)), Er++, () => {
|
|
672
|
+
Er--, !(Er > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", Ui) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", ma));
|
|
673
673
|
};
|
|
674
674
|
}
|
|
675
675
|
function sn(e) {
|
|
@@ -899,7 +899,7 @@ function nr({ disabled: e = !1 } = {}) {
|
|
|
899
899
|
function ye(e) {
|
|
900
900
|
return be(() => e, Object.values(e));
|
|
901
901
|
}
|
|
902
|
-
let ql =
|
|
902
|
+
let ql = Ee(void 0);
|
|
903
903
|
function Gt() {
|
|
904
904
|
return de(ql);
|
|
905
905
|
}
|
|
@@ -1079,7 +1079,7 @@ function ng(e, t) {
|
|
|
1079
1079
|
let { features: r = 1, ...o } = e, a = { ref: t, "aria-hidden": (r & 2) === 2 ? !0 : (n = o["aria-hidden"]) != null ? n : void 0, hidden: (r & 4) === 4 ? !0 : void 0, style: { position: "fixed", top: 1, left: 1, width: 1, height: 0, padding: 0, margin: -1, overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0", ...(r & 4) === 4 && (r & 2) !== 2 && { display: "none" } } };
|
|
1080
1080
|
return ue()({ ourProps: a, theirProps: o, slot: {}, defaultTag: tg, name: "Hidden" });
|
|
1081
1081
|
}
|
|
1082
|
-
let bt = le(ng), nu =
|
|
1082
|
+
let bt = le(ng), nu = Ee(null);
|
|
1083
1083
|
function rg(e) {
|
|
1084
1084
|
let [t, n] = ae(null);
|
|
1085
1085
|
return $.createElement(nu.Provider, { value: { target: t } }, e.children, $.createElement(bt, { features: lt.Hidden, ref: n }));
|
|
@@ -1108,7 +1108,7 @@ function ag({ setForm: e, formId: t }) {
|
|
|
1108
1108
|
r && e(r);
|
|
1109
1109
|
} });
|
|
1110
1110
|
}
|
|
1111
|
-
let ou =
|
|
1111
|
+
let ou = Ee(void 0);
|
|
1112
1112
|
function rr() {
|
|
1113
1113
|
return de(ou);
|
|
1114
1114
|
}
|
|
@@ -1177,7 +1177,7 @@ function ve(...e) {
|
|
|
1177
1177
|
});
|
|
1178
1178
|
return e.every((r) => r == null || r?.[lu]) ? void 0 : n;
|
|
1179
1179
|
}
|
|
1180
|
-
let io =
|
|
1180
|
+
let io = Ee(null);
|
|
1181
1181
|
io.displayName = "DescriptionContext";
|
|
1182
1182
|
function cu() {
|
|
1183
1183
|
let e = de(io);
|
|
@@ -1210,7 +1210,7 @@ function gg(e, t) {
|
|
|
1210
1210
|
}
|
|
1211
1211
|
let mg = le(gg), or = Object.assign(mg, {});
|
|
1212
1212
|
var te = ((e) => (e.Space = " ", e.Enter = "Enter", e.Escape = "Escape", e.Backspace = "Backspace", e.Delete = "Delete", e.ArrowLeft = "ArrowLeft", e.ArrowUp = "ArrowUp", e.ArrowRight = "ArrowRight", e.ArrowDown = "ArrowDown", e.Home = "Home", e.End = "End", e.PageUp = "PageUp", e.PageDown = "PageDown", e.Tab = "Tab", e))(te || {});
|
|
1213
|
-
let uo =
|
|
1213
|
+
let uo = Ee(null);
|
|
1214
1214
|
uo.displayName = "LabelContext";
|
|
1215
1215
|
function Qa() {
|
|
1216
1216
|
let e = de(uo);
|
|
@@ -1255,7 +1255,7 @@ function hg(e, t) {
|
|
|
1255
1255
|
}), d = ye({ ...o.slot, disabled: i || !1 }), m = { ref: f, ...o.props, id: s, htmlFor: l, onClick: g };
|
|
1256
1256
|
return u && ("onClick" in m && (delete m.htmlFor, delete m.onClick), "onClick" in c && delete c.onClick), ue()({ ourProps: m, theirProps: c, slot: d, defaultTag: l ? pg : "div", name: o.name || "Label" });
|
|
1257
1257
|
}
|
|
1258
|
-
let vg = le(hg), sr = Object.assign(vg, {}), bg =
|
|
1258
|
+
let vg = le(hg), sr = Object.assign(vg, {}), bg = Ee(() => {
|
|
1259
1259
|
});
|
|
1260
1260
|
function Za({ value: e, children: t }) {
|
|
1261
1261
|
return $.createElement(bg.Provider, { value: e }, t);
|
|
@@ -1310,7 +1310,7 @@ let gu = class extends Map {
|
|
|
1310
1310
|
return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
|
|
1311
1311
|
}
|
|
1312
1312
|
};
|
|
1313
|
-
var wg = Object.defineProperty, Sg = (e, t, n) => t in e ? wg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n,
|
|
1313
|
+
var wg = Object.defineProperty, Sg = (e, t, n) => t in e ? wg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, kg = (e, t, n) => (Sg(e, t + "", n), n), mu = (e, t, n) => {
|
|
1314
1314
|
if (!t.has(e)) throw TypeError("Cannot " + n);
|
|
1315
1315
|
}, We = (e, t, n) => (mu(e, t, "read from private field"), n ? n.call(e) : t.get(e)), Lo = (e, t, n) => {
|
|
1316
1316
|
if (t.has(e)) throw TypeError("Cannot add the same private member more than once");
|
|
@@ -1318,7 +1318,7 @@ var wg = Object.defineProperty, Sg = (e, t, n) => t in e ? wg(e, t, { enumerable
|
|
|
1318
1318
|
}, qi = (e, t, n, r) => (mu(e, t, "write to private field"), t.set(e, n), n), nt, On, _n;
|
|
1319
1319
|
let co = class {
|
|
1320
1320
|
constructor(t) {
|
|
1321
|
-
Lo(this, nt, {}), Lo(this, On, new gu(() => /* @__PURE__ */ new Set())), Lo(this, _n, /* @__PURE__ */ new Set()),
|
|
1321
|
+
Lo(this, nt, {}), Lo(this, On, new gu(() => /* @__PURE__ */ new Set())), Lo(this, _n, /* @__PURE__ */ new Set()), kg(this, "disposables", Le()), qi(this, nt, t), ot.isServer && this.disposables.microTask(() => {
|
|
1322
1322
|
this.dispose();
|
|
1323
1323
|
});
|
|
1324
1324
|
}
|
|
@@ -1376,7 +1376,7 @@ function Ln(e) {
|
|
|
1376
1376
|
t(...o), r.dispose(), r.microTask(n);
|
|
1377
1377
|
};
|
|
1378
1378
|
}
|
|
1379
|
-
var
|
|
1379
|
+
var Eg = Object.defineProperty, Cg = (e, t, n) => t in e ? Eg(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Xi = (e, t, n) => (Cg(e, typeof t != "symbol" ? t + "" : t, n), n), ti = ((e) => (e[e.Push = 0] = "Push", e[e.Pop = 1] = "Pop", e))(ti || {});
|
|
1380
1380
|
let $g = { 0(e, t) {
|
|
1381
1381
|
let n = t.id, r = e.stack, o = e.stack.indexOf(n);
|
|
1382
1382
|
if (o !== -1) {
|
|
@@ -1432,13 +1432,13 @@ function Pg() {
|
|
|
1432
1432
|
var I = f(w);
|
|
1433
1433
|
return g !== void 0 && g(C, I) ? (x = w, C) : (x = w, y = I);
|
|
1434
1434
|
}
|
|
1435
|
-
var b = !1, x, y,
|
|
1435
|
+
var b = !1, x, y, k = c === void 0 ? null : c;
|
|
1436
1436
|
return [
|
|
1437
1437
|
function() {
|
|
1438
1438
|
return v(u());
|
|
1439
1439
|
},
|
|
1440
|
-
|
|
1441
|
-
return v(
|
|
1440
|
+
k === null ? void 0 : function() {
|
|
1441
|
+
return v(k());
|
|
1442
1442
|
}
|
|
1443
1443
|
];
|
|
1444
1444
|
},
|
|
@@ -1484,13 +1484,13 @@ function Fg() {
|
|
|
1484
1484
|
var I = f(w);
|
|
1485
1485
|
return g !== void 0 && g(C, I) ? (x = w, C) : (x = w, y = I);
|
|
1486
1486
|
}
|
|
1487
|
-
var b = !1, x, y,
|
|
1487
|
+
var b = !1, x, y, k = c === void 0 ? null : c;
|
|
1488
1488
|
return [
|
|
1489
1489
|
function() {
|
|
1490
1490
|
return v(u());
|
|
1491
1491
|
},
|
|
1492
|
-
|
|
1493
|
-
return v(
|
|
1492
|
+
k === null ? void 0 : function() {
|
|
1493
|
+
return v(k());
|
|
1494
1494
|
}
|
|
1495
1495
|
];
|
|
1496
1496
|
},
|
|
@@ -1988,7 +1988,7 @@ function ho() {
|
|
|
1988
1988
|
return typeof window < "u";
|
|
1989
1989
|
}
|
|
1990
1990
|
function Sn(e) {
|
|
1991
|
-
return
|
|
1991
|
+
return ku(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
1992
1992
|
}
|
|
1993
1993
|
function He(e) {
|
|
1994
1994
|
var t;
|
|
@@ -1996,9 +1996,9 @@ function He(e) {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
function dt(e) {
|
|
1998
1998
|
var t;
|
|
1999
|
-
return (t = (
|
|
1999
|
+
return (t = (ku(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
2000
2000
|
}
|
|
2001
|
-
function
|
|
2001
|
+
function ku(e) {
|
|
2002
2002
|
return ho() ? e instanceof Node || e instanceof He(e).Node : !1;
|
|
2003
2003
|
}
|
|
2004
2004
|
function je(e) {
|
|
@@ -2081,14 +2081,14 @@ function Mt(e) {
|
|
|
2081
2081
|
);
|
|
2082
2082
|
return us(t) ? t.host : t;
|
|
2083
2083
|
}
|
|
2084
|
-
function
|
|
2084
|
+
function Eu(e) {
|
|
2085
2085
|
const t = Mt(e);
|
|
2086
|
-
return bn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ut(t) && mr(t) ? t :
|
|
2086
|
+
return bn(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ut(t) && mr(t) ? t : Eu(t);
|
|
2087
2087
|
}
|
|
2088
2088
|
function Kn(e, t, n) {
|
|
2089
2089
|
var r;
|
|
2090
2090
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
2091
|
-
const o =
|
|
2091
|
+
const o = Eu(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = He(o);
|
|
2092
2092
|
if (a) {
|
|
2093
2093
|
const s = ba(i);
|
|
2094
2094
|
return t.concat(i, i.visualViewport || [], mr(o) ? o : [], s && n ? Kn(s) : []);
|
|
@@ -2123,7 +2123,7 @@ const nn = Math.min, Te = Math.max, Xn = Math.round, Rr = Math.floor, it = (e) =
|
|
|
2123
2123
|
function cs(e, t, n) {
|
|
2124
2124
|
return Te(e, nn(t, n));
|
|
2125
2125
|
}
|
|
2126
|
-
function
|
|
2126
|
+
function kn(e, t) {
|
|
2127
2127
|
return typeof e == "function" ? e(t) : e;
|
|
2128
2128
|
}
|
|
2129
2129
|
function jt(e) {
|
|
@@ -2278,7 +2278,7 @@ async function Pu(e, t) {
|
|
|
2278
2278
|
elementContext: f = "floating",
|
|
2279
2279
|
altBoundary: g = !1,
|
|
2280
2280
|
padding: d = 0
|
|
2281
|
-
} =
|
|
2281
|
+
} = kn(t, e), m = Sm(d), v = s[g ? f === "floating" ? "reference" : "floating" : f], b = qr(await a.getClippingRect({
|
|
2282
2282
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(v))) == null || n ? v : v.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(s.floating)),
|
|
2283
2283
|
boundary: u,
|
|
2284
2284
|
rootBoundary: c,
|
|
@@ -2288,7 +2288,7 @@ async function Pu(e, t) {
|
|
|
2288
2288
|
y: o,
|
|
2289
2289
|
width: i.floating.width,
|
|
2290
2290
|
height: i.floating.height
|
|
2291
|
-
} : i.reference, y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)),
|
|
2291
|
+
} : i.reference, y = await (a.getOffsetParent == null ? void 0 : a.getOffsetParent(s.floating)), k = await (a.isElement == null ? void 0 : a.isElement(y)) ? await (a.getScale == null ? void 0 : a.getScale(y)) || {
|
|
2292
2292
|
x: 1,
|
|
2293
2293
|
y: 1
|
|
2294
2294
|
} : {
|
|
@@ -2301,13 +2301,13 @@ async function Pu(e, t) {
|
|
|
2301
2301
|
strategy: l
|
|
2302
2302
|
}) : x);
|
|
2303
2303
|
return {
|
|
2304
|
-
top: (b.top - w.top + m.top) /
|
|
2305
|
-
bottom: (w.bottom - b.bottom + m.bottom) /
|
|
2306
|
-
left: (b.left - w.left + m.left) /
|
|
2307
|
-
right: (w.right - b.right + m.right) /
|
|
2304
|
+
top: (b.top - w.top + m.top) / k.y,
|
|
2305
|
+
bottom: (w.bottom - b.bottom + m.bottom) / k.y,
|
|
2306
|
+
left: (b.left - w.left + m.left) / k.x,
|
|
2307
|
+
right: (w.right - b.right + m.right) / k.x
|
|
2308
2308
|
};
|
|
2309
2309
|
}
|
|
2310
|
-
const
|
|
2310
|
+
const km = async (e, t, n) => {
|
|
2311
2311
|
const {
|
|
2312
2312
|
placement: r = "bottom",
|
|
2313
2313
|
strategy: o = "absolute",
|
|
@@ -2329,7 +2329,7 @@ const Em = async (e, t, n) => {
|
|
|
2329
2329
|
fn: x
|
|
2330
2330
|
} = s[v], {
|
|
2331
2331
|
x: y,
|
|
2332
|
-
y:
|
|
2332
|
+
y: k,
|
|
2333
2333
|
data: w,
|
|
2334
2334
|
reset: C
|
|
2335
2335
|
} = await x({
|
|
@@ -2349,7 +2349,7 @@ const Em = async (e, t, n) => {
|
|
|
2349
2349
|
floating: t
|
|
2350
2350
|
}
|
|
2351
2351
|
});
|
|
2352
|
-
c = y ?? c, f =
|
|
2352
|
+
c = y ?? c, f = k ?? f, d = {
|
|
2353
2353
|
...d,
|
|
2354
2354
|
[b]: {
|
|
2355
2355
|
...d[b],
|
|
@@ -2371,7 +2371,7 @@ const Em = async (e, t, n) => {
|
|
|
2371
2371
|
strategy: o,
|
|
2372
2372
|
middlewareData: d
|
|
2373
2373
|
};
|
|
2374
|
-
},
|
|
2374
|
+
}, Em = function(e) {
|
|
2375
2375
|
return e === void 0 && (e = {}), {
|
|
2376
2376
|
name: "flip",
|
|
2377
2377
|
options: e,
|
|
@@ -2392,15 +2392,15 @@ const Em = async (e, t, n) => {
|
|
|
2392
2392
|
fallbackAxisSideDirection: m = "none",
|
|
2393
2393
|
flipAlignment: p = !0,
|
|
2394
2394
|
...v
|
|
2395
|
-
} =
|
|
2395
|
+
} = kn(e, t);
|
|
2396
2396
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
2397
2397
|
return {};
|
|
2398
|
-
const b = jt(o), x = ht(s), y = jt(s) === s,
|
|
2399
|
-
!g && C && w.push(...xm(s, p, m,
|
|
2398
|
+
const b = jt(o), x = ht(s), y = jt(s) === s, k = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), w = g || (y || !p ? [Yr(s)] : hm(s)), C = m !== "none";
|
|
2399
|
+
!g && C && w.push(...xm(s, p, m, k));
|
|
2400
2400
|
const I = [s, ...w], F = await l.detectOverflow(t, v), W = [];
|
|
2401
2401
|
let P = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
2402
2402
|
if (c && W.push(F[b]), f) {
|
|
2403
|
-
const T = pm(o, i,
|
|
2403
|
+
const T = pm(o, i, k);
|
|
2404
2404
|
W.push(F[T[0]], F[T[1]]);
|
|
2405
2405
|
}
|
|
2406
2406
|
if (P = [...P, {
|
|
@@ -2458,7 +2458,7 @@ async function $m(e, t) {
|
|
|
2458
2458
|
placement: n,
|
|
2459
2459
|
platform: r,
|
|
2460
2460
|
elements: o
|
|
2461
|
-
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = jt(n), s = pr(n), l = ht(n) === "y", u = Cm.has(i) ? -1 : 1, c = a && l ? -1 : 1, f =
|
|
2461
|
+
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = jt(n), s = pr(n), l = ht(n) === "y", u = Cm.has(i) ? -1 : 1, c = a && l ? -1 : 1, f = kn(t, e);
|
|
2462
2462
|
let {
|
|
2463
2463
|
mainAxis: g,
|
|
2464
2464
|
crossAxis: d,
|
|
@@ -2528,18 +2528,18 @@ const Rm = function(e) {
|
|
|
2528
2528
|
}
|
|
2529
2529
|
},
|
|
2530
2530
|
...u
|
|
2531
|
-
} =
|
|
2531
|
+
} = kn(e, t), c = {
|
|
2532
2532
|
x: n,
|
|
2533
2533
|
y: r
|
|
2534
2534
|
}, f = await a.detectOverflow(t, u), g = ht(jt(o)), d = Cu(g);
|
|
2535
2535
|
let m = c[d], p = c[g];
|
|
2536
2536
|
if (i) {
|
|
2537
|
-
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b],
|
|
2538
|
-
m = cs(y, m,
|
|
2537
|
+
const b = d === "y" ? "top" : "left", x = d === "y" ? "bottom" : "right", y = m + f[b], k = m - f[x];
|
|
2538
|
+
m = cs(y, m, k);
|
|
2539
2539
|
}
|
|
2540
2540
|
if (s) {
|
|
2541
|
-
const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b],
|
|
2542
|
-
p = cs(y, p,
|
|
2541
|
+
const b = g === "y" ? "top" : "left", x = g === "y" ? "bottom" : "right", y = p + f[b], k = p - f[x];
|
|
2542
|
+
p = cs(y, p, k);
|
|
2543
2543
|
}
|
|
2544
2544
|
const v = l.fn({
|
|
2545
2545
|
...t,
|
|
@@ -2574,14 +2574,14 @@ const Rm = function(e) {
|
|
|
2574
2574
|
apply: l = () => {
|
|
2575
2575
|
},
|
|
2576
2576
|
...u
|
|
2577
|
-
} =
|
|
2577
|
+
} = kn(e, t), c = await i.detectOverflow(t, u), f = jt(o), g = pr(o), d = ht(o) === "y", {
|
|
2578
2578
|
width: m,
|
|
2579
2579
|
height: p
|
|
2580
2580
|
} = a.floating;
|
|
2581
2581
|
let v, b;
|
|
2582
2582
|
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");
|
|
2583
|
-
const x = p - c.top - c.bottom, y = m - c.left - c.right,
|
|
2584
|
-
let I =
|
|
2583
|
+
const x = p - c.top - c.bottom, y = m - c.left - c.right, k = nn(p - c[v], x), w = nn(m - c[b], y), C = !t.middlewareData.shift;
|
|
2584
|
+
let I = k, F = w;
|
|
2585
2585
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = y), (r = t.middlewareData.shift) != null && r.enabled.y && (I = x), C && !g) {
|
|
2586
2586
|
const P = Te(c.left, 0), O = Te(c.right, 0), K = Te(c.top, 0), X = Te(c.bottom, 0);
|
|
2587
2587
|
d ? F = m - 2 * (P !== 0 || O !== 0 ? P + O : Te(c.left, c.right)) : I = p - 2 * (K !== 0 || X !== 0 ? K + X : Te(c.top, c.bottom));
|
|
@@ -2650,8 +2650,8 @@ function rn(e, t, n, r) {
|
|
|
2650
2650
|
const g = He(a), d = r && je(r) ? He(r) : r;
|
|
2651
2651
|
let m = g, p = ba(m);
|
|
2652
2652
|
for (; p && r && d !== m; ) {
|
|
2653
|
-
const v = pn(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x,
|
|
2654
|
-
l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u +=
|
|
2653
|
+
const v = pn(p), b = p.getBoundingClientRect(), x = et(p), y = b.left + (p.clientLeft + parseFloat(x.paddingLeft)) * v.x, k = b.top + (p.clientTop + parseFloat(x.paddingTop)) * v.y;
|
|
2654
|
+
l *= v.x, u *= v.y, c *= v.x, f *= v.y, l += y, u += k, m = He(p), p = ba(m);
|
|
2655
2655
|
}
|
|
2656
2656
|
}
|
|
2657
2657
|
return qr({
|
|
@@ -2912,17 +2912,17 @@ function Wm(e, t) {
|
|
|
2912
2912
|
rootMargin: -m + "px " + -p + "px " + -v + "px " + -b + "px",
|
|
2913
2913
|
threshold: Te(0, nn(1, l)) || 1
|
|
2914
2914
|
};
|
|
2915
|
-
let
|
|
2915
|
+
let k = !0;
|
|
2916
2916
|
function w(C) {
|
|
2917
2917
|
const I = C[0].intersectionRatio;
|
|
2918
2918
|
if (I !== l) {
|
|
2919
|
-
if (!
|
|
2919
|
+
if (!k)
|
|
2920
2920
|
return i();
|
|
2921
2921
|
I ? i(!1, I) : r = setTimeout(() => {
|
|
2922
2922
|
i(!1, 1e-7);
|
|
2923
2923
|
}, 1e3);
|
|
2924
2924
|
}
|
|
2925
|
-
I === 1 && !_u(u, e.getBoundingClientRect()) && i(),
|
|
2925
|
+
I === 1 && !_u(u, e.getBoundingClientRect()) && i(), k = !1;
|
|
2926
2926
|
}
|
|
2927
2927
|
try {
|
|
2928
2928
|
n = new IntersectionObserver(w, {
|
|
@@ -2973,7 +2973,7 @@ function Um(e, t, n, r) {
|
|
|
2973
2973
|
}), f?.(), (b = d) == null || b.disconnect(), d = null, l && cancelAnimationFrame(m);
|
|
2974
2974
|
};
|
|
2975
2975
|
}
|
|
2976
|
-
const Bo = Pu, Ym = Rm, qm = Pm, Km =
|
|
2976
|
+
const Bo = Pu, Ym = Rm, qm = Pm, Km = Em, Xm = Fm, Jm = (e, t, n) => {
|
|
2977
2977
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
2978
2978
|
platform: Gm,
|
|
2979
2979
|
...n
|
|
@@ -2981,7 +2981,7 @@ const Bo = Pu, Ym = Rm, qm = Pm, Km = km, Xm = Fm, Jm = (e, t, n) => {
|
|
|
2981
2981
|
...o.platform,
|
|
2982
2982
|
_c: r
|
|
2983
2983
|
};
|
|
2984
|
-
return
|
|
2984
|
+
return km(e, t, {
|
|
2985
2985
|
...o,
|
|
2986
2986
|
platform: a
|
|
2987
2987
|
});
|
|
@@ -3058,7 +3058,7 @@ function ep(e) {
|
|
|
3058
3058
|
S !== C.current && (C.current = S, p(S));
|
|
3059
3059
|
}, []), y = V.useCallback((S) => {
|
|
3060
3060
|
S !== I.current && (I.current = S, b(S));
|
|
3061
|
-
}, []),
|
|
3061
|
+
}, []), k = a || m, w = i || v, C = V.useRef(null), I = V.useRef(null), F = V.useRef(c), W = l != null, P = Go(l), O = Go(o), K = Go(u), X = V.useCallback(() => {
|
|
3062
3062
|
if (!C.current || !I.current)
|
|
3063
3063
|
return;
|
|
3064
3064
|
const S = {
|
|
@@ -3090,21 +3090,21 @@ function ep(e) {
|
|
|
3090
3090
|
Mr(() => (T.current = !0, () => {
|
|
3091
3091
|
T.current = !1;
|
|
3092
3092
|
}), []), Mr(() => {
|
|
3093
|
-
if (
|
|
3093
|
+
if (k && (C.current = k), w && (I.current = w), k && w) {
|
|
3094
3094
|
if (P.current)
|
|
3095
|
-
return P.current(
|
|
3095
|
+
return P.current(k, w, X);
|
|
3096
3096
|
X();
|
|
3097
3097
|
}
|
|
3098
|
-
}, [
|
|
3098
|
+
}, [k, w, X, P, W]);
|
|
3099
3099
|
const D = V.useMemo(() => ({
|
|
3100
3100
|
reference: C,
|
|
3101
3101
|
floating: I,
|
|
3102
3102
|
setReference: x,
|
|
3103
3103
|
setFloating: y
|
|
3104
3104
|
}), [x, y]), G = V.useMemo(() => ({
|
|
3105
|
-
reference:
|
|
3105
|
+
reference: k,
|
|
3106
3106
|
floating: w
|
|
3107
|
-
}), [
|
|
3107
|
+
}), [k, w]), ee = V.useMemo(() => {
|
|
3108
3108
|
const S = {
|
|
3109
3109
|
position: n,
|
|
3110
3110
|
left: 0,
|
|
@@ -3275,11 +3275,11 @@ function yp(e) {
|
|
|
3275
3275
|
}
|
|
3276
3276
|
}
|
|
3277
3277
|
}), m = V.useCallback((y) => {
|
|
3278
|
-
const
|
|
3278
|
+
const k = je(y) ? {
|
|
3279
3279
|
getBoundingClientRect: () => y.getBoundingClientRect(),
|
|
3280
3280
|
contextElement: y
|
|
3281
3281
|
} : y;
|
|
3282
|
-
l(
|
|
3282
|
+
l(k), d.refs.setReference(k);
|
|
3283
3283
|
}, [d.refs]), p = V.useCallback((y) => {
|
|
3284
3284
|
(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
|
|
3285
3285
|
// `null` to support `positionReference` + an unstable `reference`
|
|
@@ -3302,7 +3302,7 @@ function yp(e) {
|
|
|
3302
3302
|
}), [d, v, b, t, r]);
|
|
3303
3303
|
return xa(() => {
|
|
3304
3304
|
r.dataRef.current.floatingContext = x;
|
|
3305
|
-
const y = g?.nodesRef.current.find((
|
|
3305
|
+
const y = g?.nodesRef.current.find((k) => k.id === t);
|
|
3306
3306
|
y && (y.context = x);
|
|
3307
3307
|
}), V.useMemo(() => ({
|
|
3308
3308
|
...d,
|
|
@@ -3396,7 +3396,7 @@ const wp = (e) => ({
|
|
|
3396
3396
|
referenceOverflowThreshold: l = 0,
|
|
3397
3397
|
scrollRef: u,
|
|
3398
3398
|
...c
|
|
3399
|
-
} =
|
|
3399
|
+
} = kn(e, t), {
|
|
3400
3400
|
rects: f,
|
|
3401
3401
|
elements: {
|
|
3402
3402
|
floating: g
|
|
@@ -3407,10 +3407,10 @@ const wp = (e) => ({
|
|
|
3407
3407
|
const y = {
|
|
3408
3408
|
...t,
|
|
3409
3409
|
...await Mu(-d.offsetTop - g.clientTop - f.reference.height / 2 - d.offsetHeight / 2 - a).fn(t)
|
|
3410
|
-
},
|
|
3410
|
+
}, k = await Bo(Ss(y, m.scrollHeight + p + g.clientTop), c), w = await Bo(y, {
|
|
3411
3411
|
...c,
|
|
3412
3412
|
elementContext: "reference"
|
|
3413
|
-
}), C = Te(0,
|
|
3413
|
+
}), C = Te(0, k.top), I = y.y + C, P = (m.scrollHeight > m.clientHeight ? (O) => O : Xn)(Te(0, m.scrollHeight + (v && x || b ? p * 2 : 0) - C - Te(0, k.bottom)));
|
|
3414
3414
|
if (m.style.maxHeight = P + "px", m.scrollTop = C, o) {
|
|
3415
3415
|
const O = m.offsetHeight < d.offsetHeight * nn(s, n.current.length) - 1 || w.top >= -l || w.bottom >= -l;
|
|
3416
3416
|
Br.flushSync(() => o(O));
|
|
@@ -3438,9 +3438,9 @@ function Sp(e, t) {
|
|
|
3438
3438
|
function d(p) {
|
|
3439
3439
|
if (p.ctrlKey || !m || a.current == null)
|
|
3440
3440
|
return;
|
|
3441
|
-
const v = p.deltaY, b = a.current.top >= -0.5, x = a.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight,
|
|
3441
|
+
const v = p.deltaY, b = a.current.top >= -0.5, x = a.current.bottom >= -0.5, y = m.scrollHeight - m.clientHeight, k = v < 0 ? -1 : 1, w = v < 0 ? "max" : "min";
|
|
3442
3442
|
m.scrollHeight <= m.clientHeight || (!b && v > 0 || !x && v < 0 ? (p.preventDefault(), Br.flushSync(() => {
|
|
3443
|
-
l((C) => C + Math[w](v, y *
|
|
3443
|
+
l((C) => C + Math[w](v, y * k));
|
|
3444
3444
|
})) : /firefox/i.test(dm()) && (m.scrollTop += v));
|
|
3445
3445
|
}
|
|
3446
3446
|
const m = i?.current || r.floating;
|
|
@@ -3480,23 +3480,23 @@ function Sp(e, t) {
|
|
|
3480
3480
|
floating: g
|
|
3481
3481
|
} : {}, [o, g]);
|
|
3482
3482
|
}
|
|
3483
|
-
let
|
|
3483
|
+
let En = Ee({ styles: void 0, setReference: () => {
|
|
3484
3484
|
}, setFloating: () => {
|
|
3485
3485
|
}, getReferenceProps: () => ({}), getFloatingProps: () => ({}), slot: {} });
|
|
3486
|
-
|
|
3487
|
-
let ui =
|
|
3486
|
+
En.displayName = "FloatingContext";
|
|
3487
|
+
let ui = Ee(null);
|
|
3488
3488
|
ui.displayName = "PlacementContext";
|
|
3489
3489
|
function ci(e) {
|
|
3490
3490
|
return be(() => e ? typeof e == "string" ? { to: e } : e : null, [e]);
|
|
3491
3491
|
}
|
|
3492
3492
|
function di() {
|
|
3493
|
-
return de(
|
|
3493
|
+
return de(En).setReference;
|
|
3494
3494
|
}
|
|
3495
3495
|
function Du() {
|
|
3496
|
-
return de(
|
|
3496
|
+
return de(En).getReferenceProps;
|
|
3497
3497
|
}
|
|
3498
3498
|
function fi() {
|
|
3499
|
-
let { getFloatingProps: e, slot: t } = de(
|
|
3499
|
+
let { getFloatingProps: e, slot: t } = de(En);
|
|
3500
3500
|
return se((...n) => Object.assign({}, e(...n), { "data-anchor": t.anchor }), [e, t]);
|
|
3501
3501
|
}
|
|
3502
3502
|
function gi(e = null) {
|
|
@@ -3508,28 +3508,28 @@ function gi(e = null) {
|
|
|
3508
3508
|
fe(() => {
|
|
3509
3509
|
t?.(n ?? null);
|
|
3510
3510
|
}, [t, n]);
|
|
3511
|
-
let r = de(
|
|
3511
|
+
let r = de(En);
|
|
3512
3512
|
return be(() => [r.setFloating, e ? r.styles : {}], [r.setFloating, e, r.styles]);
|
|
3513
3513
|
}
|
|
3514
|
-
let
|
|
3514
|
+
let ks = 4;
|
|
3515
3515
|
function mi({ children: e, enabled: t = !0 }) {
|
|
3516
3516
|
let [n, r] = ae(null), [o, a] = ae(0), i = Y(null), [s, l] = ae(null);
|
|
3517
|
-
|
|
3518
|
-
let u = t && n !== null && s !== null, { to: c = "bottom", gap: f = 0, offset: g = 0, padding: d = 0, inner: m } =
|
|
3517
|
+
kp(s);
|
|
3518
|
+
let u = t && n !== null && s !== null, { to: c = "bottom", gap: f = 0, offset: g = 0, padding: d = 0, inner: m } = Ep(n, s), [p, v = "center"] = c.split(" ");
|
|
3519
3519
|
fe(() => {
|
|
3520
3520
|
u && a(0);
|
|
3521
3521
|
}, [u]);
|
|
3522
|
-
let { refs: b, floatingStyles: x, context: y } = yp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Mu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), tp({ padding: d }), p !== "selection" && np({ padding: d }), p === "selection" && m ? wp({ ...m, padding: d, overflowRef: i, offset: o, minItemsVisible:
|
|
3522
|
+
let { refs: b, floatingStyles: x, context: y } = yp({ open: u, placement: p === "selection" ? v === "center" ? "bottom" : `bottom-${v}` : v === "center" ? `${p}` : `${p}-${v}`, strategy: "absolute", transform: !1, middleware: [Mu({ mainAxis: p === "selection" ? 0 : f, crossAxis: g }), tp({ padding: d }), p !== "selection" && np({ padding: d }), p === "selection" && m ? wp({ ...m, padding: d, overflowRef: i, offset: o, minItemsVisible: ks, referenceOverflowThreshold: d, onFallbackChange(O) {
|
|
3523
3523
|
var K, X;
|
|
3524
3524
|
if (!O) return;
|
|
3525
3525
|
let T = y.elements.floating;
|
|
3526
3526
|
if (!T) return;
|
|
3527
|
-
let D = parseFloat(getComputedStyle(T).scrollPaddingBottom) || 0, G = Math.min(
|
|
3527
|
+
let D = parseFloat(getComputedStyle(T).scrollPaddingBottom) || 0, G = Math.min(ks, T.childElementCount), ee = 0, S = 0;
|
|
3528
3528
|
for (let U of (X = (K = y.elements.floating) == null ? void 0 : K.childNodes) != null ? X : []) if (Ae(U)) {
|
|
3529
|
-
let re = U.offsetTop,
|
|
3530
|
-
if (re >= L &&
|
|
3529
|
+
let re = U.offsetTop, E = re + U.clientHeight + D, L = T.scrollTop, R = L + T.clientHeight;
|
|
3530
|
+
if (re >= L && E <= R) G--;
|
|
3531
3531
|
else {
|
|
3532
|
-
S = Math.max(0, Math.min(
|
|
3532
|
+
S = Math.max(0, Math.min(E, R) - Math.max(re, L)), ee = U.clientHeight;
|
|
3533
3533
|
break;
|
|
3534
3534
|
}
|
|
3535
3535
|
}
|
|
@@ -3539,14 +3539,14 @@ function mi({ children: e, enabled: t = !0 }) {
|
|
|
3539
3539
|
});
|
|
3540
3540
|
} }) : null, rp({ padding: d, apply({ availableWidth: O, availableHeight: K, elements: X }) {
|
|
3541
3541
|
Object.assign(X.floating.style, { overflow: "auto", maxWidth: `${O}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${K}px)` });
|
|
3542
|
-
} })].filter(Boolean), whileElementsMounted: Um }), [
|
|
3543
|
-
p === "selection" && (
|
|
3544
|
-
let C = be(() => ({ anchor: [
|
|
3542
|
+
} })].filter(Boolean), whileElementsMounted: Um }), [k = p, w = v] = y.placement.split("-");
|
|
3543
|
+
p === "selection" && (k = "selection");
|
|
3544
|
+
let C = be(() => ({ anchor: [k, w].filter(Boolean).join(" ") }), [k, w]), I = Sp(y, { overflowRef: i, onChange: a }), { getReferenceProps: F, getFloatingProps: W } = xp([I]), P = M((O) => {
|
|
3545
3545
|
l(O), b.setFloating(O);
|
|
3546
3546
|
});
|
|
3547
|
-
return V.createElement(ui.Provider, { value: r }, V.createElement(
|
|
3547
|
+
return V.createElement(ui.Provider, { value: r }, V.createElement(En.Provider, { value: { setFloating: P, setReference: b.setReference, styles: x, getReferenceProps: F, getFloatingProps: W, slot: C } }, e));
|
|
3548
3548
|
}
|
|
3549
|
-
function
|
|
3549
|
+
function kp(e) {
|
|
3550
3550
|
fe(() => {
|
|
3551
3551
|
if (!e) return;
|
|
3552
3552
|
let t = new MutationObserver(() => {
|
|
@@ -3560,7 +3560,7 @@ function Ep(e) {
|
|
|
3560
3560
|
};
|
|
3561
3561
|
}, [e]);
|
|
3562
3562
|
}
|
|
3563
|
-
function
|
|
3563
|
+
function Ep(e, t) {
|
|
3564
3564
|
var n, r, o;
|
|
3565
3565
|
let a = Uo((n = e?.gap) != null ? n : "var(--anchor-gap, 0)", t), i = Uo((r = e?.offset) != null ? r : "var(--anchor-offset, 0)", t), s = Uo((o = e?.padding) != null ? o : "var(--anchor-padding, 0)", t);
|
|
3566
3566
|
return { ...e, gap: a, offset: i, padding: s };
|
|
@@ -3571,7 +3571,7 @@ function Uo(e, t, n = void 0) {
|
|
|
3571
3571
|
if (typeof l == "number") return [l, null];
|
|
3572
3572
|
if (typeof l == "string") {
|
|
3573
3573
|
if (!u) return [n, null];
|
|
3574
|
-
let c =
|
|
3574
|
+
let c = Es(l, u);
|
|
3575
3575
|
return [c, (f) => {
|
|
3576
3576
|
let g = Vu(l);
|
|
3577
3577
|
{
|
|
@@ -3587,7 +3587,7 @@ function Uo(e, t, n = void 0) {
|
|
|
3587
3587
|
}
|
|
3588
3588
|
}
|
|
3589
3589
|
if (!p) return;
|
|
3590
|
-
let v =
|
|
3590
|
+
let v = Es(l, u);
|
|
3591
3591
|
c !== v && (f(v), c = v);
|
|
3592
3592
|
});
|
|
3593
3593
|
}
|
|
@@ -3611,7 +3611,7 @@ function Vu(e) {
|
|
|
3611
3611
|
}
|
|
3612
3612
|
return [];
|
|
3613
3613
|
}
|
|
3614
|
-
function
|
|
3614
|
+
function Es(e, t) {
|
|
3615
3615
|
let n = document.createElement("div");
|
|
3616
3616
|
t.appendChild(n), n.style.setProperty("margin-top", "0px", "important"), n.style.setProperty("margin-top", e, "important");
|
|
3617
3617
|
let r = parseFloat(window.getComputedStyle(n).marginTop) || 0;
|
|
@@ -3626,7 +3626,7 @@ function zu(e, t) {
|
|
|
3626
3626
|
let [n, r] = ae(t);
|
|
3627
3627
|
return !e && n !== t && r(t), e ? n : t;
|
|
3628
3628
|
}
|
|
3629
|
-
let xo =
|
|
3629
|
+
let xo = Ee(null);
|
|
3630
3630
|
xo.displayName = "OpenClosedContext";
|
|
3631
3631
|
var xe = ((e) => (e[e.Open = 1] = "Open", e[e.Closed = 2] = "Closed", e[e.Closing = 4] = "Closing", e[e.Opening = 8] = "Opening", e))(xe || {});
|
|
3632
3632
|
function Wt() {
|
|
@@ -3697,7 +3697,7 @@ function hr(e) {
|
|
|
3697
3697
|
});
|
|
3698
3698
|
}), [t]);
|
|
3699
3699
|
}
|
|
3700
|
-
let Bu =
|
|
3700
|
+
let Bu = Ee(!1);
|
|
3701
3701
|
function Pp() {
|
|
3702
3702
|
return de(Bu);
|
|
3703
3703
|
}
|
|
@@ -3736,12 +3736,12 @@ function Ap(e, t) {
|
|
|
3736
3736
|
let n = ve(t), { enabled: r = !0, ownerDocument: o, ...a } = e, i = ue();
|
|
3737
3737
|
return r ? $.createElement(Ip, { ...a, ownerDocument: o, ref: n }) : i({ ourProps: { ref: n }, theirProps: a, slot: {}, defaultTag: Gu, name: "Portal" });
|
|
3738
3738
|
}
|
|
3739
|
-
let Np = Ie, Wu =
|
|
3739
|
+
let Np = Ie, Wu = Ee(null);
|
|
3740
3740
|
function Op(e, t) {
|
|
3741
3741
|
let { target: n, ...r } = e, o = { ref: ve(t) }, a = ue();
|
|
3742
3742
|
return $.createElement(Wu.Provider, { value: n }, a({ ourProps: o, theirProps: r, defaultTag: Np, name: "Popover.Group" }));
|
|
3743
3743
|
}
|
|
3744
|
-
let wa =
|
|
3744
|
+
let wa = Ee(null);
|
|
3745
3745
|
function Uu() {
|
|
3746
3746
|
let e = de(wa), t = Y([]), n = M((a) => (t.current.push(a), e && e.register(a), () => r(a))), r = M((a) => {
|
|
3747
3747
|
let i = t.current.indexOf(a);
|
|
@@ -3795,7 +3795,7 @@ function Ku({ defaultContainers: e = [], portals: t, mainTreeNode: n } = {}) {
|
|
|
3795
3795
|
});
|
|
3796
3796
|
return { resolveContainers: r, contains: M((o) => r().some((a) => a.contains(o))) };
|
|
3797
3797
|
}
|
|
3798
|
-
let Xu =
|
|
3798
|
+
let Xu = Ee(null);
|
|
3799
3799
|
function Xr({ children: e, node: t }) {
|
|
3800
3800
|
let [n, r] = ae(null), o = hi(t ?? n);
|
|
3801
3801
|
return $.createElement(Xu.Provider, { value: o }, e, o === null && $.createElement(bt, { features: lt.Hidden, ref: (a) => {
|
|
@@ -3855,7 +3855,7 @@ function Dp(e, t) {
|
|
|
3855
3855
|
let f = bi(), g = M((x) => {
|
|
3856
3856
|
if (!Ae(n.current)) return;
|
|
3857
3857
|
let y = n.current;
|
|
3858
|
-
((
|
|
3858
|
+
((k) => k())(() => {
|
|
3859
3859
|
$e(f.current, { [ze.Forwards]: () => {
|
|
3860
3860
|
Ve(y, Re.First, { skipElements: [x.relatedTarget, a] });
|
|
3861
3861
|
}, [ze.Backwards]: () => {
|
|
@@ -3870,8 +3870,8 @@ function Dp(e, t) {
|
|
|
3870
3870
|
if (!(s & 4)) return;
|
|
3871
3871
|
let y = Ju(i);
|
|
3872
3872
|
Ae(n.current) && y.add(n.current);
|
|
3873
|
-
let
|
|
3874
|
-
Xe(
|
|
3873
|
+
let k = x.relatedTarget;
|
|
3874
|
+
Xe(k) && k.dataset.headlessuiFocusGuard !== "true" && (Qu(y, k) || (p.current ? Ve(n.current, $e(f.current, { [ze.Forwards]: () => Re.Next, [ze.Backwards]: () => Re.Previous }) | Re.WrapAround, { relativeTo: x.target }) : Xe(x.target) && at(x.target)));
|
|
3875
3875
|
} }, b = ue();
|
|
3876
3876
|
return $.createElement($.Fragment, null, d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: lt.Focusable }), b({ ourProps: v, theirProps: l, defaultTag: Lp, name: "FocusTrap" }), d && $.createElement(bt, { as: "button", type: "button", "data-headlessui-focus-guard": !0, onFocus: g, features: lt.Focusable }));
|
|
3877
3877
|
}
|
|
@@ -3948,21 +3948,21 @@ function Zu(e) {
|
|
|
3948
3948
|
var t;
|
|
3949
3949
|
return !!(e.enter || e.enterFrom || e.enterTo || e.leave || e.leaveFrom || e.leaveTo) || !jn((t = e.as) != null ? t : tc) || $.Children.count(e.children) === 1;
|
|
3950
3950
|
}
|
|
3951
|
-
let
|
|
3952
|
-
|
|
3951
|
+
let ko = Ee(null);
|
|
3952
|
+
ko.displayName = "TransitionContext";
|
|
3953
3953
|
var Up = ((e) => (e.Visible = "visible", e.Hidden = "hidden", e))(Up || {});
|
|
3954
3954
|
function Yp() {
|
|
3955
|
-
let e = de(
|
|
3955
|
+
let e = de(ko);
|
|
3956
3956
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3957
3957
|
return e;
|
|
3958
3958
|
}
|
|
3959
3959
|
function qp() {
|
|
3960
|
-
let e = de(
|
|
3960
|
+
let e = de(Eo);
|
|
3961
3961
|
if (e === null) throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");
|
|
3962
3962
|
return e;
|
|
3963
3963
|
}
|
|
3964
|
-
let
|
|
3965
|
-
|
|
3964
|
+
let Eo = Ee(null);
|
|
3965
|
+
Eo.displayName = "NestingContext";
|
|
3966
3966
|
function Co(e) {
|
|
3967
3967
|
return "children" in e ? Co(e.children) : e.current.filter(({ el: t }) => t.current !== null).filter(({ state: t }) => t === "visible").length > 0;
|
|
3968
3968
|
}
|
|
@@ -3997,7 +3997,7 @@ function ec(e, t) {
|
|
|
3997
3997
|
let tc = Ie, nc = qe.RenderStrategy;
|
|
3998
3998
|
function Kp(e, t) {
|
|
3999
3999
|
var n, r;
|
|
4000
|
-
let { transition: o = !0, beforeEnter: a, 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),
|
|
4000
|
+
let { transition: o = !0, beforeEnter: a, 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), k = Zu(e), w = ve(...k ? [y, t, x] : t === null ? [] : [t]), C = (n = v.unmount) == null || n ? Pt.Unmount : Pt.Hidden, { show: I, appear: F, initial: W } = Yp(), [P, O] = ae(I ? "visible" : "hidden"), K = qp(), { register: X, unregister: T } = K;
|
|
4001
4001
|
fe(() => X(y), [X, y]), fe(() => {
|
|
4002
4002
|
if (C === Pt.Hidden && y.current) {
|
|
4003
4003
|
if (I && P !== "visible") {
|
|
@@ -4009,29 +4009,29 @@ function Kp(e, t) {
|
|
|
4009
4009
|
}, [P, y, X, T, I, C]);
|
|
4010
4010
|
let D = So();
|
|
4011
4011
|
fe(() => {
|
|
4012
|
-
if (
|
|
4013
|
-
}, [y, P, D,
|
|
4012
|
+
if (k && D && P === "visible" && y.current === null) throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?");
|
|
4013
|
+
}, [y, P, D, k]);
|
|
4014
4014
|
let G = W && !F, ee = F && I && W, S = Y(!1), U = ec(() => {
|
|
4015
4015
|
S.current || (O("hidden"), T(y));
|
|
4016
4016
|
}, K), re = M((j) => {
|
|
4017
4017
|
S.current = !0;
|
|
4018
4018
|
let pe = j ? "enter" : "leave";
|
|
4019
|
-
U.onStart(y, pe, (
|
|
4020
|
-
|
|
4019
|
+
U.onStart(y, pe, (ke) => {
|
|
4020
|
+
ke === "enter" ? a?.() : ke === "leave" && s?.();
|
|
4021
4021
|
});
|
|
4022
|
-
}),
|
|
4022
|
+
}), E = M((j) => {
|
|
4023
4023
|
let pe = j ? "enter" : "leave";
|
|
4024
|
-
S.current = !1, U.onStop(y, pe, (
|
|
4025
|
-
|
|
4024
|
+
S.current = !1, U.onStop(y, pe, (ke) => {
|
|
4025
|
+
ke === "enter" ? i?.() : ke === "leave" && l?.();
|
|
4026
4026
|
}), pe === "leave" && !Co(U) && (O("hidden"), T(y));
|
|
4027
4027
|
});
|
|
4028
4028
|
me(() => {
|
|
4029
|
-
|
|
4030
|
-
}, [I,
|
|
4031
|
-
let L = !(!o || !
|
|
4029
|
+
k && o || (re(I), E(I));
|
|
4030
|
+
}, [I, k, o]);
|
|
4031
|
+
let L = !(!o || !k || !D || G), [, R] = gr(L, b, I, { start: re, end: E }), N = Ct({ ref: w, className: ((r = pa(v.className, ee && u, ee && 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 && I && g)) == null ? void 0 : r.trim()) || void 0, ...fr(R) }), J = 0;
|
|
4032
4032
|
P === "visible" && (J |= xe.Open), P === "hidden" && (J |= xe.Closed), I && P === "hidden" && (J |= xe.Opening), !I && P === "visible" && (J |= xe.Closing);
|
|
4033
4033
|
let B = ue();
|
|
4034
|
-
return $.createElement(
|
|
4034
|
+
return $.createElement(Eo.Provider, { value: U }, $.createElement(wo, { value: J }, B({ ourProps: N, theirProps: v, defaultTag: tc, features: nc, visible: P === "visible", name: "Transition.Child" })));
|
|
4035
4035
|
}
|
|
4036
4036
|
function Xp(e, t) {
|
|
4037
4037
|
let { show: n, appear: r = !1, unmount: o = !0, ...a } = e, i = Y(null), s = Zu(e), l = ve(...s ? [i, t] : t === null ? [] : [t]);
|
|
@@ -4054,18 +4054,18 @@ function Xp(e, t) {
|
|
|
4054
4054
|
}), y = M(() => {
|
|
4055
4055
|
var w;
|
|
4056
4056
|
d && m(!1), (w = e.beforeLeave) == null || w.call(e);
|
|
4057
|
-
}),
|
|
4058
|
-
return $.createElement(
|
|
4057
|
+
}), k = ue();
|
|
4058
|
+
return $.createElement(Eo.Provider, { value: g }, $.createElement(ko.Provider, { value: v }, k({ ourProps: { ...b, as: Ie, children: $.createElement(rc, { ref: l, ...b, ...a, beforeEnter: x, beforeLeave: y }) }, theirProps: {}, defaultTag: Ie, features: nc, visible: c === "visible", name: "Transition" })));
|
|
4059
4059
|
}
|
|
4060
4060
|
function Jp(e, t) {
|
|
4061
|
-
let n = de(
|
|
4061
|
+
let n = de(ko) !== null, r = Wt() !== null;
|
|
4062
4062
|
return $.createElement($.Fragment, null, !n && r ? $.createElement(Sa, { ref: t, ...e }) : $.createElement(rc, { ref: t, ...e }));
|
|
4063
4063
|
}
|
|
4064
4064
|
let Sa = le(Xp), rc = le(Kp), Qn = le(Jp), yn = Object.assign(Sa, { Child: Qn, Root: Sa });
|
|
4065
4065
|
var Qp = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Qp || {}), Zp = ((e) => (e[e.SetTitleId = 0] = "SetTitleId", e))(Zp || {});
|
|
4066
|
-
let
|
|
4066
|
+
let e0 = { 0(e, t) {
|
|
4067
4067
|
return e.titleId === t.id ? e : { ...e, titleId: t.id };
|
|
4068
|
-
} }, yi =
|
|
4068
|
+
} }, yi = Ee(null);
|
|
4069
4069
|
yi.displayName = "DialogContext";
|
|
4070
4070
|
function $o(e) {
|
|
4071
4071
|
let t = de(yi);
|
|
@@ -4075,8 +4075,8 @@ function $o(e) {
|
|
|
4075
4075
|
}
|
|
4076
4076
|
return t;
|
|
4077
4077
|
}
|
|
4078
|
-
function
|
|
4079
|
-
return $e(t.type,
|
|
4078
|
+
function t0(e, t) {
|
|
4079
|
+
return $e(t.type, e0, e, t);
|
|
4080
4080
|
}
|
|
4081
4081
|
let $s = le(function(e, t) {
|
|
4082
4082
|
let n = Se(), { id: r = `headlessui-dialog-${n}`, open: o, onClose: a, initialFocus: i, role: s = "dialog", autoFocus: l = !0, __demoMode: u = !1, unmount: c = !1, ...f } = e, g = Y(!1);
|
|
@@ -4085,7 +4085,7 @@ let $s = le(function(e, t) {
|
|
|
4085
4085
|
})();
|
|
4086
4086
|
let d = Wt();
|
|
4087
4087
|
o === void 0 && d !== null && (o = (d & xe.Open) === xe.Open);
|
|
4088
|
-
let m = Y(null), p = ve(m, t), v = yt(m.current), b = o ? 0 : 1, [x, y] = uf(
|
|
4088
|
+
let m = Y(null), p = ve(m, t), v = yt(m.current), b = o ? 0 : 1, [x, y] = uf(t0, { titleId: null, descriptionId: null, panelRef: cf() }), k = M(() => a(!1)), w = M((R) => y({ type: 0, id: R })), C = So() ? b === 0 : !1, [I, F] = Uu(), W = { get current() {
|
|
4089
4089
|
var R;
|
|
4090
4090
|
return (R = x.panelRef.current) != null ? R : m.current;
|
|
4091
4091
|
} }, P = hi(), { resolveContainers: O } = Ku({ mainTreeNode: P, portals: I, defaultContainers: [W] }), K = d !== null ? (d & xe.Closing) === xe.Closing : !1;
|
|
@@ -4102,16 +4102,16 @@ let $s = le(function(e, t) {
|
|
|
4102
4102
|
}, [X, r, C]);
|
|
4103
4103
|
let T = ce(X, se((R) => X.selectors.isTop(R, r), [X, r]));
|
|
4104
4104
|
go(T, O, (R) => {
|
|
4105
|
-
R.preventDefault(),
|
|
4105
|
+
R.preventDefault(), k();
|
|
4106
4106
|
}), Tp(T, v?.defaultView, (R) => {
|
|
4107
|
-
R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(),
|
|
4108
|
-
}), po(u || K ? !1 : C, v, O), fo(C, m,
|
|
4109
|
-
let [D, G] = lo(), ee = be(() => [{ dialogState: b, close:
|
|
4110
|
-
C && !u && (
|
|
4107
|
+
R.preventDefault(), R.stopPropagation(), document.activeElement && "blur" in document.activeElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), k();
|
|
4108
|
+
}), po(u || K ? !1 : C, v, O), fo(C, m, k);
|
|
4109
|
+
let [D, G] = lo(), ee = be(() => [{ dialogState: b, close: k, setTitleId: w, unmount: c }, x], [b, k, w, c, x]), S = ye({ open: b === 0 }), U = { ref: p, id: r, role: s, tabIndex: -1, "aria-modal": u ? void 0 : b === 0 ? !0 : void 0, "aria-labelledby": x.titleId, "aria-describedby": D, unmount: c }, re = !Mp(), E = Xt.None;
|
|
4110
|
+
C && !u && (E |= Xt.RestoreFocus, E |= Xt.TabLock, l && (E |= Xt.AutoFocus), re && (E |= Xt.InitialFocus));
|
|
4111
4111
|
let L = ue();
|
|
4112
|
-
return $.createElement(Hu, null, $.createElement(Cs, { force: !0 }, $.createElement(vr, null, $.createElement(yi.Provider, { value: ee }, $.createElement(Yu, { target: m }, $.createElement(Cs, { force: !1 }, $.createElement(G, { slot: S }, $.createElement(F, null, $.createElement(zp, { initialFocus: i, initialFocusFallback: m, containers: O, features:
|
|
4113
|
-
}),
|
|
4114
|
-
function
|
|
4112
|
+
return $.createElement(Hu, null, $.createElement(Cs, { force: !0 }, $.createElement(vr, null, $.createElement(yi.Provider, { value: ee }, $.createElement(Yu, { target: m }, $.createElement(Cs, { force: !1 }, $.createElement(G, { slot: S }, $.createElement(F, null, $.createElement(zp, { initialFocus: i, initialFocusFallback: m, containers: O, features: E }, $.createElement(Za, { value: k }, L({ ourProps: U, theirProps: f, slot: S, defaultTag: n0, features: r0, visible: b === 0, name: "Dialog" })))))))))));
|
|
4113
|
+
}), n0 = "div", r0 = qe.RenderStrategy | qe.Static;
|
|
4114
|
+
function o0(e, t) {
|
|
4115
4115
|
let { transition: n = !1, open: r, ...o } = e, a = Wt(), i = e.hasOwnProperty("open") || a !== null, s = e.hasOwnProperty("onClose");
|
|
4116
4116
|
if (!i && !s) throw new Error("You have to provide an `open` and an `onClose` prop to the `Dialog` component.");
|
|
4117
4117
|
if (!i) throw new Error("You provided an `onClose` prop to the `Dialog`, but forgot an `open` prop.");
|
|
@@ -4120,36 +4120,36 @@ function oh(e, t) {
|
|
|
4120
4120
|
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}`);
|
|
4121
4121
|
return (r !== void 0 || n) && !o.static ? $.createElement(Xr, null, $.createElement(yn, { show: r, transition: n, unmount: o.unmount }, $.createElement($s, { ref: t, ...o }))) : $.createElement(Xr, null, $.createElement($s, { ref: t, open: r, ...o }));
|
|
4122
4122
|
}
|
|
4123
|
-
let
|
|
4124
|
-
function
|
|
4123
|
+
let a0 = "div";
|
|
4124
|
+
function i0(e, t) {
|
|
4125
4125
|
let n = Se(), { id: r = `headlessui-dialog-panel-${n}`, transition: o = !1, ...a } = e, [{ dialogState: i, unmount: s }, l] = $o("Dialog.Panel"), u = ve(t, l.panelRef), c = ye({ open: i === 0 }), f = M((v) => {
|
|
4126
4126
|
v.stopPropagation();
|
|
4127
4127
|
}), g = { ref: u, id: r, onClick: f }, d = o ? Qn : Ie, m = o ? { unmount: s } : {}, p = ue();
|
|
4128
|
-
return $.createElement(d, { ...m }, p({ ourProps: g, theirProps: a, slot: c, defaultTag:
|
|
4128
|
+
return $.createElement(d, { ...m }, p({ ourProps: g, theirProps: a, slot: c, defaultTag: a0, name: "Dialog.Panel" }));
|
|
4129
4129
|
}
|
|
4130
|
-
let
|
|
4131
|
-
function
|
|
4130
|
+
let s0 = "div";
|
|
4131
|
+
function l0(e, t) {
|
|
4132
4132
|
let { transition: n = !1, ...r } = e, [{ dialogState: o, unmount: a }] = $o("Dialog.Backdrop"), i = ye({ open: o === 0 }), s = { ref: t, "aria-hidden": !0 }, l = n ? Qn : Ie, u = n ? { unmount: a } : {}, c = ue();
|
|
4133
|
-
return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: r, slot: i, defaultTag:
|
|
4133
|
+
return $.createElement(l, { ...u }, c({ ourProps: s, theirProps: r, slot: i, defaultTag: s0, name: "Dialog.Backdrop" }));
|
|
4134
4134
|
}
|
|
4135
|
-
let
|
|
4136
|
-
function
|
|
4135
|
+
let u0 = "h2";
|
|
4136
|
+
function c0(e, t) {
|
|
4137
4137
|
let n = Se(), { id: r = `headlessui-dialog-title-${n}`, ...o } = e, [{ dialogState: a, setTitleId: i }] = $o("Dialog.Title"), s = ve(t);
|
|
4138
4138
|
me(() => (i(r), () => i(null)), [r, i]);
|
|
4139
4139
|
let l = ye({ open: a === 0 }), u = { ref: s, id: r };
|
|
4140
|
-
return ue()({ ourProps: u, theirProps: o, slot: l, defaultTag:
|
|
4140
|
+
return ue()({ ourProps: u, theirProps: o, slot: l, defaultTag: u0, name: "Dialog.Title" });
|
|
4141
4141
|
}
|
|
4142
|
-
let
|
|
4143
|
-
function
|
|
4142
|
+
let d0 = le(o0), oc = le(i0), f0 = le(l0), ac = le(c0), g0 = Object.assign(d0, { Panel: oc, Title: ac, Description: or }), m0 = "div";
|
|
4143
|
+
function p0(e, t) {
|
|
4144
4144
|
let n = `headlessui-control-${Se()}`, [r, o] = ir(), [a, i] = lo(), s = Gt(), { disabled: l = s || !1, ...u } = e, c = ye({ disabled: l }), f = { ref: t, disabled: l || void 0, "aria-disabled": l || void 0 }, g = ue();
|
|
4145
|
-
return $.createElement(Wf, { value: l }, $.createElement(o, { value: r }, $.createElement(i, { value: a }, $.createElement(ig, { id: n }, g({ ourProps: f, theirProps: { ...u, children: $.createElement(rg, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag:
|
|
4145
|
+
return $.createElement(Wf, { value: l }, $.createElement(o, { value: r }, $.createElement(i, { value: a }, $.createElement(ig, { id: n }, g({ ourProps: f, theirProps: { ...u, children: $.createElement(rg, null, typeof u.children == "function" ? u.children(c) : u.children) }, slot: c, defaultTag: m0, name: "Field" })))));
|
|
4146
4146
|
}
|
|
4147
|
-
let xi = le(
|
|
4148
|
-
function
|
|
4147
|
+
let xi = le(p0), h0 = "input";
|
|
4148
|
+
function v0(e, t) {
|
|
4149
4149
|
let n = Se(), r = rr(), o = Gt(), { id: a = r || `headlessui-input-${n}`, disabled: i = o || !1, autoFocus: s = !1, invalid: l = !1, ...u } = e, c = ar(), f = so(), { isFocused: g, focusProps: d } = ln({ autoFocus: s }), { isHovered: m, hoverProps: p } = sn({ isDisabled: i }), v = Ze({ ref: t, id: a, "aria-labelledby": c, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: s }, d, p), b = ye({ disabled: i, invalid: l, hover: m, focus: g, autofocus: s });
|
|
4150
|
-
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag:
|
|
4150
|
+
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag: h0, name: "Input" });
|
|
4151
4151
|
}
|
|
4152
|
-
let
|
|
4152
|
+
let b0 = le(v0), Rs = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
4153
4153
|
function Ps(e) {
|
|
4154
4154
|
var t, n;
|
|
4155
4155
|
let r = (t = e.innerText) != null ? t : "", o = e.cloneNode(!0);
|
|
@@ -4159,7 +4159,7 @@ function Ps(e) {
|
|
|
4159
4159
|
let i = a ? (n = o.innerText) != null ? n : "" : r;
|
|
4160
4160
|
return Rs.test(i) && (i = i.replace(Rs, "")), i;
|
|
4161
4161
|
}
|
|
4162
|
-
function
|
|
4162
|
+
function y0(e) {
|
|
4163
4163
|
let t = e.getAttribute("aria-label");
|
|
4164
4164
|
if (typeof t == "string") return t.trim();
|
|
4165
4165
|
let n = e.getAttribute("aria-labelledby");
|
|
@@ -4183,16 +4183,16 @@ function ic(e) {
|
|
|
4183
4183
|
if (!r) return "";
|
|
4184
4184
|
let o = r.innerText;
|
|
4185
4185
|
if (t.current === o) return n.current;
|
|
4186
|
-
let a =
|
|
4186
|
+
let a = y0(r).trim().toLowerCase();
|
|
4187
4187
|
return t.current = o, n.current = a, a;
|
|
4188
4188
|
});
|
|
4189
4189
|
}
|
|
4190
|
-
var
|
|
4190
|
+
var x0 = Object.defineProperty, w0 = (e, t, n) => t in e ? x0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Fs = (e, t, n) => (w0(e, typeof t != "symbol" ? t + "" : t, n), n), Me = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Me || {}), At = ((e) => (e[e.Single = 0] = "Single", e[e.Multi = 1] = "Multi", e))(At || {}), jr = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(jr || {}), sc = ((e) => (e[e.OpenListbox = 0] = "OpenListbox", e[e.CloseListbox = 1] = "CloseListbox", e[e.GoToOption = 2] = "GoToOption", e[e.Search = 3] = "Search", e[e.ClearSearch = 4] = "ClearSearch", e[e.SelectOption = 5] = "SelectOption", e[e.RegisterOptions = 6] = "RegisterOptions", e[e.UnregisterOptions = 7] = "UnregisterOptions", e[e.SetButtonElement = 8] = "SetButtonElement", e[e.SetOptionsElement = 9] = "SetOptionsElement", e[e.SortOptions = 10] = "SortOptions", e[e.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", e))(sc || {});
|
|
4191
4191
|
function Is(e, t = (n) => n) {
|
|
4192
4192
|
let n = e.activeOptionIndex !== null ? e.options[e.activeOptionIndex] : null, r = ri(t(e.options.slice()), (a) => a.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
|
|
4193
4193
|
return o === -1 && (o = null), { options: r, activeOptionIndex: o };
|
|
4194
4194
|
}
|
|
4195
|
-
let
|
|
4195
|
+
let S0 = { 1(e) {
|
|
4196
4196
|
if (e.dataRef.current.disabled || e.listboxState === 1) return e;
|
|
4197
4197
|
let t = e.buttonElement ? Ot.Tracked(pi(e.buttonElement)) : e.buttonPositionState;
|
|
4198
4198
|
return { ...e, activeOptionIndex: null, pendingFocus: { focus: oe.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: t };
|
|
@@ -4258,7 +4258,7 @@ let Sh = { 1(e) {
|
|
|
4258
4258
|
return { ...e, options: n, activationTrigger: 1 };
|
|
4259
4259
|
}, 8: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 9: (e, t) => e.optionsElement === t.element ? e : { ...e, optionsElement: t.element }, 10: (e) => e.pendingShouldSort ? { ...e, ...Is(e), pendingShouldSort: !1 } : e, 11(e) {
|
|
4260
4260
|
return e.buttonPositionState.kind !== "Tracked" ? e : { ...e, buttonPositionState: Ot.Moved };
|
|
4261
|
-
} },
|
|
4261
|
+
} }, k0 = class lc extends co {
|
|
4262
4262
|
constructor(t) {
|
|
4263
4263
|
super(t), Fs(this, "actions", { onChange: (n) => {
|
|
4264
4264
|
let { onChange: r, compare: o, mode: a, value: i } = this.state.dataRef.current;
|
|
@@ -4341,10 +4341,10 @@ let Sh = { 1(e) {
|
|
|
4341
4341
|
return new lc({ id: t, dataRef: { current: {} }, listboxState: n ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: oe.Nothing }, frozenValue: !1, __demoMode: n, buttonPositionState: Ot.Idle });
|
|
4342
4342
|
}
|
|
4343
4343
|
reduce(t, n) {
|
|
4344
|
-
return $e(n.type,
|
|
4344
|
+
return $e(n.type, S0, t, n);
|
|
4345
4345
|
}
|
|
4346
4346
|
};
|
|
4347
|
-
const uc =
|
|
4347
|
+
const uc = Ee(null);
|
|
4348
4348
|
function wi(e) {
|
|
4349
4349
|
let t = de(uc);
|
|
4350
4350
|
if (t === null) {
|
|
@@ -4354,10 +4354,10 @@ function wi(e) {
|
|
|
4354
4354
|
return t;
|
|
4355
4355
|
}
|
|
4356
4356
|
function cc({ id: e, __demoMode: t = !1 }) {
|
|
4357
|
-
let n = be(() =>
|
|
4357
|
+
let n = be(() => k0.new({ id: e, __demoMode: t }), []);
|
|
4358
4358
|
return hr(() => n.dispose()), n;
|
|
4359
4359
|
}
|
|
4360
|
-
let Ro =
|
|
4360
|
+
let Ro = Ee(null);
|
|
4361
4361
|
Ro.displayName = "ListboxDataContext";
|
|
4362
4362
|
function br(e) {
|
|
4363
4363
|
let t = de(Ro);
|
|
@@ -4367,11 +4367,11 @@ function br(e) {
|
|
|
4367
4367
|
}
|
|
4368
4368
|
return t;
|
|
4369
4369
|
}
|
|
4370
|
-
let
|
|
4371
|
-
function
|
|
4370
|
+
let E0 = Ie;
|
|
4371
|
+
function C0(e, t) {
|
|
4372
4372
|
let n = Se(), r = Gt(), { value: o, defaultValue: a, form: i, name: s, onChange: l, by: u, invalid: c = !1, disabled: f = r || !1, horizontal: g = !1, multiple: d = !1, __demoMode: m = !1, ...p } = e;
|
|
4373
4373
|
const v = g ? "horizontal" : "vertical";
|
|
4374
|
-
let b = ve(t), x = Jl(a), [y = d ? [] : void 0,
|
|
4374
|
+
let b = ve(t), x = Jl(a), [y = d ? [] : void 0, k] = Xl(o, l, x), w = cc({ id: n, __demoMode: m }), C = Y({ static: !1, hold: !1 }), I = Y(/* @__PURE__ */ new Map()), F = xg(u), W = se((L) => $e(P.mode, { [At.Multi]: () => y.some((R) => F(R, L)), [At.Single]: () => F(y, L) }), [y]), P = ye({ value: y, disabled: f, invalid: c, mode: d ? At.Multi : At.Single, orientation: v, onChange: k, compare: F, isSelected: W, optionsPropsRef: C, listRef: I });
|
|
4375
4375
|
fe(() => {
|
|
4376
4376
|
w.state.dataRef.current = P;
|
|
4377
4377
|
}, [P]);
|
|
@@ -4380,12 +4380,12 @@ function Ch(e, t) {
|
|
|
4380
4380
|
w.send({ type: sc.CloseListbox }), dr(R, cr.Loose) || (L.preventDefault(), T?.focus());
|
|
4381
4381
|
});
|
|
4382
4382
|
let G = ye({ open: O === Me.Open, disabled: f, invalid: c, value: y }), [ee, S] = ir({ inherit: !0 }), U = { ref: b }, re = se(() => {
|
|
4383
|
-
if (x !== void 0) return
|
|
4384
|
-
}, [
|
|
4385
|
-
return $.createElement(S, { value: ee, props: { htmlFor: T?.id }, slot: { open: O === Me.Open, disabled: f } }, $.createElement(mi, null, $.createElement(uc.Provider, { value: w }, $.createElement(Ro.Provider, { value: P }, $.createElement(wo, { value: $e(O, { [Me.Open]: xe.Open, [Me.Closed]: xe.Closed }) }, s != null && y != null && $.createElement(ru, { disabled: f, data: { [s]: y }, form: i, onReset: re }),
|
|
4383
|
+
if (x !== void 0) return k?.(x);
|
|
4384
|
+
}, [k, x]), E = ue();
|
|
4385
|
+
return $.createElement(S, { value: ee, props: { htmlFor: T?.id }, slot: { open: O === Me.Open, disabled: f } }, $.createElement(mi, null, $.createElement(uc.Provider, { value: w }, $.createElement(Ro.Provider, { value: P }, $.createElement(wo, { value: $e(O, { [Me.Open]: xe.Open, [Me.Closed]: xe.Closed }) }, s != null && y != null && $.createElement(ru, { disabled: f, data: { [s]: y }, form: i, onReset: re }), E({ ourProps: U, theirProps: p, slot: G, defaultTag: E0, name: "Listbox" }))))));
|
|
4386
4386
|
}
|
|
4387
|
-
let $
|
|
4388
|
-
function
|
|
4387
|
+
let $0 = "button";
|
|
4388
|
+
function R0(e, t) {
|
|
4389
4389
|
let n = Se(), r = rr(), o = br("Listbox.Button"), a = wi("Listbox.Button"), { id: i = r || `headlessui-listbox-button-${n}`, disabled: s = o.disabled || !1, autoFocus: l = !1, ...u } = e, c = ve(t, di(), a.actions.setButtonElement), f = Du(), [g, d, m] = ce(a, (D) => [D.listboxState, D.buttonElement, D.optionsElement]), p = g === Me.Open;
|
|
4390
4390
|
wu(p, { trigger: d, action: se((D) => {
|
|
4391
4391
|
if (d != null && d.contains(D.target)) return Ft.Ignore;
|
|
@@ -4410,14 +4410,14 @@ function Rh(e, t) {
|
|
|
4410
4410
|
}), x = fu((D) => {
|
|
4411
4411
|
var G;
|
|
4412
4412
|
a.state.listboxState === Me.Open ? (en(() => a.actions.closeListbox()), (G = a.state.buttonElement) == null || G.focus({ preventScroll: !0 })) : (D.preventDefault(), a.actions.openListbox({ focus: oe.Nothing }));
|
|
4413
|
-
}), y = M((D) => D.preventDefault()),
|
|
4414
|
-
return ue()({ ourProps: T, theirProps: u, slot: K, defaultTag: $
|
|
4413
|
+
}), y = M((D) => D.preventDefault()), k = ar([i]), w = so(), { isFocusVisible: C, focusProps: I } = ln({ autoFocus: l }), { isHovered: F, hoverProps: W } = sn({ isDisabled: s }), { pressed: P, pressProps: O } = nr({ disabled: s }), K = ye({ open: g === Me.Open, active: P || g === Me.Open, disabled: s, invalid: o.invalid, value: o.value, hover: F, focus: C, autofocus: l }), X = ce(a, (D) => D.listboxState === Me.Open), T = Ze(f(), { ref: c, id: i, type: mo(e, d), "aria-haspopup": "listbox", "aria-controls": m?.id, "aria-expanded": X, "aria-labelledby": k, "aria-describedby": w, disabled: s || void 0, autoFocus: l, onKeyDown: v, onKeyUp: b, onKeyPress: y }, x, I, W, O);
|
|
4414
|
+
return ue()({ ourProps: T, theirProps: u, slot: K, defaultTag: $0, name: "Listbox.Button" });
|
|
4415
4415
|
}
|
|
4416
|
-
let dc =
|
|
4417
|
-
function
|
|
4416
|
+
let dc = Ee(!1), P0 = "div", F0 = qe.RenderStrategy | qe.Static;
|
|
4417
|
+
function I0(e, t) {
|
|
4418
4418
|
let n = Se(), { id: r = `headlessui-listbox-options-${n}`, anchor: o, portal: a = !1, modal: i = !0, transition: s = !1, ...l } = e, u = ci(o), [c, f] = ae(null);
|
|
4419
4419
|
u && (a = !0);
|
|
4420
|
-
let g = br("Listbox.Options"), d = wi("Listbox.Options"), [m, p, v, b] = ce(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), x = yt(p), y = yt(v),
|
|
4420
|
+
let g = br("Listbox.Options"), d = wi("Listbox.Options"), [m, p, v, b] = ce(d, (B) => [B.listboxState, B.buttonElement, B.optionsElement, B.__demoMode]), x = yt(p), y = yt(v), k = Wt(), [w, C] = gr(s, c, k !== null ? (k & xe.Open) === xe.Open : m === Me.Open);
|
|
4421
4421
|
fo(w, p, d.actions.closeListbox);
|
|
4422
4422
|
let I = b ? !1 : i && m === Me.Open;
|
|
4423
4423
|
po(I, y);
|
|
@@ -4426,7 +4426,7 @@ function Ih(e, t) {
|
|
|
4426
4426
|
let W = ce(d, d.selectors.didButtonMove) ? !1 : w, P = ce(d, d.selectors.hasFrozenValue) && !e.static, O = zu(P, g.value), K = se((B) => g.compare(O, B), [g.compare, O]), X = ce(d, (B) => {
|
|
4427
4427
|
var j;
|
|
4428
4428
|
if (u == null || !((j = u?.to) != null && j.includes("selection"))) return null;
|
|
4429
|
-
let pe = B.options.findIndex((
|
|
4429
|
+
let pe = B.options.findIndex((ke) => K(ke.dataRef.current.value));
|
|
4430
4430
|
return pe === -1 && (pe = 0), pe;
|
|
4431
4431
|
}), T = (() => {
|
|
4432
4432
|
if (u == null) return;
|
|
@@ -4466,14 +4466,14 @@ function Ih(e, t) {
|
|
|
4466
4466
|
B.key.length === 1 && (d.actions.search(B.key), U.setTimeout(() => d.actions.clearSearch(), 350));
|
|
4467
4467
|
break;
|
|
4468
4468
|
}
|
|
4469
|
-
}),
|
|
4469
|
+
}), E = ce(d, (B) => {
|
|
4470
4470
|
var j;
|
|
4471
4471
|
return (j = B.buttonElement) == null ? void 0 : j.id;
|
|
4472
|
-
}), L = ye({ open: m === Me.Open }), R = Ze(u ? ee() : {}, { id: r, ref: S, "aria-activedescendant": ce(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === At.Multi ? !0 : void 0, "aria-labelledby":
|
|
4473
|
-
return $.createElement(vr, { enabled: a ? e.static || w : !1, ownerDocument: x }, $.createElement(Ro.Provider, { value: J }, N({ ourProps: R, theirProps: l, slot: L, defaultTag:
|
|
4472
|
+
}), L = ye({ open: m === Me.Open }), R = Ze(u ? ee() : {}, { id: r, ref: S, "aria-activedescendant": ce(d, d.selectors.activeDescendantId), "aria-multiselectable": g.mode === At.Multi ? !0 : void 0, "aria-labelledby": E, "aria-orientation": g.orientation, onKeyDown: re, role: "listbox", tabIndex: m === Me.Open ? 0 : void 0, style: { ...l.style, ...G, "--button-width": ei(w, p, !0).width }, ...fr(C) }), N = ue(), J = be(() => g.mode === At.Multi ? g : { ...g, isSelected: K }, [g, K]);
|
|
4473
|
+
return $.createElement(vr, { enabled: a ? e.static || w : !1, ownerDocument: x }, $.createElement(Ro.Provider, { value: J }, N({ ourProps: R, theirProps: l, slot: L, defaultTag: P0, features: F0, visible: W, name: "Listbox.Options" })));
|
|
4474
4474
|
}
|
|
4475
|
-
let
|
|
4476
|
-
function
|
|
4475
|
+
let A0 = "div";
|
|
4476
|
+
function N0(e, t) {
|
|
4477
4477
|
let n = Se(), { id: r = `headlessui-listbox-option-${n}`, disabled: o = !1, value: a, ...i } = e, s = de(dc) === !0, l = br("Listbox.Option"), u = wi("Listbox.Option"), c = ce(u, (P) => u.selectors.isActive(P, r)), f = l.isSelected(a), g = Y(null), d = ic(g), m = st({ disabled: o, value: a, domRef: g, get textValue() {
|
|
4478
4478
|
return d();
|
|
4479
4479
|
} }), p = ve(t, g, (P) => {
|
|
@@ -4493,25 +4493,25 @@ function Nh(e, t) {
|
|
|
4493
4493
|
}), x = M(() => {
|
|
4494
4494
|
if (o) return u.actions.goToOption({ focus: oe.Nothing });
|
|
4495
4495
|
u.actions.goToOption({ focus: oe.Specific, id: r });
|
|
4496
|
-
}), y = Su(),
|
|
4496
|
+
}), y = Su(), k = M((P) => y.update(P)), w = M((P) => {
|
|
4497
4497
|
y.wasMoved(P) && (o || c && u.state.activationTrigger === jr.Pointer || u.actions.goToOption({ focus: oe.Specific, id: r }, jr.Pointer));
|
|
4498
4498
|
}), C = M((P) => {
|
|
4499
4499
|
y.wasMoved(P) && (o || c && u.state.activationTrigger === jr.Pointer && u.actions.goToOption({ focus: oe.Nothing }));
|
|
4500
|
-
}), I = ye({ active: c, focus: c, selected: f, disabled: o, selectedOption: f && s }), F = s ? {} : { id: r, ref: p, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter:
|
|
4501
|
-
return !f && s ? null : W({ ourProps: F, theirProps: i, slot: I, defaultTag:
|
|
4500
|
+
}), I = ye({ active: c, focus: c, selected: f, disabled: o, selectedOption: f && s }), F = s ? {} : { id: r, ref: p, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": f, disabled: void 0, onClick: b, onFocus: x, onPointerEnter: k, onMouseEnter: k, onPointerMove: w, onMouseMove: w, onPointerLeave: C, onMouseLeave: C }, W = ue();
|
|
4501
|
+
return !f && s ? null : W({ ourProps: F, theirProps: i, slot: I, defaultTag: A0, name: "Listbox.Option" });
|
|
4502
4502
|
}
|
|
4503
|
-
let
|
|
4504
|
-
function
|
|
4503
|
+
let O0 = Ie;
|
|
4504
|
+
function _0(e, t) {
|
|
4505
4505
|
let { options: n, placeholder: r, ...o } = e, a = { ref: ve(t) }, i = br("ListboxSelectedOption"), s = ye({}), l = i.value === void 0 || i.value === null || i.mode === At.Multi && Array.isArray(i.value) && i.value.length === 0, u = ue();
|
|
4506
|
-
return $.createElement(dc.Provider, { value: !0 }, u({ ourProps: a, theirProps: { ...o, children: $.createElement($.Fragment, null, r && l ? r : n) }, slot: s, defaultTag:
|
|
4506
|
+
return $.createElement(dc.Provider, { value: !0 }, u({ ourProps: a, theirProps: { ...o, children: $.createElement($.Fragment, null, r && l ? r : n) }, slot: s, defaultTag: O0, name: "ListboxSelectedOption" }));
|
|
4507
4507
|
}
|
|
4508
|
-
let
|
|
4509
|
-
var
|
|
4508
|
+
let T0 = le(C0), fc = le(R0), gc = sr, mc = le(I0), pc = le(N0), M0 = le(_0), j0 = Object.assign(T0, { Button: fc, Label: gc, Options: mc, Option: pc, SelectedOption: M0 });
|
|
4509
|
+
var L0 = Object.defineProperty, D0 = (e, t, n) => t in e ? L0(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, As = (e, t, n) => (D0(e, typeof t != "symbol" ? t + "" : t, n), n), _e = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(_e || {}), Jr = ((e) => (e[e.Pointer = 0] = "Pointer", e[e.Other = 1] = "Other", e))(Jr || {}), 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 || {});
|
|
4510
4510
|
function Ns(e, t = (n) => n) {
|
|
4511
4511
|
let n = e.activeItemIndex !== null ? e.items[e.activeItemIndex] : null, r = ri(t(e.items.slice()), (a) => a.dataRef.current.domRef.current), o = n ? r.indexOf(n) : null;
|
|
4512
4512
|
return o === -1 && (o = null), { items: r, activeItemIndex: o };
|
|
4513
4513
|
}
|
|
4514
|
-
let
|
|
4514
|
+
let V0 = { 1(e) {
|
|
4515
4515
|
if (e.menuState === 1) return e;
|
|
4516
4516
|
let t = e.buttonElement ? Ot.Tracked(pi(e.buttonElement)) : e.buttonPositionState;
|
|
4517
4517
|
return { ...e, activeItemIndex: null, pendingFocus: { focus: oe.Nothing }, menuState: 1, buttonPositionState: t };
|
|
@@ -4565,7 +4565,7 @@ let Vh = { 1(e) {
|
|
|
4565
4565
|
return { ...e, items: n, activationTrigger: 1 };
|
|
4566
4566
|
}, 7: (e, t) => e.buttonElement === t.element ? e : { ...e, buttonElement: t.element }, 8: (e, t) => e.itemsElement === t.element ? e : { ...e, itemsElement: t.element }, 9: (e) => e.pendingShouldSort ? { ...e, ...Ns(e), pendingShouldSort: !1 } : e, 10(e) {
|
|
4567
4567
|
return e.buttonPositionState.kind !== "Tracked" ? e : { ...e, buttonPositionState: Ot.Moved };
|
|
4568
|
-
} },
|
|
4568
|
+
} }, z0 = class hc extends co {
|
|
4569
4569
|
constructor(t) {
|
|
4570
4570
|
super(t), As(this, "actions", { registerItem: Ln(() => {
|
|
4571
4571
|
let n = [], r = /* @__PURE__ */ new Set();
|
|
@@ -4610,10 +4610,10 @@ let Vh = { 1(e) {
|
|
|
4610
4610
|
return new hc({ id: t, __demoMode: n, menuState: n ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: oe.Nothing }, buttonPositionState: Ot.Idle });
|
|
4611
4611
|
}
|
|
4612
4612
|
reduce(t, n) {
|
|
4613
|
-
return $e(n.type,
|
|
4613
|
+
return $e(n.type, V0, t, n);
|
|
4614
4614
|
}
|
|
4615
4615
|
};
|
|
4616
|
-
const vc =
|
|
4616
|
+
const vc = Ee(null);
|
|
4617
4617
|
function Si(e) {
|
|
4618
4618
|
let t = de(vc);
|
|
4619
4619
|
if (t === null) {
|
|
@@ -4623,11 +4623,11 @@ function Si(e) {
|
|
|
4623
4623
|
return t;
|
|
4624
4624
|
}
|
|
4625
4625
|
function bc({ id: e, __demoMode: t = !1 }) {
|
|
4626
|
-
let n = be(() =>
|
|
4626
|
+
let n = be(() => z0.new({ id: e, __demoMode: t }), []);
|
|
4627
4627
|
return hr(() => n.dispose()), n;
|
|
4628
4628
|
}
|
|
4629
|
-
let
|
|
4630
|
-
function
|
|
4629
|
+
let H0 = Ie;
|
|
4630
|
+
function B0(e, t) {
|
|
4631
4631
|
let n = Se(), { __demoMode: r = !1, ...o } = e, a = bc({ id: n, __demoMode: r }), [i, s, l] = ce(a, (v) => [v.menuState, v.itemsElement, v.buttonElement]), u = ve(t), c = un.get(null), f = ce(c, se((v) => c.selectors.isTop(v, n), [c, n]));
|
|
4632
4632
|
go(f, [l, s], (v, b) => {
|
|
4633
4633
|
var x;
|
|
@@ -4636,10 +4636,10 @@ function Bh(e, t) {
|
|
|
4636
4636
|
let g = M(() => {
|
|
4637
4637
|
a.send({ type: he.CloseMenu });
|
|
4638
4638
|
}), d = ye({ open: i === _e.Open, close: g }), m = { ref: u }, p = ue();
|
|
4639
|
-
return $.createElement(mi, null, $.createElement(vc.Provider, { value: a }, $.createElement(wo, { value: $e(i, { [_e.Open]: xe.Open, [_e.Closed]: xe.Closed }) }, p({ ourProps: m, theirProps: o, slot: d, defaultTag:
|
|
4639
|
+
return $.createElement(mi, null, $.createElement(vc.Provider, { value: a }, $.createElement(wo, { value: $e(i, { [_e.Open]: xe.Open, [_e.Closed]: xe.Closed }) }, p({ ourProps: m, theirProps: o, slot: d, defaultTag: H0, name: "Menu" }))));
|
|
4640
4640
|
}
|
|
4641
|
-
let
|
|
4642
|
-
function
|
|
4641
|
+
let G0 = "button";
|
|
4642
|
+
function W0(e, t) {
|
|
4643
4643
|
let n = Si("Menu.Button"), r = Se(), { id: o = `headlessui-menu-button-${r}`, disabled: a = !1, autoFocus: i = !1, ...s } = e, l = Y(null), u = Du(), c = ve(t, l, di(), M((P) => n.send({ type: he.SetButtonElement, element: P }))), f = M((P) => {
|
|
4644
4644
|
switch (P.key) {
|
|
4645
4645
|
case te.Space:
|
|
@@ -4662,19 +4662,19 @@ function Wh(e, t) {
|
|
|
4662
4662
|
let b = fu((P) => {
|
|
4663
4663
|
var O;
|
|
4664
4664
|
a || (d === _e.Open ? (en(() => n.send({ type: he.CloseMenu })), (O = l.current) == null || O.focus({ preventScroll: !0 })) : (P.preventDefault(), n.send({ type: he.OpenMenu, focus: { focus: oe.Nothing }, trigger: Jr.Pointer })));
|
|
4665
|
-
}), { isFocusVisible: x, focusProps: y } = ln({ autoFocus: i }), { isHovered:
|
|
4666
|
-
return ue()({ ourProps: W, theirProps: s, slot: F, defaultTag:
|
|
4665
|
+
}), { isFocusVisible: x, focusProps: y } = ln({ autoFocus: i }), { isHovered: k, hoverProps: w } = sn({ isDisabled: a }), { pressed: C, pressProps: I } = nr({ disabled: a }), F = ye({ open: d === _e.Open, active: C || d === _e.Open, disabled: a, hover: k, focus: x, autofocus: i }), W = Ze(u(), { ref: c, id: o, type: mo(e, l.current), "aria-haspopup": "menu", "aria-controls": p?.id, "aria-expanded": d === _e.Open, disabled: a || void 0, autoFocus: i, onKeyDown: f, onKeyUp: g }, b, y, w, I);
|
|
4666
|
+
return ue()({ ourProps: W, theirProps: s, slot: F, defaultTag: G0, name: "Menu.Button" });
|
|
4667
4667
|
}
|
|
4668
|
-
let
|
|
4669
|
-
function
|
|
4670
|
-
let n = Se(), { id: r = `headlessui-menu-items-${n}`, anchor: o, portal: a = !1, modal: i = !0, transition: s = !1, ...l } = e, u = ci(o), c = Si("Menu.Items"), [f, g] = gi(u), d = fi(), [m, p] = ae(null), v = ve(t, u ? f : null, M((S) => c.send({ type: he.SetItemsElement, element: S })), p), [b, x] = ce(c, (S) => [S.menuState, S.buttonElement]), y = yt(x),
|
|
4668
|
+
let U0 = "div", Y0 = qe.RenderStrategy | qe.Static;
|
|
4669
|
+
function q0(e, t) {
|
|
4670
|
+
let n = Se(), { id: r = `headlessui-menu-items-${n}`, anchor: o, portal: a = !1, modal: i = !0, transition: s = !1, ...l } = e, u = ci(o), c = Si("Menu.Items"), [f, g] = gi(u), d = fi(), [m, p] = ae(null), v = ve(t, u ? f : null, M((S) => c.send({ type: he.SetItemsElement, element: S })), p), [b, x] = ce(c, (S) => [S.menuState, S.buttonElement]), y = yt(x), k = yt(m);
|
|
4671
4671
|
u && (a = !0);
|
|
4672
4672
|
let w = Wt(), [C, I] = gr(s, m, w !== null ? (w & xe.Open) === xe.Open : b === _e.Open);
|
|
4673
4673
|
fo(C, x, () => {
|
|
4674
4674
|
c.send({ type: he.CloseMenu });
|
|
4675
4675
|
});
|
|
4676
4676
|
let F = ce(c, (S) => S.__demoMode), W = F ? !1 : i && b === _e.Open;
|
|
4677
|
-
po(W,
|
|
4677
|
+
po(W, k);
|
|
4678
4678
|
let P = F ? !1 : i && b === _e.Open;
|
|
4679
4679
|
ni(P, { allowed: se(() => [x, m], [x, m]) });
|
|
4680
4680
|
let O = ce(c, c.selectors.didButtonMove) ? !1 : C;
|
|
@@ -4687,7 +4687,7 @@ function qh(e, t) {
|
|
|
4687
4687
|
S.setAttribute("role", "none");
|
|
4688
4688
|
} });
|
|
4689
4689
|
let K = ct(), X = M((S) => {
|
|
4690
|
-
var U, re,
|
|
4690
|
+
var U, re, E;
|
|
4691
4691
|
switch (K.dispose(), S.key) {
|
|
4692
4692
|
case te.Space:
|
|
4693
4693
|
if (c.state.searchQuery !== "") return S.preventDefault(), S.stopPropagation(), c.send({ type: he.Search, value: S.key });
|
|
@@ -4709,7 +4709,7 @@ function qh(e, t) {
|
|
|
4709
4709
|
case te.PageDown:
|
|
4710
4710
|
return S.preventDefault(), S.stopPropagation(), c.send({ type: he.GoToItem, focus: oe.Last });
|
|
4711
4711
|
case te.Escape:
|
|
4712
|
-
S.preventDefault(), S.stopPropagation(), en(() => c.send({ type: he.CloseMenu })), (
|
|
4712
|
+
S.preventDefault(), S.stopPropagation(), en(() => c.send({ type: he.CloseMenu })), (E = c.state.buttonElement) == null || E.focus({ preventScroll: !0 });
|
|
4713
4713
|
break;
|
|
4714
4714
|
case te.Tab:
|
|
4715
4715
|
S.preventDefault(), S.stopPropagation(), en(() => c.send({ type: he.CloseMenu })), bu(c.state.buttonElement, S.shiftKey ? Re.Previous : Re.Next);
|
|
@@ -4724,10 +4724,10 @@ function qh(e, t) {
|
|
|
4724
4724
|
var U;
|
|
4725
4725
|
return (U = S.buttonElement) == null ? void 0 : U.id;
|
|
4726
4726
|
}), id: r, onKeyDown: X, onKeyUp: T, role: "menu", tabIndex: b === _e.Open ? 0 : void 0, ref: v, style: { ...l.style, ...g, "--button-width": ei(C, x, !0).width }, ...fr(I) }), ee = ue();
|
|
4727
|
-
return $.createElement(vr, { enabled: a ? e.static || C : !1, ownerDocument: y }, ee({ ourProps: G, theirProps: l, slot: D, defaultTag:
|
|
4727
|
+
return $.createElement(vr, { enabled: a ? e.static || C : !1, ownerDocument: y }, ee({ ourProps: G, theirProps: l, slot: D, defaultTag: U0, features: Y0, visible: O, name: "Menu.Items" }));
|
|
4728
4728
|
}
|
|
4729
|
-
let
|
|
4730
|
-
function
|
|
4729
|
+
let K0 = Ie;
|
|
4730
|
+
function X0(e, t) {
|
|
4731
4731
|
let n = Se(), { id: r = `headlessui-menu-item-${n}`, disabled: o = !1, ...a } = e, i = Si("Menu.Item"), s = ce(i, (O) => i.selectors.isActive(O, r)), l = Y(null), u = ve(t, l), c = ce(i, (O) => i.selectors.shouldScrollIntoView(O, r));
|
|
4732
4732
|
fe(() => {
|
|
4733
4733
|
if (c) return Le().requestAnimationFrame(() => {
|
|
@@ -4753,29 +4753,29 @@ function Xh(e, t) {
|
|
|
4753
4753
|
v.wasMoved(O) && (o || s || i.send({ type: he.GoToItem, focus: oe.Specific, id: r, trigger: Jr.Pointer }));
|
|
4754
4754
|
}), y = M((O) => {
|
|
4755
4755
|
v.wasMoved(O) && (o || s && i.state.activationTrigger === Jr.Pointer && i.send({ type: he.GoToItem, focus: oe.Nothing }));
|
|
4756
|
-
}), [
|
|
4757
|
-
return $.createElement(w, null, $.createElement(I, null, P({ ourProps: W, theirProps: a, slot: F, defaultTag:
|
|
4756
|
+
}), [k, w] = ir(), [C, I] = lo(), F = ye({ active: s, focus: s, disabled: o, close: d }), W = { id: r, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": k, "aria-describedby": C, disabled: void 0, onClick: m, onFocus: p, onPointerEnter: b, onMouseEnter: b, onPointerMove: x, onMouseMove: x, onPointerLeave: y, onMouseLeave: y }, P = ue();
|
|
4757
|
+
return $.createElement(w, null, $.createElement(I, null, P({ ourProps: W, theirProps: a, slot: F, defaultTag: K0, name: "Menu.Item" })));
|
|
4758
4758
|
}
|
|
4759
|
-
let
|
|
4760
|
-
function
|
|
4759
|
+
let J0 = "div";
|
|
4760
|
+
function Q0(e, t) {
|
|
4761
4761
|
let [n, r] = ir(), o = e, a = { ref: t, "aria-labelledby": n, role: "group" }, i = ue();
|
|
4762
|
-
return $.createElement(r, null, i({ ourProps: a, theirProps: o, slot: {}, defaultTag:
|
|
4762
|
+
return $.createElement(r, null, i({ ourProps: a, theirProps: o, slot: {}, defaultTag: J0, name: "Menu.Section" }));
|
|
4763
4763
|
}
|
|
4764
|
-
let
|
|
4765
|
-
function
|
|
4764
|
+
let Z0 = "header";
|
|
4765
|
+
function eh(e, t) {
|
|
4766
4766
|
let n = Se(), { id: r = `headlessui-menu-heading-${n}`, ...o } = e, a = Qa();
|
|
4767
4767
|
fe(() => a.register(r), [r, a.register]);
|
|
4768
4768
|
let i = { id: r, ref: t, role: "presentation", ...a.props };
|
|
4769
|
-
return ue()({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
4769
|
+
return ue()({ ourProps: i, theirProps: o, slot: {}, defaultTag: Z0, name: "Menu.Heading" });
|
|
4770
4770
|
}
|
|
4771
|
-
let
|
|
4772
|
-
function
|
|
4771
|
+
let th = "div";
|
|
4772
|
+
function nh(e, t) {
|
|
4773
4773
|
let n = e, r = { ref: t, role: "separator" };
|
|
4774
|
-
return ue()({ ourProps: r, theirProps: n, slot: {}, defaultTag:
|
|
4774
|
+
return ue()({ ourProps: r, theirProps: n, slot: {}, defaultTag: th, name: "Menu.Separator" });
|
|
4775
4775
|
}
|
|
4776
|
-
let
|
|
4777
|
-
var
|
|
4778
|
-
let
|
|
4776
|
+
let rh = le(B0), yc = le(W0), xc = le(q0), Lr = le(X0), oh = le(Q0), ah = le(eh), ih = le(nh), sh = Object.assign(rh, { Button: yc, Items: xc, Item: Lr, Section: oh, Heading: ah, Separator: ih });
|
|
4777
|
+
var lh = Object.defineProperty, uh = (e, t, n) => t in e ? lh(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Os = (e, t, n) => (uh(e, typeof t != "symbol" ? t + "" : t, n), n), Pe = ((e) => (e[e.Open = 0] = "Open", e[e.Closed = 1] = "Closed", e))(Pe || {}), ch = ((e) => (e[e.OpenPopover = 0] = "OpenPopover", e[e.ClosePopover = 1] = "ClosePopover", e[e.SetButton = 2] = "SetButton", e[e.SetButtonId = 3] = "SetButtonId", e[e.SetPanel = 4] = "SetPanel", e[e.SetPanelId = 5] = "SetPanelId", e))(ch || {});
|
|
4778
|
+
let dh = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoMode: !1 }, 1(e) {
|
|
4779
4779
|
return e.popoverState === 1 ? e : { ...e, popoverState: 1, __demoMode: !1 };
|
|
4780
4780
|
}, 2(e, t) {
|
|
4781
4781
|
return e.button === t.button ? e : { ...e, button: t.button };
|
|
@@ -4785,7 +4785,7 @@ let d0 = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoM
|
|
|
4785
4785
|
return e.panel === t.panel ? e : { ...e, panel: t.panel };
|
|
4786
4786
|
}, 5(e, t) {
|
|
4787
4787
|
return e.panelId === t.panelId ? e : { ...e, panelId: t.panelId };
|
|
4788
|
-
} },
|
|
4788
|
+
} }, fh = class wc extends co {
|
|
4789
4789
|
constructor(t) {
|
|
4790
4790
|
super(t), Os(this, "actions", { close: () => this.send({ type: 1 }), refocusableClose: (n) => {
|
|
4791
4791
|
this.actions.close();
|
|
@@ -4808,10 +4808,10 @@ let d0 = { 0: (e) => e.popoverState === 0 ? e : { ...e, popoverState: 0, __demoM
|
|
|
4808
4808
|
return new wc({ id: t, __demoMode: n, popoverState: n ? 0 : 1, buttons: { current: [] }, button: null, buttonId: null, panel: null, panelId: null, beforePanelSentinel: { current: null }, afterPanelSentinel: { current: null }, afterButtonSentinel: { current: null } });
|
|
4809
4809
|
}
|
|
4810
4810
|
reduce(t, n) {
|
|
4811
|
-
return $e(n.type,
|
|
4811
|
+
return $e(n.type, dh, t, n);
|
|
4812
4812
|
}
|
|
4813
4813
|
};
|
|
4814
|
-
const Sc =
|
|
4814
|
+
const Sc = Ee(null);
|
|
4815
4815
|
function Po(e) {
|
|
4816
4816
|
let t = de(Sc);
|
|
4817
4817
|
if (t === null) {
|
|
@@ -4820,26 +4820,26 @@ function Po(e) {
|
|
|
4820
4820
|
}
|
|
4821
4821
|
return t;
|
|
4822
4822
|
}
|
|
4823
|
-
function
|
|
4824
|
-
let n = be(() =>
|
|
4823
|
+
function gh({ id: e, __demoMode: t = !1 }) {
|
|
4824
|
+
let n = be(() => fh.new({ id: e, __demoMode: t }), []);
|
|
4825
4825
|
return hr(() => n.dispose()), n;
|
|
4826
4826
|
}
|
|
4827
|
-
let
|
|
4828
|
-
|
|
4829
|
-
function
|
|
4830
|
-
return de(
|
|
4827
|
+
let ki = Ee(null);
|
|
4828
|
+
ki.displayName = "PopoverGroupContext";
|
|
4829
|
+
function kc() {
|
|
4830
|
+
return de(ki);
|
|
4831
4831
|
}
|
|
4832
|
-
let Fo =
|
|
4832
|
+
let Fo = Ee(null);
|
|
4833
4833
|
Fo.displayName = "PopoverPanelContext";
|
|
4834
|
-
function
|
|
4834
|
+
function mh() {
|
|
4835
4835
|
return de(Fo);
|
|
4836
4836
|
}
|
|
4837
|
-
let
|
|
4838
|
-
function
|
|
4837
|
+
let ph = "div";
|
|
4838
|
+
function hh(e, t) {
|
|
4839
4839
|
var n;
|
|
4840
|
-
let r = Se(), { __demoMode: o = !1, ...a } = e, i =
|
|
4840
|
+
let r = Se(), { __demoMode: o = !1, ...a } = e, i = gh({ id: r, __demoMode: o }), s = Y(null), l = ve(t, uu((T) => {
|
|
4841
4841
|
s.current = T;
|
|
4842
|
-
})), [u, c, f, g, d] = ce(i, se((T) => [T.popoverState, T.button, T.panel, T.buttonId, T.panelId], [])), m = Vg((n = s.current) != null ? n : c), p = st(g), v = st(d), b = be(() => ({ buttonId: p, panelId: v, close: i.actions.close }), [p, v, i]), x =
|
|
4842
|
+
})), [u, c, f, g, d] = ce(i, se((T) => [T.popoverState, T.button, T.panel, T.buttonId, T.panelId], [])), m = Vg((n = s.current) != null ? n : c), p = st(g), v = st(d), b = be(() => ({ buttonId: p, panelId: v, close: i.actions.close }), [p, v, i]), x = kc(), y = x?.registerPopover, k = M(() => {
|
|
4843
4843
|
var T, D;
|
|
4844
4844
|
let G = Tt((T = s.current) != null ? T : c);
|
|
4845
4845
|
return (D = x?.isFocusWithinPopoverGroup()) != null ? D : G && (c?.contains(G) || f?.contains(G));
|
|
@@ -4852,26 +4852,26 @@ function h0(e, t) {
|
|
|
4852
4852
|
} }] });
|
|
4853
4853
|
oi(m, "focus", (T) => {
|
|
4854
4854
|
var D, G, ee, S, U, re;
|
|
4855
|
-
T.target !== window && Xe(T.target) && i.state.popoverState === Pe.Open && (
|
|
4855
|
+
T.target !== window && Xe(T.target) && i.state.popoverState === Pe.Open && (k() || i.state.button && i.state.panel && (F.contains(T.target) || (G = (D = i.state.beforePanelSentinel.current) == null ? void 0 : D.contains) != null && G.call(D, T.target) || (S = (ee = i.state.afterPanelSentinel.current) == null ? void 0 : ee.contains) != null && S.call(ee, T.target) || (re = (U = i.state.afterButtonSentinel.current) == null ? void 0 : U.contains) != null && re.call(U, T.target) || i.actions.close()));
|
|
4856
4856
|
}, !0);
|
|
4857
4857
|
let W = u === Pe.Open;
|
|
4858
4858
|
go(W, F.resolveContainers, (T, D) => {
|
|
4859
4859
|
i.actions.close(), dr(D, cr.Loose) || (T.preventDefault(), c?.focus());
|
|
4860
4860
|
});
|
|
4861
4861
|
let P = ye({ open: u === Pe.Open, close: i.actions.refocusableClose }), O = ce(i, se((T) => $e(T.popoverState, { [Pe.Open]: xe.Open, [Pe.Closed]: xe.Closed }), [])), K = { ref: l }, X = ue();
|
|
4862
|
-
return $.createElement(Xr, { node: I }, $.createElement(mi, null, $.createElement(Fo.Provider, { value: null }, $.createElement(Sc.Provider, { value: i }, $.createElement(Za, { value: i.actions.refocusableClose }, $.createElement(wo, { value: O }, $.createElement(C, null, X({ ourProps: K, theirProps: a, slot: P, defaultTag:
|
|
4862
|
+
return $.createElement(Xr, { node: I }, $.createElement(mi, null, $.createElement(Fo.Provider, { value: null }, $.createElement(Sc.Provider, { value: i }, $.createElement(Za, { value: i.actions.refocusableClose }, $.createElement(wo, { value: O }, $.createElement(C, null, X({ ourProps: K, theirProps: a, slot: P, defaultTag: ph, name: "Popover" }))))))));
|
|
4863
4863
|
}
|
|
4864
|
-
let
|
|
4865
|
-
function
|
|
4866
|
-
let n = Se(), { id: r = `headlessui-popover-button-${n}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = Po("Popover.Button"), [l, u, c, f, g, d, m] = ce(s, se((N) => [N.popoverState, s.selectors.isPortalled(N), N.button, N.buttonId, N.panel, N.panelId, N.afterButtonSentinel], [])), p = Y(null), v = `headlessui-focus-sentinel-${Se()}`, b =
|
|
4864
|
+
let vh = "button";
|
|
4865
|
+
function bh(e, t) {
|
|
4866
|
+
let n = Se(), { id: r = `headlessui-popover-button-${n}`, disabled: o = !1, autoFocus: a = !1, ...i } = e, s = Po("Popover.Button"), [l, u, c, f, g, d, m] = ce(s, se((N) => [N.popoverState, s.selectors.isPortalled(N), N.button, N.buttonId, N.panel, N.panelId, N.afterButtonSentinel], [])), p = Y(null), v = `headlessui-focus-sentinel-${Se()}`, b = kc(), x = b?.closeOthers, y = mh() !== null;
|
|
4867
4867
|
me(() => {
|
|
4868
4868
|
if (!y) return s.actions.setButtonId(r), () => s.actions.setButtonId(null);
|
|
4869
4869
|
}, [y, r, s]);
|
|
4870
|
-
let [
|
|
4870
|
+
let [k] = ae(() => /* @__PURE__ */ Symbol()), w = ve(p, t, di(), M((N) => {
|
|
4871
4871
|
if (!y) {
|
|
4872
|
-
if (N) s.state.buttons.current.push(
|
|
4872
|
+
if (N) s.state.buttons.current.push(k);
|
|
4873
4873
|
else {
|
|
4874
|
-
let J = s.state.buttons.current.indexOf(
|
|
4874
|
+
let J = s.state.buttons.current.indexOf(k);
|
|
4875
4875
|
J !== -1 && s.state.buttons.current.splice(J, 1);
|
|
4876
4876
|
}
|
|
4877
4877
|
s.state.buttons.current.length > 1 && console.warn("You are already using a <Popover.Button /> but only 1 <Popover.Button /> is supported."), N && s.actions.setButton(N);
|
|
@@ -4906,29 +4906,29 @@ function b0(e, t) {
|
|
|
4906
4906
|
qn(N.currentTarget) || o || (y ? (s.actions.close(), (J = s.state.button) == null || J.focus()) : (N.preventDefault(), N.stopPropagation(), s.state.popoverState === Pe.Closed ? (x?.(s.state.buttonId), s.actions.open()) : s.actions.close(), (B = s.state.button) == null || B.focus()));
|
|
4907
4907
|
}), P = M((N) => {
|
|
4908
4908
|
N.preventDefault(), N.stopPropagation();
|
|
4909
|
-
}), { isFocusVisible: O, focusProps: K } = ln({ autoFocus: a }), { isHovered: X, hoverProps: T } = sn({ isDisabled: o }), { pressed: D, pressProps: G } = nr({ disabled: o }), ee = l === Pe.Open, S = ye({ open: ee, active: D || ee, disabled: o, hover: X, focus: O, autofocus: a }), U = mo(e, c), re = Ze(y ? { ref: C, type: U, onKeyDown: I, onClick: W, disabled: o || void 0, autoFocus: a } : { ref: w, id: f, type: U, "aria-expanded": l === Pe.Open, "aria-controls": g ? d : void 0, disabled: o || void 0, autoFocus: a, onKeyDown: I, onKeyUp: F, onClick: W, onMouseDown: P }, K, T, G),
|
|
4909
|
+
}), { isFocusVisible: O, focusProps: K } = ln({ autoFocus: a }), { isHovered: X, hoverProps: T } = sn({ isDisabled: o }), { pressed: D, pressProps: G } = nr({ disabled: o }), ee = l === Pe.Open, S = ye({ open: ee, active: D || ee, disabled: o, hover: X, focus: O, autofocus: a }), U = mo(e, c), re = Ze(y ? { ref: C, type: U, onKeyDown: I, onClick: W, disabled: o || void 0, autoFocus: a } : { ref: w, id: f, type: U, "aria-expanded": l === Pe.Open, "aria-controls": g ? d : void 0, disabled: o || void 0, autoFocus: a, onKeyDown: I, onKeyUp: F, onClick: W, onMouseDown: P }, K, T, G), E = bi(), L = M(() => {
|
|
4910
4910
|
if (!Ae(s.state.panel)) return;
|
|
4911
4911
|
let N = s.state.panel;
|
|
4912
4912
|
function J() {
|
|
4913
|
-
$e(
|
|
4913
|
+
$e(E.current, { [ze.Forwards]: () => Ve(N, Re.First), [ze.Backwards]: () => Ve(N, Re.Last) }) === vn.Error && Ve(ur(_t(s.state.button)).filter((B) => B.dataset.headlessuiFocusGuard !== "true"), $e(E.current, { [ze.Forwards]: Re.Next, [ze.Backwards]: Re.Previous }), { relativeTo: s.state.button });
|
|
4914
4914
|
}
|
|
4915
4915
|
J();
|
|
4916
4916
|
}), R = ue();
|
|
4917
|
-
return $.createElement($.Fragment, null, R({ ourProps: re, theirProps: i, slot: S, defaultTag:
|
|
4917
|
+
return $.createElement($.Fragment, null, R({ ourProps: re, theirProps: i, slot: S, defaultTag: vh, name: "Popover.Button" }), ee && !y && u && $.createElement(bt, { id: v, ref: m, features: lt.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: L }));
|
|
4918
4918
|
}
|
|
4919
|
-
let
|
|
4920
|
-
function
|
|
4919
|
+
let yh = "div", xh = qe.RenderStrategy | qe.Static;
|
|
4920
|
+
function Ec(e, t) {
|
|
4921
4921
|
let n = Se(), { id: r = `headlessui-popover-backdrop-${n}`, transition: o = !1, ...a } = e, i = Po("Popover.Backdrop"), s = ce(i, se((b) => b.popoverState, [])), [l, u] = ae(null), c = ve(t, u), f = Wt(), [g, d] = gr(o, l, f !== null ? (f & xe.Open) === xe.Open : s === Pe.Open), m = M((b) => {
|
|
4922
4922
|
if (qn(b.currentTarget)) return b.preventDefault();
|
|
4923
4923
|
i.actions.close();
|
|
4924
4924
|
}), p = ye({ open: s === Pe.Open }), v = { ref: c, id: r, "aria-hidden": !0, onClick: m, ...fr(d) };
|
|
4925
|
-
return ue()({ ourProps: v, theirProps: a, slot: p, defaultTag:
|
|
4925
|
+
return ue()({ ourProps: v, theirProps: a, slot: p, defaultTag: yh, features: xh, visible: g, name: "Popover.Backdrop" });
|
|
4926
4926
|
}
|
|
4927
|
-
let
|
|
4928
|
-
function
|
|
4929
|
-
let n = Se(), { id: r = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: a, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Po("Popover.Panel"), f = ce(c, c.selectors.isPortalled), [g, d, m, p, v] = ce(c, se((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${n}`, x = `headlessui-focus-sentinel-after-${n}`, y = Y(null),
|
|
4930
|
-
|
|
4931
|
-
let [F, W] = ae(null), P = ve(y, t,
|
|
4927
|
+
let wh = "div", Sh = qe.RenderStrategy | qe.Static;
|
|
4928
|
+
function kh(e, t) {
|
|
4929
|
+
let n = Se(), { id: r = `headlessui-popover-panel-${n}`, focus: o = !1, anchor: a, portal: i = !1, modal: s = !1, transition: l = !1, ...u } = e, c = Po("Popover.Panel"), f = ce(c, c.selectors.isPortalled), [g, d, m, p, v] = ce(c, se((R) => [R.popoverState, R.button, R.__demoMode, R.beforePanelSentinel, R.afterPanelSentinel], [])), b = `headlessui-focus-sentinel-before-${n}`, x = `headlessui-focus-sentinel-after-${n}`, y = Y(null), k = ci(a), [w, C] = gi(k), I = fi();
|
|
4930
|
+
k && (i = !0);
|
|
4931
|
+
let [F, W] = ae(null), P = ve(y, t, k ? w : null, c.actions.setPanel, W), O = yt(d), K = yt(y.current);
|
|
4932
4932
|
fe(() => (c.actions.setPanelId(r), () => c.actions.setPanelId(null)), [r, c]);
|
|
4933
4933
|
let X = Wt(), [T, D] = gr(l, F, X !== null ? (X & xe.Open) === xe.Open : g === Pe.Open);
|
|
4934
4934
|
fo(T, d, c.actions.close), po(m ? !1 : s && T, K);
|
|
@@ -4951,10 +4951,10 @@ function E0(e, t) {
|
|
|
4951
4951
|
let R = Tt(y.current);
|
|
4952
4952
|
y.current.contains(R) || Ve(y.current, Re.First);
|
|
4953
4953
|
}, [m, o, y.current, g]);
|
|
4954
|
-
let ee = ye({ open: g === Pe.Open, close: c.actions.refocusableClose }), S = Ze(
|
|
4954
|
+
let ee = ye({ open: g === Pe.Open, close: c.actions.refocusableClose }), S = Ze(k ? I() : {}, { ref: P, id: r, onKeyDown: G, onBlur: o && g === Pe.Open ? (R) => {
|
|
4955
4955
|
var N, J, B, j, pe;
|
|
4956
|
-
let
|
|
4957
|
-
|
|
4956
|
+
let ke = R.relatedTarget;
|
|
4957
|
+
ke && y.current && ((N = y.current) != null && N.contains(ke) || (c.actions.close(), ((B = (J = p.current) == null ? void 0 : J.contains) != null && B.call(J, ke) || (pe = (j = v.current) == null ? void 0 : j.contains) != null && pe.call(j, ke)) && ke.focus({ preventScroll: !0 })));
|
|
4958
4958
|
} : void 0, tabIndex: -1, style: { ...u.style, ...C, "--button-width": ei(T, d, !0).width }, ...fr(D) }), U = bi(), re = M(() => {
|
|
4959
4959
|
let R = y.current;
|
|
4960
4960
|
if (!R) return;
|
|
@@ -4968,14 +4968,14 @@ function E0(e, t) {
|
|
|
4968
4968
|
} });
|
|
4969
4969
|
}
|
|
4970
4970
|
N();
|
|
4971
|
-
}),
|
|
4971
|
+
}), E = M(() => {
|
|
4972
4972
|
let R = y.current;
|
|
4973
4973
|
if (!R) return;
|
|
4974
4974
|
function N() {
|
|
4975
4975
|
$e(U.current, { [ze.Forwards]: () => {
|
|
4976
4976
|
var J;
|
|
4977
4977
|
if (!c.state.button) return;
|
|
4978
|
-
let B = (J = _t(c.state.button)) != null ? J : document.body, j = ur(B), pe = j.indexOf(c.state.button),
|
|
4978
|
+
let B = (J = _t(c.state.button)) != null ? J : document.body, j = ur(B), pe = j.indexOf(c.state.button), ke = j.slice(0, pe + 1), Ke = [...j.slice(pe + 1), ...ke];
|
|
4979
4979
|
for (let Yt of Ke.slice()) if (Yt.dataset.headlessuiFocusGuard === "true" || F != null && F.contains(Yt)) {
|
|
4980
4980
|
let qt = Ke.indexOf(Yt);
|
|
4981
4981
|
qt !== -1 && Ke.splice(qt, 1);
|
|
@@ -4988,10 +4988,10 @@ function E0(e, t) {
|
|
|
4988
4988
|
}
|
|
4989
4989
|
N();
|
|
4990
4990
|
}), L = ue();
|
|
4991
|
-
return $.createElement(Hu, null, $.createElement(Fo.Provider, { value: r }, $.createElement(Za, { value: c.actions.refocusableClose }, $.createElement(vr, { enabled: i ? e.static || T : !1, ownerDocument: O }, T && f && $.createElement(bt, { id: b, ref: p, features: lt.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: re }), L({ ourProps: S, theirProps: u, slot: ee, defaultTag:
|
|
4991
|
+
return $.createElement(Hu, null, $.createElement(Fo.Provider, { value: r }, $.createElement(Za, { value: c.actions.refocusableClose }, $.createElement(vr, { enabled: i ? e.static || T : !1, ownerDocument: O }, T && f && $.createElement(bt, { id: b, ref: p, features: lt.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: re }), L({ ourProps: S, theirProps: u, slot: ee, defaultTag: wh, features: Sh, visible: T, name: "Popover.Panel" }), T && f && $.createElement(bt, { id: x, ref: v, features: lt.Focusable, "data-headlessui-focus-guard": !0, as: "button", type: "button", onFocus: E })))));
|
|
4992
4992
|
}
|
|
4993
|
-
let
|
|
4994
|
-
function
|
|
4993
|
+
let Eh = "div";
|
|
4994
|
+
function Ch(e, t) {
|
|
4995
4995
|
let n = Y(null), r = ve(n, t), [o, a] = ae([]), i = M((p) => {
|
|
4996
4996
|
a((v) => {
|
|
4997
4997
|
let b = v.indexOf(p);
|
|
@@ -5007,28 +5007,28 @@ function C0(e, t) {
|
|
|
5007
5007
|
if (!v) return !1;
|
|
5008
5008
|
let b = Tt(n.current);
|
|
5009
5009
|
return (p = n.current) != null && p.contains(b) ? !0 : o.some((x) => {
|
|
5010
|
-
var y,
|
|
5011
|
-
return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((
|
|
5010
|
+
var y, k;
|
|
5011
|
+
return ((y = v.getElementById(x.buttonId.current)) == null ? void 0 : y.contains(b)) || ((k = v.getElementById(x.panelId.current)) == null ? void 0 : k.contains(b));
|
|
5012
5012
|
});
|
|
5013
5013
|
}), u = M((p) => {
|
|
5014
5014
|
for (let v of o) v.buttonId.current !== p && v.close();
|
|
5015
5015
|
}), c = be(() => ({ registerPopover: s, unregisterPopover: i, isFocusWithinPopoverGroup: l, closeOthers: u }), [s, i, l, u]), f = ye({}), g = e, d = { ref: r }, m = ue();
|
|
5016
|
-
return $.createElement(Xr, null, $.createElement(
|
|
5016
|
+
return $.createElement(Xr, null, $.createElement(ki.Provider, { value: c }, m({ ourProps: d, theirProps: g, slot: f, defaultTag: Eh, name: "Popover.Group" })));
|
|
5017
5017
|
}
|
|
5018
|
-
let $
|
|
5018
|
+
let $h = le(hh), Qr = le(bh), Rh = le(Ec), Ph = le(Ec), Ei = le(kh), Fh = le(Ch), Cc = Object.assign($h, { Button: Qr, Backdrop: Ph, Overlay: Rh, Panel: Ei, Group: Fh }), Ci = Ee(null);
|
|
5019
5019
|
Ci.displayName = "GroupContext";
|
|
5020
|
-
let
|
|
5021
|
-
function
|
|
5020
|
+
let Ih = Ie;
|
|
5021
|
+
function Ah(e) {
|
|
5022
5022
|
var t;
|
|
5023
5023
|
let [n, r] = ae(null), [o, a] = ir(), [i, s] = lo(), l = be(() => ({ switch: n, setSwitch: r }), [n, r]), u = {}, c = e, f = ue();
|
|
5024
5024
|
return $.createElement(s, { name: "Switch.Description", value: i }, $.createElement(a, { name: "Switch.Label", value: o, props: { htmlFor: (t = l.switch) == null ? void 0 : t.id, onClick(g) {
|
|
5025
5025
|
n && (ha(g.currentTarget) && g.preventDefault(), n.click(), n.focus({ preventScroll: !0 }));
|
|
5026
|
-
} } }, $.createElement(Ci.Provider, { value: l }, f({ ourProps: u, theirProps: c, slot: {}, defaultTag:
|
|
5026
|
+
} } }, $.createElement(Ci.Provider, { value: l }, f({ ourProps: u, theirProps: c, slot: {}, defaultTag: Ih, name: "Switch.Group" }))));
|
|
5027
5027
|
}
|
|
5028
|
-
let
|
|
5029
|
-
function
|
|
5028
|
+
let Nh = "button";
|
|
5029
|
+
function Oh(e, t) {
|
|
5030
5030
|
var n;
|
|
5031
|
-
let r = Se(), o = rr(), a = Gt(), { id: i = o || `headlessui-switch-${r}`, disabled: s = a || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = de(Ci), [b, x] = ae(null), y = Y(null),
|
|
5031
|
+
let r = Se(), o = rr(), a = Gt(), { id: i = o || `headlessui-switch-${r}`, disabled: s = a || !1, checked: l, defaultChecked: u, onChange: c, name: f, value: g, form: d, autoFocus: m = !1, ...p } = e, v = de(Ci), [b, x] = ae(null), y = Y(null), k = ve(y, t, v === null ? null : v.setSwitch, x), w = Jl(u), [C, I] = Xl(l, c, w ?? !1), F = ct(), [W, P] = ae(!1), O = M(() => {
|
|
5032
5032
|
P(!0), I?.(!C), F.nextFrame(() => {
|
|
5033
5033
|
P(!1);
|
|
5034
5034
|
});
|
|
@@ -5037,17 +5037,17 @@ function O0(e, t) {
|
|
|
5037
5037
|
j.preventDefault(), O();
|
|
5038
5038
|
}), X = M((j) => {
|
|
5039
5039
|
j.key === te.Space ? (j.preventDefault(), O()) : j.key === te.Enter && tu(j.currentTarget);
|
|
5040
|
-
}), T = M((j) => j.preventDefault()), D = ar(), G = so(), { isFocusVisible: ee, focusProps: S } = ln({ autoFocus: m }), { isHovered: U, hoverProps: re } = sn({ isDisabled: s }), { pressed:
|
|
5040
|
+
}), T = M((j) => j.preventDefault()), D = ar(), G = so(), { isFocusVisible: ee, focusProps: S } = ln({ autoFocus: m }), { isHovered: U, hoverProps: re } = sn({ isDisabled: s }), { pressed: E, pressProps: L } = nr({ disabled: s }), R = ye({ checked: C, disabled: s, hover: U, focus: ee, active: E, autofocus: m, changing: W }), N = Ze({ id: i, ref: k, role: "switch", type: mo(e, b), tabIndex: e.tabIndex === -1 ? 0 : (n = e.tabIndex) != null ? n : 0, "aria-checked": C, "aria-labelledby": D, "aria-describedby": G, disabled: s || void 0, autoFocus: m, onClick: K, onKeyUp: X, onKeyPress: T }, S, re, L), J = se(() => {
|
|
5041
5041
|
if (w !== void 0) return I?.(w);
|
|
5042
5042
|
}, [I, w]), B = ue();
|
|
5043
|
-
return $.createElement($.Fragment, null, f != null && $.createElement(ru, { disabled: s, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: C }, form: d, onReset: J }), B({ ourProps: N, theirProps: p, slot: R, defaultTag:
|
|
5043
|
+
return $.createElement($.Fragment, null, f != null && $.createElement(ru, { disabled: s, data: { [f]: g || "on" }, overrides: { type: "checkbox", checked: C }, form: d, onReset: J }), B({ ourProps: N, theirProps: p, slot: R, defaultTag: Nh, name: "Switch" }));
|
|
5044
5044
|
}
|
|
5045
|
-
let
|
|
5046
|
-
function
|
|
5045
|
+
let _h = le(Oh), Th = Ah, Mh = sr, jh = or, Lh = Object.assign(_h, { Group: Th, Label: Mh, Description: jh }), Dh = "textarea";
|
|
5046
|
+
function Vh(e, t) {
|
|
5047
5047
|
let n = Se(), r = rr(), o = Gt(), { id: a = r || `headlessui-textarea-${n}`, disabled: i = o || !1, autoFocus: s = !1, invalid: l = !1, ...u } = e, c = ar(), f = so(), { isFocused: g, focusProps: d } = ln({ autoFocus: s }), { isHovered: m, hoverProps: p } = sn({ isDisabled: i }), v = Ze({ ref: t, id: a, "aria-labelledby": c, "aria-describedby": f, "aria-invalid": l ? "true" : void 0, disabled: i || void 0, autoFocus: s }, d, p), b = ye({ disabled: i, invalid: l, hover: m, focus: g, autofocus: s });
|
|
5048
|
-
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag:
|
|
5048
|
+
return ue()({ ourProps: v, theirProps: u, slot: b, defaultTag: Dh, name: "Textarea" });
|
|
5049
5049
|
}
|
|
5050
|
-
let
|
|
5050
|
+
let zh = le(Vh);
|
|
5051
5051
|
const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, ge = (e, t) => (n) => {
|
|
5052
5052
|
var r;
|
|
5053
5053
|
if (t?.variants == null) return Ts(e, n?.class, n?.className);
|
|
@@ -5077,36 +5077,36 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5077
5077
|
] : u;
|
|
5078
5078
|
}, []);
|
|
5079
5079
|
return Ts(e, i, l, n?.class, n?.className);
|
|
5080
|
-
},
|
|
5080
|
+
}, Hh = (e, t) => {
|
|
5081
5081
|
const n = new Array(e.length + t.length);
|
|
5082
5082
|
for (let r = 0; r < e.length; r++)
|
|
5083
5083
|
n[r] = e[r];
|
|
5084
5084
|
for (let r = 0; r < t.length; r++)
|
|
5085
5085
|
n[e.length + r] = t[r];
|
|
5086
5086
|
return n;
|
|
5087
|
-
},
|
|
5087
|
+
}, Bh = (e, t) => ({
|
|
5088
5088
|
classGroupId: e,
|
|
5089
5089
|
validator: t
|
|
5090
5090
|
}), $c = (e = /* @__PURE__ */ new Map(), t = null, n) => ({
|
|
5091
5091
|
nextPart: e,
|
|
5092
5092
|
validators: t,
|
|
5093
5093
|
classGroupId: n
|
|
5094
|
-
}), Zr = "-", Ms = [],
|
|
5095
|
-
const t =
|
|
5094
|
+
}), Zr = "-", Ms = [], Gh = "arbitrary..", Wh = (e) => {
|
|
5095
|
+
const t = Yh(e), {
|
|
5096
5096
|
conflictingClassGroups: n,
|
|
5097
5097
|
conflictingClassGroupModifiers: r
|
|
5098
5098
|
} = e;
|
|
5099
5099
|
return {
|
|
5100
5100
|
getClassGroupId: (i) => {
|
|
5101
5101
|
if (i.startsWith("[") && i.endsWith("]"))
|
|
5102
|
-
return
|
|
5102
|
+
return Uh(i);
|
|
5103
5103
|
const s = i.split(Zr), l = s[0] === "" && s.length > 1 ? 1 : 0;
|
|
5104
5104
|
return Rc(s, l, t);
|
|
5105
5105
|
},
|
|
5106
5106
|
getConflictingClassGroupIds: (i, s) => {
|
|
5107
5107
|
if (s) {
|
|
5108
5108
|
const l = r[i], u = n[i];
|
|
5109
|
-
return l ? u ?
|
|
5109
|
+
return l ? u ? Hh(u, l) : l : u || Ms;
|
|
5110
5110
|
}
|
|
5111
5111
|
return n[i] || Ms;
|
|
5112
5112
|
}
|
|
@@ -5128,16 +5128,16 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5128
5128
|
if (c.validator(s))
|
|
5129
5129
|
return c.classGroupId;
|
|
5130
5130
|
}
|
|
5131
|
-
},
|
|
5131
|
+
}, Uh = (e) => e.slice(1, -1).indexOf(":") === -1 ? void 0 : (() => {
|
|
5132
5132
|
const t = e.slice(1, -1), n = t.indexOf(":"), r = t.slice(0, n);
|
|
5133
|
-
return r ?
|
|
5134
|
-
})(),
|
|
5133
|
+
return r ? Gh + r : void 0;
|
|
5134
|
+
})(), Yh = (e) => {
|
|
5135
5135
|
const {
|
|
5136
5136
|
theme: t,
|
|
5137
5137
|
classGroups: n
|
|
5138
5138
|
} = e;
|
|
5139
|
-
return
|
|
5140
|
-
},
|
|
5139
|
+
return qh(n, t);
|
|
5140
|
+
}, qh = (e, t) => {
|
|
5141
5141
|
const n = $c();
|
|
5142
5142
|
for (const r in e) {
|
|
5143
5143
|
const o = e[r];
|
|
@@ -5148,28 +5148,28 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5148
5148
|
const o = e.length;
|
|
5149
5149
|
for (let a = 0; a < o; a++) {
|
|
5150
5150
|
const i = e[a];
|
|
5151
|
-
|
|
5151
|
+
Kh(i, t, n, r);
|
|
5152
5152
|
}
|
|
5153
|
-
},
|
|
5153
|
+
}, Kh = (e, t, n, r) => {
|
|
5154
5154
|
if (typeof e == "string") {
|
|
5155
|
-
|
|
5155
|
+
Xh(e, t, n);
|
|
5156
5156
|
return;
|
|
5157
5157
|
}
|
|
5158
5158
|
if (typeof e == "function") {
|
|
5159
|
-
|
|
5159
|
+
Jh(e, t, n, r);
|
|
5160
5160
|
return;
|
|
5161
5161
|
}
|
|
5162
|
-
|
|
5163
|
-
},
|
|
5162
|
+
Qh(e, t, n, r);
|
|
5163
|
+
}, Xh = (e, t, n) => {
|
|
5164
5164
|
const r = e === "" ? t : Pc(t, e);
|
|
5165
5165
|
r.classGroupId = n;
|
|
5166
|
-
},
|
|
5167
|
-
if (
|
|
5166
|
+
}, Jh = (e, t, n, r) => {
|
|
5167
|
+
if (Zh(e)) {
|
|
5168
5168
|
$i(e(r), t, n, r);
|
|
5169
5169
|
return;
|
|
5170
5170
|
}
|
|
5171
|
-
t.validators === null && (t.validators = []), t.validators.push(
|
|
5172
|
-
},
|
|
5171
|
+
t.validators === null && (t.validators = []), t.validators.push(Bh(n, e));
|
|
5172
|
+
}, Qh = (e, t, n, r) => {
|
|
5173
5173
|
const o = Object.entries(e), a = o.length;
|
|
5174
5174
|
for (let i = 0; i < a; i++) {
|
|
5175
5175
|
const [s, l] = o[i];
|
|
@@ -5184,7 +5184,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5184
5184
|
s || (s = $c(), n.nextPart.set(i, s)), n = s;
|
|
5185
5185
|
}
|
|
5186
5186
|
return n;
|
|
5187
|
-
},
|
|
5187
|
+
}, Zh = (e) => "isThemeGetter" in e && e.isThemeGetter === !0, ev = (e) => {
|
|
5188
5188
|
if (e < 1)
|
|
5189
5189
|
return {
|
|
5190
5190
|
get: () => {
|
|
@@ -5208,7 +5208,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5208
5208
|
a in n ? n[a] = i : o(a, i);
|
|
5209
5209
|
}
|
|
5210
5210
|
};
|
|
5211
|
-
},
|
|
5211
|
+
}, ka = "!", js = ":", tv = [], Ls = (e, t, n, r, o) => ({
|
|
5212
5212
|
modifiers: e,
|
|
5213
5213
|
hasImportantModifier: t,
|
|
5214
5214
|
baseClassName: n,
|
|
@@ -5239,12 +5239,12 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5239
5239
|
}
|
|
5240
5240
|
const f = a.length === 0 ? o : o.slice(l);
|
|
5241
5241
|
let g = f, d = !1;
|
|
5242
|
-
f.endsWith(
|
|
5242
|
+
f.endsWith(ka) ? (g = f.slice(0, -1), d = !0) : (
|
|
5243
5243
|
/**
|
|
5244
5244
|
* In Tailwind CSS v3 the important modifier was at the start of the base class name. This is still supported for legacy reasons.
|
|
5245
5245
|
* @see https://github.com/dcastil/tailwind-merge/issues/513#issuecomment-2614029864
|
|
5246
5246
|
*/
|
|
5247
|
-
f.startsWith(
|
|
5247
|
+
f.startsWith(ka) && (g = f.slice(1), d = !0)
|
|
5248
5248
|
);
|
|
5249
5249
|
const m = u && u > l ? u - l : void 0;
|
|
5250
5250
|
return Ls(a, d, g, m);
|
|
@@ -5278,7 +5278,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5278
5278
|
cache: ev(e.cacheSize),
|
|
5279
5279
|
parseClassName: nv(e),
|
|
5280
5280
|
sortModifiers: rv(e),
|
|
5281
|
-
...
|
|
5281
|
+
...Wh(e)
|
|
5282
5282
|
}), av = /\s+/, iv = (e, t) => {
|
|
5283
5283
|
const {
|
|
5284
5284
|
parseClassName: n,
|
|
@@ -5311,10 +5311,10 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5311
5311
|
}
|
|
5312
5312
|
v = !1;
|
|
5313
5313
|
}
|
|
5314
|
-
const x = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), y = d ? x +
|
|
5315
|
-
if (i.indexOf(
|
|
5314
|
+
const x = g.length === 0 ? "" : g.length === 1 ? g[0] : a(g).join(":"), y = d ? x + ka : x, k = y + b;
|
|
5315
|
+
if (i.indexOf(k) > -1)
|
|
5316
5316
|
continue;
|
|
5317
|
-
i.push(
|
|
5317
|
+
i.push(k);
|
|
5318
5318
|
const w = o(b, v);
|
|
5319
5319
|
for (let C = 0; C < w.length; ++C) {
|
|
5320
5320
|
const I = w[C];
|
|
@@ -5351,19 +5351,19 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5351
5351
|
}, uv = [], Fe = (e) => {
|
|
5352
5352
|
const t = (n) => n[e] || uv;
|
|
5353
5353
|
return t.isThemeGetter = !0, t;
|
|
5354
|
-
}, Ic = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ac = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cv = /^\d+\/\d+$/, dv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, gv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, mv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, cn = (e) => cv.test(e), ie = (e) => !!e && !Number.isNaN(Number(e)),
|
|
5354
|
+
}, Ic = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, Ac = /^\((?:(\w[\w-]*):)?(.+)\)$/i, cv = /^\d+\/\d+$/, dv = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, fv = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, gv = /^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/, mv = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, pv = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, cn = (e) => cv.test(e), ie = (e) => !!e && !Number.isNaN(Number(e)), Et = (e) => !!e && Number.isInteger(Number(e)), Yo = (e) => e.endsWith("%") && ie(e.slice(0, -1)), ft = (e) => dv.test(e), hv = () => !0, vv = (e) => (
|
|
5355
5355
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
5356
5356
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
5357
5357
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
5358
5358
|
fv.test(e) && !gv.test(e)
|
|
5359
|
-
), Nc = () => !1, bv = (e) => mv.test(e), yv = (e) => pv.test(e), xv = (e) => !z(e) && !H(e), wv = (e) => Cn(e, Tc, Nc), z = (e) => Ic.test(e), Kt = (e) => Cn(e, Mc, vv), qo = (e) => Cn(e, $v, ie), Ds = (e) => Cn(e, Oc, Nc), Sv = (e) => Cn(e, _c, yv), Pr = (e) => Cn(e, jc, bv), H = (e) => Ac.test(e), In = (e) => $n(e, Mc),
|
|
5359
|
+
), Nc = () => !1, bv = (e) => mv.test(e), yv = (e) => pv.test(e), xv = (e) => !z(e) && !H(e), wv = (e) => Cn(e, Tc, Nc), z = (e) => Ic.test(e), Kt = (e) => Cn(e, Mc, vv), qo = (e) => Cn(e, $v, ie), Ds = (e) => Cn(e, Oc, Nc), Sv = (e) => Cn(e, _c, yv), Pr = (e) => Cn(e, jc, bv), H = (e) => Ac.test(e), In = (e) => $n(e, Mc), kv = (e) => $n(e, Rv), Vs = (e) => $n(e, Oc), Ev = (e) => $n(e, Tc), Cv = (e) => $n(e, _c), Fr = (e) => $n(e, jc, !0), Cn = (e, t, n) => {
|
|
5360
5360
|
const r = Ic.exec(e);
|
|
5361
5361
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
5362
5362
|
}, $n = (e, t, n = !1) => {
|
|
5363
5363
|
const r = Ac.exec(e);
|
|
5364
5364
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
5365
5365
|
}, Oc = (e) => e === "position" || e === "percentage", _c = (e) => e === "image" || e === "url", Tc = (e) => e === "length" || e === "size" || e === "bg-size", Mc = (e) => e === "length", $v = (e) => e === "number", Rv = (e) => e === "family-name", jc = (e) => e === "shadow", Pv = () => {
|
|
5366
|
-
const e = Fe("color"), t = Fe("font"), n = Fe("text"), r = Fe("font-weight"), o = Fe("tracking"), a = 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"],
|
|
5366
|
+
const e = Fe("color"), t = Fe("font"), n = Fe("text"), r = Fe("font-weight"), o = Fe("tracking"), a = 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"], k = () => [
|
|
5367
5367
|
"center",
|
|
5368
5368
|
"top",
|
|
5369
5369
|
"bottom",
|
|
@@ -5381,13 +5381,13 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5381
5381
|
"bottom-left",
|
|
5382
5382
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
5383
5383
|
"left-bottom"
|
|
5384
|
-
], w = () => [...
|
|
5385
|
-
span: ["full",
|
|
5386
|
-
},
|
|
5384
|
+
], w = () => [...k(), H, z], C = () => ["auto", "hidden", "clip", "visible", "scroll"], I = () => ["auto", "contain", "none"], F = () => [H, z, l], W = () => [cn, "full", "auto", ...F()], P = () => [Et, "none", "subgrid", H, z], O = () => ["auto", {
|
|
5385
|
+
span: ["full", Et, H, z]
|
|
5386
|
+
}, Et, H, z], K = () => [Et, "auto", H, z], X = () => ["auto", "min", "max", "fr", H, z], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], D = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], G = () => ["auto", ...F()], ee = () => [cn, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...F()], S = () => [e, H, z], U = () => [...k(), Vs, Ds, {
|
|
5387
5387
|
position: [H, z]
|
|
5388
5388
|
}], re = () => ["no-repeat", {
|
|
5389
5389
|
repeat: ["", "x", "y", "space", "round"]
|
|
5390
|
-
}],
|
|
5390
|
+
}], E = () => ["auto", "cover", "contain", Ev, wv, {
|
|
5391
5391
|
size: [H, z]
|
|
5392
5392
|
}], L = () => [Yo, In, Kt], R = () => [
|
|
5393
5393
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -5404,7 +5404,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5404
5404
|
m,
|
|
5405
5405
|
H,
|
|
5406
5406
|
z
|
|
5407
|
-
],
|
|
5407
|
+
], ke = () => ["none", ie, H, z], Ke = () => ["none", ie, H, z], Yt = () => [ie, H, z], qt = () => [cn, "full", ...F()];
|
|
5408
5408
|
return {
|
|
5409
5409
|
cacheSize: 500,
|
|
5410
5410
|
theme: {
|
|
@@ -5650,7 +5650,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5650
5650
|
* @see https://tailwindcss.com/docs/z-index
|
|
5651
5651
|
*/
|
|
5652
5652
|
z: [{
|
|
5653
|
-
z: [
|
|
5653
|
+
z: [Et, "auto", H, z]
|
|
5654
5654
|
}],
|
|
5655
5655
|
// ------------------------
|
|
5656
5656
|
// --- Flexbox and Grid ---
|
|
@@ -5702,7 +5702,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
5702
5702
|
* @see https://tailwindcss.com/docs/order
|
|
5703
5703
|
*/
|
|
5704
5704
|
order: [{
|
|
5705
|
-
order: [
|
|
5705
|
+
order: [Et, "first", "last", "none", H, z]
|
|
5706
5706
|
}],
|
|
5707
5707
|
/**
|
|
5708
5708
|
* Grid Template Columns
|
|
@@ -6128,7 +6128,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
6128
6128
|
* @see https://tailwindcss.com/docs/font-family
|
|
6129
6129
|
*/
|
|
6130
6130
|
"font-family": [{
|
|
6131
|
-
font: [
|
|
6131
|
+
font: [kv, z, t]
|
|
6132
6132
|
}],
|
|
6133
6133
|
/**
|
|
6134
6134
|
* Font Variant Numeric
|
|
@@ -6370,7 +6370,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
6370
6370
|
* @see https://tailwindcss.com/docs/background-size
|
|
6371
6371
|
*/
|
|
6372
6372
|
"bg-size": [{
|
|
6373
|
-
bg:
|
|
6373
|
+
bg: E()
|
|
6374
6374
|
}],
|
|
6375
6375
|
/**
|
|
6376
6376
|
* Background Image
|
|
@@ -6380,9 +6380,9 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
6380
6380
|
bg: ["none", {
|
|
6381
6381
|
linear: [{
|
|
6382
6382
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
6383
|
-
},
|
|
6383
|
+
}, Et, H, z],
|
|
6384
6384
|
radial: ["", H, z],
|
|
6385
|
-
conic: [
|
|
6385
|
+
conic: [Et, H, z]
|
|
6386
6386
|
}, Cv, Sv]
|
|
6387
6387
|
}],
|
|
6388
6388
|
/**
|
|
@@ -6997,7 +6997,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
6997
6997
|
}]
|
|
6998
6998
|
}],
|
|
6999
6999
|
"mask-image-radial-pos": [{
|
|
7000
|
-
"mask-radial-at":
|
|
7000
|
+
"mask-radial-at": k()
|
|
7001
7001
|
}],
|
|
7002
7002
|
"mask-image-conic-pos": [{
|
|
7003
7003
|
"mask-conic": [ie]
|
|
@@ -7047,7 +7047,7 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
7047
7047
|
* @see https://tailwindcss.com/docs/mask-size
|
|
7048
7048
|
*/
|
|
7049
7049
|
"mask-size": [{
|
|
7050
|
-
mask:
|
|
7050
|
+
mask: E()
|
|
7051
7051
|
}],
|
|
7052
7052
|
/**
|
|
7053
7053
|
* Mask Type
|
|
@@ -7351,28 +7351,28 @@ const _s = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Ts = Dl, g
|
|
|
7351
7351
|
* @see https://tailwindcss.com/docs/rotate
|
|
7352
7352
|
*/
|
|
7353
7353
|
rotate: [{
|
|
7354
|
-
rotate:
|
|
7354
|
+
rotate: ke()
|
|
7355
7355
|
}],
|
|
7356
7356
|
/**
|
|
7357
7357
|
* Rotate X
|
|
7358
7358
|
* @see https://tailwindcss.com/docs/rotate
|
|
7359
7359
|
*/
|
|
7360
7360
|
"rotate-x": [{
|
|
7361
|
-
"rotate-x":
|
|
7361
|
+
"rotate-x": ke()
|
|
7362
7362
|
}],
|
|
7363
7363
|
/**
|
|
7364
7364
|
* Rotate Y
|
|
7365
7365
|
* @see https://tailwindcss.com/docs/rotate
|
|
7366
7366
|
*/
|
|
7367
7367
|
"rotate-y": [{
|
|
7368
|
-
"rotate-y":
|
|
7368
|
+
"rotate-y": ke()
|
|
7369
7369
|
}],
|
|
7370
7370
|
/**
|
|
7371
7371
|
* Rotate Z
|
|
7372
7372
|
* @see https://tailwindcss.com/docs/rotate
|
|
7373
7373
|
*/
|
|
7374
7374
|
"rotate-z": [{
|
|
7375
|
-
"rotate-z":
|
|
7375
|
+
"rotate-z": ke()
|
|
7376
7376
|
}],
|
|
7377
7377
|
/**
|
|
7378
7378
|
* Scale
|
|
@@ -7900,7 +7900,7 @@ const Iv = ge(
|
|
|
7900
7900
|
return s ? /* @__PURE__ */ h.jsxs(Cc, { className: "relative inline-flex", children: [
|
|
7901
7901
|
/* @__PURE__ */ h.jsx(Qr, { as: "div", className: "outline-none cursor-pointer", children: d }),
|
|
7902
7902
|
/* @__PURE__ */ h.jsx(
|
|
7903
|
-
|
|
7903
|
+
Ei,
|
|
7904
7904
|
{
|
|
7905
7905
|
anchor: "bottom",
|
|
7906
7906
|
className: _(
|
|
@@ -7993,7 +7993,7 @@ const Av = ge(
|
|
|
7993
7993
|
statusBadge: !1
|
|
7994
7994
|
}
|
|
7995
7995
|
}
|
|
7996
|
-
),
|
|
7996
|
+
), Ea = V.forwardRef(
|
|
7997
7997
|
({
|
|
7998
7998
|
className: e,
|
|
7999
7999
|
variant: t,
|
|
@@ -8021,7 +8021,7 @@ const Av = ge(
|
|
|
8021
8021
|
}
|
|
8022
8022
|
)
|
|
8023
8023
|
);
|
|
8024
|
-
|
|
8024
|
+
Ea.displayName = "Badge";
|
|
8025
8025
|
const Nv = ge("animate-spin rounded-full border-b-2 border-t-2", {
|
|
8026
8026
|
variants: {
|
|
8027
8027
|
size: {
|
|
@@ -8163,15 +8163,25 @@ const Nv = ge("animate-spin rounded-full border-b-2 border-t-2", {
|
|
|
8163
8163
|
);
|
|
8164
8164
|
Ye.displayName = "Button";
|
|
8165
8165
|
const Tv = ge(
|
|
8166
|
-
// Base: relative and overflow-hidden are crucial for the branded stripes to clip
|
|
8167
|
-
"relative w-full overflow-hidden rounded-xl
|
|
8166
|
+
// Base: relative and overflow-hidden are crucial for the branded stripes to clip.
|
|
8167
|
+
"relative w-full overflow-hidden rounded-xl transition-all",
|
|
8168
8168
|
{
|
|
8169
8169
|
variants: {
|
|
8170
8170
|
variant: {
|
|
8171
|
-
|
|
8172
|
-
|
|
8173
|
-
//
|
|
8174
|
-
|
|
8171
|
+
// White: The standard clean card. White in light mode, elevated gray in dark mode.
|
|
8172
|
+
white: "bg-white border border-gray-200 text-gray-900 shadow-sm dark:bg-gray-800 dark:border-gray-700 dark:text-gray-100",
|
|
8173
|
+
// A subtle gray background without a heavy border.
|
|
8174
|
+
soft: "bg-gray-100 border border-transparent text-gray-900 dark:bg-gray-900/50 dark:border-gray-800 dark:text-gray-100",
|
|
8175
|
+
// Moody slate, baby.
|
|
8176
|
+
slate: "bg-gray-700 border border-gray-600 text-gray-100 shadow-sm dark:bg-gray-900 dark:border-gray-800 dark:text-gray-100",
|
|
8177
|
+
// Primary: Fully drenched in brand color.
|
|
8178
|
+
primary: "bg-primary-700 border border-primary-600 text-white shadow-sm dark:bg-primary-950 dark:border-primary-900",
|
|
8179
|
+
// Outline: Transparent background, just the structural border.
|
|
8180
|
+
outline: "bg-transparent border border-gray-200 text-gray-900 dark:border-gray-700 dark:text-gray-100",
|
|
8181
|
+
// Ghost: Completely invisible structure until hovered (great for clickable cards).
|
|
8182
|
+
ghost: "bg-transparent border border-transparent text-gray-900 hover:bg-gray-50 dark:text-gray-100 dark:hover:bg-gray-800/50",
|
|
8183
|
+
// Glass: The premium frosted look.
|
|
8184
|
+
glass: "bg-white/80 border border-white/20 backdrop-blur-xl text-gray-900 shadow-sm dark:bg-slate-900/80 dark:border-slate-700/50 dark:text-white dark:shadow-black/50"
|
|
8175
8185
|
},
|
|
8176
8186
|
padding: {
|
|
8177
8187
|
none: "p-0",
|
|
@@ -8181,7 +8191,7 @@ const Tv = ge(
|
|
|
8181
8191
|
}
|
|
8182
8192
|
},
|
|
8183
8193
|
defaultVariants: {
|
|
8184
|
-
variant: "
|
|
8194
|
+
variant: "white",
|
|
8185
8195
|
padding: "md"
|
|
8186
8196
|
}
|
|
8187
8197
|
}
|
|
@@ -8206,18 +8216,18 @@ const Tv = ge(
|
|
|
8206
8216
|
"div",
|
|
8207
8217
|
{
|
|
8208
8218
|
className: _(
|
|
8209
|
-
"absolute top-0
|
|
8219
|
+
"absolute top-0 inset-x-0 h-1 z-10",
|
|
8210
8220
|
!o && "bg-orange-500"
|
|
8211
8221
|
),
|
|
8212
8222
|
style: o ? { backgroundColor: o } : void 0
|
|
8213
8223
|
}
|
|
8214
8224
|
),
|
|
8215
|
-
i,
|
|
8225
|
+
/* @__PURE__ */ h.jsx("div", { className: "relative z-0", children: i }),
|
|
8216
8226
|
r && /* @__PURE__ */ h.jsx(
|
|
8217
8227
|
"div",
|
|
8218
8228
|
{
|
|
8219
8229
|
className: _(
|
|
8220
|
-
"absolute bottom-0
|
|
8230
|
+
"absolute bottom-0 inset-x-0 h-1 z-10",
|
|
8221
8231
|
!a && "bg-primary-500"
|
|
8222
8232
|
),
|
|
8223
8233
|
style: a ? { backgroundColor: a } : void 0
|
|
@@ -8407,7 +8417,7 @@ try {
|
|
|
8407
8417
|
}
|
|
8408
8418
|
var Yv = Pi.navigator || {}, Bs = Yv.userAgent, Gs = Bs === void 0 ? "" : Bs, Lt = Pi, we = Vc, Ws = zc, Ir = Hc;
|
|
8409
8419
|
Lt.document;
|
|
8410
|
-
var
|
|
8420
|
+
var kt = !!we.documentElement && !!we.head && typeof we.addEventListener == "function" && typeof we.createElement == "function", Bc = ~Gs.indexOf("MSIE") || ~Gs.indexOf("Trident/"), Ko, qv = /fa(k|kd|s|r|l|t|d|dr|dl|dt|b|slr|slpr|wsb|tl|ns|nds|es|gt|jr|jfr|jdr|usb|ufsb|udsb|cr|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/, Kv = /Font ?Awesome ?([567 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit|Notdog Duo|Notdog|Chisel|Etch|Graphite|Thumbprint|Jelly Fill|Jelly Duo|Jelly|Utility|Utility Fill|Utility Duo|Slab Press|Slab|Whiteboard)?.*/i, Gc = {
|
|
8411
8421
|
classic: {
|
|
8412
8422
|
fa: "solid",
|
|
8413
8423
|
fas: "solid",
|
|
@@ -8883,8 +8893,8 @@ var hb = {
|
|
|
8883
8893
|
fakd: "kit-duotone",
|
|
8884
8894
|
"fa-kit-duotone": "kit-duotone"
|
|
8885
8895
|
}
|
|
8886
|
-
}, xb = ["kit"], wb = "kit", Sb = "kit-duotone",
|
|
8887
|
-
ne(ne({}, wb,
|
|
8896
|
+
}, xb = ["kit"], wb = "kit", Sb = "kit-duotone", kb = "Kit", Eb = "Kit Duotone";
|
|
8897
|
+
ne(ne({}, wb, kb), Sb, Eb);
|
|
8888
8898
|
var Cb = {
|
|
8889
8899
|
kit: {
|
|
8890
8900
|
"fa-kit": "fak"
|
|
@@ -9080,11 +9090,11 @@ var vy = {
|
|
|
9080
9090
|
"utility-fill": {
|
|
9081
9091
|
faufsb: "fa-semibold"
|
|
9082
9092
|
}
|
|
9083
|
-
}, yy = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], dd = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(Pb, yy), xy = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], fd = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], wy = fd.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), Sy = ["aw", "fw", "pull-left", "pull-right"],
|
|
9093
|
+
}, yy = ["fa-solid", "fa-regular", "fa-light", "fa-thin", "fa-duotone", "fa-brands", "fa-semibold"], dd = ["fa", "fas", "far", "fal", "fat", "fad", "fadr", "fadl", "fadt", "fab", "fass", "fasr", "fasl", "fast", "fasds", "fasdr", "fasdl", "fasdt", "faslr", "faslpr", "fawsb", "fatl", "fans", "fands", "faes", "fagt", "fajr", "fajfr", "fajdr", "facr", "fausb", "faudsb", "faufsb"].concat(Pb, yy), xy = ["solid", "regular", "light", "thin", "duotone", "brands", "semibold"], fd = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10], wy = fd.concat([11, 12, 13, 14, 15, 16, 17, 18, 19, 20]), Sy = ["aw", "fw", "pull-left", "pull-right"], ky = [].concat(tt(Object.keys(by)), xy, Sy, ["2xs", "xs", "sm", "lg", "xl", "2xl", "beat", "border", "fade", "beat-fade", "bounce", "flip-both", "flip-horizontal", "flip-vertical", "flip", "inverse", "layers", "layers-bottom-left", "layers-bottom-right", "layers-counter", "layers-text", "layers-top-left", "layers-top-right", "li", "pull-end", "pull-start", "pulse", "rotate-180", "rotate-270", "rotate-90", "rotate-by", "shake", "spin-pulse", "spin-reverse", "spin", "stack-1x", "stack-2x", "stack", "ul", "width-auto", "width-fixed", Ar.GROUP, Ar.SWAP_OPACITY, Ar.PRIMARY, Ar.SECONDARY]).concat(fd.map(function(e) {
|
|
9084
9094
|
return "".concat(e, "x");
|
|
9085
9095
|
})).concat(wy.map(function(e) {
|
|
9086
9096
|
return "w-".concat(e);
|
|
9087
|
-
})),
|
|
9097
|
+
})), Ey = {
|
|
9088
9098
|
"Font Awesome 5 Free": {
|
|
9089
9099
|
900: "fas",
|
|
9090
9100
|
400: "far"
|
|
@@ -9131,7 +9141,7 @@ Aa[Ne] = A(A({}, Aa[Ne]), Cb.kit);
|
|
|
9131
9141
|
xr(Aa);
|
|
9132
9142
|
var Fy = qv, bd = "fa-layers-text", Iy = Kv, Ay = A({}, hb);
|
|
9133
9143
|
xr(Ay);
|
|
9134
|
-
var Ny = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], Jo = Xv, Oy = [].concat(tt(xb), tt(
|
|
9144
|
+
var Ny = ["class", "data-prefix", "data-icon", "data-fa-transform", "data-fa-mask"], Jo = Xv, Oy = [].concat(tt(xb), tt(ky)), Vn = Lt.FontAwesomeConfig || {};
|
|
9135
9145
|
function _y(e) {
|
|
9136
9146
|
var t = we.querySelector("script[" + e + "]");
|
|
9137
9147
|
if (t)
|
|
@@ -9207,7 +9217,7 @@ var dn = Ra, rt = {
|
|
|
9207
9217
|
flipY: !1
|
|
9208
9218
|
};
|
|
9209
9219
|
function Ly(e) {
|
|
9210
|
-
if (!(!e || !
|
|
9220
|
+
if (!(!e || !kt)) {
|
|
9211
9221
|
var t = we.createElement("style");
|
|
9212
9222
|
t.setAttribute("type", "text/css"), t.innerHTML = e;
|
|
9213
9223
|
for (var n = we.head.childNodes, r = null, o = n.length - 1; o > -1; o--) {
|
|
@@ -9855,14 +9865,14 @@ wt[xt] || (wt[xt] = {});
|
|
|
9855
9865
|
wt[xt].styles || (wt[xt].styles = {});
|
|
9856
9866
|
wt[xt].hooks || (wt[xt].hooks = {});
|
|
9857
9867
|
wt[xt].shims || (wt[xt].shims = []);
|
|
9858
|
-
var Je = wt[xt], Sd = [],
|
|
9859
|
-
we.removeEventListener("DOMContentLoaded",
|
|
9868
|
+
var Je = wt[xt], Sd = [], kd = function() {
|
|
9869
|
+
we.removeEventListener("DOMContentLoaded", kd), to = 1, Sd.map(function(t) {
|
|
9860
9870
|
return t();
|
|
9861
9871
|
});
|
|
9862
9872
|
}, to = !1;
|
|
9863
|
-
|
|
9873
|
+
kt && (to = (we.documentElement.doScroll ? /^loaded|^c/ : /^loaded|^i|^c/).test(we.readyState), to || we.addEventListener("DOMContentLoaded", kd));
|
|
9864
9874
|
function Wy(e) {
|
|
9865
|
-
|
|
9875
|
+
kt && (to ? setTimeout(e, 0) : Sd.push(e));
|
|
9866
9876
|
}
|
|
9867
9877
|
function wr(e) {
|
|
9868
9878
|
var t = e.tag, n = e.attributes, r = n === void 0 ? {} : n, o = e.children, a = o === void 0 ? [] : o;
|
|
@@ -9882,7 +9892,7 @@ var Zo = function(t, n, r, o) {
|
|
|
9882
9892
|
u = a[l], c = s(c, t[u], u, t);
|
|
9883
9893
|
return c;
|
|
9884
9894
|
};
|
|
9885
|
-
function
|
|
9895
|
+
function Ed(e) {
|
|
9886
9896
|
return tt(e).length !== 1 ? null : e.codePointAt(0).toString(16);
|
|
9887
9897
|
}
|
|
9888
9898
|
function Zs(e) {
|
|
@@ -10168,7 +10178,7 @@ var _d = new ox(), sx = function() {
|
|
|
10168
10178
|
}, lx = {
|
|
10169
10179
|
i2svg: function() {
|
|
10170
10180
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
10171
|
-
return
|
|
10181
|
+
return kt ? (an("beforeI2svg", t), Vt("pseudoElements2svg", t), Vt("i2svg", t)) : Promise.reject(new Error("Operation requires a DOM of some kind."));
|
|
10172
10182
|
},
|
|
10173
10183
|
watch: function() {
|
|
10174
10184
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.autoReplaceSvgRoot;
|
|
@@ -10221,7 +10231,7 @@ var _d = new ox(), sx = function() {
|
|
|
10221
10231
|
toHtml: wr
|
|
10222
10232
|
}, cx = function() {
|
|
10223
10233
|
var t = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {}, n = t.autoReplaceSvgRoot, r = n === void 0 ? we : n;
|
|
10224
|
-
(Object.keys(Je.styles).length > 0 || q.autoFetchSvg) &&
|
|
10234
|
+
(Object.keys(Je.styles).length > 0 || q.autoFetchSvg) && kt && q.autoReplaceSvg && Ge.dom.i2svg({
|
|
10225
10235
|
node: r
|
|
10226
10236
|
});
|
|
10227
10237
|
};
|
|
@@ -10236,7 +10246,7 @@ function _o(e, t) {
|
|
|
10236
10246
|
}
|
|
10237
10247
|
}), Object.defineProperty(e, "node", {
|
|
10238
10248
|
get: function() {
|
|
10239
|
-
if (
|
|
10249
|
+
if (kt) {
|
|
10240
10250
|
var r = we.createElement("div");
|
|
10241
10251
|
return r.innerHTML = e.html, r.children;
|
|
10242
10252
|
}
|
|
@@ -10313,8 +10323,8 @@ function Mi(e) {
|
|
|
10313
10323
|
} : Vt("generateAbstractIcon", b) || {
|
|
10314
10324
|
children: [],
|
|
10315
10325
|
attributes: {}
|
|
10316
|
-
}, y = x.children,
|
|
10317
|
-
return b.children = y, b.attributes =
|
|
10326
|
+
}, y = x.children, k = x.attributes;
|
|
10327
|
+
return b.children = y, b.attributes = k, s ? fx(b) : dx(b);
|
|
10318
10328
|
}
|
|
10319
10329
|
function rl(e) {
|
|
10320
10330
|
var t = e.content, n = e.width, r = e.height, o = e.transform, a = e.extra, i = e.watchable, s = i === void 0 ? !1 : i, l = A(A({}, a.attributes), {}, {
|
|
@@ -10461,7 +10471,7 @@ function Md(e) {
|
|
|
10461
10471
|
}));
|
|
10462
10472
|
}), o;
|
|
10463
10473
|
}
|
|
10464
|
-
function
|
|
10474
|
+
function kx(e) {
|
|
10465
10475
|
var t = " ".concat(e.outerHTML, " ");
|
|
10466
10476
|
return t = "".concat(t, "Font Awesome fontawesome.com "), t;
|
|
10467
10477
|
}
|
|
@@ -10472,7 +10482,7 @@ var zr = {
|
|
|
10472
10482
|
if (t[1].forEach(function(o) {
|
|
10473
10483
|
n.parentNode.insertBefore(Md(o), n);
|
|
10474
10484
|
}), n.getAttribute(on) === null && q.keepOriginalSource) {
|
|
10475
|
-
var r = we.createComment(
|
|
10485
|
+
var r = we.createComment(kx(n));
|
|
10476
10486
|
n.parentNode.replaceChild(r, n);
|
|
10477
10487
|
} else
|
|
10478
10488
|
n.remove();
|
|
@@ -10535,7 +10545,7 @@ function sl(e) {
|
|
|
10535
10545
|
} else yx(f.target) && o(f.target);
|
|
10536
10546
|
});
|
|
10537
10547
|
}
|
|
10538
|
-
}),
|
|
10548
|
+
}), kt && no.observe(l, {
|
|
10539
10549
|
childList: !0,
|
|
10540
10550
|
attributes: !0,
|
|
10541
10551
|
characterData: !0,
|
|
@@ -10543,7 +10553,7 @@ function sl(e) {
|
|
|
10543
10553
|
});
|
|
10544
10554
|
}
|
|
10545
10555
|
}
|
|
10546
|
-
function
|
|
10556
|
+
function Ex() {
|
|
10547
10557
|
no && no.disconnect();
|
|
10548
10558
|
}
|
|
10549
10559
|
function Cx(e) {
|
|
@@ -10555,7 +10565,7 @@ function Cx(e) {
|
|
|
10555
10565
|
}
|
|
10556
10566
|
function $x(e) {
|
|
10557
10567
|
var t = e.getAttribute("data-prefix"), n = e.getAttribute("data-icon"), r = e.innerText !== void 0 ? e.innerText.trim() : "", o = Oo(Ni(e));
|
|
10558
|
-
return o.prefix || (o.prefix = Dt()), t && n && (o.prefix = t, o.iconName = n), o.iconName && o.prefix || (o.prefix && r.length > 0 && (o.iconName = Xy(o.prefix, e.innerText) || Ti(o.prefix,
|
|
10568
|
+
return o.prefix || (o.prefix = Dt()), t && n && (o.prefix = t, o.iconName = n), o.iconName && o.prefix || (o.prefix && r.length > 0 && (o.iconName = Xy(o.prefix, e.innerText) || Ti(o.prefix, Ed(e.innerText))), !o.iconName && q.autoFetchSvg && e.firstChild && e.firstChild.nodeType === Node.TEXT_NODE && (o.iconName = e.firstChild.data)), o;
|
|
10559
10569
|
}
|
|
10560
10570
|
function Rx(e) {
|
|
10561
10571
|
var t = Rn(e.attributes).reduce(function(n, r) {
|
|
@@ -10616,7 +10626,7 @@ function Ix() {
|
|
|
10616
10626
|
}
|
|
10617
10627
|
function ul(e) {
|
|
10618
10628
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : null;
|
|
10619
|
-
if (!
|
|
10629
|
+
if (!kt) return Promise.resolve();
|
|
10620
10630
|
var n = we.documentElement.classList, r = function(f) {
|
|
10621
10631
|
return n.add("".concat(qs, "-").concat(f));
|
|
10622
10632
|
}, o = function(f) {
|
|
@@ -10862,7 +10872,7 @@ var Ox = function(t) {
|
|
|
10862
10872
|
normal: "fas",
|
|
10863
10873
|
400: "fas"
|
|
10864
10874
|
}
|
|
10865
|
-
}), vb),
|
|
10875
|
+
}), vb), Ey), $b), Da = Object.keys(dl).reduce(function(e, t) {
|
|
10866
10876
|
return e[t.toLowerCase()] = dl[t], e;
|
|
10867
10877
|
}, {}), Lx = Object.keys(Da).reduce(function(e, t) {
|
|
10868
10878
|
var n = Da[t];
|
|
@@ -10870,7 +10880,7 @@ var Ox = function(t) {
|
|
|
10870
10880
|
}, {});
|
|
10871
10881
|
function Dx(e) {
|
|
10872
10882
|
var t = e.replace(Vd, "");
|
|
10873
|
-
return
|
|
10883
|
+
return Ed(tt(t)[0] || "");
|
|
10874
10884
|
}
|
|
10875
10885
|
function Vx(e) {
|
|
10876
10886
|
var t = e.getPropertyValue("font-feature-settings").includes("ss01"), n = e.getPropertyValue("content"), r = n.replace(Vd, ""), o = r.codePointAt(0), a = o >= cl[0] && o <= cl[1], i = r.length === 2 ? r[0] === r[1] : !1;
|
|
@@ -10898,9 +10908,9 @@ function fl(e, t) {
|
|
|
10898
10908
|
}
|
|
10899
10909
|
if (b && !v && (!i || i.getAttribute(Fi) !== d || i.getAttribute(Ii) !== x)) {
|
|
10900
10910
|
e.setAttribute(n, x), i && e.removeChild(i);
|
|
10901
|
-
var
|
|
10911
|
+
var k = Px(), w = k.extra;
|
|
10902
10912
|
w.attributes[Pa] = t, Ma(b, d).then(function(C) {
|
|
10903
|
-
var I = Mi(A(A({},
|
|
10913
|
+
var I = Mi(A(A({}, k), {}, {
|
|
10904
10914
|
icons: {
|
|
10905
10915
|
main: C,
|
|
10906
10916
|
mask: Od()
|
|
@@ -10961,7 +10971,7 @@ var Gx = function(t) {
|
|
|
10961
10971
|
};
|
|
10962
10972
|
function gl(e) {
|
|
10963
10973
|
var t = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
|
|
10964
|
-
if (
|
|
10974
|
+
if (kt) {
|
|
10965
10975
|
var n;
|
|
10966
10976
|
if (t)
|
|
10967
10977
|
n = e;
|
|
@@ -11050,7 +11060,7 @@ var Ux = {
|
|
|
11050
11060
|
sl(Oa("mutationObserverCallbacks", {}));
|
|
11051
11061
|
},
|
|
11052
11062
|
noAuto: function() {
|
|
11053
|
-
|
|
11063
|
+
Ex();
|
|
11054
11064
|
},
|
|
11055
11065
|
watch: function(n) {
|
|
11056
11066
|
var r = n.observeMutationsRoot;
|
|
@@ -11196,7 +11206,7 @@ var Xx = {
|
|
|
11196
11206
|
tag: "g",
|
|
11197
11207
|
attributes: A({}, d.outer),
|
|
11198
11208
|
children: [v]
|
|
11199
|
-
}, x = "mask-".concat(s || Xs()), y = "clip-".concat(s || Xs()),
|
|
11209
|
+
}, x = "mask-".concat(s || Xs()), y = "clip-".concat(s || Xs()), k = {
|
|
11200
11210
|
tag: "mask",
|
|
11201
11211
|
attributes: A(A({}, ta), {}, {
|
|
11202
11212
|
id: x,
|
|
@@ -11212,7 +11222,7 @@ var Xx = {
|
|
|
11212
11222
|
id: y
|
|
11213
11223
|
},
|
|
11214
11224
|
children: Kx(g)
|
|
11215
|
-
},
|
|
11225
|
+
}, k]
|
|
11216
11226
|
};
|
|
11217
11227
|
return r.push(w, {
|
|
11218
11228
|
tag: "rect",
|
|
@@ -11504,9 +11514,9 @@ function g1(e) {
|
|
|
11504
11514
|
swapOpacity: b,
|
|
11505
11515
|
rotateBy: x,
|
|
11506
11516
|
widthAuto: y,
|
|
11507
|
-
className:
|
|
11517
|
+
className: k
|
|
11508
11518
|
} = e, w = [];
|
|
11509
|
-
return
|
|
11519
|
+
return k && w.push(...k.split(" ")), t && w.push(gt.beat), n && w.push(gt.fade), r && w.push(gt.beatFade), o && w.push(gt.bounce), a && 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(d1[m]), p != null && p !== 0 && w.push(c1[p]), v != null && w.push(u1[v]), b && w.push(mt.swapOpacity), l1 ? (x && w.push(mt.rotateBy), y && w.push(mt.widthAuto), (er.cssPrefix || er.familyPrefix || Hn) === Hn ? w : (
|
|
11510
11520
|
// TODO: see if we can achieve custom prefix support without iterating
|
|
11511
11521
|
// eslint-disable-next-line unicorn/no-array-callback-reference
|
|
11512
11522
|
w.map(f1)
|
|
@@ -11602,7 +11612,7 @@ var v1 = {
|
|
|
11602
11612
|
prefix: "fas",
|
|
11603
11613
|
iconName: "house",
|
|
11604
11614
|
icon: [512, 512, [127968, 63498, 63500, "home", "home-alt", "home-lg-alt"], "f015", "M277.8 8.6c-12.3-11.4-31.3-11.4-43.5 0l-224 208c-9.6 9-12.8 22.9-8 35.1S18.8 272 32 272l16 0 0 176c0 35.3 28.7 64 64 64l288 0c35.3 0 64-28.7 64-64l0-176 16 0c13.2 0 25-8.1 29.8-20.3s1.6-26.2-8-35.1l-224-208zM240 320l32 0c26.5 0 48 21.5 48 48l0 96-128 0 0-96c0-26.5 21.5-48 48-48z"]
|
|
11605
|
-
},
|
|
11615
|
+
}, k1 = S1, ro = {
|
|
11606
11616
|
prefix: "fas",
|
|
11607
11617
|
iconName: "xmark",
|
|
11608
11618
|
icon: [384, 512, [128473, 10005, 10006, 10060, 215, "close", "multiply", "remove", "times"], "f00d", "M55.1 73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L147.2 256 9.9 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192.5 301.3 329.9 438.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.8 256 375.1 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192.5 210.7 55.1 73.4z"]
|
|
@@ -11614,7 +11624,7 @@ var v1 = {
|
|
|
11614
11624
|
prefix: "fas",
|
|
11615
11625
|
iconName: "chevron-down",
|
|
11616
11626
|
icon: [448, 512, [], "f078", "M201.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L224 338.7 54.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]
|
|
11617
|
-
},
|
|
11627
|
+
}, E1 = {
|
|
11618
11628
|
prefix: "fas",
|
|
11619
11629
|
iconName: "inbox",
|
|
11620
11630
|
icon: [512, 512, [], "f01c", "M91.8 32C59.9 32 32.9 55.4 28.4 86.9L.6 281.2c-.4 3-.6 6-.6 9.1L0 416c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-125.7c0-3-.2-6.1-.6-9.1L483.6 86.9C479.1 55.4 452.1 32 420.2 32L91.8 32zm0 64l328.5 0 27.4 192-59.9 0c-12.1 0-23.2 6.8-28.6 17.7l-14.3 28.6c-5.4 10.8-16.5 17.7-28.6 17.7l-120.4 0c-12.1 0-23.2-6.8-28.6-17.7l-14.3-28.6c-5.4-10.8-16.5-17.7-28.6-17.7L64.3 288 91.8 96z"]
|
|
@@ -11787,7 +11797,7 @@ const A1 = ge(
|
|
|
11787
11797
|
/* @__PURE__ */ h.jsxs("div", { className: "relative", children: [
|
|
11788
11798
|
s && /* @__PURE__ */ h.jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-gray-500", children: s }),
|
|
11789
11799
|
/* @__PURE__ */ h.jsx(
|
|
11790
|
-
|
|
11800
|
+
b0,
|
|
11791
11801
|
{
|
|
11792
11802
|
ref: f,
|
|
11793
11803
|
type: t,
|
|
@@ -11923,7 +11933,7 @@ const M1 = ge(
|
|
|
11923
11933
|
label: l
|
|
11924
11934
|
}) => {
|
|
11925
11935
|
const u = e.find((c) => c.value === t);
|
|
11926
|
-
return /* @__PURE__ */ h.jsx(
|
|
11936
|
+
return /* @__PURE__ */ h.jsx(j0, { value: t ?? void 0, onChange: n, disabled: o, children: /* @__PURE__ */ h.jsxs("div", { className: _("flex flex-col gap-1.5", s), children: [
|
|
11927
11937
|
l && /* @__PURE__ */ h.jsx(gc, { className: "block text-sm font-medium text-gray-700 dark:text-gray-300 text-left", children: l }),
|
|
11928
11938
|
/* @__PURE__ */ h.jsxs("div", { className: "relative", children: [
|
|
11929
11939
|
/* @__PURE__ */ h.jsxs(
|
|
@@ -12094,7 +12104,7 @@ const M1 = ge(
|
|
|
12094
12104
|
)
|
|
12095
12105
|
] }),
|
|
12096
12106
|
/* @__PURE__ */ h.jsx(
|
|
12097
|
-
|
|
12107
|
+
Lh,
|
|
12098
12108
|
{
|
|
12099
12109
|
checked: e,
|
|
12100
12110
|
onChange: t,
|
|
@@ -12156,7 +12166,7 @@ const M1 = ge(
|
|
|
12156
12166
|
return /* @__PURE__ */ h.jsxs(xi, { className: _("w-full space-y-1.5", e), children: [
|
|
12157
12167
|
t && /* @__PURE__ */ h.jsx(sr, { className: "block text-sm font-medium leading-none text-gray-900 peer-disabled:cursor-not-allowed peer-disabled:opacity-70", children: t }),
|
|
12158
12168
|
/* @__PURE__ */ h.jsx(
|
|
12159
|
-
|
|
12169
|
+
zh,
|
|
12160
12170
|
{
|
|
12161
12171
|
ref: u,
|
|
12162
12172
|
disabled: s,
|
|
@@ -12207,7 +12217,7 @@ const RS = ({
|
|
|
12207
12217
|
}
|
|
12208
12218
|
)
|
|
12209
12219
|
] }, u.id)) });
|
|
12210
|
-
},
|
|
12220
|
+
}, kl = ge(
|
|
12211
12221
|
"flex items-center text-sm font-medium transition-colors",
|
|
12212
12222
|
{
|
|
12213
12223
|
variants: {
|
|
@@ -12236,9 +12246,9 @@ const RS = ({
|
|
|
12236
12246
|
Bn,
|
|
12237
12247
|
{
|
|
12238
12248
|
href: "/",
|
|
12239
|
-
className: _(
|
|
12249
|
+
className: _(kl({ variant: r })),
|
|
12240
12250
|
"aria-label": "Home",
|
|
12241
|
-
children: /* @__PURE__ */ h.jsx(Ce, { icon:
|
|
12251
|
+
children: /* @__PURE__ */ h.jsx(Ce, { icon: k1, className: "h-4 w-4" })
|
|
12242
12252
|
}
|
|
12243
12253
|
),
|
|
12244
12254
|
/* @__PURE__ */ h.jsx(
|
|
@@ -12275,7 +12285,7 @@ const RS = ({
|
|
|
12275
12285
|
Bn,
|
|
12276
12286
|
{
|
|
12277
12287
|
href: s.href,
|
|
12278
|
-
className: _(
|
|
12288
|
+
className: _(kl({ variant: r })),
|
|
12279
12289
|
children: s.label
|
|
12280
12290
|
}
|
|
12281
12291
|
)
|
|
@@ -12402,7 +12412,7 @@ const RS = ({
|
|
|
12402
12412
|
children: "Try Again"
|
|
12403
12413
|
}
|
|
12404
12414
|
) : null) })
|
|
12405
|
-
] }),
|
|
12415
|
+
] }), El = ge("flex items-center gap-2 transition-all", {
|
|
12406
12416
|
variants: {
|
|
12407
12417
|
state: {
|
|
12408
12418
|
default: "",
|
|
@@ -12443,7 +12453,7 @@ const RS = ({
|
|
|
12443
12453
|
),
|
|
12444
12454
|
...a,
|
|
12445
12455
|
children: [
|
|
12446
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
12456
|
+
/* @__PURE__ */ h.jsxs("div", { className: El({ state: l }), children: [
|
|
12447
12457
|
/* @__PURE__ */ h.jsx("div", { className: "relative", children: /* @__PURE__ */ h.jsx(
|
|
12448
12458
|
"img",
|
|
12449
12459
|
{
|
|
@@ -12467,7 +12477,7 @@ const RS = ({
|
|
|
12467
12477
|
] })
|
|
12468
12478
|
] }),
|
|
12469
12479
|
/* @__PURE__ */ h.jsx("span", { className: "text-xs font-medium text-gray-500 self-center px-1", children: n ? "-" : "@" }),
|
|
12470
|
-
/* @__PURE__ */ h.jsxs("div", { className:
|
|
12480
|
+
/* @__PURE__ */ h.jsxs("div", { className: El({ state: u }), children: [
|
|
12471
12481
|
/* @__PURE__ */ h.jsxs("div", { className: "flex flex-col items-start", children: [
|
|
12472
12482
|
t.accessory && /* @__PURE__ */ h.jsx(
|
|
12473
12483
|
"span",
|
|
@@ -12943,7 +12953,7 @@ const bw = ge(
|
|
|
12943
12953
|
status: i,
|
|
12944
12954
|
children: s,
|
|
12945
12955
|
className: l
|
|
12946
|
-
}) => /* @__PURE__ */ h.jsx(yn, { appear: !0, show: e, as: Ie, children: /* @__PURE__ */ h.jsxs(
|
|
12956
|
+
}) => /* @__PURE__ */ h.jsx(yn, { appear: !0, show: e, as: Ie, children: /* @__PURE__ */ h.jsxs(g0, { as: "div", className: "relative z-50", onClose: t, children: [
|
|
12947
12957
|
/* @__PURE__ */ h.jsx(
|
|
12948
12958
|
Qn,
|
|
12949
12959
|
{
|
|
@@ -12955,7 +12965,7 @@ const bw = ge(
|
|
|
12955
12965
|
leaveFrom: "opacity-100",
|
|
12956
12966
|
leaveTo: "opacity-0",
|
|
12957
12967
|
children: /* @__PURE__ */ h.jsx(
|
|
12958
|
-
|
|
12968
|
+
f0,
|
|
12959
12969
|
{
|
|
12960
12970
|
className: _(
|
|
12961
12971
|
"fixed inset-0 transition-opacity",
|
|
@@ -13035,7 +13045,7 @@ const bw = ge(
|
|
|
13035
13045
|
}
|
|
13036
13046
|
);
|
|
13037
13047
|
Sw.displayName = "Footer";
|
|
13038
|
-
const
|
|
13048
|
+
const kw = ge(
|
|
13039
13049
|
"w-full z-30 border-b transition-colors duration-200",
|
|
13040
13050
|
{
|
|
13041
13051
|
variants: {
|
|
@@ -13087,9 +13097,9 @@ const Ew = ge(
|
|
|
13087
13097
|
Cc,
|
|
13088
13098
|
{
|
|
13089
13099
|
as: "nav",
|
|
13090
|
-
className: _(
|
|
13100
|
+
className: _(kw({ variant: c, position: f }), u),
|
|
13091
13101
|
...m,
|
|
13092
|
-
children: ({ open:
|
|
13102
|
+
children: ({ open: k, close: w }) => /* @__PURE__ */ h.jsxs(h.Fragment, { children: [
|
|
13093
13103
|
/* @__PURE__ */ h.jsxs("div", { className: "container mx-auto flex items-center justify-between px-4 h-16", children: [
|
|
13094
13104
|
/* @__PURE__ */ h.jsxs(
|
|
13095
13105
|
Bn,
|
|
@@ -13134,7 +13144,7 @@ const Ew = ge(
|
|
|
13134
13144
|
C.path
|
|
13135
13145
|
);
|
|
13136
13146
|
}) }),
|
|
13137
|
-
a ? /* @__PURE__ */ h.jsxs(
|
|
13147
|
+
a ? /* @__PURE__ */ h.jsxs(sh, { as: "div", className: "relative ml-2", children: [
|
|
13138
13148
|
/* @__PURE__ */ h.jsxs(yc, { 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: [
|
|
13139
13149
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open user menu" }),
|
|
13140
13150
|
/* @__PURE__ */ h.jsx(
|
|
@@ -13148,7 +13158,7 @@ const Ew = ge(
|
|
|
13148
13158
|
}
|
|
13149
13159
|
),
|
|
13150
13160
|
p && /* @__PURE__ */ h.jsx("div", { className: "absolute -top-1 -right-2", children: /* @__PURE__ */ h.jsx(
|
|
13151
|
-
|
|
13161
|
+
Ea,
|
|
13152
13162
|
{
|
|
13153
13163
|
fill: "solid",
|
|
13154
13164
|
size: "xs",
|
|
@@ -13184,7 +13194,7 @@ const Ew = ge(
|
|
|
13184
13194
|
startIcon: /* @__PURE__ */ h.jsx(
|
|
13185
13195
|
Ce,
|
|
13186
13196
|
{
|
|
13187
|
-
icon:
|
|
13197
|
+
icon: E1,
|
|
13188
13198
|
className: "text-primary-500 w-4"
|
|
13189
13199
|
}
|
|
13190
13200
|
),
|
|
@@ -13269,7 +13279,7 @@ const Ew = ge(
|
|
|
13269
13279
|
),
|
|
13270
13280
|
children: [
|
|
13271
13281
|
/* @__PURE__ */ h.jsx("span", { className: "sr-only", children: "Open main menu" }),
|
|
13272
|
-
|
|
13282
|
+
k ? /* @__PURE__ */ h.jsx(
|
|
13273
13283
|
Ce,
|
|
13274
13284
|
{
|
|
13275
13285
|
icon: ro,
|
|
@@ -13302,7 +13312,7 @@ const Ew = ge(
|
|
|
13302
13312
|
leaveFrom: "opacity-100 scale-100",
|
|
13303
13313
|
leaveTo: "opacity-0 scale-95",
|
|
13304
13314
|
children: /* @__PURE__ */ h.jsx(
|
|
13305
|
-
|
|
13315
|
+
Ei,
|
|
13306
13316
|
{
|
|
13307
13317
|
focus: !0,
|
|
13308
13318
|
className: "absolute top-0 inset-x-0 z-30 origin-top-right transform p-2 transition md:hidden",
|
|
@@ -13373,7 +13383,7 @@ const Ew = ge(
|
|
|
13373
13383
|
},
|
|
13374
13384
|
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",
|
|
13375
13385
|
endIcon: /* @__PURE__ */ h.jsx(
|
|
13376
|
-
|
|
13386
|
+
Ea,
|
|
13377
13387
|
{
|
|
13378
13388
|
fill: "solid",
|
|
13379
13389
|
size: "xs",
|
|
@@ -13441,7 +13451,7 @@ const Ew = ge(
|
|
|
13441
13451
|
] })
|
|
13442
13452
|
}
|
|
13443
13453
|
);
|
|
13444
|
-
},
|
|
13454
|
+
}, Ew = ge("w-full caption-bottom", {
|
|
13445
13455
|
variants: {
|
|
13446
13456
|
size: {
|
|
13447
13457
|
sm: "text-xs",
|
|
@@ -13457,7 +13467,7 @@ const Ew = ge(
|
|
|
13457
13467
|
"table",
|
|
13458
13468
|
{
|
|
13459
13469
|
ref: r,
|
|
13460
|
-
className: _(
|
|
13470
|
+
className: _(Ew({ size: t }), e),
|
|
13461
13471
|
...n
|
|
13462
13472
|
}
|
|
13463
13473
|
) })
|
|
@@ -13743,14 +13753,14 @@ function Or(e, t, n, r) {
|
|
|
13743
13753
|
}, p = [];
|
|
13744
13754
|
g.forEach((v) => {
|
|
13745
13755
|
const b = [...p].reverse()[0], x = v.column.depth === m.depth;
|
|
13746
|
-
let y,
|
|
13747
|
-
if (x && v.column.parent ? y = v.column.parent : (y = v.column,
|
|
13756
|
+
let y, k = !1;
|
|
13757
|
+
if (x && v.column.parent ? y = v.column.parent : (y = v.column, k = !0), b && b?.column === y)
|
|
13748
13758
|
b.subHeaders.push(v);
|
|
13749
13759
|
else {
|
|
13750
13760
|
const w = Al(n, y, {
|
|
13751
13761
|
id: [r, d, y.id, v?.id].filter(Boolean).join("_"),
|
|
13752
|
-
isPlaceholder:
|
|
13753
|
-
placeholderId:
|
|
13762
|
+
isPlaceholder: k,
|
|
13763
|
+
placeholderId: k ? `${p.filter((C) => C.column === y).length}` : void 0,
|
|
13754
13764
|
depth: d,
|
|
13755
13765
|
index: p.length
|
|
13756
13766
|
});
|
|
@@ -13767,10 +13777,10 @@ function Or(e, t, n, r) {
|
|
|
13767
13777
|
let p = 0, v = 0, b = [0];
|
|
13768
13778
|
m.subHeaders && m.subHeaders.length ? (b = [], f(m.subHeaders).forEach((y) => {
|
|
13769
13779
|
let {
|
|
13770
|
-
colSpan:
|
|
13780
|
+
colSpan: k,
|
|
13771
13781
|
rowSpan: w
|
|
13772
13782
|
} = y;
|
|
13773
|
-
p +=
|
|
13783
|
+
p += k, b.push(w);
|
|
13774
13784
|
})) : p = 1;
|
|
13775
13785
|
const x = Math.min(...b);
|
|
13776
13786
|
return v = v + x, m.colSpan = p, m.rowSpan = v, {
|
|
@@ -14282,8 +14292,8 @@ const _r = {
|
|
|
14282
14292
|
return;
|
|
14283
14293
|
const i = e.getSize(), s = e ? e.getLeafHeaders().map((b) => [b.column.id, b.column.getSize()]) : [[r.id, r.getSize()]], l = aa(a) ? Math.round(a.touches[0].clientX) : a.clientX, u = {}, c = (b, x) => {
|
|
14284
14294
|
typeof x == "number" && (t.setColumnSizingInfo((y) => {
|
|
14285
|
-
var
|
|
14286
|
-
const C = t.options.columnResizeDirection === "rtl" ? -1 : 1, I = (x - ((
|
|
14295
|
+
var k, w;
|
|
14296
|
+
const C = t.options.columnResizeDirection === "rtl" ? -1 : 1, I = (x - ((k = y?.startOffset) != null ? k : 0)) * C, F = Math.max(I / ((w = y?.startSize) != null ? w : 0), -0.999999);
|
|
14287
14297
|
return y.columnSizingStart.forEach((W) => {
|
|
14288
14298
|
let [P, O] = W;
|
|
14289
14299
|
u[P] = Math.round(Math.max(O + O * F, 0) * 100) / 100;
|
|
@@ -15234,7 +15244,7 @@ function hS() {
|
|
|
15234
15244
|
const m = a[d], p = i[m.id], v = p.sortUndefined, b = (g = m?.desc) != null ? g : !1;
|
|
15235
15245
|
let x = 0;
|
|
15236
15246
|
if (v) {
|
|
15237
|
-
const y = c.getValue(m.id),
|
|
15247
|
+
const y = c.getValue(m.id), k = f.getValue(m.id), w = y === void 0, C = k === void 0;
|
|
15238
15248
|
if (w || C) {
|
|
15239
15249
|
if (v === "first") return w ? -1 : 1;
|
|
15240
15250
|
if (v === "last") return w ? 1 : -1;
|
|
@@ -15426,7 +15436,7 @@ export {
|
|
|
15426
15436
|
RS as Accordion,
|
|
15427
15437
|
Y1 as ActionBar,
|
|
15428
15438
|
Lc as Avatar,
|
|
15429
|
-
|
|
15439
|
+
Ea as Badge,
|
|
15430
15440
|
PS as Breadcrumbs,
|
|
15431
15441
|
Ye as Button,
|
|
15432
15442
|
FS as CallToAction,
|
|
@@ -15457,7 +15467,7 @@ export {
|
|
|
15457
15467
|
U1 as actionBarVariants,
|
|
15458
15468
|
Iv as avatarVariants,
|
|
15459
15469
|
Av as badgeVariants,
|
|
15460
|
-
|
|
15470
|
+
kl as breadcrumbVariants,
|
|
15461
15471
|
_v as buttonVariants,
|
|
15462
15472
|
Tv as cardVariants,
|
|
15463
15473
|
_ as cn,
|
|
@@ -15468,11 +15478,11 @@ export {
|
|
|
15468
15478
|
G1 as errorStateVariants,
|
|
15469
15479
|
_1 as inputVariants,
|
|
15470
15480
|
M1 as linkVariants,
|
|
15471
|
-
|
|
15481
|
+
kw as navbarVariants,
|
|
15472
15482
|
j1 as selectTriggerVariants,
|
|
15473
15483
|
D1 as switchThumbVariants,
|
|
15474
15484
|
L1 as switchTrackVariants,
|
|
15475
|
-
|
|
15485
|
+
Ew as tableVariants,
|
|
15476
15486
|
V1 as textareaVariants,
|
|
15477
15487
|
mw as useCountdown
|
|
15478
15488
|
};
|