@cloudoperators/juno-messages-provider 0.2.28 → 0.2.29
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/build/index.js +409 -409
- package/package.json +2 -5
package/build/index.js
CHANGED
|
@@ -3,14 +3,14 @@ import V, { createContext as me, useContext as ye, forwardRef as K, cloneElement
|
|
|
3
3
|
import { createStore as gs, useStore as vs } from "zustand";
|
|
4
4
|
import * as Pn from "react-dom";
|
|
5
5
|
import { createPortal as oo, flushSync as ze } from "react-dom";
|
|
6
|
-
const
|
|
7
|
-
storeId:
|
|
6
|
+
const Xo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString(36).slice(-5)}}`, bs = (t, n) => ({
|
|
7
|
+
storeId: Xo("store-"),
|
|
8
8
|
messages: [],
|
|
9
9
|
// this is the messages state
|
|
10
10
|
actions: {
|
|
11
11
|
addMessage: (e) => {
|
|
12
12
|
if (n().messages.findIndex((a) => a.text === e.text && a.variant === e.variant) >= 0) return;
|
|
13
|
-
const o = n().messages.slice(), i =
|
|
13
|
+
const o = n().messages.slice(), i = Xo("message-");
|
|
14
14
|
return o.push({ id: i, ...e }), t((a) => ({ ...a, messages: o })), i;
|
|
15
15
|
},
|
|
16
16
|
removeMessage: (e) => {
|
|
@@ -51,10 +51,10 @@ function ha(t) {
|
|
|
51
51
|
});
|
|
52
52
|
}), e;
|
|
53
53
|
}
|
|
54
|
-
var Er = { exports: {} }, Kt = {},
|
|
54
|
+
var Er = { exports: {} }, Kt = {}, Jo;
|
|
55
55
|
function xs() {
|
|
56
|
-
if (
|
|
57
|
-
|
|
56
|
+
if (Jo) return Kt;
|
|
57
|
+
Jo = 1;
|
|
58
58
|
var t = /* @__PURE__ */ Symbol.for("react.transitional.element"), n = /* @__PURE__ */ Symbol.for("react.fragment");
|
|
59
59
|
function e(r, o, i) {
|
|
60
60
|
var a = null;
|
|
@@ -90,7 +90,7 @@ function Es() {
|
|
|
90
90
|
return "StrictMode";
|
|
91
91
|
case _:
|
|
92
92
|
return "Suspense";
|
|
93
|
-
case
|
|
93
|
+
case N:
|
|
94
94
|
return "SuspenseList";
|
|
95
95
|
case S:
|
|
96
96
|
return "Activity";
|
|
@@ -110,7 +110,7 @@ function Es() {
|
|
|
110
110
|
return D = D.displayName, D || (D = k.displayName || k.name || "", D = D !== "" ? "ForwardRef(" + D + ")" : "ForwardRef"), D;
|
|
111
111
|
case T:
|
|
112
112
|
return k = D.displayName || null, k !== null ? k : t(D.type) || "Memo";
|
|
113
|
-
case
|
|
113
|
+
case j:
|
|
114
114
|
k = D._payload, D = D._init;
|
|
115
115
|
try {
|
|
116
116
|
return t(D(k));
|
|
@@ -131,17 +131,17 @@ function Es() {
|
|
|
131
131
|
}
|
|
132
132
|
if (k) {
|
|
133
133
|
k = console;
|
|
134
|
-
var ne = k.error,
|
|
134
|
+
var ne = k.error, J = typeof Symbol == "function" && Symbol.toStringTag && D[Symbol.toStringTag] || D.constructor.name || "Object";
|
|
135
135
|
return ne.call(
|
|
136
136
|
k,
|
|
137
137
|
"The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
|
|
138
|
-
|
|
138
|
+
J
|
|
139
139
|
), n(D);
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
function r(D) {
|
|
143
143
|
if (D === x) return "<>";
|
|
144
|
-
if (typeof D == "object" && D !== null && D.$$typeof ===
|
|
144
|
+
if (typeof D == "object" && D !== null && D.$$typeof === j)
|
|
145
145
|
return "<...>";
|
|
146
146
|
try {
|
|
147
147
|
var k = t(D);
|
|
@@ -182,14 +182,14 @@ function Es() {
|
|
|
182
182
|
"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."
|
|
183
183
|
)), D = this.props.ref, D !== void 0 ? D : null;
|
|
184
184
|
}
|
|
185
|
-
function u(D, k, ne,
|
|
185
|
+
function u(D, k, ne, J, fe, $) {
|
|
186
186
|
var ee = ne.ref;
|
|
187
187
|
return D = {
|
|
188
188
|
$$typeof: g,
|
|
189
189
|
type: D,
|
|
190
190
|
key: k,
|
|
191
191
|
props: ne,
|
|
192
|
-
_owner:
|
|
192
|
+
_owner: J
|
|
193
193
|
}, (ee !== void 0 ? ee : null) !== null ? Object.defineProperty(D, "ref", {
|
|
194
194
|
enumerable: !1,
|
|
195
195
|
get: s
|
|
@@ -215,13 +215,13 @@ function Es() {
|
|
|
215
215
|
value: $
|
|
216
216
|
}), Object.freeze && (Object.freeze(D.props), Object.freeze(D)), D;
|
|
217
217
|
}
|
|
218
|
-
function c(D, k, ne,
|
|
218
|
+
function c(D, k, ne, J, fe, $) {
|
|
219
219
|
var ee = k.children;
|
|
220
220
|
if (ee !== void 0)
|
|
221
|
-
if (
|
|
221
|
+
if (J)
|
|
222
222
|
if (B(ee)) {
|
|
223
|
-
for (
|
|
224
|
-
v(ee[
|
|
223
|
+
for (J = 0; J < ee.length; J++)
|
|
224
|
+
v(ee[J]);
|
|
225
225
|
Object.freeze && Object.freeze(ee);
|
|
226
226
|
} else
|
|
227
227
|
console.error(
|
|
@@ -233,18 +233,18 @@ function Es() {
|
|
|
233
233
|
var ie = Object.keys(k).filter(function(Yt) {
|
|
234
234
|
return Yt !== "key";
|
|
235
235
|
});
|
|
236
|
-
|
|
236
|
+
J = 0 < ie.length ? "{key: someKey, " + ie.join(": ..., ") + ": ...}" : "{key: someKey}", oe[ee + J] || (ie = 0 < ie.length ? "{" + ie.join(": ..., ") + ": ...}" : "{}", console.error(
|
|
237
237
|
`A props object containing a "key" prop is being spread into JSX:
|
|
238
238
|
let props = %s;
|
|
239
239
|
<%s {...props} />
|
|
240
240
|
React keys must be passed directly to JSX without using spread:
|
|
241
241
|
let props = %s;
|
|
242
242
|
<%s key={someKey} {...props} />`,
|
|
243
|
-
|
|
243
|
+
J,
|
|
244
244
|
ee,
|
|
245
245
|
ie,
|
|
246
246
|
ee
|
|
247
|
-
), oe[ee +
|
|
247
|
+
), oe[ee + J] = !0);
|
|
248
248
|
}
|
|
249
249
|
if (ee = null, ne !== void 0 && (e(ne), ee = "" + ne), a(k) && (e(k.key), ee = "" + k.key), "key" in k) {
|
|
250
250
|
ne = {};
|
|
@@ -264,12 +264,12 @@ React keys must be passed directly to JSX without using spread:
|
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
266
|
function v(D) {
|
|
267
|
-
m(D) ? D._store && (D._store.validated = 1) : typeof D == "object" && D !== null && D.$$typeof ===
|
|
267
|
+
m(D) ? D._store && (D._store.validated = 1) : typeof D == "object" && D !== null && D.$$typeof === j && (D._payload.status === "fulfilled" ? m(D._payload.value) && D._payload.value._store && (D._payload.value._store.validated = 1) : D._store && (D._store.validated = 1));
|
|
268
268
|
}
|
|
269
269
|
function m(D) {
|
|
270
270
|
return typeof D == "object" && D !== null && D.$$typeof === g;
|
|
271
271
|
}
|
|
272
|
-
var p = V, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), O = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.consumer"), F = /* @__PURE__ */ Symbol.for("react.context"), R = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"),
|
|
272
|
+
var p = V, g = /* @__PURE__ */ Symbol.for("react.transitional.element"), b = /* @__PURE__ */ Symbol.for("react.portal"), x = /* @__PURE__ */ Symbol.for("react.fragment"), C = /* @__PURE__ */ Symbol.for("react.strict_mode"), O = /* @__PURE__ */ Symbol.for("react.profiler"), I = /* @__PURE__ */ Symbol.for("react.consumer"), F = /* @__PURE__ */ Symbol.for("react.context"), R = /* @__PURE__ */ Symbol.for("react.forward_ref"), _ = /* @__PURE__ */ Symbol.for("react.suspense"), N = /* @__PURE__ */ Symbol.for("react.suspense_list"), T = /* @__PURE__ */ Symbol.for("react.memo"), j = /* @__PURE__ */ Symbol.for("react.lazy"), S = /* @__PURE__ */ Symbol.for("react.activity"), y = /* @__PURE__ */ Symbol.for("react.client.reference"), E = p.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE, L = Object.prototype.hasOwnProperty, B = Array.isArray, A = console.createTask ? console.createTask : function() {
|
|
273
273
|
return null;
|
|
274
274
|
};
|
|
275
275
|
p = {
|
|
@@ -282,24 +282,24 @@ React keys must be passed directly to JSX without using spread:
|
|
|
282
282
|
i
|
|
283
283
|
)(), U = A(r(i)), oe = {};
|
|
284
284
|
xn.Fragment = x, xn.jsx = function(D, k, ne) {
|
|
285
|
-
var
|
|
285
|
+
var J = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
286
286
|
return c(
|
|
287
287
|
D,
|
|
288
288
|
k,
|
|
289
289
|
ne,
|
|
290
290
|
!1,
|
|
291
|
-
|
|
292
|
-
|
|
291
|
+
J ? Error("react-stack-top-frame") : P,
|
|
292
|
+
J ? A(r(D)) : U
|
|
293
293
|
);
|
|
294
294
|
}, xn.jsxs = function(D, k, ne) {
|
|
295
|
-
var
|
|
295
|
+
var J = 1e4 > E.recentlyCreatedOwnerStacks++;
|
|
296
296
|
return c(
|
|
297
297
|
D,
|
|
298
298
|
k,
|
|
299
299
|
ne,
|
|
300
300
|
!0,
|
|
301
|
-
|
|
302
|
-
|
|
301
|
+
J ? Error("react-stack-top-frame") : P,
|
|
302
|
+
J ? A(r(D)) : U
|
|
303
303
|
);
|
|
304
304
|
};
|
|
305
305
|
})()), xn;
|
|
@@ -338,11 +338,11 @@ const Ds = me(void 0), Ts = ({
|
|
|
338
338
|
title: t,
|
|
339
339
|
titleId: n,
|
|
340
340
|
...e
|
|
341
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" })),
|
|
341
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm5 11h-4v4h-2v-4H7v-2h4V7h2v4h4v2z" })), Ns = K(Ps), js = ({
|
|
342
342
|
title: t,
|
|
343
343
|
titleId: n,
|
|
344
344
|
...e
|
|
345
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M3 5v14a2 2 0 0 0 2 2h6V3H5a2 2 0 0 0-2 2zm16-2h-6v8h8V5c0-1.1-.9-2-2-2zm-6 18h6c1.1 0 2-.9 2-2v-6h-8v8z" })), Ls = K(
|
|
345
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M3 5v14a2 2 0 0 0 2 2h6V3H5a2 2 0 0 0-2 2zm16-2h-6v8h8V5c0-1.1-.9-2-2-2zm-6 18h6c1.1 0 2-.9 2-2v-6h-8v8z" })), Ls = K(js), _s = ({
|
|
346
346
|
title: t,
|
|
347
347
|
titleId: n,
|
|
348
348
|
...e
|
|
@@ -374,11 +374,11 @@ const Ds = me(void 0), Ts = ({
|
|
|
374
374
|
title: t,
|
|
375
375
|
titleId: n,
|
|
376
376
|
...e
|
|
377
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })), qs = K(Qs),
|
|
377
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6-6-6z" })), qs = K(Qs), Xs = ({
|
|
378
378
|
title: t,
|
|
379
379
|
titleId: n,
|
|
380
380
|
...e
|
|
381
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })),
|
|
381
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z" })), Js = K(Xs), ec = ({
|
|
382
382
|
title: t,
|
|
383
383
|
titleId: n,
|
|
384
384
|
...e
|
|
@@ -450,11 +450,11 @@ const Ds = me(void 0), Ts = ({
|
|
|
450
450
|
title: t,
|
|
451
451
|
titleId: n,
|
|
452
452
|
...e
|
|
453
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" })),
|
|
453
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z" })), Nc = K(Pc), jc = ({
|
|
454
454
|
title: t,
|
|
455
455
|
titleId: n,
|
|
456
456
|
...e
|
|
457
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 18.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 5.08 16zm2.95-8H5.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" })), Lc = K(
|
|
457
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zm6.93 6h-2.95a15.65 15.65 0 0 0-1.38-3.56A8.03 8.03 0 0 1 18.92 8zM12 4.04c.83 1.2 1.48 2.53 1.91 3.96h-3.82c.43-1.43 1.08-2.76 1.91-3.96zM4.26 14C4.1 13.36 4 12.69 4 12s.1-1.36.26-2h3.38c-.08.66-.14 1.32-.14 2 0 .68.06 1.34.14 2H4.26zm.82 2h2.95c.32 1.25.78 2.45 1.38 3.56A7.987 7.987 0 0 1 5.08 16zm2.95-8H5.08a7.987 7.987 0 0 1 4.33-3.56A15.65 15.65 0 0 0 8.03 8zM12 19.96c-.83-1.2-1.48-2.53-1.91-3.96h3.82c-.43 1.43-1.08 2.76-1.91 3.96zM14.34 14H9.66c-.09-.66-.16-1.32-.16-2 0-.68.07-1.35.16-2h4.68c.09.65.16 1.32.16 2 0 .68-.07 1.34-.16 2zm.25 5.56c.6-1.11 1.06-2.31 1.38-3.56h2.95a8.03 8.03 0 0 1-4.33 3.56zM16.36 14c.08-.66.14-1.32.14-2 0-.68-.06-1.34-.14-2h3.38c.16.64.26 1.31.26 2s-.1 1.36-.26 2h-3.38z" })), Lc = K(jc), _c = ({
|
|
458
458
|
title: t,
|
|
459
459
|
titleId: n,
|
|
460
460
|
...e
|
|
@@ -486,11 +486,11 @@ const Ds = me(void 0), Ts = ({
|
|
|
486
486
|
title: t,
|
|
487
487
|
titleId: n,
|
|
488
488
|
...e
|
|
489
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: 24, viewBox: "0 0 24 24", width: 24, ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" })), qc = K(Qc),
|
|
489
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: 24, viewBox: "0 0 24 24", width: 24, ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M0 0h24v24H0z", fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z" })), qc = K(Qc), Xc = ({
|
|
490
490
|
title: t,
|
|
491
491
|
titleId: n,
|
|
492
492
|
...e
|
|
493
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })),
|
|
493
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 24, height: 24, viewBox: "0 0 24 24", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V5a2 2 0 0 0-2-2zm-9 14-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z" })), Jc = K(Xc), eu = ({
|
|
494
494
|
title: t,
|
|
495
495
|
titleId: n,
|
|
496
496
|
...e
|
|
@@ -602,7 +602,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
602
602
|
);
|
|
603
603
|
case "addCircle":
|
|
604
604
|
return /* @__PURE__ */ H.jsx(
|
|
605
|
-
|
|
605
|
+
Ns,
|
|
606
606
|
{
|
|
607
607
|
width: e,
|
|
608
608
|
height: e,
|
|
@@ -732,7 +732,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
732
732
|
);
|
|
733
733
|
case "close":
|
|
734
734
|
return /* @__PURE__ */ H.jsx(
|
|
735
|
-
|
|
735
|
+
Js,
|
|
736
736
|
{
|
|
737
737
|
width: e,
|
|
738
738
|
height: e,
|
|
@@ -979,7 +979,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
979
979
|
);
|
|
980
980
|
case "info":
|
|
981
981
|
return /* @__PURE__ */ H.jsx(
|
|
982
|
-
|
|
982
|
+
Nc,
|
|
983
983
|
{
|
|
984
984
|
width: e,
|
|
985
985
|
height: e,
|
|
@@ -1200,7 +1200,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1200
1200
|
);
|
|
1201
1201
|
case "success":
|
|
1202
1202
|
return /* @__PURE__ */ H.jsx(
|
|
1203
|
-
|
|
1203
|
+
Jc,
|
|
1204
1204
|
{
|
|
1205
1205
|
width: e,
|
|
1206
1206
|
height: e,
|
|
@@ -1342,7 +1342,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1342
1342
|
}
|
|
1343
1343
|
);
|
|
1344
1344
|
}
|
|
1345
|
-
},
|
|
1345
|
+
}, Nn = K(function({ icon: t, color: n = "", size: e = 24, title: r = "", className: o = "", href: i = "", disabled: a = !1, onClick: l, ...s }, u) {
|
|
1346
1346
|
const c = Pu({
|
|
1347
1347
|
icon: t || void 0,
|
|
1348
1348
|
color: n,
|
|
@@ -1376,12 +1376,12 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1376
1376
|
}
|
|
1377
1377
|
);
|
|
1378
1378
|
return i ? p : l ? m : /* @__PURE__ */ H.jsx("span", { ref: u, children: c });
|
|
1379
|
-
}),
|
|
1379
|
+
}), Nu = `
|
|
1380
1380
|
jn:animate-spin
|
|
1381
1381
|
jn:mr-3
|
|
1382
1382
|
jn:h-5
|
|
1383
1383
|
jn:w-5
|
|
1384
|
-
`,
|
|
1384
|
+
`, ju = `
|
|
1385
1385
|
jn:text-theme-accent
|
|
1386
1386
|
`, Lu = `
|
|
1387
1387
|
jn:text-theme-danger
|
|
@@ -1401,7 +1401,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1401
1401
|
const i = () => {
|
|
1402
1402
|
switch (t) {
|
|
1403
1403
|
case "primary":
|
|
1404
|
-
return
|
|
1404
|
+
return ju;
|
|
1405
1405
|
case "danger":
|
|
1406
1406
|
return Lu;
|
|
1407
1407
|
case "success":
|
|
@@ -1424,7 +1424,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1424
1424
|
return /* @__PURE__ */ H.jsxs(
|
|
1425
1425
|
"svg",
|
|
1426
1426
|
{
|
|
1427
|
-
className: `juno-spinner ${
|
|
1427
|
+
className: `juno-spinner ${Nu} ${r || i()} ${e}`,
|
|
1428
1428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1429
1429
|
fill: "none",
|
|
1430
1430
|
viewBox: "0 0 24 24",
|
|
@@ -1551,7 +1551,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1551
1551
|
...m
|
|
1552
1552
|
}, p) => {
|
|
1553
1553
|
const g = n || t || "", b = c ? /* @__PURE__ */ H.jsx(Hu, { size: r === "small" ? "1.125rem" : "1.5rem", color: `${Qu(e)}` }) : a ? /* @__PURE__ */ H.jsx(
|
|
1554
|
-
|
|
1554
|
+
Nn,
|
|
1555
1555
|
{
|
|
1556
1556
|
icon: a,
|
|
1557
1557
|
title: g,
|
|
@@ -1615,7 +1615,7 @@ const Pu = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1615
1615
|
}
|
|
1616
1616
|
);
|
|
1617
1617
|
qu.displayName = "Button";
|
|
1618
|
-
const
|
|
1618
|
+
const Xu = `
|
|
1619
1619
|
jn:text-theme-high
|
|
1620
1620
|
jn:text-base
|
|
1621
1621
|
jn:transform
|
|
@@ -1624,7 +1624,7 @@ const Ju = `
|
|
|
1624
1624
|
jn:duration-100
|
|
1625
1625
|
jn:ease-in-out
|
|
1626
1626
|
jn:z-10
|
|
1627
|
-
`,
|
|
1627
|
+
`, Ju = `
|
|
1628
1628
|
jn:absolute
|
|
1629
1629
|
`, ed = `
|
|
1630
1630
|
jn:scale-75
|
|
@@ -1656,8 +1656,8 @@ const Ju = `
|
|
|
1656
1656
|
{
|
|
1657
1657
|
className: `
|
|
1658
1658
|
juno-label
|
|
1659
|
-
${
|
|
1660
|
-
${i ? "juno-label-floating " +
|
|
1659
|
+
${Xu}
|
|
1660
|
+
${i ? "juno-label-floating " + Ju : ""}
|
|
1661
1661
|
${a ? "juno-label-minimized " + ed : ""}
|
|
1662
1662
|
${o ? "juno-label-disabled " + nd : ""}
|
|
1663
1663
|
${r}
|
|
@@ -1909,7 +1909,7 @@ function xa(t) {
|
|
|
1909
1909
|
e
|
|
1910
1910
|
]);
|
|
1911
1911
|
}
|
|
1912
|
-
let gd = !1, un = null, $r = /* @__PURE__ */ new Set(),
|
|
1912
|
+
let gd = !1, un = null, $r = /* @__PURE__ */ new Set(), Xt = /* @__PURE__ */ new Map(), Dt = !1, Wr = !1;
|
|
1913
1913
|
const vd = {
|
|
1914
1914
|
Tab: !0,
|
|
1915
1915
|
Escape: !0
|
|
@@ -1920,7 +1920,7 @@ function so(t, n) {
|
|
|
1920
1920
|
function bd(t) {
|
|
1921
1921
|
return !(t.metaKey || !lo() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1922
1922
|
}
|
|
1923
|
-
function
|
|
1923
|
+
function jn(t) {
|
|
1924
1924
|
Dt = !0, bd(t) && (un = "keyboard", so("keyboard", t));
|
|
1925
1925
|
}
|
|
1926
1926
|
function Qe(t) {
|
|
@@ -1936,22 +1936,22 @@ function Ca() {
|
|
|
1936
1936
|
Dt = !1, Wr = !0;
|
|
1937
1937
|
}
|
|
1938
1938
|
function Ur(t) {
|
|
1939
|
-
if (typeof window > "u" ||
|
|
1939
|
+
if (typeof window > "u" || Xt.get(Ct(t))) return;
|
|
1940
1940
|
const n = Ct(t), e = vt(t);
|
|
1941
1941
|
let r = n.HTMLElement.prototype.focus;
|
|
1942
1942
|
n.HTMLElement.prototype.focus = function() {
|
|
1943
1943
|
Dt = !0, r.apply(this, arguments);
|
|
1944
|
-
}, e.addEventListener("keydown",
|
|
1944
|
+
}, e.addEventListener("keydown", jn, !0), e.addEventListener("keyup", jn, !0), e.addEventListener("click", Ea, !0), n.addEventListener("focus", Sa, !0), n.addEventListener("blur", Ca, !1), typeof PointerEvent < "u" ? (e.addEventListener("pointerdown", Qe, !0), e.addEventListener("pointermove", Qe, !0), e.addEventListener("pointerup", Qe, !0)) : process.env.NODE_ENV === "test" && (e.addEventListener("mousedown", Qe, !0), e.addEventListener("mousemove", Qe, !0), e.addEventListener("mouseup", Qe, !0)), n.addEventListener("beforeunload", () => {
|
|
1945
1945
|
Oa(t);
|
|
1946
1946
|
}, {
|
|
1947
1947
|
once: !0
|
|
1948
|
-
}),
|
|
1948
|
+
}), Xt.set(n, {
|
|
1949
1949
|
focus: r
|
|
1950
1950
|
});
|
|
1951
1951
|
}
|
|
1952
1952
|
const Oa = (t, n) => {
|
|
1953
1953
|
const e = Ct(t), r = vt(t);
|
|
1954
|
-
n && r.removeEventListener("DOMContentLoaded", n),
|
|
1954
|
+
n && r.removeEventListener("DOMContentLoaded", n), Xt.has(e) && (e.HTMLElement.prototype.focus = Xt.get(e).focus, r.removeEventListener("keydown", jn, !0), r.removeEventListener("keyup", jn, !0), r.removeEventListener("click", Ea, !0), e.removeEventListener("focus", Sa, !0), e.removeEventListener("blur", Ca, !1), typeof PointerEvent < "u" ? (r.removeEventListener("pointerdown", Qe, !0), r.removeEventListener("pointermove", Qe, !0), r.removeEventListener("pointerup", Qe, !0)) : process.env.NODE_ENV === "test" && (r.removeEventListener("mousedown", Qe, !0), r.removeEventListener("mousemove", Qe, !0), r.removeEventListener("mouseup", Qe, !0)), Xt.delete(e));
|
|
1955
1955
|
};
|
|
1956
1956
|
function yd(t) {
|
|
1957
1957
|
const n = vt(t);
|
|
@@ -2141,7 +2141,7 @@ function qn(t) {
|
|
|
2141
2141
|
isHovered: i
|
|
2142
2142
|
};
|
|
2143
2143
|
}
|
|
2144
|
-
function
|
|
2144
|
+
function Xn(t = {}) {
|
|
2145
2145
|
let { autoFocus: n = !1, isTextInput: e, within: r } = t, o = ae({
|
|
2146
2146
|
isFocused: !1,
|
|
2147
2147
|
isFocusVisible: n || Ma()
|
|
@@ -2210,7 +2210,7 @@ function co(t) {
|
|
|
2210
2210
|
var n, e;
|
|
2211
2211
|
return (e = (n = _n(t)) == null ? void 0 : n.activeElement) != null ? e : null;
|
|
2212
2212
|
}
|
|
2213
|
-
function
|
|
2213
|
+
function Jn(t) {
|
|
2214
2214
|
return co(t) === t;
|
|
2215
2215
|
}
|
|
2216
2216
|
function Da(t) {
|
|
@@ -2317,10 +2317,10 @@ function Te(t, n, ...e) {
|
|
|
2317
2317
|
}
|
|
2318
2318
|
var Tt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Tt || {}), Pd = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(Pd || {});
|
|
2319
2319
|
function Ee() {
|
|
2320
|
-
let t =
|
|
2321
|
-
return ce((n) =>
|
|
2320
|
+
let t = jd();
|
|
2321
|
+
return ce((n) => Nd({ mergeRefs: t, ...n }), [t]);
|
|
2322
2322
|
}
|
|
2323
|
-
function
|
|
2323
|
+
function Nd({ ourProps: t, theirProps: n, slot: e, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: l }) {
|
|
2324
2324
|
l = l ?? Ld;
|
|
2325
2325
|
let s = Ta(n, t);
|
|
2326
2326
|
if (i) return En(s, e, r, a, l);
|
|
@@ -2363,7 +2363,7 @@ function En(t, n = {}, e, r, o) {
|
|
|
2363
2363
|
}
|
|
2364
2364
|
return ms(i, Object.assign({}, Mr(s, ["ref"]), !Tn(i) && u, !Tn(i) && v), c);
|
|
2365
2365
|
}
|
|
2366
|
-
function
|
|
2366
|
+
function jd() {
|
|
2367
2367
|
let t = ae([]), n = ce((e) => {
|
|
2368
2368
|
for (let r of t.current) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2369
2369
|
}, []);
|
|
@@ -2394,7 +2394,7 @@ function Ta(...t) {
|
|
|
2394
2394
|
} });
|
|
2395
2395
|
return n;
|
|
2396
2396
|
}
|
|
2397
|
-
function
|
|
2397
|
+
function Nt(...t) {
|
|
2398
2398
|
if (t.length === 0) return {};
|
|
2399
2399
|
if (t.length === 1) return t[0];
|
|
2400
2400
|
let n = {}, e = {};
|
|
@@ -2437,14 +2437,14 @@ function Ia(t) {
|
|
|
2437
2437
|
return n;
|
|
2438
2438
|
}
|
|
2439
2439
|
function Aa(t = {}, n = null, e = []) {
|
|
2440
|
-
for (let [r, o] of Object.entries(t))
|
|
2440
|
+
for (let [r, o] of Object.entries(t)) Na(e, Pa(n, r), o);
|
|
2441
2441
|
return e;
|
|
2442
2442
|
}
|
|
2443
2443
|
function Pa(t, n) {
|
|
2444
2444
|
return t ? t + "[" + n + "]" : n;
|
|
2445
2445
|
}
|
|
2446
|
-
function
|
|
2447
|
-
if (Array.isArray(e)) for (let [r, o] of e.entries())
|
|
2446
|
+
function Na(t, n, e) {
|
|
2447
|
+
if (Array.isArray(e)) for (let [r, o] of e.entries()) Na(t, Pa(n, r.toString()), o);
|
|
2448
2448
|
else e instanceof Date ? t.push([n, e.toISOString()]) : typeof e == "boolean" ? t.push([n, e ? "1" : "0"]) : typeof e == "string" ? t.push([n, e]) : typeof e == "number" ? t.push([n, `${e}`]) : e == null ? t.push([n, ""]) : Hd(e) && !no(e) && Aa(e, n, t);
|
|
2449
2449
|
}
|
|
2450
2450
|
function Fd(t) {
|
|
@@ -2470,7 +2470,7 @@ function Bd(t, n) {
|
|
|
2470
2470
|
let { features: r = 1, ...o } = t, i = { ref: n, "aria-hidden": (r & 2) === 2 ? !0 : (e = o["aria-hidden"]) != null ? e : 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" } } };
|
|
2471
2471
|
return Ee()({ ourProps: i, theirProps: o, slot: {}, defaultTag: zd, name: "Hidden" });
|
|
2472
2472
|
}
|
|
2473
|
-
let
|
|
2473
|
+
let ja = Se(Bd), Vd = me(null);
|
|
2474
2474
|
function $d({ children: t }) {
|
|
2475
2475
|
let n = ye(Vd);
|
|
2476
2476
|
if (!n) return V.createElement(V.Fragment, null, t);
|
|
@@ -2481,7 +2481,7 @@ function La({ data: t, form: n, disabled: e, onReset: r, overrides: o }) {
|
|
|
2481
2481
|
let [i, a] = be(null), l = bt();
|
|
2482
2482
|
return we(() => {
|
|
2483
2483
|
if (r && i) return l.addEventListener(i, "reset", r);
|
|
2484
|
-
}, [i, n, r]), V.createElement($d, null, V.createElement(Wd, { setForm: a, formId: n }), Aa(t).map(([s, u]) => V.createElement(
|
|
2484
|
+
}, [i, n, r]), V.createElement($d, null, V.createElement(Wd, { setForm: a, formId: n }), Aa(t).map(([s, u]) => V.createElement(ja, { features: fo.Hidden, ...wt({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: n, disabled: e, name: s, value: u, ...o }) })));
|
|
2485
2485
|
}
|
|
2486
2486
|
function Wd({ setForm: t, formId: n }) {
|
|
2487
2487
|
return we(() => {
|
|
@@ -2489,7 +2489,7 @@ function Wd({ setForm: t, formId: n }) {
|
|
|
2489
2489
|
let e = document.getElementById(n);
|
|
2490
2490
|
e && t(e);
|
|
2491
2491
|
}
|
|
2492
|
-
}, [t, n]), n ? null : V.createElement(
|
|
2492
|
+
}, [t, n]), n ? null : V.createElement(ja, { features: fo.Hidden, as: "input", type: "hidden", hidden: !0, readOnly: !0, ref: (e) => {
|
|
2493
2493
|
if (!e) return;
|
|
2494
2494
|
let r = e.closest("form");
|
|
2495
2495
|
r && t(r);
|
|
@@ -2575,7 +2575,7 @@ function za() {
|
|
|
2575
2575
|
var t, n;
|
|
2576
2576
|
return (n = (t = ye(nr)) == null ? void 0 : t.value) != null ? n : void 0;
|
|
2577
2577
|
}
|
|
2578
|
-
function
|
|
2578
|
+
function Xd() {
|
|
2579
2579
|
let [t, n] = be([]);
|
|
2580
2580
|
return [t.length > 0 ? t.join(" ") : void 0, Ce(() => function(e) {
|
|
2581
2581
|
let r = q((i) => (n((a) => [...a, i]), () => n((a) => {
|
|
@@ -2585,12 +2585,12 @@ function Jd() {
|
|
|
2585
2585
|
return V.createElement(nr.Provider, { value: o }, e.children);
|
|
2586
2586
|
}, [n])];
|
|
2587
2587
|
}
|
|
2588
|
-
let
|
|
2588
|
+
let Jd = "p";
|
|
2589
2589
|
function ef(t, n) {
|
|
2590
2590
|
let e = Ae(), r = er(), { id: o = `headlessui-description-${e}`, ...i } = t, a = Ha(), l = ke(n);
|
|
2591
2591
|
ve(() => a.register(o), [o, a.register]);
|
|
2592
2592
|
let s = Ie({ ...a.slot, disabled: r || !1 }), u = { ref: l, ...a.props, id: o };
|
|
2593
|
-
return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag:
|
|
2593
|
+
return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag: Jd, name: a.name || "Description" });
|
|
2594
2594
|
}
|
|
2595
2595
|
let tf = Se(ef);
|
|
2596
2596
|
Object.assign(tf, {});
|
|
@@ -3300,7 +3300,7 @@ function xi(t) {
|
|
|
3300
3300
|
let n = Object.getPrototypeOf(t);
|
|
3301
3301
|
return n === null || Object.getPrototypeOf(n) === null;
|
|
3302
3302
|
}
|
|
3303
|
-
function
|
|
3303
|
+
function Jt(t) {
|
|
3304
3304
|
let [n, e] = t(), r = Re();
|
|
3305
3305
|
return (...o) => {
|
|
3306
3306
|
n(...o), r.dispose(), r.microTask(e);
|
|
@@ -3330,7 +3330,7 @@ let Cf = { 0(t, n) {
|
|
|
3330
3330
|
return Te(e.type, Cf, n, e);
|
|
3331
3331
|
}
|
|
3332
3332
|
};
|
|
3333
|
-
const
|
|
3333
|
+
const jt = new Wa(() => Of.new());
|
|
3334
3334
|
var kr = { exports: {} }, Ir = {}, Si;
|
|
3335
3335
|
function Mf() {
|
|
3336
3336
|
if (Si) return Ir;
|
|
@@ -3358,8 +3358,8 @@ function Mf() {
|
|
|
3358
3358
|
return I = R;
|
|
3359
3359
|
}
|
|
3360
3360
|
if (_ = I, e(O, R)) return _;
|
|
3361
|
-
var
|
|
3362
|
-
return m !== void 0 && m(_,
|
|
3361
|
+
var N = v(R);
|
|
3362
|
+
return m !== void 0 && m(_, N) ? (O = R, _) : (O = R, I = N);
|
|
3363
3363
|
}
|
|
3364
3364
|
var C = !1, O, I, F = c === void 0 ? null : c;
|
|
3365
3365
|
return [
|
|
@@ -3409,8 +3409,8 @@ function Df() {
|
|
|
3409
3409
|
}
|
|
3410
3410
|
if (_ = I, e(O, R))
|
|
3411
3411
|
return _;
|
|
3412
|
-
var
|
|
3413
|
-
return m !== void 0 && m(_,
|
|
3412
|
+
var N = v(R);
|
|
3413
|
+
return m !== void 0 && m(_, N) ? (O = R, _) : (O = R, I = N);
|
|
3414
3414
|
}
|
|
3415
3415
|
var C = !1, O, I, F = c === void 0 ? null : c;
|
|
3416
3416
|
return [
|
|
@@ -3446,7 +3446,7 @@ function If(t) {
|
|
|
3446
3446
|
return t;
|
|
3447
3447
|
}
|
|
3448
3448
|
function Ka(t, n) {
|
|
3449
|
-
let e = Ae(), r =
|
|
3449
|
+
let e = Ae(), r = jt.get(n), [o, i] = se(r, ce((a) => [r.selectors.isTop(a, e), r.selectors.inStack(a, e)], [r, e]));
|
|
3450
3450
|
return ve(() => {
|
|
3451
3451
|
if (t) return r.actions.push(e), () => r.actions.pop(e);
|
|
3452
3452
|
}, [r, t, e]), t ? i ? o : !0 : !1;
|
|
@@ -3507,11 +3507,11 @@ function bo(t, n, e) {
|
|
|
3507
3507
|
}, [n, r, t]);
|
|
3508
3508
|
}
|
|
3509
3509
|
let Hn = ["[contentEditable=true]", "[tabindex]", "a[href]", "area[href]", "button:not([disabled])", "iframe", "input:not([disabled])", "select:not([disabled])", "details>summary", "textarea:not([disabled])"].map((t) => `${t}:not([tabindex='-1'])`).join(","), Af = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
3510
|
-
var rn = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(rn || {}), Pf = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Pf || {}),
|
|
3510
|
+
var rn = ((t) => (t[t.First = 1] = "First", t[t.Previous = 2] = "Previous", t[t.Next = 4] = "Next", t[t.Last = 8] = "Last", t[t.WrapAround = 16] = "WrapAround", t[t.NoScroll = 32] = "NoScroll", t[t.AutoFocus = 64] = "AutoFocus", t))(rn || {}), Pf = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(Pf || {}), Nf = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Nf || {});
|
|
3511
3511
|
function Za(t = document.body) {
|
|
3512
3512
|
return t == null ? [] : Array.from(t.querySelectorAll(Hn)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3513
3513
|
}
|
|
3514
|
-
function
|
|
3514
|
+
function jf(t = document.body) {
|
|
3515
3515
|
return t == null ? [] : Array.from(t.querySelectorAll(Af)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3516
3516
|
}
|
|
3517
3517
|
var lr = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(lr || {});
|
|
@@ -3560,7 +3560,7 @@ function qa(t, n, e = t === null ? document.body : _n(t)) {
|
|
|
3560
3560
|
return Hf(Za(e), n, { relativeTo: t });
|
|
3561
3561
|
}
|
|
3562
3562
|
function Hf(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
3563
|
-
let i = Array.isArray(t) ? t.length > 0 ? _n(t[0]) : document : _n(t), a = Array.isArray(t) ? e ? cr(t) : t : n & 64 ?
|
|
3563
|
+
let i = Array.isArray(t) ? t.length > 0 ? _n(t[0]) : document : _n(t), a = Array.isArray(t) ? e ? cr(t) : t : n & 64 ? jf(t) : Za(t);
|
|
3564
3564
|
o.length > 0 && a.length > 1 && (a = a.filter((p) => !o.some((g) => g != null && "current" in g ? g?.current === p : g === p))), r = r ?? i?.activeElement;
|
|
3565
3565
|
let l = (() => {
|
|
3566
3566
|
if (n & 5) return 1;
|
|
@@ -3585,14 +3585,14 @@ function Hf(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
3585
3585
|
} while (m !== co(m));
|
|
3586
3586
|
return n & 6 && Ff(m) && m.select(), 2;
|
|
3587
3587
|
}
|
|
3588
|
-
function
|
|
3588
|
+
function Xa() {
|
|
3589
3589
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
3590
3590
|
}
|
|
3591
3591
|
function zf() {
|
|
3592
3592
|
return /Android/gi.test(window.navigator.userAgent);
|
|
3593
3593
|
}
|
|
3594
3594
|
function Kr() {
|
|
3595
|
-
return
|
|
3595
|
+
return Xa() || zf();
|
|
3596
3596
|
}
|
|
3597
3597
|
function Rt(t, n, e, r) {
|
|
3598
3598
|
let o = yt(e);
|
|
@@ -3646,7 +3646,7 @@ function kt(...t) {
|
|
|
3646
3646
|
return Ce(() => dn(...t), [...t]);
|
|
3647
3647
|
}
|
|
3648
3648
|
var Vf = ((t) => (t[t.Ignore = 0] = "Ignore", t[t.Select = 1] = "Select", t[t.Close = 2] = "Close", t))(Vf || {});
|
|
3649
|
-
const
|
|
3649
|
+
const Xe = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } }, $f = 200, Ii = 5;
|
|
3650
3650
|
function wo(t, { trigger: n, action: e, close: r, select: o }) {
|
|
3651
3651
|
let i = ae(null), a = ae(null), l = ae(null);
|
|
3652
3652
|
Rt(t && n !== null, "pointerdown", (s) => {
|
|
@@ -3680,13 +3680,13 @@ function Wf(t, n, e, r) {
|
|
|
3680
3680
|
return t.addEventListener(n, i, r), () => t.removeEventListener(n, i, r);
|
|
3681
3681
|
}, [t, n, r]);
|
|
3682
3682
|
}
|
|
3683
|
-
function
|
|
3683
|
+
function Ja(t) {
|
|
3684
3684
|
let n = ae({ value: "", selectionStart: null, selectionEnd: null });
|
|
3685
3685
|
return Wf(t, "blur", (e) => {
|
|
3686
3686
|
let r = e.target;
|
|
3687
3687
|
Rn(r) && (n.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
|
|
3688
3688
|
}), q(() => {
|
|
3689
|
-
if (!
|
|
3689
|
+
if (!Jn(t) && Rn(t) && t.isConnected) {
|
|
3690
3690
|
if (t.focus({ preventScroll: !0 }), t.value !== n.current.value) t.setSelectionRange(t.value.length, t.value.length);
|
|
3691
3691
|
else {
|
|
3692
3692
|
let { selectionStart: e, selectionEnd: r } = n.current;
|
|
@@ -3730,7 +3730,7 @@ function Gf() {
|
|
|
3730
3730
|
} };
|
|
3731
3731
|
}
|
|
3732
3732
|
function Kf() {
|
|
3733
|
-
return
|
|
3733
|
+
return Xa() ? { before({ doc: t, d: n, meta: e }) {
|
|
3734
3734
|
function r(o) {
|
|
3735
3735
|
for (let i of e().containers) for (let a of i()) if (a.contains(o)) return !0;
|
|
3736
3736
|
return !1;
|
|
@@ -3839,12 +3839,12 @@ function qf(t = 0) {
|
|
|
3839
3839
|
let [n, e] = be(t), r = ce((s) => e(s), []), o = ce((s) => e((u) => u | s), []), i = ce((s) => (n & s) === s, [n]), a = ce((s) => e((u) => u & ~s), []), l = ce((s) => e((u) => u ^ s), []);
|
|
3840
3840
|
return { flags: n, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: l };
|
|
3841
3841
|
}
|
|
3842
|
-
var
|
|
3843
|
-
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((
|
|
3842
|
+
var Ni, ji;
|
|
3843
|
+
typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((Ni = process == null ? void 0 : process.env) == null ? void 0 : Ni.NODE_ENV) === "test" && typeof ((ji = Element?.prototype) == null ? void 0 : ji.getAnimations) > "u" && (Element.prototype.getAnimations = function() {
|
|
3844
3844
|
return console.warn(["Headless UI has polyfilled `Element.prototype.getAnimations` for your tests.", "Please install a proper polyfill e.g. `jsdom-testing-mocks`, to silence these warnings.", "", "Example usage:", "```js", "import { mockAnimationsApi } from 'jsdom-testing-mocks'", "mockAnimationsApi()", "```"].join(`
|
|
3845
3845
|
`)), [];
|
|
3846
3846
|
});
|
|
3847
|
-
var
|
|
3847
|
+
var Xf = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(Xf || {});
|
|
3848
3848
|
function Co(t) {
|
|
3849
3849
|
let n = {};
|
|
3850
3850
|
for (let e in t) t[e] === !0 && (n[`data-${e}`] = "");
|
|
@@ -3859,7 +3859,7 @@ function Oo(t, n, e, r) {
|
|
|
3859
3859
|
e && l(3);
|
|
3860
3860
|
return;
|
|
3861
3861
|
}
|
|
3862
|
-
return (m = void 0) == null || m.call(r, e),
|
|
3862
|
+
return (m = void 0) == null || m.call(r, e), Jf(n, { inFlight: u, prepare() {
|
|
3863
3863
|
c.current ? c.current = !1 : c.current = u.current, u.current = !0, !c.current && (e ? (l(3), s(4)) : (l(4), s(2)));
|
|
3864
3864
|
}, run() {
|
|
3865
3865
|
c.current ? e ? (s(3), l(4)) : (s(4), l(3)) : e ? s(1) : l(1);
|
|
@@ -3870,7 +3870,7 @@ function Oo(t, n, e, r) {
|
|
|
3870
3870
|
}
|
|
3871
3871
|
}, [t, e, n, v]), t ? [o, { closed: a(1), enter: a(2), leave: a(4), transition: a(2) || a(4) }] : [e, { closed: void 0, enter: void 0, leave: void 0, transition: void 0 }];
|
|
3872
3872
|
}
|
|
3873
|
-
function
|
|
3873
|
+
function Jf(t, { prepare: n, run: e, done: r, inFlight: o }) {
|
|
3874
3874
|
let i = Re();
|
|
3875
3875
|
return tp(t, { prepare: n, inFlight: o }), i.nextFrame(() => {
|
|
3876
3876
|
e(), i.requestAnimationFrame(() => {
|
|
@@ -3958,7 +3958,7 @@ function pn(t) {
|
|
|
3958
3958
|
overflowX: e,
|
|
3959
3959
|
overflowY: r,
|
|
3960
3960
|
display: o
|
|
3961
|
-
} =
|
|
3961
|
+
} = Je(t);
|
|
3962
3962
|
return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !rp.has(o);
|
|
3963
3963
|
}
|
|
3964
3964
|
const op = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
@@ -3977,7 +3977,7 @@ function dr(t) {
|
|
|
3977
3977
|
}
|
|
3978
3978
|
const lp = ["transform", "translate", "scale", "rotate", "perspective"], sp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], cp = ["paint", "layout", "strict", "content"];
|
|
3979
3979
|
function Mo(t) {
|
|
3980
|
-
const n = Do(), e = _e(t) ?
|
|
3980
|
+
const n = Do(), e = _e(t) ? Je(t) : t;
|
|
3981
3981
|
return lp.some((r) => e[r] ? e[r] !== "none" : !1) || (e.containerType ? e.containerType !== "normal" : !1) || !n && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !n && (e.filter ? e.filter !== "none" : !1) || sp.some((r) => (e.willChange || "").includes(r)) || cp.some((r) => (e.contain || "").includes(r));
|
|
3982
3982
|
}
|
|
3983
3983
|
function up(t) {
|
|
@@ -3998,7 +3998,7 @@ const dp = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
|
3998
3998
|
function Bt(t) {
|
|
3999
3999
|
return dp.has(Vt(t));
|
|
4000
4000
|
}
|
|
4001
|
-
function
|
|
4001
|
+
function Je(t) {
|
|
4002
4002
|
return Ye(t).getComputedStyle(t);
|
|
4003
4003
|
}
|
|
4004
4004
|
function fr(t) {
|
|
@@ -4049,7 +4049,7 @@ function fp() {
|
|
|
4049
4049
|
return e + "/" + r;
|
|
4050
4050
|
}).join(" ") : navigator.userAgent;
|
|
4051
4051
|
}
|
|
4052
|
-
const It = Math.min,
|
|
4052
|
+
const It = Math.min, je = Math.max, an = Math.round, Sn = Math.floor, ot = (t) => ({
|
|
4053
4053
|
x: t,
|
|
4054
4054
|
y: t
|
|
4055
4055
|
}), pp = {
|
|
@@ -4062,7 +4062,7 @@ const It = Math.min, Ne = Math.max, an = Math.round, Sn = Math.floor, ot = (t) =
|
|
|
4062
4062
|
end: "start"
|
|
4063
4063
|
};
|
|
4064
4064
|
function Ri(t, n, e) {
|
|
4065
|
-
return
|
|
4065
|
+
return je(t, It(n, e));
|
|
4066
4066
|
}
|
|
4067
4067
|
function $t(t, n) {
|
|
4068
4068
|
return typeof t == "function" ? t(n) : t;
|
|
@@ -4244,7 +4244,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4244
4244
|
return dl(t) && t.type === "radio";
|
|
4245
4245
|
}, Pp = function(t) {
|
|
4246
4246
|
return Ap(t) && !Ip(t);
|
|
4247
|
-
},
|
|
4247
|
+
}, Np = function(t) {
|
|
4248
4248
|
var n, e = t && $n(t), r = (n = e) === null || n === void 0 ? void 0 : n.host, o = !1;
|
|
4249
4249
|
if (e && e !== t) {
|
|
4250
4250
|
var i, a, l;
|
|
@@ -4257,7 +4257,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4257
4257
|
}, zi = function(t) {
|
|
4258
4258
|
var n = t.getBoundingClientRect(), e = n.width, r = n.height;
|
|
4259
4259
|
return e === 0 && r === 0;
|
|
4260
|
-
},
|
|
4260
|
+
}, jp = function(t, n) {
|
|
4261
4261
|
var e = n.displayCheck, r = n.getShadowRoot;
|
|
4262
4262
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4263
4263
|
return !0;
|
|
@@ -4274,7 +4274,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4274
4274
|
}
|
|
4275
4275
|
t = a;
|
|
4276
4276
|
}
|
|
4277
|
-
if (
|
|
4277
|
+
if (Np(t))
|
|
4278
4278
|
return !t.getClientRects().length;
|
|
4279
4279
|
if (e !== "legacy-full")
|
|
4280
4280
|
return !0;
|
|
@@ -4299,7 +4299,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4299
4299
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4300
4300
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4301
4301
|
// note related to `candidateSelectors`)
|
|
4302
|
-
Wn(n) || Dp(n) ||
|
|
4302
|
+
Wn(n) || Dp(n) || jp(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
4303
4303
|
Tp(n) || Lp(n));
|
|
4304
4304
|
}, qr = function(t, n) {
|
|
4305
4305
|
return !(Pp(n) || ft(n) < 0 || !Un(t, n));
|
|
@@ -4534,18 +4534,18 @@ const Bp = function(t) {
|
|
|
4534
4534
|
return {};
|
|
4535
4535
|
const C = gt(o), O = ct(l), I = gt(l) === l, F = await (s.isRTL == null ? void 0 : s.isRTL(u.floating)), R = m || (I || !b ? [zn(l)] : vp(l)), _ = g !== "none";
|
|
4536
4536
|
!m && _ && R.push(...xp(l, b, g, F));
|
|
4537
|
-
const
|
|
4537
|
+
const N = [l, ...R], T = await pr(n, x), j = [];
|
|
4538
4538
|
let S = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
4539
|
-
if (c &&
|
|
4539
|
+
if (c && j.push(T[C]), v) {
|
|
4540
4540
|
const B = gp(o, a, F);
|
|
4541
|
-
|
|
4541
|
+
j.push(T[B[0]], T[B[1]]);
|
|
4542
4542
|
}
|
|
4543
4543
|
if (S = [...S, {
|
|
4544
4544
|
placement: o,
|
|
4545
|
-
overflows:
|
|
4546
|
-
}], !
|
|
4545
|
+
overflows: j
|
|
4546
|
+
}], !j.every((B) => B <= 0)) {
|
|
4547
4547
|
var y, E;
|
|
4548
|
-
const B = (((y = i.flip) == null ? void 0 : y.index) || 0) + 1, A =
|
|
4548
|
+
const B = (((y = i.flip) == null ? void 0 : y.index) || 0) + 1, A = N[B];
|
|
4549
4549
|
if (A && (!(v === "alignment" && O !== ct(A)) || // We leave the current main axis only if every placement on that axis
|
|
4550
4550
|
// overflows the main axis.
|
|
4551
4551
|
S.every((G) => G.overflows[0] > 0 && ct(G.placement) === O)))
|
|
@@ -4717,18 +4717,18 @@ const Wp = function(t) {
|
|
|
4717
4717
|
let x, C;
|
|
4718
4718
|
v === "top" || v === "bottom" ? (x = v, C = m === (await (a.isRTL == null ? void 0 : a.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (C = v, x = m === "end" ? "top" : "bottom");
|
|
4719
4719
|
const O = b - c.top - c.bottom, I = g - c.left - c.right, F = It(b - c[x], O), R = It(g - c[C], I), _ = !n.middlewareData.shift;
|
|
4720
|
-
let
|
|
4721
|
-
if ((e = n.middlewareData.shift) != null && e.enabled.x && (T = I), (r = n.middlewareData.shift) != null && r.enabled.y && (
|
|
4722
|
-
const S =
|
|
4723
|
-
p ? T = g - 2 * (S !== 0 || y !== 0 ? S + y :
|
|
4720
|
+
let N = F, T = R;
|
|
4721
|
+
if ((e = n.middlewareData.shift) != null && e.enabled.x && (T = I), (r = n.middlewareData.shift) != null && r.enabled.y && (N = O), _ && !m) {
|
|
4722
|
+
const S = je(c.left, 0), y = je(c.right, 0), E = je(c.top, 0), L = je(c.bottom, 0);
|
|
4723
|
+
p ? T = g - 2 * (S !== 0 || y !== 0 ? S + y : je(c.left, c.right)) : N = b - 2 * (E !== 0 || L !== 0 ? E + L : je(c.top, c.bottom));
|
|
4724
4724
|
}
|
|
4725
4725
|
await s({
|
|
4726
4726
|
...n,
|
|
4727
4727
|
availableWidth: T,
|
|
4728
|
-
availableHeight:
|
|
4728
|
+
availableHeight: N
|
|
4729
4729
|
});
|
|
4730
|
-
const
|
|
4731
|
-
return g !==
|
|
4730
|
+
const j = await a.getDimensions(l.floating);
|
|
4731
|
+
return g !== j.width || b !== j.height ? {
|
|
4732
4732
|
reset: {
|
|
4733
4733
|
rects: !0
|
|
4734
4734
|
}
|
|
@@ -4737,7 +4737,7 @@ const Wp = function(t) {
|
|
|
4737
4737
|
};
|
|
4738
4738
|
};
|
|
4739
4739
|
function ml(t) {
|
|
4740
|
-
const n =
|
|
4740
|
+
const n = Je(t);
|
|
4741
4741
|
let e = parseFloat(n.width) || 0, r = parseFloat(n.height) || 0;
|
|
4742
4742
|
const o = at(t), i = o ? t.offsetWidth : e, a = o ? t.offsetHeight : r, l = an(e) !== i || an(r) !== a;
|
|
4743
4743
|
return l && (e = i, r = a), {
|
|
@@ -4786,7 +4786,7 @@ function Pt(t, n, e, r) {
|
|
|
4786
4786
|
const m = Ye(i), p = r && _e(r) ? Ye(r) : r;
|
|
4787
4787
|
let g = m, b = Zr(g);
|
|
4788
4788
|
for (; b && r && p !== g; ) {
|
|
4789
|
-
const x = Ft(b), C = b.getBoundingClientRect(), O =
|
|
4789
|
+
const x = Ft(b), C = b.getBoundingClientRect(), O = Je(b), I = C.left + (b.clientLeft + parseFloat(O.paddingLeft)) * x.x, F = C.top + (b.clientTop + parseFloat(O.paddingTop)) * x.y;
|
|
4790
4790
|
s *= x.x, u *= x.y, c *= x.x, v *= x.y, s += I, u += F, g = Ye(b), b = Zr(g);
|
|
4791
4791
|
}
|
|
4792
4792
|
}
|
|
@@ -4843,17 +4843,17 @@ function Qp(t) {
|
|
|
4843
4843
|
return Array.from(t.getClientRects());
|
|
4844
4844
|
}
|
|
4845
4845
|
function qp(t) {
|
|
4846
|
-
const n = lt(t), e = fr(t), r = t.ownerDocument.body, o =
|
|
4846
|
+
const n = lt(t), e = fr(t), r = t.ownerDocument.body, o = je(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = je(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4847
4847
|
let a = -e.scrollLeft + ko(t);
|
|
4848
4848
|
const l = -e.scrollTop;
|
|
4849
|
-
return
|
|
4849
|
+
return Je(r).direction === "rtl" && (a += je(n.clientWidth, r.clientWidth) - o), {
|
|
4850
4850
|
width: o,
|
|
4851
4851
|
height: i,
|
|
4852
4852
|
x: a,
|
|
4853
4853
|
y: l
|
|
4854
4854
|
};
|
|
4855
4855
|
}
|
|
4856
|
-
function
|
|
4856
|
+
function Xp(t, n) {
|
|
4857
4857
|
const e = Ye(t), r = lt(t), o = e.visualViewport;
|
|
4858
4858
|
let i = r.clientWidth, a = r.clientHeight, l = 0, s = 0;
|
|
4859
4859
|
if (o) {
|
|
@@ -4868,7 +4868,7 @@ function Jp(t, n) {
|
|
|
4868
4868
|
y: s
|
|
4869
4869
|
};
|
|
4870
4870
|
}
|
|
4871
|
-
const
|
|
4871
|
+
const Jp = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4872
4872
|
function em(t, n) {
|
|
4873
4873
|
const e = Pt(t, !0, n === "fixed"), r = e.top + t.clientTop, o = e.left + t.clientLeft, i = at(t) ? Ft(t) : ot(1), a = t.clientWidth * i.x, l = t.clientHeight * i.y, s = o * i.x, u = r * i.y;
|
|
4874
4874
|
return {
|
|
@@ -4881,7 +4881,7 @@ function em(t, n) {
|
|
|
4881
4881
|
function Vi(t, n, e) {
|
|
4882
4882
|
let r;
|
|
4883
4883
|
if (n === "viewport")
|
|
4884
|
-
r =
|
|
4884
|
+
r = Xp(t, e);
|
|
4885
4885
|
else if (n === "document")
|
|
4886
4886
|
r = qp(lt(t));
|
|
4887
4887
|
else if (_e(n))
|
|
@@ -4899,18 +4899,18 @@ function Vi(t, n, e) {
|
|
|
4899
4899
|
}
|
|
4900
4900
|
function vl(t, n) {
|
|
4901
4901
|
const e = ht(t);
|
|
4902
|
-
return e === n || !_e(e) || Bt(e) ? !1 :
|
|
4902
|
+
return e === n || !_e(e) || Bt(e) ? !1 : Je(e).position === "fixed" || vl(e, n);
|
|
4903
4903
|
}
|
|
4904
4904
|
function tm(t, n) {
|
|
4905
4905
|
const e = n.get(t);
|
|
4906
4906
|
if (e)
|
|
4907
4907
|
return e;
|
|
4908
4908
|
let r = on(t, [], !1).filter((l) => _e(l) && Vt(l) !== "body"), o = null;
|
|
4909
|
-
const i =
|
|
4909
|
+
const i = Je(t).position === "fixed";
|
|
4910
4910
|
let a = i ? ht(t) : t;
|
|
4911
4911
|
for (; _e(a) && !Bt(a); ) {
|
|
4912
|
-
const l =
|
|
4913
|
-
!s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o &&
|
|
4912
|
+
const l = Je(a), s = Mo(a);
|
|
4913
|
+
!s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o && Jp.has(o.position) || pn(a) && !s && vl(t, a)) ? r = r.filter((u) => u !== a) : o = l, a = ht(a);
|
|
4914
4914
|
}
|
|
4915
4915
|
return n.set(t, r), r;
|
|
4916
4916
|
}
|
|
@@ -4923,7 +4923,7 @@ function nm(t) {
|
|
|
4923
4923
|
} = t;
|
|
4924
4924
|
const i = [...e === "clippingAncestors" ? dr(n) ? [] : tm(n, this._c) : [].concat(e), r], a = i[0], l = i.reduce((s, u) => {
|
|
4925
4925
|
const c = Vi(n, u, o);
|
|
4926
|
-
return s.top =
|
|
4926
|
+
return s.top = je(c.top, s.top), s.right = It(c.right, s.right), s.bottom = It(c.bottom, s.bottom), s.left = je(c.left, s.left), s;
|
|
4927
4927
|
}, Vi(n, a, o));
|
|
4928
4928
|
return {
|
|
4929
4929
|
width: l.right - l.left,
|
|
@@ -4967,10 +4967,10 @@ function om(t, n, e) {
|
|
|
4967
4967
|
};
|
|
4968
4968
|
}
|
|
4969
4969
|
function Ar(t) {
|
|
4970
|
-
return
|
|
4970
|
+
return Je(t).position === "static";
|
|
4971
4971
|
}
|
|
4972
4972
|
function $i(t, n) {
|
|
4973
|
-
if (!at(t) ||
|
|
4973
|
+
if (!at(t) || Je(t).position === "fixed")
|
|
4974
4974
|
return null;
|
|
4975
4975
|
if (n)
|
|
4976
4976
|
return n(t);
|
|
@@ -5008,7 +5008,7 @@ const im = async function(t) {
|
|
|
5008
5008
|
};
|
|
5009
5009
|
};
|
|
5010
5010
|
function am(t) {
|
|
5011
|
-
return
|
|
5011
|
+
return Je(t).direction === "rtl";
|
|
5012
5012
|
}
|
|
5013
5013
|
const lm = {
|
|
5014
5014
|
convertOffsetParentRelativeRectToViewportRelativeRect: Zp,
|
|
@@ -5044,7 +5044,7 @@ function sm(t, n) {
|
|
|
5044
5044
|
return;
|
|
5045
5045
|
const g = Sn(v), b = Sn(o.clientWidth - (c + m)), x = Sn(o.clientHeight - (v + p)), C = Sn(c), O = {
|
|
5046
5046
|
rootMargin: -g + "px " + -b + "px " + -x + "px " + -C + "px",
|
|
5047
|
-
threshold:
|
|
5047
|
+
threshold: je(0, It(1, s)) || 1
|
|
5048
5048
|
};
|
|
5049
5049
|
let I = !0;
|
|
5050
5050
|
function F(R) {
|
|
@@ -5159,7 +5159,7 @@ function Wi(t, n) {
|
|
|
5159
5159
|
const e = wl(t);
|
|
5160
5160
|
return Math.round(n * e) / e;
|
|
5161
5161
|
}
|
|
5162
|
-
function
|
|
5162
|
+
function Nr(t) {
|
|
5163
5163
|
const n = d.useRef(t);
|
|
5164
5164
|
return In(() => {
|
|
5165
5165
|
n.current = t;
|
|
@@ -5191,16 +5191,16 @@ function vm(t) {
|
|
|
5191
5191
|
const [g, b] = d.useState(null), [x, C] = d.useState(null), O = d.useCallback((P) => {
|
|
5192
5192
|
P !== _.current && (_.current = P, b(P));
|
|
5193
5193
|
}, []), I = d.useCallback((P) => {
|
|
5194
|
-
P !==
|
|
5195
|
-
}, []), F = i || g, R = a || x, _ = d.useRef(null),
|
|
5196
|
-
if (!_.current || !
|
|
5194
|
+
P !== N.current && (N.current = P, C(P));
|
|
5195
|
+
}, []), F = i || g, R = a || x, _ = d.useRef(null), N = d.useRef(null), T = d.useRef(c), j = s != null, S = Nr(s), y = Nr(o), E = Nr(u), L = d.useCallback(() => {
|
|
5196
|
+
if (!_.current || !N.current)
|
|
5197
5197
|
return;
|
|
5198
5198
|
const P = {
|
|
5199
5199
|
placement: n,
|
|
5200
5200
|
strategy: e,
|
|
5201
5201
|
middleware: m
|
|
5202
5202
|
};
|
|
5203
|
-
y.current && (P.platform = y.current), mm(_.current,
|
|
5203
|
+
y.current && (P.platform = y.current), mm(_.current, N.current, P).then((U) => {
|
|
5204
5204
|
const oe = {
|
|
5205
5205
|
...U,
|
|
5206
5206
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5224,15 +5224,15 @@ function vm(t) {
|
|
|
5224
5224
|
In(() => (B.current = !0, () => {
|
|
5225
5225
|
B.current = !1;
|
|
5226
5226
|
}), []), In(() => {
|
|
5227
|
-
if (F && (_.current = F), R && (
|
|
5227
|
+
if (F && (_.current = F), R && (N.current = R), F && R) {
|
|
5228
5228
|
if (S.current)
|
|
5229
5229
|
return S.current(F, R, L);
|
|
5230
5230
|
L();
|
|
5231
5231
|
}
|
|
5232
|
-
}, [F, R, L, S,
|
|
5232
|
+
}, [F, R, L, S, j]);
|
|
5233
5233
|
const A = d.useMemo(() => ({
|
|
5234
5234
|
reference: _,
|
|
5235
|
-
floating:
|
|
5235
|
+
floating: N,
|
|
5236
5236
|
setReference: O,
|
|
5237
5237
|
setFloating: I
|
|
5238
5238
|
}), [O, I]), W = d.useMemo(() => ({
|
|
@@ -5295,7 +5295,7 @@ function Sl(t) {
|
|
|
5295
5295
|
return n.current == null ? void 0 : n.current(...r);
|
|
5296
5296
|
}, []);
|
|
5297
5297
|
}
|
|
5298
|
-
var
|
|
5298
|
+
var Xr = typeof document < "u" ? ro : we;
|
|
5299
5299
|
let Ui = !1, Sm = 0;
|
|
5300
5300
|
const Yi = () => (
|
|
5301
5301
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
@@ -5304,7 +5304,7 @@ const Yi = () => (
|
|
|
5304
5304
|
);
|
|
5305
5305
|
function Cm() {
|
|
5306
5306
|
const [t, n] = d.useState(() => Ui ? Yi() : void 0);
|
|
5307
|
-
return
|
|
5307
|
+
return Xr(() => {
|
|
5308
5308
|
t == null && n(Yi());
|
|
5309
5309
|
}, []), d.useEffect(() => {
|
|
5310
5310
|
Ui = !0;
|
|
@@ -5350,7 +5350,7 @@ function km() {
|
|
|
5350
5350
|
const Im = /* @__PURE__ */ d.createContext(null), Am = /* @__PURE__ */ d.createContext(null), Pm = () => {
|
|
5351
5351
|
var t;
|
|
5352
5352
|
return ((t = d.useContext(Im)) == null ? void 0 : t.id) || null;
|
|
5353
|
-
},
|
|
5353
|
+
}, Nm = () => d.useContext(Am), jm = "data-floating-ui-focusable";
|
|
5354
5354
|
function Lm(t) {
|
|
5355
5355
|
const {
|
|
5356
5356
|
open: n = !1,
|
|
@@ -5396,8 +5396,8 @@ function _m(t) {
|
|
|
5396
5396
|
floating: null,
|
|
5397
5397
|
...t.elements
|
|
5398
5398
|
}
|
|
5399
|
-
}), r = t.rootContext || e, o = r.elements, [i, a] = d.useState(null), [l, s] = d.useState(null), u = o?.domReference || i, c = d.useRef(null), v =
|
|
5400
|
-
|
|
5399
|
+
}), r = t.rootContext || e, o = r.elements, [i, a] = d.useState(null), [l, s] = d.useState(null), u = o?.domReference || i, c = d.useRef(null), v = Nm();
|
|
5400
|
+
Xr(() => {
|
|
5401
5401
|
u && (c.current = u);
|
|
5402
5402
|
}, [u]);
|
|
5403
5403
|
const m = vm({
|
|
@@ -5434,7 +5434,7 @@ function _m(t) {
|
|
|
5434
5434
|
elements: x,
|
|
5435
5435
|
nodeId: n
|
|
5436
5436
|
}), [m, b, x, n, r]);
|
|
5437
|
-
return
|
|
5437
|
+
return Xr(() => {
|
|
5438
5438
|
r.dataRef.current.floatingContext = C;
|
|
5439
5439
|
const O = v?.nodesRef.current.find((I) => I.id === n);
|
|
5440
5440
|
O && (O.context = C);
|
|
@@ -5446,7 +5446,7 @@ function _m(t) {
|
|
|
5446
5446
|
}), [m, b, x, C]);
|
|
5447
5447
|
}
|
|
5448
5448
|
const Gi = "active", Ki = "selected";
|
|
5449
|
-
function
|
|
5449
|
+
function jr(t, n, e) {
|
|
5450
5450
|
const r = /* @__PURE__ */ new Map(), o = e === "item";
|
|
5451
5451
|
let i = t;
|
|
5452
5452
|
if (o && t) {
|
|
@@ -5460,7 +5460,7 @@ function Nr(t, n, e) {
|
|
|
5460
5460
|
return {
|
|
5461
5461
|
...e === "floating" && {
|
|
5462
5462
|
tabIndex: -1,
|
|
5463
|
-
[
|
|
5463
|
+
[jm]: ""
|
|
5464
5464
|
},
|
|
5465
5465
|
...i,
|
|
5466
5466
|
...n.map((a) => {
|
|
@@ -5486,15 +5486,15 @@ function Nr(t, n, e) {
|
|
|
5486
5486
|
function Rm(t) {
|
|
5487
5487
|
t === void 0 && (t = []);
|
|
5488
5488
|
const n = t.map((l) => l?.reference), e = t.map((l) => l?.floating), r = t.map((l) => l?.item), o = d.useCallback(
|
|
5489
|
-
(l) =>
|
|
5489
|
+
(l) => jr(l, t, "reference"),
|
|
5490
5490
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5491
5491
|
n
|
|
5492
5492
|
), i = d.useCallback(
|
|
5493
|
-
(l) =>
|
|
5493
|
+
(l) => jr(l, t, "floating"),
|
|
5494
5494
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5495
5495
|
e
|
|
5496
5496
|
), a = d.useCallback(
|
|
5497
|
-
(l) =>
|
|
5497
|
+
(l) => jr(l, t, "item"),
|
|
5498
5498
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
5499
5499
|
r
|
|
5500
5500
|
);
|
|
@@ -5544,16 +5544,16 @@ const Fm = (t) => ({
|
|
|
5544
5544
|
}, F = await Pr(Zi(I, g.scrollHeight + b + m.clientTop), c), R = await Pr(I, {
|
|
5545
5545
|
...c,
|
|
5546
5546
|
elementContext: "reference"
|
|
5547
|
-
}), _ =
|
|
5547
|
+
}), _ = je(0, F.top), N = I.y + _, T = (g.scrollHeight > g.clientHeight ? (j) => j : an)(je(0, g.scrollHeight + (x && O || C ? b * 2 : 0) - _ - je(0, F.bottom)));
|
|
5548
5548
|
if (g.style.maxHeight = T + "px", g.scrollTop = _, o) {
|
|
5549
|
-
const
|
|
5550
|
-
Pn.flushSync(() => o(
|
|
5549
|
+
const j = g.offsetHeight < p.offsetHeight * It(l, e.current.length) - 1 || R.top >= -s || R.bottom >= -s;
|
|
5550
|
+
Pn.flushSync(() => o(j));
|
|
5551
5551
|
}
|
|
5552
5552
|
return r && (r.current = await Pr(Zi({
|
|
5553
5553
|
...I,
|
|
5554
|
-
y:
|
|
5554
|
+
y: N
|
|
5555
5555
|
}, g.offsetHeight + b + m.clientTop), c)), {
|
|
5556
|
-
y:
|
|
5556
|
+
y: N
|
|
5557
5557
|
};
|
|
5558
5558
|
}
|
|
5559
5559
|
});
|
|
@@ -5629,11 +5629,11 @@ function Po() {
|
|
|
5629
5629
|
function Cl() {
|
|
5630
5630
|
return ye(Wt).getReferenceProps;
|
|
5631
5631
|
}
|
|
5632
|
-
function
|
|
5632
|
+
function No() {
|
|
5633
5633
|
let { getFloatingProps: t, slot: n } = ye(Wt);
|
|
5634
5634
|
return ce((...e) => Object.assign({}, t(...e), { "data-anchor": n.anchor }), [t, n]);
|
|
5635
5635
|
}
|
|
5636
|
-
function
|
|
5636
|
+
function jo(t = null) {
|
|
5637
5637
|
t === !1 && (t = null), typeof t == "string" && (t = { to: t });
|
|
5638
5638
|
let n = ye(Io), e = Ce(() => t, [JSON.stringify(t, (o, i) => {
|
|
5639
5639
|
var a;
|
|
@@ -5675,10 +5675,10 @@ function Lo({ children: t, enabled: n = !0 }) {
|
|
|
5675
5675
|
Object.assign(L.floating.style, { overflow: "auto", maxWidth: `${y}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${E}px)` });
|
|
5676
5676
|
} })].filter(Boolean), whileElementsMounted: cm }), [F = b, R = x] = I.placement.split("-");
|
|
5677
5677
|
b === "selection" && (F = "selection");
|
|
5678
|
-
let _ = Ce(() => ({ anchor: [F, R].filter(Boolean).join(" ") }), [F, R]),
|
|
5678
|
+
let _ = Ce(() => ({ anchor: [F, R].filter(Boolean).join(" ") }), [F, R]), N = Hm(I, { overflowRef: a, onChange: i }), { getReferenceProps: T, getFloatingProps: j } = Rm([N]), S = q((y) => {
|
|
5679
5679
|
s(y), C.setFloating(y);
|
|
5680
5680
|
});
|
|
5681
|
-
return d.createElement(Io.Provider, { value: r }, d.createElement(Wt.Provider, { value: { setFloating: S, setReference: C.setReference, styles: O, getReferenceProps: T, getFloatingProps:
|
|
5681
|
+
return d.createElement(Io.Provider, { value: r }, d.createElement(Wt.Provider, { value: { setFloating: S, setReference: C.setReference, styles: O, getReferenceProps: T, getFloatingProps: j, slot: _ } }, t));
|
|
5682
5682
|
}
|
|
5683
5683
|
function zm(t) {
|
|
5684
5684
|
ve(() => {
|
|
@@ -5787,7 +5787,7 @@ Wm(() => {
|
|
|
5787
5787
|
function Um(t) {
|
|
5788
5788
|
throw new Error("Unexpected object: " + t);
|
|
5789
5789
|
}
|
|
5790
|
-
var
|
|
5790
|
+
var X = ((t) => (t[t.First = 0] = "First", t[t.Previous = 1] = "Previous", t[t.Next = 2] = "Next", t[t.Last = 3] = "Last", t[t.Specific = 4] = "Specific", t[t.Nothing = 5] = "Nothing", t))(X || {});
|
|
5791
5791
|
function rt(t, n) {
|
|
5792
5792
|
let e = n.resolveItems();
|
|
5793
5793
|
if (e.length <= 0) return null;
|
|
@@ -5852,7 +5852,7 @@ function Km(t) {
|
|
|
5852
5852
|
let Ml = ut, Zm = Se(function(t, n) {
|
|
5853
5853
|
let { ownerDocument: e = null, ...r } = t, o = ae(null), i = ke(qd((m) => {
|
|
5854
5854
|
o.current = m;
|
|
5855
|
-
}), n), a = kt(o.current), l = e ?? a, s = Km(l), u = ye(
|
|
5855
|
+
}), n), a = kt(o.current), l = e ?? a, s = Km(l), u = ye(Jm), c = bt(), v = Ee();
|
|
5856
5856
|
return mr(() => {
|
|
5857
5857
|
var m;
|
|
5858
5858
|
s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
|
|
@@ -5865,11 +5865,11 @@ function Qm(t, n) {
|
|
|
5865
5865
|
return r ? V.createElement(Zm, { ...i, ownerDocument: o, ref: e }) : a({ ourProps: { ref: e }, theirProps: i, slot: {}, defaultTag: Ml, name: "Portal" });
|
|
5866
5866
|
}
|
|
5867
5867
|
let qm = ut, Dl = me(null);
|
|
5868
|
-
function
|
|
5868
|
+
function Xm(t, n) {
|
|
5869
5869
|
let { target: e, ...r } = t, o = { ref: ke(n) }, i = Ee();
|
|
5870
5870
|
return V.createElement(Dl.Provider, { value: e }, i({ ourProps: o, theirProps: r, defaultTag: qm, name: "Popover.Group" }));
|
|
5871
5871
|
}
|
|
5872
|
-
let
|
|
5872
|
+
let Jm = me(null), eh = Se(Qm), th = Se(Xm), Ho = Object.assign(eh, { Group: th });
|
|
5873
5873
|
const Ue = { Idle: { kind: "Idle" }, Tracked: (t) => ({ kind: "Tracked", position: t }), Moved: { kind: "Moved" } };
|
|
5874
5874
|
function hr(t) {
|
|
5875
5875
|
let n = t.getBoundingClientRect();
|
|
@@ -5885,7 +5885,7 @@ function zo(t, n, e) {
|
|
|
5885
5885
|
}
|
|
5886
5886
|
return () => r.dispose();
|
|
5887
5887
|
}
|
|
5888
|
-
var nh = Object.defineProperty, rh = (t, n, e) => n in t ? nh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e,
|
|
5888
|
+
var nh = Object.defineProperty, rh = (t, n, e) => n in t ? nh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Xi = (t, n, e) => (rh(t, typeof n != "symbol" ? n + "" : n, e), e), de = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(de || {}), We = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(We || {}), it = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Focus = 1] = "Focus", t[t.Other = 2] = "Other", t))(it || {}), Tl = ((t) => (t[t.OpenCombobox = 0] = "OpenCombobox", t[t.CloseCombobox = 1] = "CloseCombobox", t[t.GoToOption = 2] = "GoToOption", t[t.SetTyping = 3] = "SetTyping", t[t.RegisterOption = 4] = "RegisterOption", t[t.UnregisterOption = 5] = "UnregisterOption", t[t.DefaultToFirstOption = 6] = "DefaultToFirstOption", t[t.SetActivationTrigger = 7] = "SetActivationTrigger", t[t.UpdateVirtualConfiguration = 8] = "UpdateVirtualConfiguration", t[t.SetInputElement = 9] = "SetInputElement", t[t.SetButtonElement = 10] = "SetButtonElement", t[t.SetOptionsElement = 11] = "SetOptionsElement", t[t.MarkInputAsMoved = 12] = "MarkInputAsMoved", t))(Tl || {});
|
|
5889
5889
|
function _r(t, n = (e) => e) {
|
|
5890
5890
|
let e = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = n(t.options.slice()), o = r.length > 0 && r[0].dataRef.current.order !== null ? r.sort((a, l) => a.dataRef.current.order - l.dataRef.current.order) : cr(r, (a) => a.dataRef.current.domRef.current), i = e ? o.indexOf(e) : null;
|
|
5891
5891
|
return i === -1 && (i = null), { options: o, activeOptionIndex: i };
|
|
@@ -5909,7 +5909,7 @@ let oh = { 1(t) {
|
|
|
5909
5909
|
var e, r, o, i;
|
|
5910
5910
|
if ((e = t.dataRef.current) != null && e.disabled || t.optionsElement && !((r = t.dataRef.current) != null && r.optionsPropsRef.current.static) && t.comboboxState === 1) return t;
|
|
5911
5911
|
if (t.virtual) {
|
|
5912
|
-
let { options: u, disabled: c } = t.virtual, v = n.focus ===
|
|
5912
|
+
let { options: u, disabled: c } = t.virtual, v = n.focus === X.Specific ? n.idx : rt(n, { resolveItems: () => u, resolveActiveIndex: () => {
|
|
5913
5913
|
var p, g;
|
|
5914
5914
|
return (g = (p = t.activeOptionIndex) != null ? p : u.findIndex((b) => !c(b))) != null ? g : null;
|
|
5915
5915
|
}, resolveDisabled: c, resolveId() {
|
|
@@ -5922,7 +5922,7 @@ let oh = { 1(t) {
|
|
|
5922
5922
|
let u = a.options.findIndex((c) => !c.dataRef.current.disabled);
|
|
5923
5923
|
u !== -1 && (a.activeOptionIndex = u);
|
|
5924
5924
|
}
|
|
5925
|
-
let l = n.focus ===
|
|
5925
|
+
let l = n.focus === X.Specific ? n.idx : rt(n, { resolveItems: () => a.options, resolveActiveIndex: () => a.activeOptionIndex, resolveId: (u) => u.id, resolveDisabled: (u) => u.dataRef.current.disabled }), s = (i = n.trigger) != null ? i : 2;
|
|
5926
5926
|
return t.activeOptionIndex === l && t.activationTrigger === s ? t : { ...t, ...a, isTyping: !1, activeOptionIndex: l, activationTrigger: s, __demoMode: !1 };
|
|
5927
5927
|
}, 4: (t, n) => {
|
|
5928
5928
|
var e, r, o, i;
|
|
@@ -5953,7 +5953,7 @@ let oh = { 1(t) {
|
|
|
5953
5953
|
return t.inputPositionState.kind !== "Tracked" ? t : { ...t, inputPositionState: Ue.Moved };
|
|
5954
5954
|
} }, ih = class kl extends ir {
|
|
5955
5955
|
constructor(n) {
|
|
5956
|
-
super(n),
|
|
5956
|
+
super(n), Xi(this, "actions", { onChange: (e) => {
|
|
5957
5957
|
let { onChange: r, compare: o, mode: i, value: a } = this.state.dataRef.current;
|
|
5958
5958
|
return Te(i, { 0: () => r?.(e), 1: () => {
|
|
5959
5959
|
let l = a.slice(), s = l.findIndex((u) => o(u, e));
|
|
@@ -5978,7 +5978,7 @@ let oh = { 1(t) {
|
|
|
5978
5978
|
let { dataRef: r } = this.state.options[e];
|
|
5979
5979
|
this.actions.onChange(r.current.value);
|
|
5980
5980
|
}
|
|
5981
|
-
this.actions.goToOption({ focus:
|
|
5981
|
+
this.actions.goToOption({ focus: X.Specific, idx: e });
|
|
5982
5982
|
}
|
|
5983
5983
|
}, setInputElement: (e) => {
|
|
5984
5984
|
this.send({ type: 9, element: e });
|
|
@@ -5986,7 +5986,7 @@ let oh = { 1(t) {
|
|
|
5986
5986
|
this.send({ type: 10, element: e });
|
|
5987
5987
|
}, setOptionsElement: (e) => {
|
|
5988
5988
|
this.send({ type: 11, element: e });
|
|
5989
|
-
} }),
|
|
5989
|
+
} }), Xi(this, "selectors", { activeDescendantId: (e) => {
|
|
5990
5990
|
var r, o;
|
|
5991
5991
|
let i = this.selectors.activeOptionIndex(e);
|
|
5992
5992
|
if (i !== null) return e.virtual ? (o = e.options.find((a) => !a.dataRef.current.disabled && e.dataRef.current.compare(a.dataRef.current.value, e.virtual.options[i]))) == null ? void 0 : o.id : (r = e.options[i]) == null ? void 0 : r.id;
|
|
@@ -6015,7 +6015,7 @@ let oh = { 1(t) {
|
|
|
6015
6015
|
return e.inputPositionState.kind === "Moved";
|
|
6016
6016
|
} });
|
|
6017
6017
|
{
|
|
6018
|
-
let e = this.state.id, r =
|
|
6018
|
+
let e = this.state.id, r = jt.get(null);
|
|
6019
6019
|
this.disposables.add(r.on(ar.Push, (o) => {
|
|
6020
6020
|
!r.selectors.isTop(o, e) && this.state.comboboxState === 0 && this.actions.closeCombobox();
|
|
6021
6021
|
})), this.on(0, () => r.actions.push(e)), this.on(1, () => r.actions.pop(e));
|
|
@@ -6084,53 +6084,53 @@ function ah(t) {
|
|
|
6084
6084
|
}
|
|
6085
6085
|
let lh = ut;
|
|
6086
6086
|
function sh(t, n) {
|
|
6087
|
-
let e = Ae(), r = er(), { value: o, defaultValue: i, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: v = r || !1, onClose: m, __demoMode: p = !1, multiple: g = !1, immediate: b = !1, virtual: x = null, nullable: C, ...O } = t, I = Ia(i), [F = g ? [] : void 0, R] = ka(o, a, I), _ = Al({ id: e, virtual: x, __demoMode: p }),
|
|
6087
|
+
let e = Ae(), r = er(), { value: o, defaultValue: i, onChange: a, form: l, name: s, by: u, invalid: c = !1, disabled: v = r || !1, onClose: m, __demoMode: p = !1, multiple: g = !1, immediate: b = !1, virtual: x = null, nullable: C, ...O } = t, I = Ia(i), [F = g ? [] : void 0, R] = ka(o, a, I), _ = Al({ id: e, virtual: x, __demoMode: p }), N = ae({ static: !1, hold: !1 }), T = $a(u), j = q((ie) => x ? u === null ? x.options.indexOf(ie) : x.options.findIndex((De) => T(De, ie)) : _.state.options.findIndex((De) => T(De.dataRef.current.value, ie))), S = ce((ie) => Te(L.mode, { [We.Multi]: () => F.some((De) => T(De, ie)), [We.Single]: () => T(F, ie) }), [F]), y = se(_, (ie) => ie.virtual), E = q(() => m?.()), L = Ce(() => ({ __demoMode: p, immediate: b, optionsPropsRef: N, value: F, defaultValue: I, disabled: v, invalid: c, mode: g ? We.Multi : We.Single, virtual: x ? y : null, onChange: R, isSelected: S, calculateIndex: j, compare: T, onClose: E }), [p, b, N, F, I, v, c, g, x, y, R, S, j, T, E]);
|
|
6088
6088
|
ve(() => {
|
|
6089
6089
|
var ie;
|
|
6090
6090
|
x && _.send({ type: Tl.UpdateVirtualConfiguration, options: x.options, disabled: (ie = x.disabled) != null ? ie : null });
|
|
6091
6091
|
}, [x, x?.options, x?.disabled]), ve(() => {
|
|
6092
6092
|
_.state.dataRef.current = L;
|
|
6093
6093
|
}, [L]);
|
|
6094
|
-
let [B, A, W, G] = se(_, (ie) => [ie.comboboxState, ie.buttonElement, ie.inputElement, ie.optionsElement]), P =
|
|
6094
|
+
let [B, A, W, G] = se(_, (ie) => [ie.comboboxState, ie.buttonElement, ie.inputElement, ie.optionsElement]), P = jt.get(null), U = se(P, ce((ie) => P.selectors.isTop(ie, e), [P, e]));
|
|
6095
6095
|
yo(U, [A, W, G], () => _.actions.closeCombobox());
|
|
6096
|
-
let oe = se(_, _.selectors.activeOptionIndex), D = se(_, _.selectors.activeOption), k = Ie({ open: B === de.Open, disabled: v, invalid: c, activeIndex: oe, activeOption: D, value: F }), [ne,
|
|
6096
|
+
let oe = se(_, _.selectors.activeOptionIndex), D = se(_, _.selectors.activeOption), k = Ie({ open: B === de.Open, disabled: v, invalid: c, activeIndex: oe, activeOption: D, value: F }), [ne, J] = or(), fe = n === null ? {} : { ref: n }, $ = ce(() => {
|
|
6097
6097
|
if (I !== void 0) return R?.(I);
|
|
6098
6098
|
}, [R, I]), ee = Ee();
|
|
6099
|
-
return V.createElement(
|
|
6099
|
+
return V.createElement(J, { value: ne, props: { htmlFor: W?.id }, slot: { open: B === de.Open, disabled: v } }, V.createElement(Lo, null, V.createElement(sn.Provider, { value: L }, V.createElement(Il.Provider, { value: _ }, V.createElement(Fo, { value: Te(B, { [de.Open]: Ge.Open, [de.Closed]: Ge.Closed }) }, s != null && V.createElement(La, { disabled: v, data: F != null ? { [s]: F } : {}, form: l, onReset: $ }), ee({ ourProps: fe, theirProps: O, slot: k, defaultTag: lh, name: "Combobox" }))))));
|
|
6100
6100
|
}
|
|
6101
6101
|
let ch = "input";
|
|
6102
6102
|
function uh(t, n) {
|
|
6103
6103
|
var e, r;
|
|
6104
6104
|
let o = hn("Combobox.Input"), i = Ut("Combobox.Input"), a = Ae(), l = po(), { id: s = l || `headlessui-combobox-input-${a}`, onChange: u, displayValue: c, disabled: v = i.disabled || !1, autoFocus: m = !1, type: p = "text", ...g } = t, b = ae(null), x = ke(b, n, Po(), o.actions.setInputElement), [C, O] = se(o, (k) => [k.comboboxState, k.isTyping]), I = bt(), F = q(() => {
|
|
6105
|
-
o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus:
|
|
6105
|
+
o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: X.Nothing });
|
|
6106
6106
|
}), R = Ce(() => {
|
|
6107
6107
|
var k;
|
|
6108
6108
|
return typeof c == "function" && i.value !== void 0 ? (k = c(i.value)) != null ? k : "" : typeof i.value == "string" ? i.value : "";
|
|
6109
6109
|
}, [i.value, c]);
|
|
6110
|
-
Li(([k, ne], [
|
|
6110
|
+
Li(([k, ne], [J, fe]) => {
|
|
6111
6111
|
if (o.state.isTyping) return;
|
|
6112
6112
|
let $ = b.current;
|
|
6113
|
-
$ && ((fe === de.Open && ne === de.Closed || k !==
|
|
6114
|
-
if (o.state.isTyping || !$ ||
|
|
6113
|
+
$ && ((fe === de.Open && ne === de.Closed || k !== J) && ($.value = k), requestAnimationFrame(() => {
|
|
6114
|
+
if (o.state.isTyping || !$ || Jn($)) return;
|
|
6115
6115
|
let { selectionStart: ee, selectionEnd: ie } = $;
|
|
6116
6116
|
Math.abs((ie ?? 0) - (ee ?? 0)) === 0 && ee === 0 && $.setSelectionRange($.value.length, $.value.length);
|
|
6117
6117
|
}));
|
|
6118
6118
|
}, [R, C, O]), Li(([k], [ne]) => {
|
|
6119
6119
|
if (k === de.Open && ne === de.Closed) {
|
|
6120
6120
|
if (o.state.isTyping) return;
|
|
6121
|
-
let
|
|
6122
|
-
if (!
|
|
6123
|
-
let fe =
|
|
6124
|
-
|
|
6121
|
+
let J = b.current;
|
|
6122
|
+
if (!J) return;
|
|
6123
|
+
let fe = J.value, { selectionStart: $, selectionEnd: ee, selectionDirection: ie } = J;
|
|
6124
|
+
J.value = "", J.value = fe, ie !== null ? J.setSelectionRange($, ee, ie) : J.setSelectionRange($, ee);
|
|
6125
6125
|
}
|
|
6126
6126
|
}, [C]);
|
|
6127
|
-
let _ = ae(!1),
|
|
6127
|
+
let _ = ae(!1), N = q(() => {
|
|
6128
6128
|
_.current = !0;
|
|
6129
6129
|
}), T = q(() => {
|
|
6130
6130
|
I.nextFrame(() => {
|
|
6131
6131
|
_.current = !1;
|
|
6132
6132
|
});
|
|
6133
|
-
}),
|
|
6133
|
+
}), j = q((k) => {
|
|
6134
6134
|
switch (o.actions.setIsTyping(!0), k.key) {
|
|
6135
6135
|
case te.Enter:
|
|
6136
6136
|
if (o.state.comboboxState !== de.Open || _.current) return;
|
|
@@ -6141,21 +6141,21 @@ function uh(t, n) {
|
|
|
6141
6141
|
o.actions.selectActiveOption(), i.mode === We.Single && o.actions.closeCombobox();
|
|
6142
6142
|
break;
|
|
6143
6143
|
case te.ArrowDown:
|
|
6144
|
-
return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus:
|
|
6144
|
+
return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: X.Next }), [de.Closed]: () => o.actions.openCombobox() });
|
|
6145
6145
|
case te.ArrowUp:
|
|
6146
|
-
return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus:
|
|
6147
|
-
ze(() => o.actions.openCombobox()), i.value || o.actions.goToOption({ focus:
|
|
6146
|
+
return k.preventDefault(), k.stopPropagation(), Te(o.state.comboboxState, { [de.Open]: () => o.actions.goToOption({ focus: X.Previous }), [de.Closed]: () => {
|
|
6147
|
+
ze(() => o.actions.openCombobox()), i.value || o.actions.goToOption({ focus: X.Last });
|
|
6148
6148
|
} });
|
|
6149
6149
|
case te.Home:
|
|
6150
6150
|
if (o.state.comboboxState === de.Closed || k.shiftKey) break;
|
|
6151
|
-
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus:
|
|
6151
|
+
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.First });
|
|
6152
6152
|
case te.PageUp:
|
|
6153
|
-
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus:
|
|
6153
|
+
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.First });
|
|
6154
6154
|
case te.End:
|
|
6155
6155
|
if (o.state.comboboxState === de.Closed || k.shiftKey) break;
|
|
6156
|
-
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus:
|
|
6156
|
+
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.Last });
|
|
6157
6157
|
case te.PageDown:
|
|
6158
|
-
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus:
|
|
6158
|
+
return k.preventDefault(), k.stopPropagation(), o.actions.goToOption({ focus: X.Last });
|
|
6159
6159
|
case te.Escape:
|
|
6160
6160
|
return o.state.comboboxState !== de.Open ? void 0 : (k.preventDefault(), o.state.optionsElement && !i.optionsPropsRef.current.static && k.stopPropagation(), i.mode === We.Single && i.value === null && F(), o.actions.closeCombobox());
|
|
6161
6161
|
case te.Tab:
|
|
@@ -6166,25 +6166,25 @@ function uh(t, n) {
|
|
|
6166
6166
|
}), S = q((k) => {
|
|
6167
6167
|
u?.(k), i.mode === We.Single && k.target.value === "" && F(), o.actions.openCombobox();
|
|
6168
6168
|
}), y = q((k) => {
|
|
6169
|
-
var ne,
|
|
6169
|
+
var ne, J, fe;
|
|
6170
6170
|
let $ = (ne = k.relatedTarget) != null ? ne : Et.find((ee) => ee !== k.currentTarget);
|
|
6171
|
-
if (!((
|
|
6171
|
+
if (!((J = o.state.optionsElement) != null && J.contains($)) && !((fe = o.state.buttonElement) != null && fe.contains($)) && o.state.comboboxState === de.Open) return k.preventDefault(), i.mode === We.Single && i.value === null && F(), o.actions.closeCombobox();
|
|
6172
6172
|
}), E = q((k) => {
|
|
6173
|
-
var ne,
|
|
6173
|
+
var ne, J, fe;
|
|
6174
6174
|
let $ = (ne = k.relatedTarget) != null ? ne : Et.find((ee) => ee !== k.currentTarget);
|
|
6175
|
-
(
|
|
6175
|
+
(J = o.state.buttonElement) != null && J.contains($) || (fe = o.state.optionsElement) != null && fe.contains($) || i.disabled || i.immediate && o.state.comboboxState !== de.Open && I.microTask(() => {
|
|
6176
6176
|
ze(() => o.actions.openCombobox()), o.actions.setActivationTrigger(it.Focus);
|
|
6177
6177
|
});
|
|
6178
|
-
}), L = fn(), B = za(), { isFocused: A, focusProps: W } =
|
|
6178
|
+
}), L = fn(), B = za(), { isFocused: A, focusProps: W } = Xn({ autoFocus: m }), { isHovered: G, hoverProps: P } = qn({ isDisabled: v }), U = se(o, (k) => k.optionsElement), oe = Ie({ open: C === de.Open, disabled: v, invalid: i.invalid, hover: G, focus: A, autofocus: m }), D = Nt({ ref: x, id: s, role: "combobox", type: p, "aria-controls": U?.id, "aria-expanded": C === de.Open, "aria-activedescendant": se(o, o.selectors.activeDescendantId), "aria-labelledby": L, "aria-describedby": B, "aria-autocomplete": "list", defaultValue: (r = (e = t.defaultValue) != null ? e : i.defaultValue !== void 0 ? c?.(i.defaultValue) : null) != null ? r : i.defaultValue, disabled: v || void 0, autoFocus: m, onCompositionStart: N, onCompositionEnd: T, onKeyDown: j, onChange: S, onFocus: E, onBlur: y }, W, P);
|
|
6179
6179
|
return Ee()({ ourProps: D, theirProps: g, slot: oe, defaultTag: ch, name: "Combobox.Input" });
|
|
6180
6180
|
}
|
|
6181
6181
|
let dh = "button";
|
|
6182
6182
|
function fh(t, n) {
|
|
6183
|
-
let e = hn("Combobox.Button"), r = Ut("Combobox.Button"), [o, i] = be(null), a = ke(n, i, e.actions.setButtonElement), l = Ae(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...v } = t, [m, p, g] = se(e, (E) => [E.comboboxState, E.inputElement, E.optionsElement]), b =
|
|
6183
|
+
let e = hn("Combobox.Button"), r = Ut("Combobox.Button"), [o, i] = be(null), a = ke(n, i, e.actions.setButtonElement), l = Ae(), { id: s = `headlessui-combobox-button-${l}`, disabled: u = r.disabled || !1, autoFocus: c = !1, ...v } = t, [m, p, g] = se(e, (E) => [E.comboboxState, E.inputElement, E.optionsElement]), b = Ja(p), x = m === de.Open;
|
|
6184
6184
|
wo(x, { trigger: o, action: ce((E) => {
|
|
6185
|
-
if (o != null && o.contains(E.target) || p != null && p.contains(E.target)) return
|
|
6185
|
+
if (o != null && o.contains(E.target) || p != null && p.contains(E.target)) return Xe.Ignore;
|
|
6186
6186
|
let L = E.target.closest('[role="option"]:not([data-disabled])');
|
|
6187
|
-
return et(L) ?
|
|
6187
|
+
return et(L) ? Xe.Select(L) : g != null && g.contains(E.target) ? Xe.Ignore : Xe.Close;
|
|
6188
6188
|
}, [o, p, g]), close: e.actions.closeCombobox, select: e.actions.selectActiveOption });
|
|
6189
6189
|
let C = q((E) => {
|
|
6190
6190
|
switch (E.key) {
|
|
@@ -6193,10 +6193,10 @@ function fh(t, n) {
|
|
|
6193
6193
|
E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && ze(() => e.actions.openCombobox()), b();
|
|
6194
6194
|
return;
|
|
6195
6195
|
case te.ArrowDown:
|
|
6196
|
-
E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus:
|
|
6196
|
+
E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: X.First })), b();
|
|
6197
6197
|
return;
|
|
6198
6198
|
case te.ArrowUp:
|
|
6199
|
-
E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus:
|
|
6199
|
+
E.preventDefault(), E.stopPropagation(), e.state.comboboxState === de.Closed && (ze(() => e.actions.openCombobox()), e.state.dataRef.current.value || e.actions.goToOption({ focus: X.Last })), b();
|
|
6200
6200
|
return;
|
|
6201
6201
|
case te.Escape:
|
|
6202
6202
|
if (e.state.comboboxState !== de.Open) return;
|
|
@@ -6207,7 +6207,7 @@ function fh(t, n) {
|
|
|
6207
6207
|
}
|
|
6208
6208
|
}), O = go(() => {
|
|
6209
6209
|
e.state.comboboxState === de.Open ? e.actions.closeCombobox() : e.actions.openCombobox(), b();
|
|
6210
|
-
}), I = fn([s]), { isFocusVisible: F, focusProps: R } =
|
|
6210
|
+
}), I = fn([s]), { isFocusVisible: F, focusProps: R } = Xn({ autoFocus: c }), { isHovered: _, hoverProps: N } = qn({ isDisabled: u }), { pressed: T, pressProps: j } = uo({ disabled: u }), S = Ie({ open: m === de.Open, active: T || m === de.Open, disabled: u, invalid: r.invalid, value: r.value, hover: _, focus: F }), y = Nt({ ref: a, id: s, type: xo(t, o), tabIndex: -1, "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": m === de.Open, "aria-labelledby": I, disabled: u || void 0, autoFocus: c, onKeyDown: C }, O, R, N, j);
|
|
6211
6211
|
return Ee()({ ourProps: y, theirProps: v, slot: S, defaultTag: dh, name: "Combobox.Button" });
|
|
6212
6212
|
}
|
|
6213
6213
|
let ph = "div", mh = Tt.RenderStrategy | Tt.Static;
|
|
@@ -6215,19 +6215,19 @@ function hh(t, n) {
|
|
|
6215
6215
|
var e, r, o;
|
|
6216
6216
|
let i = Ae(), { id: a = `headlessui-combobox-options-${i}`, hold: l = !1, anchor: s, portal: u = !1, modal: c = !0, transition: v = !1, ...m } = t, p = hn("Combobox.Options"), g = Ut("Combobox.Options"), b = Ao(s);
|
|
6217
6217
|
b && (u = !0);
|
|
6218
|
-
let [x, C] =
|
|
6219
|
-
bo(B,
|
|
6218
|
+
let [x, C] = jo(b), [O, I] = be(null), F = No(), R = ke(n, b ? x : null, p.actions.setOptionsElement, I), [_, N, T, j, S] = se(p, (Oe) => [Oe.comboboxState, Oe.inputElement, Oe.buttonElement, Oe.optionsElement, Oe.activationTrigger]), y = kt(N || T), E = kt(j), L = Ro(), [B, A] = Oo(v, O, L !== null ? (L & Ge.Open) === Ge.Open : _ === de.Open);
|
|
6219
|
+
bo(B, N, p.actions.closeCombobox);
|
|
6220
6220
|
let W = g.__demoMode ? !1 : c && _ === de.Open;
|
|
6221
6221
|
Eo(W, E);
|
|
6222
6222
|
let G = g.__demoMode ? !1 : c && _ === de.Open;
|
|
6223
|
-
vo(G, { allowed: ce(() => [
|
|
6223
|
+
vo(G, { allowed: ce(() => [N, T, j], [N, T, j]) });
|
|
6224
6224
|
let P = se(p, p.selectors.didInputMove) ? !1 : B;
|
|
6225
6225
|
ve(() => {
|
|
6226
6226
|
var Oe;
|
|
6227
6227
|
g.optionsPropsRef.current.static = (Oe = t.static) != null ? Oe : !1;
|
|
6228
6228
|
}, [g.optionsPropsRef, t.static]), ve(() => {
|
|
6229
6229
|
g.optionsPropsRef.current.hold = l;
|
|
6230
|
-
}, [g.optionsPropsRef, l]), el(_ === de.Open, { container:
|
|
6230
|
+
}, [g.optionsPropsRef, l]), el(_ === de.Open, { container: j, accept(Oe) {
|
|
6231
6231
|
return Oe.getAttribute("role") === "option" ? NodeFilter.FILTER_REJECT : Oe.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
6232
6232
|
}, walk(Oe) {
|
|
6233
6233
|
Oe.setAttribute("role", "none");
|
|
@@ -6236,19 +6236,19 @@ function hh(t, n) {
|
|
|
6236
6236
|
p.actions.setActivationTrigger(it.Pointer);
|
|
6237
6237
|
}), k = q((Oe) => {
|
|
6238
6238
|
Oe.preventDefault(), p.actions.setActivationTrigger(it.Pointer);
|
|
6239
|
-
}), ne =
|
|
6239
|
+
}), ne = Nt(b ? F() : {}, { "aria-labelledby": U, role: "listbox", "aria-multiselectable": g.mode === We.Multi ? !0 : void 0, id: a, ref: R, style: { ...m.style, ...C, "--input-width": Fn(B, N, !0).width, "--button-width": Fn(B, T, !0).width }, onWheel: S === it.Pointer ? void 0 : D, onMouseDown: k, ...Co(A) }), J = B && _ === de.Closed && !t.static, fe = Gn(J, (e = g.virtual) == null ? void 0 : e.options), $ = Gn(J, g.value), ee = ce((Oe) => g.compare($, Oe), [g.compare, $]), ie = Ce(() => {
|
|
6240
6240
|
if (!g.virtual) return g;
|
|
6241
6241
|
if (fe === void 0) throw new Error("Missing `options` in virtual mode");
|
|
6242
6242
|
return fe !== g.virtual.options ? { ...g, virtual: { ...g.virtual, options: fe } } : g;
|
|
6243
6243
|
}, [g, fe, (r = g.virtual) == null ? void 0 : r.options]);
|
|
6244
6244
|
g.virtual && Object.assign(m, { children: V.createElement(sn.Provider, { value: ie }, V.createElement(ah, { slot: oe }, m.children)) });
|
|
6245
6245
|
let De = Ee(), Yt = Ce(() => g.mode === We.Multi ? g : { ...g, isSelected: ee }, [g, ee]);
|
|
6246
|
-
return V.createElement(Ho, { enabled: u ? t.static || B : !1, ownerDocument: y }, V.createElement(sn.Provider, { value: Yt }, De({ ourProps: ne, theirProps: { ...m, children: V.createElement($m, { freeze:
|
|
6246
|
+
return V.createElement(Ho, { enabled: u ? t.static || B : !1, ownerDocument: y }, V.createElement(sn.Provider, { value: Yt }, De({ ourProps: ne, theirProps: { ...m, children: V.createElement($m, { freeze: J }, typeof m.children == "function" ? (o = m.children) == null ? void 0 : o.call(m, oe) : m.children) }, slot: oe, defaultTag: ph, features: mh, visible: P, name: "Combobox.Options" })));
|
|
6247
6247
|
}
|
|
6248
6248
|
let gh = "div";
|
|
6249
6249
|
function vh(t, n) {
|
|
6250
6250
|
var e, r, o;
|
|
6251
|
-
let i = Ut("Combobox.Option"), a = hn("Combobox.Option"), l = Ae(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (o = (r = (e = i.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? o : !1, order: v = null, ...m } = t, [p] = se(a, (A) => [A.inputElement]), g =
|
|
6251
|
+
let i = Ut("Combobox.Option"), a = hn("Combobox.Option"), l = Ae(), { id: s = `headlessui-combobox-option-${l}`, value: u, disabled: c = (o = (r = (e = i.virtual) == null ? void 0 : e.disabled) == null ? void 0 : r.call(e, u)) != null ? o : !1, order: v = null, ...m } = t, [p] = se(a, (A) => [A.inputElement]), g = Ja(p), b = se(a, ce((A) => a.selectors.isActive(A, u, s), [u, s])), x = i.isSelected(u), C = ae(null), O = yt({ disabled: c, value: u, domRef: C, order: v }), I = ye(Pl), F = ke(n, C, I ? I.measureElement : null), R = q(() => {
|
|
6252
6252
|
a.actions.setIsTyping(!1), a.actions.onChange(u);
|
|
6253
6253
|
});
|
|
6254
6254
|
ve(() => a.actions.registerOption(s, O), [O, s]);
|
|
@@ -6259,24 +6259,24 @@ function vh(t, n) {
|
|
|
6259
6259
|
(W = (A = C.current) == null ? void 0 : A.scrollIntoView) == null || W.call(A, { block: "nearest" });
|
|
6260
6260
|
});
|
|
6261
6261
|
}, [_, C]);
|
|
6262
|
-
let
|
|
6262
|
+
let N = q((A) => {
|
|
6263
6263
|
A.preventDefault(), A.button === ho.Left && (c || (R(), Kr() || requestAnimationFrame(() => g()), i.mode === We.Single && a.actions.closeCombobox()));
|
|
6264
6264
|
}), T = q(() => {
|
|
6265
|
-
if (c) return a.actions.goToOption({ focus:
|
|
6265
|
+
if (c) return a.actions.goToOption({ focus: X.Nothing });
|
|
6266
6266
|
let A = i.calculateIndex(u);
|
|
6267
|
-
a.actions.goToOption({ focus:
|
|
6268
|
-
}),
|
|
6269
|
-
if (!
|
|
6267
|
+
a.actions.goToOption({ focus: X.Specific, idx: A });
|
|
6268
|
+
}), j = So(), S = q((A) => j.update(A)), y = q((A) => {
|
|
6269
|
+
if (!j.wasMoved(A) || c || b && a.state.activationTrigger === it.Pointer) return;
|
|
6270
6270
|
let W = i.calculateIndex(u);
|
|
6271
|
-
a.actions.goToOption({ focus:
|
|
6271
|
+
a.actions.goToOption({ focus: X.Specific, idx: W }, it.Pointer);
|
|
6272
6272
|
}), E = q((A) => {
|
|
6273
|
-
|
|
6274
|
-
}), L = Ie({ active: b, focus: b, selected: x, disabled: c }), B = { id: s, ref: F, role: "option", tabIndex: c === !0 ? void 0 : -1, "aria-disabled": c === !0 ? !0 : void 0, "aria-selected": x, disabled: void 0, onMouseDown:
|
|
6273
|
+
j.wasMoved(A) && (c || b && (i.optionsPropsRef.current.hold || a.state.activationTrigger === it.Pointer && a.actions.goToOption({ focus: X.Nothing })));
|
|
6274
|
+
}), L = Ie({ active: b, focus: b, selected: x, disabled: c }), B = { id: s, ref: F, role: "option", tabIndex: c === !0 ? void 0 : -1, "aria-disabled": c === !0 ? !0 : void 0, "aria-selected": x, disabled: void 0, onMouseDown: N, onFocus: T, onPointerEnter: S, onMouseEnter: S, onPointerMove: y, onMouseMove: y, onPointerLeave: E, onMouseLeave: E };
|
|
6275
6275
|
return Ee()({ ourProps: B, theirProps: m, slot: L, defaultTag: gh, name: "Combobox.Option" });
|
|
6276
6276
|
}
|
|
6277
6277
|
let bh = Se(sh), yh = Se(fh), wh = Se(uh), xh = Ba, Eh = Se(hh), Sh = Se(vh);
|
|
6278
6278
|
Object.assign(bh, { Input: wh, Button: yh, Label: xh, Options: Eh, Option: Sh });
|
|
6279
|
-
let
|
|
6279
|
+
let Ji = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
6280
6280
|
function ea(t) {
|
|
6281
6281
|
var n, e;
|
|
6282
6282
|
let r = (n = t.innerText) != null ? n : "", o = t.cloneNode(!0);
|
|
@@ -6284,7 +6284,7 @@ function ea(t) {
|
|
|
6284
6284
|
let i = !1;
|
|
6285
6285
|
for (let l of o.querySelectorAll('[hidden],[aria-hidden],[role="img"]')) l.remove(), i = !0;
|
|
6286
6286
|
let a = i ? (e = o.innerText) != null ? e : "" : r;
|
|
6287
|
-
return
|
|
6287
|
+
return Ji.test(a) && (a = a.replace(Ji, "")), a;
|
|
6288
6288
|
}
|
|
6289
6289
|
function Ch(t) {
|
|
6290
6290
|
let n = t.getAttribute("aria-label");
|
|
@@ -6303,7 +6303,7 @@ function Ch(t) {
|
|
|
6303
6303
|
}
|
|
6304
6304
|
return ea(t).trim();
|
|
6305
6305
|
}
|
|
6306
|
-
function
|
|
6306
|
+
function Nl(t) {
|
|
6307
6307
|
let n = ae(""), e = ae("");
|
|
6308
6308
|
return q(() => {
|
|
6309
6309
|
let r = t.current;
|
|
@@ -6314,7 +6314,7 @@ function jl(t) {
|
|
|
6314
6314
|
return n.current = o, e.current = i, i;
|
|
6315
6315
|
});
|
|
6316
6316
|
}
|
|
6317
|
-
var Oh = Object.defineProperty, Mh = (t, n, e) => n in t ? Oh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ta = (t, n, e) => (Mh(t, typeof n != "symbol" ? n + "" : n, e), e), Le = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Le || {}), mt = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(mt || {}), An = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Other = 1] = "Other", t))(An || {}),
|
|
6317
|
+
var Oh = Object.defineProperty, Mh = (t, n, e) => n in t ? Oh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ta = (t, n, e) => (Mh(t, typeof n != "symbol" ? n + "" : n, e), e), Le = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Le || {}), mt = ((t) => (t[t.Single = 0] = "Single", t[t.Multi = 1] = "Multi", t))(mt || {}), An = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Other = 1] = "Other", t))(An || {}), jl = ((t) => (t[t.OpenListbox = 0] = "OpenListbox", t[t.CloseListbox = 1] = "CloseListbox", t[t.GoToOption = 2] = "GoToOption", t[t.Search = 3] = "Search", t[t.ClearSearch = 4] = "ClearSearch", t[t.SelectOption = 5] = "SelectOption", t[t.RegisterOptions = 6] = "RegisterOptions", t[t.UnregisterOptions = 7] = "UnregisterOptions", t[t.SetButtonElement = 8] = "SetButtonElement", t[t.SetOptionsElement = 9] = "SetOptionsElement", t[t.SortOptions = 10] = "SortOptions", t[t.MarkButtonAsMoved = 11] = "MarkButtonAsMoved", t))(jl || {});
|
|
6318
6318
|
function na(t, n = (e) => e) {
|
|
6319
6319
|
let e = t.activeOptionIndex !== null ? t.options[t.activeOptionIndex] : null, r = cr(n(t.options.slice()), (i) => i.dataRef.current.domRef.current), o = e ? r.indexOf(e) : null;
|
|
6320
6320
|
return o === -1 && (o = null), { options: r, activeOptionIndex: o };
|
|
@@ -6322,7 +6322,7 @@ function na(t, n = (e) => e) {
|
|
|
6322
6322
|
let Dh = { 1(t) {
|
|
6323
6323
|
if (t.dataRef.current.disabled || t.listboxState === 1) return t;
|
|
6324
6324
|
let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
|
|
6325
|
-
return { ...t, activeOptionIndex: null, pendingFocus: { focus:
|
|
6325
|
+
return { ...t, activeOptionIndex: null, pendingFocus: { focus: X.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: n };
|
|
6326
6326
|
}, 0(t, n) {
|
|
6327
6327
|
if (t.dataRef.current.disabled || t.listboxState === 0) return t;
|
|
6328
6328
|
let e = t.activeOptionIndex, { isSelected: r } = t.dataRef.current, o = t.options.findIndex((i) => r(i.dataRef.current.value));
|
|
@@ -6331,9 +6331,9 @@ let Dh = { 1(t) {
|
|
|
6331
6331
|
var e, r, o, i, a;
|
|
6332
6332
|
if (t.dataRef.current.disabled || t.listboxState === 1) return t;
|
|
6333
6333
|
let l = { ...t, searchQuery: "", activationTrigger: (e = n.trigger) != null ? e : 1, __demoMode: !1 };
|
|
6334
|
-
if (n.focus ===
|
|
6335
|
-
if (n.focus ===
|
|
6336
|
-
if (n.focus ===
|
|
6334
|
+
if (n.focus === X.Nothing) return { ...l, activeOptionIndex: null };
|
|
6335
|
+
if (n.focus === X.Specific) return { ...l, activeOptionIndex: t.options.findIndex((c) => c.id === n.id) };
|
|
6336
|
+
if (n.focus === X.Previous) {
|
|
6337
6337
|
let c = t.activeOptionIndex;
|
|
6338
6338
|
if (c !== null) {
|
|
6339
6339
|
let v = t.options[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
|
|
@@ -6342,7 +6342,7 @@ let Dh = { 1(t) {
|
|
|
6342
6342
|
if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((o = p.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeOptionIndex: m };
|
|
6343
6343
|
}
|
|
6344
6344
|
}
|
|
6345
|
-
} else if (n.focus ===
|
|
6345
|
+
} else if (n.focus === X.Next) {
|
|
6346
6346
|
let c = t.activeOptionIndex;
|
|
6347
6347
|
if (c !== null) {
|
|
6348
6348
|
let v = t.options[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.options, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
|
|
@@ -6367,14 +6367,14 @@ let Dh = { 1(t) {
|
|
|
6367
6367
|
return t.dataRef.current.mode === 0 ? { ...t, frozenValue: !0 } : { ...t };
|
|
6368
6368
|
}, 6: (t, n) => {
|
|
6369
6369
|
let e = t.options.concat(n.options), r = t.activeOptionIndex;
|
|
6370
|
-
if (t.pendingFocus.focus !==
|
|
6370
|
+
if (t.pendingFocus.focus !== X.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeOptionIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), t.activeOptionIndex === null) {
|
|
6371
6371
|
let { isSelected: o } = t.dataRef.current;
|
|
6372
6372
|
if (o) {
|
|
6373
6373
|
let i = e.findIndex((a) => o?.(a.dataRef.current.value));
|
|
6374
6374
|
i !== -1 && (r = i);
|
|
6375
6375
|
}
|
|
6376
6376
|
}
|
|
6377
|
-
return { ...t, options: e, activeOptionIndex: r, pendingFocus: { focus:
|
|
6377
|
+
return { ...t, options: e, activeOptionIndex: r, pendingFocus: { focus: X.Nothing }, pendingShouldSort: !0 };
|
|
6378
6378
|
}, 7: (t, n) => {
|
|
6379
6379
|
let e = t.options, r = [], o = new Set(n.options);
|
|
6380
6380
|
for (let [i, a] of e.entries()) if (o.has(a.id) && (r.push(i), o.delete(a.id), o.size === 0)) break;
|
|
@@ -6393,17 +6393,17 @@ let Dh = { 1(t) {
|
|
|
6393
6393
|
let l = a.slice(), s = l.findIndex((u) => o(u, e));
|
|
6394
6394
|
return s === -1 ? l.push(e) : l.splice(s, 1), r?.(l);
|
|
6395
6395
|
} });
|
|
6396
|
-
}, registerOption:
|
|
6396
|
+
}, registerOption: Jt(() => {
|
|
6397
6397
|
let e = [], r = /* @__PURE__ */ new Set();
|
|
6398
6398
|
return [(o, i) => {
|
|
6399
6399
|
r.has(i) || (r.add(i), e.push({ id: o, dataRef: i }));
|
|
6400
6400
|
}, () => (r.clear(), this.send({ type: 6, options: e.splice(0) }))];
|
|
6401
|
-
}), unregisterOption:
|
|
6401
|
+
}), unregisterOption: Jt(() => {
|
|
6402
6402
|
let e = [];
|
|
6403
6403
|
return [(r) => e.push(r), () => {
|
|
6404
6404
|
this.send({ type: 7, options: e.splice(0) });
|
|
6405
6405
|
}];
|
|
6406
|
-
}), goToOption:
|
|
6406
|
+
}), goToOption: Jt(() => {
|
|
6407
6407
|
let e = null;
|
|
6408
6408
|
return [(r, o) => {
|
|
6409
6409
|
e = { type: 2, ...r, trigger: o };
|
|
@@ -6448,7 +6448,7 @@ let Dh = { 1(t) {
|
|
|
6448
6448
|
});
|
|
6449
6449
|
});
|
|
6450
6450
|
{
|
|
6451
|
-
let e = this.state.id, r =
|
|
6451
|
+
let e = this.state.id, r = jt.get(null);
|
|
6452
6452
|
this.disposables.add(r.on(ar.Push, (o) => {
|
|
6453
6453
|
!r.selectors.isTop(o, e) && this.state.listboxState === 0 && this.actions.closeListbox();
|
|
6454
6454
|
})), this.on(0, () => r.actions.push(e)), this.on(1, () => r.actions.pop(e));
|
|
@@ -6465,7 +6465,7 @@ let Dh = { 1(t) {
|
|
|
6465
6465
|
});
|
|
6466
6466
|
}
|
|
6467
6467
|
static new({ id: n, __demoMode: e = !1 }) {
|
|
6468
|
-
return new Ll({ id: n, dataRef: { current: {} }, listboxState: e ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus:
|
|
6468
|
+
return new Ll({ id: n, dataRef: { current: {} }, listboxState: e ? 0 : 1, options: [], searchQuery: "", activeOptionIndex: null, activationTrigger: 1, buttonElement: null, optionsElement: null, pendingShouldSort: !1, pendingFocus: { focus: X.Nothing }, frozenValue: !1, __demoMode: e, buttonPositionState: Ue.Idle });
|
|
6469
6469
|
}
|
|
6470
6470
|
reduce(n, e) {
|
|
6471
6471
|
return Te(e.type, Dh, n, e);
|
|
@@ -6498,13 +6498,13 @@ let kh = ut;
|
|
|
6498
6498
|
function Ih(t, n) {
|
|
6499
6499
|
let e = Ae(), r = er(), { value: o, defaultValue: i, form: a, name: l, onChange: s, by: u, invalid: c = !1, disabled: v = r || !1, horizontal: m = !1, multiple: p = !1, __demoMode: g = !1, ...b } = t;
|
|
6500
6500
|
const x = m ? "horizontal" : "vertical";
|
|
6501
|
-
let C = ke(n), O = Ia(i), [I = p ? [] : void 0, F] = ka(o, s, O), R = Rl({ id: e, __demoMode: g }), _ = ae({ static: !1, hold: !1 }),
|
|
6501
|
+
let C = ke(n), O = Ia(i), [I = p ? [] : void 0, F] = ka(o, s, O), R = Rl({ id: e, __demoMode: g }), _ = ae({ static: !1, hold: !1 }), N = ae(/* @__PURE__ */ new Map()), T = $a(u), j = ce((k) => Te(S.mode, { [mt.Multi]: () => I.some((ne) => T(ne, k)), [mt.Single]: () => T(I, k) }), [I]), S = Ie({ value: I, disabled: v, invalid: c, mode: p ? mt.Multi : mt.Single, orientation: x, onChange: F, compare: T, isSelected: j, optionsPropsRef: _, listRef: N });
|
|
6502
6502
|
ve(() => {
|
|
6503
6503
|
R.state.dataRef.current = S;
|
|
6504
6504
|
}, [S]);
|
|
6505
|
-
let y = se(R, (k) => k.listboxState), E =
|
|
6505
|
+
let y = se(R, (k) => k.listboxState), E = jt.get(null), L = se(E, ce((k) => E.selectors.isTop(k, e), [E, e])), [B, A] = se(R, (k) => [k.buttonElement, k.optionsElement]);
|
|
6506
6506
|
yo(L, [B, A], (k, ne) => {
|
|
6507
|
-
R.send({ type:
|
|
6507
|
+
R.send({ type: jl.CloseListbox }), sr(ne, lr.Loose) || (k.preventDefault(), B?.focus());
|
|
6508
6508
|
});
|
|
6509
6509
|
let W = Ie({ open: y === Le.Open, disabled: v, invalid: c, value: I }), [G, P] = or({ inherit: !0 }), U = { ref: C }, oe = ce(() => {
|
|
6510
6510
|
if (O !== void 0) return F?.(O);
|
|
@@ -6515,9 +6515,9 @@ let Ah = "button";
|
|
|
6515
6515
|
function Ph(t, n) {
|
|
6516
6516
|
let e = Ae(), r = po(), o = gn("Listbox.Button"), i = Bo("Listbox.Button"), { id: a = r || `headlessui-listbox-button-${e}`, disabled: l = o.disabled || !1, autoFocus: s = !1, ...u } = t, c = ke(n, Po(), i.actions.setButtonElement), v = Cl(), [m, p, g] = se(i, (A) => [A.listboxState, A.buttonElement, A.optionsElement]), b = m === Le.Open;
|
|
6517
6517
|
wo(b, { trigger: p, action: ce((A) => {
|
|
6518
|
-
if (p != null && p.contains(A.target)) return
|
|
6518
|
+
if (p != null && p.contains(A.target)) return Xe.Ignore;
|
|
6519
6519
|
let W = A.target.closest('[role="option"]:not([data-disabled])');
|
|
6520
|
-
return et(W) ?
|
|
6520
|
+
return et(W) ? Xe.Select(W) : g != null && g.contains(A.target) ? Xe.Ignore : Xe.Close;
|
|
6521
6521
|
}, [p, g]), close: i.actions.closeListbox, select: i.actions.selectActiveOption });
|
|
6522
6522
|
let x = q((A) => {
|
|
6523
6523
|
switch (A.key) {
|
|
@@ -6526,31 +6526,31 @@ function Ph(t, n) {
|
|
|
6526
6526
|
break;
|
|
6527
6527
|
case te.Space:
|
|
6528
6528
|
case te.ArrowDown:
|
|
6529
|
-
A.preventDefault(), i.actions.openListbox({ focus: o.value ?
|
|
6529
|
+
A.preventDefault(), i.actions.openListbox({ focus: o.value ? X.Nothing : X.First });
|
|
6530
6530
|
break;
|
|
6531
6531
|
case te.ArrowUp:
|
|
6532
|
-
A.preventDefault(), i.actions.openListbox({ focus: o.value ?
|
|
6532
|
+
A.preventDefault(), i.actions.openListbox({ focus: o.value ? X.Nothing : X.Last });
|
|
6533
6533
|
break;
|
|
6534
6534
|
}
|
|
6535
6535
|
}), C = q((A) => {
|
|
6536
6536
|
A.key === te.Space && A.preventDefault();
|
|
6537
6537
|
}), O = go((A) => {
|
|
6538
6538
|
var W;
|
|
6539
|
-
i.state.listboxState === Le.Open ? (ze(() => i.actions.closeListbox()), (W = i.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus:
|
|
6540
|
-
}), I = q((A) => A.preventDefault()), F = fn([a]), R = za(), { isFocusVisible: _, focusProps:
|
|
6539
|
+
i.state.listboxState === Le.Open ? (ze(() => i.actions.closeListbox()), (W = i.state.buttonElement) == null || W.focus({ preventScroll: !0 })) : (A.preventDefault(), i.actions.openListbox({ focus: X.Nothing }));
|
|
6540
|
+
}), I = q((A) => A.preventDefault()), F = fn([a]), R = za(), { isFocusVisible: _, focusProps: N } = Xn({ autoFocus: s }), { isHovered: T, hoverProps: j } = qn({ isDisabled: l }), { pressed: S, pressProps: y } = uo({ disabled: l }), E = Ie({ open: m === Le.Open, active: S || m === Le.Open, disabled: l, invalid: o.invalid, value: o.value, hover: T, focus: _, autofocus: s }), L = se(i, (A) => A.listboxState === Le.Open), B = Nt(v(), { ref: c, id: a, type: xo(t, p), "aria-haspopup": "listbox", "aria-controls": g?.id, "aria-expanded": L, "aria-labelledby": F, "aria-describedby": R, disabled: l || void 0, autoFocus: s, onKeyDown: x, onKeyUp: C, onKeyPress: I }, O, N, j, y);
|
|
6541
6541
|
return Ee()({ ourProps: B, theirProps: u, slot: E, defaultTag: Ah, name: "Listbox.Button" });
|
|
6542
6542
|
}
|
|
6543
|
-
let Fl = me(!1),
|
|
6543
|
+
let Fl = me(!1), Nh = "div", jh = Tt.RenderStrategy | Tt.Static;
|
|
6544
6544
|
function Lh(t, n) {
|
|
6545
6545
|
let e = Ae(), { id: r = `headlessui-listbox-options-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Ao(o), [c, v] = be(null);
|
|
6546
6546
|
u && (i = !0);
|
|
6547
6547
|
let m = gn("Listbox.Options"), p = Bo("Listbox.Options"), [g, b, x, C] = se(p, ($) => [$.listboxState, $.buttonElement, $.optionsElement, $.__demoMode]), O = kt(b), I = kt(x), F = Ro(), [R, _] = Oo(l, c, F !== null ? (F & Ge.Open) === Ge.Open : g === Le.Open);
|
|
6548
6548
|
bo(R, b, p.actions.closeListbox);
|
|
6549
|
-
let
|
|
6550
|
-
Eo(
|
|
6549
|
+
let N = C ? !1 : a && g === Le.Open;
|
|
6550
|
+
Eo(N, I);
|
|
6551
6551
|
let T = C ? !1 : a && g === Le.Open;
|
|
6552
6552
|
vo(T, { allowed: ce(() => [b, x], [b, x]) });
|
|
6553
|
-
let
|
|
6553
|
+
let j = se(p, p.selectors.didButtonMove) ? !1 : R, S = se(p, p.selectors.hasFrozenValue) && !t.static, y = Gn(S, m.value), E = ce(($) => m.compare(y, $), [m.compare, y]), L = se(p, ($) => {
|
|
6554
6554
|
var ee;
|
|
6555
6555
|
if (u == null || !((ee = u?.to) != null && ee.includes("selection"))) return null;
|
|
6556
6556
|
let ie = $.options.findIndex((De) => E(De.dataRef.current.value));
|
|
@@ -6560,10 +6560,10 @@ function Lh(t, n) {
|
|
|
6560
6560
|
if (L === null) return { ...u, inner: void 0 };
|
|
6561
6561
|
let $ = Array.from(m.listRef.current.values());
|
|
6562
6562
|
return { ...u, inner: { listRef: { current: $ }, index: L } };
|
|
6563
|
-
})(), [A, W] =
|
|
6563
|
+
})(), [A, W] = jo(B), G = No(), P = ke(n, u ? A : null, p.actions.setOptionsElement, v), U = bt();
|
|
6564
6564
|
we(() => {
|
|
6565
6565
|
let $ = x;
|
|
6566
|
-
$ && g === Le.Open && (
|
|
6566
|
+
$ && g === Le.Open && (Jn($) || $ == null || $.focus({ preventScroll: !0 }));
|
|
6567
6567
|
}, [g, x]);
|
|
6568
6568
|
let oe = q(($) => {
|
|
6569
6569
|
var ee;
|
|
@@ -6574,15 +6574,15 @@ function Lh(t, n) {
|
|
|
6574
6574
|
$.preventDefault(), $.stopPropagation(), p.actions.selectActiveOption();
|
|
6575
6575
|
break;
|
|
6576
6576
|
case Te(m.orientation, { vertical: te.ArrowDown, horizontal: te.ArrowRight }):
|
|
6577
|
-
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus:
|
|
6577
|
+
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Next });
|
|
6578
6578
|
case Te(m.orientation, { vertical: te.ArrowUp, horizontal: te.ArrowLeft }):
|
|
6579
|
-
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus:
|
|
6579
|
+
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Previous });
|
|
6580
6580
|
case te.Home:
|
|
6581
6581
|
case te.PageUp:
|
|
6582
|
-
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus:
|
|
6582
|
+
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.First });
|
|
6583
6583
|
case te.End:
|
|
6584
6584
|
case te.PageDown:
|
|
6585
|
-
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus:
|
|
6585
|
+
return $.preventDefault(), $.stopPropagation(), p.actions.goToOption({ focus: X.Last });
|
|
6586
6586
|
case te.Escape:
|
|
6587
6587
|
$.preventDefault(), $.stopPropagation(), ze(() => p.actions.closeListbox()), (ee = p.state.buttonElement) == null || ee.focus({ preventScroll: !0 });
|
|
6588
6588
|
return;
|
|
@@ -6596,12 +6596,12 @@ function Lh(t, n) {
|
|
|
6596
6596
|
}), D = se(p, ($) => {
|
|
6597
6597
|
var ee;
|
|
6598
6598
|
return (ee = $.buttonElement) == null ? void 0 : ee.id;
|
|
6599
|
-
}), k = Ie({ open: g === Le.Open }), ne =
|
|
6600
|
-
return V.createElement(Ho, { enabled: i ? t.static || R : !1, ownerDocument: O }, V.createElement(gr.Provider, { value: fe },
|
|
6599
|
+
}), k = Ie({ open: g === Le.Open }), ne = Nt(u ? G() : {}, { id: r, ref: P, "aria-activedescendant": se(p, p.selectors.activeDescendantId), "aria-multiselectable": m.mode === mt.Multi ? !0 : void 0, "aria-labelledby": D, "aria-orientation": m.orientation, onKeyDown: oe, role: "listbox", tabIndex: g === Le.Open ? 0 : void 0, style: { ...s.style, ...W, "--button-width": Fn(R, b, !0).width }, ...Co(_) }), J = Ee(), fe = Ce(() => m.mode === mt.Multi ? m : { ...m, isSelected: E }, [m, E]);
|
|
6600
|
+
return V.createElement(Ho, { enabled: i ? t.static || R : !1, ownerDocument: O }, V.createElement(gr.Provider, { value: fe }, J({ ourProps: ne, theirProps: s, slot: k, defaultTag: Nh, features: jh, visible: j, name: "Listbox.Options" })));
|
|
6601
6601
|
}
|
|
6602
6602
|
let _h = "div";
|
|
6603
6603
|
function Rh(t, n) {
|
|
6604
|
-
let e = Ae(), { id: r = `headlessui-listbox-option-${e}`, disabled: o = !1, value: i, ...a } = t, l = ye(Fl) === !0, s = gn("Listbox.Option"), u = Bo("Listbox.Option"), c = se(u, (S) => u.selectors.isActive(S, r)), v = s.isSelected(i), m = ae(null), p =
|
|
6604
|
+
let e = Ae(), { id: r = `headlessui-listbox-option-${e}`, disabled: o = !1, value: i, ...a } = t, l = ye(Fl) === !0, s = gn("Listbox.Option"), u = Bo("Listbox.Option"), c = se(u, (S) => u.selectors.isActive(S, r)), v = s.isSelected(i), m = ae(null), p = Nl(m), g = yt({ disabled: o, value: i, domRef: m, get textValue() {
|
|
6605
6605
|
return p();
|
|
6606
6606
|
} }), b = ke(n, m, (S) => {
|
|
6607
6607
|
S ? s.listRef.current.set(r, S) : s.listRef.current.delete(r);
|
|
@@ -6618,14 +6618,14 @@ function Rh(t, n) {
|
|
|
6618
6618
|
if (o) return S.preventDefault();
|
|
6619
6619
|
u.actions.selectOption(i);
|
|
6620
6620
|
}), O = q(() => {
|
|
6621
|
-
if (o) return u.actions.goToOption({ focus:
|
|
6622
|
-
u.actions.goToOption({ focus:
|
|
6621
|
+
if (o) return u.actions.goToOption({ focus: X.Nothing });
|
|
6622
|
+
u.actions.goToOption({ focus: X.Specific, id: r });
|
|
6623
6623
|
}), I = So(), F = q((S) => I.update(S)), R = q((S) => {
|
|
6624
|
-
I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer || u.actions.goToOption({ focus:
|
|
6624
|
+
I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer || u.actions.goToOption({ focus: X.Specific, id: r }, An.Pointer));
|
|
6625
6625
|
}), _ = q((S) => {
|
|
6626
|
-
I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer && u.actions.goToOption({ focus:
|
|
6627
|
-
}),
|
|
6628
|
-
return !v && l ? null :
|
|
6626
|
+
I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer && u.actions.goToOption({ focus: X.Nothing }));
|
|
6627
|
+
}), N = Ie({ active: c, focus: c, selected: v, disabled: o, selectedOption: v && l }), T = l ? {} : { id: r, ref: b, role: "option", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-selected": v, disabled: void 0, onClick: C, onFocus: O, onPointerEnter: F, onMouseEnter: F, onPointerMove: R, onMouseMove: R, onPointerLeave: _, onMouseLeave: _ }, j = Ee();
|
|
6628
|
+
return !v && l ? null : j({ ourProps: T, theirProps: a, slot: N, defaultTag: _h, name: "Listbox.Option" });
|
|
6629
6629
|
}
|
|
6630
6630
|
let Fh = ut;
|
|
6631
6631
|
function Hh(t, n) {
|
|
@@ -6634,7 +6634,7 @@ function Hh(t, n) {
|
|
|
6634
6634
|
}
|
|
6635
6635
|
let zh = Se(Ih), Bh = Se(Ph), Vh = Ba, $h = Se(Lh), Wh = Se(Rh), Uh = Se(Hh);
|
|
6636
6636
|
Object.assign(zh, { Button: Bh, Label: Vh, Options: $h, Option: Wh, SelectedOption: Uh });
|
|
6637
|
-
var Yh = Object.defineProperty, Gh = (t, n, e) => n in t ? Yh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ra = (t, n, e) => (Gh(t, typeof n != "symbol" ? n + "" : n, e), e),
|
|
6637
|
+
var Yh = Object.defineProperty, Gh = (t, n, e) => n in t ? Yh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ra = (t, n, e) => (Gh(t, typeof n != "symbol" ? n + "" : n, e), e), Ne = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(Ne || {}), Kn = ((t) => (t[t.Pointer = 0] = "Pointer", t[t.Other = 1] = "Other", t))(Kn || {}), ge = ((t) => (t[t.OpenMenu = 0] = "OpenMenu", t[t.CloseMenu = 1] = "CloseMenu", t[t.GoToItem = 2] = "GoToItem", t[t.Search = 3] = "Search", t[t.ClearSearch = 4] = "ClearSearch", t[t.RegisterItems = 5] = "RegisterItems", t[t.UnregisterItems = 6] = "UnregisterItems", t[t.SetButtonElement = 7] = "SetButtonElement", t[t.SetItemsElement = 8] = "SetItemsElement", t[t.SortItems = 9] = "SortItems", t[t.MarkButtonAsMoved = 10] = "MarkButtonAsMoved", t))(ge || {});
|
|
6638
6638
|
function oa(t, n = (e) => e) {
|
|
6639
6639
|
let e = t.activeItemIndex !== null ? t.items[t.activeItemIndex] : null, r = cr(n(t.items.slice()), (i) => i.dataRef.current.domRef.current), o = e ? r.indexOf(e) : null;
|
|
6640
6640
|
return o === -1 && (o = null), { items: r, activeItemIndex: o };
|
|
@@ -6642,16 +6642,16 @@ function oa(t, n = (e) => e) {
|
|
|
6642
6642
|
let Kh = { 1(t) {
|
|
6643
6643
|
if (t.menuState === 1) return t;
|
|
6644
6644
|
let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
|
|
6645
|
-
return { ...t, activeItemIndex: null, pendingFocus: { focus:
|
|
6645
|
+
return { ...t, activeItemIndex: null, pendingFocus: { focus: X.Nothing }, menuState: 1, buttonPositionState: n };
|
|
6646
6646
|
}, 0(t, n) {
|
|
6647
6647
|
return t.menuState === 0 ? t : { ...t, __demoMode: !1, pendingFocus: n.focus, menuState: 0, buttonPositionState: Ue.Idle };
|
|
6648
6648
|
}, 2: (t, n) => {
|
|
6649
6649
|
var e, r, o, i, a;
|
|
6650
6650
|
if (t.menuState === 1) return t;
|
|
6651
6651
|
let l = { ...t, searchQuery: "", activationTrigger: (e = n.trigger) != null ? e : 1, __demoMode: !1 };
|
|
6652
|
-
if (n.focus ===
|
|
6653
|
-
if (n.focus ===
|
|
6654
|
-
if (n.focus ===
|
|
6652
|
+
if (n.focus === X.Nothing) return { ...l, activeItemIndex: null };
|
|
6653
|
+
if (n.focus === X.Specific) return { ...l, activeItemIndex: t.items.findIndex((c) => c.id === n.id) };
|
|
6654
|
+
if (n.focus === X.Previous) {
|
|
6655
6655
|
let c = t.activeItemIndex;
|
|
6656
6656
|
if (c !== null) {
|
|
6657
6657
|
let v = t.items[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
|
|
@@ -6660,7 +6660,7 @@ let Kh = { 1(t) {
|
|
|
6660
6660
|
if (((r = v.current) == null ? void 0 : r.previousElementSibling) === p.current || ((o = p.current) == null ? void 0 : o.previousElementSibling) === null) return { ...l, activeItemIndex: m };
|
|
6661
6661
|
}
|
|
6662
6662
|
}
|
|
6663
|
-
} else if (n.focus ===
|
|
6663
|
+
} else if (n.focus === X.Next) {
|
|
6664
6664
|
let c = t.activeItemIndex;
|
|
6665
6665
|
if (c !== null) {
|
|
6666
6666
|
let v = t.items[c].dataRef.current.domRef, m = rt(n, { resolveItems: () => t.items, resolveActiveIndex: () => t.activeItemIndex, resolveId: (p) => p.id, resolveDisabled: (p) => p.dataRef.current.disabled });
|
|
@@ -6682,7 +6682,7 @@ let Kh = { 1(t) {
|
|
|
6682
6682
|
return t.searchQuery === "" ? t : { ...t, searchQuery: "", searchActiveItemIndex: null };
|
|
6683
6683
|
}, 5: (t, n) => {
|
|
6684
6684
|
let e = t.items.concat(n.items.map((o) => o)), r = t.activeItemIndex;
|
|
6685
|
-
return t.pendingFocus.focus !==
|
|
6685
|
+
return t.pendingFocus.focus !== X.Nothing && (r = rt(t.pendingFocus, { resolveItems: () => e, resolveActiveIndex: () => t.activeItemIndex, resolveId: (o) => o.id, resolveDisabled: (o) => o.dataRef.current.disabled })), { ...t, items: e, activeItemIndex: r, pendingFocus: { focus: X.Nothing }, pendingShouldSort: !0 };
|
|
6686
6686
|
}, 6: (t, n) => {
|
|
6687
6687
|
let e = t.items, r = [], o = new Set(n.items);
|
|
6688
6688
|
for (let [i, a] of e.entries()) if (o.has(a.id) && (r.push(i), o.delete(a.id), o.size === 0)) break;
|
|
@@ -6696,12 +6696,12 @@ let Kh = { 1(t) {
|
|
|
6696
6696
|
} };
|
|
6697
6697
|
class Vo extends ir {
|
|
6698
6698
|
constructor(n) {
|
|
6699
|
-
super(n), ra(this, "actions", { registerItem:
|
|
6699
|
+
super(n), ra(this, "actions", { registerItem: Jt(() => {
|
|
6700
6700
|
let e = [], r = /* @__PURE__ */ new Set();
|
|
6701
6701
|
return [(o, i) => {
|
|
6702
6702
|
r.has(i) || (r.add(i), e.push({ id: o, dataRef: i }));
|
|
6703
6703
|
}, () => (r.clear(), this.send({ type: 5, items: e.splice(0) }))];
|
|
6704
|
-
}), unregisterItem:
|
|
6704
|
+
}), unregisterItem: Jt(() => {
|
|
6705
6705
|
let e = [];
|
|
6706
6706
|
return [(r) => e.push(r), () => this.send({ type: 6, items: e.splice(0) })];
|
|
6707
6707
|
}) }), ra(this, "selectors", { activeDescendantId(e) {
|
|
@@ -6722,7 +6722,7 @@ class Vo extends ir {
|
|
|
6722
6722
|
});
|
|
6723
6723
|
});
|
|
6724
6724
|
{
|
|
6725
|
-
let e = this.state.id, r =
|
|
6725
|
+
let e = this.state.id, r = jt.get(null);
|
|
6726
6726
|
this.disposables.add(r.on(ar.Push, (o) => {
|
|
6727
6727
|
!r.selectors.isTop(o, e) && this.state.menuState === 0 && this.send({ type: 1 });
|
|
6728
6728
|
})), this.on(0, () => r.actions.push(e)), this.on(1, () => r.actions.pop(e));
|
|
@@ -6736,7 +6736,7 @@ class Vo extends ir {
|
|
|
6736
6736
|
});
|
|
6737
6737
|
}
|
|
6738
6738
|
static new({ id: n, __demoMode: e = !1 }) {
|
|
6739
|
-
return new Vo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus:
|
|
6739
|
+
return new Vo({ id: n, __demoMode: e, menuState: e ? 0 : 1, buttonElement: null, itemsElement: null, items: [], searchQuery: "", activeItemIndex: null, activationTrigger: 1, pendingShouldSort: !1, pendingFocus: { focus: X.Nothing }, buttonPositionState: Ue.Idle });
|
|
6740
6740
|
}
|
|
6741
6741
|
reduce(n, e) {
|
|
6742
6742
|
return Te(e.type, Kh, n, e);
|
|
@@ -6757,60 +6757,60 @@ function zl({ id: t, __demoMode: n = !1 }) {
|
|
|
6757
6757
|
}
|
|
6758
6758
|
let Zh = ut;
|
|
6759
6759
|
function Qh(t, n) {
|
|
6760
|
-
let e = Ae(), { __demoMode: r = !1, ...o } = t, i = zl({ id: e, __demoMode: r }), [a, l, s] = se(i, (x) => [x.menuState, x.itemsElement, x.buttonElement]), u = ke(n), c =
|
|
6760
|
+
let e = Ae(), { __demoMode: r = !1, ...o } = t, i = zl({ id: e, __demoMode: r }), [a, l, s] = se(i, (x) => [x.menuState, x.itemsElement, x.buttonElement]), u = ke(n), c = jt.get(null), v = se(c, ce((x) => c.selectors.isTop(x, e), [c, e]));
|
|
6761
6761
|
yo(v, [s, l], (x, C) => {
|
|
6762
6762
|
var O;
|
|
6763
6763
|
i.send({ type: ge.CloseMenu }), sr(C, lr.Loose) || (x.preventDefault(), (O = i.state.buttonElement) == null || O.focus());
|
|
6764
6764
|
});
|
|
6765
6765
|
let m = q(() => {
|
|
6766
6766
|
i.send({ type: ge.CloseMenu });
|
|
6767
|
-
}), p = Ie({ open: a ===
|
|
6768
|
-
return V.createElement(Lo, null, V.createElement(Hl.Provider, { value: i }, V.createElement(Fo, { value: Te(a, { [
|
|
6767
|
+
}), p = Ie({ open: a === Ne.Open, close: m }), g = { ref: u }, b = Ee();
|
|
6768
|
+
return V.createElement(Lo, null, V.createElement(Hl.Provider, { value: i }, V.createElement(Fo, { value: Te(a, { [Ne.Open]: Ge.Open, [Ne.Closed]: Ge.Closed }) }, b({ ourProps: g, theirProps: o, slot: p, defaultTag: Zh, name: "Menu" }))));
|
|
6769
6769
|
}
|
|
6770
6770
|
let qh = "button";
|
|
6771
|
-
function
|
|
6771
|
+
function Xh(t, n) {
|
|
6772
6772
|
let e = $o("Menu.Button"), r = Ae(), { id: o = `headlessui-menu-button-${r}`, disabled: i = !1, autoFocus: a = !1, ...l } = t, s = ae(null), u = Cl(), c = ke(n, s, Po(), q((S) => e.send({ type: ge.SetButtonElement, element: S }))), v = q((S) => {
|
|
6773
6773
|
switch (S.key) {
|
|
6774
6774
|
case te.Space:
|
|
6775
6775
|
case te.Enter:
|
|
6776
6776
|
case te.ArrowDown:
|
|
6777
|
-
S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus:
|
|
6777
|
+
S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: X.First } });
|
|
6778
6778
|
break;
|
|
6779
6779
|
case te.ArrowUp:
|
|
6780
|
-
S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus:
|
|
6780
|
+
S.preventDefault(), S.stopPropagation(), e.send({ type: ge.OpenMenu, focus: { focus: X.Last } });
|
|
6781
6781
|
break;
|
|
6782
6782
|
}
|
|
6783
6783
|
}), m = q((S) => {
|
|
6784
6784
|
S.key === te.Space && S.preventDefault();
|
|
6785
|
-
}), [p, g, b] = se(e, (S) => [S.menuState, S.buttonElement, S.itemsElement]), x = p ===
|
|
6785
|
+
}), [p, g, b] = se(e, (S) => [S.menuState, S.buttonElement, S.itemsElement]), x = p === Ne.Open;
|
|
6786
6786
|
wo(x, { trigger: g, action: ce((S) => {
|
|
6787
|
-
if (g != null && g.contains(S.target)) return
|
|
6787
|
+
if (g != null && g.contains(S.target)) return Xe.Ignore;
|
|
6788
6788
|
let y = S.target.closest('[role="menuitem"]:not([data-disabled])');
|
|
6789
|
-
return et(y) ?
|
|
6789
|
+
return et(y) ? Xe.Select(y) : b != null && b.contains(S.target) ? Xe.Ignore : Xe.Close;
|
|
6790
6790
|
}, [g, b]), close: ce(() => e.send({ type: ge.CloseMenu }), []), select: ce((S) => S.click(), []) });
|
|
6791
6791
|
let C = go((S) => {
|
|
6792
6792
|
var y;
|
|
6793
|
-
i || (p ===
|
|
6794
|
-
}), { isFocusVisible: O, focusProps: I } =
|
|
6795
|
-
return Ee()({ ourProps:
|
|
6793
|
+
i || (p === Ne.Open ? (ze(() => e.send({ type: ge.CloseMenu })), (y = s.current) == null || y.focus({ preventScroll: !0 })) : (S.preventDefault(), e.send({ type: ge.OpenMenu, focus: { focus: X.Nothing }, trigger: Kn.Pointer })));
|
|
6794
|
+
}), { isFocusVisible: O, focusProps: I } = Xn({ autoFocus: a }), { isHovered: F, hoverProps: R } = qn({ isDisabled: i }), { pressed: _, pressProps: N } = uo({ disabled: i }), T = Ie({ open: p === Ne.Open, active: _ || p === Ne.Open, disabled: i, hover: F, focus: O, autofocus: a }), j = Nt(u(), { ref: c, id: o, type: xo(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === Ne.Open, disabled: i || void 0, autoFocus: a, onKeyDown: v, onKeyUp: m }, C, I, R, N);
|
|
6795
|
+
return Ee()({ ourProps: j, theirProps: l, slot: T, defaultTag: qh, name: "Menu.Button" });
|
|
6796
6796
|
}
|
|
6797
|
-
let
|
|
6797
|
+
let Jh = "div", eg = Tt.RenderStrategy | Tt.Static;
|
|
6798
6798
|
function tg(t, n) {
|
|
6799
|
-
let e = Ae(), { id: r = `headlessui-menu-items-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Ao(o), c = $o("Menu.Items"), [v, m] =
|
|
6799
|
+
let e = Ae(), { id: r = `headlessui-menu-items-${e}`, anchor: o, portal: i = !1, modal: a = !0, transition: l = !1, ...s } = t, u = Ao(o), c = $o("Menu.Items"), [v, m] = jo(u), p = No(), [g, b] = be(null), x = ke(n, u ? v : null, q((P) => c.send({ type: ge.SetItemsElement, element: P })), b), [C, O] = se(c, (P) => [P.menuState, P.buttonElement]), I = kt(O), F = kt(g);
|
|
6800
6800
|
u && (i = !0);
|
|
6801
|
-
let R = Ro(), [_,
|
|
6801
|
+
let R = Ro(), [_, N] = Oo(l, g, R !== null ? (R & Ge.Open) === Ge.Open : C === Ne.Open);
|
|
6802
6802
|
bo(_, O, () => {
|
|
6803
6803
|
c.send({ type: ge.CloseMenu });
|
|
6804
6804
|
});
|
|
6805
|
-
let T = se(c, (P) => P.__demoMode),
|
|
6806
|
-
Eo(
|
|
6807
|
-
let S = T ? !1 : a && C ===
|
|
6805
|
+
let T = se(c, (P) => P.__demoMode), j = T ? !1 : a && C === Ne.Open;
|
|
6806
|
+
Eo(j, F);
|
|
6807
|
+
let S = T ? !1 : a && C === Ne.Open;
|
|
6808
6808
|
vo(S, { allowed: ce(() => [O, g], [O, g]) });
|
|
6809
6809
|
let y = se(c, c.selectors.didButtonMove) ? !1 : _;
|
|
6810
6810
|
we(() => {
|
|
6811
6811
|
let P = g;
|
|
6812
|
-
P && C ===
|
|
6813
|
-
}, [C, g]), el(C ===
|
|
6812
|
+
P && C === Ne.Open && (Jn(P) || P.focus({ preventScroll: !0 }));
|
|
6813
|
+
}, [C, g]), el(C === Ne.Open, { container: g, accept(P) {
|
|
6814
6814
|
return P.getAttribute("role") === "menuitem" ? NodeFilter.FILTER_REJECT : P.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
6815
6815
|
}, walk(P) {
|
|
6816
6816
|
P.setAttribute("role", "none");
|
|
@@ -6828,15 +6828,15 @@ function tg(t, n) {
|
|
|
6828
6828
|
c.send({ type: ge.CloseMenu }), Qa(c.state.buttonElement);
|
|
6829
6829
|
break;
|
|
6830
6830
|
case te.ArrowDown:
|
|
6831
|
-
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus:
|
|
6831
|
+
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Next });
|
|
6832
6832
|
case te.ArrowUp:
|
|
6833
|
-
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus:
|
|
6833
|
+
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Previous });
|
|
6834
6834
|
case te.Home:
|
|
6835
6835
|
case te.PageUp:
|
|
6836
|
-
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus:
|
|
6836
|
+
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.First });
|
|
6837
6837
|
case te.End:
|
|
6838
6838
|
case te.PageDown:
|
|
6839
|
-
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus:
|
|
6839
|
+
return P.preventDefault(), P.stopPropagation(), c.send({ type: ge.GoToItem, focus: X.Last });
|
|
6840
6840
|
case te.Escape:
|
|
6841
6841
|
P.preventDefault(), P.stopPropagation(), ze(() => c.send({ type: ge.CloseMenu })), (D = c.state.buttonElement) == null || D.focus({ preventScroll: !0 });
|
|
6842
6842
|
break;
|
|
@@ -6849,11 +6849,11 @@ function tg(t, n) {
|
|
|
6849
6849
|
}
|
|
6850
6850
|
}), B = q((P) => {
|
|
6851
6851
|
P.key === te.Space && P.preventDefault();
|
|
6852
|
-
}), A = Ie({ open: C ===
|
|
6852
|
+
}), A = Ie({ open: C === Ne.Open }), W = Nt(u ? p() : {}, { "aria-activedescendant": se(c, c.selectors.activeDescendantId), "aria-labelledby": se(c, (P) => {
|
|
6853
6853
|
var U;
|
|
6854
6854
|
return (U = P.buttonElement) == null ? void 0 : U.id;
|
|
6855
|
-
}), id: r, onKeyDown: L, onKeyUp: B, role: "menu", tabIndex: C ===
|
|
6856
|
-
return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag:
|
|
6855
|
+
}), id: r, onKeyDown: L, onKeyUp: B, role: "menu", tabIndex: C === Ne.Open ? 0 : void 0, ref: x, style: { ...s.style, ...m, "--button-width": Fn(_, O, !0).width }, ...Co(N) }), G = Ee();
|
|
6856
|
+
return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag: Jh, features: eg, visible: y, name: "Menu.Items" }));
|
|
6857
6857
|
}
|
|
6858
6858
|
let ng = ut;
|
|
6859
6859
|
function rg(t, n) {
|
|
@@ -6864,7 +6864,7 @@ function rg(t, n) {
|
|
|
6864
6864
|
(E = (y = s.current) == null ? void 0 : y.scrollIntoView) == null || E.call(y, { block: "nearest" });
|
|
6865
6865
|
});
|
|
6866
6866
|
}, [c, s]);
|
|
6867
|
-
let v =
|
|
6867
|
+
let v = Nl(s), m = ae({ disabled: o, domRef: s, get textValue() {
|
|
6868
6868
|
return v();
|
|
6869
6869
|
} });
|
|
6870
6870
|
ve(() => {
|
|
@@ -6876,14 +6876,14 @@ function rg(t, n) {
|
|
|
6876
6876
|
if (o) return y.preventDefault();
|
|
6877
6877
|
a.send({ type: ge.CloseMenu }), Qa(a.state.buttonElement);
|
|
6878
6878
|
}), b = q(() => {
|
|
6879
|
-
if (o) return a.send({ type: ge.GoToItem, focus:
|
|
6880
|
-
a.send({ type: ge.GoToItem, focus:
|
|
6879
|
+
if (o) return a.send({ type: ge.GoToItem, focus: X.Nothing });
|
|
6880
|
+
a.send({ type: ge.GoToItem, focus: X.Specific, id: r });
|
|
6881
6881
|
}), x = So(), C = q((y) => x.update(y)), O = q((y) => {
|
|
6882
|
-
x.wasMoved(y) && (o || l || a.send({ type: ge.GoToItem, focus:
|
|
6882
|
+
x.wasMoved(y) && (o || l || a.send({ type: ge.GoToItem, focus: X.Specific, id: r, trigger: Kn.Pointer }));
|
|
6883
6883
|
}), I = q((y) => {
|
|
6884
|
-
x.wasMoved(y) && (o || l && a.state.activationTrigger === Kn.Pointer && a.send({ type: ge.GoToItem, focus:
|
|
6885
|
-
}), [F, R] = or(), [_,
|
|
6886
|
-
return V.createElement(R, null, V.createElement(
|
|
6884
|
+
x.wasMoved(y) && (o || l && a.state.activationTrigger === Kn.Pointer && a.send({ type: ge.GoToItem, focus: X.Nothing }));
|
|
6885
|
+
}), [F, R] = or(), [_, N] = Xd(), T = Ie({ active: l, focus: l, disabled: o, close: p }), j = { id: r, ref: u, role: "menuitem", tabIndex: o === !0 ? void 0 : -1, "aria-disabled": o === !0 ? !0 : void 0, "aria-labelledby": F, "aria-describedby": _, disabled: void 0, onClick: g, onFocus: b, onPointerEnter: C, onMouseEnter: C, onPointerMove: O, onMouseMove: O, onPointerLeave: I, onMouseLeave: I }, S = Ee();
|
|
6886
|
+
return V.createElement(R, null, V.createElement(N, null, S({ ourProps: j, theirProps: i, slot: T, defaultTag: ng, name: "Menu.Item" })));
|
|
6887
6887
|
}
|
|
6888
6888
|
let og = "div";
|
|
6889
6889
|
function ig(t, n) {
|
|
@@ -6902,9 +6902,9 @@ function cg(t, n) {
|
|
|
6902
6902
|
let e = t, r = { ref: n, role: "separator" };
|
|
6903
6903
|
return Ee()({ ourProps: r, theirProps: e, slot: {}, defaultTag: sg, name: "Menu.Separator" });
|
|
6904
6904
|
}
|
|
6905
|
-
let ug = Se(Qh), dg = Se(
|
|
6905
|
+
let ug = Se(Qh), dg = Se(Xh), fg = Se(tg), pg = Se(rg), mg = Se(ig), hg = Se(lg), gg = Se(cg);
|
|
6906
6906
|
Object.assign(ug, { Button: dg, Items: fg, Item: pg, Section: mg, Heading: hg, Separator: gg });
|
|
6907
|
-
function
|
|
6907
|
+
function Jr(t) {
|
|
6908
6908
|
const n = d.useRef(void 0), e = d.useCallback((r) => {
|
|
6909
6909
|
const o = t.map((i) => {
|
|
6910
6910
|
if (i != null) {
|
|
@@ -7400,9 +7400,9 @@ var Hr = function() {
|
|
|
7400
7400
|
});
|
|
7401
7401
|
} else F || (O += ".");
|
|
7402
7402
|
}
|
|
7403
|
-
c = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), b.forEach(function(
|
|
7404
|
-
var T =
|
|
7405
|
-
return c = T(c,
|
|
7403
|
+
c = !e || !e.noCalendar ? new Date((/* @__PURE__ */ new Date()).getFullYear(), 0, 1, 0, 0, 0, 0) : new Date((/* @__PURE__ */ new Date()).setHours(0, 0, 0, 0)), b.forEach(function(N) {
|
|
7404
|
+
var T = N.fn, j = N.val;
|
|
7405
|
+
return c = T(c, j, u) || c;
|
|
7406
7406
|
}), c = g ? c : void 0;
|
|
7407
7407
|
}
|
|
7408
7408
|
}
|
|
@@ -7474,7 +7474,7 @@ function kg(t, n) {
|
|
|
7474
7474
|
config: Pe(Pe({}, Ht), Me.defaultConfig),
|
|
7475
7475
|
l10n: cn
|
|
7476
7476
|
};
|
|
7477
|
-
e.parseDate = eo({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = m, e._positionCalendar = bn, e.changeMonth = D, e.changeYear = ee, e.clear = k, e.close = ne, e.onMouseOver = vn, e._createElement = pe, e.createDay = _, e.destroy =
|
|
7477
|
+
e.parseDate = eo({ config: e.config, l10n: e.l10n }), e._handlers = [], e.pluginElements = [], e.loadedPlugins = [], e._bind = b, e._setHoursFromDate = m, e._positionCalendar = bn, e.changeMonth = D, e.changeYear = ee, e.clear = k, e.close = ne, e.onMouseOver = vn, e._createElement = pe, e.createDay = _, e.destroy = J, e.isEnabled = ie, e.jumpToDate = O, e.updateValue = st, e.open = Yl, e.redraw = Go, e.set = Ql, e.setDate = ql, e.toggle = ts;
|
|
7478
7478
|
function r() {
|
|
7479
7479
|
e.utils = {
|
|
7480
7480
|
getDaysInMonth: function(f, h) {
|
|
@@ -7483,7 +7483,7 @@ function kg(t, n) {
|
|
|
7483
7483
|
};
|
|
7484
7484
|
}
|
|
7485
7485
|
function o() {
|
|
7486
|
-
e.element = e.input = t, e.isOpen = !1, Gl(), Yo(),
|
|
7486
|
+
e.element = e.input = t, e.isOpen = !1, Gl(), Yo(), Jl(), Xl(), r(), e.isMobile || R(), C(), (e.selectedDates.length || e.config.noCalendar) && (e.config.enableTime && m(e.config.noCalendar ? e.latestSelectedDateObj : void 0), st(!1)), l();
|
|
7487
7487
|
var f = /^((?!chrome|android).)*safari/i.test(navigator.userAgent);
|
|
7488
7488
|
!e.isMobile && f && bn(), xe("onReady");
|
|
7489
7489
|
}
|
|
@@ -7639,7 +7639,7 @@ function kg(t, n) {
|
|
|
7639
7639
|
var z = ie(h, !0), Y = pe("span", f, h.getDate().toString());
|
|
7640
7640
|
return Y.dateObj = h, Y.$i = M, Y.setAttribute("aria-label", e.formatDate(h, e.config.ariaDateFormat)), f.indexOf("hidden") === -1 && $e(h, e.now) === 0 && (e.todayDateElem = Y, Y.classList.add("today"), Y.setAttribute("aria-current", "date")), z ? (Y.tabIndex = -1, yr(h) && (Y.classList.add("selected"), e.selectedDateElem = Y, e.config.mode === "range" && (Fe(Y, "startRange", e.selectedDates[0] && $e(h, e.selectedDates[0], !0) === 0), Fe(Y, "endRange", e.selectedDates[1] && $e(h, e.selectedDates[1], !0) === 0), f === "nextMonthDay" && Y.classList.add("inRange")))) : Y.classList.add("flatpickr-disabled"), e.config.mode === "range" && ns(h) && !yr(h) && Y.classList.add("inRange"), e.weekNumbers && e.config.showMonths === 1 && f !== "prevMonthDay" && M % 7 === 6 && e.weekNumbers.insertAdjacentHTML("beforeend", "<span class='flatpickr-day'>" + e.config.getWeek(h) + "</span>"), xe("onDayCreate", Y), Y;
|
|
7641
7641
|
}
|
|
7642
|
-
function
|
|
7642
|
+
function N(f) {
|
|
7643
7643
|
f.focus(), e.config.mode === "range" && vn(f);
|
|
7644
7644
|
}
|
|
7645
7645
|
function T(f) {
|
|
@@ -7650,18 +7650,18 @@ function kg(t, n) {
|
|
|
7650
7650
|
return ue;
|
|
7651
7651
|
}
|
|
7652
7652
|
}
|
|
7653
|
-
function
|
|
7653
|
+
function j(f, h) {
|
|
7654
7654
|
for (var w = f.className.indexOf("Month") === -1 ? f.dateObj.getMonth() : e.currentMonth, M = h > 0 ? e.config.showMonths : -1, z = h > 0 ? 1 : -1, Y = w - e.currentMonth; Y != M; Y += z)
|
|
7655
7655
|
for (var le = e.daysContainer.children[Y], Q = w - e.currentMonth === Y ? f.$i + h : h < 0 ? le.children.length - 1 : 0, ue = le.children.length, Z = Q; Z >= 0 && Z < ue && Z != (h > 0 ? ue : -1); Z += z) {
|
|
7656
7656
|
var re = le.children[Z];
|
|
7657
7657
|
if (re.className.indexOf("hidden") === -1 && ie(re.dateObj) && Math.abs(f.$i - Z) >= Math.abs(h))
|
|
7658
|
-
return
|
|
7658
|
+
return N(re);
|
|
7659
7659
|
}
|
|
7660
7660
|
e.changeMonth(z), S(T(z), 0);
|
|
7661
7661
|
}
|
|
7662
7662
|
function S(f, h) {
|
|
7663
7663
|
var w = i(), M = De(w || document.body), z = f !== void 0 ? f : M ? w : e.selectedDateElem !== void 0 && De(e.selectedDateElem) ? e.selectedDateElem : e.todayDateElem !== void 0 && De(e.todayDateElem) ? e.todayDateElem : T(h > 0 ? 1 : -1);
|
|
7664
|
-
z === void 0 ? e._input.focus() : M ?
|
|
7664
|
+
z === void 0 ? e._input.focus() : M ? j(z, h) : N(z);
|
|
7665
7665
|
}
|
|
7666
7666
|
function y(f, h) {
|
|
7667
7667
|
for (var w = (new Date(f, h, 1).getDay() - e.l10n.firstDayOfWeek + 7) % 7, M = e.utils.getDaysInMonth((h - 1 + 12) % 12, f), z = e.utils.getDaysInMonth(h, f), Y = window.document.createDocumentFragment(), le = e.config.showMonths > 1, Q = le ? "prevMonthDay hidden" : "prevMonthDay", ue = le ? "nextMonthDay hidden" : "nextMonthDay", Z = M + 1 - w, re = 0; Z <= M; Z++, re++)
|
|
@@ -7799,7 +7799,7 @@ function kg(t, n) {
|
|
|
7799
7799
|
function ne() {
|
|
7800
7800
|
e.isOpen = !1, e.isMobile || (e.calendarContainer !== void 0 && e.calendarContainer.classList.remove("open"), e._input !== void 0 && e._input.classList.remove("active")), xe("onClose");
|
|
7801
7801
|
}
|
|
7802
|
-
function
|
|
7802
|
+
function J() {
|
|
7803
7803
|
e.config !== void 0 && xe("onDestroy");
|
|
7804
7804
|
for (var f = e._handlers.length; f--; )
|
|
7805
7805
|
e._handlers[f].remove();
|
|
@@ -8172,7 +8172,7 @@ function kg(t, n) {
|
|
|
8172
8172
|
var Q = e.currentYear !== z.getFullYear();
|
|
8173
8173
|
e.currentYear = z.getFullYear(), e.currentMonth = z.getMonth(), Q && (xe("onYearChange"), L()), xe("onMonthChange");
|
|
8174
8174
|
}
|
|
8175
|
-
if (wn(), E(), st(), !Y && e.config.mode !== "range" && e.config.showMonths === 1 ?
|
|
8175
|
+
if (wn(), E(), st(), !Y && e.config.mode !== "range" && e.config.showMonths === 1 ? N(M) : e.selectedDateElem !== void 0 && e.hourElement === void 0 && e.selectedDateElem && e.selectedDateElem.focus(), e.hourElement !== void 0 && e.hourElement !== void 0 && e.hourElement.focus(), e.config.closeOnSelect) {
|
|
8176
8176
|
var ue = e.config.mode === "single" && !e.config.enableTime, Z = e.config.mode === "range" && e.selectedDates.length === 2 && !e.config.enableTime;
|
|
8177
8177
|
(ue || Z) && vr();
|
|
8178
8178
|
}
|
|
@@ -8252,12 +8252,12 @@ function kg(t, n) {
|
|
|
8252
8252
|
return h;
|
|
8253
8253
|
});
|
|
8254
8254
|
}
|
|
8255
|
-
function
|
|
8255
|
+
function Xl() {
|
|
8256
8256
|
e.selectedDates = [], e.now = e.parseDate(e.config.now) || /* @__PURE__ */ new Date();
|
|
8257
8257
|
var f = e.config.defaultDate || ((e.input.nodeName === "INPUT" || e.input.nodeName === "TEXTAREA") && e.input.placeholder && e.input.value === e.input.placeholder ? null : e.input.value);
|
|
8258
8258
|
f && Zo(f, e.config.dateFormat), e._initialDate = e.selectedDates.length > 0 ? e.selectedDates[0] : e.config.minDate && e.config.minDate.getTime() > e.now.getTime() ? e.config.minDate : e.config.maxDate && e.config.maxDate.getTime() < e.now.getTime() ? e.config.maxDate : e.now, e.currentYear = e._initialDate.getFullYear(), e.currentMonth = e._initialDate.getMonth(), e.selectedDates.length > 0 && (e.latestSelectedDateObj = e.selectedDates[0]), e.config.minTime !== void 0 && (e.config.minTime = e.parseDate(e.config.minTime, "H:i")), e.config.maxTime !== void 0 && (e.config.maxTime = e.parseDate(e.config.maxTime, "H:i")), e.minDateHasTime = !!e.config.minDate && (e.config.minDate.getHours() > 0 || e.config.minDate.getMinutes() > 0 || e.config.minDate.getSeconds() > 0), e.maxDateHasTime = !!e.config.maxDate && (e.config.maxDate.getHours() > 0 || e.config.maxDate.getMinutes() > 0 || e.config.maxDate.getSeconds() > 0);
|
|
8259
8259
|
}
|
|
8260
|
-
function
|
|
8260
|
+
function Jl() {
|
|
8261
8261
|
if (e.input = Uo(), !e.input) {
|
|
8262
8262
|
e.config.errorHandler(new Error("Invalid input element specified"));
|
|
8263
8263
|
return;
|
|
@@ -8459,11 +8459,11 @@ const Ag = `
|
|
|
8459
8459
|
jn:items-center
|
|
8460
8460
|
`, Pg = `
|
|
8461
8461
|
jn:font-bold
|
|
8462
|
-
`,
|
|
8462
|
+
`, Ng = `
|
|
8463
8463
|
jn:py-3
|
|
8464
8464
|
jn:pr-4
|
|
8465
8465
|
jn:ml-7
|
|
8466
|
-
`,
|
|
8466
|
+
`, jg = `
|
|
8467
8467
|
jn:w-[4px]
|
|
8468
8468
|
jn:self-stretch
|
|
8469
8469
|
jn:border-l-4
|
|
@@ -8563,14 +8563,14 @@ const Ag = `
|
|
|
8563
8563
|
className: `juno-message juno-message-${n} ${Ag} ${b} ${a}`,
|
|
8564
8564
|
...l,
|
|
8565
8565
|
children: [
|
|
8566
|
-
/* @__PURE__ */ H.jsx("div", { className: `juno-message-border ${
|
|
8567
|
-
/* @__PURE__ */ H.jsx(
|
|
8568
|
-
/* @__PURE__ */ H.jsxs("div", { className: `juno-message-content ${
|
|
8566
|
+
/* @__PURE__ */ H.jsx("div", { className: `juno-message-border ${jg} ${x}` }),
|
|
8567
|
+
/* @__PURE__ */ H.jsx(Nn, { icon: g, className: `${zg(n)}` }),
|
|
8568
|
+
/* @__PURE__ */ H.jsxs("div", { className: `juno-message-content ${Ng}`, children: [
|
|
8569
8569
|
t && /* @__PURE__ */ H.jsx("h1", { className: Pg, children: t }),
|
|
8570
8570
|
/* @__PURE__ */ H.jsx("div", { children: m || v })
|
|
8571
8571
|
] }),
|
|
8572
8572
|
e && /* @__PURE__ */ H.jsx("div", { className: Lg, children: /* @__PURE__ */ H.jsx(
|
|
8573
|
-
|
|
8573
|
+
Nn,
|
|
8574
8574
|
{
|
|
8575
8575
|
icon: "close",
|
|
8576
8576
|
onClick: p,
|
|
@@ -8663,9 +8663,9 @@ var ca = {
|
|
|
8663
8663
|
var e = t.indexOf(n);
|
|
8664
8664
|
e !== -1 && t.splice(e, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
8665
8665
|
}
|
|
8666
|
-
}, Jg = function(t) {
|
|
8667
|
-
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
8668
8666
|
}, Xg = function(t) {
|
|
8667
|
+
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
8668
|
+
}, Jg = function(t) {
|
|
8669
8669
|
return t?.key === "Escape" || t?.key === "Esc" || t?.keyCode === 27;
|
|
8670
8670
|
}, nn = function(t) {
|
|
8671
8671
|
return t?.key === "Tab" || t?.keyCode === 9;
|
|
@@ -8837,7 +8837,7 @@ var ca = {
|
|
|
8837
8837
|
}
|
|
8838
8838
|
y.focus({
|
|
8839
8839
|
preventScroll: !!o.preventScroll
|
|
8840
|
-
}), i.mostRecentlyFocusedNode = y,
|
|
8840
|
+
}), i.mostRecentlyFocusedNode = y, Xg(y) && y.select();
|
|
8841
8841
|
}
|
|
8842
8842
|
}, g = function(y) {
|
|
8843
8843
|
var E = u("setReturnFocus", {
|
|
@@ -8867,8 +8867,8 @@ var ca = {
|
|
|
8867
8867
|
return E === $;
|
|
8868
8868
|
});
|
|
8869
8869
|
if (k < 0 && (P.container === E || kn(E, o.tabbableOptions) && !xt(E, o.tabbableOptions) && !P.nextTabbableNode(E)) && (k = G), k >= 0) {
|
|
8870
|
-
var ne = k === i.tabbableGroups.length - 1 ? 0 : k + 1,
|
|
8871
|
-
W = ft(E) >= 0 ?
|
|
8870
|
+
var ne = k === i.tabbableGroups.length - 1 ? 0 : k + 1, J = i.tabbableGroups[ne];
|
|
8871
|
+
W = ft(E) >= 0 ? J.firstTabbableNode : J.firstDomTabbableNode;
|
|
8872
8872
|
} else nn(L) || (W = P.nextTabbableNode(E));
|
|
8873
8873
|
}
|
|
8874
8874
|
} else
|
|
@@ -8934,7 +8934,7 @@ var ca = {
|
|
|
8934
8934
|
}, I = function(y) {
|
|
8935
8935
|
(o.isKeyForward(y) || o.isKeyBackward(y)) && O(y, o.isKeyBackward(y));
|
|
8936
8936
|
}, F = function(y) {
|
|
8937
|
-
|
|
8937
|
+
Jg(y) && Zt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
|
|
8938
8938
|
}, R = function(y) {
|
|
8939
8939
|
var E = Dn(y);
|
|
8940
8940
|
s(E, y) >= 0 || Zt(o.clickOutsideDeactivates, y) || Zt(o.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
|
|
@@ -8955,7 +8955,7 @@ var ca = {
|
|
|
8955
8955
|
capture: !0,
|
|
8956
8956
|
passive: !1
|
|
8957
8957
|
}), e.addEventListener("keydown", F), a;
|
|
8958
|
-
},
|
|
8958
|
+
}, N = function() {
|
|
8959
8959
|
if (i.active)
|
|
8960
8960
|
return e.removeEventListener("focusin", C, !0), e.removeEventListener("mousedown", x, !0), e.removeEventListener("touchstart", x, !0), e.removeEventListener("click", R, !0), e.removeEventListener("keydown", I, !0), e.removeEventListener("keydown", F), a;
|
|
8961
8961
|
}, T = function(y) {
|
|
@@ -8966,9 +8966,9 @@ var ca = {
|
|
|
8966
8966
|
});
|
|
8967
8967
|
});
|
|
8968
8968
|
E && p(c());
|
|
8969
|
-
},
|
|
8970
|
-
|
|
8971
|
-
|
|
8969
|
+
}, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(T) : void 0, S = function() {
|
|
8970
|
+
j && (j.disconnect(), i.active && !i.paused && i.containers.map(function(y) {
|
|
8971
|
+
j.observe(y, {
|
|
8972
8972
|
subtree: !0,
|
|
8973
8973
|
childList: !0
|
|
8974
8974
|
});
|
|
@@ -8999,7 +8999,7 @@ var ca = {
|
|
|
8999
8999
|
onPostDeactivate: o.onPostDeactivate,
|
|
9000
9000
|
checkCanReturnFocus: o.checkCanReturnFocus
|
|
9001
9001
|
}, y);
|
|
9002
|
-
clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0,
|
|
9002
|
+
clearTimeout(i.delayInitialFocusTimer), i.delayInitialFocusTimer = void 0, N(), i.active = !1, i.paused = !1, S(), ca.deactivateTrap(r, a);
|
|
9003
9003
|
var L = l(E, "onDeactivate"), B = l(E, "onPostDeactivate"), A = l(E, "checkCanReturnFocus"), W = l(E, "returnFocus", "returnFocusOnDeactivate");
|
|
9004
9004
|
L?.();
|
|
9005
9005
|
var G = function() {
|
|
@@ -9033,7 +9033,7 @@ var ca = {
|
|
|
9033
9033
|
return this;
|
|
9034
9034
|
if (i.paused = y, y) {
|
|
9035
9035
|
var L = l(E, "onPause"), B = l(E, "onPostPause");
|
|
9036
|
-
L?.(),
|
|
9036
|
+
L?.(), N(), S(), B?.();
|
|
9037
9037
|
} else {
|
|
9038
9038
|
var A = l(E, "onUnpause"), W = l(E, "onPostUnpause");
|
|
9039
9039
|
A?.(), v(), _(), S(), W?.();
|
|
@@ -9051,84 +9051,84 @@ var da;
|
|
|
9051
9051
|
function lv() {
|
|
9052
9052
|
if (da) return Mn.exports;
|
|
9053
9053
|
da = 1;
|
|
9054
|
-
function t(
|
|
9054
|
+
function t(N) {
|
|
9055
9055
|
"@babel/helpers - typeof";
|
|
9056
9056
|
return t = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(T) {
|
|
9057
9057
|
return typeof T;
|
|
9058
9058
|
} : function(T) {
|
|
9059
9059
|
return T && typeof Symbol == "function" && T.constructor === Symbol && T !== Symbol.prototype ? "symbol" : typeof T;
|
|
9060
|
-
}, t(
|
|
9060
|
+
}, t(N);
|
|
9061
9061
|
}
|
|
9062
9062
|
var n, e;
|
|
9063
|
-
function r(
|
|
9064
|
-
if (!(
|
|
9063
|
+
function r(N, T) {
|
|
9064
|
+
if (!(N instanceof T)) throw new TypeError("Cannot call a class as a function");
|
|
9065
9065
|
}
|
|
9066
|
-
function o(
|
|
9067
|
-
for (var
|
|
9068
|
-
var S = T[
|
|
9069
|
-
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(
|
|
9066
|
+
function o(N, T) {
|
|
9067
|
+
for (var j = 0; j < T.length; j++) {
|
|
9068
|
+
var S = T[j];
|
|
9069
|
+
S.enumerable = S.enumerable || !1, S.configurable = !0, "value" in S && (S.writable = !0), Object.defineProperty(N, g(S.key), S);
|
|
9070
9070
|
}
|
|
9071
9071
|
}
|
|
9072
|
-
function i(
|
|
9073
|
-
return T && o(
|
|
9072
|
+
function i(N, T, j) {
|
|
9073
|
+
return T && o(N.prototype, T), Object.defineProperty(N, "prototype", { writable: !1 }), N;
|
|
9074
9074
|
}
|
|
9075
|
-
function a(
|
|
9076
|
-
return T = c(T), l(
|
|
9075
|
+
function a(N, T, j) {
|
|
9076
|
+
return T = c(T), l(N, u() ? Reflect.construct(T, j || [], c(N).constructor) : T.apply(N, j));
|
|
9077
9077
|
}
|
|
9078
|
-
function l(
|
|
9078
|
+
function l(N, T) {
|
|
9079
9079
|
if (T && (t(T) == "object" || typeof T == "function")) return T;
|
|
9080
9080
|
if (T !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
9081
|
-
return s(
|
|
9081
|
+
return s(N);
|
|
9082
9082
|
}
|
|
9083
|
-
function s(
|
|
9084
|
-
if (
|
|
9085
|
-
return
|
|
9083
|
+
function s(N) {
|
|
9084
|
+
if (N === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
9085
|
+
return N;
|
|
9086
9086
|
}
|
|
9087
9087
|
function u() {
|
|
9088
9088
|
try {
|
|
9089
|
-
var
|
|
9089
|
+
var N = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {
|
|
9090
9090
|
}));
|
|
9091
9091
|
} catch {
|
|
9092
9092
|
}
|
|
9093
9093
|
return (u = function() {
|
|
9094
|
-
return !!
|
|
9094
|
+
return !!N;
|
|
9095
9095
|
})();
|
|
9096
9096
|
}
|
|
9097
|
-
function c(
|
|
9097
|
+
function c(N) {
|
|
9098
9098
|
return c = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(T) {
|
|
9099
9099
|
return T.__proto__ || Object.getPrototypeOf(T);
|
|
9100
|
-
}, c(
|
|
9100
|
+
}, c(N);
|
|
9101
9101
|
}
|
|
9102
|
-
function v(
|
|
9102
|
+
function v(N, T) {
|
|
9103
9103
|
if (typeof T != "function" && T !== null) throw new TypeError("Super expression must either be null or a function");
|
|
9104
|
-
|
|
9104
|
+
N.prototype = Object.create(T && T.prototype, { constructor: { value: N, writable: !0, configurable: !0 } }), Object.defineProperty(N, "prototype", { writable: !1 }), T && m(N, T);
|
|
9105
9105
|
}
|
|
9106
|
-
function m(
|
|
9107
|
-
return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(
|
|
9108
|
-
return
|
|
9109
|
-
}, m(
|
|
9106
|
+
function m(N, T) {
|
|
9107
|
+
return m = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(j, S) {
|
|
9108
|
+
return j.__proto__ = S, j;
|
|
9109
|
+
}, m(N, T);
|
|
9110
9110
|
}
|
|
9111
|
-
function p(
|
|
9112
|
-
return (T = g(T)) in
|
|
9111
|
+
function p(N, T, j) {
|
|
9112
|
+
return (T = g(T)) in N ? Object.defineProperty(N, T, { value: j, enumerable: !0, configurable: !0, writable: !0 }) : N[T] = j, N;
|
|
9113
9113
|
}
|
|
9114
|
-
function g(
|
|
9115
|
-
var T = b(
|
|
9114
|
+
function g(N) {
|
|
9115
|
+
var T = b(N, "string");
|
|
9116
9116
|
return t(T) == "symbol" ? T : T + "";
|
|
9117
9117
|
}
|
|
9118
|
-
function b(
|
|
9119
|
-
if (t(
|
|
9120
|
-
var
|
|
9121
|
-
if (
|
|
9122
|
-
var S =
|
|
9118
|
+
function b(N, T) {
|
|
9119
|
+
if (t(N) != "object" || !N) return N;
|
|
9120
|
+
var j = N[Symbol.toPrimitive];
|
|
9121
|
+
if (j !== void 0) {
|
|
9122
|
+
var S = j.call(N, T);
|
|
9123
9123
|
if (t(S) != "object") return S;
|
|
9124
9124
|
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
9125
9125
|
}
|
|
9126
|
-
return (T === "string" ? String : Number)(
|
|
9126
|
+
return (T === "string" ? String : Number)(N);
|
|
9127
9127
|
}
|
|
9128
|
-
var x = V, C = iv, O = C.createFocusTrap, I = av, F = I.isFocusable, R = parseInt((n = (e = /^(\d+)\./.exec(x.version)) === null || e === void 0 ? void 0 : e[1]) !== null && n !== void 0 ? n : 0, 10), _ = /* @__PURE__ */ (function(
|
|
9129
|
-
function T(
|
|
9128
|
+
var x = V, C = iv, O = C.createFocusTrap, I = av, F = I.isFocusable, R = parseInt((n = (e = /^(\d+)\./.exec(x.version)) === null || e === void 0 ? void 0 : e[1]) !== null && n !== void 0 ? n : 0, 10), _ = /* @__PURE__ */ (function(N) {
|
|
9129
|
+
function T(j) {
|
|
9130
9130
|
var S;
|
|
9131
|
-
r(this, T), S = a(this, T, [
|
|
9131
|
+
r(this, T), S = a(this, T, [j]), p(S, "getNodeForOption", function(L) {
|
|
9132
9132
|
var B, A = (B = this.internalOptions[L]) !== null && B !== void 0 ? B : this.originalOptions[L];
|
|
9133
9133
|
if (typeof A == "function") {
|
|
9134
9134
|
for (var W = arguments.length, G = new Array(W > 1 ? W - 1 : 0), P = 1; P < W; P++)
|
|
@@ -9177,7 +9177,7 @@ function lv() {
|
|
|
9177
9177
|
// the user's setting, defaulted to false since focus-trap defaults this to false
|
|
9178
9178
|
clickOutsideDeactivates: !1
|
|
9179
9179
|
};
|
|
9180
|
-
var y =
|
|
9180
|
+
var y = j.focusTrapOptions;
|
|
9181
9181
|
for (var E in y)
|
|
9182
9182
|
if (Object.prototype.hasOwnProperty.call(y, E)) {
|
|
9183
9183
|
if (E === "returnFocusOnDeactivate" || E === "onDeactivate" || E === "onPostDeactivate" || E === "checkCanReturnFocus" || E === "clickOutsideDeactivates") {
|
|
@@ -9186,9 +9186,9 @@ function lv() {
|
|
|
9186
9186
|
}
|
|
9187
9187
|
S.internalOptions[E] = y[E];
|
|
9188
9188
|
}
|
|
9189
|
-
return S.outsideClick = null, S.focusTrapElements =
|
|
9189
|
+
return S.outsideClick = null, S.focusTrapElements = j.containerElements || [], S.updatePreviousElement(), S;
|
|
9190
9190
|
}
|
|
9191
|
-
return v(T,
|
|
9191
|
+
return v(T, N), i(T, [{
|
|
9192
9192
|
key: "getDocument",
|
|
9193
9193
|
value: function() {
|
|
9194
9194
|
return this.props.focusTrapOptions.document || (typeof document < "u" ? document : void 0);
|
|
@@ -9196,15 +9196,15 @@ function lv() {
|
|
|
9196
9196
|
}, {
|
|
9197
9197
|
key: "getReturnFocusNode",
|
|
9198
9198
|
value: function() {
|
|
9199
|
-
var
|
|
9200
|
-
return
|
|
9199
|
+
var j = this.getNodeForOption("setReturnFocus", this.previouslyFocusedElement);
|
|
9200
|
+
return j || (j === !1 ? !1 : this.previouslyFocusedElement);
|
|
9201
9201
|
}
|
|
9202
9202
|
/** Update the previously focused element with the currently focused element. */
|
|
9203
9203
|
}, {
|
|
9204
9204
|
key: "updatePreviousElement",
|
|
9205
9205
|
value: function() {
|
|
9206
|
-
var
|
|
9207
|
-
|
|
9206
|
+
var j = this.getDocument();
|
|
9207
|
+
j && (this.previouslyFocusedElement = j.activeElement);
|
|
9208
9208
|
}
|
|
9209
9209
|
}, {
|
|
9210
9210
|
key: "deactivateTrap",
|
|
@@ -9228,10 +9228,10 @@ function lv() {
|
|
|
9228
9228
|
}
|
|
9229
9229
|
}, {
|
|
9230
9230
|
key: "handleClickOutsideDeactivates",
|
|
9231
|
-
value: function(
|
|
9232
|
-
var S = typeof this.originalOptions.clickOutsideDeactivates == "function" ? this.originalOptions.clickOutsideDeactivates.call(null,
|
|
9231
|
+
value: function(j) {
|
|
9232
|
+
var S = typeof this.originalOptions.clickOutsideDeactivates == "function" ? this.originalOptions.clickOutsideDeactivates.call(null, j) : this.originalOptions.clickOutsideDeactivates;
|
|
9233
9233
|
return S && (this.outsideClick = {
|
|
9234
|
-
target:
|
|
9234
|
+
target: j.target,
|
|
9235
9235
|
allowDeactivation: S
|
|
9236
9236
|
}), S;
|
|
9237
9237
|
}
|
|
@@ -9243,18 +9243,18 @@ function lv() {
|
|
|
9243
9243
|
}, {
|
|
9244
9244
|
key: "handlePostDeactivate",
|
|
9245
9245
|
value: function() {
|
|
9246
|
-
var
|
|
9247
|
-
var y =
|
|
9248
|
-
(
|
|
9246
|
+
var j = this, S = function() {
|
|
9247
|
+
var y = j.getReturnFocusNode(), E = !!// did the consumer allow it?
|
|
9248
|
+
(j.originalOptions.returnFocusOnDeactivate && // can we actually focus the node?
|
|
9249
9249
|
y !== null && y !== void 0 && y.focus && // was there an outside click that allowed deactivation?
|
|
9250
|
-
(!
|
|
9251
|
-
|
|
9250
|
+
(!j.outsideClick || // did the consumer allow deactivation when the outside node was clicked?
|
|
9251
|
+
j.outsideClick.allowDeactivation && // is the outside node NOT focusable (implying that it did NOT receive focus
|
|
9252
9252
|
// as a result of the click-through) -- in which case do NOT restore focus
|
|
9253
9253
|
// to `returnFocusNode` because focus should remain on the outside node
|
|
9254
|
-
!F(
|
|
9254
|
+
!F(j.outsideClick.target, j.internalOptions.tabbableOptions))), L = j.internalOptions.preventScroll, B = L === void 0 ? !1 : L;
|
|
9255
9255
|
E && y.focus({
|
|
9256
9256
|
preventScroll: B
|
|
9257
|
-
}),
|
|
9257
|
+
}), j.originalOptions.onPostDeactivate && j.originalOptions.onPostDeactivate.call(null), j.outsideClick = null;
|
|
9258
9258
|
};
|
|
9259
9259
|
this.originalOptions.checkCanReturnFocus ? this.originalOptions.checkCanReturnFocus.call(null, this.getReturnFocusNode()).then(S, S) : S();
|
|
9260
9260
|
}
|
|
@@ -9264,8 +9264,8 @@ function lv() {
|
|
|
9264
9264
|
if (this.focusTrap)
|
|
9265
9265
|
this.props.active && !this.focusTrap.active && (this.focusTrap.activate(), this.props.paused && this.focusTrap.pause());
|
|
9266
9266
|
else {
|
|
9267
|
-
var
|
|
9268
|
-
|
|
9267
|
+
var j = this.focusTrapElements.some(Boolean);
|
|
9268
|
+
j && (this.focusTrap = this.props._createFocusTrap(this.focusTrapElements, this.internalOptions), this.props.active && this.focusTrap.activate(), this.props.paused && this.focusTrap.pause());
|
|
9269
9269
|
}
|
|
9270
9270
|
}
|
|
9271
9271
|
}, {
|
|
@@ -9275,17 +9275,17 @@ function lv() {
|
|
|
9275
9275
|
}
|
|
9276
9276
|
}, {
|
|
9277
9277
|
key: "componentDidUpdate",
|
|
9278
|
-
value: function(
|
|
9278
|
+
value: function(j) {
|
|
9279
9279
|
if (this.focusTrap) {
|
|
9280
|
-
|
|
9281
|
-
var S = !
|
|
9280
|
+
j.containerElements !== this.props.containerElements && this.focusTrap.updateContainerElements(this.props.containerElements);
|
|
9281
|
+
var S = !j.active && this.props.active, y = j.active && !this.props.active, E = !j.paused && this.props.paused, L = j.paused && !this.props.paused;
|
|
9282
9282
|
if (S && (this.updatePreviousElement(), this.focusTrap.activate()), y) {
|
|
9283
9283
|
this.deactivateTrap();
|
|
9284
9284
|
return;
|
|
9285
9285
|
}
|
|
9286
9286
|
E && this.focusTrap.pause(), L && this.focusTrap.unpause();
|
|
9287
9287
|
} else
|
|
9288
|
-
|
|
9288
|
+
j.containerElements !== this.props.containerElements && (this.focusTrapElements = this.props.containerElements), this.props.active && (this.updatePreviousElement(), this.setupFocusTrap());
|
|
9289
9289
|
}
|
|
9290
9290
|
}, {
|
|
9291
9291
|
key: "componentWillUnmount",
|
|
@@ -9295,13 +9295,13 @@ function lv() {
|
|
|
9295
9295
|
}, {
|
|
9296
9296
|
key: "render",
|
|
9297
9297
|
value: function() {
|
|
9298
|
-
var
|
|
9298
|
+
var j = this, S = this.props.children ? x.Children.only(this.props.children) : void 0;
|
|
9299
9299
|
if (S) {
|
|
9300
9300
|
if (S.type && S.type === x.Fragment)
|
|
9301
9301
|
throw new Error("A focus-trap cannot use a Fragment as its child container. Try replacing it with a <div> element.");
|
|
9302
9302
|
var y = function(L) {
|
|
9303
|
-
var B =
|
|
9304
|
-
S && (R >= 19 ? typeof S.props.ref == "function" ? S.props.ref(L) : S.props.ref && (S.props.ref.current = L) : typeof S.ref == "function" ? S.ref(L) : S.ref && (S.ref.current = L)),
|
|
9303
|
+
var B = j.props.containerElements;
|
|
9304
|
+
S && (R >= 19 ? typeof S.props.ref == "function" ? S.props.ref(L) : S.props.ref && (S.props.ref.current = L) : typeof S.ref == "function" ? S.ref(L) : S.ref && (S.ref.current = L)), j.focusTrapElements = B || [L];
|
|
9305
9305
|
}, E = x.cloneElement(S, {
|
|
9306
9306
|
ref: y
|
|
9307
9307
|
});
|
|
@@ -9353,7 +9353,7 @@ const uv = V.createContext(null), Wl = () => {
|
|
|
9353
9353
|
jn:shrink-0
|
|
9354
9354
|
`, mv = (t) => t === "error" ? "dangerous" : t;
|
|
9355
9355
|
V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
|
|
9356
|
-
const o = Wl(), i =
|
|
9356
|
+
const o = Wl(), i = Jr([o.refs?.setFloating ?? null, r]), a = o.variant;
|
|
9357
9357
|
return o.disabled ? null : /* @__PURE__ */ H.jsx(H.Fragment, { children: o.open && /* @__PURE__ */ H.jsxs(
|
|
9358
9358
|
"div",
|
|
9359
9359
|
{
|
|
@@ -9365,7 +9365,7 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
|
|
|
9365
9365
|
...o.getFloatingProps(e),
|
|
9366
9366
|
children: [
|
|
9367
9367
|
a && /* @__PURE__ */ H.jsx(
|
|
9368
|
-
|
|
9368
|
+
Nn,
|
|
9369
9369
|
{
|
|
9370
9370
|
icon: mv(a),
|
|
9371
9371
|
color: `jn:text-theme-${a}`,
|
|
@@ -9378,10 +9378,10 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
|
|
|
9378
9378
|
) });
|
|
9379
9379
|
});
|
|
9380
9380
|
V.forwardRef(function({ children: t, asChild: n = !1, className: e = "", ...r }, o) {
|
|
9381
|
-
const i = Wl(), a =
|
|
9381
|
+
const i = Wl(), a = Jr([i.refs?.setReference, o]);
|
|
9382
9382
|
if (n && V.isValidElement(t)) {
|
|
9383
9383
|
const l = t.props, s = l.ref, u = i.refs?.setReference, c = {
|
|
9384
|
-
ref:
|
|
9384
|
+
ref: Jr([u, o, s]),
|
|
9385
9385
|
...r,
|
|
9386
9386
|
...l,
|
|
9387
9387
|
"data-state": i.open ? "open" : "closed",
|