@cloudoperators/juno-messages-provider 0.2.25 → 0.2.27
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 +662 -645
- package/package.json +8 -8
package/build/index.js
CHANGED
|
@@ -21,7 +21,7 @@ const Xo = (t) => `${t}-${(+/* @__PURE__ */ new Date() + Math.random()).toString
|
|
|
21
21
|
t((e) => ({ ...e, messages: [] }));
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
}), pa = me(void 0),
|
|
24
|
+
}), pa = me(void 0), wv = ({ children: t }) => /* @__PURE__ */ V.createElement(pa.Provider, { value: gs(bs) }, t), ma = (t) => {
|
|
25
25
|
const n = ye(pa);
|
|
26
26
|
if (!n)
|
|
27
27
|
throw new Error("StoreContext not provided");
|
|
@@ -388,171 +388,175 @@ const Ts = me(void 0), ks = ({
|
|
|
388
388
|
title: t,
|
|
389
389
|
titleId: n,
|
|
390
390
|
...e
|
|
391
|
-
}, 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: "
|
|
391
|
+
}, 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: "M21.99 4c0-1.1-.89-2-1.99-2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h14l4 4-.01-18zM18 14H6v-2h12v2zm0-3H6V9h12v2zm0-3H6V6h12v2z" })), nc = K(tc), rc = ({
|
|
392
392
|
title: t,
|
|
393
393
|
titleId: n,
|
|
394
394
|
...e
|
|
395
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", {
|
|
395
|
+
}, 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: "M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z" })), oc = K(rc), ic = ({
|
|
396
396
|
title: t,
|
|
397
397
|
titleId: n,
|
|
398
398
|
...e
|
|
399
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", {
|
|
399
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: "24px", height: "24px", viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", xmlnsXlink: "http://www.w3.org/1999/xlink", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M22,17.9999996 L22,19.9999996 L2,19.9999996 L2,17.9999996 L22,17.9999996 Z M12,6.428571 C14.7642857,6.428571 17.0146825,8.23991359 17.1375716,10.5179164 L17.1428571,10.7142853 L17.1428571,16.7142853 L6.85714286,16.7142853 L6.85714286,10.7142853 L6.86242835,10.5179164 C6.98531746,8.23991359 9.23571429,6.428571 12,6.428571 Z M12,7.71428529 L12,15.428571 L15.8571429,15.428571 L15.8571429,11.1428567 L15.851803,10.960591 C15.745448,9.15003461 14.0636603,7.71428529 12,7.71428529 Z M19.075912,3.96838198 L20.490712,5.38218198 L18.370012,7.50438202 L16.955212,6.09058202 L19.075912,3.96838198 Z M4.956739,3.939208 L7.078039,6.060508 L5.663839,7.474708 L3.542539,5.353408 L4.956739,3.939208 Z M13,1.428571 L13,4.428571 L11,4.428571 L11,1.428571 L13,1.428571 Z" })), ac = K(ic), lc = ({
|
|
400
400
|
title: t,
|
|
401
401
|
titleId: n,
|
|
402
402
|
...e
|
|
403
|
-
}, 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: "
|
|
403
|
+
}, 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: "M15.73 3H8.27L3 8.27v7.46L8.27 21h7.46L21 15.73V8.27L15.73 3zM17 15.74 15.74 17 12 13.26 8.26 17 7 15.74 10.74 12 7 8.26 8.26 7 12 10.74 15.74 7 17 8.26 13.26 12 17 15.74z" })), ni = K(lc), sc = ({
|
|
404
404
|
title: t,
|
|
405
405
|
titleId: n,
|
|
406
406
|
...e
|
|
407
|
-
}, 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: "
|
|
407
|
+
}, 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: "M5 20h14v-2H5v2zM19 9h-4V3H9v6H5l7 7 7-7z" })), cc = K(sc), uc = ({
|
|
408
408
|
title: t,
|
|
409
409
|
titleId: n,
|
|
410
410
|
...e
|
|
411
|
-
}, 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: "
|
|
411
|
+
}, 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: "M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zm2.46-7.12 1.41-1.41L12 12.59l2.12-2.12 1.41 1.41L13.41 14l2.12 2.12-1.41 1.41L12 15.41l-2.12 2.12-1.41-1.41L10.59 14l-2.13-2.12zM15.5 4l-1-1h-5l-1 1H5v2h14V4z" })), dc = K(uc), fc = ({
|
|
412
412
|
title: t,
|
|
413
413
|
titleId: n,
|
|
414
414
|
...e
|
|
415
|
-
}, 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: "
|
|
415
|
+
}, 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: "M14 2H6c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8l-6-6zm2 16H8v-2h8v2zm0-4H8v-2h8v2zm-3-5V3.5L18.5 9H13z" })), pc = K(fc), mc = ({
|
|
416
416
|
title: t,
|
|
417
417
|
titleId: n,
|
|
418
418
|
...e
|
|
419
|
-
}, 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: "
|
|
419
|
+
}, 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: "M20 13H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1zM7 19c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zM20 3H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1zM7 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" })), hc = K(mc), gc = ({
|
|
420
420
|
title: t,
|
|
421
421
|
titleId: n,
|
|
422
422
|
...e
|
|
423
|
-
}, 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: "
|
|
423
|
+
}, 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 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04a.996.996 0 0 0 0-1.41l-2.34-2.34a.996.996 0 0 0-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z" })), vc = K(gc), bc = ({
|
|
424
424
|
title: t,
|
|
425
425
|
titleId: n,
|
|
426
426
|
...e
|
|
427
|
-
}, 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: "
|
|
427
|
+
}, 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 15h2v2h-2v-2zm0-8h2v6h-2V7zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z" })), yc = K(bc), wc = ({
|
|
428
428
|
title: t,
|
|
429
429
|
titleId: n,
|
|
430
430
|
...e
|
|
431
|
-
}, 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: "
|
|
431
|
+
}, 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.09 15.59 11.5 17l5-5-5-5-1.41 1.41L12.67 11H3v2h9.67l-2.58 2.59zM19 3H5a2 2 0 0 0-2 2v4h2V5h14v14H5v-4H3v4a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z" })), xc = K(wc), Ec = ({
|
|
432
432
|
title: t,
|
|
433
433
|
titleId: n,
|
|
434
434
|
...e
|
|
435
|
-
}, 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: "
|
|
435
|
+
}, 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 8-6 6 1.41 1.41L12 10.83l4.59 4.58L18 14l-6-6z" })), Sc = K(Ec), Cc = ({
|
|
436
436
|
title: t,
|
|
437
437
|
titleId: n,
|
|
438
438
|
...e
|
|
439
|
-
}, 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: "
|
|
439
|
+
}, 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: "M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6-1.41-1.41z" })), Oc = K(Cc), Mc = ({
|
|
440
440
|
title: t,
|
|
441
441
|
titleId: n,
|
|
442
442
|
...e
|
|
443
|
-
}, 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: "
|
|
443
|
+
}, 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: "M4.25 5.61C6.27 8.2 10 13 10 13v6c0 .55.45 1 1 1h2c.55 0 1-.45 1-1v-6s3.72-4.8 5.74-7.39A.998.998 0 0 0 18.95 4H5.04c-.83 0-1.3.95-.79 1.61z" })), Dc = K(Mc), Tc = ({
|
|
444
444
|
title: t,
|
|
445
445
|
titleId: n,
|
|
446
446
|
...e
|
|
447
|
-
}, 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: "
|
|
447
|
+
}, 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: "M21 6h-2v9H6v2c0 .55.45 1 1 1h11l4 4V7c0-.55-.45-1-1-1zm-4 6V3c0-.55-.45-1-1-1H3c-.55 0-1 .45-1 1v14l4-4h10c.55 0 1-.45 1-1z" })), kc = K(Tc), Ic = ({
|
|
448
448
|
title: t,
|
|
449
449
|
titleId: n,
|
|
450
450
|
...e
|
|
451
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: 24, viewBox: "0 0 24 24",
|
|
451
|
+
}, 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 17h-2v-2h2v2zm2.07-7.75-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z" })), Sr = K(Ic), Ac = ({
|
|
452
452
|
title: t,
|
|
453
453
|
titleId: n,
|
|
454
454
|
...e
|
|
455
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
455
|
+
}, 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 0h24v24H0V0z", fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8h5z" })), Pc = K(Ac), jc = ({
|
|
456
456
|
title: t,
|
|
457
457
|
titleId: n,
|
|
458
458
|
...e
|
|
459
|
-
}, 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: "
|
|
459
|
+
}, 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(jc), Lc = ({
|
|
460
460
|
title: t,
|
|
461
461
|
titleId: n,
|
|
462
462
|
...e
|
|
463
|
-
}, 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("
|
|
463
|
+
}, 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" })), _c = K(Lc), Rc = ({
|
|
464
464
|
title: t,
|
|
465
465
|
titleId: n,
|
|
466
466
|
...e
|
|
467
|
-
}, 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("
|
|
467
|
+
}, 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("circle", { cx: 10, cy: 8, r: 4 }), /* @__PURE__ */ d.createElement("path", { d: "M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26a6.963 6.963 0 0 1-.59-6.98zM20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63zM17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2z" })), Fc = K(Rc), Hc = ({
|
|
468
468
|
title: t,
|
|
469
469
|
titleId: n,
|
|
470
470
|
...e
|
|
471
|
-
}, 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: "
|
|
471
|
+
}, 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: "M20 4H4c-1.1 0-2 .9-2 2v3h2V6h16v3h2V6c0-1.1-.9-2-2-2zm0 14H4v-3H2v3c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2v-3h-2v3z" }), /* @__PURE__ */ d.createElement("path", { d: "M14.89 7.55c-.34-.68-1.45-.68-1.79 0L10 13.76l-1.11-2.21A.988.988 0 0 0 8 11H2v2h5.38l1.72 3.45c.18.34.52.55.9.55s.72-.21.89-.55L14 10.24l1.11 2.21c.17.34.51.55.89.55h6v-2h-5.38l-1.73-3.45z" })), zc = K(Hc), Bc = ({
|
|
472
472
|
title: t,
|
|
473
473
|
titleId: n,
|
|
474
474
|
...e
|
|
475
|
-
}, 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: "
|
|
475
|
+
}, 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 8c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm0 2c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 6c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" })), Vc = K(Bc), $c = ({
|
|
476
476
|
title: t,
|
|
477
477
|
titleId: n,
|
|
478
478
|
...e
|
|
479
|
-
}, 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: "
|
|
479
|
+
}, 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.78 17.51c-2.47 0-6.57-1.33-8.68-5.43-2.33-4.51-.5-8.48.53-10.07C6.27 2.2 1.98 6.59 1.98 12c0 .14.02.28.02.42.61-.26 1.28-.42 1.98-.42 0-3.09 1.73-5.77 4.3-7.1-.5 2.19-.54 5.04 1.04 8.1 1.57 3.04 4.18 4.95 6.8 5.86a8 8 0 0 1-5.61 1.01c-.37.7-.94 1.27-1.64 1.64.98.32 2.03.5 3.11.5 3.5 0 6.58-1.8 8.37-4.52-.17.01-.37.02-.57.02z" }), /* @__PURE__ */ d.createElement("path", { d: "M7 16h-.18C6.4 14.84 5.3 14 4 14c-1.66 0-3 1.34-3 3s1.34 3 3 3h3c1.1 0 2-.9 2-2s-.9-2-2-2z" })), Wc = K($c), Uc = ({
|
|
480
480
|
title: t,
|
|
481
481
|
titleId: n,
|
|
482
482
|
...e
|
|
483
|
-
}, 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: "
|
|
483
|
+
}, 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 22c1.1 0 2-.9 2-2h-4c0 1.1.9 2 2 2zm0-15.5c2.49 0 4 2.02 4 4.5v.1l2 2V11c0-3.07-1.63-5.64-4.5-6.32V4c0-.83-.67-1.5-1.5-1.5s-1.5.67-1.5 1.5v.68c-.24.06-.47.15-.69.23l1.64 1.64c.18-.02.36-.05.55-.05zM5.41 3.35 4 4.76l2.81 2.81C6.29 8.57 6 9.74 6 11v5l-2 2v1h14.24l1.74 1.74 1.41-1.41L5.41 3.35zM16 17H8v-6c0-.68.12-1.32.34-1.9L16 16.76V17z" })), Yc = K(Uc), Gc = ({
|
|
484
484
|
title: t,
|
|
485
485
|
titleId: n,
|
|
486
486
|
...e
|
|
487
|
-
}, 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
|
|
487
|
+
}, 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 4H5a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h4v-2H5V8h14v10h-4v2h4c1.1 0 2-.9 2-2V6a2 2 0 0 0-2-2zm-7 6-4 4h3v6h2v-6h3l-4-4z" })), Kc = K(Gc), Zc = ({
|
|
488
488
|
title: t,
|
|
489
489
|
titleId: n,
|
|
490
490
|
...e
|
|
491
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", height: 24, viewBox: "0 0 24 24",
|
|
491
|
+
}, 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 19H5V5h7V3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2v-7h-2v7zM14 3v2h3.59l-9.83 9.83 1.41 1.41L19 6.41V10h2V3h-7z" })), Qc = K(Zc), qc = ({
|
|
492
492
|
title: t,
|
|
493
493
|
titleId: n,
|
|
494
494
|
...e
|
|
495
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { xmlns: "http://www.w3.org/2000/svg",
|
|
495
|
+
}, 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" })), Xc = K(qc), Jc = ({
|
|
496
496
|
title: t,
|
|
497
497
|
titleId: n,
|
|
498
498
|
...e
|
|
499
|
-
}, 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: "
|
|
499
|
+
}, 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" })), eu = K(Jc), tu = ({
|
|
500
500
|
title: t,
|
|
501
501
|
titleId: n,
|
|
502
502
|
...e
|
|
503
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24",
|
|
503
|
+
}, 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: "M15.5 14h-.79l-.28-.27A6.471 6.471 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z" })), nu = K(tu), ru = ({
|
|
504
504
|
title: t,
|
|
505
505
|
titleId: n,
|
|
506
506
|
...e
|
|
507
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-
|
|
507
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-low", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 20L20 5H4L12 20Z" })), ou = K(ru), iu = ({
|
|
508
508
|
title: t,
|
|
509
509
|
titleId: n,
|
|
510
510
|
...e
|
|
511
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-
|
|
511
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-medium", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 5L20 20H4L12 5Z" })), au = K(iu), lu = ({
|
|
512
512
|
title: t,
|
|
513
513
|
titleId: n,
|
|
514
514
|
...e
|
|
515
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-
|
|
515
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-high", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M19 5H5V19H19V5Z" })), su = K(lu), cu = ({
|
|
516
516
|
title: t,
|
|
517
517
|
titleId: n,
|
|
518
518
|
...e
|
|
519
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-
|
|
519
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-very-high", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M12 3L21 12L12 21L3 12L12 3Z" })), uu = K(cu), du = ({
|
|
520
520
|
title: t,
|
|
521
521
|
titleId: n,
|
|
522
522
|
...e
|
|
523
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-
|
|
523
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-critical", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M11.5 4L18.8612 8.25V16.75L11.5 21L4.13878 16.75V8.25L11.5 4Z" })), fu = K(du), pu = ({
|
|
524
524
|
title: t,
|
|
525
525
|
titleId: n,
|
|
526
526
|
...e
|
|
527
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "
|
|
527
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "severity-unknown", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("path", { d: "M4.5 12C4.5 7.86 7.86 4.5 12 4.5C16.14 4.5 19.5 7.86 19.5 12C19.5 16.14 16.14 19.5 12 19.5C7.86 19.5 4.5 16.14 4.5 12ZM12 16.5C14.4825 16.5 16.5 14.4825 16.5 12C16.5 9.5175 14.4825 7.5 12 7.5C9.5175 7.5 7.5 9.5175 7.5 12C7.5 14.4825 9.5175 16.5 12 16.5Z" })), mu = K(pu), hu = ({
|
|
528
528
|
title: t,
|
|
529
529
|
titleId: n,
|
|
530
530
|
...e
|
|
531
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_short-wide_arrow-
|
|
531
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_short-wide_arrow-up", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("rect", { width: 24, height: 24, fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 21H23V18H12V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 16H20V13H12V16Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 11H17V8H12V11Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 3H15V6H12V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M4 21H7V8H4V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M10 8H1L5.5 3L10 8Z" })), gu = K(hu), vu = ({
|
|
532
532
|
title: t,
|
|
533
533
|
titleId: n,
|
|
534
534
|
...e
|
|
535
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "
|
|
535
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_short-wide_arrow-down", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("rect", { width: 24, height: 24, fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 21H23V18H12V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 16H20V13H12V16Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 11H17V8H12V11Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 3H15V6H12V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M4 3H7V16H4V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M10 16H1L5.5 21L10 16Z" })), bu = K(vu), yu = ({
|
|
536
536
|
title: t,
|
|
537
537
|
titleId: n,
|
|
538
538
|
...e
|
|
539
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_wide-short_arrow-
|
|
539
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_wide-short_arrow-up", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("rect", { width: 24, height: 24, fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 3H23V6H12V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 8H20V11H12V8Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 13H17V16H12V13Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 21H15V18H12V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M4 21H7V8H4V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M10 8H1L5.5 3L10 8Z" })), wu = K(yu), xu = ({
|
|
540
540
|
title: t,
|
|
541
541
|
titleId: n,
|
|
542
542
|
...e
|
|
543
|
-
}, r) => /* @__PURE__ */ d.createElement("svg", {
|
|
543
|
+
}, r) => /* @__PURE__ */ d.createElement("svg", { width: 24, height: 24, viewBox: "0 0 24 24", xmlns: "http://www.w3.org/2000/svg", "data-icon": "sort_wide-short_arrow-down", ref: r, "aria-labelledby": n, ...e }, t ? /* @__PURE__ */ d.createElement("title", { id: n }, t) : null, /* @__PURE__ */ d.createElement("rect", { width: 24, height: 24, fill: "none" }), /* @__PURE__ */ d.createElement("path", { d: "M12 3H23V6H12V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 8H20V11H12V8Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 13H17V16H12V13Z" }), /* @__PURE__ */ d.createElement("path", { d: "M12 21H15V18H12V21Z" }), /* @__PURE__ */ d.createElement("path", { d: "M4 3H7V16H4V3Z" }), /* @__PURE__ */ d.createElement("path", { d: "M10 16H1L5.5 21L10 16Z" })), Eu = K(xu), Su = ({
|
|
544
544
|
title: t,
|
|
545
545
|
titleId: n,
|
|
546
546
|
...e
|
|
547
|
-
}, 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: "
|
|
547
|
+
}, 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: "M5 20h14v-2H5v2zm0-10h4v6h6v-6h4l-7-7-7 7z" })), Cu = K(Su), Ou = ({
|
|
548
548
|
title: t,
|
|
549
549
|
titleId: n,
|
|
550
550
|
...e
|
|
551
|
-
}, 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: "
|
|
551
|
+
}, 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: "M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z" })), Mu = K(Ou), Du = ({
|
|
552
552
|
title: t,
|
|
553
553
|
titleId: n,
|
|
554
554
|
...e
|
|
555
|
-
}, 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: "
|
|
555
|
+
}, 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: "m6.76 4.84-1.8-1.79-1.41 1.41 1.79 1.79zM1 10.5h3v2H1zM11 .55h2V3.5h-2zm8.04 2.495 1.408 1.407-1.79 1.79-1.407-1.408zm-1.8 15.115 1.79 1.8 1.41-1.41-1.8-1.79zM20 10.5h3v2h-3zm-8-5c-3.31 0-6 2.69-6 6s2.69 6 6 6 6-2.69 6-6-2.69-6-6-6zm0 10c-2.21 0-4-1.79-4-4s1.79-4 4-4 4 1.79 4 4-1.79 4-4 4zm-1 4h2v2.95h-2zm-7.45-.96 1.41 1.41 1.79-1.8-1.41-1.41z" })), Tu = K(Du), ku = ({
|
|
556
|
+
title: t,
|
|
557
|
+
titleId: n,
|
|
558
|
+
...e
|
|
559
|
+
}, 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: "M13 13v8h8v-8h-8zM3 21h8v-8H3v8zM3 3v8h8V3H3zm13.66-1.31L11 7.34 16.66 13l5.66-5.66-5.66-5.65z" })), Iu = K(ku), Au = `
|
|
556
560
|
jn:text-current
|
|
557
561
|
jn:hover:text-theme-high
|
|
558
562
|
jn:focus:outline-hidden
|
|
@@ -562,7 +566,7 @@ const Ts = me(void 0), ks = ({
|
|
|
562
566
|
jn:focus-visible:ring-offset-theme-focus
|
|
563
567
|
jn:disabled:opacity-50
|
|
564
568
|
jn:disabled:cursor-not-allowed
|
|
565
|
-
`,
|
|
569
|
+
`, Pu = `
|
|
566
570
|
jn:hover:text-theme-high
|
|
567
571
|
jn:focus:outline-hidden
|
|
568
572
|
jn:focus-visible:ring-2
|
|
@@ -572,8 +576,8 @@ const Ts = me(void 0), ks = ({
|
|
|
572
576
|
jn:disabled:opacity-50
|
|
573
577
|
jn:disabled:cursor-not-allowed
|
|
574
578
|
`;
|
|
575
|
-
var io = /* @__PURE__ */ ((t) => (t.accessTime = "accessTime", t.accountCircle = "accountCircle", t.addCircle = "addCircle", t.autoAwesomeMosaic = "autoAwesomeMosaic", t.autoAwesomeMotion = "autoAwesomeMotion", t.bolt = "bolt", t.calendarToday = "calendarToday", t.cancel = "cancel", t.check = "check", t.checkCircle = "checkCircle", t.chevronLeft = "chevronLeft", t.chevronRight = "chevronRight", t.close = "close", t.comment = "comment", t.contentCopy = "contentCopy", t.danger = "danger", t.dangerous = "dangerous", t.default = "default", t.deleteForever = "deleteForever", t.description = "description", t.dns = "dns", t.download = "download", t.edit = "edit", t.error = "error", t.errorOutline = "errorOutline", t.exitToApp = "exitToApp", t.expandLess = "expandLess", t.expandMore = "expandMore", t.filterAlt = "filterAlt", t.forum = "forum", t.help = "help", t.home = "home", t.info = "info", t.manageAccounts = "manageAccounts", t.monitorHeart = "monitorHeart", t.moreVert = "moreVert", t.nightsStay = "nightsStay", t.notificationsOff = "notificationsOff", t.openInBrowser = "openInBrowser", t.openInNew = "openInNew", t.place = "place", t.search = "search", t.severityLow = "severityLow", t.severityMedium = "severityMedium", t.severityHigh = "severityHigh", t.severityVeryHigh = "severityVeryHigh", t.severityCritical = "severityCritical", t.severityUnknown = "severityUnknown", t.sortShortWideArrowUp = "sortShortWideArrowUp", t.sortShortWideArrowDown = "sortShortWideArrowDown", t.sortWideShortArrowUp = "sortWideShortArrowUp", t.sortWideShortArrowDown = "sortWideShortArrowDown", t.success = "success", t.upload = "upload", t.warning = "warning", t.wbSunny = "wbSunny", t.widgets = "widgets", t))(io || {});
|
|
576
|
-
const
|
|
579
|
+
var io = /* @__PURE__ */ ((t) => (t.accessTime = "accessTime", t.accountCircle = "accountCircle", t.addCircle = "addCircle", t.autoAwesomeMosaic = "autoAwesomeMosaic", t.autoAwesomeMotion = "autoAwesomeMotion", t.bolt = "bolt", t.calendarToday = "calendarToday", t.cancel = "cancel", t.check = "check", t.checkCircle = "checkCircle", t.chevronLeft = "chevronLeft", t.chevronRight = "chevronRight", t.close = "close", t.comment = "comment", t.contentCopy = "contentCopy", t.danger = "danger", t.dangerous = "dangerous", t.default = "default", t.deleteForever = "deleteForever", t.description = "description", t.dns = "dns", t.download = "download", t.edit = "edit", t.error = "error", t.errorOutline = "errorOutline", t.exitToApp = "exitToApp", t.expandLess = "expandLess", t.expandMore = "expandMore", t.filterAlt = "filterAlt", t.forum = "forum", t.help = "help", t.home = "home", t.info = "info", t.language = "language", t.manageAccounts = "manageAccounts", t.monitorHeart = "monitorHeart", t.moreVert = "moreVert", t.nightsStay = "nightsStay", t.notificationsOff = "notificationsOff", t.openInBrowser = "openInBrowser", t.openInNew = "openInNew", t.place = "place", t.search = "search", t.severityLow = "severityLow", t.severityMedium = "severityMedium", t.severityHigh = "severityHigh", t.severityVeryHigh = "severityVeryHigh", t.severityCritical = "severityCritical", t.severityUnknown = "severityUnknown", t.sortShortWideArrowUp = "sortShortWideArrowUp", t.sortShortWideArrowDown = "sortShortWideArrowDown", t.sortWideShortArrowUp = "sortWideShortArrowUp", t.sortWideShortArrowDown = "sortWideShortArrowDown", t.success = "success", t.upload = "upload", t.warning = "warning", t.wbSunny = "wbSunny", t.widgets = "widgets", t))(io || {});
|
|
580
|
+
const ju = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) => {
|
|
577
581
|
const a = `juno-icon juno-icon-${t} jn:fill-current ${n} ${o}`;
|
|
578
582
|
switch (io[t || "default"]) {
|
|
579
583
|
case "accessTime":
|
|
@@ -747,7 +751,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
747
751
|
);
|
|
748
752
|
case "comment":
|
|
749
753
|
return /* @__PURE__ */ H.jsx(
|
|
750
|
-
|
|
754
|
+
nc,
|
|
751
755
|
{
|
|
752
756
|
width: e,
|
|
753
757
|
height: e,
|
|
@@ -760,7 +764,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
760
764
|
);
|
|
761
765
|
case "contentCopy":
|
|
762
766
|
return /* @__PURE__ */ H.jsx(
|
|
763
|
-
|
|
767
|
+
oc,
|
|
764
768
|
{
|
|
765
769
|
width: e,
|
|
766
770
|
height: e,
|
|
@@ -773,7 +777,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
773
777
|
);
|
|
774
778
|
case "danger":
|
|
775
779
|
return /* @__PURE__ */ H.jsx(
|
|
776
|
-
|
|
780
|
+
ac,
|
|
777
781
|
{
|
|
778
782
|
width: e,
|
|
779
783
|
height: e,
|
|
@@ -799,7 +803,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
799
803
|
);
|
|
800
804
|
case "deleteForever":
|
|
801
805
|
return /* @__PURE__ */ H.jsx(
|
|
802
|
-
|
|
806
|
+
dc,
|
|
803
807
|
{
|
|
804
808
|
width: e,
|
|
805
809
|
height: e,
|
|
@@ -812,7 +816,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
812
816
|
);
|
|
813
817
|
case "description":
|
|
814
818
|
return /* @__PURE__ */ H.jsx(
|
|
815
|
-
|
|
819
|
+
pc,
|
|
816
820
|
{
|
|
817
821
|
width: e,
|
|
818
822
|
height: e,
|
|
@@ -825,7 +829,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
825
829
|
);
|
|
826
830
|
case "dns":
|
|
827
831
|
return /* @__PURE__ */ H.jsx(
|
|
828
|
-
|
|
832
|
+
hc,
|
|
829
833
|
{
|
|
830
834
|
width: e,
|
|
831
835
|
height: e,
|
|
@@ -838,7 +842,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
838
842
|
);
|
|
839
843
|
case "download":
|
|
840
844
|
return /* @__PURE__ */ H.jsx(
|
|
841
|
-
|
|
845
|
+
cc,
|
|
842
846
|
{
|
|
843
847
|
width: e,
|
|
844
848
|
height: e,
|
|
@@ -851,7 +855,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
851
855
|
);
|
|
852
856
|
case "edit":
|
|
853
857
|
return /* @__PURE__ */ H.jsx(
|
|
854
|
-
|
|
858
|
+
vc,
|
|
855
859
|
{
|
|
856
860
|
width: e,
|
|
857
861
|
height: e,
|
|
@@ -877,7 +881,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
877
881
|
);
|
|
878
882
|
case "errorOutline":
|
|
879
883
|
return /* @__PURE__ */ H.jsx(
|
|
880
|
-
|
|
884
|
+
yc,
|
|
881
885
|
{
|
|
882
886
|
width: e,
|
|
883
887
|
height: e,
|
|
@@ -890,7 +894,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
890
894
|
);
|
|
891
895
|
case "exitToApp":
|
|
892
896
|
return /* @__PURE__ */ H.jsx(
|
|
893
|
-
|
|
897
|
+
xc,
|
|
894
898
|
{
|
|
895
899
|
width: e,
|
|
896
900
|
height: e,
|
|
@@ -903,7 +907,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
903
907
|
);
|
|
904
908
|
case "expandLess":
|
|
905
909
|
return /* @__PURE__ */ H.jsx(
|
|
906
|
-
|
|
910
|
+
Sc,
|
|
907
911
|
{
|
|
908
912
|
width: e,
|
|
909
913
|
height: e,
|
|
@@ -916,7 +920,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
916
920
|
);
|
|
917
921
|
case "expandMore":
|
|
918
922
|
return /* @__PURE__ */ H.jsx(
|
|
919
|
-
|
|
923
|
+
Oc,
|
|
920
924
|
{
|
|
921
925
|
width: e,
|
|
922
926
|
height: e,
|
|
@@ -929,7 +933,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
929
933
|
);
|
|
930
934
|
case "filterAlt":
|
|
931
935
|
return /* @__PURE__ */ H.jsx(
|
|
932
|
-
|
|
936
|
+
Dc,
|
|
933
937
|
{
|
|
934
938
|
width: e,
|
|
935
939
|
height: e,
|
|
@@ -942,7 +946,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
942
946
|
);
|
|
943
947
|
case "forum":
|
|
944
948
|
return /* @__PURE__ */ H.jsx(
|
|
945
|
-
|
|
949
|
+
kc,
|
|
946
950
|
{
|
|
947
951
|
width: e,
|
|
948
952
|
height: e,
|
|
@@ -968,7 +972,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
968
972
|
);
|
|
969
973
|
case "home":
|
|
970
974
|
return /* @__PURE__ */ H.jsx(
|
|
971
|
-
|
|
975
|
+
Pc,
|
|
972
976
|
{
|
|
973
977
|
width: e,
|
|
974
978
|
height: e,
|
|
@@ -981,7 +985,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
981
985
|
);
|
|
982
986
|
case "info":
|
|
983
987
|
return /* @__PURE__ */ H.jsx(
|
|
984
|
-
|
|
988
|
+
Nc,
|
|
985
989
|
{
|
|
986
990
|
width: e,
|
|
987
991
|
height: e,
|
|
@@ -992,9 +996,22 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
992
996
|
...i
|
|
993
997
|
}
|
|
994
998
|
);
|
|
995
|
-
case "
|
|
999
|
+
case "language":
|
|
996
1000
|
return /* @__PURE__ */ H.jsx(
|
|
997
1001
|
_c,
|
|
1002
|
+
{
|
|
1003
|
+
width: e,
|
|
1004
|
+
height: e,
|
|
1005
|
+
className: a,
|
|
1006
|
+
alt: "language",
|
|
1007
|
+
title: r || "Language",
|
|
1008
|
+
role: "img",
|
|
1009
|
+
...i
|
|
1010
|
+
}
|
|
1011
|
+
);
|
|
1012
|
+
case "manageAccounts":
|
|
1013
|
+
return /* @__PURE__ */ H.jsx(
|
|
1014
|
+
Fc,
|
|
998
1015
|
{
|
|
999
1016
|
width: e,
|
|
1000
1017
|
height: e,
|
|
@@ -1007,7 +1024,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1007
1024
|
);
|
|
1008
1025
|
case "monitorHeart":
|
|
1009
1026
|
return /* @__PURE__ */ H.jsx(
|
|
1010
|
-
|
|
1027
|
+
zc,
|
|
1011
1028
|
{
|
|
1012
1029
|
width: e,
|
|
1013
1030
|
height: e,
|
|
@@ -1020,7 +1037,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1020
1037
|
);
|
|
1021
1038
|
case "moreVert":
|
|
1022
1039
|
return /* @__PURE__ */ H.jsx(
|
|
1023
|
-
|
|
1040
|
+
Vc,
|
|
1024
1041
|
{
|
|
1025
1042
|
width: e,
|
|
1026
1043
|
height: e,
|
|
@@ -1033,7 +1050,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1033
1050
|
);
|
|
1034
1051
|
case "nightsStay":
|
|
1035
1052
|
return /* @__PURE__ */ H.jsx(
|
|
1036
|
-
|
|
1053
|
+
Wc,
|
|
1037
1054
|
{
|
|
1038
1055
|
width: e,
|
|
1039
1056
|
height: e,
|
|
@@ -1046,7 +1063,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1046
1063
|
);
|
|
1047
1064
|
case "notificationsOff":
|
|
1048
1065
|
return /* @__PURE__ */ H.jsx(
|
|
1049
|
-
|
|
1066
|
+
Yc,
|
|
1050
1067
|
{
|
|
1051
1068
|
width: e,
|
|
1052
1069
|
height: e,
|
|
@@ -1059,7 +1076,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1059
1076
|
);
|
|
1060
1077
|
case "openInBrowser":
|
|
1061
1078
|
return /* @__PURE__ */ H.jsx(
|
|
1062
|
-
|
|
1079
|
+
Kc,
|
|
1063
1080
|
{
|
|
1064
1081
|
width: e,
|
|
1065
1082
|
height: e,
|
|
@@ -1072,7 +1089,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1072
1089
|
);
|
|
1073
1090
|
case "openInNew":
|
|
1074
1091
|
return /* @__PURE__ */ H.jsx(
|
|
1075
|
-
|
|
1092
|
+
Qc,
|
|
1076
1093
|
{
|
|
1077
1094
|
width: e,
|
|
1078
1095
|
height: e,
|
|
@@ -1085,7 +1102,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1085
1102
|
);
|
|
1086
1103
|
case "place":
|
|
1087
1104
|
return /* @__PURE__ */ H.jsx(
|
|
1088
|
-
|
|
1105
|
+
Xc,
|
|
1089
1106
|
{
|
|
1090
1107
|
width: e,
|
|
1091
1108
|
height: e,
|
|
@@ -1098,7 +1115,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1098
1115
|
);
|
|
1099
1116
|
case "search":
|
|
1100
1117
|
return /* @__PURE__ */ H.jsx(
|
|
1101
|
-
|
|
1118
|
+
nu,
|
|
1102
1119
|
{
|
|
1103
1120
|
width: e,
|
|
1104
1121
|
height: e,
|
|
@@ -1111,7 +1128,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1111
1128
|
);
|
|
1112
1129
|
case "severityLow":
|
|
1113
1130
|
return /* @__PURE__ */ H.jsx(
|
|
1114
|
-
|
|
1131
|
+
ou,
|
|
1115
1132
|
{
|
|
1116
1133
|
width: e,
|
|
1117
1134
|
height: e,
|
|
@@ -1124,7 +1141,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1124
1141
|
);
|
|
1125
1142
|
case "severityMedium":
|
|
1126
1143
|
return /* @__PURE__ */ H.jsx(
|
|
1127
|
-
|
|
1144
|
+
au,
|
|
1128
1145
|
{
|
|
1129
1146
|
width: e,
|
|
1130
1147
|
height: e,
|
|
@@ -1137,7 +1154,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1137
1154
|
);
|
|
1138
1155
|
case "severityHigh":
|
|
1139
1156
|
return /* @__PURE__ */ H.jsx(
|
|
1140
|
-
|
|
1157
|
+
su,
|
|
1141
1158
|
{
|
|
1142
1159
|
width: e,
|
|
1143
1160
|
height: e,
|
|
@@ -1150,7 +1167,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1150
1167
|
);
|
|
1151
1168
|
case "severityVeryHigh":
|
|
1152
1169
|
return /* @__PURE__ */ H.jsx(
|
|
1153
|
-
|
|
1170
|
+
uu,
|
|
1154
1171
|
{
|
|
1155
1172
|
width: e,
|
|
1156
1173
|
height: e,
|
|
@@ -1163,7 +1180,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1163
1180
|
);
|
|
1164
1181
|
case "severityCritical":
|
|
1165
1182
|
return /* @__PURE__ */ H.jsx(
|
|
1166
|
-
|
|
1183
|
+
fu,
|
|
1167
1184
|
{
|
|
1168
1185
|
width: e,
|
|
1169
1186
|
height: e,
|
|
@@ -1176,7 +1193,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1176
1193
|
);
|
|
1177
1194
|
case "severityUnknown":
|
|
1178
1195
|
return /* @__PURE__ */ H.jsx(
|
|
1179
|
-
|
|
1196
|
+
mu,
|
|
1180
1197
|
{
|
|
1181
1198
|
width: e,
|
|
1182
1199
|
height: e,
|
|
@@ -1189,7 +1206,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1189
1206
|
);
|
|
1190
1207
|
case "success":
|
|
1191
1208
|
return /* @__PURE__ */ H.jsx(
|
|
1192
|
-
|
|
1209
|
+
eu,
|
|
1193
1210
|
{
|
|
1194
1211
|
width: e,
|
|
1195
1212
|
height: e,
|
|
@@ -1202,7 +1219,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1202
1219
|
);
|
|
1203
1220
|
case "sortShortWideArrowUp":
|
|
1204
1221
|
return /* @__PURE__ */ H.jsx(
|
|
1205
|
-
|
|
1222
|
+
gu,
|
|
1206
1223
|
{
|
|
1207
1224
|
width: e,
|
|
1208
1225
|
height: e,
|
|
@@ -1215,7 +1232,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1215
1232
|
);
|
|
1216
1233
|
case "sortShortWideArrowDown":
|
|
1217
1234
|
return /* @__PURE__ */ H.jsx(
|
|
1218
|
-
|
|
1235
|
+
bu,
|
|
1219
1236
|
{
|
|
1220
1237
|
width: e,
|
|
1221
1238
|
height: e,
|
|
@@ -1228,7 +1245,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1228
1245
|
);
|
|
1229
1246
|
case "sortWideShortArrowUp":
|
|
1230
1247
|
return /* @__PURE__ */ H.jsx(
|
|
1231
|
-
|
|
1248
|
+
wu,
|
|
1232
1249
|
{
|
|
1233
1250
|
width: e,
|
|
1234
1251
|
height: e,
|
|
@@ -1241,7 +1258,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1241
1258
|
);
|
|
1242
1259
|
case "sortWideShortArrowDown":
|
|
1243
1260
|
return /* @__PURE__ */ H.jsx(
|
|
1244
|
-
|
|
1261
|
+
Eu,
|
|
1245
1262
|
{
|
|
1246
1263
|
width: e,
|
|
1247
1264
|
height: e,
|
|
@@ -1254,7 +1271,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1254
1271
|
);
|
|
1255
1272
|
case "upload":
|
|
1256
1273
|
return /* @__PURE__ */ H.jsx(
|
|
1257
|
-
|
|
1274
|
+
Cu,
|
|
1258
1275
|
{
|
|
1259
1276
|
width: e,
|
|
1260
1277
|
height: e,
|
|
@@ -1267,7 +1284,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1267
1284
|
);
|
|
1268
1285
|
case "widgets":
|
|
1269
1286
|
return /* @__PURE__ */ H.jsx(
|
|
1270
|
-
|
|
1287
|
+
Iu,
|
|
1271
1288
|
{
|
|
1272
1289
|
width: e,
|
|
1273
1290
|
height: e,
|
|
@@ -1280,7 +1297,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1280
1297
|
);
|
|
1281
1298
|
case "warning":
|
|
1282
1299
|
return /* @__PURE__ */ H.jsx(
|
|
1283
|
-
|
|
1300
|
+
Mu,
|
|
1284
1301
|
{
|
|
1285
1302
|
width: e,
|
|
1286
1303
|
height: e,
|
|
@@ -1293,7 +1310,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1293
1310
|
);
|
|
1294
1311
|
case "wbSunny":
|
|
1295
1312
|
return /* @__PURE__ */ H.jsx(
|
|
1296
|
-
|
|
1313
|
+
Tu,
|
|
1297
1314
|
{
|
|
1298
1315
|
width: e,
|
|
1299
1316
|
height: e,
|
|
@@ -1332,7 +1349,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1332
1349
|
);
|
|
1333
1350
|
}
|
|
1334
1351
|
}, jn = K(function({ icon: t, color: n = "", size: e = 24, title: r = "", className: o = "", href: i = "", disabled: a = !1, onClick: l, ...s }, u) {
|
|
1335
|
-
const c =
|
|
1352
|
+
const c = ju({
|
|
1336
1353
|
icon: t || void 0,
|
|
1337
1354
|
color: n,
|
|
1338
1355
|
size: e,
|
|
@@ -1347,7 +1364,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1347
1364
|
...s,
|
|
1348
1365
|
type: "button",
|
|
1349
1366
|
onClick: v,
|
|
1350
|
-
className: `juno-icon-button ${
|
|
1367
|
+
className: `juno-icon-button ${Pu} ${o}`,
|
|
1351
1368
|
"aria-label": r || t || void 0,
|
|
1352
1369
|
disabled: a,
|
|
1353
1370
|
ref: u,
|
|
@@ -1359,28 +1376,28 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1359
1376
|
...s,
|
|
1360
1377
|
"aria-label": r || t || void 0,
|
|
1361
1378
|
href: i,
|
|
1362
|
-
className: `juno-icon-link ${
|
|
1379
|
+
className: `juno-icon-link ${Au} ${o}`,
|
|
1363
1380
|
ref: u,
|
|
1364
1381
|
children: c
|
|
1365
1382
|
}
|
|
1366
1383
|
);
|
|
1367
1384
|
return i ? p : l ? m : /* @__PURE__ */ H.jsx("span", { ref: u, children: c });
|
|
1368
|
-
}),
|
|
1385
|
+
}), Nu = `
|
|
1369
1386
|
jn:animate-spin
|
|
1370
1387
|
jn:mr-3
|
|
1371
1388
|
jn:h-5
|
|
1372
1389
|
jn:w-5
|
|
1373
|
-
`,
|
|
1390
|
+
`, Lu = `
|
|
1374
1391
|
jn:text-theme-accent
|
|
1375
|
-
`,
|
|
1392
|
+
`, _u = `
|
|
1376
1393
|
jn:text-theme-danger
|
|
1377
|
-
`,
|
|
1394
|
+
`, Ru = `
|
|
1378
1395
|
jn:text-theme-success
|
|
1379
|
-
`,
|
|
1396
|
+
`, Fu = `
|
|
1380
1397
|
jn:text-theme-warning
|
|
1381
|
-
`,
|
|
1398
|
+
`, Hu = `
|
|
1382
1399
|
jn:text-theme-on-default
|
|
1383
|
-
`,
|
|
1400
|
+
`, zu = ({
|
|
1384
1401
|
variant: t = "default",
|
|
1385
1402
|
size: n,
|
|
1386
1403
|
className: e = "",
|
|
@@ -1390,15 +1407,15 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1390
1407
|
const i = () => {
|
|
1391
1408
|
switch (t) {
|
|
1392
1409
|
case "primary":
|
|
1393
|
-
return
|
|
1410
|
+
return Lu;
|
|
1394
1411
|
case "danger":
|
|
1395
|
-
return
|
|
1412
|
+
return _u;
|
|
1396
1413
|
case "success":
|
|
1397
|
-
return
|
|
1414
|
+
return Ru;
|
|
1398
1415
|
case "warning":
|
|
1399
|
-
return
|
|
1416
|
+
return Fu;
|
|
1400
1417
|
default:
|
|
1401
|
-
return
|
|
1418
|
+
return Hu;
|
|
1402
1419
|
}
|
|
1403
1420
|
}, a = (s) => {
|
|
1404
1421
|
switch (s) {
|
|
@@ -1413,7 +1430,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1413
1430
|
return /* @__PURE__ */ H.jsxs(
|
|
1414
1431
|
"svg",
|
|
1415
1432
|
{
|
|
1416
|
-
className: `juno-spinner ${
|
|
1433
|
+
className: `juno-spinner ${Nu} ${r || i()} ${e}`,
|
|
1417
1434
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1418
1435
|
fill: "none",
|
|
1419
1436
|
viewBox: "0 0 24 24",
|
|
@@ -1455,16 +1472,16 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1455
1472
|
`, ii = `
|
|
1456
1473
|
jn:text-base
|
|
1457
1474
|
jn:leading-6
|
|
1458
|
-
`,
|
|
1475
|
+
`, Bu = `
|
|
1459
1476
|
jn:py-[0.3125rem]
|
|
1460
1477
|
jn:px-[0.5rem]
|
|
1461
|
-
`,
|
|
1478
|
+
`, Vu = `
|
|
1462
1479
|
jn:py-[0.25rem]
|
|
1463
1480
|
jn:px-[0.4375rem]
|
|
1464
|
-
`,
|
|
1481
|
+
`, $u = `
|
|
1465
1482
|
jn:py-[0.4375rem]
|
|
1466
1483
|
jn:px-[0.625rem]
|
|
1467
|
-
`,
|
|
1484
|
+
`, Wu = `
|
|
1468
1485
|
jn:py-[0.375rem]
|
|
1469
1486
|
jn:px-[0.5625rem]
|
|
1470
1487
|
`, ai = `
|
|
@@ -1474,45 +1491,45 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1474
1491
|
jn:hover:text-theme-button-default-hover
|
|
1475
1492
|
jn:active:bg-theme-button-default-active
|
|
1476
1493
|
jn:active:text-theme-button-default-active
|
|
1477
|
-
`,
|
|
1494
|
+
`, Uu = `
|
|
1478
1495
|
jn:bg-theme-button-primary
|
|
1479
1496
|
jn:text-theme-button-primary
|
|
1480
1497
|
jn:hover:bg-theme-button-primary-hover
|
|
1481
1498
|
jn:hover:text-theme-button-primary-hover
|
|
1482
1499
|
jn:active:bg-theme-button-primary-active
|
|
1483
1500
|
jn_active:text-theme-button-primary-active
|
|
1484
|
-
`,
|
|
1501
|
+
`, Yu = `
|
|
1485
1502
|
jn:bg-theme-button-primary-danger
|
|
1486
1503
|
jn:text-theme-button-primary-danger
|
|
1487
1504
|
jn:hover:bg-theme-button-primary-danger-hover
|
|
1488
1505
|
jn:hover:text-theme-button-primary-danger-hover
|
|
1489
1506
|
jn:active:bg-theme-button-primary-danger-active
|
|
1490
1507
|
jn:active:text-theme-button-primary-danger-active
|
|
1491
|
-
`,
|
|
1508
|
+
`, Gu = `
|
|
1492
1509
|
jn:bg-theme-button-subdued
|
|
1493
1510
|
jn:text-theme-button-subdued
|
|
1494
1511
|
jn:hover:bg-theme-button-subdued-hover
|
|
1495
1512
|
jn:hover:text-theme-button-subdued-hover
|
|
1496
1513
|
jn:active:bg-theme-button-subdued-active
|
|
1497
1514
|
jn:active:text-theme-button-subdued-active
|
|
1498
|
-
`, li = (t, n) => t === "small" ? n === "subdued" ? `${
|
|
1515
|
+
`, li = (t, n) => t === "small" ? n === "subdued" ? `${Vu}` : `${Bu}` : n === "subdued" ? `${Wu}` : `${$u}`, si = (t) => {
|
|
1499
1516
|
switch (t) {
|
|
1500
1517
|
case "default":
|
|
1501
1518
|
return ai;
|
|
1502
1519
|
case "primary":
|
|
1503
|
-
return
|
|
1520
|
+
return Uu;
|
|
1504
1521
|
case "primary-danger":
|
|
1505
|
-
return
|
|
1522
|
+
return Yu;
|
|
1506
1523
|
case "subdued":
|
|
1507
|
-
return
|
|
1524
|
+
return Gu;
|
|
1508
1525
|
default:
|
|
1509
1526
|
return ai;
|
|
1510
1527
|
}
|
|
1511
|
-
},
|
|
1528
|
+
}, Ku = `
|
|
1512
1529
|
jn:mr-2
|
|
1513
|
-
`,
|
|
1530
|
+
`, Zu = `
|
|
1514
1531
|
jn:mr-2
|
|
1515
|
-
`,
|
|
1532
|
+
`, Qu = (t) => t === "small" ? `${Ku}` : `${Zu}`, ci = (t) => t ? "in-progress" : "", qu = (t) => {
|
|
1516
1533
|
switch (t) {
|
|
1517
1534
|
case "default":
|
|
1518
1535
|
return "jn:text-theme-accent";
|
|
@@ -1523,7 +1540,7 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1523
1540
|
default:
|
|
1524
1541
|
return "";
|
|
1525
1542
|
}
|
|
1526
|
-
},
|
|
1543
|
+
}, Xu = V.forwardRef(
|
|
1527
1544
|
({
|
|
1528
1545
|
label: t,
|
|
1529
1546
|
title: n,
|
|
@@ -1539,12 +1556,12 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1539
1556
|
progressLabel: v = "",
|
|
1540
1557
|
...m
|
|
1541
1558
|
}, p) => {
|
|
1542
|
-
const g = n || t || "", b = c ? /* @__PURE__ */ H.jsx(
|
|
1559
|
+
const g = n || t || "", b = c ? /* @__PURE__ */ H.jsx(zu, { size: r === "small" ? "1.125rem" : "1.5rem", color: `${qu(e)}` }) : a ? /* @__PURE__ */ H.jsx(
|
|
1543
1560
|
jn,
|
|
1544
1561
|
{
|
|
1545
1562
|
icon: a,
|
|
1546
1563
|
title: g,
|
|
1547
|
-
className: `juno-button-icon ${t || u ?
|
|
1564
|
+
className: `juno-button-icon ${t || u ? Qu(r) : ""} `,
|
|
1548
1565
|
size: r === "small" ? "1.125rem" : "1.5rem"
|
|
1549
1566
|
}
|
|
1550
1567
|
) : null, x = c && v ? v : t || u, C = (F) => {
|
|
@@ -1603,8 +1620,8 @@ const Au = ({ icon: t, color: n, size: e, title: r, iconClassName: o, ...i }) =>
|
|
|
1603
1620
|
return i ? I : O;
|
|
1604
1621
|
}
|
|
1605
1622
|
);
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1623
|
+
Xu.displayName = "Button";
|
|
1624
|
+
const Ju = `
|
|
1608
1625
|
jn:text-theme-high
|
|
1609
1626
|
jn:text-base
|
|
1610
1627
|
jn:transform
|
|
@@ -1613,12 +1630,12 @@ const qu = `
|
|
|
1613
1630
|
jn:duration-100
|
|
1614
1631
|
jn:ease-in-out
|
|
1615
1632
|
jn:z-10
|
|
1616
|
-
`,
|
|
1633
|
+
`, ed = `
|
|
1617
1634
|
jn:absolute
|
|
1618
|
-
`,
|
|
1635
|
+
`, td = `
|
|
1619
1636
|
jn:scale-75
|
|
1620
1637
|
jn:-translate-y-[0.4375rem]
|
|
1621
|
-
`,
|
|
1638
|
+
`, nd = `
|
|
1622
1639
|
jn:inline-block
|
|
1623
1640
|
jn:w-1
|
|
1624
1641
|
jn:h-1
|
|
@@ -1627,10 +1644,10 @@ const qu = `
|
|
|
1627
1644
|
jn:ml-1
|
|
1628
1645
|
jn:mt-2
|
|
1629
1646
|
jn:bg-theme-required
|
|
1630
|
-
`,
|
|
1647
|
+
`, rd = `
|
|
1631
1648
|
jn:opacity-50
|
|
1632
1649
|
jn:cursor-not-allowed
|
|
1633
|
-
`,
|
|
1650
|
+
`, od = V.forwardRef(
|
|
1634
1651
|
({
|
|
1635
1652
|
text: t = "",
|
|
1636
1653
|
htmlFor: n,
|
|
@@ -1645,10 +1662,10 @@ const qu = `
|
|
|
1645
1662
|
{
|
|
1646
1663
|
className: `
|
|
1647
1664
|
juno-label
|
|
1648
|
-
${
|
|
1649
|
-
${i ? "juno-label-floating " +
|
|
1650
|
-
${a ? "juno-label-minimized " +
|
|
1651
|
-
${o ? "juno-label-disabled " +
|
|
1665
|
+
${Ju}
|
|
1666
|
+
${i ? "juno-label-floating " + ed : ""}
|
|
1667
|
+
${a ? "juno-label-minimized " + td : ""}
|
|
1668
|
+
${o ? "juno-label-disabled " + rd : ""}
|
|
1652
1669
|
${r}
|
|
1653
1670
|
`,
|
|
1654
1671
|
htmlFor: n,
|
|
@@ -1661,7 +1678,7 @@ const qu = `
|
|
|
1661
1678
|
{
|
|
1662
1679
|
className: `
|
|
1663
1680
|
juno-required
|
|
1664
|
-
${
|
|
1681
|
+
${nd}
|
|
1665
1682
|
`
|
|
1666
1683
|
}
|
|
1667
1684
|
) : ""
|
|
@@ -1669,9 +1686,9 @@ const qu = `
|
|
|
1669
1686
|
}
|
|
1670
1687
|
)
|
|
1671
1688
|
);
|
|
1672
|
-
|
|
1689
|
+
od.displayName = "Label";
|
|
1673
1690
|
me(void 0);
|
|
1674
|
-
const
|
|
1691
|
+
const id = 4, ad = 1, ld = {
|
|
1675
1692
|
base00: "var(--color-syntax-highlight-base00)",
|
|
1676
1693
|
// background
|
|
1677
1694
|
base01: "var(--color-syntax-highlight-base01)",
|
|
@@ -1702,7 +1719,7 @@ const rd = 4, od = 1, id = {
|
|
|
1702
1719
|
// collapsed icon, types: "boolean"
|
|
1703
1720
|
base0F: "var(--color-syntax-highlight-base0F)"
|
|
1704
1721
|
// copy icon, types: "integer"
|
|
1705
|
-
},
|
|
1722
|
+
}, sd = (t) => ({
|
|
1706
1723
|
background: t.base00,
|
|
1707
1724
|
ellipsis: t.base09,
|
|
1708
1725
|
brace: t.base07,
|
|
@@ -1739,13 +1756,13 @@ const rd = 4, od = 1, id = {
|
|
|
1739
1756
|
}
|
|
1740
1757
|
});
|
|
1741
1758
|
V.createContext({
|
|
1742
|
-
colors:
|
|
1743
|
-
indentWidth:
|
|
1744
|
-
expanded:
|
|
1759
|
+
colors: sd(ld),
|
|
1760
|
+
indentWidth: id,
|
|
1761
|
+
expanded: ad
|
|
1745
1762
|
});
|
|
1746
1763
|
const ga = typeof document < "u" ? V.useLayoutEffect : () => {
|
|
1747
1764
|
};
|
|
1748
|
-
function
|
|
1765
|
+
function cd(t) {
|
|
1749
1766
|
const n = ae(null);
|
|
1750
1767
|
return ga(() => {
|
|
1751
1768
|
n.current = t;
|
|
@@ -1782,23 +1799,23 @@ function dt(t) {
|
|
|
1782
1799
|
}
|
|
1783
1800
|
const lo = dt(function() {
|
|
1784
1801
|
return ao(/^Mac/i);
|
|
1785
|
-
}),
|
|
1802
|
+
}), ud = dt(function() {
|
|
1786
1803
|
return ao(/^iPhone/i);
|
|
1787
|
-
}),
|
|
1804
|
+
}), dd = dt(function() {
|
|
1788
1805
|
return ao(/^iPad/i) || // iPadOS 13 lies and says it's a Mac, but we can distinguish by detecting touch support.
|
|
1789
1806
|
lo() && navigator.maxTouchPoints > 1;
|
|
1790
|
-
}),
|
|
1791
|
-
return
|
|
1807
|
+
}), fd = dt(function() {
|
|
1808
|
+
return ud() || dd();
|
|
1792
1809
|
});
|
|
1793
1810
|
dt(function() {
|
|
1794
|
-
return lo() ||
|
|
1811
|
+
return lo() || fd();
|
|
1795
1812
|
});
|
|
1796
1813
|
dt(function() {
|
|
1797
|
-
return Qn(/AppleWebKit/i) && !
|
|
1814
|
+
return Qn(/AppleWebKit/i) && !pd();
|
|
1798
1815
|
});
|
|
1799
|
-
const
|
|
1816
|
+
const pd = dt(function() {
|
|
1800
1817
|
return Qn(/Chrome/i);
|
|
1801
|
-
}),
|
|
1818
|
+
}), md = dt(function() {
|
|
1802
1819
|
return Qn(/Android/i);
|
|
1803
1820
|
});
|
|
1804
1821
|
dt(function() {
|
|
@@ -1834,15 +1851,15 @@ function ya() {
|
|
|
1834
1851
|
removeAllGlobalListeners: r
|
|
1835
1852
|
};
|
|
1836
1853
|
}
|
|
1837
|
-
function
|
|
1838
|
-
return t.mozInputSource === 0 && t.isTrusted ? !0 :
|
|
1854
|
+
function hd(t) {
|
|
1855
|
+
return t.mozInputSource === 0 && t.isTrusted ? !0 : md() && t.pointerType ? t.type === "click" && t.buttons === 1 : t.detail === 0 && !t.pointerType;
|
|
1839
1856
|
}
|
|
1840
1857
|
function wa(t) {
|
|
1841
1858
|
let n = t;
|
|
1842
1859
|
return n.nativeEvent = t, n.isDefaultPrevented = () => n.defaultPrevented, n.isPropagationStopped = () => n.cancelBubble, n.persist = () => {
|
|
1843
1860
|
}, n;
|
|
1844
1861
|
}
|
|
1845
|
-
function
|
|
1862
|
+
function gd(t, n) {
|
|
1846
1863
|
Object.defineProperty(t, "target", {
|
|
1847
1864
|
value: n
|
|
1848
1865
|
}), Object.defineProperty(t, "currentTarget", {
|
|
@@ -1860,7 +1877,7 @@ function xa(t) {
|
|
|
1860
1877
|
r.observer && (r.observer.disconnect(), r.observer = null);
|
|
1861
1878
|
};
|
|
1862
1879
|
}, []);
|
|
1863
|
-
let e =
|
|
1880
|
+
let e = cd((r) => {
|
|
1864
1881
|
t?.(r);
|
|
1865
1882
|
});
|
|
1866
1883
|
return ce((r) => {
|
|
@@ -1898,28 +1915,28 @@ function xa(t) {
|
|
|
1898
1915
|
e
|
|
1899
1916
|
]);
|
|
1900
1917
|
}
|
|
1901
|
-
let
|
|
1902
|
-
const
|
|
1918
|
+
let vd = !1, un = null, $r = /* @__PURE__ */ new Set(), Xt = /* @__PURE__ */ new Map(), Dt = !1, Wr = !1;
|
|
1919
|
+
const bd = {
|
|
1903
1920
|
Tab: !0,
|
|
1904
1921
|
Escape: !0
|
|
1905
1922
|
};
|
|
1906
1923
|
function so(t, n) {
|
|
1907
1924
|
for (let e of $r) e(t, n);
|
|
1908
1925
|
}
|
|
1909
|
-
function
|
|
1926
|
+
function yd(t) {
|
|
1910
1927
|
return !(t.metaKey || !lo() && t.altKey || t.ctrlKey || t.key === "Control" || t.key === "Shift" || t.key === "Meta");
|
|
1911
1928
|
}
|
|
1912
1929
|
function Nn(t) {
|
|
1913
|
-
Dt = !0,
|
|
1930
|
+
Dt = !0, yd(t) && (un = "keyboard", so("keyboard", t));
|
|
1914
1931
|
}
|
|
1915
1932
|
function Qe(t) {
|
|
1916
1933
|
un = "pointer", (t.type === "mousedown" || t.type === "pointerdown") && (Dt = !0, so("pointer", t));
|
|
1917
1934
|
}
|
|
1918
1935
|
function Ea(t) {
|
|
1919
|
-
|
|
1936
|
+
hd(t) && (Dt = !0, un = "virtual");
|
|
1920
1937
|
}
|
|
1921
1938
|
function Sa(t) {
|
|
1922
|
-
t.target === window || t.target === document ||
|
|
1939
|
+
t.target === window || t.target === document || vd || !t.isTrusted || (!Dt && !Wr && (un = "virtual", so("virtual", t)), Dt = !1, Wr = !1);
|
|
1923
1940
|
}
|
|
1924
1941
|
function Ca() {
|
|
1925
1942
|
Dt = !1, Wr = !0;
|
|
@@ -1942,18 +1959,18 @@ const Oa = (t, n) => {
|
|
|
1942
1959
|
const e = Ct(t), r = vt(t);
|
|
1943
1960
|
n && r.removeEventListener("DOMContentLoaded", n), Xt.has(e) && (e.HTMLElement.prototype.focus = Xt.get(e).focus, r.removeEventListener("keydown", Nn, !0), r.removeEventListener("keyup", Nn, !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));
|
|
1944
1961
|
};
|
|
1945
|
-
function
|
|
1962
|
+
function wd(t) {
|
|
1946
1963
|
const n = vt(t);
|
|
1947
1964
|
let e;
|
|
1948
1965
|
return n.readyState !== "loading" ? Ur(t) : (e = () => {
|
|
1949
1966
|
Ur(t);
|
|
1950
1967
|
}, n.addEventListener("DOMContentLoaded", e)), () => Oa(t, e);
|
|
1951
1968
|
}
|
|
1952
|
-
typeof document < "u" &&
|
|
1969
|
+
typeof document < "u" && wd();
|
|
1953
1970
|
function Ma() {
|
|
1954
1971
|
return un !== "pointer";
|
|
1955
1972
|
}
|
|
1956
|
-
const
|
|
1973
|
+
const xd = /* @__PURE__ */ new Set([
|
|
1957
1974
|
"checkbox",
|
|
1958
1975
|
"radio",
|
|
1959
1976
|
"range",
|
|
@@ -1964,22 +1981,22 @@ const yd = /* @__PURE__ */ new Set([
|
|
|
1964
1981
|
"submit",
|
|
1965
1982
|
"reset"
|
|
1966
1983
|
]);
|
|
1967
|
-
function
|
|
1984
|
+
function Ed(t, n, e) {
|
|
1968
1985
|
let r = vt(e?.target);
|
|
1969
1986
|
const o = typeof window < "u" ? Ct(e?.target).HTMLInputElement : HTMLInputElement, i = typeof window < "u" ? Ct(e?.target).HTMLTextAreaElement : HTMLTextAreaElement, a = typeof window < "u" ? Ct(e?.target).HTMLElement : HTMLElement, l = typeof window < "u" ? Ct(e?.target).KeyboardEvent : KeyboardEvent;
|
|
1970
|
-
return t = t || r.activeElement instanceof o && !
|
|
1987
|
+
return t = t || r.activeElement instanceof o && !xd.has(r.activeElement.type) || r.activeElement instanceof i || r.activeElement instanceof a && r.activeElement.isContentEditable, !(t && n === "keyboard" && e instanceof l && !bd[e.key]);
|
|
1971
1988
|
}
|
|
1972
|
-
function
|
|
1989
|
+
function Sd(t, n, e) {
|
|
1973
1990
|
Ur(), we(() => {
|
|
1974
1991
|
let r = (o, i) => {
|
|
1975
|
-
|
|
1992
|
+
Ed(!!e?.isTextInput, o, i) && t(Ma());
|
|
1976
1993
|
};
|
|
1977
1994
|
return $r.add(r), () => {
|
|
1978
1995
|
$r.delete(r);
|
|
1979
1996
|
};
|
|
1980
1997
|
}, n);
|
|
1981
1998
|
}
|
|
1982
|
-
function
|
|
1999
|
+
function Cd(t) {
|
|
1983
2000
|
let { isDisabled: n, onFocus: e, onBlur: r, onFocusChange: o } = t;
|
|
1984
2001
|
const i = ce((s) => {
|
|
1985
2002
|
if (s.target === s.currentTarget)
|
|
@@ -2002,7 +2019,7 @@ function Ed(t) {
|
|
|
2002
2019
|
}
|
|
2003
2020
|
};
|
|
2004
2021
|
}
|
|
2005
|
-
function
|
|
2022
|
+
function Od(t) {
|
|
2006
2023
|
let { isDisabled: n, onBlurWithin: e, onFocusWithin: r, onFocusWithinChange: o } = t, i = ae({
|
|
2007
2024
|
isFocusWithin: !1
|
|
2008
2025
|
}), { addGlobalListener: a, removeAllGlobalListeners: l } = ya(), s = ce((v) => {
|
|
@@ -2023,7 +2040,7 @@ function Sd(t) {
|
|
|
2023
2040
|
let x = new m.defaultView.FocusEvent("blur", {
|
|
2024
2041
|
relatedTarget: b.target
|
|
2025
2042
|
});
|
|
2026
|
-
|
|
2043
|
+
gd(x, g);
|
|
2027
2044
|
let C = wa(x);
|
|
2028
2045
|
s(C);
|
|
2029
2046
|
}
|
|
@@ -2060,7 +2077,7 @@ function Yr() {
|
|
|
2060
2077
|
function ui(t) {
|
|
2061
2078
|
t.pointerType === "touch" && Yr();
|
|
2062
2079
|
}
|
|
2063
|
-
function
|
|
2080
|
+
function Md() {
|
|
2064
2081
|
if (!(typeof document > "u"))
|
|
2065
2082
|
return typeof PointerEvent < "u" ? document.addEventListener("pointerup", ui) : process.env.NODE_ENV === "test" && document.addEventListener("touchend", Yr), Cr++, () => {
|
|
2066
2083
|
Cr--, !(Cr > 0) && (typeof PointerEvent < "u" ? document.removeEventListener("pointerup", ui) : process.env.NODE_ENV === "test" && document.removeEventListener("touchend", Yr));
|
|
@@ -2073,7 +2090,7 @@ function qn(t) {
|
|
|
2073
2090
|
pointerType: "",
|
|
2074
2091
|
target: null
|
|
2075
2092
|
}).current;
|
|
2076
|
-
we(
|
|
2093
|
+
we(Md, []);
|
|
2077
2094
|
let { addGlobalListener: s, removeAllGlobalListeners: u } = ya(), { hoverProps: c, triggerHoverEnd: v } = Ce(() => {
|
|
2078
2095
|
let m = (b, x) => {
|
|
2079
2096
|
if (l.pointerType = x, o || x === "touch" || l.isHovered || !b.currentTarget.contains(b.target)) return;
|
|
@@ -2139,15 +2156,15 @@ function Xn(t = {}) {
|
|
|
2139
2156
|
}, [
|
|
2140
2157
|
u
|
|
2141
2158
|
]);
|
|
2142
|
-
|
|
2159
|
+
Sd((p) => {
|
|
2143
2160
|
o.current.isFocusVisible = p, u();
|
|
2144
2161
|
}, [], {
|
|
2145
2162
|
isTextInput: e
|
|
2146
2163
|
});
|
|
2147
|
-
let { focusProps: v } =
|
|
2164
|
+
let { focusProps: v } = Cd({
|
|
2148
2165
|
isDisabled: r,
|
|
2149
2166
|
onFocusChange: c
|
|
2150
|
-
}), { focusWithinProps: m } =
|
|
2167
|
+
}), { focusWithinProps: m } = Od({
|
|
2151
2168
|
isDisabled: !r,
|
|
2152
2169
|
onFocusWithinChange: c
|
|
2153
2170
|
});
|
|
@@ -2157,8 +2174,8 @@ function Xn(t = {}) {
|
|
|
2157
2174
|
focusProps: r ? m : v
|
|
2158
2175
|
};
|
|
2159
2176
|
}
|
|
2160
|
-
var
|
|
2161
|
-
let
|
|
2177
|
+
var Dd = Object.defineProperty, Td = (t, n, e) => n in t ? Dd(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Or = (t, n, e) => (Td(t, typeof n != "symbol" ? n + "" : n, e), e);
|
|
2178
|
+
let kd = class {
|
|
2162
2179
|
constructor() {
|
|
2163
2180
|
Or(this, "current", this.detect()), Or(this, "handoffState", "pending"), Or(this, "currentId", 0);
|
|
2164
2181
|
}
|
|
@@ -2186,7 +2203,7 @@ let Dd = class {
|
|
|
2186
2203
|
get isHandoffComplete() {
|
|
2187
2204
|
return this.handoffState === "complete";
|
|
2188
2205
|
}
|
|
2189
|
-
}, Mt = new
|
|
2206
|
+
}, Mt = new kd();
|
|
2190
2207
|
function dn(t) {
|
|
2191
2208
|
var n;
|
|
2192
2209
|
return Mt.isServer ? null : t == null ? document : (n = t?.ownerDocument) != null ? n : document;
|
|
@@ -2260,11 +2277,11 @@ let q = function(t) {
|
|
|
2260
2277
|
let n = yt(t);
|
|
2261
2278
|
return V.useCallback((...e) => n.current(...e), [n]);
|
|
2262
2279
|
};
|
|
2263
|
-
function
|
|
2280
|
+
function Id(t) {
|
|
2264
2281
|
let n = t.width / 2, e = t.height / 2;
|
|
2265
2282
|
return { top: t.clientY - e, right: t.clientX + n, bottom: t.clientY + e, left: t.clientX - n };
|
|
2266
2283
|
}
|
|
2267
|
-
function
|
|
2284
|
+
function Ad(t, n) {
|
|
2268
2285
|
return !(!t || !n || t.right < n.left || t.left > n.right || t.bottom < n.top || t.top > n.bottom);
|
|
2269
2286
|
}
|
|
2270
2287
|
function uo({ disabled: t = !1 } = {}) {
|
|
@@ -2277,8 +2294,8 @@ function uo({ disabled: t = !1 } = {}) {
|
|
|
2277
2294
|
let s = dn(l.currentTarget);
|
|
2278
2295
|
o.addEventListener(s, "pointerup", i, !1), o.addEventListener(s, "pointermove", (u) => {
|
|
2279
2296
|
if (n.current) {
|
|
2280
|
-
let c =
|
|
2281
|
-
r(
|
|
2297
|
+
let c = Id(u);
|
|
2298
|
+
r(Ad(c, n.current.getBoundingClientRect()));
|
|
2282
2299
|
}
|
|
2283
2300
|
}, !1), o.addEventListener(s, "pointercancel", i, !1);
|
|
2284
2301
|
}
|
|
@@ -2289,9 +2306,9 @@ function uo({ disabled: t = !1 } = {}) {
|
|
|
2289
2306
|
function Ie(t) {
|
|
2290
2307
|
return Ce(() => t, Object.values(t));
|
|
2291
2308
|
}
|
|
2292
|
-
let
|
|
2309
|
+
let Pd = me(void 0);
|
|
2293
2310
|
function er() {
|
|
2294
|
-
return ye(
|
|
2311
|
+
return ye(Pd);
|
|
2295
2312
|
}
|
|
2296
2313
|
function di(...t) {
|
|
2297
2314
|
return Array.from(new Set(t.flatMap((n) => typeof n == "string" ? n.split(" ") : []))).filter(Boolean).join(" ");
|
|
@@ -2304,13 +2321,13 @@ function Te(t, n, ...e) {
|
|
|
2304
2321
|
let r = new Error(`Tried to handle "${t}" but there is no handler defined. Only defined handlers are: ${Object.keys(n).map((o) => `"${o}"`).join(", ")}.`);
|
|
2305
2322
|
throw Error.captureStackTrace && Error.captureStackTrace(r, Te), r;
|
|
2306
2323
|
}
|
|
2307
|
-
var Tt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Tt || {}),
|
|
2324
|
+
var Tt = ((t) => (t[t.None = 0] = "None", t[t.RenderStrategy = 1] = "RenderStrategy", t[t.Static = 2] = "Static", t))(Tt || {}), jd = ((t) => (t[t.Unmount = 0] = "Unmount", t[t.Hidden = 1] = "Hidden", t))(jd || {});
|
|
2308
2325
|
function Ee() {
|
|
2309
|
-
let t =
|
|
2310
|
-
return ce((n) =>
|
|
2326
|
+
let t = Ld();
|
|
2327
|
+
return ce((n) => Nd({ mergeRefs: t, ...n }), [t]);
|
|
2311
2328
|
}
|
|
2312
|
-
function
|
|
2313
|
-
l = l ??
|
|
2329
|
+
function Nd({ ourProps: t, theirProps: n, slot: e, defaultTag: r, features: o, visible: i = !0, name: a, mergeRefs: l }) {
|
|
2330
|
+
l = l ?? _d;
|
|
2314
2331
|
let s = Ta(n, t);
|
|
2315
2332
|
if (i) return En(s, e, r, a, l);
|
|
2316
2333
|
let u = o ?? 0;
|
|
@@ -2340,7 +2357,7 @@ function En(t, n = {}, e, r, o) {
|
|
|
2340
2357
|
for (let g of p) v[`data-${g}`] = "";
|
|
2341
2358
|
}
|
|
2342
2359
|
}
|
|
2343
|
-
if (Tn(i) && (Object.keys(wt(s)).length > 0 || Object.keys(wt(v)).length > 0)) if (!no(c) || Array.isArray(c) && c.length > 1 ||
|
|
2360
|
+
if (Tn(i) && (Object.keys(wt(s)).length > 0 || Object.keys(wt(v)).length > 0)) if (!no(c) || Array.isArray(c) && c.length > 1 || Fd(c)) {
|
|
2344
2361
|
if (Object.keys(wt(s)).length > 0) throw new Error(['Passing props on "Fragment"!', "", `The current component <${r} /> is rendering a "Fragment".`, "However we need to passthrough the following props:", Object.keys(wt(s)).concat(Object.keys(wt(v))).map((m) => ` - ${m}`).join(`
|
|
2345
2362
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".', "Render a single element as the child so that we can forward the props onto that element."].map((m) => ` - ${m}`).join(`
|
|
2346
2363
|
`)].join(`
|
|
@@ -2348,11 +2365,11 @@ function En(t, n = {}, e, r, o) {
|
|
|
2348
2365
|
} else {
|
|
2349
2366
|
let m = c.props, p = m?.className, g = typeof p == "function" ? (...C) => di(p(...C), s.className) : di(p, s.className), b = g ? { className: g } : {}, x = Ta(c.props, wt(Mr(s, ["ref"])));
|
|
2350
2367
|
for (let C in v) C in x && delete v[C];
|
|
2351
|
-
return fa(c, Object.assign({}, x, v, u, { ref: o(
|
|
2368
|
+
return fa(c, Object.assign({}, x, v, u, { ref: o(Rd(c), u.ref) }, b));
|
|
2352
2369
|
}
|
|
2353
2370
|
return ms(i, Object.assign({}, Mr(s, ["ref"]), !Tn(i) && u, !Tn(i) && v), c);
|
|
2354
2371
|
}
|
|
2355
|
-
function
|
|
2372
|
+
function Ld() {
|
|
2356
2373
|
let t = ae([]), n = ce((e) => {
|
|
2357
2374
|
for (let r of t.current) r != null && (typeof r == "function" ? r(e) : r.current = e);
|
|
2358
2375
|
}, []);
|
|
@@ -2360,7 +2377,7 @@ function jd() {
|
|
|
2360
2377
|
if (!e.every((r) => r == null)) return t.current = e, n;
|
|
2361
2378
|
};
|
|
2362
2379
|
}
|
|
2363
|
-
function
|
|
2380
|
+
function _d(...t) {
|
|
2364
2381
|
return t.every((n) => n == null) ? void 0 : (n) => {
|
|
2365
2382
|
for (let e of t) e != null && (typeof e == "function" ? e(n) : e.current = n);
|
|
2366
2383
|
};
|
|
@@ -2408,13 +2425,13 @@ function Mr(t, n = []) {
|
|
|
2408
2425
|
for (let r of n) r in e && delete e[r];
|
|
2409
2426
|
return e;
|
|
2410
2427
|
}
|
|
2411
|
-
function
|
|
2428
|
+
function Rd(t) {
|
|
2412
2429
|
return V.version.split(".")[0] >= "19" ? t.props.ref : t.ref;
|
|
2413
2430
|
}
|
|
2414
2431
|
function Tn(t) {
|
|
2415
2432
|
return t === ut || t === Symbol.for("react.fragment");
|
|
2416
2433
|
}
|
|
2417
|
-
function
|
|
2434
|
+
function Fd(t) {
|
|
2418
2435
|
return Tn(t.type);
|
|
2419
2436
|
}
|
|
2420
2437
|
function ka(t, n, e) {
|
|
@@ -2434,9 +2451,9 @@ function Pa(t, n) {
|
|
|
2434
2451
|
}
|
|
2435
2452
|
function ja(t, n, e) {
|
|
2436
2453
|
if (Array.isArray(e)) for (let [r, o] of e.entries()) ja(t, Pa(n, r.toString()), o);
|
|
2437
|
-
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, ""]) :
|
|
2454
|
+
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, ""]) : zd(e) && !no(e) && Aa(e, n, t);
|
|
2438
2455
|
}
|
|
2439
|
-
function
|
|
2456
|
+
function Hd(t) {
|
|
2440
2457
|
var n, e;
|
|
2441
2458
|
let r = (n = t?.form) != null ? n : t.closest("form");
|
|
2442
2459
|
if (r) {
|
|
@@ -2447,21 +2464,21 @@ function Rd(t) {
|
|
|
2447
2464
|
(e = r.requestSubmit) == null || e.call(r);
|
|
2448
2465
|
}
|
|
2449
2466
|
}
|
|
2450
|
-
function
|
|
2467
|
+
function zd(t) {
|
|
2451
2468
|
if (Object.prototype.toString.call(t) !== "[object Object]") return !1;
|
|
2452
2469
|
let n = Object.getPrototypeOf(t);
|
|
2453
2470
|
return n === null || Object.getPrototypeOf(n) === null;
|
|
2454
2471
|
}
|
|
2455
|
-
let
|
|
2472
|
+
let Bd = "span";
|
|
2456
2473
|
var fo = ((t) => (t[t.None = 1] = "None", t[t.Focusable = 2] = "Focusable", t[t.Hidden = 4] = "Hidden", t))(fo || {});
|
|
2457
|
-
function
|
|
2474
|
+
function Vd(t, n) {
|
|
2458
2475
|
var e;
|
|
2459
2476
|
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" } } };
|
|
2460
|
-
return Ee()({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
2477
|
+
return Ee()({ ourProps: i, theirProps: o, slot: {}, defaultTag: Bd, name: "Hidden" });
|
|
2461
2478
|
}
|
|
2462
|
-
let Na = Se(
|
|
2463
|
-
function
|
|
2464
|
-
let n = ye(
|
|
2479
|
+
let Na = Se(Vd), $d = me(null);
|
|
2480
|
+
function Wd({ children: t }) {
|
|
2481
|
+
let n = ye($d);
|
|
2465
2482
|
if (!n) return V.createElement(V.Fragment, null, t);
|
|
2466
2483
|
let { target: e } = n;
|
|
2467
2484
|
return e ? oo(V.createElement(V.Fragment, null, t), e) : null;
|
|
@@ -2470,9 +2487,9 @@ function La({ data: t, form: n, disabled: e, onReset: r, overrides: o }) {
|
|
|
2470
2487
|
let [i, a] = be(null), l = bt();
|
|
2471
2488
|
return we(() => {
|
|
2472
2489
|
if (r && i) return l.addEventListener(i, "reset", r);
|
|
2473
|
-
}, [i, n, r]), V.createElement(
|
|
2490
|
+
}, [i, n, r]), V.createElement(Wd, null, V.createElement(Ud, { setForm: a, formId: n }), Aa(t).map(([s, u]) => V.createElement(Na, { features: fo.Hidden, ...wt({ key: s, as: "input", type: "hidden", hidden: !0, readOnly: !0, form: n, disabled: e, name: s, value: u, ...o }) })));
|
|
2474
2491
|
}
|
|
2475
|
-
function
|
|
2492
|
+
function Ud({ setForm: t, formId: n }) {
|
|
2476
2493
|
return we(() => {
|
|
2477
2494
|
if (n) {
|
|
2478
2495
|
let e = document.getElementById(n);
|
|
@@ -2484,9 +2501,9 @@ function $d({ setForm: t, formId: n }) {
|
|
|
2484
2501
|
r && t(r);
|
|
2485
2502
|
} });
|
|
2486
2503
|
}
|
|
2487
|
-
let
|
|
2504
|
+
let Yd = me(void 0);
|
|
2488
2505
|
function po() {
|
|
2489
|
-
return ye(
|
|
2506
|
+
return ye(Yd);
|
|
2490
2507
|
}
|
|
2491
2508
|
function _a(t) {
|
|
2492
2509
|
return typeof t != "object" || t === null ? !1 : "nodeType" in t;
|
|
@@ -2500,10 +2517,10 @@ function et(t) {
|
|
|
2500
2517
|
function pt(t) {
|
|
2501
2518
|
return tr(t) && "tabIndex" in t;
|
|
2502
2519
|
}
|
|
2503
|
-
function
|
|
2520
|
+
function Gd(t) {
|
|
2504
2521
|
return tr(t) && "style" in t;
|
|
2505
2522
|
}
|
|
2506
|
-
function
|
|
2523
|
+
function Kd(t) {
|
|
2507
2524
|
return et(t) && t.nodeName === "IFRAME";
|
|
2508
2525
|
}
|
|
2509
2526
|
function Rn(t) {
|
|
@@ -2512,22 +2529,22 @@ function Rn(t) {
|
|
|
2512
2529
|
function fi(t) {
|
|
2513
2530
|
return et(t) && t.nodeName === "LABEL";
|
|
2514
2531
|
}
|
|
2515
|
-
function
|
|
2532
|
+
function Zd(t) {
|
|
2516
2533
|
return et(t) && t.nodeName === "FIELDSET";
|
|
2517
2534
|
}
|
|
2518
2535
|
function Ra(t) {
|
|
2519
2536
|
return et(t) && t.nodeName === "LEGEND";
|
|
2520
2537
|
}
|
|
2521
|
-
function
|
|
2538
|
+
function Qd(t) {
|
|
2522
2539
|
return tr(t) ? t.matches('a[href],audio[controls],button,details,embed,iframe,img[usemap],input:not([type="hidden"]),label,select,textarea,video[controls]') : !1;
|
|
2523
2540
|
}
|
|
2524
2541
|
function pi(t) {
|
|
2525
2542
|
let n = t.parentElement, e = null;
|
|
2526
|
-
for (; n && !
|
|
2543
|
+
for (; n && !Zd(n); ) Ra(n) && (e = n), n = n.parentElement;
|
|
2527
2544
|
let r = n?.getAttribute("disabled") === "";
|
|
2528
|
-
return r &&
|
|
2545
|
+
return r && qd(e) ? !1 : r;
|
|
2529
2546
|
}
|
|
2530
|
-
function
|
|
2547
|
+
function qd(t) {
|
|
2531
2548
|
if (!t) return !1;
|
|
2532
2549
|
let n = t.previousElementSibling;
|
|
2533
2550
|
for (; n !== null; ) {
|
|
@@ -2537,7 +2554,7 @@ function Zd(t) {
|
|
|
2537
2554
|
return !0;
|
|
2538
2555
|
}
|
|
2539
2556
|
let Fa = Symbol();
|
|
2540
|
-
function
|
|
2557
|
+
function Xd(t, n = !0) {
|
|
2541
2558
|
return Object.assign(t, { [Fa]: n });
|
|
2542
2559
|
}
|
|
2543
2560
|
function ke(...t) {
|
|
@@ -2564,7 +2581,7 @@ function za() {
|
|
|
2564
2581
|
var t, n;
|
|
2565
2582
|
return (n = (t = ye(nr)) == null ? void 0 : t.value) != null ? n : void 0;
|
|
2566
2583
|
}
|
|
2567
|
-
function
|
|
2584
|
+
function Jd() {
|
|
2568
2585
|
let [t, n] = be([]);
|
|
2569
2586
|
return [t.length > 0 ? t.join(" ") : void 0, Ce(() => function(e) {
|
|
2570
2587
|
let r = q((i) => (n((a) => [...a, i]), () => n((a) => {
|
|
@@ -2574,15 +2591,15 @@ function qd() {
|
|
|
2574
2591
|
return V.createElement(nr.Provider, { value: o }, e.children);
|
|
2575
2592
|
}, [n])];
|
|
2576
2593
|
}
|
|
2577
|
-
let
|
|
2578
|
-
function
|
|
2594
|
+
let ef = "p";
|
|
2595
|
+
function tf(t, n) {
|
|
2579
2596
|
let e = Ae(), r = er(), { id: o = `headlessui-description-${e}`, ...i } = t, a = Ha(), l = ke(n);
|
|
2580
2597
|
ve(() => a.register(o), [o, a.register]);
|
|
2581
2598
|
let s = Ie({ ...a.slot, disabled: r || !1 }), u = { ref: l, ...a.props, id: o };
|
|
2582
|
-
return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag:
|
|
2599
|
+
return Ee()({ ourProps: u, theirProps: i, slot: s, defaultTag: ef, name: a.name || "Description" });
|
|
2583
2600
|
}
|
|
2584
|
-
let
|
|
2585
|
-
Object.assign(
|
|
2601
|
+
let nf = Se(tf);
|
|
2602
|
+
Object.assign(nf, {});
|
|
2586
2603
|
var te = ((t) => (t.Space = " ", t.Enter = "Enter", t.Escape = "Escape", t.Backspace = "Backspace", t.Delete = "Delete", t.ArrowLeft = "ArrowLeft", t.ArrowUp = "ArrowUp", t.ArrowRight = "ArrowRight", t.ArrowDown = "ArrowDown", t.Home = "Home", t.End = "End", t.PageUp = "PageUp", t.PageDown = "PageDown", t.Tab = "Tab", t))(te || {});
|
|
2587
2604
|
let rr = me(null);
|
|
2588
2605
|
rr.displayName = "LabelContext";
|
|
@@ -2609,14 +2626,14 @@ function or({ inherit: t = !1 } = {}) {
|
|
|
2609
2626
|
return V.createElement(rr.Provider, { value: l }, i.children);
|
|
2610
2627
|
}, [r])];
|
|
2611
2628
|
}
|
|
2612
|
-
let
|
|
2613
|
-
function
|
|
2629
|
+
let rf = "label";
|
|
2630
|
+
function of(t, n) {
|
|
2614
2631
|
var e;
|
|
2615
2632
|
let r = Ae(), o = mo(), i = po(), a = er(), { id: l = `headlessui-label-${r}`, htmlFor: s = i ?? ((e = o.props) == null ? void 0 : e.htmlFor), passive: u = !1, ...c } = t, v = ke(n);
|
|
2616
2633
|
ve(() => o.register(l), [l, o.register]);
|
|
2617
2634
|
let m = q((b) => {
|
|
2618
2635
|
let x = b.currentTarget;
|
|
2619
|
-
if (!(b.target !== b.currentTarget &&
|
|
2636
|
+
if (!(b.target !== b.currentTarget && Qd(b.target)) && (fi(x) && b.preventDefault(), o.props && "onClick" in o.props && typeof o.props.onClick == "function" && o.props.onClick(b), fi(x))) {
|
|
2620
2637
|
let C = document.getElementById(x.htmlFor);
|
|
2621
2638
|
if (C) {
|
|
2622
2639
|
let O = C.getAttribute("disabled");
|
|
@@ -2627,9 +2644,9 @@ function nf(t, n) {
|
|
|
2627
2644
|
}
|
|
2628
2645
|
}
|
|
2629
2646
|
}), p = Ie({ ...o.slot, disabled: a || !1 }), g = { ref: v, ...o.props, id: l, htmlFor: s, onClick: m };
|
|
2630
|
-
return u && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in c && delete c.onClick), Ee()({ ourProps: g, theirProps: c, slot: p, defaultTag: s ?
|
|
2647
|
+
return u && ("onClick" in g && (delete g.htmlFor, delete g.onClick), "onClick" in c && delete c.onClick), Ee()({ ourProps: g, theirProps: c, slot: p, defaultTag: s ? rf : "div", name: o.name || "Label" });
|
|
2631
2648
|
}
|
|
2632
|
-
let
|
|
2649
|
+
let af = Se(of), Ba = Object.assign(af, {});
|
|
2633
2650
|
function _t(t, n, e) {
|
|
2634
2651
|
let r = e.initialDeps ?? [], o;
|
|
2635
2652
|
function i() {
|
|
@@ -2670,7 +2687,7 @@ function mi(t, n) {
|
|
|
2670
2687
|
throw new Error("Unexpected undefined");
|
|
2671
2688
|
return t;
|
|
2672
2689
|
}
|
|
2673
|
-
const
|
|
2690
|
+
const lf = (t, n) => Math.abs(t - n) < 1.01, sf = (t, n, e) => {
|
|
2674
2691
|
let r;
|
|
2675
2692
|
return function(...o) {
|
|
2676
2693
|
t.clearTimeout(r), r = t.setTimeout(() => n.apply(this, o), e);
|
|
@@ -2678,12 +2695,12 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2678
2695
|
}, hi = (t) => {
|
|
2679
2696
|
const { offsetWidth: n, offsetHeight: e } = t;
|
|
2680
2697
|
return { width: n, height: e };
|
|
2681
|
-
},
|
|
2698
|
+
}, cf = (t) => t, uf = (t) => {
|
|
2682
2699
|
const n = Math.max(t.startIndex - t.overscan, 0), e = Math.min(t.endIndex + t.overscan, t.count - 1), r = [];
|
|
2683
2700
|
for (let o = n; o <= e; o++)
|
|
2684
2701
|
r.push(o);
|
|
2685
2702
|
return r;
|
|
2686
|
-
},
|
|
2703
|
+
}, df = (t, n) => {
|
|
2687
2704
|
const e = t.scrollElement;
|
|
2688
2705
|
if (!e)
|
|
2689
2706
|
return;
|
|
@@ -2716,7 +2733,7 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2716
2733
|
};
|
|
2717
2734
|
}, gi = {
|
|
2718
2735
|
passive: !0
|
|
2719
|
-
}, vi = typeof window > "u" ? !0 : "onscrollend" in window,
|
|
2736
|
+
}, vi = typeof window > "u" ? !0 : "onscrollend" in window, ff = (t, n) => {
|
|
2720
2737
|
const e = t.scrollElement;
|
|
2721
2738
|
if (!e)
|
|
2722
2739
|
return;
|
|
@@ -2725,7 +2742,7 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2725
2742
|
return;
|
|
2726
2743
|
let o = 0;
|
|
2727
2744
|
const i = t.options.useScrollendEvent && vi ? () => {
|
|
2728
|
-
} :
|
|
2745
|
+
} : sf(
|
|
2729
2746
|
r,
|
|
2730
2747
|
() => {
|
|
2731
2748
|
n(o, !1);
|
|
@@ -2740,7 +2757,7 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2740
2757
|
return u && e.addEventListener("scrollend", s, gi), () => {
|
|
2741
2758
|
e.removeEventListener("scroll", l), u && e.removeEventListener("scrollend", s);
|
|
2742
2759
|
};
|
|
2743
|
-
},
|
|
2760
|
+
}, pf = (t, n, e) => {
|
|
2744
2761
|
if (n?.borderBoxSize) {
|
|
2745
2762
|
const r = n.borderBoxSize[0];
|
|
2746
2763
|
if (r)
|
|
@@ -2749,7 +2766,7 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2749
2766
|
);
|
|
2750
2767
|
}
|
|
2751
2768
|
return t[e.options.horizontal ? "offsetWidth" : "offsetHeight"];
|
|
2752
|
-
},
|
|
2769
|
+
}, mf = (t, {
|
|
2753
2770
|
adjustments: n = 0,
|
|
2754
2771
|
behavior: e
|
|
2755
2772
|
}, r) => {
|
|
@@ -2760,7 +2777,7 @@ const of = (t, n) => Math.abs(t - n) < 1.01, af = (t, n, e) => {
|
|
|
2760
2777
|
behavior: e
|
|
2761
2778
|
});
|
|
2762
2779
|
};
|
|
2763
|
-
class
|
|
2780
|
+
class hf {
|
|
2764
2781
|
constructor(n) {
|
|
2765
2782
|
this.unsubs = [], this.scrollElement = null, this.targetWindow = null, this.isScrolling = !1, this.measurementsCache = [], this.itemSizeCache = /* @__PURE__ */ new Map(), this.pendingMeasuredCacheIndexes = [], this.scrollRect = null, this.scrollOffset = null, this.scrollDirection = null, this.scrollAdjustments = 0, this.elementsCache = /* @__PURE__ */ new Map(), this.observer = /* @__PURE__ */ (() => {
|
|
2766
2783
|
let e = null;
|
|
@@ -2798,11 +2815,11 @@ class pf {
|
|
|
2798
2815
|
scrollPaddingStart: 0,
|
|
2799
2816
|
scrollPaddingEnd: 0,
|
|
2800
2817
|
horizontal: !1,
|
|
2801
|
-
getItemKey:
|
|
2802
|
-
rangeExtractor:
|
|
2818
|
+
getItemKey: cf,
|
|
2819
|
+
rangeExtractor: uf,
|
|
2803
2820
|
onChange: () => {
|
|
2804
2821
|
},
|
|
2805
|
-
measureElement:
|
|
2822
|
+
measureElement: pf,
|
|
2806
2823
|
initialRect: { width: 0, height: 0 },
|
|
2807
2824
|
scrollMargin: 0,
|
|
2808
2825
|
gap: 0,
|
|
@@ -2930,7 +2947,7 @@ class pf {
|
|
|
2930
2947
|
this.getScrollOffset(),
|
|
2931
2948
|
this.options.lanes
|
|
2932
2949
|
],
|
|
2933
|
-
(e, r, o, i) => this.range = e.length > 0 && r > 0 ?
|
|
2950
|
+
(e, r, o, i) => this.range = e.length > 0 && r > 0 ? gf({
|
|
2934
2951
|
measurements: e,
|
|
2935
2952
|
outerSize: r,
|
|
2936
2953
|
scrollOffset: o,
|
|
@@ -3064,7 +3081,7 @@ class pf {
|
|
|
3064
3081
|
console.warn("Failed to get offset for index:", e);
|
|
3065
3082
|
return;
|
|
3066
3083
|
}
|
|
3067
|
-
|
|
3084
|
+
lf(g[0], p) || s(m);
|
|
3068
3085
|
});
|
|
3069
3086
|
}, s = (u) => {
|
|
3070
3087
|
this.targetWindow && (i++, i < a ? (process.env.NODE_ENV !== "production" && this.options.debug && console.info("Schedule retry", i, a), this.targetWindow.requestAnimationFrame(() => l(u))) : console.warn(
|
|
@@ -3122,7 +3139,7 @@ const Va = (t, n, e, r) => {
|
|
|
3122
3139
|
}
|
|
3123
3140
|
return t > 0 ? t - 1 : 0;
|
|
3124
3141
|
};
|
|
3125
|
-
function
|
|
3142
|
+
function gf({
|
|
3126
3143
|
measurements: t,
|
|
3127
3144
|
outerSize: n,
|
|
3128
3145
|
scrollOffset: e,
|
|
@@ -3159,7 +3176,7 @@ function mf({
|
|
|
3159
3176
|
return { startIndex: a, endIndex: l };
|
|
3160
3177
|
}
|
|
3161
3178
|
const bi = typeof document < "u" ? d.useLayoutEffect : d.useEffect;
|
|
3162
|
-
function
|
|
3179
|
+
function vf(t) {
|
|
3163
3180
|
const n = d.useReducer(() => ({}), {})[1], e = {
|
|
3164
3181
|
...t,
|
|
3165
3182
|
onChange: (o, i) => {
|
|
@@ -3167,22 +3184,22 @@ function hf(t) {
|
|
|
3167
3184
|
i ? ze(n) : n(), (a = t.onChange) == null || a.call(t, o, i);
|
|
3168
3185
|
}
|
|
3169
3186
|
}, [r] = d.useState(
|
|
3170
|
-
() => new
|
|
3187
|
+
() => new hf(e)
|
|
3171
3188
|
);
|
|
3172
3189
|
return r.setOptions(e), bi(() => r._didMount(), []), bi(() => r._willUpdate()), r;
|
|
3173
3190
|
}
|
|
3174
|
-
function
|
|
3175
|
-
return
|
|
3176
|
-
observeElementRect:
|
|
3177
|
-
observeElementOffset:
|
|
3178
|
-
scrollToFn:
|
|
3191
|
+
function bf(t) {
|
|
3192
|
+
return vf({
|
|
3193
|
+
observeElementRect: df,
|
|
3194
|
+
observeElementOffset: ff,
|
|
3195
|
+
scrollToFn: mf,
|
|
3179
3196
|
...t
|
|
3180
3197
|
});
|
|
3181
3198
|
}
|
|
3182
|
-
function
|
|
3199
|
+
function yf(t, n) {
|
|
3183
3200
|
return t !== null && n !== null && typeof t == "object" && typeof n == "object" && "id" in t && "id" in n ? t.id === n.id : t === n;
|
|
3184
3201
|
}
|
|
3185
|
-
function $a(t =
|
|
3202
|
+
function $a(t = yf) {
|
|
3186
3203
|
return ce((n, e) => {
|
|
3187
3204
|
if (typeof t == "string") {
|
|
3188
3205
|
let r = t;
|
|
@@ -3229,7 +3246,7 @@ let Wa = class extends Map {
|
|
|
3229
3246
|
return n === void 0 && (n = this.factory(t), this.set(t, n)), n;
|
|
3230
3247
|
}
|
|
3231
3248
|
};
|
|
3232
|
-
var
|
|
3249
|
+
var wf = Object.defineProperty, xf = (t, n, e) => n in t ? wf(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Ef = (t, n, e) => (xf(t, n + "", e), e), Ua = (t, n, e) => {
|
|
3233
3250
|
if (!n.has(t)) throw TypeError("Cannot " + e);
|
|
3234
3251
|
}, Ke = (t, n, e) => (Ua(t, n, "read from private field"), e ? e.call(t) : n.get(t)), Dr = (t, n, e) => {
|
|
3235
3252
|
if (n.has(t)) throw TypeError("Cannot add the same private member more than once");
|
|
@@ -3237,7 +3254,7 @@ var bf = Object.defineProperty, yf = (t, n, e) => n in t ? bf(t, n, { enumerable
|
|
|
3237
3254
|
}, wi = (t, n, e, r) => (Ua(t, n, "write to private field"), n.set(t, e), e), nt, Qt, qt;
|
|
3238
3255
|
let ir = class {
|
|
3239
3256
|
constructor(t) {
|
|
3240
|
-
Dr(this, nt, {}), Dr(this, Qt, new Wa(() => /* @__PURE__ */ new Set())), Dr(this, qt, /* @__PURE__ */ new Set()),
|
|
3257
|
+
Dr(this, nt, {}), Dr(this, Qt, new Wa(() => /* @__PURE__ */ new Set())), Dr(this, qt, /* @__PURE__ */ new Set()), Ef(this, "disposables", Re()), wi(this, nt, t), Mt.isServer && this.disposables.microTask(() => {
|
|
3241
3258
|
this.dispose();
|
|
3242
3259
|
});
|
|
3243
3260
|
}
|
|
@@ -3295,8 +3312,8 @@ function Jt(t) {
|
|
|
3295
3312
|
n(...o), r.dispose(), r.microTask(e);
|
|
3296
3313
|
};
|
|
3297
3314
|
}
|
|
3298
|
-
var
|
|
3299
|
-
let
|
|
3315
|
+
var Sf = Object.defineProperty, Cf = (t, n, e) => n in t ? Sf(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Ei = (t, n, e) => (Cf(t, typeof n != "symbol" ? n + "" : n, e), e), ar = ((t) => (t[t.Push = 0] = "Push", t[t.Pop = 1] = "Pop", t))(ar || {});
|
|
3316
|
+
let Of = { 0(t, n) {
|
|
3300
3317
|
let e = n.id, r = t.stack, o = t.stack.indexOf(e);
|
|
3301
3318
|
if (o !== -1) {
|
|
3302
3319
|
let i = t.stack.slice();
|
|
@@ -3308,7 +3325,7 @@ let Sf = { 0(t, n) {
|
|
|
3308
3325
|
if (r === -1) return t;
|
|
3309
3326
|
let o = t.stack.slice();
|
|
3310
3327
|
return o.splice(r, 1), { ...t, stack: o };
|
|
3311
|
-
} },
|
|
3328
|
+
} }, Mf = class Ga extends ir {
|
|
3312
3329
|
constructor() {
|
|
3313
3330
|
super(...arguments), Ei(this, "actions", { push: (n) => this.send({ type: 0, id: n }), pop: (n) => this.send({ type: 1, id: n }) }), Ei(this, "selectors", { isTop: (n, e) => n.stack[n.stack.length - 1] === e, inStack: (n, e) => n.stack.includes(e) });
|
|
3314
3331
|
}
|
|
@@ -3316,12 +3333,12 @@ let Sf = { 0(t, n) {
|
|
|
3316
3333
|
return new Ga({ stack: [] });
|
|
3317
3334
|
}
|
|
3318
3335
|
reduce(n, e) {
|
|
3319
|
-
return Te(e.type,
|
|
3336
|
+
return Te(e.type, Of, n, e);
|
|
3320
3337
|
}
|
|
3321
3338
|
};
|
|
3322
|
-
const Nt = new Wa(() =>
|
|
3339
|
+
const Nt = new Wa(() => Mf.new());
|
|
3323
3340
|
var kr = { exports: {} }, Ir = {}, Si;
|
|
3324
|
-
function
|
|
3341
|
+
function Df() {
|
|
3325
3342
|
if (Si) return Ir;
|
|
3326
3343
|
Si = 1;
|
|
3327
3344
|
var t = V;
|
|
@@ -3372,7 +3389,7 @@ function Of() {
|
|
|
3372
3389
|
}, Ir;
|
|
3373
3390
|
}
|
|
3374
3391
|
var Ci = {}, Oi;
|
|
3375
|
-
function
|
|
3392
|
+
function Tf() {
|
|
3376
3393
|
return Oi || (Oi = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
3377
3394
|
function t(s, u) {
|
|
3378
3395
|
return s === u && (s !== 0 || 1 / s === 1 / u) || s !== s && u !== u;
|
|
@@ -3424,14 +3441,14 @@ function Mf() {
|
|
|
3424
3441
|
})()), Ci;
|
|
3425
3442
|
}
|
|
3426
3443
|
var Mi;
|
|
3427
|
-
function
|
|
3428
|
-
return Mi || (Mi = 1, process.env.NODE_ENV === "production" ? kr.exports =
|
|
3444
|
+
function kf() {
|
|
3445
|
+
return Mi || (Mi = 1, process.env.NODE_ENV === "production" ? kr.exports = Df() : kr.exports = Tf()), kr.exports;
|
|
3429
3446
|
}
|
|
3430
|
-
var
|
|
3447
|
+
var If = kf();
|
|
3431
3448
|
function se(t, n, e = Ya) {
|
|
3432
|
-
return
|
|
3449
|
+
return If.useSyncExternalStoreWithSelector(q((r) => t.subscribe(Af, r)), q(() => t.state), q(() => t.state), q(n), e);
|
|
3433
3450
|
}
|
|
3434
|
-
function
|
|
3451
|
+
function Af(t) {
|
|
3435
3452
|
return t;
|
|
3436
3453
|
}
|
|
3437
3454
|
function Ka(t, n) {
|
|
@@ -3495,13 +3512,13 @@ function bo(t, n, e) {
|
|
|
3495
3512
|
return () => i.dispose();
|
|
3496
3513
|
}, [n, r, t]);
|
|
3497
3514
|
}
|
|
3498
|
-
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(","),
|
|
3499
|
-
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 || {}),
|
|
3515
|
+
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(","), Pf = ["[data-autofocus]"].map((t) => `${t}:not([tabindex='-1'])`).join(",");
|
|
3516
|
+
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 || {}), jf = ((t) => (t[t.Error = 0] = "Error", t[t.Overflow = 1] = "Overflow", t[t.Success = 2] = "Success", t[t.Underflow = 3] = "Underflow", t))(jf || {}), Nf = ((t) => (t[t.Previous = -1] = "Previous", t[t.Next = 1] = "Next", t))(Nf || {});
|
|
3500
3517
|
function Za(t = document.body) {
|
|
3501
3518
|
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)));
|
|
3502
3519
|
}
|
|
3503
|
-
function
|
|
3504
|
-
return t == null ? [] : Array.from(t.querySelectorAll(
|
|
3520
|
+
function Lf(t = document.body) {
|
|
3521
|
+
return t == null ? [] : Array.from(t.querySelectorAll(Pf)).sort((n, e) => Math.sign((n.tabIndex || Number.MAX_SAFE_INTEGER) - (e.tabIndex || Number.MAX_SAFE_INTEGER)));
|
|
3505
3522
|
}
|
|
3506
3523
|
var lr = ((t) => (t[t.Strict = 0] = "Strict", t[t.Loose = 1] = "Loose", t))(lr || {});
|
|
3507
3524
|
function sr(t, n = 0) {
|
|
@@ -3520,22 +3537,22 @@ function sr(t, n = 0) {
|
|
|
3520
3537
|
function Qa(t) {
|
|
3521
3538
|
Re().nextFrame(() => {
|
|
3522
3539
|
let n = co(t);
|
|
3523
|
-
n && pt(n) && !sr(n, 0) &&
|
|
3540
|
+
n && pt(n) && !sr(n, 0) && Rf(t);
|
|
3524
3541
|
});
|
|
3525
3542
|
}
|
|
3526
|
-
var
|
|
3543
|
+
var _f = ((t) => (t[t.Keyboard = 0] = "Keyboard", t[t.Mouse = 1] = "Mouse", t))(_f || {});
|
|
3527
3544
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("keydown", (t) => {
|
|
3528
3545
|
t.metaKey || t.altKey || t.ctrlKey || (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
3529
3546
|
}, !0), document.addEventListener("click", (t) => {
|
|
3530
3547
|
t.detail === 1 ? delete document.documentElement.dataset.headlessuiFocusVisible : t.detail === 0 && (document.documentElement.dataset.headlessuiFocusVisible = "");
|
|
3531
3548
|
}, !0));
|
|
3532
|
-
function
|
|
3549
|
+
function Rf(t) {
|
|
3533
3550
|
t?.focus({ preventScroll: !0 });
|
|
3534
3551
|
}
|
|
3535
|
-
let
|
|
3536
|
-
function
|
|
3552
|
+
let Ff = ["textarea", "input"].join(",");
|
|
3553
|
+
function Hf(t) {
|
|
3537
3554
|
var n, e;
|
|
3538
|
-
return (e = (n = t?.matches) == null ? void 0 : n.call(t,
|
|
3555
|
+
return (e = (n = t?.matches) == null ? void 0 : n.call(t, Ff)) != null ? e : !1;
|
|
3539
3556
|
}
|
|
3540
3557
|
function cr(t, n = (e) => e) {
|
|
3541
3558
|
return t.slice().sort((e, r) => {
|
|
@@ -3546,10 +3563,10 @@ function cr(t, n = (e) => e) {
|
|
|
3546
3563
|
});
|
|
3547
3564
|
}
|
|
3548
3565
|
function qa(t, n, e = t === null ? document.body : _n(t)) {
|
|
3549
|
-
return
|
|
3566
|
+
return zf(Za(e), n, { relativeTo: t });
|
|
3550
3567
|
}
|
|
3551
|
-
function
|
|
3552
|
-
let i = Array.isArray(t) ? t.length > 0 ? _n(t[0]) : document : _n(t), a = Array.isArray(t) ? e ? cr(t) : t : n & 64 ?
|
|
3568
|
+
function zf(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] } = {}) {
|
|
3569
|
+
let i = Array.isArray(t) ? t.length > 0 ? _n(t[0]) : document : _n(t), a = Array.isArray(t) ? e ? cr(t) : t : n & 64 ? Lf(t) : Za(t);
|
|
3553
3570
|
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;
|
|
3554
3571
|
let l = (() => {
|
|
3555
3572
|
if (n & 5) return 1;
|
|
@@ -3572,16 +3589,16 @@ function Ff(t, n, { sorted: e = !0, relativeTo: r = null, skipElements: o = [] }
|
|
|
3572
3589
|
}
|
|
3573
3590
|
m = a[p], m?.focus(u), c += l;
|
|
3574
3591
|
} while (m !== co(m));
|
|
3575
|
-
return n & 6 &&
|
|
3592
|
+
return n & 6 && Hf(m) && m.select(), 2;
|
|
3576
3593
|
}
|
|
3577
3594
|
function Xa() {
|
|
3578
3595
|
return /iPhone/gi.test(window.navigator.platform) || /Mac/gi.test(window.navigator.platform) && window.navigator.maxTouchPoints > 0;
|
|
3579
3596
|
}
|
|
3580
|
-
function
|
|
3597
|
+
function Bf() {
|
|
3581
3598
|
return /Android/gi.test(window.navigator.userAgent);
|
|
3582
3599
|
}
|
|
3583
3600
|
function Kr() {
|
|
3584
|
-
return Xa() ||
|
|
3601
|
+
return Xa() || Bf();
|
|
3585
3602
|
}
|
|
3586
3603
|
function Rt(t, n, e, r) {
|
|
3587
3604
|
let o = yt(e);
|
|
@@ -3593,7 +3610,7 @@ function Rt(t, n, e, r) {
|
|
|
3593
3610
|
return document.addEventListener(n, i, r), () => document.removeEventListener(n, i, r);
|
|
3594
3611
|
}, [t, n, r]);
|
|
3595
3612
|
}
|
|
3596
|
-
function
|
|
3613
|
+
function Vf(t, n, e, r) {
|
|
3597
3614
|
let o = yt(e);
|
|
3598
3615
|
we(() => {
|
|
3599
3616
|
if (!t) return;
|
|
@@ -3629,13 +3646,13 @@ function yo(t, n, e) {
|
|
|
3629
3646
|
}, !0), Rt(t, "touchend", (l) => {
|
|
3630
3647
|
let s = { x: l.changedTouches[0].clientX, y: l.changedTouches[0].clientY };
|
|
3631
3648
|
if (!(Math.abs(s.x - a.current.x) >= ki || Math.abs(s.y - a.current.y) >= ki)) return o(l, () => pt(l.target) ? l.target : null);
|
|
3632
|
-
}, !0),
|
|
3649
|
+
}, !0), Vf(t, "blur", (l) => o(l, () => Kd(window.document.activeElement) ? window.document.activeElement : null), !0);
|
|
3633
3650
|
}
|
|
3634
3651
|
function kt(...t) {
|
|
3635
3652
|
return Ce(() => dn(...t), [...t]);
|
|
3636
3653
|
}
|
|
3637
|
-
var
|
|
3638
|
-
const Xe = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } },
|
|
3654
|
+
var $f = ((t) => (t[t.Ignore = 0] = "Ignore", t[t.Select = 1] = "Select", t[t.Close = 2] = "Close", t))($f || {});
|
|
3655
|
+
const Xe = { Ignore: { kind: 0 }, Select: (t) => ({ kind: 1, target: t }), Close: { kind: 2 } }, Wf = 200, Ii = 5;
|
|
3639
3656
|
function wo(t, { trigger: n, action: e, close: r, select: o }) {
|
|
3640
3657
|
let i = ae(null), a = ae(null), l = ae(null);
|
|
3641
3658
|
Rt(t && n !== null, "pointerdown", (s) => {
|
|
@@ -3649,7 +3666,7 @@ function wo(t, { trigger: n, action: e, close: r, select: o }) {
|
|
|
3649
3666
|
case 0:
|
|
3650
3667
|
return;
|
|
3651
3668
|
case 1: {
|
|
3652
|
-
s.timeStamp - v >
|
|
3669
|
+
s.timeStamp - v > Wf && (o(m.target), r());
|
|
3653
3670
|
break;
|
|
3654
3671
|
}
|
|
3655
3672
|
case 2: {
|
|
@@ -3659,7 +3676,7 @@ function wo(t, { trigger: n, action: e, close: r, select: o }) {
|
|
|
3659
3676
|
}
|
|
3660
3677
|
}, { capture: !0 });
|
|
3661
3678
|
}
|
|
3662
|
-
function
|
|
3679
|
+
function Uf(t, n, e, r) {
|
|
3663
3680
|
let o = yt(e);
|
|
3664
3681
|
we(() => {
|
|
3665
3682
|
t = t ?? window;
|
|
@@ -3671,7 +3688,7 @@ function $f(t, n, e, r) {
|
|
|
3671
3688
|
}
|
|
3672
3689
|
function Ja(t) {
|
|
3673
3690
|
let n = ae({ value: "", selectionStart: null, selectionEnd: null });
|
|
3674
|
-
return
|
|
3691
|
+
return Uf(t, "blur", (e) => {
|
|
3675
3692
|
let r = e.target;
|
|
3676
3693
|
Rn(r) && (n.current = { value: r.value, selectionStart: r.selectionStart, selectionEnd: r.selectionEnd });
|
|
3677
3694
|
}), q(() => {
|
|
@@ -3693,10 +3710,10 @@ function xo(t, n) {
|
|
|
3693
3710
|
if (typeof r == "string" && r.toLowerCase() === "button" || n?.tagName === "BUTTON" && !n.hasAttribute("type")) return "button";
|
|
3694
3711
|
}, [t.type, t.as, n]);
|
|
3695
3712
|
}
|
|
3696
|
-
function
|
|
3713
|
+
function Yf(t) {
|
|
3697
3714
|
return hs(t.subscribe, t.getSnapshot, t.getSnapshot);
|
|
3698
3715
|
}
|
|
3699
|
-
function
|
|
3716
|
+
function Gf(t, n) {
|
|
3700
3717
|
let e = t(), r = /* @__PURE__ */ new Set();
|
|
3701
3718
|
return { getSnapshot() {
|
|
3702
3719
|
return e;
|
|
@@ -3707,7 +3724,7 @@ function Uf(t, n) {
|
|
|
3707
3724
|
a && (e = a, r.forEach((l) => l()));
|
|
3708
3725
|
} };
|
|
3709
3726
|
}
|
|
3710
|
-
function
|
|
3727
|
+
function Kf() {
|
|
3711
3728
|
let t;
|
|
3712
3729
|
return { before({ doc: n }) {
|
|
3713
3730
|
var e;
|
|
@@ -3718,7 +3735,7 @@ function Yf() {
|
|
|
3718
3735
|
e.style(r, "paddingRight", `${i}px`);
|
|
3719
3736
|
} };
|
|
3720
3737
|
}
|
|
3721
|
-
function
|
|
3738
|
+
function Zf() {
|
|
3722
3739
|
return Xa() ? { before({ doc: t, d: n, meta: e }) {
|
|
3723
3740
|
function r(o) {
|
|
3724
3741
|
for (let i of e().containers) for (let a of i()) if (a.contains(o)) return !0;
|
|
@@ -3741,7 +3758,7 @@ function Gf() {
|
|
|
3741
3758
|
}
|
|
3742
3759
|
}, !0), n.group((l) => {
|
|
3743
3760
|
n.addEventListener(t, "touchstart", (s) => {
|
|
3744
|
-
if (l.dispose(), pt(s.target) &&
|
|
3761
|
+
if (l.dispose(), pt(s.target) && Gd(s.target)) if (r(s.target)) {
|
|
3745
3762
|
let u = s.target;
|
|
3746
3763
|
for (; u.parentElement && r(u.parentElement); ) u = u.parentElement;
|
|
3747
3764
|
l.style(u, "overscrollBehavior", "contain");
|
|
@@ -3764,7 +3781,7 @@ function Gf() {
|
|
|
3764
3781
|
});
|
|
3765
3782
|
} } : {};
|
|
3766
3783
|
}
|
|
3767
|
-
function
|
|
3784
|
+
function Qf() {
|
|
3768
3785
|
return { before({ doc: t, d: n }) {
|
|
3769
3786
|
n.style(t.documentElement, "overflow", "hidden");
|
|
3770
3787
|
} };
|
|
@@ -3774,7 +3791,7 @@ function Ai(t) {
|
|
|
3774
3791
|
for (let e of t) Object.assign(n, e(n));
|
|
3775
3792
|
return n;
|
|
3776
3793
|
}
|
|
3777
|
-
let Ot =
|
|
3794
|
+
let Ot = Gf(() => /* @__PURE__ */ new Map(), { PUSH(t, n) {
|
|
3778
3795
|
var e;
|
|
3779
3796
|
let r = (e = this.get(t)) != null ? e : { doc: t, count: 0, d: Re(), meta: /* @__PURE__ */ new Set(), computedMeta: {} };
|
|
3780
3797
|
return r.count++, r.meta.add(n), r.computedMeta = Ai(r.meta), this.set(t, r), this;
|
|
@@ -3784,7 +3801,7 @@ let Ot = Uf(() => /* @__PURE__ */ new Map(), { PUSH(t, n) {
|
|
|
3784
3801
|
}, SCROLL_PREVENT(t) {
|
|
3785
3802
|
let n = { doc: t.doc, d: t.d, meta() {
|
|
3786
3803
|
return t.computedMeta;
|
|
3787
|
-
} }, e = [
|
|
3804
|
+
} }, e = [Zf(), Kf(), Qf()];
|
|
3788
3805
|
e.forEach(({ before: r }) => r?.(n)), e.forEach(({ after: r }) => r?.(n));
|
|
3789
3806
|
}, SCROLL_ALLOW({ d: t }) {
|
|
3790
3807
|
t.dispose();
|
|
@@ -3799,15 +3816,15 @@ Ot.subscribe(() => {
|
|
|
3799
3816
|
(o && !r || !o && r) && Ot.dispatch(e.count > 0 ? "SCROLL_PREVENT" : "SCROLL_ALLOW", e), e.count === 0 && Ot.dispatch("TEARDOWN", e);
|
|
3800
3817
|
}
|
|
3801
3818
|
});
|
|
3802
|
-
function
|
|
3803
|
-
let r =
|
|
3819
|
+
function qf(t, n, e = () => ({ containers: [] })) {
|
|
3820
|
+
let r = Yf(Ot), o = n ? r.get(n) : void 0, i = o ? o.count > 0 : !1;
|
|
3804
3821
|
return ve(() => {
|
|
3805
3822
|
if (!(!n || !t)) return Ot.dispatch("PUSH", n, e), () => Ot.dispatch("POP", n, e);
|
|
3806
3823
|
}, [t, n]), i;
|
|
3807
3824
|
}
|
|
3808
3825
|
function Eo(t, n, e = () => [document.body]) {
|
|
3809
3826
|
let r = Ka(t, "scroll-lock");
|
|
3810
|
-
|
|
3827
|
+
qf(r, n, (o) => {
|
|
3811
3828
|
var i;
|
|
3812
3829
|
return { containers: [...(i = o.containers) != null ? i : [], e] };
|
|
3813
3830
|
});
|
|
@@ -3824,7 +3841,7 @@ function So() {
|
|
|
3824
3841
|
t.current = Pi(n);
|
|
3825
3842
|
} };
|
|
3826
3843
|
}
|
|
3827
|
-
function
|
|
3844
|
+
function Xf(t = 0) {
|
|
3828
3845
|
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), []);
|
|
3829
3846
|
return { flags: n, setFlag: r, addFlag: o, hasFlag: i, removeFlag: a, toggleFlag: l };
|
|
3830
3847
|
}
|
|
@@ -3833,14 +3850,14 @@ typeof process < "u" && typeof globalThis < "u" && typeof Element < "u" && ((ji
|
|
|
3833
3850
|
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(`
|
|
3834
3851
|
`)), [];
|
|
3835
3852
|
});
|
|
3836
|
-
var
|
|
3853
|
+
var Jf = ((t) => (t[t.None = 0] = "None", t[t.Closed = 1] = "Closed", t[t.Enter = 2] = "Enter", t[t.Leave = 4] = "Leave", t))(Jf || {});
|
|
3837
3854
|
function Co(t) {
|
|
3838
3855
|
let n = {};
|
|
3839
3856
|
for (let e in t) t[e] === !0 && (n[`data-${e}`] = "");
|
|
3840
3857
|
return n;
|
|
3841
3858
|
}
|
|
3842
3859
|
function Oo(t, n, e, r) {
|
|
3843
|
-
let [o, i] = be(e), { hasFlag: a, addFlag: l, removeFlag: s } =
|
|
3860
|
+
let [o, i] = be(e), { hasFlag: a, addFlag: l, removeFlag: s } = Xf(t && o ? 3 : 0), u = ae(!1), c = ae(!1), v = bt();
|
|
3844
3861
|
return ve(() => {
|
|
3845
3862
|
var m;
|
|
3846
3863
|
if (t) {
|
|
@@ -3848,26 +3865,26 @@ function Oo(t, n, e, r) {
|
|
|
3848
3865
|
e && l(3);
|
|
3849
3866
|
return;
|
|
3850
3867
|
}
|
|
3851
|
-
return (m = void 0) == null || m.call(r, e),
|
|
3868
|
+
return (m = void 0) == null || m.call(r, e), ep(n, { inFlight: u, prepare() {
|
|
3852
3869
|
c.current ? c.current = !1 : c.current = u.current, u.current = !0, !c.current && (e ? (l(3), s(4)) : (l(4), s(2)));
|
|
3853
3870
|
}, run() {
|
|
3854
3871
|
c.current ? e ? (s(3), l(4)) : (s(4), l(3)) : e ? s(1) : l(1);
|
|
3855
3872
|
}, done() {
|
|
3856
3873
|
var p;
|
|
3857
|
-
c.current &&
|
|
3874
|
+
c.current && rp(n) || (u.current = !1, s(7), e || i(!1), (p = void 0) == null || p.call(r, e));
|
|
3858
3875
|
} });
|
|
3859
3876
|
}
|
|
3860
3877
|
}, [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 }];
|
|
3861
3878
|
}
|
|
3862
|
-
function
|
|
3879
|
+
function ep(t, { prepare: n, run: e, done: r, inFlight: o }) {
|
|
3863
3880
|
let i = Re();
|
|
3864
|
-
return
|
|
3881
|
+
return np(t, { prepare: n, inFlight: o }), i.nextFrame(() => {
|
|
3865
3882
|
e(), i.requestAnimationFrame(() => {
|
|
3866
|
-
i.add(
|
|
3883
|
+
i.add(tp(t, r));
|
|
3867
3884
|
});
|
|
3868
3885
|
}), i.dispose;
|
|
3869
3886
|
}
|
|
3870
|
-
function
|
|
3887
|
+
function tp(t, n) {
|
|
3871
3888
|
var e, r;
|
|
3872
3889
|
let o = Re();
|
|
3873
3890
|
if (!t) return o.dispose;
|
|
@@ -3880,7 +3897,7 @@ function Jf(t, n) {
|
|
|
3880
3897
|
i || n();
|
|
3881
3898
|
}), o.dispose);
|
|
3882
3899
|
}
|
|
3883
|
-
function
|
|
3900
|
+
function np(t, { inFlight: n, prepare: e }) {
|
|
3884
3901
|
if (n != null && n.current) {
|
|
3885
3902
|
e();
|
|
3886
3903
|
return;
|
|
@@ -3888,7 +3905,7 @@ function ep(t, { inFlight: n, prepare: e }) {
|
|
|
3888
3905
|
let r = t.style.transition;
|
|
3889
3906
|
t.style.transition = "none", e(), t.offsetHeight, t.style.transition = r;
|
|
3890
3907
|
}
|
|
3891
|
-
function
|
|
3908
|
+
function rp(t) {
|
|
3892
3909
|
var n, e;
|
|
3893
3910
|
return ((e = (n = t.getAnimations) == null ? void 0 : n.call(t)) != null ? e : []).some((r) => r instanceof CSSTransition && r.playState !== "finished");
|
|
3894
3911
|
}
|
|
@@ -3940,7 +3957,7 @@ function at(t) {
|
|
|
3940
3957
|
function _i(t) {
|
|
3941
3958
|
return !ur() || typeof ShadowRoot > "u" ? !1 : t instanceof ShadowRoot || t instanceof Ye(t).ShadowRoot;
|
|
3942
3959
|
}
|
|
3943
|
-
const
|
|
3960
|
+
const op = /* @__PURE__ */ new Set(["inline", "contents"]);
|
|
3944
3961
|
function pn(t) {
|
|
3945
3962
|
const {
|
|
3946
3963
|
overflow: n,
|
|
@@ -3948,15 +3965,15 @@ function pn(t) {
|
|
|
3948
3965
|
overflowY: r,
|
|
3949
3966
|
display: o
|
|
3950
3967
|
} = Je(t);
|
|
3951
|
-
return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !
|
|
3968
|
+
return /auto|scroll|overlay|hidden|clip/.test(n + r + e) && !op.has(o);
|
|
3952
3969
|
}
|
|
3953
|
-
const
|
|
3954
|
-
function
|
|
3955
|
-
return
|
|
3970
|
+
const ip = /* @__PURE__ */ new Set(["table", "td", "th"]);
|
|
3971
|
+
function ap(t) {
|
|
3972
|
+
return ip.has(Vt(t));
|
|
3956
3973
|
}
|
|
3957
|
-
const
|
|
3974
|
+
const lp = [":popover-open", ":modal"];
|
|
3958
3975
|
function dr(t) {
|
|
3959
|
-
return
|
|
3976
|
+
return lp.some((n) => {
|
|
3960
3977
|
try {
|
|
3961
3978
|
return t.matches(n);
|
|
3962
3979
|
} catch {
|
|
@@ -3964,12 +3981,12 @@ function dr(t) {
|
|
|
3964
3981
|
}
|
|
3965
3982
|
});
|
|
3966
3983
|
}
|
|
3967
|
-
const
|
|
3984
|
+
const sp = ["transform", "translate", "scale", "rotate", "perspective"], cp = ["transform", "translate", "scale", "rotate", "perspective", "filter"], up = ["paint", "layout", "strict", "content"];
|
|
3968
3985
|
function Mo(t) {
|
|
3969
3986
|
const n = Do(), e = _e(t) ? Je(t) : t;
|
|
3970
|
-
return
|
|
3987
|
+
return sp.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) || cp.some((r) => (e.willChange || "").includes(r)) || up.some((r) => (e.contain || "").includes(r));
|
|
3971
3988
|
}
|
|
3972
|
-
function
|
|
3989
|
+
function dp(t) {
|
|
3973
3990
|
let n = ht(t);
|
|
3974
3991
|
for (; at(n) && !Bt(n); ) {
|
|
3975
3992
|
if (Mo(n))
|
|
@@ -3983,9 +4000,9 @@ function cp(t) {
|
|
|
3983
4000
|
function Do() {
|
|
3984
4001
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
3985
4002
|
}
|
|
3986
|
-
const
|
|
4003
|
+
const fp = /* @__PURE__ */ new Set(["html", "body", "#document"]);
|
|
3987
4004
|
function Bt(t) {
|
|
3988
|
-
return
|
|
4005
|
+
return fp.has(Vt(t));
|
|
3989
4006
|
}
|
|
3990
4007
|
function Je(t) {
|
|
3991
4008
|
return Ye(t).getComputedStyle(t);
|
|
@@ -4028,7 +4045,7 @@ function on(t, n, e) {
|
|
|
4028
4045
|
function Zr(t) {
|
|
4029
4046
|
return t.parent && Object.getPrototypeOf(t.parent) ? t.frameElement : null;
|
|
4030
4047
|
}
|
|
4031
|
-
function
|
|
4048
|
+
function pp() {
|
|
4032
4049
|
const t = navigator.userAgentData;
|
|
4033
4050
|
return t && Array.isArray(t.brands) ? t.brands.map((n) => {
|
|
4034
4051
|
let {
|
|
@@ -4041,12 +4058,12 @@ function dp() {
|
|
|
4041
4058
|
const It = Math.min, Ne = Math.max, an = Math.round, Sn = Math.floor, ot = (t) => ({
|
|
4042
4059
|
x: t,
|
|
4043
4060
|
y: t
|
|
4044
|
-
}),
|
|
4061
|
+
}), mp = {
|
|
4045
4062
|
left: "right",
|
|
4046
4063
|
right: "left",
|
|
4047
4064
|
bottom: "top",
|
|
4048
4065
|
top: "bottom"
|
|
4049
|
-
},
|
|
4066
|
+
}, hp = {
|
|
4050
4067
|
start: "end",
|
|
4051
4068
|
end: "start"
|
|
4052
4069
|
};
|
|
@@ -4068,48 +4085,48 @@ function rl(t) {
|
|
|
4068
4085
|
function ol(t) {
|
|
4069
4086
|
return t === "y" ? "height" : "width";
|
|
4070
4087
|
}
|
|
4071
|
-
const
|
|
4088
|
+
const gp = /* @__PURE__ */ new Set(["top", "bottom"]);
|
|
4072
4089
|
function ct(t) {
|
|
4073
|
-
return
|
|
4090
|
+
return gp.has(gt(t)) ? "y" : "x";
|
|
4074
4091
|
}
|
|
4075
4092
|
function il(t) {
|
|
4076
4093
|
return rl(ct(t));
|
|
4077
4094
|
}
|
|
4078
|
-
function
|
|
4095
|
+
function vp(t, n, e) {
|
|
4079
4096
|
e === void 0 && (e = !1);
|
|
4080
4097
|
const r = mn(t), o = il(t), i = ol(o);
|
|
4081
4098
|
let a = o === "x" ? r === (e ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4082
4099
|
return n.reference[i] > n.floating[i] && (a = zn(a)), [a, zn(a)];
|
|
4083
4100
|
}
|
|
4084
|
-
function
|
|
4101
|
+
function bp(t) {
|
|
4085
4102
|
const n = zn(t);
|
|
4086
4103
|
return [Qr(t), n, Qr(n)];
|
|
4087
4104
|
}
|
|
4088
4105
|
function Qr(t) {
|
|
4089
|
-
return t.replace(/start|end/g, (n) =>
|
|
4106
|
+
return t.replace(/start|end/g, (n) => hp[n]);
|
|
4090
4107
|
}
|
|
4091
|
-
const Fi = ["left", "right"], Hi = ["right", "left"],
|
|
4092
|
-
function
|
|
4108
|
+
const Fi = ["left", "right"], Hi = ["right", "left"], yp = ["top", "bottom"], wp = ["bottom", "top"];
|
|
4109
|
+
function xp(t, n, e) {
|
|
4093
4110
|
switch (t) {
|
|
4094
4111
|
case "top":
|
|
4095
4112
|
case "bottom":
|
|
4096
4113
|
return e ? n ? Hi : Fi : n ? Fi : Hi;
|
|
4097
4114
|
case "left":
|
|
4098
4115
|
case "right":
|
|
4099
|
-
return n ?
|
|
4116
|
+
return n ? yp : wp;
|
|
4100
4117
|
default:
|
|
4101
4118
|
return [];
|
|
4102
4119
|
}
|
|
4103
4120
|
}
|
|
4104
|
-
function
|
|
4121
|
+
function Ep(t, n, e, r) {
|
|
4105
4122
|
const o = mn(t);
|
|
4106
|
-
let i =
|
|
4123
|
+
let i = xp(gt(t), e === "start", r);
|
|
4107
4124
|
return o && (i = i.map((a) => a + "-" + o), n && (i = i.concat(i.map(Qr)))), i;
|
|
4108
4125
|
}
|
|
4109
4126
|
function zn(t) {
|
|
4110
|
-
return t.replace(/left|right|bottom|top/g, (n) =>
|
|
4127
|
+
return t.replace(/left|right|bottom|top/g, (n) => mp[n]);
|
|
4111
4128
|
}
|
|
4112
|
-
function
|
|
4129
|
+
function Sp(t) {
|
|
4113
4130
|
return {
|
|
4114
4131
|
top: 0,
|
|
4115
4132
|
right: 0,
|
|
@@ -4118,8 +4135,8 @@ function xp(t) {
|
|
|
4118
4135
|
...t
|
|
4119
4136
|
};
|
|
4120
4137
|
}
|
|
4121
|
-
function
|
|
4122
|
-
return typeof t != "number" ?
|
|
4138
|
+
function Cp(t) {
|
|
4139
|
+
return typeof t != "number" ? Sp(t) : {
|
|
4123
4140
|
top: t,
|
|
4124
4141
|
right: t,
|
|
4125
4142
|
bottom: t,
|
|
@@ -4155,7 +4172,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4155
4172
|
e === void 0 && (e = !0);
|
|
4156
4173
|
var o = n == null || (r = n.getAttribute) === null || r === void 0 ? void 0 : r.call(n, "inert"), i = o === "" || o === "true", a = i || e && n && t(n.parentNode);
|
|
4157
4174
|
return a;
|
|
4158
|
-
},
|
|
4175
|
+
}, Op = function(t) {
|
|
4159
4176
|
var n, e = t == null || (n = t.getAttribute) === null || n === void 0 ? void 0 : n.call(t, "contenteditable");
|
|
4160
4177
|
return e === "" || e === "true";
|
|
4161
4178
|
}, sl = function(t, n, e) {
|
|
@@ -4194,26 +4211,26 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4194
4211
|
}, ft = function(t) {
|
|
4195
4212
|
if (!t)
|
|
4196
4213
|
throw new Error("No node provided");
|
|
4197
|
-
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) ||
|
|
4198
|
-
},
|
|
4214
|
+
return t.tabIndex < 0 && (/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName) || Op(t)) && !ul(t) ? 0 : t.tabIndex;
|
|
4215
|
+
}, Mp = function(t, n) {
|
|
4199
4216
|
var e = ft(t);
|
|
4200
4217
|
return e < 0 && n && !ul(t) ? 0 : e;
|
|
4201
|
-
},
|
|
4218
|
+
}, Dp = function(t, n) {
|
|
4202
4219
|
return t.tabIndex === n.tabIndex ? t.documentOrder - n.documentOrder : t.tabIndex - n.tabIndex;
|
|
4203
4220
|
}, dl = function(t) {
|
|
4204
4221
|
return t.tagName === "INPUT";
|
|
4205
|
-
},
|
|
4222
|
+
}, Tp = function(t) {
|
|
4206
4223
|
return dl(t) && t.type === "hidden";
|
|
4207
|
-
},
|
|
4224
|
+
}, kp = function(t) {
|
|
4208
4225
|
var n = t.tagName === "DETAILS" && Array.prototype.slice.apply(t.children).some(function(e) {
|
|
4209
4226
|
return e.tagName === "SUMMARY";
|
|
4210
4227
|
});
|
|
4211
4228
|
return n;
|
|
4212
|
-
},
|
|
4229
|
+
}, Ip = function(t, n) {
|
|
4213
4230
|
for (var e = 0; e < t.length; e++)
|
|
4214
4231
|
if (t[e].checked && t[e].form === n)
|
|
4215
4232
|
return t[e];
|
|
4216
|
-
},
|
|
4233
|
+
}, Ap = function(t) {
|
|
4217
4234
|
if (!t.name)
|
|
4218
4235
|
return !0;
|
|
4219
4236
|
var n = t.form || $n(t), e = function(i) {
|
|
@@ -4227,13 +4244,13 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4227
4244
|
} catch (i) {
|
|
4228
4245
|
return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s", i.message), !1;
|
|
4229
4246
|
}
|
|
4230
|
-
var o =
|
|
4247
|
+
var o = Ip(r, t.form);
|
|
4231
4248
|
return !o || o === t;
|
|
4232
|
-
}, Ip = function(t) {
|
|
4233
|
-
return dl(t) && t.type === "radio";
|
|
4234
|
-
}, Ap = function(t) {
|
|
4235
|
-
return Ip(t) && !kp(t);
|
|
4236
4249
|
}, Pp = function(t) {
|
|
4250
|
+
return dl(t) && t.type === "radio";
|
|
4251
|
+
}, jp = function(t) {
|
|
4252
|
+
return Pp(t) && !Ap(t);
|
|
4253
|
+
}, Np = function(t) {
|
|
4237
4254
|
var n, e = t && $n(t), r = (n = e) === null || n === void 0 ? void 0 : n.host, o = !1;
|
|
4238
4255
|
if (e && e !== t) {
|
|
4239
4256
|
var i, a, l;
|
|
@@ -4246,7 +4263,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4246
4263
|
}, zi = function(t) {
|
|
4247
4264
|
var n = t.getBoundingClientRect(), e = n.width, r = n.height;
|
|
4248
4265
|
return e === 0 && r === 0;
|
|
4249
|
-
},
|
|
4266
|
+
}, Lp = function(t, n) {
|
|
4250
4267
|
var e = n.displayCheck, r = n.getShadowRoot;
|
|
4251
4268
|
if (getComputedStyle(t).visibility === "hidden")
|
|
4252
4269
|
return !0;
|
|
@@ -4263,14 +4280,14 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4263
4280
|
}
|
|
4264
4281
|
t = a;
|
|
4265
4282
|
}
|
|
4266
|
-
if (
|
|
4283
|
+
if (Np(t))
|
|
4267
4284
|
return !t.getClientRects().length;
|
|
4268
4285
|
if (e !== "legacy-full")
|
|
4269
4286
|
return !0;
|
|
4270
4287
|
} else if (e === "non-zero-area")
|
|
4271
4288
|
return zi(t);
|
|
4272
4289
|
return !1;
|
|
4273
|
-
},
|
|
4290
|
+
}, _p = function(t) {
|
|
4274
4291
|
if (/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))
|
|
4275
4292
|
for (var n = t.parentElement; n; ) {
|
|
4276
4293
|
if (n.tagName === "FIELDSET" && n.disabled) {
|
|
@@ -4288,17 +4305,17 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4288
4305
|
return !(n.disabled || // we must do an inert look up to filter out any elements inside an inert ancestor
|
|
4289
4306
|
// because we're limited in the type of selectors we can use in JSDom (see related
|
|
4290
4307
|
// note related to `candidateSelectors`)
|
|
4291
|
-
Wn(n) ||
|
|
4292
|
-
|
|
4308
|
+
Wn(n) || Tp(n) || Lp(n, t) || // For a details element with a summary, the summary element gets the focus
|
|
4309
|
+
kp(n) || _p(n));
|
|
4293
4310
|
}, qr = function(t, n) {
|
|
4294
|
-
return !(
|
|
4295
|
-
},
|
|
4311
|
+
return !(jp(n) || ft(n) < 0 || !Un(t, n));
|
|
4312
|
+
}, Rp = function(t) {
|
|
4296
4313
|
var n = parseInt(t.getAttribute("tabindex"), 10);
|
|
4297
4314
|
return !!(isNaN(n) || n >= 0);
|
|
4298
|
-
},
|
|
4315
|
+
}, Fp = function t(n) {
|
|
4299
4316
|
var e = [], r = [];
|
|
4300
4317
|
return n.forEach(function(o, i) {
|
|
4301
|
-
var a = !!o.scopeParent, l = a ? o.scopeParent : o, s =
|
|
4318
|
+
var a = !!o.scopeParent, l = a ? o.scopeParent : o, s = Mp(l, a), u = a ? t(o.candidates) : l;
|
|
4302
4319
|
s === 0 ? a ? e.push.apply(e, u) : e.push(l) : r.push({
|
|
4303
4320
|
documentOrder: i,
|
|
4304
4321
|
tabIndex: s,
|
|
@@ -4306,7 +4323,7 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4306
4323
|
isScope: a,
|
|
4307
4324
|
content: u
|
|
4308
4325
|
});
|
|
4309
|
-
}), r.sort(
|
|
4326
|
+
}), r.sort(Dp).reduce(function(o, i) {
|
|
4310
4327
|
return i.isScope ? o.push.apply(o, i.content) : o.push(i.content), o;
|
|
4311
4328
|
}, []).concat(e);
|
|
4312
4329
|
}, fl = function(t, n) {
|
|
@@ -4316,8 +4333,8 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4316
4333
|
filter: qr.bind(null, n),
|
|
4317
4334
|
flatten: !1,
|
|
4318
4335
|
getShadowRoot: n.getShadowRoot,
|
|
4319
|
-
shadowRootFilter:
|
|
4320
|
-
}) : e = sl(t, n.includeContainer, qr.bind(null, n)),
|
|
4336
|
+
shadowRootFilter: Rp
|
|
4337
|
+
}) : e = sl(t, n.includeContainer, qr.bind(null, n)), Fp(e);
|
|
4321
4338
|
}, pl = function(t, n) {
|
|
4322
4339
|
n = n || {};
|
|
4323
4340
|
var e;
|
|
@@ -4330,12 +4347,12 @@ var al = ["input:not([inert])", "select:not([inert])", "textarea:not([inert])",
|
|
|
4330
4347
|
if (n = n || {}, !t)
|
|
4331
4348
|
throw new Error("No node provided");
|
|
4332
4349
|
return At.call(t, Vn) === !1 ? !1 : qr(n, t);
|
|
4333
|
-
},
|
|
4350
|
+
}, Hp = /* @__PURE__ */ al.concat("iframe").join(","), kn = function(t, n) {
|
|
4334
4351
|
if (n = n || {}, !t)
|
|
4335
4352
|
throw new Error("No node provided");
|
|
4336
|
-
return At.call(t,
|
|
4353
|
+
return At.call(t, Hp) === !1 ? !1 : Un(n, t);
|
|
4337
4354
|
};
|
|
4338
|
-
const
|
|
4355
|
+
const zp = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4339
4356
|
__proto__: null,
|
|
4340
4357
|
focusable: pl,
|
|
4341
4358
|
getTabIndex: ft,
|
|
@@ -4391,7 +4408,7 @@ function Bi(t, n, e) {
|
|
|
4391
4408
|
}
|
|
4392
4409
|
return p;
|
|
4393
4410
|
}
|
|
4394
|
-
const
|
|
4411
|
+
const Bp = async (t, n, e) => {
|
|
4395
4412
|
const {
|
|
4396
4413
|
placement: r = "bottom",
|
|
4397
4414
|
strategy: o = "absolute",
|
|
@@ -4468,7 +4485,7 @@ async function pr(t, n) {
|
|
|
4468
4485
|
elementContext: v = "floating",
|
|
4469
4486
|
altBoundary: m = !1,
|
|
4470
4487
|
padding: p = 0
|
|
4471
|
-
} = $t(n, t), g =
|
|
4488
|
+
} = $t(n, t), g = Cp(p), b = l[m ? v === "floating" ? "reference" : "floating" : v], x = Bn(await i.getClippingRect({
|
|
4472
4489
|
element: (e = await (i.isElement == null ? void 0 : i.isElement(b))) == null || e ? b : b.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(l.floating)),
|
|
4473
4490
|
boundary: u,
|
|
4474
4491
|
rootBoundary: c,
|
|
@@ -4497,7 +4514,7 @@ async function pr(t, n) {
|
|
|
4497
4514
|
right: (F.right - x.right + g.right) / I.x
|
|
4498
4515
|
};
|
|
4499
4516
|
}
|
|
4500
|
-
const
|
|
4517
|
+
const Vp = function(t) {
|
|
4501
4518
|
return t === void 0 && (t = {}), {
|
|
4502
4519
|
name: "flip",
|
|
4503
4520
|
options: t,
|
|
@@ -4521,12 +4538,12 @@ const zp = function(t) {
|
|
|
4521
4538
|
} = $t(t, n);
|
|
4522
4539
|
if ((e = i.arrow) != null && e.alignmentOffset)
|
|
4523
4540
|
return {};
|
|
4524
|
-
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)] :
|
|
4525
|
-
!m && _ && R.push(...
|
|
4541
|
+
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)] : bp(l)), _ = g !== "none";
|
|
4542
|
+
!m && _ && R.push(...Ep(l, b, g, F));
|
|
4526
4543
|
const j = [l, ...R], T = await pr(n, x), N = [];
|
|
4527
4544
|
let S = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
4528
4545
|
if (c && N.push(T[C]), v) {
|
|
4529
|
-
const B =
|
|
4546
|
+
const B = vp(o, a, F);
|
|
4530
4547
|
N.push(T[B[0]], T[B[1]]);
|
|
4531
4548
|
}
|
|
4532
4549
|
if (S = [...S, {
|
|
@@ -4578,13 +4595,13 @@ const zp = function(t) {
|
|
|
4578
4595
|
return {};
|
|
4579
4596
|
}
|
|
4580
4597
|
};
|
|
4581
|
-
},
|
|
4582
|
-
async function
|
|
4598
|
+
}, $p = /* @__PURE__ */ new Set(["left", "top"]);
|
|
4599
|
+
async function Wp(t, n) {
|
|
4583
4600
|
const {
|
|
4584
4601
|
placement: e,
|
|
4585
4602
|
platform: r,
|
|
4586
4603
|
elements: o
|
|
4587
|
-
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = gt(e), l = mn(e), s = ct(e) === "y", u =
|
|
4604
|
+
} = t, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), a = gt(e), l = mn(e), s = ct(e) === "y", u = $p.has(a) ? -1 : 1, c = i && s ? -1 : 1, v = $t(n, t);
|
|
4588
4605
|
let {
|
|
4589
4606
|
mainAxis: m,
|
|
4590
4607
|
crossAxis: p,
|
|
@@ -4606,7 +4623,7 @@ async function Vp(t, n) {
|
|
|
4606
4623
|
y: p * c
|
|
4607
4624
|
};
|
|
4608
4625
|
}
|
|
4609
|
-
const
|
|
4626
|
+
const Up = function(t) {
|
|
4610
4627
|
return t === void 0 && (t = 0), {
|
|
4611
4628
|
name: "offset",
|
|
4612
4629
|
options: t,
|
|
@@ -4617,7 +4634,7 @@ const $p = function(t) {
|
|
|
4617
4634
|
y: i,
|
|
4618
4635
|
placement: a,
|
|
4619
4636
|
middlewareData: l
|
|
4620
|
-
} = n, s = await
|
|
4637
|
+
} = n, s = await Wp(n, t);
|
|
4621
4638
|
return a === ((e = l.offset) == null ? void 0 : e.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
4622
4639
|
x: o + s.x,
|
|
4623
4640
|
y: i + s.y,
|
|
@@ -4628,7 +4645,7 @@ const $p = function(t) {
|
|
|
4628
4645
|
};
|
|
4629
4646
|
}
|
|
4630
4647
|
};
|
|
4631
|
-
},
|
|
4648
|
+
}, Yp = function(t) {
|
|
4632
4649
|
return t === void 0 && (t = {}), {
|
|
4633
4650
|
name: "shift",
|
|
4634
4651
|
options: t,
|
|
@@ -4684,7 +4701,7 @@ const $p = function(t) {
|
|
|
4684
4701
|
};
|
|
4685
4702
|
}
|
|
4686
4703
|
};
|
|
4687
|
-
},
|
|
4704
|
+
}, Gp = function(t) {
|
|
4688
4705
|
return t === void 0 && (t = {}), {
|
|
4689
4706
|
name: "size",
|
|
4690
4707
|
options: t,
|
|
@@ -4753,15 +4770,15 @@ function Ft(t) {
|
|
|
4753
4770
|
y: l
|
|
4754
4771
|
};
|
|
4755
4772
|
}
|
|
4756
|
-
const
|
|
4773
|
+
const Kp = /* @__PURE__ */ ot(0);
|
|
4757
4774
|
function hl(t) {
|
|
4758
4775
|
const n = Ye(t);
|
|
4759
|
-
return !Do() || !n.visualViewport ?
|
|
4776
|
+
return !Do() || !n.visualViewport ? Kp : {
|
|
4760
4777
|
x: n.visualViewport.offsetLeft,
|
|
4761
4778
|
y: n.visualViewport.offsetTop
|
|
4762
4779
|
};
|
|
4763
4780
|
}
|
|
4764
|
-
function
|
|
4781
|
+
function Zp(t, n, e) {
|
|
4765
4782
|
return n === void 0 && (n = !1), !e || n && e !== Ye(t) ? !1 : n;
|
|
4766
4783
|
}
|
|
4767
4784
|
function Pt(t, n, e, r) {
|
|
@@ -4769,7 +4786,7 @@ function Pt(t, n, e, r) {
|
|
|
4769
4786
|
const o = t.getBoundingClientRect(), i = To(t);
|
|
4770
4787
|
let a = ot(1);
|
|
4771
4788
|
n && (r ? _e(r) && (a = Ft(r)) : a = Ft(t));
|
|
4772
|
-
const l =
|
|
4789
|
+
const l = Zp(i, e, r) ? hl(i) : ot(0);
|
|
4773
4790
|
let s = (o.left + l.x) / a.x, u = (o.top + l.y) / a.y, c = o.width / a.x, v = o.height / a.y;
|
|
4774
4791
|
if (i) {
|
|
4775
4792
|
const m = Ye(i), p = r && _e(r) ? Ye(r) : r;
|
|
@@ -4801,7 +4818,7 @@ function gl(t, n, e) {
|
|
|
4801
4818
|
y: i
|
|
4802
4819
|
};
|
|
4803
4820
|
}
|
|
4804
|
-
function
|
|
4821
|
+
function Qp(t) {
|
|
4805
4822
|
let {
|
|
4806
4823
|
elements: n,
|
|
4807
4824
|
rect: e,
|
|
@@ -4828,10 +4845,10 @@ function Kp(t) {
|
|
|
4828
4845
|
y: e.y * u.y - s.scrollTop * u.y + c.y + m.y
|
|
4829
4846
|
};
|
|
4830
4847
|
}
|
|
4831
|
-
function
|
|
4848
|
+
function qp(t) {
|
|
4832
4849
|
return Array.from(t.getClientRects());
|
|
4833
4850
|
}
|
|
4834
|
-
function
|
|
4851
|
+
function Xp(t) {
|
|
4835
4852
|
const n = lt(t), e = fr(t), r = t.ownerDocument.body, o = Ne(n.scrollWidth, n.clientWidth, r.scrollWidth, r.clientWidth), i = Ne(n.scrollHeight, n.clientHeight, r.scrollHeight, r.clientHeight);
|
|
4836
4853
|
let a = -e.scrollLeft + ko(t);
|
|
4837
4854
|
const l = -e.scrollTop;
|
|
@@ -4842,7 +4859,7 @@ function Qp(t) {
|
|
|
4842
4859
|
y: l
|
|
4843
4860
|
};
|
|
4844
4861
|
}
|
|
4845
|
-
function
|
|
4862
|
+
function Jp(t, n) {
|
|
4846
4863
|
const e = Ye(t), r = lt(t), o = e.visualViewport;
|
|
4847
4864
|
let i = r.clientWidth, a = r.clientHeight, l = 0, s = 0;
|
|
4848
4865
|
if (o) {
|
|
@@ -4857,8 +4874,8 @@ function qp(t, n) {
|
|
|
4857
4874
|
y: s
|
|
4858
4875
|
};
|
|
4859
4876
|
}
|
|
4860
|
-
const
|
|
4861
|
-
function
|
|
4877
|
+
const em = /* @__PURE__ */ new Set(["absolute", "fixed"]);
|
|
4878
|
+
function tm(t, n) {
|
|
4862
4879
|
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;
|
|
4863
4880
|
return {
|
|
4864
4881
|
width: a,
|
|
@@ -4870,11 +4887,11 @@ function Jp(t, n) {
|
|
|
4870
4887
|
function Vi(t, n, e) {
|
|
4871
4888
|
let r;
|
|
4872
4889
|
if (n === "viewport")
|
|
4873
|
-
r =
|
|
4890
|
+
r = Jp(t, e);
|
|
4874
4891
|
else if (n === "document")
|
|
4875
|
-
r =
|
|
4892
|
+
r = Xp(lt(t));
|
|
4876
4893
|
else if (_e(n))
|
|
4877
|
-
r =
|
|
4894
|
+
r = tm(n, e);
|
|
4878
4895
|
else {
|
|
4879
4896
|
const o = hl(t);
|
|
4880
4897
|
r = {
|
|
@@ -4890,7 +4907,7 @@ function vl(t, n) {
|
|
|
4890
4907
|
const e = ht(t);
|
|
4891
4908
|
return e === n || !_e(e) || Bt(e) ? !1 : Je(e).position === "fixed" || vl(e, n);
|
|
4892
4909
|
}
|
|
4893
|
-
function
|
|
4910
|
+
function nm(t, n) {
|
|
4894
4911
|
const e = n.get(t);
|
|
4895
4912
|
if (e)
|
|
4896
4913
|
return e;
|
|
@@ -4899,18 +4916,18 @@ function em(t, n) {
|
|
|
4899
4916
|
let a = i ? ht(t) : t;
|
|
4900
4917
|
for (; _e(a) && !Bt(a); ) {
|
|
4901
4918
|
const l = Je(a), s = Mo(a);
|
|
4902
|
-
!s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o &&
|
|
4919
|
+
!s && l.position === "fixed" && (o = null), (i ? !s && !o : !s && l.position === "static" && o && em.has(o.position) || pn(a) && !s && vl(t, a)) ? r = r.filter((u) => u !== a) : o = l, a = ht(a);
|
|
4903
4920
|
}
|
|
4904
4921
|
return n.set(t, r), r;
|
|
4905
4922
|
}
|
|
4906
|
-
function
|
|
4923
|
+
function rm(t) {
|
|
4907
4924
|
let {
|
|
4908
4925
|
element: n,
|
|
4909
4926
|
boundary: e,
|
|
4910
4927
|
rootBoundary: r,
|
|
4911
4928
|
strategy: o
|
|
4912
4929
|
} = t;
|
|
4913
|
-
const i = [...e === "clippingAncestors" ? dr(n) ? [] :
|
|
4930
|
+
const i = [...e === "clippingAncestors" ? dr(n) ? [] : nm(n, this._c) : [].concat(e), r], a = i[0], l = i.reduce((s, u) => {
|
|
4914
4931
|
const c = Vi(n, u, o);
|
|
4915
4932
|
return s.top = Ne(c.top, s.top), s.right = It(c.right, s.right), s.bottom = It(c.bottom, s.bottom), s.left = Ne(c.left, s.left), s;
|
|
4916
4933
|
}, Vi(n, a, o));
|
|
@@ -4921,7 +4938,7 @@ function tm(t) {
|
|
|
4921
4938
|
y: l.top
|
|
4922
4939
|
};
|
|
4923
4940
|
}
|
|
4924
|
-
function
|
|
4941
|
+
function om(t) {
|
|
4925
4942
|
const {
|
|
4926
4943
|
width: n,
|
|
4927
4944
|
height: e
|
|
@@ -4931,7 +4948,7 @@ function nm(t) {
|
|
|
4931
4948
|
height: e
|
|
4932
4949
|
};
|
|
4933
4950
|
}
|
|
4934
|
-
function
|
|
4951
|
+
function im(t, n, e) {
|
|
4935
4952
|
const r = at(n), o = lt(n), i = e === "fixed", a = Pt(t, !0, i, n);
|
|
4936
4953
|
let l = {
|
|
4937
4954
|
scrollLeft: 0,
|
|
@@ -4980,14 +4997,14 @@ function bl(t, n) {
|
|
|
4980
4997
|
return e;
|
|
4981
4998
|
}
|
|
4982
4999
|
let r = $i(t, n);
|
|
4983
|
-
for (; r &&
|
|
5000
|
+
for (; r && ap(r) && Ar(r); )
|
|
4984
5001
|
r = $i(r, n);
|
|
4985
|
-
return r && Bt(r) && Ar(r) && !Mo(r) ? e : r ||
|
|
5002
|
+
return r && Bt(r) && Ar(r) && !Mo(r) ? e : r || dp(t) || e;
|
|
4986
5003
|
}
|
|
4987
|
-
const
|
|
5004
|
+
const am = async function(t) {
|
|
4988
5005
|
const n = this.getOffsetParent || bl, e = this.getDimensions, r = await e(t.floating);
|
|
4989
5006
|
return {
|
|
4990
|
-
reference:
|
|
5007
|
+
reference: im(t.reference, await n(t.floating), t.strategy),
|
|
4991
5008
|
floating: {
|
|
4992
5009
|
x: 0,
|
|
4993
5010
|
y: 0,
|
|
@@ -4996,25 +5013,25 @@ const om = async function(t) {
|
|
|
4996
5013
|
}
|
|
4997
5014
|
};
|
|
4998
5015
|
};
|
|
4999
|
-
function
|
|
5016
|
+
function lm(t) {
|
|
5000
5017
|
return Je(t).direction === "rtl";
|
|
5001
5018
|
}
|
|
5002
|
-
const
|
|
5003
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5019
|
+
const sm = {
|
|
5020
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: Qp,
|
|
5004
5021
|
getDocumentElement: lt,
|
|
5005
|
-
getClippingRect:
|
|
5022
|
+
getClippingRect: rm,
|
|
5006
5023
|
getOffsetParent: bl,
|
|
5007
|
-
getElementRects:
|
|
5008
|
-
getClientRects:
|
|
5009
|
-
getDimensions:
|
|
5024
|
+
getElementRects: am,
|
|
5025
|
+
getClientRects: qp,
|
|
5026
|
+
getDimensions: om,
|
|
5010
5027
|
getScale: Ft,
|
|
5011
5028
|
isElement: _e,
|
|
5012
|
-
isRTL:
|
|
5029
|
+
isRTL: lm
|
|
5013
5030
|
};
|
|
5014
5031
|
function yl(t, n) {
|
|
5015
5032
|
return t.x === n.x && t.y === n.y && t.width === n.width && t.height === n.height;
|
|
5016
5033
|
}
|
|
5017
|
-
function
|
|
5034
|
+
function cm(t, n) {
|
|
5018
5035
|
let e = null, r;
|
|
5019
5036
|
const o = lt(t);
|
|
5020
5037
|
function i() {
|
|
@@ -5060,7 +5077,7 @@ function lm(t, n) {
|
|
|
5060
5077
|
}
|
|
5061
5078
|
return a(!0), i;
|
|
5062
5079
|
}
|
|
5063
|
-
function
|
|
5080
|
+
function um(t, n, e, r) {
|
|
5064
5081
|
r === void 0 && (r = {});
|
|
5065
5082
|
const {
|
|
5066
5083
|
ancestorScroll: o = !0,
|
|
@@ -5074,7 +5091,7 @@ function sm(t, n, e, r) {
|
|
|
5074
5091
|
passive: !0
|
|
5075
5092
|
}), i && C.addEventListener("resize", e);
|
|
5076
5093
|
});
|
|
5077
|
-
const v = u && l ?
|
|
5094
|
+
const v = u && l ? cm(u, e) : null;
|
|
5078
5095
|
let m = -1, p = null;
|
|
5079
5096
|
a && (p = new ResizeObserver((C) => {
|
|
5080
5097
|
let [O] = C;
|
|
@@ -5096,21 +5113,21 @@ function sm(t, n, e, r) {
|
|
|
5096
5113
|
}), v?.(), (C = p) == null || C.disconnect(), p = null, s && cancelAnimationFrame(g);
|
|
5097
5114
|
};
|
|
5098
5115
|
}
|
|
5099
|
-
const Pr = pr,
|
|
5116
|
+
const Pr = pr, dm = Up, fm = Yp, pm = Vp, mm = Gp, hm = (t, n, e) => {
|
|
5100
5117
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5101
|
-
platform:
|
|
5118
|
+
platform: sm,
|
|
5102
5119
|
...e
|
|
5103
5120
|
}, i = {
|
|
5104
5121
|
...o.platform,
|
|
5105
5122
|
_c: r
|
|
5106
5123
|
};
|
|
5107
|
-
return
|
|
5124
|
+
return Bp(t, n, {
|
|
5108
5125
|
...o,
|
|
5109
5126
|
platform: i
|
|
5110
5127
|
});
|
|
5111
5128
|
};
|
|
5112
|
-
var
|
|
5113
|
-
}, In =
|
|
5129
|
+
var gm = typeof document < "u", vm = function() {
|
|
5130
|
+
}, In = gm ? ro : vm;
|
|
5114
5131
|
function Yn(t, n) {
|
|
5115
5132
|
if (t === n)
|
|
5116
5133
|
return !0;
|
|
@@ -5154,7 +5171,7 @@ function jr(t) {
|
|
|
5154
5171
|
n.current = t;
|
|
5155
5172
|
}), n;
|
|
5156
5173
|
}
|
|
5157
|
-
function
|
|
5174
|
+
function bm(t) {
|
|
5158
5175
|
t === void 0 && (t = {});
|
|
5159
5176
|
const {
|
|
5160
5177
|
placement: n = "bottom",
|
|
@@ -5189,7 +5206,7 @@ function gm(t) {
|
|
|
5189
5206
|
strategy: e,
|
|
5190
5207
|
middleware: m
|
|
5191
5208
|
};
|
|
5192
|
-
y.current && (P.platform = y.current),
|
|
5209
|
+
y.current && (P.platform = y.current), hm(_.current, j.current, P).then((U) => {
|
|
5193
5210
|
const oe = {
|
|
5194
5211
|
...U,
|
|
5195
5212
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5257,26 +5274,26 @@ function gm(t) {
|
|
|
5257
5274
|
}), [c, L, A, W, G]);
|
|
5258
5275
|
}
|
|
5259
5276
|
const xl = (t, n) => ({
|
|
5260
|
-
...cm(t),
|
|
5261
|
-
options: [t, n]
|
|
5262
|
-
}), vm = (t, n) => ({
|
|
5263
|
-
...um(t),
|
|
5264
|
-
options: [t, n]
|
|
5265
|
-
}), bm = (t, n) => ({
|
|
5266
5277
|
...dm(t),
|
|
5267
5278
|
options: [t, n]
|
|
5268
5279
|
}), ym = (t, n) => ({
|
|
5269
5280
|
...fm(t),
|
|
5270
5281
|
options: [t, n]
|
|
5282
|
+
}), wm = (t, n) => ({
|
|
5283
|
+
...pm(t),
|
|
5284
|
+
options: [t, n]
|
|
5285
|
+
}), xm = (t, n) => ({
|
|
5286
|
+
...mm(t),
|
|
5287
|
+
options: [t, n]
|
|
5271
5288
|
}), El = {
|
|
5272
5289
|
...d
|
|
5273
|
-
},
|
|
5290
|
+
}, Em = El.useInsertionEffect, Sm = Em || ((t) => t());
|
|
5274
5291
|
function Sl(t) {
|
|
5275
5292
|
const n = d.useRef(() => {
|
|
5276
5293
|
if (process.env.NODE_ENV !== "production")
|
|
5277
5294
|
throw new Error("Cannot call an event handler while rendering.");
|
|
5278
5295
|
});
|
|
5279
|
-
return
|
|
5296
|
+
return Sm(() => {
|
|
5280
5297
|
n.current = t;
|
|
5281
5298
|
}), d.useCallback(function() {
|
|
5282
5299
|
for (var e = arguments.length, r = new Array(e), o = 0; o < e; o++)
|
|
@@ -5285,13 +5302,13 @@ function Sl(t) {
|
|
|
5285
5302
|
}, []);
|
|
5286
5303
|
}
|
|
5287
5304
|
var Xr = typeof document < "u" ? ro : we;
|
|
5288
|
-
let Ui = !1,
|
|
5305
|
+
let Ui = !1, Cm = 0;
|
|
5289
5306
|
const Yi = () => (
|
|
5290
5307
|
// Ensure the id is unique with multiple independent versions of Floating UI
|
|
5291
5308
|
// on <React 18
|
|
5292
|
-
"floating-ui-" + Math.random().toString(36).slice(2, 6) +
|
|
5309
|
+
"floating-ui-" + Math.random().toString(36).slice(2, 6) + Cm++
|
|
5293
5310
|
);
|
|
5294
|
-
function
|
|
5311
|
+
function Om() {
|
|
5295
5312
|
const [t, n] = d.useState(() => Ui ? Yi() : void 0);
|
|
5296
5313
|
return Xr(() => {
|
|
5297
5314
|
t == null && n(Yi());
|
|
@@ -5299,10 +5316,10 @@ function Sm() {
|
|
|
5299
5316
|
Ui = !0;
|
|
5300
5317
|
}, []), t;
|
|
5301
5318
|
}
|
|
5302
|
-
const
|
|
5319
|
+
const Mm = El.useId, Dm = Mm || Om;
|
|
5303
5320
|
let ln;
|
|
5304
5321
|
process.env.NODE_ENV !== "production" && (ln = /* @__PURE__ */ new Set());
|
|
5305
|
-
function
|
|
5322
|
+
function Tm() {
|
|
5306
5323
|
for (var t, n = arguments.length, e = new Array(n), r = 0; r < n; r++)
|
|
5307
5324
|
e[r] = arguments[r];
|
|
5308
5325
|
const o = "Floating UI: " + e.join(" ");
|
|
@@ -5311,7 +5328,7 @@ function Mm() {
|
|
|
5311
5328
|
(i = ln) == null || i.add(o), console.warn(o);
|
|
5312
5329
|
}
|
|
5313
5330
|
}
|
|
5314
|
-
function
|
|
5331
|
+
function km() {
|
|
5315
5332
|
for (var t, n = arguments.length, e = new Array(n), r = 0; r < n; r++)
|
|
5316
5333
|
e[r] = arguments[r];
|
|
5317
5334
|
const o = "Floating UI: " + e.join(" ");
|
|
@@ -5320,7 +5337,7 @@ function Dm() {
|
|
|
5320
5337
|
(i = ln) == null || i.add(o), console.error(o);
|
|
5321
5338
|
}
|
|
5322
5339
|
}
|
|
5323
|
-
function
|
|
5340
|
+
function Im() {
|
|
5324
5341
|
const t = /* @__PURE__ */ new Map();
|
|
5325
5342
|
return {
|
|
5326
5343
|
emit(n, e) {
|
|
@@ -5336,19 +5353,19 @@ function Tm() {
|
|
|
5336
5353
|
}
|
|
5337
5354
|
};
|
|
5338
5355
|
}
|
|
5339
|
-
const
|
|
5356
|
+
const Am = /* @__PURE__ */ d.createContext(null), Pm = /* @__PURE__ */ d.createContext(null), jm = () => {
|
|
5340
5357
|
var t;
|
|
5341
|
-
return ((t = d.useContext(
|
|
5342
|
-
},
|
|
5343
|
-
function
|
|
5358
|
+
return ((t = d.useContext(Am)) == null ? void 0 : t.id) || null;
|
|
5359
|
+
}, Nm = () => d.useContext(Pm), Lm = "data-floating-ui-focusable";
|
|
5360
|
+
function _m(t) {
|
|
5344
5361
|
const {
|
|
5345
5362
|
open: n = !1,
|
|
5346
5363
|
onOpenChange: e,
|
|
5347
5364
|
elements: r
|
|
5348
|
-
} = t, o =
|
|
5365
|
+
} = t, o = Dm(), i = d.useRef({}), [a] = d.useState(() => Im()), l = jm() != null;
|
|
5349
5366
|
if (process.env.NODE_ENV !== "production") {
|
|
5350
5367
|
const p = r.reference;
|
|
5351
|
-
p && !_e(p) &&
|
|
5368
|
+
p && !_e(p) && km("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `refs.setPositionReference()`", "instead.");
|
|
5352
5369
|
}
|
|
5353
5370
|
const [s, u] = d.useState(r.reference), c = Sl((p, g, b) => {
|
|
5354
5371
|
i.current.openEvent = p ? g : void 0, a.emit("openchange", {
|
|
@@ -5374,22 +5391,22 @@ function Nm(t) {
|
|
|
5374
5391
|
refs: v
|
|
5375
5392
|
}), [n, c, m, a, o, v]);
|
|
5376
5393
|
}
|
|
5377
|
-
function
|
|
5394
|
+
function Rm(t) {
|
|
5378
5395
|
t === void 0 && (t = {});
|
|
5379
5396
|
const {
|
|
5380
5397
|
nodeId: n
|
|
5381
|
-
} = t, e =
|
|
5398
|
+
} = t, e = _m({
|
|
5382
5399
|
...t,
|
|
5383
5400
|
elements: {
|
|
5384
5401
|
reference: null,
|
|
5385
5402
|
floating: null,
|
|
5386
5403
|
...t.elements
|
|
5387
5404
|
}
|
|
5388
|
-
}), 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 =
|
|
5405
|
+
}), 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();
|
|
5389
5406
|
Xr(() => {
|
|
5390
5407
|
u && (c.current = u);
|
|
5391
5408
|
}, [u]);
|
|
5392
|
-
const m =
|
|
5409
|
+
const m = bm({
|
|
5393
5410
|
...t,
|
|
5394
5411
|
elements: {
|
|
5395
5412
|
...o,
|
|
@@ -5449,7 +5466,7 @@ function Nr(t, n, e) {
|
|
|
5449
5466
|
return {
|
|
5450
5467
|
...e === "floating" && {
|
|
5451
5468
|
tabIndex: -1,
|
|
5452
|
-
[
|
|
5469
|
+
[Lm]: ""
|
|
5453
5470
|
},
|
|
5454
5471
|
...i,
|
|
5455
5472
|
...n.map((a) => {
|
|
@@ -5472,7 +5489,7 @@ function Nr(t, n, e) {
|
|
|
5472
5489
|
}), a), {})
|
|
5473
5490
|
};
|
|
5474
5491
|
}
|
|
5475
|
-
function
|
|
5492
|
+
function Fm(t) {
|
|
5476
5493
|
t === void 0 && (t = []);
|
|
5477
5494
|
const n = t.map((l) => l?.reference), e = t.map((l) => l?.floating), r = t.map((l) => l?.item), o = d.useCallback(
|
|
5478
5495
|
(l) => Nr(l, t, "reference"),
|
|
@@ -5505,7 +5522,7 @@ function Zi(t, n) {
|
|
|
5505
5522
|
}
|
|
5506
5523
|
};
|
|
5507
5524
|
}
|
|
5508
|
-
const
|
|
5525
|
+
const Hm = (t) => ({
|
|
5509
5526
|
name: "inner",
|
|
5510
5527
|
options: t,
|
|
5511
5528
|
async fn(n) {
|
|
@@ -5525,7 +5542,7 @@ const Rm = (t) => ({
|
|
|
5525
5542
|
floating: m
|
|
5526
5543
|
}
|
|
5527
5544
|
} = n, p = e.current[a], g = u?.current || m, b = m.clientTop || g.clientTop, x = m.clientTop !== 0, C = g.clientTop !== 0, O = m === g;
|
|
5528
|
-
if (process.env.NODE_ENV !== "production" && (n.placement.startsWith("bottom") ||
|
|
5545
|
+
if (process.env.NODE_ENV !== "production" && (n.placement.startsWith("bottom") || Tm('`placement` side must be "bottom" when using the `inner`', "middleware.")), !p)
|
|
5529
5546
|
return {};
|
|
5530
5547
|
const I = {
|
|
5531
5548
|
...n,
|
|
@@ -5546,7 +5563,7 @@ const Rm = (t) => ({
|
|
|
5546
5563
|
};
|
|
5547
5564
|
}
|
|
5548
5565
|
});
|
|
5549
|
-
function
|
|
5566
|
+
function zm(t, n) {
|
|
5550
5567
|
const {
|
|
5551
5568
|
open: e,
|
|
5552
5569
|
elements: r
|
|
@@ -5564,7 +5581,7 @@ function Fm(t, n) {
|
|
|
5564
5581
|
const x = b.deltaY, C = i.current.top >= -0.5, O = i.current.bottom >= -0.5, I = g.scrollHeight - g.clientHeight, F = x < 0 ? -1 : 1, R = x < 0 ? "max" : "min";
|
|
5565
5582
|
g.scrollHeight <= g.clientHeight || (!C && x > 0 || !O && x < 0 ? (b.preventDefault(), Pn.flushSync(() => {
|
|
5566
5583
|
s((_) => _ + Math[R](x, I * F));
|
|
5567
|
-
})) : /firefox/i.test(
|
|
5584
|
+
})) : /firefox/i.test(pp()) && (g.scrollTop += x));
|
|
5568
5585
|
}
|
|
5569
5586
|
const g = a?.current || r.floating;
|
|
5570
5587
|
if (e && g)
|
|
@@ -5637,12 +5654,12 @@ function No(t = null) {
|
|
|
5637
5654
|
let Qi = 4;
|
|
5638
5655
|
function Lo({ children: t, enabled: n = !0 }) {
|
|
5639
5656
|
let [e, r] = be(null), [o, i] = be(0), a = ae(null), [l, s] = be(null);
|
|
5640
|
-
|
|
5641
|
-
let u = n && e !== null && l !== null, { to: c = "bottom", gap: v = 0, offset: m = 0, padding: p = 0, inner: g } =
|
|
5657
|
+
Bm(l);
|
|
5658
|
+
let u = n && e !== null && l !== null, { to: c = "bottom", gap: v = 0, offset: m = 0, padding: p = 0, inner: g } = Vm(e, l), [b, x = "center"] = c.split(" ");
|
|
5642
5659
|
ve(() => {
|
|
5643
5660
|
u && i(0);
|
|
5644
5661
|
}, [u]);
|
|
5645
|
-
let { refs: C, floatingStyles: O, context: I } =
|
|
5662
|
+
let { refs: C, floatingStyles: O, context: I } = Rm({ open: u, placement: b === "selection" ? x === "center" ? "bottom" : `bottom-${x}` : x === "center" ? `${b}` : `${b}-${x}`, strategy: "absolute", transform: !1, middleware: [xl({ mainAxis: b === "selection" ? 0 : v, crossAxis: m }), ym({ padding: p }), b !== "selection" && wm({ padding: p }), b === "selection" && g ? Hm({ ...g, padding: p, overflowRef: a, offset: o, minItemsVisible: Qi, referenceOverflowThreshold: p, onFallbackChange(y) {
|
|
5646
5663
|
var E, L;
|
|
5647
5664
|
if (!y) return;
|
|
5648
5665
|
let B = I.elements.floating;
|
|
@@ -5660,16 +5677,16 @@ function Lo({ children: t, enabled: n = !0 }) {
|
|
|
5660
5677
|
let oe = G * W - P + A;
|
|
5661
5678
|
return U >= oe ? U : oe;
|
|
5662
5679
|
});
|
|
5663
|
-
} }) : null,
|
|
5680
|
+
} }) : null, xm({ padding: p, apply({ availableWidth: y, availableHeight: E, elements: L }) {
|
|
5664
5681
|
Object.assign(L.floating.style, { overflow: "auto", maxWidth: `${y}px`, maxHeight: `min(var(--anchor-max-height, 100vh), ${E}px)` });
|
|
5665
|
-
} })].filter(Boolean), whileElementsMounted:
|
|
5682
|
+
} })].filter(Boolean), whileElementsMounted: um }), [F = b, R = x] = I.placement.split("-");
|
|
5666
5683
|
b === "selection" && (F = "selection");
|
|
5667
|
-
let _ = Ce(() => ({ anchor: [F, R].filter(Boolean).join(" ") }), [F, R]), j =
|
|
5684
|
+
let _ = Ce(() => ({ anchor: [F, R].filter(Boolean).join(" ") }), [F, R]), j = zm(I, { overflowRef: a, onChange: i }), { getReferenceProps: T, getFloatingProps: N } = Fm([j]), S = q((y) => {
|
|
5668
5685
|
s(y), C.setFloating(y);
|
|
5669
5686
|
});
|
|
5670
5687
|
return d.createElement(Io.Provider, { value: r }, d.createElement(Wt.Provider, { value: { setFloating: S, setReference: C.setReference, styles: O, getReferenceProps: T, getFloatingProps: N, slot: _ } }, t));
|
|
5671
5688
|
}
|
|
5672
|
-
function
|
|
5689
|
+
function Bm(t) {
|
|
5673
5690
|
ve(() => {
|
|
5674
5691
|
if (!t) return;
|
|
5675
5692
|
let n = new MutationObserver(() => {
|
|
@@ -5683,7 +5700,7 @@ function Hm(t) {
|
|
|
5683
5700
|
};
|
|
5684
5701
|
}, [t]);
|
|
5685
5702
|
}
|
|
5686
|
-
function
|
|
5703
|
+
function Vm(t, n) {
|
|
5687
5704
|
var e, r, o;
|
|
5688
5705
|
let i = Lr((e = t?.gap) != null ? e : "var(--anchor-gap, 0)", n), a = Lr((r = t?.offset) != null ? r : "var(--anchor-offset, 0)", n), l = Lr((o = t?.padding) != null ? o : "var(--anchor-padding, 0)", n);
|
|
5689
5706
|
return { ...t, gap: i, offset: a, padding: l };
|
|
@@ -5740,11 +5757,11 @@ function qi(t, n) {
|
|
|
5740
5757
|
let r = parseFloat(window.getComputedStyle(e).marginTop) || 0;
|
|
5741
5758
|
return n.removeChild(e), r;
|
|
5742
5759
|
}
|
|
5743
|
-
function
|
|
5760
|
+
function $m({ children: t, freeze: n }, e) {
|
|
5744
5761
|
let r = Gn(n, t);
|
|
5745
5762
|
return no(r) ? fa(r, { ref: e }) : V.createElement(V.Fragment, null, r);
|
|
5746
5763
|
}
|
|
5747
|
-
const
|
|
5764
|
+
const Wm = V.forwardRef($m);
|
|
5748
5765
|
function Gn(t, n) {
|
|
5749
5766
|
let [e, r] = be(n);
|
|
5750
5767
|
return !t && e !== n && r(n), t ? e : n;
|
|
@@ -5758,14 +5775,14 @@ function Ro() {
|
|
|
5758
5775
|
function Fo({ value: t, children: n }) {
|
|
5759
5776
|
return V.createElement(_o.Provider, { value: t }, n);
|
|
5760
5777
|
}
|
|
5761
|
-
function
|
|
5778
|
+
function Um(t) {
|
|
5762
5779
|
function n() {
|
|
5763
5780
|
document.readyState !== "loading" && (t(), document.removeEventListener("DOMContentLoaded", n));
|
|
5764
5781
|
}
|
|
5765
5782
|
typeof window < "u" && typeof document < "u" && (document.addEventListener("DOMContentLoaded", n), n());
|
|
5766
5783
|
}
|
|
5767
5784
|
let Et = [];
|
|
5768
|
-
|
|
5785
|
+
Um(() => {
|
|
5769
5786
|
function t(n) {
|
|
5770
5787
|
if (!pt(n.target) || n.target === document.body || Et[0] === n.target) return;
|
|
5771
5788
|
let e = n.target;
|
|
@@ -5773,7 +5790,7 @@ $m(() => {
|
|
|
5773
5790
|
}
|
|
5774
5791
|
window.addEventListener("click", t, { capture: !0 }), window.addEventListener("mousedown", t, { capture: !0 }), window.addEventListener("focus", t, { capture: !0 }), document.body.addEventListener("click", t, { capture: !0 }), document.body.addEventListener("mousedown", t, { capture: !0 }), document.body.addEventListener("focus", t, { capture: !0 });
|
|
5775
5792
|
});
|
|
5776
|
-
function
|
|
5793
|
+
function Ym(t) {
|
|
5777
5794
|
throw new Error("Unexpected object: " + t);
|
|
5778
5795
|
}
|
|
5779
5796
|
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 || {});
|
|
@@ -5806,7 +5823,7 @@ function rt(t, n) {
|
|
|
5806
5823
|
case 5:
|
|
5807
5824
|
return null;
|
|
5808
5825
|
default:
|
|
5809
|
-
|
|
5826
|
+
Ym(t);
|
|
5810
5827
|
}
|
|
5811
5828
|
}
|
|
5812
5829
|
function mr(t) {
|
|
@@ -5817,12 +5834,12 @@ function mr(t) {
|
|
|
5817
5834
|
});
|
|
5818
5835
|
}), [n]);
|
|
5819
5836
|
}
|
|
5820
|
-
let
|
|
5821
|
-
function
|
|
5822
|
-
return ye(
|
|
5837
|
+
let Gm = me(!1);
|
|
5838
|
+
function Km() {
|
|
5839
|
+
return ye(Gm);
|
|
5823
5840
|
}
|
|
5824
|
-
function
|
|
5825
|
-
let n =
|
|
5841
|
+
function Zm(t) {
|
|
5842
|
+
let n = Km(), e = ye(Dl), [r, o] = be(() => {
|
|
5826
5843
|
var i;
|
|
5827
5844
|
if (!n && e !== null) return (i = e.current) != null ? i : null;
|
|
5828
5845
|
if (Mt.isServer) return null;
|
|
@@ -5838,10 +5855,10 @@ function Gm(t) {
|
|
|
5838
5855
|
n || e !== null && o(e.current);
|
|
5839
5856
|
}, [e, o, n]), r;
|
|
5840
5857
|
}
|
|
5841
|
-
let Ml = ut,
|
|
5842
|
-
let { ownerDocument: e = null, ...r } = t, o = ae(null), i = ke(
|
|
5858
|
+
let Ml = ut, Qm = Se(function(t, n) {
|
|
5859
|
+
let { ownerDocument: e = null, ...r } = t, o = ae(null), i = ke(Xd((m) => {
|
|
5843
5860
|
o.current = m;
|
|
5844
|
-
}), n), a = kt(o.current), l = e ?? a, s =
|
|
5861
|
+
}), n), a = kt(o.current), l = e ?? a, s = Zm(l), u = ye(eh), c = bt(), v = Ee();
|
|
5845
5862
|
return mr(() => {
|
|
5846
5863
|
var m;
|
|
5847
5864
|
s && s.childNodes.length <= 0 && ((m = s.parentElement) == null || m.removeChild(s));
|
|
@@ -5849,16 +5866,16 @@ let Ml = ut, Km = Se(function(t, n) {
|
|
|
5849
5866
|
c.dispose(), u && m && c.add(u.register(m));
|
|
5850
5867
|
} }, v({ ourProps: { ref: i }, theirProps: r, slot: {}, defaultTag: Ml, name: "Portal" })), s) : null;
|
|
5851
5868
|
});
|
|
5852
|
-
function
|
|
5869
|
+
function qm(t, n) {
|
|
5853
5870
|
let e = ke(n), { enabled: r = !0, ownerDocument: o, ...i } = t, a = Ee();
|
|
5854
|
-
return r ? V.createElement(
|
|
5871
|
+
return r ? V.createElement(Qm, { ...i, ownerDocument: o, ref: e }) : a({ ourProps: { ref: e }, theirProps: i, slot: {}, defaultTag: Ml, name: "Portal" });
|
|
5855
5872
|
}
|
|
5856
|
-
let
|
|
5857
|
-
function
|
|
5873
|
+
let Xm = ut, Dl = me(null);
|
|
5874
|
+
function Jm(t, n) {
|
|
5858
5875
|
let { target: e, ...r } = t, o = { ref: ke(n) }, i = Ee();
|
|
5859
|
-
return V.createElement(Dl.Provider, { value: e }, i({ ourProps: o, theirProps: r, defaultTag:
|
|
5876
|
+
return V.createElement(Dl.Provider, { value: e }, i({ ourProps: o, theirProps: r, defaultTag: Xm, name: "Popover.Group" }));
|
|
5860
5877
|
}
|
|
5861
|
-
let
|
|
5878
|
+
let eh = me(null), th = Se(qm), nh = Se(Jm), Ho = Object.assign(th, { Group: nh });
|
|
5862
5879
|
const Ue = { Idle: { kind: "Idle" }, Tracked: (t) => ({ kind: "Tracked", position: t }), Moved: { kind: "Moved" } };
|
|
5863
5880
|
function hr(t) {
|
|
5864
5881
|
let n = t.getBoundingClientRect();
|
|
@@ -5874,12 +5891,12 @@ function zo(t, n, e) {
|
|
|
5874
5891
|
}
|
|
5875
5892
|
return () => r.dispose();
|
|
5876
5893
|
}
|
|
5877
|
-
var
|
|
5894
|
+
var rh = Object.defineProperty, oh = (t, n, e) => n in t ? rh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, Xi = (t, n, e) => (oh(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 || {});
|
|
5878
5895
|
function _r(t, n = (e) => e) {
|
|
5879
5896
|
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;
|
|
5880
5897
|
return i === -1 && (i = null), { options: o, activeOptionIndex: i };
|
|
5881
5898
|
}
|
|
5882
|
-
let
|
|
5899
|
+
let ih = { 1(t) {
|
|
5883
5900
|
var n;
|
|
5884
5901
|
if ((n = t.dataRef.current) != null && n.disabled || t.comboboxState === 1) return t;
|
|
5885
5902
|
let e = t.inputElement ? Ue.Tracked(hr(t.inputElement)) : t.inputPositionState;
|
|
@@ -5940,7 +5957,7 @@ let rh = { 1(t) {
|
|
|
5940
5957
|
return { ...t, activeOptionIndex: o, virtual: { options: n.options, disabled: (r = n.disabled) != null ? r : () => !1 } };
|
|
5941
5958
|
}, 9: (t, n) => t.inputElement === n.element ? t : { ...t, inputElement: n.element }, 10: (t, n) => t.buttonElement === n.element ? t : { ...t, buttonElement: n.element }, 11: (t, n) => t.optionsElement === n.element ? t : { ...t, optionsElement: n.element }, 12(t) {
|
|
5942
5959
|
return t.inputPositionState.kind !== "Tracked" ? t : { ...t, inputPositionState: Ue.Moved };
|
|
5943
|
-
} },
|
|
5960
|
+
} }, ah = class kl extends ir {
|
|
5944
5961
|
constructor(n) {
|
|
5945
5962
|
super(n), Xi(this, "actions", { onChange: (e) => {
|
|
5946
5963
|
let { onChange: r, compare: o, mode: i, value: a } = this.state.dataRef.current;
|
|
@@ -6022,7 +6039,7 @@ let rh = { 1(t) {
|
|
|
6022
6039
|
return new kl({ id: n, dataRef: { current: {} }, comboboxState: r ? 0 : 1, isTyping: !1, options: [], virtual: e ? { options: e.options, disabled: (o = e.disabled) != null ? o : () => !1 } : null, activeOptionIndex: null, activationTrigger: 2, inputElement: null, buttonElement: null, optionsElement: null, __demoMode: r, inputPositionState: Ue.Idle });
|
|
6023
6040
|
}
|
|
6024
6041
|
reduce(n, e) {
|
|
6025
|
-
return Te(e.type,
|
|
6042
|
+
return Te(e.type, ih, n, e);
|
|
6026
6043
|
}
|
|
6027
6044
|
};
|
|
6028
6045
|
const Il = me(null);
|
|
@@ -6035,7 +6052,7 @@ function hn(t) {
|
|
|
6035
6052
|
return n;
|
|
6036
6053
|
}
|
|
6037
6054
|
function Al({ id: t, virtual: n = null, __demoMode: e = !1 }) {
|
|
6038
|
-
let r = Ce(() =>
|
|
6055
|
+
let r = Ce(() => ah.new({ id: t, virtual: n, __demoMode: e }), []);
|
|
6039
6056
|
return mr(() => r.dispose()), r;
|
|
6040
6057
|
}
|
|
6041
6058
|
let sn = me(null);
|
|
@@ -6049,13 +6066,13 @@ function Ut(t) {
|
|
|
6049
6066
|
return n;
|
|
6050
6067
|
}
|
|
6051
6068
|
let Pl = me(null);
|
|
6052
|
-
function
|
|
6069
|
+
function lh(t) {
|
|
6053
6070
|
let n = hn("VirtualProvider"), e = Ut("VirtualProvider"), { options: r } = e.virtual, o = se(n, (p) => p.optionsElement), [i, a] = Ce(() => {
|
|
6054
6071
|
let p = o;
|
|
6055
6072
|
if (!p) return [0, 0];
|
|
6056
6073
|
let g = window.getComputedStyle(p);
|
|
6057
6074
|
return [parseFloat(g.paddingBlockStart || g.paddingTop), parseFloat(g.paddingBlockEnd || g.paddingBottom)];
|
|
6058
|
-
}, [o]), l =
|
|
6075
|
+
}, [o]), l = bf({ enabled: r.length !== 0, scrollPaddingStart: i, scrollPaddingEnd: a, count: r.length, estimateSize() {
|
|
6059
6076
|
return 40;
|
|
6060
6077
|
}, getScrollElement() {
|
|
6061
6078
|
return n.state.optionsElement;
|
|
@@ -6071,8 +6088,8 @@ function ih(t) {
|
|
|
6071
6088
|
return V.createElement(ut, { key: p.key }, V.cloneElement((g = t.children) == null ? void 0 : g.call(t, { ...t.slot, option: r[p.index] }), { key: `${s}-${p.key}`, "data-index": p.index, "aria-setsize": r.length, "aria-posinset": p.index + 1, style: { position: "absolute", top: 0, left: 0, transform: `translateY(${p.start}px)`, overflowAnchor: "none" } }));
|
|
6072
6089
|
})));
|
|
6073
6090
|
}
|
|
6074
|
-
let
|
|
6075
|
-
function
|
|
6091
|
+
let sh = ut;
|
|
6092
|
+
function ch(t, n) {
|
|
6076
6093
|
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 }), j = ae({ static: !1, hold: !1 }), T = $a(u), N = 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: j, value: F, defaultValue: I, disabled: v, invalid: c, mode: g ? We.Multi : We.Single, virtual: x ? y : null, onChange: R, isSelected: S, calculateIndex: N, compare: T, onClose: E }), [p, b, j, F, I, v, c, g, x, y, R, S, N, T, E]);
|
|
6077
6094
|
ve(() => {
|
|
6078
6095
|
var ie;
|
|
@@ -6085,10 +6102,10 @@ function lh(t, n) {
|
|
|
6085
6102
|
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(() => {
|
|
6086
6103
|
if (I !== void 0) return R?.(I);
|
|
6087
6104
|
}, [R, I]), ee = Ee();
|
|
6088
|
-
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:
|
|
6105
|
+
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: sh, name: "Combobox" }))))));
|
|
6089
6106
|
}
|
|
6090
|
-
let
|
|
6091
|
-
function
|
|
6107
|
+
let uh = "input";
|
|
6108
|
+
function dh(t, n) {
|
|
6092
6109
|
var e, r;
|
|
6093
6110
|
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(() => {
|
|
6094
6111
|
o.actions.onChange(null), o.state.optionsElement && (o.state.optionsElement.scrollTop = 0), o.actions.goToOption({ focus: X.Nothing });
|
|
@@ -6165,10 +6182,10 @@ function ch(t, n) {
|
|
|
6165
6182
|
ze(() => o.actions.openCombobox()), o.actions.setActivationTrigger(it.Focus);
|
|
6166
6183
|
});
|
|
6167
6184
|
}), 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 = jt({ 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: j, onCompositionEnd: T, onKeyDown: N, onChange: S, onFocus: E, onBlur: y }, W, P);
|
|
6168
|
-
return Ee()({ ourProps: D, theirProps: g, slot: oe, defaultTag:
|
|
6185
|
+
return Ee()({ ourProps: D, theirProps: g, slot: oe, defaultTag: uh, name: "Combobox.Input" });
|
|
6169
6186
|
}
|
|
6170
|
-
let
|
|
6171
|
-
function
|
|
6187
|
+
let fh = "button";
|
|
6188
|
+
function ph(t, n) {
|
|
6172
6189
|
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;
|
|
6173
6190
|
wo(x, { trigger: o, action: ce((E) => {
|
|
6174
6191
|
if (o != null && o.contains(E.target) || p != null && p.contains(E.target)) return Xe.Ignore;
|
|
@@ -6197,10 +6214,10 @@ function dh(t, n) {
|
|
|
6197
6214
|
}), O = go(() => {
|
|
6198
6215
|
e.state.comboboxState === de.Open ? e.actions.closeCombobox() : e.actions.openCombobox(), b();
|
|
6199
6216
|
}), I = fn([s]), { isFocusVisible: F, focusProps: R } = Xn({ autoFocus: c }), { isHovered: _, hoverProps: j } = qn({ isDisabled: u }), { pressed: T, pressProps: N } = 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 = jt({ 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, j, N);
|
|
6200
|
-
return Ee()({ ourProps: y, theirProps: v, slot: S, defaultTag:
|
|
6217
|
+
return Ee()({ ourProps: y, theirProps: v, slot: S, defaultTag: fh, name: "Combobox.Button" });
|
|
6201
6218
|
}
|
|
6202
|
-
let
|
|
6203
|
-
function
|
|
6219
|
+
let mh = "div", hh = Tt.RenderStrategy | Tt.Static;
|
|
6220
|
+
function gh(t, n) {
|
|
6204
6221
|
var e, r, o;
|
|
6205
6222
|
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);
|
|
6206
6223
|
b && (u = !0);
|
|
@@ -6230,12 +6247,12 @@ function mh(t, n) {
|
|
|
6230
6247
|
if (fe === void 0) throw new Error("Missing `options` in virtual mode");
|
|
6231
6248
|
return fe !== g.virtual.options ? { ...g, virtual: { ...g.virtual, options: fe } } : g;
|
|
6232
6249
|
}, [g, fe, (r = g.virtual) == null ? void 0 : r.options]);
|
|
6233
|
-
g.virtual && Object.assign(m, { children: V.createElement(sn.Provider, { value: ie }, V.createElement(
|
|
6250
|
+
g.virtual && Object.assign(m, { children: V.createElement(sn.Provider, { value: ie }, V.createElement(lh, { slot: oe }, m.children)) });
|
|
6234
6251
|
let De = Ee(), Yt = Ce(() => g.mode === We.Multi ? g : { ...g, isSelected: ee }, [g, ee]);
|
|
6235
|
-
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(
|
|
6252
|
+
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(Wm, { freeze: J }, typeof m.children == "function" ? (o = m.children) == null ? void 0 : o.call(m, oe) : m.children) }, slot: oe, defaultTag: mh, features: hh, visible: P, name: "Combobox.Options" })));
|
|
6236
6253
|
}
|
|
6237
|
-
let
|
|
6238
|
-
function
|
|
6254
|
+
let vh = "div";
|
|
6255
|
+
function bh(t, n) {
|
|
6239
6256
|
var e, r, o;
|
|
6240
6257
|
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(() => {
|
|
6241
6258
|
a.actions.setIsTyping(!1), a.actions.onChange(u);
|
|
@@ -6261,10 +6278,10 @@ function gh(t, n) {
|
|
|
6261
6278
|
}), E = q((A) => {
|
|
6262
6279
|
N.wasMoved(A) && (c || b && (i.optionsPropsRef.current.hold || a.state.activationTrigger === it.Pointer && a.actions.goToOption({ focus: X.Nothing })));
|
|
6263
6280
|
}), 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: j, onFocus: T, onPointerEnter: S, onMouseEnter: S, onPointerMove: y, onMouseMove: y, onPointerLeave: E, onMouseLeave: E };
|
|
6264
|
-
return Ee()({ ourProps: B, theirProps: m, slot: L, defaultTag:
|
|
6281
|
+
return Ee()({ ourProps: B, theirProps: m, slot: L, defaultTag: vh, name: "Combobox.Option" });
|
|
6265
6282
|
}
|
|
6266
|
-
let
|
|
6267
|
-
Object.assign(
|
|
6283
|
+
let yh = Se(ch), wh = Se(ph), xh = Se(dh), Eh = Ba, Sh = Se(gh), Ch = Se(bh);
|
|
6284
|
+
Object.assign(yh, { Input: xh, Button: wh, Label: Eh, Options: Sh, Option: Ch });
|
|
6268
6285
|
let Ji = /([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;
|
|
6269
6286
|
function ea(t) {
|
|
6270
6287
|
var n, e;
|
|
@@ -6275,7 +6292,7 @@ function ea(t) {
|
|
|
6275
6292
|
let a = i ? (e = o.innerText) != null ? e : "" : r;
|
|
6276
6293
|
return Ji.test(a) && (a = a.replace(Ji, "")), a;
|
|
6277
6294
|
}
|
|
6278
|
-
function
|
|
6295
|
+
function Oh(t) {
|
|
6279
6296
|
let n = t.getAttribute("aria-label");
|
|
6280
6297
|
if (typeof n == "string") return n.trim();
|
|
6281
6298
|
let e = t.getAttribute("aria-labelledby");
|
|
@@ -6299,16 +6316,16 @@ function jl(t) {
|
|
|
6299
6316
|
if (!r) return "";
|
|
6300
6317
|
let o = r.innerText;
|
|
6301
6318
|
if (n.current === o) return e.current;
|
|
6302
|
-
let i =
|
|
6319
|
+
let i = Oh(r).trim().toLowerCase();
|
|
6303
6320
|
return n.current = o, e.current = i, i;
|
|
6304
6321
|
});
|
|
6305
6322
|
}
|
|
6306
|
-
var
|
|
6323
|
+
var Mh = Object.defineProperty, Dh = (t, n, e) => n in t ? Mh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ta = (t, n, e) => (Dh(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 || {}), Nl = ((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))(Nl || {});
|
|
6307
6324
|
function na(t, n = (e) => e) {
|
|
6308
6325
|
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;
|
|
6309
6326
|
return o === -1 && (o = null), { options: r, activeOptionIndex: o };
|
|
6310
6327
|
}
|
|
6311
|
-
let
|
|
6328
|
+
let Th = { 1(t) {
|
|
6312
6329
|
if (t.dataRef.current.disabled || t.listboxState === 1) return t;
|
|
6313
6330
|
let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
|
|
6314
6331
|
return { ...t, activeOptionIndex: null, pendingFocus: { focus: X.Nothing }, listboxState: 1, __demoMode: !1, buttonPositionState: n };
|
|
@@ -6374,7 +6391,7 @@ let Mh = { 1(t) {
|
|
|
6374
6391
|
return { ...t, options: e, activationTrigger: 1 };
|
|
6375
6392
|
}, 8: (t, n) => t.buttonElement === n.element ? t : { ...t, buttonElement: n.element }, 9: (t, n) => t.optionsElement === n.element ? t : { ...t, optionsElement: n.element }, 10: (t) => t.pendingShouldSort ? { ...t, ...na(t), pendingShouldSort: !1 } : t, 11(t) {
|
|
6376
6393
|
return t.buttonPositionState.kind !== "Tracked" ? t : { ...t, buttonPositionState: Ue.Moved };
|
|
6377
|
-
} },
|
|
6394
|
+
} }, kh = class Ll extends ir {
|
|
6378
6395
|
constructor(n) {
|
|
6379
6396
|
super(n), ta(this, "actions", { onChange: (e) => {
|
|
6380
6397
|
let { onChange: r, compare: o, mode: i, value: a } = this.state.dataRef.current;
|
|
@@ -6457,7 +6474,7 @@ let Mh = { 1(t) {
|
|
|
6457
6474
|
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 });
|
|
6458
6475
|
}
|
|
6459
6476
|
reduce(n, e) {
|
|
6460
|
-
return Te(e.type,
|
|
6477
|
+
return Te(e.type, Th, n, e);
|
|
6461
6478
|
}
|
|
6462
6479
|
};
|
|
6463
6480
|
const _l = me(null);
|
|
@@ -6470,7 +6487,7 @@ function Bo(t) {
|
|
|
6470
6487
|
return n;
|
|
6471
6488
|
}
|
|
6472
6489
|
function Rl({ id: t, __demoMode: n = !1 }) {
|
|
6473
|
-
let e = Ce(() =>
|
|
6490
|
+
let e = Ce(() => kh.new({ id: t, __demoMode: n }), []);
|
|
6474
6491
|
return mr(() => e.dispose()), e;
|
|
6475
6492
|
}
|
|
6476
6493
|
let gr = me(null);
|
|
@@ -6483,8 +6500,8 @@ function gn(t) {
|
|
|
6483
6500
|
}
|
|
6484
6501
|
return n;
|
|
6485
6502
|
}
|
|
6486
|
-
let
|
|
6487
|
-
function
|
|
6503
|
+
let Ih = ut;
|
|
6504
|
+
function Ah(t, n) {
|
|
6488
6505
|
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;
|
|
6489
6506
|
const x = m ? "horizontal" : "vertical";
|
|
6490
6507
|
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 }), j = ae(/* @__PURE__ */ new Map()), T = $a(u), N = 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: N, optionsPropsRef: _, listRef: j });
|
|
@@ -6498,10 +6515,10 @@ function kh(t, n) {
|
|
|
6498
6515
|
let W = Ie({ open: y === Le.Open, disabled: v, invalid: c, value: I }), [G, P] = or({ inherit: !0 }), U = { ref: C }, oe = ce(() => {
|
|
6499
6516
|
if (O !== void 0) return F?.(O);
|
|
6500
6517
|
}, [F, O]), D = Ee();
|
|
6501
|
-
return V.createElement(P, { value: G, props: { htmlFor: B?.id }, slot: { open: y === Le.Open, disabled: v } }, V.createElement(Lo, null, V.createElement(_l.Provider, { value: R }, V.createElement(gr.Provider, { value: S }, V.createElement(Fo, { value: Te(y, { [Le.Open]: Ge.Open, [Le.Closed]: Ge.Closed }) }, l != null && I != null && V.createElement(La, { disabled: v, data: { [l]: I }, form: a, onReset: oe }), D({ ourProps: U, theirProps: b, slot: W, defaultTag:
|
|
6518
|
+
return V.createElement(P, { value: G, props: { htmlFor: B?.id }, slot: { open: y === Le.Open, disabled: v } }, V.createElement(Lo, null, V.createElement(_l.Provider, { value: R }, V.createElement(gr.Provider, { value: S }, V.createElement(Fo, { value: Te(y, { [Le.Open]: Ge.Open, [Le.Closed]: Ge.Closed }) }, l != null && I != null && V.createElement(La, { disabled: v, data: { [l]: I }, form: a, onReset: oe }), D({ ourProps: U, theirProps: b, slot: W, defaultTag: Ih, name: "Listbox" }))))));
|
|
6502
6519
|
}
|
|
6503
|
-
let
|
|
6504
|
-
function
|
|
6520
|
+
let Ph = "button";
|
|
6521
|
+
function jh(t, n) {
|
|
6505
6522
|
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;
|
|
6506
6523
|
wo(b, { trigger: p, action: ce((A) => {
|
|
6507
6524
|
if (p != null && p.contains(A.target)) return Xe.Ignore;
|
|
@@ -6511,7 +6528,7 @@ function Ah(t, n) {
|
|
|
6511
6528
|
let x = q((A) => {
|
|
6512
6529
|
switch (A.key) {
|
|
6513
6530
|
case te.Enter:
|
|
6514
|
-
|
|
6531
|
+
Hd(A.currentTarget);
|
|
6515
6532
|
break;
|
|
6516
6533
|
case te.Space:
|
|
6517
6534
|
case te.ArrowDown:
|
|
@@ -6531,10 +6548,10 @@ function Ah(t, n) {
|
|
|
6531
6548
|
var W;
|
|
6532
6549
|
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 }));
|
|
6533
6550
|
}), I = q((A) => A.preventDefault()), F = fn([a]), R = za(), { isFocusVisible: _, focusProps: j } = Xn({ autoFocus: s }), { isHovered: T, hoverProps: N } = 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 = jt(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, j, N, y);
|
|
6534
|
-
return Ee()({ ourProps: B, theirProps: u, slot: E, defaultTag:
|
|
6551
|
+
return Ee()({ ourProps: B, theirProps: u, slot: E, defaultTag: Ph, name: "Listbox.Button" });
|
|
6535
6552
|
}
|
|
6536
|
-
let Fl = me(!1),
|
|
6537
|
-
function
|
|
6553
|
+
let Fl = me(!1), Nh = "div", Lh = Tt.RenderStrategy | Tt.Static;
|
|
6554
|
+
function _h(t, n) {
|
|
6538
6555
|
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);
|
|
6539
6556
|
u && (i = !0);
|
|
6540
6557
|
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);
|
|
@@ -6590,10 +6607,10 @@ function Nh(t, n) {
|
|
|
6590
6607
|
var ee;
|
|
6591
6608
|
return (ee = $.buttonElement) == null ? void 0 : ee.id;
|
|
6592
6609
|
}), k = Ie({ open: g === Le.Open }), ne = jt(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]);
|
|
6593
|
-
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:
|
|
6610
|
+
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: Lh, visible: N, name: "Listbox.Options" })));
|
|
6594
6611
|
}
|
|
6595
|
-
let
|
|
6596
|
-
function
|
|
6612
|
+
let Rh = "div";
|
|
6613
|
+
function Fh(t, n) {
|
|
6597
6614
|
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 = jl(m), g = yt({ disabled: o, value: i, domRef: m, get textValue() {
|
|
6598
6615
|
return p();
|
|
6599
6616
|
} }), b = ke(n, m, (S) => {
|
|
@@ -6618,21 +6635,21 @@ function _h(t, n) {
|
|
|
6618
6635
|
}), _ = q((S) => {
|
|
6619
6636
|
I.wasMoved(S) && (o || c && u.state.activationTrigger === An.Pointer && u.actions.goToOption({ focus: X.Nothing }));
|
|
6620
6637
|
}), j = 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: _ }, N = Ee();
|
|
6621
|
-
return !v && l ? null : N({ ourProps: T, theirProps: a, slot: j, defaultTag:
|
|
6638
|
+
return !v && l ? null : N({ ourProps: T, theirProps: a, slot: j, defaultTag: Rh, name: "Listbox.Option" });
|
|
6622
6639
|
}
|
|
6623
|
-
let
|
|
6624
|
-
function
|
|
6640
|
+
let Hh = ut;
|
|
6641
|
+
function zh(t, n) {
|
|
6625
6642
|
let { options: e, placeholder: r, ...o } = t, i = { ref: ke(n) }, a = gn("ListboxSelectedOption"), l = Ie({}), s = a.value === void 0 || a.value === null || a.mode === mt.Multi && Array.isArray(a.value) && a.value.length === 0, u = Ee();
|
|
6626
|
-
return V.createElement(Fl.Provider, { value: !0 }, u({ ourProps: i, theirProps: { ...o, children: V.createElement(V.Fragment, null, r && s ? r : e) }, slot: l, defaultTag:
|
|
6643
|
+
return V.createElement(Fl.Provider, { value: !0 }, u({ ourProps: i, theirProps: { ...o, children: V.createElement(V.Fragment, null, r && s ? r : e) }, slot: l, defaultTag: Hh, name: "ListboxSelectedOption" }));
|
|
6627
6644
|
}
|
|
6628
|
-
let
|
|
6629
|
-
Object.assign(
|
|
6630
|
-
var
|
|
6645
|
+
let Bh = Se(Ah), Vh = Se(jh), $h = Ba, Wh = Se(_h), Uh = Se(Fh), Yh = Se(zh);
|
|
6646
|
+
Object.assign(Bh, { Button: Vh, Label: $h, Options: Wh, Option: Uh, SelectedOption: Yh });
|
|
6647
|
+
var Gh = Object.defineProperty, Kh = (t, n, e) => n in t ? Gh(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e, ra = (t, n, e) => (Kh(t, typeof n != "symbol" ? n + "" : n, e), e), je = ((t) => (t[t.Open = 0] = "Open", t[t.Closed = 1] = "Closed", t))(je || {}), 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 || {});
|
|
6631
6648
|
function oa(t, n = (e) => e) {
|
|
6632
6649
|
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;
|
|
6633
6650
|
return o === -1 && (o = null), { items: r, activeItemIndex: o };
|
|
6634
6651
|
}
|
|
6635
|
-
let
|
|
6652
|
+
let Zh = { 1(t) {
|
|
6636
6653
|
if (t.menuState === 1) return t;
|
|
6637
6654
|
let n = t.buttonElement ? Ue.Tracked(hr(t.buttonElement)) : t.buttonPositionState;
|
|
6638
6655
|
return { ...t, activeItemIndex: null, pendingFocus: { focus: X.Nothing }, menuState: 1, buttonPositionState: n };
|
|
@@ -6732,7 +6749,7 @@ class Vo extends ir {
|
|
|
6732
6749
|
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 });
|
|
6733
6750
|
}
|
|
6734
6751
|
reduce(n, e) {
|
|
6735
|
-
return Te(e.type,
|
|
6752
|
+
return Te(e.type, Zh, n, e);
|
|
6736
6753
|
}
|
|
6737
6754
|
}
|
|
6738
6755
|
const Hl = me(null);
|
|
@@ -6748,8 +6765,8 @@ function zl({ id: t, __demoMode: n = !1 }) {
|
|
|
6748
6765
|
let e = Ce(() => Vo.new({ id: t, __demoMode: n }), []);
|
|
6749
6766
|
return mr(() => e.dispose()), e;
|
|
6750
6767
|
}
|
|
6751
|
-
let
|
|
6752
|
-
function
|
|
6768
|
+
let Qh = ut;
|
|
6769
|
+
function qh(t, n) {
|
|
6753
6770
|
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 = Nt.get(null), v = se(c, ce((x) => c.selectors.isTop(x, e), [c, e]));
|
|
6754
6771
|
yo(v, [s, l], (x, C) => {
|
|
6755
6772
|
var O;
|
|
@@ -6758,10 +6775,10 @@ function Zh(t, n) {
|
|
|
6758
6775
|
let m = q(() => {
|
|
6759
6776
|
i.send({ type: ge.CloseMenu });
|
|
6760
6777
|
}), p = Ie({ open: a === je.Open, close: m }), g = { ref: u }, b = Ee();
|
|
6761
|
-
return V.createElement(Lo, null, V.createElement(Hl.Provider, { value: i }, V.createElement(Fo, { value: Te(a, { [je.Open]: Ge.Open, [je.Closed]: Ge.Closed }) }, b({ ourProps: g, theirProps: o, slot: p, defaultTag:
|
|
6778
|
+
return V.createElement(Lo, null, V.createElement(Hl.Provider, { value: i }, V.createElement(Fo, { value: Te(a, { [je.Open]: Ge.Open, [je.Closed]: Ge.Closed }) }, b({ ourProps: g, theirProps: o, slot: p, defaultTag: Qh, name: "Menu" }))));
|
|
6762
6779
|
}
|
|
6763
|
-
let
|
|
6764
|
-
function
|
|
6780
|
+
let Xh = "button";
|
|
6781
|
+
function Jh(t, n) {
|
|
6765
6782
|
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) => {
|
|
6766
6783
|
switch (S.key) {
|
|
6767
6784
|
case te.Space:
|
|
@@ -6789,10 +6806,10 @@ function qh(t, n) {
|
|
|
6789
6806
|
var y;
|
|
6790
6807
|
i || (p === je.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 })));
|
|
6791
6808
|
}), { isFocusVisible: O, focusProps: I } = Xn({ autoFocus: a }), { isHovered: F, hoverProps: R } = qn({ isDisabled: i }), { pressed: _, pressProps: j } = uo({ disabled: i }), T = Ie({ open: p === je.Open, active: _ || p === je.Open, disabled: i, hover: F, focus: O, autofocus: a }), N = jt(u(), { ref: c, id: o, type: xo(t, s.current), "aria-haspopup": "menu", "aria-controls": b?.id, "aria-expanded": p === je.Open, disabled: i || void 0, autoFocus: a, onKeyDown: v, onKeyUp: m }, C, I, R, j);
|
|
6792
|
-
return Ee()({ ourProps: N, theirProps: l, slot: T, defaultTag:
|
|
6809
|
+
return Ee()({ ourProps: N, theirProps: l, slot: T, defaultTag: Xh, name: "Menu.Button" });
|
|
6793
6810
|
}
|
|
6794
|
-
let
|
|
6795
|
-
function
|
|
6811
|
+
let eg = "div", tg = Tt.RenderStrategy | Tt.Static;
|
|
6812
|
+
function ng(t, n) {
|
|
6796
6813
|
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] = No(u), p = jo(), [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);
|
|
6797
6814
|
u && (i = !0);
|
|
6798
6815
|
let R = Ro(), [_, j] = Oo(l, g, R !== null ? (R & Ge.Open) === Ge.Open : C === je.Open);
|
|
@@ -6854,10 +6871,10 @@ function eg(t, n) {
|
|
|
6854
6871
|
var U;
|
|
6855
6872
|
return (U = P.buttonElement) == null ? void 0 : U.id;
|
|
6856
6873
|
}), id: r, onKeyDown: L, onKeyUp: B, role: "menu", tabIndex: C === je.Open ? 0 : void 0, ref: x, style: { ...s.style, ...m, "--button-width": Fn(_, O, !0).width }, ...Co(j) }), G = Ee();
|
|
6857
|
-
return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag:
|
|
6874
|
+
return V.createElement(Ho, { enabled: i ? t.static || _ : !1, ownerDocument: I }, G({ ourProps: W, theirProps: s, slot: A, defaultTag: eg, features: tg, visible: y, name: "Menu.Items" }));
|
|
6858
6875
|
}
|
|
6859
|
-
let
|
|
6860
|
-
function
|
|
6876
|
+
let rg = ut;
|
|
6877
|
+
function og(t, n) {
|
|
6861
6878
|
let e = Ae(), { id: r = `headlessui-menu-item-${e}`, disabled: o = !1, ...i } = t, a = $o("Menu.Item"), l = se(a, (y) => a.selectors.isActive(y, r)), s = ae(null), u = ke(n, s), c = se(a, (y) => a.selectors.shouldScrollIntoView(y, r));
|
|
6862
6879
|
ve(() => {
|
|
6863
6880
|
if (c) return Re().requestAnimationFrame(() => {
|
|
@@ -6883,28 +6900,28 @@ function ng(t, n) {
|
|
|
6883
6900
|
x.wasMoved(y) && (o || l || a.send({ type: ge.GoToItem, focus: X.Specific, id: r, trigger: Kn.Pointer }));
|
|
6884
6901
|
}), I = q((y) => {
|
|
6885
6902
|
x.wasMoved(y) && (o || l && a.state.activationTrigger === Kn.Pointer && a.send({ type: ge.GoToItem, focus: X.Nothing }));
|
|
6886
|
-
}), [F, R] = or(), [_, j] =
|
|
6887
|
-
return V.createElement(R, null, V.createElement(j, null, S({ ourProps: N, theirProps: i, slot: T, defaultTag:
|
|
6903
|
+
}), [F, R] = or(), [_, j] = Jd(), T = Ie({ active: l, focus: l, disabled: o, close: p }), N = { 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();
|
|
6904
|
+
return V.createElement(R, null, V.createElement(j, null, S({ ourProps: N, theirProps: i, slot: T, defaultTag: rg, name: "Menu.Item" })));
|
|
6888
6905
|
}
|
|
6889
|
-
let
|
|
6890
|
-
function
|
|
6906
|
+
let ig = "div";
|
|
6907
|
+
function ag(t, n) {
|
|
6891
6908
|
let [e, r] = or(), o = t, i = { ref: n, "aria-labelledby": e, role: "group" }, a = Ee();
|
|
6892
|
-
return V.createElement(r, null, a({ ourProps: i, theirProps: o, slot: {}, defaultTag:
|
|
6909
|
+
return V.createElement(r, null, a({ ourProps: i, theirProps: o, slot: {}, defaultTag: ig, name: "Menu.Section" }));
|
|
6893
6910
|
}
|
|
6894
|
-
let
|
|
6895
|
-
function
|
|
6911
|
+
let lg = "header";
|
|
6912
|
+
function sg(t, n) {
|
|
6896
6913
|
let e = Ae(), { id: r = `headlessui-menu-heading-${e}`, ...o } = t, i = mo();
|
|
6897
6914
|
ve(() => i.register(r), [r, i.register]);
|
|
6898
6915
|
let a = { id: r, ref: n, role: "presentation", ...i.props };
|
|
6899
|
-
return Ee()({ ourProps: a, theirProps: o, slot: {}, defaultTag:
|
|
6916
|
+
return Ee()({ ourProps: a, theirProps: o, slot: {}, defaultTag: lg, name: "Menu.Heading" });
|
|
6900
6917
|
}
|
|
6901
|
-
let
|
|
6902
|
-
function
|
|
6918
|
+
let cg = "div";
|
|
6919
|
+
function ug(t, n) {
|
|
6903
6920
|
let e = t, r = { ref: n, role: "separator" };
|
|
6904
|
-
return Ee()({ ourProps: r, theirProps: e, slot: {}, defaultTag:
|
|
6921
|
+
return Ee()({ ourProps: r, theirProps: e, slot: {}, defaultTag: cg, name: "Menu.Separator" });
|
|
6905
6922
|
}
|
|
6906
|
-
let
|
|
6907
|
-
Object.assign(
|
|
6923
|
+
let dg = Se(qh), fg = Se(Jh), pg = Se(ng), mg = Se(og), hg = Se(ag), gg = Se(sg), vg = Se(ug);
|
|
6924
|
+
Object.assign(dg, { Button: fg, Items: pg, Item: mg, Section: hg, Heading: gg, Separator: vg });
|
|
6908
6925
|
function Jr(t) {
|
|
6909
6926
|
const n = d.useRef(void 0), e = d.useCallback((r) => {
|
|
6910
6927
|
const o = t.map((i) => {
|
|
@@ -6930,7 +6947,7 @@ function Jr(t) {
|
|
|
6930
6947
|
}
|
|
6931
6948
|
process.env.NODE_ENV;
|
|
6932
6949
|
me(void 0);
|
|
6933
|
-
const
|
|
6950
|
+
const bg = V.createContext({}), yg = () => V.useContext(bg), wg = (t, n) => `
|
|
6934
6951
|
${t ? "jn:whitespace-nowrap" : ""}
|
|
6935
6952
|
${n === "center" ? `
|
|
6936
6953
|
jn:justify-center
|
|
@@ -6942,17 +6959,17 @@ const gg = V.createContext({}), vg = () => V.useContext(gg), bg = (t, n) => `
|
|
|
6942
6959
|
jn:border-b
|
|
6943
6960
|
jn:border-theme-background-lvl-2
|
|
6944
6961
|
jn:h-full
|
|
6945
|
-
`,
|
|
6962
|
+
`, xg = (t) => {
|
|
6946
6963
|
let n;
|
|
6947
6964
|
return t && (n = { gridColumn: `span ${t} / span ${t}` }), n;
|
|
6948
6965
|
}, Bl = K(
|
|
6949
6966
|
({ colSpan: t, nowrap: n = !1, className: e = "", children: r, ...o }, i) => {
|
|
6950
|
-
const a = (
|
|
6967
|
+
const a = (yg() || {}).cellVerticalAlignment;
|
|
6951
6968
|
return /* @__PURE__ */ H.jsx(
|
|
6952
6969
|
"div",
|
|
6953
6970
|
{
|
|
6954
|
-
className: `juno-datagrid-cell ${
|
|
6955
|
-
style:
|
|
6971
|
+
className: `juno-datagrid-cell ${wg(n, a)} ${e}`,
|
|
6972
|
+
style: xg(t),
|
|
6956
6973
|
role: "gridcell",
|
|
6957
6974
|
ref: i,
|
|
6958
6975
|
...o,
|
|
@@ -6962,12 +6979,12 @@ const gg = V.createContext({}), vg = () => V.useContext(gg), bg = (t, n) => `
|
|
|
6962
6979
|
}
|
|
6963
6980
|
);
|
|
6964
6981
|
Bl.displayName = "DataGridCell";
|
|
6965
|
-
const
|
|
6982
|
+
const Eg = `
|
|
6966
6983
|
jn:font-bold
|
|
6967
6984
|
jn:text-theme-high
|
|
6968
6985
|
jn:bg-theme-background-lvl-1
|
|
6969
6986
|
jn:border-theme-background-lvl-0
|
|
6970
|
-
`,
|
|
6987
|
+
`, Sg = K(
|
|
6971
6988
|
({
|
|
6972
6989
|
// sortable,
|
|
6973
6990
|
colSpan: t,
|
|
@@ -6980,7 +6997,7 @@ const wg = `
|
|
|
6980
6997
|
{
|
|
6981
6998
|
colSpan: t,
|
|
6982
6999
|
nowrap: n,
|
|
6983
|
-
className: `juno-datagrid-head-cell ${
|
|
7000
|
+
className: `juno-datagrid-head-cell ${Eg} ${e}`,
|
|
6984
7001
|
role: "columnheader",
|
|
6985
7002
|
ref: i,
|
|
6986
7003
|
...o,
|
|
@@ -6988,8 +7005,8 @@ const wg = `
|
|
|
6988
7005
|
}
|
|
6989
7006
|
)
|
|
6990
7007
|
);
|
|
6991
|
-
|
|
6992
|
-
const
|
|
7008
|
+
Sg.displayName = "DataGridHeadCell";
|
|
7009
|
+
const Cg = K(
|
|
6993
7010
|
({ isSelected: t = !1, onClick: n, className: e = "", children: r, ...o }, i) => {
|
|
6994
7011
|
const a = (s) => {
|
|
6995
7012
|
n && n(s);
|
|
@@ -7002,7 +7019,7 @@ const Eg = K(
|
|
|
7002
7019
|
return /* @__PURE__ */ H.jsx("div", { className: l, role: "row", ref: i, onClick: a, ...o, children: r });
|
|
7003
7020
|
}
|
|
7004
7021
|
);
|
|
7005
|
-
|
|
7022
|
+
Cg.displayName = "DataGridRow";
|
|
7006
7023
|
var Rr = [
|
|
7007
7024
|
"onChange",
|
|
7008
7025
|
"onClose",
|
|
@@ -7205,7 +7222,7 @@ function Ve(t) {
|
|
|
7205
7222
|
var Hr = function() {
|
|
7206
7223
|
}, Zn = function(t, n, e) {
|
|
7207
7224
|
return e.months[n ? "shorthand" : "longhand"][t];
|
|
7208
|
-
},
|
|
7225
|
+
}, Og = {
|
|
7209
7226
|
D: Hr,
|
|
7210
7227
|
F: function(t, n, e) {
|
|
7211
7228
|
t.setMonth(e.months.longhand.indexOf(n));
|
|
@@ -7396,7 +7413,7 @@ var Hr = function() {
|
|
|
7396
7413
|
O += St[I];
|
|
7397
7414
|
var _ = new RegExp(O).exec(i);
|
|
7398
7415
|
_ && (g = !0) && b[I !== "Y" ? "push" : "unshift"]({
|
|
7399
|
-
fn:
|
|
7416
|
+
fn: Og[I],
|
|
7400
7417
|
val: _[++C]
|
|
7401
7418
|
});
|
|
7402
7419
|
} else F || (O += ".");
|
|
@@ -7418,14 +7435,14 @@ var Hr = function() {
|
|
|
7418
7435
|
function $e(t, n, e) {
|
|
7419
7436
|
return e === void 0 && (e = !0), e !== !1 ? new Date(t.getTime()).setHours(0, 0, 0, 0) - new Date(n.getTime()).setHours(0, 0, 0, 0) : t.getTime() - n.getTime();
|
|
7420
7437
|
}
|
|
7421
|
-
var
|
|
7438
|
+
var Mg = function(t, n, e) {
|
|
7422
7439
|
return t > Math.min(n, e) && t < Math.max(n, e);
|
|
7423
7440
|
}, zr = function(t, n, e) {
|
|
7424
7441
|
return t * 3600 + n * 60 + e;
|
|
7425
|
-
},
|
|
7442
|
+
}, Dg = function(t) {
|
|
7426
7443
|
var n = Math.floor(t / 3600), e = (t - n * 3600) / 60;
|
|
7427
7444
|
return [n, e, t - n * 3600 - e * 60];
|
|
7428
|
-
},
|
|
7445
|
+
}, Tg = {
|
|
7429
7446
|
DAY: 864e5
|
|
7430
7447
|
};
|
|
7431
7448
|
function Br(t) {
|
|
@@ -7469,8 +7486,8 @@ var Pe = function() {
|
|
|
7469
7486
|
for (var i = arguments[n], a = 0, l = i.length; a < l; a++, o++)
|
|
7470
7487
|
r[o] = i[a];
|
|
7471
7488
|
return r;
|
|
7472
|
-
},
|
|
7473
|
-
function
|
|
7489
|
+
}, kg = 300;
|
|
7490
|
+
function Ig(t, n) {
|
|
7474
7491
|
var e = {
|
|
7475
7492
|
config: Pe(Pe({}, Ht), Me.defaultConfig),
|
|
7476
7493
|
l10n: cn
|
|
@@ -7533,7 +7550,7 @@ function Tg(t, n) {
|
|
|
7533
7550
|
if (e.config.maxTime !== void 0 && e.config.minTime !== void 0 && e.config.minTime > e.config.maxTime) {
|
|
7534
7551
|
var Y = zr(e.config.minTime.getHours(), e.config.minTime.getMinutes(), e.config.minTime.getSeconds()), le = zr(e.config.maxTime.getHours(), e.config.maxTime.getMinutes(), e.config.maxTime.getSeconds()), Q = zr(f, h, w);
|
|
7535
7552
|
if (Q > le && Q < Y) {
|
|
7536
|
-
var ue =
|
|
7553
|
+
var ue = Dg(Y);
|
|
7537
7554
|
f = ue[0], h = ue[1], w = ue[2];
|
|
7538
7555
|
}
|
|
7539
7556
|
} else {
|
|
@@ -7588,7 +7605,7 @@ function Tg(t, n) {
|
|
|
7588
7605
|
return;
|
|
7589
7606
|
}
|
|
7590
7607
|
var f = ia(Ul, 50);
|
|
7591
|
-
if (e._debouncedChange = ia(x,
|
|
7608
|
+
if (e._debouncedChange = ia(x, kg), e.daysContainer && !/iPhone|iPad|iPod/i.test(navigator.userAgent) && b(e.daysContainer, "mouseover", function(w) {
|
|
7592
7609
|
e.config.mode === "range" && vn(Ve(w));
|
|
7593
7610
|
}), b(e._input, "keydown", Oe), e.calendarContainer !== void 0 && b(e.calendarContainer, "keydown", Oe), !e.config.inline && !e.config.static && b(window, "resize", f), window.ontouchstart !== void 0 ? b(window.document, "touchstart", $) : b(window.document, "mousedown", $), b(window.document, "focus", $, { capture: !0 }), e.config.clickOpens === !0 && (b(e._input, "focus", e.open), b(e._input, "click", e.open)), e.daysContainer !== void 0 && (b(e.monthNav, "click", rs), b(e.monthNav, ["keyup", "increment"], g), b(e.daysContainer, "click", Ko)), e.timeContainer !== void 0 && e.minuteElement !== void 0 && e.hourElement !== void 0) {
|
|
7594
7611
|
var h = function(w) {
|
|
@@ -7967,7 +7984,7 @@ function Tg(t, n) {
|
|
|
7967
7984
|
}
|
|
7968
7985
|
function vn(f, h) {
|
|
7969
7986
|
if (h === void 0 && (h = "flatpickr-day"), !(e.selectedDates.length !== 1 || f && (!f.classList.contains(h) || f.classList.contains("flatpickr-disabled")))) {
|
|
7970
|
-
for (var w = f ? f.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), M = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), z = Math.min(w, e.selectedDates[0].getTime()), Y = Math.max(w, e.selectedDates[0].getTime()), le = !1, Q = 0, ue = 0, Z = z; Z < Y; Z +=
|
|
7987
|
+
for (var w = f ? f.dateObj.getTime() : e.days.firstElementChild.dateObj.getTime(), M = e.parseDate(e.selectedDates[0], void 0, !0).getTime(), z = Math.min(w, e.selectedDates[0].getTime()), Y = Math.max(w, e.selectedDates[0].getTime()), le = !1, Q = 0, ue = 0, Z = z; Z < Y; Z += Tg.DAY)
|
|
7971
7988
|
ie(new Date(Z), !0) || (le = le || Z > z && Z < Y, Z < M && (!Q || Z > Q) ? Q = Z : Z > M && (!ue || Z < ue) && (ue = Z));
|
|
7972
7989
|
var re = Array.from(e.rContainer.querySelectorAll("*:nth-child(-n+" + e.config.showMonths + ") > ." + h));
|
|
7973
7990
|
re.forEach(function(he) {
|
|
@@ -7981,7 +7998,7 @@ function Tg(t, n) {
|
|
|
7981
7998
|
return;
|
|
7982
7999
|
["startRange", "inRange", "endRange", "notAllowed"].forEach(function(Lt) {
|
|
7983
8000
|
he.classList.remove(Lt);
|
|
7984
|
-
}), f !== void 0 && (f.classList.add(w <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), M < w && Be === M ? he.classList.add("startRange") : M > w && Be === M && he.classList.add("endRange"), Be >= Q && (ue === 0 || Be <= ue) &&
|
|
8001
|
+
}), f !== void 0 && (f.classList.add(w <= e.selectedDates[0].getTime() ? "startRange" : "endRange"), M < w && Be === M ? he.classList.add("startRange") : M > w && Be === M && he.classList.add("endRange"), Be >= Q && (ue === 0 || Be <= ue) && Mg(Be, M, w) && he.classList.add("inRange"));
|
|
7985
8002
|
});
|
|
7986
8003
|
}
|
|
7987
8004
|
}
|
|
@@ -8349,7 +8366,7 @@ function zt(t, n) {
|
|
|
8349
8366
|
try {
|
|
8350
8367
|
if (i.getAttribute("data-fp-omit") !== null)
|
|
8351
8368
|
continue;
|
|
8352
|
-
i._flatpickr !== void 0 && (i._flatpickr.destroy(), i._flatpickr = void 0), i._flatpickr =
|
|
8369
|
+
i._flatpickr !== void 0 && (i._flatpickr.destroy(), i._flatpickr = void 0), i._flatpickr = Ig(i, n || {}), r.push(i._flatpickr);
|
|
8353
8370
|
} catch (a) {
|
|
8354
8371
|
console.error(a);
|
|
8355
8372
|
}
|
|
@@ -8385,7 +8402,7 @@ Date.prototype.fp_incr = function(t) {
|
|
|
8385
8402
|
return new Date(this.getFullYear(), this.getMonth(), this.getDate() + (typeof t == "string" ? parseInt(t, 10) : t));
|
|
8386
8403
|
};
|
|
8387
8404
|
typeof window < "u" && (window.flatpickr = Me);
|
|
8388
|
-
const
|
|
8405
|
+
const Ag = ({
|
|
8389
8406
|
title: t,
|
|
8390
8407
|
titleId: n,
|
|
8391
8408
|
...e
|
|
@@ -8449,28 +8466,28 @@ const kg = ({
|
|
|
8449
8466
|
} })))), /* @__PURE__ */ d.createElement("path", { fill: "none", stroke: "currentcolor", d: "M123.3-21.9c1.6 4.3 2.5 8.9 2.5 13.8c0 21.4-16.9 38.8-38.1 39.7v.1h-1.7h-11.4h-75.2c-17.2-0.4-31.1-14.4-31.1-31.7c0-17.5 14.2-31.7 31.7-31.7c1.7 0 3.4 .2 5 .4c0-0.1 0-0.2 0-0.4c0-20.8 16.9-37.7 37.7-37.7c15.5 0 28.7 9.2 34.6 22.5c2.8-0.6 5.7-0.9 8.7-0.9c17.1 0 31.7 10.7 37.3 25.9Z", strokeDasharray: "427 427", strokeDashoffset: 427, strokeWidth: 6, strokeLinecap: "round", visibility: "hidden", transform: "translate(51.4,122.3)", style: {
|
|
8450
8467
|
animation: "5s linear infinite both a14_t, 5s linear infinite forwards a14_v, 5s linear infinite both a14_o, 5s linear infinite both a14_do"
|
|
8451
8468
|
} }));
|
|
8452
|
-
K(
|
|
8469
|
+
K(Ag);
|
|
8453
8470
|
V.createContext({});
|
|
8454
|
-
const
|
|
8471
|
+
const Pg = `
|
|
8455
8472
|
jn:text-theme-high
|
|
8456
8473
|
jn:flex
|
|
8457
8474
|
jn:rounded
|
|
8458
8475
|
jn:leading-5
|
|
8459
8476
|
jn:overflow-hidden
|
|
8460
8477
|
jn:items-center
|
|
8461
|
-
`,
|
|
8478
|
+
`, jg = `
|
|
8462
8479
|
jn:font-bold
|
|
8463
|
-
`,
|
|
8480
|
+
`, Ng = `
|
|
8464
8481
|
jn:py-3
|
|
8465
8482
|
jn:pr-4
|
|
8466
8483
|
jn:ml-7
|
|
8467
|
-
`,
|
|
8484
|
+
`, Lg = `
|
|
8468
8485
|
jn:w-[4px]
|
|
8469
8486
|
jn:self-stretch
|
|
8470
8487
|
jn:border-l-4
|
|
8471
8488
|
jn:mr-6
|
|
8472
8489
|
jn:shrink-0
|
|
8473
|
-
`,
|
|
8490
|
+
`, _g = `
|
|
8474
8491
|
jn:ml-auto
|
|
8475
8492
|
jn:self-stretch
|
|
8476
8493
|
jn:flex
|
|
@@ -8488,7 +8505,7 @@ const Ig = `
|
|
|
8488
8505
|
dangerBg: "jn:bg-theme-message-danger",
|
|
8489
8506
|
success: "jn:border-theme-message-success",
|
|
8490
8507
|
successBg: "jn:bg-theme-message-success"
|
|
8491
|
-
},
|
|
8508
|
+
}, Rg = (t) => {
|
|
8492
8509
|
switch (t) {
|
|
8493
8510
|
case "error":
|
|
8494
8511
|
return qe.errorBg;
|
|
@@ -8503,7 +8520,7 @@ const Ig = `
|
|
|
8503
8520
|
default:
|
|
8504
8521
|
return qe.defaultBg;
|
|
8505
8522
|
}
|
|
8506
|
-
},
|
|
8523
|
+
}, Fg = (t) => {
|
|
8507
8524
|
switch (t) {
|
|
8508
8525
|
case "error":
|
|
8509
8526
|
return qe.error;
|
|
@@ -8518,7 +8535,7 @@ const Ig = `
|
|
|
8518
8535
|
default:
|
|
8519
8536
|
return qe.default;
|
|
8520
8537
|
}
|
|
8521
|
-
},
|
|
8538
|
+
}, Hg = (t) => new Set(Object.values(io)).has(t), zg = (t) => t === "error" ? "dangerous" : Hg(t) ? t : "default", Bg = (t) => {
|
|
8522
8539
|
switch (t) {
|
|
8523
8540
|
case "info":
|
|
8524
8541
|
return "jn:text-theme-info jn:shrink-0";
|
|
@@ -8533,13 +8550,13 @@ const Ig = `
|
|
|
8533
8550
|
default:
|
|
8534
8551
|
return "jn:text-theme-info jn:shrink-0";
|
|
8535
8552
|
}
|
|
8536
|
-
},
|
|
8553
|
+
}, Vg = (t, n, e, r) => {
|
|
8537
8554
|
!t || n < 1 || (r.current !== null && clearTimeout(r.current), r.current = window.setTimeout(() => {
|
|
8538
8555
|
e();
|
|
8539
8556
|
}, n));
|
|
8540
|
-
},
|
|
8557
|
+
}, $g = (t) => {
|
|
8541
8558
|
t.current !== null && (clearTimeout(t.current), t.current = null);
|
|
8542
|
-
},
|
|
8559
|
+
}, Wg = ({
|
|
8543
8560
|
title: t,
|
|
8544
8561
|
variant: n = "info",
|
|
8545
8562
|
dismissible: e = !1,
|
|
@@ -8553,24 +8570,24 @@ const Ig = `
|
|
|
8553
8570
|
u(!1), i && i();
|
|
8554
8571
|
};
|
|
8555
8572
|
if (we(() => () => {
|
|
8556
|
-
|
|
8573
|
+
$g(c);
|
|
8557
8574
|
}, []), we(() => {
|
|
8558
|
-
|
|
8575
|
+
Vg(r, o, p, c);
|
|
8559
8576
|
}, [r, o]), !s) return null;
|
|
8560
|
-
const g =
|
|
8577
|
+
const g = zg(n), b = Rg(n), x = Fg(n);
|
|
8561
8578
|
return /* @__PURE__ */ H.jsxs(
|
|
8562
8579
|
"div",
|
|
8563
8580
|
{
|
|
8564
|
-
className: `juno-message juno-message-${n} ${
|
|
8581
|
+
className: `juno-message juno-message-${n} ${Pg} ${b} ${a}`,
|
|
8565
8582
|
...l,
|
|
8566
8583
|
children: [
|
|
8567
|
-
/* @__PURE__ */ H.jsx("div", { className: `juno-message-border ${
|
|
8568
|
-
/* @__PURE__ */ H.jsx(jn, { icon: g, className: `${
|
|
8569
|
-
/* @__PURE__ */ H.jsxs("div", { className: `juno-message-content ${
|
|
8570
|
-
t && /* @__PURE__ */ H.jsx("h1", { className:
|
|
8584
|
+
/* @__PURE__ */ H.jsx("div", { className: `juno-message-border ${Lg} ${x}` }),
|
|
8585
|
+
/* @__PURE__ */ H.jsx(jn, { icon: g, className: `${Bg(n)}` }),
|
|
8586
|
+
/* @__PURE__ */ H.jsxs("div", { className: `juno-message-content ${Ng}`, children: [
|
|
8587
|
+
t && /* @__PURE__ */ H.jsx("h1", { className: jg, children: t }),
|
|
8571
8588
|
/* @__PURE__ */ H.jsx("div", { children: m || v })
|
|
8572
8589
|
] }),
|
|
8573
|
-
e && /* @__PURE__ */ H.jsx("div", { className:
|
|
8590
|
+
e && /* @__PURE__ */ H.jsx("div", { className: _g, children: /* @__PURE__ */ H.jsx(
|
|
8574
8591
|
jn,
|
|
8575
8592
|
{
|
|
8576
8593
|
icon: "close",
|
|
@@ -8588,21 +8605,21 @@ function to(t, n) {
|
|
|
8588
8605
|
for (var e = 0, r = Array(n); e < n; e++) r[e] = t[e];
|
|
8589
8606
|
return r;
|
|
8590
8607
|
}
|
|
8591
|
-
function
|
|
8608
|
+
function Ug(t) {
|
|
8592
8609
|
if (Array.isArray(t)) return to(t);
|
|
8593
8610
|
}
|
|
8594
|
-
function
|
|
8595
|
-
return (n =
|
|
8611
|
+
function Yg(t, n, e) {
|
|
8612
|
+
return (n = qg(n)) in t ? Object.defineProperty(t, n, {
|
|
8596
8613
|
value: e,
|
|
8597
8614
|
enumerable: !0,
|
|
8598
8615
|
configurable: !0,
|
|
8599
8616
|
writable: !0
|
|
8600
8617
|
}) : t[n] = e, t;
|
|
8601
8618
|
}
|
|
8602
|
-
function
|
|
8619
|
+
function Gg(t) {
|
|
8603
8620
|
if (typeof Symbol < "u" && t[Symbol.iterator] != null || t["@@iterator"] != null) return Array.from(t);
|
|
8604
8621
|
}
|
|
8605
|
-
function
|
|
8622
|
+
function Kg() {
|
|
8606
8623
|
throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
8607
8624
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`);
|
|
8608
8625
|
}
|
|
@@ -8620,17 +8637,17 @@ function sa(t) {
|
|
|
8620
8637
|
for (var n = 1; n < arguments.length; n++) {
|
|
8621
8638
|
var e = arguments[n] != null ? arguments[n] : {};
|
|
8622
8639
|
n % 2 ? la(Object(e), !0).forEach(function(r) {
|
|
8623
|
-
|
|
8640
|
+
Yg(t, r, e[r]);
|
|
8624
8641
|
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(t, Object.getOwnPropertyDescriptors(e)) : la(Object(e)).forEach(function(r) {
|
|
8625
8642
|
Object.defineProperty(t, r, Object.getOwnPropertyDescriptor(e, r));
|
|
8626
8643
|
});
|
|
8627
8644
|
}
|
|
8628
8645
|
return t;
|
|
8629
8646
|
}
|
|
8630
|
-
function
|
|
8631
|
-
return
|
|
8647
|
+
function Zg(t) {
|
|
8648
|
+
return Ug(t) || Gg(t) || Xg(t) || Kg();
|
|
8632
8649
|
}
|
|
8633
|
-
function
|
|
8650
|
+
function Qg(t, n) {
|
|
8634
8651
|
if (typeof t != "object" || !t) return t;
|
|
8635
8652
|
var e = t[Symbol.toPrimitive];
|
|
8636
8653
|
if (e !== void 0) {
|
|
@@ -8640,11 +8657,11 @@ function Kg(t, n) {
|
|
|
8640
8657
|
}
|
|
8641
8658
|
return (n === "string" ? String : Number)(t);
|
|
8642
8659
|
}
|
|
8643
|
-
function
|
|
8644
|
-
var n =
|
|
8660
|
+
function qg(t) {
|
|
8661
|
+
var n = Qg(t, "string");
|
|
8645
8662
|
return typeof n == "symbol" ? n : n + "";
|
|
8646
8663
|
}
|
|
8647
|
-
function
|
|
8664
|
+
function Xg(t, n) {
|
|
8648
8665
|
if (t) {
|
|
8649
8666
|
if (typeof t == "string") return to(t, n);
|
|
8650
8667
|
var e = {}.toString.call(t).slice(8, -1);
|
|
@@ -8664,15 +8681,15 @@ var ca = {
|
|
|
8664
8681
|
var e = t.indexOf(n);
|
|
8665
8682
|
e !== -1 && t.splice(e, 1), t.length > 0 && !t[t.length - 1]._isManuallyPaused() && t[t.length - 1]._setPausedState(!1);
|
|
8666
8683
|
}
|
|
8667
|
-
},
|
|
8684
|
+
}, Jg = function(t) {
|
|
8668
8685
|
return t.tagName && t.tagName.toLowerCase() === "input" && typeof t.select == "function";
|
|
8669
|
-
},
|
|
8686
|
+
}, ev = function(t) {
|
|
8670
8687
|
return t?.key === "Escape" || t?.key === "Esc" || t?.keyCode === 27;
|
|
8671
8688
|
}, nn = function(t) {
|
|
8672
8689
|
return t?.key === "Tab" || t?.keyCode === 9;
|
|
8673
|
-
},
|
|
8690
|
+
}, tv = function(t) {
|
|
8674
8691
|
return nn(t) && !t.shiftKey;
|
|
8675
|
-
},
|
|
8692
|
+
}, nv = function(t) {
|
|
8676
8693
|
return nn(t) && t.shiftKey;
|
|
8677
8694
|
}, ua = function(t) {
|
|
8678
8695
|
return setTimeout(t, 0);
|
|
@@ -8682,13 +8699,13 @@ var ca = {
|
|
|
8682
8699
|
return typeof t == "function" ? t.apply(void 0, e) : t;
|
|
8683
8700
|
}, Dn = function(t) {
|
|
8684
8701
|
return t.target.shadowRoot && typeof t.composedPath == "function" ? t.composedPath()[0] : t.target;
|
|
8685
|
-
},
|
|
8686
|
-
var e = n?.document || document, r = n?.trapStack ||
|
|
8702
|
+
}, rv = [], ov = function(t, n) {
|
|
8703
|
+
var e = n?.document || document, r = n?.trapStack || rv, o = sa({
|
|
8687
8704
|
returnFocusOnDeactivate: !0,
|
|
8688
8705
|
escapeDeactivates: !0,
|
|
8689
8706
|
delayInitialFocus: !0,
|
|
8690
|
-
isKeyForward:
|
|
8691
|
-
isKeyBackward:
|
|
8707
|
+
isKeyForward: tv,
|
|
8708
|
+
isKeyBackward: nv
|
|
8692
8709
|
}, n), i = {
|
|
8693
8710
|
// containers given to createFocusTrap()
|
|
8694
8711
|
// @type {Array<HTMLElement>}
|
|
@@ -8738,7 +8755,7 @@ var ca = {
|
|
|
8738
8755
|
});
|
|
8739
8756
|
}, u = function(y) {
|
|
8740
8757
|
var E = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, L = E.hasFallback, B = L === void 0 ? !1 : L, A = E.params, W = A === void 0 ? [] : A, G = o[y];
|
|
8741
|
-
if (typeof G == "function" && (G = G.apply(void 0,
|
|
8758
|
+
if (typeof G == "function" && (G = G.apply(void 0, Zg(W))), G === !0 && (G = void 0), !G) {
|
|
8742
8759
|
if (G === void 0 || G === !1)
|
|
8743
8760
|
return G;
|
|
8744
8761
|
throw new Error("`".concat(y, "` was specified but was not a node, or did not return a node"));
|
|
@@ -8838,7 +8855,7 @@ var ca = {
|
|
|
8838
8855
|
}
|
|
8839
8856
|
y.focus({
|
|
8840
8857
|
preventScroll: !!o.preventScroll
|
|
8841
|
-
}), i.mostRecentlyFocusedNode = y,
|
|
8858
|
+
}), i.mostRecentlyFocusedNode = y, Jg(y) && y.select();
|
|
8842
8859
|
}
|
|
8843
8860
|
}, g = function(y) {
|
|
8844
8861
|
var E = u("setReturnFocus", {
|
|
@@ -8935,7 +8952,7 @@ var ca = {
|
|
|
8935
8952
|
}, I = function(y) {
|
|
8936
8953
|
(o.isKeyForward(y) || o.isKeyBackward(y)) && O(y, o.isKeyBackward(y));
|
|
8937
8954
|
}, F = function(y) {
|
|
8938
|
-
|
|
8955
|
+
ev(y) && Zt(o.escapeDeactivates, y) !== !1 && (y.preventDefault(), a.deactivate());
|
|
8939
8956
|
}, R = function(y) {
|
|
8940
8957
|
var E = Dn(y);
|
|
8941
8958
|
s(E, y) >= 0 || Zt(o.clickOutsideDeactivates, y) || Zt(o.allowOutsideClick, y) || (y.preventDefault(), y.stopImmediatePropagation());
|
|
@@ -9044,12 +9061,12 @@ var ca = {
|
|
|
9044
9061
|
}
|
|
9045
9062
|
}), a.updateContainerElements(t), a;
|
|
9046
9063
|
};
|
|
9047
|
-
const
|
|
9064
|
+
const iv = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
9048
9065
|
__proto__: null,
|
|
9049
|
-
createFocusTrap:
|
|
9050
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
9066
|
+
createFocusTrap: ov
|
|
9067
|
+
}, Symbol.toStringTag, { value: "Module" })), av = /* @__PURE__ */ ha(iv), lv = /* @__PURE__ */ ha(zp);
|
|
9051
9068
|
var da;
|
|
9052
|
-
function
|
|
9069
|
+
function sv() {
|
|
9053
9070
|
if (da) return Mn.exports;
|
|
9054
9071
|
da = 1;
|
|
9055
9072
|
function t(j) {
|
|
@@ -9126,7 +9143,7 @@ function av() {
|
|
|
9126
9143
|
}
|
|
9127
9144
|
return (T === "string" ? String : Number)(j);
|
|
9128
9145
|
}
|
|
9129
|
-
var x = V, C =
|
|
9146
|
+
var x = V, C = av, O = C.createFocusTrap, I = lv, 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(j) {
|
|
9130
9147
|
function T(N) {
|
|
9131
9148
|
var S;
|
|
9132
9149
|
r(this, T), S = a(this, T, [N]), p(S, "getNodeForOption", function(L) {
|
|
@@ -9319,27 +9336,27 @@ function av() {
|
|
|
9319
9336
|
_createFocusTrap: O
|
|
9320
9337
|
}, Mn.exports = _, Mn.exports.FocusTrap = _, Mn.exports;
|
|
9321
9338
|
}
|
|
9322
|
-
|
|
9339
|
+
sv();
|
|
9323
9340
|
me(void 0);
|
|
9324
9341
|
me(null);
|
|
9325
9342
|
me({});
|
|
9326
|
-
const
|
|
9343
|
+
const cv = `
|
|
9327
9344
|
jn:h-px
|
|
9328
9345
|
jn:w-full
|
|
9329
9346
|
jn:bg-theme-background-lvl-3
|
|
9330
|
-
`,
|
|
9331
|
-
({ className: t = "", ...n }, e) => /* @__PURE__ */ H.jsx("div", { className: `juno-select-divider ${
|
|
9347
|
+
`, uv = V.forwardRef(
|
|
9348
|
+
({ className: t = "", ...n }, e) => /* @__PURE__ */ H.jsx("div", { className: `juno-select-divider ${cv} ${t}`, ref: e, ...n })
|
|
9332
9349
|
);
|
|
9333
|
-
|
|
9350
|
+
uv.displayName = "SelectDivider";
|
|
9334
9351
|
me(void 0);
|
|
9335
9352
|
me(0);
|
|
9336
9353
|
me(void 0);
|
|
9337
|
-
const
|
|
9338
|
-
const t = V.useContext(
|
|
9354
|
+
const dv = V.createContext(null), Wl = () => {
|
|
9355
|
+
const t = V.useContext(dv);
|
|
9339
9356
|
if (t == null)
|
|
9340
9357
|
throw new Error("Tooltip components must be wrapped in <Tooltip />");
|
|
9341
9358
|
return t;
|
|
9342
|
-
},
|
|
9359
|
+
}, fv = `
|
|
9343
9360
|
jn:bg-theme-background-lvl-1
|
|
9344
9361
|
jn:text-theme-high
|
|
9345
9362
|
jn:inline-flex
|
|
@@ -9347,12 +9364,12 @@ const cv = V.createContext(null), Wl = () => {
|
|
|
9347
9364
|
jn:p-2
|
|
9348
9365
|
jn:rounded
|
|
9349
9366
|
jn:drop-shadow-[0_0_4px_rgba(0,0,0,0.15)]
|
|
9350
|
-
`,
|
|
9367
|
+
`, pv = `
|
|
9351
9368
|
jn:mx-4
|
|
9352
9369
|
jn:max-w-full
|
|
9353
|
-
`,
|
|
9370
|
+
`, mv = `
|
|
9354
9371
|
jn:shrink-0
|
|
9355
|
-
`,
|
|
9372
|
+
`, hv = (t) => {
|
|
9356
9373
|
switch (t) {
|
|
9357
9374
|
case "error":
|
|
9358
9375
|
return "dangerous";
|
|
@@ -9365,7 +9382,7 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
|
|
|
9365
9382
|
return o.disabled ? null : /* @__PURE__ */ H.jsx(H.Fragment, { children: o.open && /* @__PURE__ */ H.jsxs(
|
|
9366
9383
|
"div",
|
|
9367
9384
|
{
|
|
9368
|
-
className: `juno-tooltip juno-tooltip-${a} ${
|
|
9385
|
+
className: `juno-tooltip juno-tooltip-${a} ${fv} ${t}`,
|
|
9369
9386
|
ref: i,
|
|
9370
9387
|
style: {
|
|
9371
9388
|
...o.floatingStyles
|
|
@@ -9375,12 +9392,12 @@ V.forwardRef(function({ className: t = "", children: n, ...e }, r) {
|
|
|
9375
9392
|
a && /* @__PURE__ */ H.jsx(
|
|
9376
9393
|
jn,
|
|
9377
9394
|
{
|
|
9378
|
-
icon:
|
|
9395
|
+
icon: hv(a),
|
|
9379
9396
|
color: `jn:text-theme-${a}`,
|
|
9380
|
-
className: `juno-tooltip-popover-icon ${
|
|
9397
|
+
className: `juno-tooltip-popover-icon ${mv}`
|
|
9381
9398
|
}
|
|
9382
9399
|
),
|
|
9383
|
-
/* @__PURE__ */ H.jsx("p", { className: `${
|
|
9400
|
+
/* @__PURE__ */ H.jsx("p", { className: `${pv}`, children: n })
|
|
9384
9401
|
]
|
|
9385
9402
|
}
|
|
9386
9403
|
) });
|
|
@@ -9408,21 +9425,21 @@ V.forwardRef(function({ children: t, asChild: n = !1, className: e = "", ...r },
|
|
|
9408
9425
|
}
|
|
9409
9426
|
);
|
|
9410
9427
|
});
|
|
9411
|
-
const
|
|
9428
|
+
const gv = (t) => t === "info" || t === "success", xv = ({ className: t }) => {
|
|
9412
9429
|
const n = ys(), { removeMessage: e } = ws(), r = (o) => {
|
|
9413
9430
|
e(o);
|
|
9414
9431
|
};
|
|
9415
9432
|
return /* @__PURE__ */ V.createElement(V.Fragment, null, n && n.length > 0 && /* @__PURE__ */ V.createElement("div", { role: "group", className: `juno-message-provider ${t || ""}` }, n.map((o, i) => {
|
|
9416
9433
|
const { id: a, variant: l, text: s, ...u } = o;
|
|
9417
9434
|
return /* @__PURE__ */ V.createElement(
|
|
9418
|
-
|
|
9435
|
+
Wg,
|
|
9419
9436
|
{
|
|
9420
9437
|
role: "alert",
|
|
9421
9438
|
key: a,
|
|
9422
9439
|
className: i > 0 ? "mt-4" : "",
|
|
9423
9440
|
variant: l,
|
|
9424
9441
|
dismissible: !0,
|
|
9425
|
-
autoDismiss:
|
|
9442
|
+
autoDismiss: gv(l),
|
|
9426
9443
|
onDismiss: () => r(a),
|
|
9427
9444
|
...u
|
|
9428
9445
|
},
|
|
@@ -9431,8 +9448,8 @@ const mv = (t) => t === "info" || t === "success", yv = ({ className: t }) => {
|
|
|
9431
9448
|
})));
|
|
9432
9449
|
};
|
|
9433
9450
|
export {
|
|
9434
|
-
|
|
9435
|
-
|
|
9451
|
+
xv as Messages,
|
|
9452
|
+
wv as MessagesProvider,
|
|
9436
9453
|
ws as useActions,
|
|
9437
9454
|
ys as useMessages
|
|
9438
9455
|
};
|