randmarcomps 1.32.0 → 1.33.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.d.ts +1 -1
- package/dist/randmarcomps.js +475 -475
- package/dist/randmarcomps.umd.cjs +8 -8
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { jsx as p, jsxs as G, Fragment as Xe } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import _e, { forwardRef as
|
|
3
|
+
import _e, { forwardRef as Nr, createElement as dn, useState as Tn, useLayoutEffect as ti, useEffect as ni } from "react";
|
|
4
4
|
import * as Rn from "react-dom";
|
|
5
5
|
import ri from "react-dom";
|
|
6
|
-
import { useParams as
|
|
7
|
-
var ai = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable,
|
|
8
|
-
for (var n in t || (t = {})) kr.call(t, n) &&
|
|
9
|
-
if (At) for (var n of At(t)) Dr.call(t, n) &&
|
|
6
|
+
import { useParams as Or, Link as Mr, useNavigate as oi } from "react-router-dom";
|
|
7
|
+
var ai = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Qn = (e, t, n) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ci = (e, t) => {
|
|
8
|
+
for (var n in t || (t = {})) kr.call(t, n) && Qn(e, n, t[n]);
|
|
9
|
+
if (At) for (var n of At(t)) Dr.call(t, n) && Qn(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
11
|
}, li = (e, t) => ii(e, si(t)), di = (e, t) => {
|
|
12
12
|
var n = {};
|
|
@@ -26,12 +26,12 @@ function fi(e) {
|
|
|
26
26
|
}
|
|
27
27
|
var pi = 18, Ir = 40, mi = `${Ir}px`, hi = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
28
28
|
function gi({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
29
|
-
let [o, a] = s.useState(!1), [i, c] = s.useState(!1), [
|
|
29
|
+
let [o, a] = s.useState(!1), [i, c] = s.useState(!1), [l, d] = s.useState(!1), u = s.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && o && i, [o, i, n]), m = s.useCallback(() => {
|
|
30
30
|
let v = e.current, h = t.current;
|
|
31
|
-
if (!v || !h ||
|
|
31
|
+
if (!v || !h || l || n === "none") return;
|
|
32
32
|
let b = v, f = b.getBoundingClientRect().left + b.offsetWidth, g = b.getBoundingClientRect().top + b.offsetHeight / 2, w = f - pi, y = g;
|
|
33
|
-
document.querySelectorAll(hi).length === 0 && document.elementFromPoint(w, y) === v || (a(!0),
|
|
34
|
-
}, [e, t,
|
|
33
|
+
document.querySelectorAll(hi).length === 0 && document.elementFromPoint(w, y) === v || (a(!0), d(!0));
|
|
34
|
+
}, [e, t, l, n]);
|
|
35
35
|
return s.useEffect(() => {
|
|
36
36
|
let v = e.current;
|
|
37
37
|
if (!v || n === "none") return;
|
|
@@ -48,7 +48,7 @@ function gi({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
48
48
|
let v = r || document.activeElement === t.current;
|
|
49
49
|
if (n === "none" || !v) return;
|
|
50
50
|
let h = setTimeout(m, 0), b = setTimeout(m, 2e3), f = setTimeout(m, 5e3), g = setTimeout(() => {
|
|
51
|
-
|
|
51
|
+
d(!0);
|
|
52
52
|
}, 6e3);
|
|
53
53
|
return () => {
|
|
54
54
|
clearTimeout(h), clearTimeout(b), clearTimeout(f), clearTimeout(g);
|
|
@@ -56,7 +56,7 @@ function gi({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
56
56
|
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: u, PWM_BADGE_SPACE_WIDTH: mi };
|
|
57
57
|
}
|
|
58
58
|
var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
59
|
-
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: c, placeholder:
|
|
59
|
+
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: c, placeholder: l, inputMode: d = "numeric", onComplete: u, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: h, noScriptCSSFallback: b = vi, render: f, children: g } = n, w = di(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), y, x, C, S, E;
|
|
60
60
|
let [T, F] = s.useState(typeof w.defaultValue == "string" ? w.defaultValue : ""), k = r ?? T, $ = fi(k), V = s.useCallback((D) => {
|
|
61
61
|
o == null || o(D), F(D);
|
|
62
62
|
}, [o]), z = s.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), M = s.useRef(null), R = s.useRef(null), W = s.useRef({ value: k, onChange: V, isIOS: typeof window < "u" && ((x = (y = window == null ? void 0 : window.CSS) == null ? void 0 : y.supports) == null ? void 0 : x.call(y, "-webkit-touch-callout", "none")) }), N = s.useRef({ prev: [(C = M.current) == null ? void 0 : C.selectionStart, (S = M.current) == null ? void 0 : S.selectionEnd, (E = M.current) == null ? void 0 : E.selectionDirection] });
|
|
@@ -88,8 +88,8 @@ var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
|
88
88
|
}
|
|
89
89
|
Ce !== -1 && Se !== -1 && Ce !== Se && M.current.setSelectionRange(Ce, Se, De);
|
|
90
90
|
}
|
|
91
|
-
let
|
|
92
|
-
te(
|
|
91
|
+
let qn = Ce !== -1 ? Ce : j, Zn = Se !== -1 ? Se : ae, Za = De ?? pt;
|
|
92
|
+
te(qn), J(Zn), N.current.prev = [qn, Zn, Za];
|
|
93
93
|
}
|
|
94
94
|
if (document.addEventListener("selectionchange", Z, { capture: !0 }), Z(), document.activeElement === D && K(!0), !document.getElementById("input-otp-style")) {
|
|
95
95
|
let j = document.createElement("style");
|
|
@@ -143,7 +143,7 @@ var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
|
143
143
|
ne.value = le, V(le);
|
|
144
144
|
let ke = Math.min(le.length, a - 1), we = le.length;
|
|
145
145
|
ne.setSelectionRange(ke, we), te(ke), J(we);
|
|
146
|
-
}, [a, V, z, k]), ut = s.useMemo(() => ({ position: "relative", cursor: w.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [w.disabled]), rt = s.useMemo(() => ({ position: "absolute", inset: 0, width: oe.willPushPWMBadge ? `calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: oe.willPushPWMBadge ? `inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [oe.PWM_BADGE_SPACE_WIDTH, oe.willPushPWMBadge, i]), ft = s.useMemo(() => s.createElement("input", li(ci({ autoComplete: w.autoComplete || "one-time-code" }, w), { "data-input-otp": !0, "data-input-otp-placeholder-shown": k.length === 0 || void 0, "data-input-otp-mss": q, "data-input-otp-mse": Q, inputMode:
|
|
146
|
+
}, [a, V, z, k]), ut = s.useMemo(() => ({ position: "relative", cursor: w.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [w.disabled]), rt = s.useMemo(() => ({ position: "absolute", inset: 0, width: oe.willPushPWMBadge ? `calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: oe.willPushPWMBadge ? `inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [oe.PWM_BADGE_SPACE_WIDTH, oe.willPushPWMBadge, i]), ft = s.useMemo(() => s.createElement("input", li(ci({ autoComplete: w.autoComplete || "one-time-code" }, w), { "data-input-otp": !0, "data-input-otp-placeholder-shown": k.length === 0 || void 0, "data-input-otp-mss": q, "data-input-otp-mse": Q, inputMode: d, pattern: z == null ? void 0 : z.source, "aria-placeholder": l, style: rt, maxLength: a, value: k, ref: M, onPaste: (D) => {
|
|
147
147
|
var L;
|
|
148
148
|
nt(D), (L = w.onPaste) == null || L.call(w, D);
|
|
149
149
|
}, onChange: Ee, onMouseOver: (D) => {
|
|
@@ -158,9 +158,9 @@ var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
|
158
158
|
}, onBlur: (D) => {
|
|
159
159
|
var L;
|
|
160
160
|
K(!1), (L = w.onBlur) == null || L.call(w, D);
|
|
161
|
-
} })), [Ee, me, nt,
|
|
161
|
+
} })), [Ee, me, nt, d, rt, a, Q, q, w, z == null ? void 0 : z.source, k]), Ve = s.useMemo(() => ({ slots: Array.from({ length: a }).map((D, L) => {
|
|
162
162
|
var Z;
|
|
163
|
-
let ne = _ && q !== null && Q !== null && (q === Q && L === q || L >= q && L < Q), re = k[L] !== void 0 ? k[L] : null, j = k[0] !== void 0 ? null : (Z =
|
|
163
|
+
let ne = _ && q !== null && Q !== null && (q === Q && L === q || L >= q && L < Q), re = k[L] !== void 0 ? k[L] : null, j = k[0] !== void 0 ? null : (Z = l == null ? void 0 : l[L]) != null ? Z : null;
|
|
164
164
|
return { char: re, placeholderChar: j, isActive: ne, hasFakeCaret: ne && re === null };
|
|
165
165
|
}), isFocused: _, isHovering: !w.disabled && H }), [_, H, a, Q, q, w.disabled, k]), Me = s.useMemo(() => f ? f(Ve) : s.createElement(_r.Provider, { value: Ve }, g), [g, Ve, f]);
|
|
166
166
|
return s.createElement(s.Fragment, null, b !== null && s.createElement("noscript", null, s.createElement("style", null, b)), s.createElement("div", { ref: R, "data-input-otp-container": !0, style: ut, className: h }, Me, s.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, ft)));
|
|
@@ -223,7 +223,7 @@ var wi = {
|
|
|
223
223
|
* This source code is licensed under the ISC license.
|
|
224
224
|
* See the LICENSE file in the root directory of this source tree.
|
|
225
225
|
*/
|
|
226
|
-
const yi =
|
|
226
|
+
const yi = Nr(
|
|
227
227
|
({
|
|
228
228
|
color: e = "currentColor",
|
|
229
229
|
size: t = 24,
|
|
@@ -233,10 +233,10 @@ const yi = Or(
|
|
|
233
233
|
children: a,
|
|
234
234
|
iconNode: i,
|
|
235
235
|
...c
|
|
236
|
-
},
|
|
236
|
+
}, l) => dn(
|
|
237
237
|
"svg",
|
|
238
238
|
{
|
|
239
|
-
ref:
|
|
239
|
+
ref: l,
|
|
240
240
|
...wi,
|
|
241
241
|
width: t,
|
|
242
242
|
height: t,
|
|
@@ -246,7 +246,7 @@ const yi = Or(
|
|
|
246
246
|
...c
|
|
247
247
|
},
|
|
248
248
|
[
|
|
249
|
-
...i.map(([
|
|
249
|
+
...i.map(([d, u]) => dn(d, u)),
|
|
250
250
|
...Array.isArray(a) ? a : [a]
|
|
251
251
|
]
|
|
252
252
|
)
|
|
@@ -258,7 +258,7 @@ const yi = Or(
|
|
|
258
258
|
* See the LICENSE file in the root directory of this source tree.
|
|
259
259
|
*/
|
|
260
260
|
const We = (e, t) => {
|
|
261
|
-
const n =
|
|
261
|
+
const n = Nr(
|
|
262
262
|
({ className: r, ...o }, a) => dn(yi, {
|
|
263
263
|
ref: a,
|
|
264
264
|
iconNode: t,
|
|
@@ -357,19 +357,19 @@ function Wr() {
|
|
|
357
357
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = zr(e)) && (r && (r += " "), r += t);
|
|
358
358
|
return r;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const Pn = "-", Ii = (e) => {
|
|
361
361
|
const t = Li(e), {
|
|
362
362
|
conflictingClassGroups: n,
|
|
363
363
|
conflictingClassGroupModifiers: r
|
|
364
364
|
} = e;
|
|
365
365
|
return {
|
|
366
366
|
getClassGroupId: (i) => {
|
|
367
|
-
const c = i.split(
|
|
367
|
+
const c = i.split(Pn);
|
|
368
368
|
return c[0] === "" && c.length !== 1 && c.shift(), Br(c, t) || _i(i);
|
|
369
369
|
},
|
|
370
370
|
getConflictingClassGroupIds: (i, c) => {
|
|
371
|
-
const
|
|
372
|
-
return c && r[i] ? [...
|
|
371
|
+
const l = n[i] || [];
|
|
372
|
+
return c && r[i] ? [...l, ...r[i]] : l;
|
|
373
373
|
}
|
|
374
374
|
};
|
|
375
375
|
}, Br = (e, t) => {
|
|
@@ -381,13 +381,13 @@ const An = "-", Ii = (e) => {
|
|
|
381
381
|
return o;
|
|
382
382
|
if (t.validators.length === 0)
|
|
383
383
|
return;
|
|
384
|
-
const a = e.join(
|
|
384
|
+
const a = e.join(Pn);
|
|
385
385
|
return (i = t.validators.find(({
|
|
386
386
|
validator: c
|
|
387
387
|
}) => c(a))) == null ? void 0 : i.classGroupId;
|
|
388
|
-
},
|
|
389
|
-
if (
|
|
390
|
-
const t =
|
|
388
|
+
}, Jn = /^\[(.+)\]$/, _i = (e) => {
|
|
389
|
+
if (Jn.test(e)) {
|
|
390
|
+
const t = Jn.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
391
391
|
if (n)
|
|
392
392
|
return "arbitrary.." + n;
|
|
393
393
|
}
|
|
@@ -405,7 +405,7 @@ const An = "-", Ii = (e) => {
|
|
|
405
405
|
}, un = (e, t, n, r) => {
|
|
406
406
|
e.forEach((o) => {
|
|
407
407
|
if (typeof o == "string") {
|
|
408
|
-
const a = o === "" ? t :
|
|
408
|
+
const a = o === "" ? t : er(t, o);
|
|
409
409
|
a.classGroupId = n;
|
|
410
410
|
return;
|
|
411
411
|
}
|
|
@@ -421,12 +421,12 @@ const An = "-", Ii = (e) => {
|
|
|
421
421
|
return;
|
|
422
422
|
}
|
|
423
423
|
Object.entries(o).forEach(([a, i]) => {
|
|
424
|
-
un(i,
|
|
424
|
+
un(i, er(t, a), n, r);
|
|
425
425
|
});
|
|
426
426
|
});
|
|
427
|
-
},
|
|
427
|
+
}, er = (e, t) => {
|
|
428
428
|
let n = e;
|
|
429
|
-
return t.split(
|
|
429
|
+
return t.split(Pn).forEach((r) => {
|
|
430
430
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
431
431
|
nextPart: /* @__PURE__ */ new Map(),
|
|
432
432
|
validators: []
|
|
@@ -463,22 +463,22 @@ const An = "-", Ii = (e) => {
|
|
|
463
463
|
} = e;
|
|
464
464
|
let r = (o) => {
|
|
465
465
|
const a = [];
|
|
466
|
-
let i = 0, c = 0,
|
|
466
|
+
let i = 0, c = 0, l = 0, d;
|
|
467
467
|
for (let b = 0; b < o.length; b++) {
|
|
468
468
|
let f = o[b];
|
|
469
469
|
if (i === 0 && c === 0) {
|
|
470
470
|
if (f === pn) {
|
|
471
|
-
a.push(o.slice(
|
|
471
|
+
a.push(o.slice(l, b)), l = b + zi;
|
|
472
472
|
continue;
|
|
473
473
|
}
|
|
474
474
|
if (f === "/") {
|
|
475
|
-
|
|
475
|
+
d = b;
|
|
476
476
|
continue;
|
|
477
477
|
}
|
|
478
478
|
}
|
|
479
479
|
f === "[" ? i++ : f === "]" ? i-- : f === "(" ? c++ : f === ")" && c--;
|
|
480
480
|
}
|
|
481
|
-
const u = a.length === 0 ? o : o.substring(
|
|
481
|
+
const u = a.length === 0 ? o : o.substring(l), m = Bi(u), v = m !== u, h = d && d > l ? d - l : void 0;
|
|
482
482
|
return {
|
|
483
483
|
modifiers: a,
|
|
484
484
|
hasImportantModifier: v,
|
|
@@ -527,9 +527,9 @@ const An = "-", Ii = (e) => {
|
|
|
527
527
|
getConflictingClassGroupIds: o,
|
|
528
528
|
sortModifiers: a
|
|
529
529
|
} = t, i = [], c = e.trim().split(ji);
|
|
530
|
-
let
|
|
531
|
-
for (let
|
|
532
|
-
const u = c[
|
|
530
|
+
let l = "";
|
|
531
|
+
for (let d = c.length - 1; d >= 0; d -= 1) {
|
|
532
|
+
const u = c[d], {
|
|
533
533
|
isExternal: m,
|
|
534
534
|
modifiers: v,
|
|
535
535
|
hasImportantModifier: h,
|
|
@@ -537,17 +537,17 @@ const An = "-", Ii = (e) => {
|
|
|
537
537
|
maybePostfixModifierPosition: f
|
|
538
538
|
} = n(u);
|
|
539
539
|
if (m) {
|
|
540
|
-
|
|
540
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
541
541
|
continue;
|
|
542
542
|
}
|
|
543
543
|
let g = !!f, w = r(g ? b.substring(0, f) : b);
|
|
544
544
|
if (!w) {
|
|
545
545
|
if (!g) {
|
|
546
|
-
|
|
546
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
547
547
|
continue;
|
|
548
548
|
}
|
|
549
549
|
if (w = r(b), !w) {
|
|
550
|
-
|
|
550
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
551
551
|
continue;
|
|
552
552
|
}
|
|
553
553
|
g = !1;
|
|
@@ -561,9 +561,9 @@ const An = "-", Ii = (e) => {
|
|
|
561
561
|
const T = S[E];
|
|
562
562
|
i.push(x + T);
|
|
563
563
|
}
|
|
564
|
-
|
|
564
|
+
l = u + (l.length > 0 ? " " + l : l);
|
|
565
565
|
}
|
|
566
|
-
return
|
|
566
|
+
return l;
|
|
567
567
|
};
|
|
568
568
|
function Ui() {
|
|
569
569
|
let e = 0, t, n, r = "";
|
|
@@ -581,16 +581,16 @@ const Vr = (e) => {
|
|
|
581
581
|
};
|
|
582
582
|
function Ki(e, ...t) {
|
|
583
583
|
let n, r, o, a = i;
|
|
584
|
-
function i(
|
|
585
|
-
const
|
|
586
|
-
return n = Hi(
|
|
584
|
+
function i(l) {
|
|
585
|
+
const d = t.reduce((u, m) => m(u), e());
|
|
586
|
+
return n = Hi(d), r = n.cache.get, o = n.cache.set, a = c, c(l);
|
|
587
587
|
}
|
|
588
|
-
function c(
|
|
589
|
-
const
|
|
590
|
-
if (
|
|
591
|
-
return
|
|
592
|
-
const u = Gi(
|
|
593
|
-
return o(
|
|
588
|
+
function c(l) {
|
|
589
|
+
const d = r(l);
|
|
590
|
+
if (d)
|
|
591
|
+
return d;
|
|
592
|
+
const u = Gi(l, n);
|
|
593
|
+
return o(l, u), u;
|
|
594
594
|
}
|
|
595
595
|
return function() {
|
|
596
596
|
return a(Ui.apply(null, arguments));
|
|
@@ -599,26 +599,26 @@ function Ki(e, ...t) {
|
|
|
599
599
|
const X = (e) => {
|
|
600
600
|
const t = (n) => n[e] || [];
|
|
601
601
|
return t.isThemeGetter = !0, t;
|
|
602
|
-
}, Hr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, jr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yi = /^\d+\/\d+$/, Xi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Qi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ji = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => Yi.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), Le = (e) => !!e && Number.isInteger(Number(e)),
|
|
602
|
+
}, Hr = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, jr = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Yi = /^\d+\/\d+$/, Xi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, qi = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, Zi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Qi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ji = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, He = (e) => Yi.test(e), B = (e) => !!e && !Number.isNaN(Number(e)), Le = (e) => !!e && Number.isInteger(Number(e)), tr = (e) => e.endsWith("%") && B(e.slice(0, -1)), Te = (e) => Xi.test(e), es = () => !0, ts = (e) => (
|
|
603
603
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
604
604
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
605
605
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
606
606
|
qi.test(e) && !Zi.test(e)
|
|
607
|
-
),
|
|
607
|
+
), An = () => !1, ns = (e) => Qi.test(e), rs = (e) => Ji.test(e), os = (e) => !P(e) && !A(e), as = (e) => Qe(e, Kr, An), P = (e) => Hr.test(e), Fe = (e) => Qe(e, Yr, ts), Xt = (e) => Qe(e, gs, B), is = (e) => Qe(e, Gr, An), ss = (e) => Qe(e, Ur, rs), cs = (e) => Qe(e, An, ns), A = (e) => jr.test(e), mt = (e) => Je(e, Yr), ls = (e) => Je(e, vs), ds = (e) => Je(e, Gr), us = (e) => Je(e, Kr), fs = (e) => Je(e, Ur), ps = (e) => Je(e, bs, !0), Qe = (e, t, n) => {
|
|
608
608
|
const r = Hr.exec(e);
|
|
609
609
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
610
610
|
}, Je = (e, t, n = !1) => {
|
|
611
611
|
const r = jr.exec(e);
|
|
612
612
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
613
613
|
}, Gr = (e) => e === "position", ms = /* @__PURE__ */ new Set(["image", "url"]), Ur = (e) => ms.has(e), hs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Kr = (e) => hs.has(e), Yr = (e) => e === "length", gs = (e) => e === "number", vs = (e) => e === "family-name", bs = (e) => e === "shadow", ws = () => {
|
|
614
|
-
const e = X("color"), t = X("font"), n = X("text"), r = X("font-weight"), o = X("tracking"), a = X("leading"), i = X("breakpoint"), c = X("container"),
|
|
614
|
+
const e = X("color"), t = X("font"), n = X("text"), r = X("font-weight"), o = X("tracking"), a = X("leading"), i = X("breakpoint"), c = X("container"), l = X("spacing"), d = X("radius"), u = X("shadow"), m = X("inset-shadow"), v = X("drop-shadow"), h = X("blur"), b = X("perspective"), f = X("aspect"), g = X("ease"), w = X("animate"), y = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], x = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], E = () => [A, P, l], T = () => [He, "full", "auto", ...E()], F = () => [Le, "none", "subgrid", A, P], k = () => ["auto", {
|
|
615
615
|
span: ["full", Le, A, P]
|
|
616
|
-
}, A, P], $ = () => [Le, "auto", A, P], V = () => ["auto", "min", "max", "fr", A, P], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], M = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], W = () => [He, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], N = () => [e, A, P], H = () => [
|
|
616
|
+
}, A, P], $ = () => [Le, "auto", A, P], V = () => ["auto", "min", "max", "fr", A, P], z = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], M = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], W = () => [He, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], N = () => [e, A, P], H = () => [tr, Fe], O = () => [
|
|
617
617
|
// Deprecated since Tailwind CSS v4.0.0
|
|
618
618
|
"",
|
|
619
619
|
"none",
|
|
620
620
|
"full",
|
|
621
|
-
|
|
621
|
+
d,
|
|
622
622
|
A,
|
|
623
623
|
P
|
|
624
624
|
], _ = () => ["", B, mt, Fe], K = () => ["solid", "dashed", "dotted", "double"], q = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], te = () => [
|
|
@@ -1340,7 +1340,7 @@ const X = (e) => {
|
|
|
1340
1340
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1341
1341
|
*/
|
|
1342
1342
|
"font-stretch": [{
|
|
1343
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1343
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", tr, P]
|
|
1344
1344
|
}],
|
|
1345
1345
|
/**
|
|
1346
1346
|
* Font Family
|
|
@@ -2887,7 +2887,7 @@ function Hu({
|
|
|
2887
2887
|
function ju({ ...e }) {
|
|
2888
2888
|
return /* @__PURE__ */ p("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ p(Ri, {}) });
|
|
2889
2889
|
}
|
|
2890
|
-
function
|
|
2890
|
+
function nr(e, t) {
|
|
2891
2891
|
if (typeof e == "function")
|
|
2892
2892
|
return e(t);
|
|
2893
2893
|
e != null && (e.current = t);
|
|
@@ -2896,14 +2896,14 @@ function Xr(...e) {
|
|
|
2896
2896
|
return (t) => {
|
|
2897
2897
|
let n = !1;
|
|
2898
2898
|
const r = e.map((o) => {
|
|
2899
|
-
const a =
|
|
2899
|
+
const a = nr(o, t);
|
|
2900
2900
|
return !n && typeof a == "function" && (n = !0), a;
|
|
2901
2901
|
});
|
|
2902
2902
|
if (n)
|
|
2903
2903
|
return () => {
|
|
2904
2904
|
for (let o = 0; o < r.length; o++) {
|
|
2905
2905
|
const a = r[o];
|
|
2906
|
-
typeof a == "function" ? a() :
|
|
2906
|
+
typeof a == "function" ? a() : nr(e[o], null);
|
|
2907
2907
|
}
|
|
2908
2908
|
};
|
|
2909
2909
|
};
|
|
@@ -2914,7 +2914,7 @@ function ee(...e) {
|
|
|
2914
2914
|
var de = s.forwardRef((e, t) => {
|
|
2915
2915
|
const { children: n, ...r } = e, o = s.Children.toArray(n), a = o.find(xs);
|
|
2916
2916
|
if (a) {
|
|
2917
|
-
const i = a.props.children, c = o.map((
|
|
2917
|
+
const i = a.props.children, c = o.map((l) => l === a ? s.Children.count(i) > 1 ? s.Children.only(null) : s.isValidElement(i) ? i.props.children : null : l);
|
|
2918
2918
|
return /* @__PURE__ */ p(mn, { ...r, ref: t, children: s.isValidElement(i) ? s.cloneElement(i, void 0, c) : null });
|
|
2919
2919
|
}
|
|
2920
2920
|
return /* @__PURE__ */ p(mn, { ...r, ref: t, children: n });
|
|
@@ -2948,18 +2948,18 @@ function Cs(e) {
|
|
|
2948
2948
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
2949
2949
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
2950
2950
|
}
|
|
2951
|
-
const
|
|
2951
|
+
const rr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, or = Wr, It = (e, t) => (n) => {
|
|
2952
2952
|
var r;
|
|
2953
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
2954
|
-
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((
|
|
2955
|
-
const u = n == null ? void 0 : n[
|
|
2953
|
+
if ((t == null ? void 0 : t.variants) == null) return or(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2954
|
+
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((d) => {
|
|
2955
|
+
const u = n == null ? void 0 : n[d], m = a == null ? void 0 : a[d];
|
|
2956
2956
|
if (u === null) return null;
|
|
2957
|
-
const v =
|
|
2958
|
-
return o[
|
|
2959
|
-
}), c = n && Object.entries(n).reduce((
|
|
2957
|
+
const v = rr(u) || rr(m);
|
|
2958
|
+
return o[d][v];
|
|
2959
|
+
}), c = n && Object.entries(n).reduce((d, u) => {
|
|
2960
2960
|
let [m, v] = u;
|
|
2961
|
-
return v === void 0 || (
|
|
2962
|
-
}, {}),
|
|
2961
|
+
return v === void 0 || (d[m] = v), d;
|
|
2962
|
+
}, {}), l = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((d, u) => {
|
|
2963
2963
|
let { class: m, className: v, ...h } = u;
|
|
2964
2964
|
return Object.entries(h).every((b) => {
|
|
2965
2965
|
let [f, g] = b;
|
|
@@ -2971,12 +2971,12 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
2971
2971
|
...c
|
|
2972
2972
|
}[f] === g;
|
|
2973
2973
|
}) ? [
|
|
2974
|
-
...
|
|
2974
|
+
...d,
|
|
2975
2975
|
m,
|
|
2976
2976
|
v
|
|
2977
|
-
] :
|
|
2977
|
+
] : d;
|
|
2978
2978
|
}, []);
|
|
2979
|
-
return
|
|
2979
|
+
return or(e, i, l, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2980
2980
|
}, Ss = It(
|
|
2981
2981
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
2982
2982
|
{
|
|
@@ -3005,7 +3005,7 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3005
3005
|
size: "default"
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
-
),
|
|
3008
|
+
), Nn = s.forwardRef(
|
|
3009
3009
|
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */ p(
|
|
3010
3010
|
r ? de : "button",
|
|
3011
3011
|
{
|
|
@@ -3015,8 +3015,8 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3015
3015
|
}
|
|
3016
3016
|
)
|
|
3017
3017
|
);
|
|
3018
|
-
|
|
3019
|
-
const
|
|
3018
|
+
Nn.displayName = "Button";
|
|
3019
|
+
const On = s.forwardRef(
|
|
3020
3020
|
({ className: e, type: t, ...n }, r) => /* @__PURE__ */ p(
|
|
3021
3021
|
"input",
|
|
3022
3022
|
{
|
|
@@ -3030,7 +3030,7 @@ const Mn = s.forwardRef(
|
|
|
3030
3030
|
}
|
|
3031
3031
|
)
|
|
3032
3032
|
);
|
|
3033
|
-
|
|
3033
|
+
On.displayName = "Input";
|
|
3034
3034
|
var Ts = [
|
|
3035
3035
|
"a",
|
|
3036
3036
|
"button",
|
|
@@ -3058,8 +3058,8 @@ var Ts = [
|
|
|
3058
3058
|
function Zr(e, t) {
|
|
3059
3059
|
e && Rn.flushSync(() => e.dispatchEvent(t));
|
|
3060
3060
|
}
|
|
3061
|
-
var Rs = "Separator",
|
|
3062
|
-
const { decorative: n, orientation: r =
|
|
3061
|
+
var Rs = "Separator", ar = "horizontal", Ps = ["horizontal", "vertical"], Qr = s.forwardRef((e, t) => {
|
|
3062
|
+
const { decorative: n, orientation: r = ar, ...o } = e, a = As(r) ? r : ar, c = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
3063
3063
|
return /* @__PURE__ */ p(
|
|
3064
3064
|
Y.div,
|
|
3065
3065
|
{
|
|
@@ -3100,8 +3100,8 @@ function U(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
3100
3100
|
}
|
|
3101
3101
|
function Ns(e, t) {
|
|
3102
3102
|
const n = s.createContext(t), r = (a) => {
|
|
3103
|
-
const { children: i, ...c } = a,
|
|
3104
|
-
return /* @__PURE__ */ p(n.Provider, { value:
|
|
3103
|
+
const { children: i, ...c } = a, l = s.useMemo(() => c, Object.values(c));
|
|
3104
|
+
return /* @__PURE__ */ p(n.Provider, { value: l, children: i });
|
|
3105
3105
|
};
|
|
3106
3106
|
r.displayName = e + "Provider";
|
|
3107
3107
|
function o(a) {
|
|
@@ -3115,30 +3115,30 @@ function Ns(e, t) {
|
|
|
3115
3115
|
function ct(e, t = []) {
|
|
3116
3116
|
let n = [];
|
|
3117
3117
|
function r(a, i) {
|
|
3118
|
-
const c = s.createContext(i),
|
|
3118
|
+
const c = s.createContext(i), l = n.length;
|
|
3119
3119
|
n = [...n, i];
|
|
3120
|
-
const
|
|
3120
|
+
const d = (m) => {
|
|
3121
3121
|
var w;
|
|
3122
|
-
const { scope: v, children: h, ...b } = m, f = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[
|
|
3122
|
+
const { scope: v, children: h, ...b } = m, f = ((w = v == null ? void 0 : v[e]) == null ? void 0 : w[l]) || c, g = s.useMemo(() => b, Object.values(b));
|
|
3123
3123
|
return /* @__PURE__ */ p(f.Provider, { value: g, children: h });
|
|
3124
3124
|
};
|
|
3125
|
-
|
|
3125
|
+
d.displayName = a + "Provider";
|
|
3126
3126
|
function u(m, v) {
|
|
3127
3127
|
var f;
|
|
3128
|
-
const h = ((f = v == null ? void 0 : v[e]) == null ? void 0 : f[
|
|
3128
|
+
const h = ((f = v == null ? void 0 : v[e]) == null ? void 0 : f[l]) || c, b = s.useContext(h);
|
|
3129
3129
|
if (b) return b;
|
|
3130
3130
|
if (i !== void 0) return i;
|
|
3131
3131
|
throw new Error(`\`${m}\` must be used within \`${a}\``);
|
|
3132
3132
|
}
|
|
3133
|
-
return [
|
|
3133
|
+
return [d, u];
|
|
3134
3134
|
}
|
|
3135
3135
|
const o = () => {
|
|
3136
3136
|
const a = n.map((i) => s.createContext(i));
|
|
3137
3137
|
return function(c) {
|
|
3138
|
-
const
|
|
3138
|
+
const l = (c == null ? void 0 : c[e]) || a;
|
|
3139
3139
|
return s.useMemo(
|
|
3140
|
-
() => ({ [`__scope${e}`]: { ...c, [e]:
|
|
3141
|
-
[c,
|
|
3140
|
+
() => ({ [`__scope${e}`]: { ...c, [e]: l } }),
|
|
3141
|
+
[c, l]
|
|
3142
3142
|
);
|
|
3143
3143
|
};
|
|
3144
3144
|
};
|
|
@@ -3153,8 +3153,8 @@ function Os(...e) {
|
|
|
3153
3153
|
scopeName: o.scopeName
|
|
3154
3154
|
}));
|
|
3155
3155
|
return function(a) {
|
|
3156
|
-
const i = r.reduce((c, { useScope:
|
|
3157
|
-
const m =
|
|
3156
|
+
const i = r.reduce((c, { useScope: l, scopeName: d }) => {
|
|
3157
|
+
const m = l(a)[`__scope${d}`];
|
|
3158
3158
|
return { ...c, ...m };
|
|
3159
3159
|
}, {});
|
|
3160
3160
|
return s.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
@@ -3180,23 +3180,23 @@ function ce(e) {
|
|
|
3180
3180
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
3181
3181
|
}, []);
|
|
3182
3182
|
}
|
|
3183
|
-
function
|
|
3183
|
+
function Mn({
|
|
3184
3184
|
prop: e,
|
|
3185
3185
|
defaultProp: t,
|
|
3186
3186
|
onChange: n = () => {
|
|
3187
3187
|
}
|
|
3188
3188
|
}) {
|
|
3189
|
-
const [r, o] = Ds({ defaultProp: t, onChange: n }), a = e !== void 0, i = a ? e : r, c = ce(n),
|
|
3190
|
-
(
|
|
3189
|
+
const [r, o] = Ds({ defaultProp: t, onChange: n }), a = e !== void 0, i = a ? e : r, c = ce(n), l = s.useCallback(
|
|
3190
|
+
(d) => {
|
|
3191
3191
|
if (a) {
|
|
3192
|
-
const m = typeof
|
|
3192
|
+
const m = typeof d == "function" ? d(e) : d;
|
|
3193
3193
|
m !== e && c(m);
|
|
3194
3194
|
} else
|
|
3195
|
-
o(
|
|
3195
|
+
o(d);
|
|
3196
3196
|
},
|
|
3197
3197
|
[a, e, o, c]
|
|
3198
3198
|
);
|
|
3199
|
-
return [i,
|
|
3199
|
+
return [i, l];
|
|
3200
3200
|
}
|
|
3201
3201
|
function Ds({
|
|
3202
3202
|
defaultProp: e,
|
|
@@ -3216,7 +3216,7 @@ function Is(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3216
3216
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3217
3217
|
}, [n, t]);
|
|
3218
3218
|
}
|
|
3219
|
-
var _s = "DismissableLayer", hn = "dismissableLayer.update", Ls = "dismissableLayer.pointerDownOutside", Fs = "dismissableLayer.focusOutside",
|
|
3219
|
+
var _s = "DismissableLayer", hn = "dismissableLayer.update", Ls = "dismissableLayer.pointerDownOutside", Fs = "dismissableLayer.focusOutside", ir, to = s.createContext({
|
|
3220
3220
|
layers: /* @__PURE__ */ new Set(),
|
|
3221
3221
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3222
3222
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3229,30 +3229,30 @@ var _s = "DismissableLayer", hn = "dismissableLayer.update", Ls = "dismissableLa
|
|
|
3229
3229
|
onFocusOutside: a,
|
|
3230
3230
|
onInteractOutside: i,
|
|
3231
3231
|
onDismiss: c,
|
|
3232
|
-
...
|
|
3233
|
-
} = e,
|
|
3234
|
-
const F = T.target, k = [...
|
|
3232
|
+
...l
|
|
3233
|
+
} = e, d = s.useContext(to), [u, m] = s.useState(null), v = (u == null ? void 0 : u.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = s.useState({}), b = ee(t, (T) => m(T)), f = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), w = f.indexOf(g), y = u ? f.indexOf(u) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, S = zs((T) => {
|
|
3234
|
+
const F = T.target, k = [...d.branches].some(($) => $.contains(F));
|
|
3235
3235
|
!C || k || (o == null || o(T), i == null || i(T), T.defaultPrevented || c == null || c());
|
|
3236
3236
|
}, v), E = Ws((T) => {
|
|
3237
3237
|
const F = T.target;
|
|
3238
|
-
[...
|
|
3238
|
+
[...d.branches].some(($) => $.contains(F)) || (a == null || a(T), i == null || i(T), T.defaultPrevented || c == null || c());
|
|
3239
3239
|
}, v);
|
|
3240
3240
|
return Is((T) => {
|
|
3241
|
-
y ===
|
|
3241
|
+
y === d.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && c && (T.preventDefault(), c()));
|
|
3242
3242
|
}, v), s.useEffect(() => {
|
|
3243
3243
|
if (u)
|
|
3244
|
-
return n && (
|
|
3245
|
-
n &&
|
|
3244
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (ir = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(u)), d.layers.add(u), sr(), () => {
|
|
3245
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = ir);
|
|
3246
3246
|
};
|
|
3247
|
-
}, [u, v, n,
|
|
3248
|
-
u && (
|
|
3249
|
-
}, [u,
|
|
3247
|
+
}, [u, v, n, d]), s.useEffect(() => () => {
|
|
3248
|
+
u && (d.layers.delete(u), d.layersWithOutsidePointerEventsDisabled.delete(u), sr());
|
|
3249
|
+
}, [u, d]), s.useEffect(() => {
|
|
3250
3250
|
const T = () => h({});
|
|
3251
3251
|
return document.addEventListener(hn, T), () => document.removeEventListener(hn, T);
|
|
3252
3252
|
}, []), /* @__PURE__ */ p(
|
|
3253
3253
|
Y.div,
|
|
3254
3254
|
{
|
|
3255
|
-
...
|
|
3255
|
+
...l,
|
|
3256
3256
|
ref: b,
|
|
3257
3257
|
style: {
|
|
3258
3258
|
pointerEvents: x ? C ? "auto" : "none" : void 0,
|
|
@@ -3286,16 +3286,16 @@ function zs(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3286
3286
|
return s.useEffect(() => {
|
|
3287
3287
|
const a = (c) => {
|
|
3288
3288
|
if (c.target && !r.current) {
|
|
3289
|
-
let
|
|
3289
|
+
let l = function() {
|
|
3290
3290
|
ro(
|
|
3291
3291
|
Ls,
|
|
3292
3292
|
n,
|
|
3293
|
-
|
|
3293
|
+
d,
|
|
3294
3294
|
{ discrete: !0 }
|
|
3295
3295
|
);
|
|
3296
3296
|
};
|
|
3297
|
-
const
|
|
3298
|
-
c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current =
|
|
3297
|
+
const d = { originalEvent: c };
|
|
3298
|
+
c.pointerType === "touch" ? (t.removeEventListener("click", o.current), o.current = l, t.addEventListener("click", o.current, { once: !0 })) : l();
|
|
3299
3299
|
} else
|
|
3300
3300
|
t.removeEventListener("click", o.current);
|
|
3301
3301
|
r.current = !1;
|
|
@@ -3324,7 +3324,7 @@ function Ws(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3324
3324
|
onBlurCapture: () => r.current = !1
|
|
3325
3325
|
};
|
|
3326
3326
|
}
|
|
3327
|
-
function
|
|
3327
|
+
function sr() {
|
|
3328
3328
|
const e = new CustomEvent(hn);
|
|
3329
3329
|
document.dispatchEvent(e);
|
|
3330
3330
|
}
|
|
@@ -3332,14 +3332,14 @@ function ro(e, t, n, { discrete: r }) {
|
|
|
3332
3332
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3333
3333
|
t && o.addEventListener(e, t, { once: !0 }), r ? Zr(o, a) : o.dispatchEvent(a);
|
|
3334
3334
|
}
|
|
3335
|
-
var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount",
|
|
3335
|
+
var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoFocusOnUnmount", cr = { bubbles: !1, cancelable: !0 }, Hs = "FocusScope", oo = s.forwardRef((e, t) => {
|
|
3336
3336
|
const {
|
|
3337
3337
|
loop: n = !1,
|
|
3338
3338
|
trapped: r = !1,
|
|
3339
3339
|
onMountAutoFocus: o,
|
|
3340
3340
|
onUnmountAutoFocus: a,
|
|
3341
3341
|
...i
|
|
3342
|
-
} = e, [c,
|
|
3342
|
+
} = e, [c, l] = s.useState(null), d = ce(o), u = ce(a), m = s.useRef(null), v = ee(t, (f) => l(f)), h = s.useRef({
|
|
3343
3343
|
paused: !1,
|
|
3344
3344
|
pause() {
|
|
3345
3345
|
this.paused = !0;
|
|
@@ -3371,20 +3371,20 @@ var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoF
|
|
|
3371
3371
|
}
|
|
3372
3372
|
}, [r, c, h.paused]), s.useEffect(() => {
|
|
3373
3373
|
if (c) {
|
|
3374
|
-
|
|
3374
|
+
dr.add(h);
|
|
3375
3375
|
const f = document.activeElement;
|
|
3376
3376
|
if (!c.contains(f)) {
|
|
3377
|
-
const w = new CustomEvent(qt,
|
|
3378
|
-
c.addEventListener(qt,
|
|
3377
|
+
const w = new CustomEvent(qt, cr);
|
|
3378
|
+
c.addEventListener(qt, d), c.dispatchEvent(w), w.defaultPrevented || (js(Xs(ao(c)), { select: !0 }), document.activeElement === f && Re(c));
|
|
3379
3379
|
}
|
|
3380
3380
|
return () => {
|
|
3381
|
-
c.removeEventListener(qt,
|
|
3382
|
-
const w = new CustomEvent(Zt,
|
|
3383
|
-
c.addEventListener(Zt, u), c.dispatchEvent(w), w.defaultPrevented || Re(f ?? document.body, { select: !0 }), c.removeEventListener(Zt, u),
|
|
3381
|
+
c.removeEventListener(qt, d), setTimeout(() => {
|
|
3382
|
+
const w = new CustomEvent(Zt, cr);
|
|
3383
|
+
c.addEventListener(Zt, u), c.dispatchEvent(w), w.defaultPrevented || Re(f ?? document.body, { select: !0 }), c.removeEventListener(Zt, u), dr.remove(h);
|
|
3384
3384
|
}, 0);
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
}, [c,
|
|
3387
|
+
}, [c, d, u, h]);
|
|
3388
3388
|
const b = s.useCallback(
|
|
3389
3389
|
(f) => {
|
|
3390
3390
|
if (!n && !r || h.paused) return;
|
|
@@ -3405,7 +3405,7 @@ function js(e, { select: t = !1 } = {}) {
|
|
|
3405
3405
|
if (Re(r, { select: t }), document.activeElement !== n) return;
|
|
3406
3406
|
}
|
|
3407
3407
|
function Gs(e) {
|
|
3408
|
-
const t = ao(e), n =
|
|
3408
|
+
const t = ao(e), n = lr(t, e), r = lr(t.reverse(), e);
|
|
3409
3409
|
return [n, r];
|
|
3410
3410
|
}
|
|
3411
3411
|
function ao(e) {
|
|
@@ -3418,7 +3418,7 @@ function ao(e) {
|
|
|
3418
3418
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
3419
3419
|
return t;
|
|
3420
3420
|
}
|
|
3421
|
-
function
|
|
3421
|
+
function lr(e, t) {
|
|
3422
3422
|
for (const n of e)
|
|
3423
3423
|
if (!Us(n, { upTo: t })) return n;
|
|
3424
3424
|
}
|
|
@@ -3440,21 +3440,21 @@ function Re(e, { select: t = !1 } = {}) {
|
|
|
3440
3440
|
e.focus({ preventScroll: !0 }), e !== n && Ks(e) && t && e.select();
|
|
3441
3441
|
}
|
|
3442
3442
|
}
|
|
3443
|
-
var
|
|
3443
|
+
var dr = Ys();
|
|
3444
3444
|
function Ys() {
|
|
3445
3445
|
let e = [];
|
|
3446
3446
|
return {
|
|
3447
3447
|
add(t) {
|
|
3448
3448
|
const n = e[0];
|
|
3449
|
-
t !== n && (n == null || n.pause()), e =
|
|
3449
|
+
t !== n && (n == null || n.pause()), e = ur(e, t), e.unshift(t);
|
|
3450
3450
|
},
|
|
3451
3451
|
remove(t) {
|
|
3452
3452
|
var n;
|
|
3453
|
-
e =
|
|
3453
|
+
e = ur(e, t), (n = e[0]) == null || n.resume();
|
|
3454
3454
|
}
|
|
3455
3455
|
};
|
|
3456
3456
|
}
|
|
3457
|
-
function
|
|
3457
|
+
function ur(e, t) {
|
|
3458
3458
|
const n = [...e], r = n.indexOf(t);
|
|
3459
3459
|
return r !== -1 && n.splice(r, 1), n;
|
|
3460
3460
|
}
|
|
@@ -3478,7 +3478,7 @@ var Be = (e) => {
|
|
|
3478
3478
|
};
|
|
3479
3479
|
Be.displayName = "Presence";
|
|
3480
3480
|
function Qs(e) {
|
|
3481
|
-
const [t, n] = s.useState(), r = s.useRef({}), o = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [c,
|
|
3481
|
+
const [t, n] = s.useState(), r = s.useRef({}), o = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [c, l] = Zs(i, {
|
|
3482
3482
|
mounted: {
|
|
3483
3483
|
UNMOUNT: "unmounted",
|
|
3484
3484
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3492,22 +3492,22 @@ function Qs(e) {
|
|
|
3492
3492
|
}
|
|
3493
3493
|
});
|
|
3494
3494
|
return s.useEffect(() => {
|
|
3495
|
-
const
|
|
3496
|
-
a.current = c === "mounted" ?
|
|
3495
|
+
const d = ht(r.current);
|
|
3496
|
+
a.current = c === "mounted" ? d : "none";
|
|
3497
3497
|
}, [c]), Pe(() => {
|
|
3498
|
-
const
|
|
3498
|
+
const d = r.current, u = o.current;
|
|
3499
3499
|
if (u !== e) {
|
|
3500
|
-
const v = a.current, h = ht(
|
|
3501
|
-
e ?
|
|
3500
|
+
const v = a.current, h = ht(d);
|
|
3501
|
+
e ? l("MOUNT") : h === "none" || (d == null ? void 0 : d.display) === "none" ? l("UNMOUNT") : l(u && v !== h ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
3502
3502
|
}
|
|
3503
|
-
}, [e,
|
|
3503
|
+
}, [e, l]), Pe(() => {
|
|
3504
3504
|
if (t) {
|
|
3505
|
-
let
|
|
3505
|
+
let d;
|
|
3506
3506
|
const u = t.ownerDocument.defaultView ?? window, m = (h) => {
|
|
3507
3507
|
const f = ht(r.current).includes(h.animationName);
|
|
3508
|
-
if (h.target === t && f && (
|
|
3508
|
+
if (h.target === t && f && (l("ANIMATION_END"), !o.current)) {
|
|
3509
3509
|
const g = t.style.animationFillMode;
|
|
3510
|
-
t.style.animationFillMode = "forwards",
|
|
3510
|
+
t.style.animationFillMode = "forwards", d = u.setTimeout(() => {
|
|
3511
3511
|
t.style.animationFillMode === "forwards" && (t.style.animationFillMode = g);
|
|
3512
3512
|
});
|
|
3513
3513
|
}
|
|
@@ -3515,14 +3515,14 @@ function Qs(e) {
|
|
|
3515
3515
|
h.target === t && (a.current = ht(r.current));
|
|
3516
3516
|
};
|
|
3517
3517
|
return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
|
|
3518
|
-
u.clearTimeout(
|
|
3518
|
+
u.clearTimeout(d), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
|
|
3519
3519
|
};
|
|
3520
3520
|
} else
|
|
3521
|
-
|
|
3522
|
-
}, [t,
|
|
3521
|
+
l("ANIMATION_END");
|
|
3522
|
+
}, [t, l]), {
|
|
3523
3523
|
isPresent: ["mounted", "unmountSuspended"].includes(c),
|
|
3524
|
-
ref: s.useCallback((
|
|
3525
|
-
|
|
3524
|
+
ref: s.useCallback((d) => {
|
|
3525
|
+
d && (r.current = getComputedStyle(d)), n(d);
|
|
3526
3526
|
}, [])
|
|
3527
3527
|
};
|
|
3528
3528
|
}
|
|
@@ -3538,12 +3538,12 @@ var Qt = 0;
|
|
|
3538
3538
|
function ec() {
|
|
3539
3539
|
s.useEffect(() => {
|
|
3540
3540
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3541
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3541
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? fr()), document.body.insertAdjacentElement("beforeend", e[1] ?? fr()), Qt++, () => {
|
|
3542
3542
|
Qt === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), Qt--;
|
|
3543
3543
|
};
|
|
3544
3544
|
}, []);
|
|
3545
3545
|
}
|
|
3546
|
-
function
|
|
3546
|
+
function fr() {
|
|
3547
3547
|
const e = document.createElement("span");
|
|
3548
3548
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3549
3549
|
}
|
|
@@ -3594,7 +3594,7 @@ function oc(e, t) {
|
|
|
3594
3594
|
})[0];
|
|
3595
3595
|
return n.callback = t, n.facade;
|
|
3596
3596
|
}
|
|
3597
|
-
var ac = typeof window < "u" ? s.useLayoutEffect : s.useEffect,
|
|
3597
|
+
var ac = typeof window < "u" ? s.useLayoutEffect : s.useEffect, pr = /* @__PURE__ */ new WeakMap();
|
|
3598
3598
|
function ic(e, t) {
|
|
3599
3599
|
var n = oc(null, function(r) {
|
|
3600
3600
|
return e.forEach(function(o) {
|
|
@@ -3602,7 +3602,7 @@ function ic(e, t) {
|
|
|
3602
3602
|
});
|
|
3603
3603
|
});
|
|
3604
3604
|
return ac(function() {
|
|
3605
|
-
var r =
|
|
3605
|
+
var r = pr.get(n);
|
|
3606
3606
|
if (r) {
|
|
3607
3607
|
var o = new Set(r), a = new Set(e), i = n.current;
|
|
3608
3608
|
o.forEach(function(c) {
|
|
@@ -3611,7 +3611,7 @@ function ic(e, t) {
|
|
|
3611
3611
|
o.has(c) || Jt(c, i);
|
|
3612
3612
|
});
|
|
3613
3613
|
}
|
|
3614
|
-
|
|
3614
|
+
pr.set(n, e);
|
|
3615
3615
|
}, [e]), n;
|
|
3616
3616
|
}
|
|
3617
3617
|
function sc(e) {
|
|
@@ -3654,15 +3654,15 @@ function cc(e, t) {
|
|
|
3654
3654
|
var c = n;
|
|
3655
3655
|
n = [], c.forEach(a), i = n;
|
|
3656
3656
|
}
|
|
3657
|
-
var
|
|
3657
|
+
var l = function() {
|
|
3658
3658
|
var u = i;
|
|
3659
3659
|
i = [], u.forEach(a);
|
|
3660
|
-
},
|
|
3661
|
-
return Promise.resolve().then(
|
|
3660
|
+
}, d = function() {
|
|
3661
|
+
return Promise.resolve().then(l);
|
|
3662
3662
|
};
|
|
3663
|
-
|
|
3663
|
+
d(), n = {
|
|
3664
3664
|
push: function(u) {
|
|
3665
|
-
i.push(u),
|
|
3665
|
+
i.push(u), d();
|
|
3666
3666
|
},
|
|
3667
3667
|
filter: function(u) {
|
|
3668
3668
|
return i = i.filter(u), n;
|
|
@@ -3696,12 +3696,12 @@ var co = lc(), en = function() {
|
|
|
3696
3696
|
onScrollCapture: en,
|
|
3697
3697
|
onWheelCapture: en,
|
|
3698
3698
|
onTouchMoveCapture: en
|
|
3699
|
-
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children,
|
|
3699
|
+
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, u = e.enabled, m = e.shards, v = e.sideCar, h = e.noIsolation, b = e.inert, f = e.allowPinchZoom, g = e.as, w = g === void 0 ? "div" : g, y = e.gapMode, x = io(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, S = ic([n, t]), E = he(he({}, x), o);
|
|
3700
3700
|
return s.createElement(
|
|
3701
3701
|
s.Fragment,
|
|
3702
3702
|
null,
|
|
3703
|
-
u && s.createElement(C, { sideCar: co, removeScrollBar:
|
|
3704
|
-
i ? s.cloneElement(s.Children.only(c), he(he({}, E), { ref: S })) : s.createElement(w, he({}, E, { className:
|
|
3703
|
+
u && s.createElement(C, { sideCar: co, removeScrollBar: d, shards: m, noIsolation: h, inert: b, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: y }),
|
|
3704
|
+
i ? s.cloneElement(s.Children.only(c), he(he({}, E), { ref: S })) : s.createElement(w, he({}, E, { className: l, ref: S }), c)
|
|
3705
3705
|
);
|
|
3706
3706
|
});
|
|
3707
3707
|
Ft.defaultProps = {
|
|
@@ -3821,13 +3821,13 @@ var hc = function() {
|
|
|
3821
3821
|
`).concat(rc, ": ").concat(c, `px;
|
|
3822
3822
|
}
|
|
3823
3823
|
`);
|
|
3824
|
-
},
|
|
3824
|
+
}, mr = function() {
|
|
3825
3825
|
var e = parseInt(document.body.getAttribute(Ke) || "0", 10);
|
|
3826
3826
|
return isFinite(e) ? e : 0;
|
|
3827
3827
|
}, Ec = function() {
|
|
3828
3828
|
s.useEffect(function() {
|
|
3829
|
-
return document.body.setAttribute(Ke, (
|
|
3830
|
-
var e =
|
|
3829
|
+
return document.body.setAttribute(Ke, (mr() + 1).toString()), function() {
|
|
3830
|
+
var e = mr() - 1;
|
|
3831
3831
|
e <= 0 ? document.body.removeAttribute(Ke) : document.body.setAttribute(Ke, e.toString());
|
|
3832
3832
|
};
|
|
3833
3833
|
}, []);
|
|
@@ -3865,7 +3865,7 @@ var je = gn ? { passive: !1 } : !1, Sc = function(e) {
|
|
|
3865
3865
|
return uo(e, "overflowY");
|
|
3866
3866
|
}, Rc = function(e) {
|
|
3867
3867
|
return uo(e, "overflowX");
|
|
3868
|
-
},
|
|
3868
|
+
}, hr = function(e, t) {
|
|
3869
3869
|
var n = t.ownerDocument, r = t;
|
|
3870
3870
|
do {
|
|
3871
3871
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
@@ -3899,21 +3899,21 @@ var je = gn ? { passive: !1 } : !1, Sc = function(e) {
|
|
|
3899
3899
|
}, Nc = function(e, t) {
|
|
3900
3900
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3901
3901
|
}, Oc = function(e, t, n, r, o) {
|
|
3902
|
-
var a = Nc(e, window.getComputedStyle(t).direction), i = a * r, c = n.target,
|
|
3902
|
+
var a = Nc(e, window.getComputedStyle(t).direction), i = a * r, c = n.target, l = t.contains(c), d = !1, u = i > 0, m = 0, v = 0;
|
|
3903
3903
|
do {
|
|
3904
3904
|
var h = po(e, c), b = h[0], f = h[1], g = h[2], w = f - g - a * b;
|
|
3905
3905
|
(b || w) && fo(e, c) && (m += w, v += b), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
3906
3906
|
} while (
|
|
3907
3907
|
// portaled content
|
|
3908
|
-
!
|
|
3909
|
-
|
|
3908
|
+
!l && c !== document.body || // self content
|
|
3909
|
+
l && (t.contains(c) || t === c)
|
|
3910
3910
|
);
|
|
3911
|
-
return (u && Math.abs(m) < 1 || !u && Math.abs(v) < 1) && (
|
|
3911
|
+
return (u && Math.abs(m) < 1 || !u && Math.abs(v) < 1) && (d = !0), d;
|
|
3912
3912
|
}, vt = function(e) {
|
|
3913
3913
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3914
|
-
},
|
|
3914
|
+
}, gr = function(e) {
|
|
3915
3915
|
return [e.deltaX, e.deltaY];
|
|
3916
|
-
},
|
|
3916
|
+
}, vr = function(e) {
|
|
3917
3917
|
return e && "current" in e ? e.current : e;
|
|
3918
3918
|
}, Mc = function(e, t) {
|
|
3919
3919
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -3930,7 +3930,7 @@ function Ic(e) {
|
|
|
3930
3930
|
}, [e]), s.useEffect(function() {
|
|
3931
3931
|
if (e.inert) {
|
|
3932
3932
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3933
|
-
var f = tc([e.lockRef.current], (e.shards || []).map(
|
|
3933
|
+
var f = tc([e.lockRef.current], (e.shards || []).map(vr), !0).filter(Boolean);
|
|
3934
3934
|
return f.forEach(function(g) {
|
|
3935
3935
|
return g.classList.add("allow-interactivity-".concat(o));
|
|
3936
3936
|
}), function() {
|
|
@@ -3946,19 +3946,19 @@ function Ic(e) {
|
|
|
3946
3946
|
var w = vt(f), y = n.current, x = "deltaX" in f ? f.deltaX : y[0] - w[0], C = "deltaY" in f ? f.deltaY : y[1] - w[1], S, E = f.target, T = Math.abs(x) > Math.abs(C) ? "h" : "v";
|
|
3947
3947
|
if ("touches" in f && T === "h" && E.type === "range")
|
|
3948
3948
|
return !1;
|
|
3949
|
-
var F =
|
|
3949
|
+
var F = hr(T, E);
|
|
3950
3950
|
if (!F)
|
|
3951
3951
|
return !0;
|
|
3952
|
-
if (F ? S = T : (S = T === "v" ? "h" : "v", F =
|
|
3952
|
+
if (F ? S = T : (S = T === "v" ? "h" : "v", F = hr(T, E)), !F)
|
|
3953
3953
|
return !1;
|
|
3954
3954
|
if (!r.current && "changedTouches" in f && (x || C) && (r.current = S), !S)
|
|
3955
3955
|
return !0;
|
|
3956
3956
|
var k = r.current || S;
|
|
3957
3957
|
return Oc(k, g, f, k === "h" ? x : C);
|
|
3958
|
-
}, []),
|
|
3958
|
+
}, []), l = s.useCallback(function(f) {
|
|
3959
3959
|
var g = f;
|
|
3960
3960
|
if (!(!Ge.length || Ge[Ge.length - 1] !== a)) {
|
|
3961
|
-
var w = "deltaY" in g ?
|
|
3961
|
+
var w = "deltaY" in g ? gr(g) : vt(g), y = t.current.filter(function(S) {
|
|
3962
3962
|
return S.name === g.type && (S.target === g.target || g.target === S.shadowParent) && Mc(S.delta, w);
|
|
3963
3963
|
})[0];
|
|
3964
3964
|
if (y && y.should) {
|
|
@@ -3966,13 +3966,13 @@ function Ic(e) {
|
|
|
3966
3966
|
return;
|
|
3967
3967
|
}
|
|
3968
3968
|
if (!y) {
|
|
3969
|
-
var x = (i.current.shards || []).map(
|
|
3969
|
+
var x = (i.current.shards || []).map(vr).filter(Boolean).filter(function(S) {
|
|
3970
3970
|
return S.contains(g.target);
|
|
3971
3971
|
}), C = x.length > 0 ? c(g, x[0]) : !i.current.noIsolation;
|
|
3972
3972
|
C && g.cancelable && g.preventDefault();
|
|
3973
3973
|
}
|
|
3974
3974
|
}
|
|
3975
|
-
}, []),
|
|
3975
|
+
}, []), d = s.useCallback(function(f, g, w, y) {
|
|
3976
3976
|
var x = { name: f, delta: g, target: w, should: y, shadowParent: _c(w) };
|
|
3977
3977
|
t.current.push(x), setTimeout(function() {
|
|
3978
3978
|
t.current = t.current.filter(function(C) {
|
|
@@ -3982,19 +3982,19 @@ function Ic(e) {
|
|
|
3982
3982
|
}, []), u = s.useCallback(function(f) {
|
|
3983
3983
|
n.current = vt(f), r.current = void 0;
|
|
3984
3984
|
}, []), m = s.useCallback(function(f) {
|
|
3985
|
-
|
|
3985
|
+
d(f.type, gr(f), f.target, c(f, e.lockRef.current));
|
|
3986
3986
|
}, []), v = s.useCallback(function(f) {
|
|
3987
|
-
|
|
3987
|
+
d(f.type, vt(f), f.target, c(f, e.lockRef.current));
|
|
3988
3988
|
}, []);
|
|
3989
3989
|
s.useEffect(function() {
|
|
3990
3990
|
return Ge.push(a), e.setCallbacks({
|
|
3991
3991
|
onScrollCapture: m,
|
|
3992
3992
|
onWheelCapture: m,
|
|
3993
3993
|
onTouchMoveCapture: v
|
|
3994
|
-
}), document.addEventListener("wheel",
|
|
3994
|
+
}), document.addEventListener("wheel", l, je), document.addEventListener("touchmove", l, je), document.addEventListener("touchstart", u, je), function() {
|
|
3995
3995
|
Ge = Ge.filter(function(f) {
|
|
3996
3996
|
return f !== a;
|
|
3997
|
-
}), document.removeEventListener("wheel",
|
|
3997
|
+
}), document.removeEventListener("wheel", l, je), document.removeEventListener("touchmove", l, je), document.removeEventListener("touchstart", u, je);
|
|
3998
3998
|
};
|
|
3999
3999
|
}, []);
|
|
4000
4000
|
var h = e.removeScrollBar, b = e.inert;
|
|
@@ -4034,12 +4034,12 @@ var Fc = function(e) {
|
|
|
4034
4034
|
}, zc = function(e, t, n, r) {
|
|
4035
4035
|
var o = $c(t, Array.isArray(e) ? e : [e]);
|
|
4036
4036
|
wt[n] || (wt[n] = /* @__PURE__ */ new WeakMap());
|
|
4037
|
-
var a = wt[n], i = [], c = /* @__PURE__ */ new Set(),
|
|
4038
|
-
!m || c.has(m) || (c.add(m),
|
|
4037
|
+
var a = wt[n], i = [], c = /* @__PURE__ */ new Set(), l = new Set(o), d = function(m) {
|
|
4038
|
+
!m || c.has(m) || (c.add(m), d(m.parentNode));
|
|
4039
4039
|
};
|
|
4040
|
-
o.forEach(
|
|
4040
|
+
o.forEach(d);
|
|
4041
4041
|
var u = function(m) {
|
|
4042
|
-
!m ||
|
|
4042
|
+
!m || l.has(m) || Array.prototype.forEach.call(m.children, function(v) {
|
|
4043
4043
|
if (c.has(v))
|
|
4044
4044
|
u(v);
|
|
4045
4045
|
else
|
|
@@ -4063,7 +4063,7 @@ var Fc = function(e) {
|
|
|
4063
4063
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), zc(r, o, n, "aria-hidden")) : function() {
|
|
4064
4064
|
return null;
|
|
4065
4065
|
};
|
|
4066
|
-
},
|
|
4066
|
+
}, kn = "Dialog", [go, Gu] = ct(kn), [Bc, pe] = go(kn), vo = (e) => {
|
|
4067
4067
|
const {
|
|
4068
4068
|
__scopeDialog: t,
|
|
4069
4069
|
children: n,
|
|
@@ -4071,7 +4071,7 @@ var Fc = function(e) {
|
|
|
4071
4071
|
defaultOpen: o,
|
|
4072
4072
|
onOpenChange: a,
|
|
4073
4073
|
modal: i = !0
|
|
4074
|
-
} = e, c = s.useRef(null),
|
|
4074
|
+
} = e, c = s.useRef(null), l = s.useRef(null), [d = !1, u] = Mn({
|
|
4075
4075
|
prop: r,
|
|
4076
4076
|
defaultProp: o,
|
|
4077
4077
|
onChange: a
|
|
@@ -4081,11 +4081,11 @@ var Fc = function(e) {
|
|
|
4081
4081
|
{
|
|
4082
4082
|
scope: t,
|
|
4083
4083
|
triggerRef: c,
|
|
4084
|
-
contentRef:
|
|
4084
|
+
contentRef: l,
|
|
4085
4085
|
contentId: Et(),
|
|
4086
4086
|
titleId: Et(),
|
|
4087
4087
|
descriptionId: Et(),
|
|
4088
|
-
open:
|
|
4088
|
+
open: d,
|
|
4089
4089
|
onOpenChange: u,
|
|
4090
4090
|
onOpenToggle: s.useCallback(() => u((m) => !m), [u]),
|
|
4091
4091
|
modal: i,
|
|
@@ -4093,7 +4093,7 @@ var Fc = function(e) {
|
|
|
4093
4093
|
}
|
|
4094
4094
|
);
|
|
4095
4095
|
};
|
|
4096
|
-
vo.displayName =
|
|
4096
|
+
vo.displayName = kn;
|
|
4097
4097
|
var bo = "DialogTrigger", wo = s.forwardRef(
|
|
4098
4098
|
(e, t) => {
|
|
4099
4099
|
const { __scopeDialog: n, ...r } = e, o = pe(bo, n), a = ee(t, o.triggerRef);
|
|
@@ -4104,7 +4104,7 @@ var bo = "DialogTrigger", wo = s.forwardRef(
|
|
|
4104
4104
|
"aria-haspopup": "dialog",
|
|
4105
4105
|
"aria-expanded": o.open,
|
|
4106
4106
|
"aria-controls": o.contentId,
|
|
4107
|
-
"data-state":
|
|
4107
|
+
"data-state": _n(o.open),
|
|
4108
4108
|
...r,
|
|
4109
4109
|
ref: a,
|
|
4110
4110
|
onClick: U(e.onClick, o.onOpenToggle)
|
|
@@ -4113,13 +4113,13 @@ var bo = "DialogTrigger", wo = s.forwardRef(
|
|
|
4113
4113
|
}
|
|
4114
4114
|
);
|
|
4115
4115
|
wo.displayName = bo;
|
|
4116
|
-
var
|
|
4116
|
+
var Dn = "DialogPortal", [Vc, yo] = go(Dn, {
|
|
4117
4117
|
forceMount: void 0
|
|
4118
4118
|
}), xo = (e) => {
|
|
4119
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = pe(
|
|
4119
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = pe(Dn, t);
|
|
4120
4120
|
return /* @__PURE__ */ p(Vc, { scope: t, forceMount: n, children: s.Children.map(r, (i) => /* @__PURE__ */ p(Be, { present: n || a.open, children: /* @__PURE__ */ p(Lt, { asChild: !0, container: o, children: i }) })) });
|
|
4121
4121
|
};
|
|
4122
|
-
xo.displayName =
|
|
4122
|
+
xo.displayName = Dn;
|
|
4123
4123
|
var Nt = "DialogOverlay", Eo = s.forwardRef(
|
|
4124
4124
|
(e, t) => {
|
|
4125
4125
|
const n = yo(Nt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = pe(Nt, e.__scopeDialog);
|
|
@@ -4136,7 +4136,7 @@ var Hc = s.forwardRef(
|
|
|
4136
4136
|
/* @__PURE__ */ p(mo, { as: de, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ p(
|
|
4137
4137
|
Y.div,
|
|
4138
4138
|
{
|
|
4139
|
-
"data-state":
|
|
4139
|
+
"data-state": _n(o.open),
|
|
4140
4140
|
...r,
|
|
4141
4141
|
ref: t,
|
|
4142
4142
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -4194,17 +4194,17 @@ var jc = s.forwardRef(
|
|
|
4194
4194
|
(i = e.onCloseAutoFocus) == null || i.call(e, a), a.defaultPrevented || (r.current || (c = n.triggerRef.current) == null || c.focus(), a.preventDefault()), r.current = !1, o.current = !1;
|
|
4195
4195
|
},
|
|
4196
4196
|
onInteractOutside: (a) => {
|
|
4197
|
-
var
|
|
4198
|
-
(
|
|
4197
|
+
var l, d;
|
|
4198
|
+
(l = e.onInteractOutside) == null || l.call(e, a), a.defaultPrevented || (r.current = !0, a.detail.originalEvent.type === "pointerdown" && (o.current = !0));
|
|
4199
4199
|
const i = a.target;
|
|
4200
|
-
((
|
|
4200
|
+
((d = n.triggerRef.current) == null ? void 0 : d.contains(i)) && a.preventDefault(), a.detail.originalEvent.type === "focusin" && o.current && a.preventDefault();
|
|
4201
4201
|
}
|
|
4202
4202
|
}
|
|
4203
4203
|
);
|
|
4204
4204
|
}
|
|
4205
4205
|
), So = s.forwardRef(
|
|
4206
4206
|
(e, t) => {
|
|
4207
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, c = pe($e, n),
|
|
4207
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, c = pe($e, n), l = s.useRef(null), d = ee(t, l);
|
|
4208
4208
|
return ec(), /* @__PURE__ */ G(Xe, { children: [
|
|
4209
4209
|
/* @__PURE__ */ p(
|
|
4210
4210
|
oo,
|
|
@@ -4221,9 +4221,9 @@ var jc = s.forwardRef(
|
|
|
4221
4221
|
id: c.contentId,
|
|
4222
4222
|
"aria-describedby": c.descriptionId,
|
|
4223
4223
|
"aria-labelledby": c.titleId,
|
|
4224
|
-
"data-state":
|
|
4224
|
+
"data-state": _n(c.open),
|
|
4225
4225
|
...i,
|
|
4226
|
-
ref:
|
|
4226
|
+
ref: d,
|
|
4227
4227
|
onDismiss: () => c.onOpenChange(!1)
|
|
4228
4228
|
}
|
|
4229
4229
|
)
|
|
@@ -4231,17 +4231,17 @@ var jc = s.forwardRef(
|
|
|
4231
4231
|
),
|
|
4232
4232
|
/* @__PURE__ */ G(Xe, { children: [
|
|
4233
4233
|
/* @__PURE__ */ p(Uc, { titleId: c.titleId }),
|
|
4234
|
-
/* @__PURE__ */ p(Yc, { contentRef:
|
|
4234
|
+
/* @__PURE__ */ p(Yc, { contentRef: l, descriptionId: c.descriptionId })
|
|
4235
4235
|
] })
|
|
4236
4236
|
] });
|
|
4237
4237
|
}
|
|
4238
|
-
),
|
|
4238
|
+
), In = "DialogTitle", To = s.forwardRef(
|
|
4239
4239
|
(e, t) => {
|
|
4240
|
-
const { __scopeDialog: n, ...r } = e, o = pe(
|
|
4240
|
+
const { __scopeDialog: n, ...r } = e, o = pe(In, n);
|
|
4241
4241
|
return /* @__PURE__ */ p(Y.h2, { id: o.titleId, ...r, ref: t });
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
4244
|
-
To.displayName =
|
|
4244
|
+
To.displayName = In;
|
|
4245
4245
|
var Ro = "DialogDescription", Po = s.forwardRef(
|
|
4246
4246
|
(e, t) => {
|
|
4247
4247
|
const { __scopeDialog: n, ...r } = e, o = pe(Ro, n);
|
|
@@ -4264,12 +4264,12 @@ var Ao = "DialogClose", No = s.forwardRef(
|
|
|
4264
4264
|
}
|
|
4265
4265
|
);
|
|
4266
4266
|
No.displayName = Ao;
|
|
4267
|
-
function
|
|
4267
|
+
function _n(e) {
|
|
4268
4268
|
return e ? "open" : "closed";
|
|
4269
4269
|
}
|
|
4270
4270
|
var Oo = "DialogTitleWarning", [Uu, Mo] = Ns(Oo, {
|
|
4271
4271
|
contentName: $e,
|
|
4272
|
-
titleName:
|
|
4272
|
+
titleName: In,
|
|
4273
4273
|
docsSlug: "dialog"
|
|
4274
4274
|
}), Uc = ({ titleId: e }) => {
|
|
4275
4275
|
const t = Mo(Oo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
@@ -4381,7 +4381,7 @@ const ol = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
|
4381
4381
|
));
|
|
4382
4382
|
ol.displayName = _o.displayName;
|
|
4383
4383
|
function Xu({ getMyAccountPath: e, publicName: t, applicationName: n }) {
|
|
4384
|
-
const { appID: r } =
|
|
4384
|
+
const { appID: r } = Or(), o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, i] = Tn(!1);
|
|
4385
4385
|
return /* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
4386
4386
|
/* @__PURE__ */ p("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted", children: a ? /* @__PURE__ */ p(Mr, { to: `${e(r)}#brand`, className: "transition-colors hover:bg-muted px-6", children: /* @__PURE__ */ p(ki, { className: "h-5 w-5 text-muted-foreground" }) }) : /* @__PURE__ */ p(
|
|
4387
4387
|
"img",
|
|
@@ -4410,7 +4410,7 @@ function al() {
|
|
|
4410
4410
|
return n.addEventListener("change", r), t(window.innerWidth < rn), () => n.removeEventListener("change", r);
|
|
4411
4411
|
}, []), !!e;
|
|
4412
4412
|
}
|
|
4413
|
-
function
|
|
4413
|
+
function br({
|
|
4414
4414
|
className: e,
|
|
4415
4415
|
...t
|
|
4416
4416
|
}) {
|
|
@@ -4446,21 +4446,21 @@ function xe(e) {
|
|
|
4446
4446
|
function et(e) {
|
|
4447
4447
|
return e.split("-")[1];
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function Ln(e) {
|
|
4450
4450
|
return e === "x" ? "y" : "x";
|
|
4451
4451
|
}
|
|
4452
|
-
function
|
|
4452
|
+
function Fn(e) {
|
|
4453
4453
|
return e === "y" ? "height" : "width";
|
|
4454
4454
|
}
|
|
4455
4455
|
function Ne(e) {
|
|
4456
4456
|
return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
|
|
4457
4457
|
}
|
|
4458
|
-
function
|
|
4459
|
-
return
|
|
4458
|
+
function $n(e) {
|
|
4459
|
+
return Ln(Ne(e));
|
|
4460
4460
|
}
|
|
4461
4461
|
function ll(e, t, n) {
|
|
4462
4462
|
n === void 0 && (n = !1);
|
|
4463
|
-
const r = et(e), o =
|
|
4463
|
+
const r = et(e), o = $n(e), a = Fn(o);
|
|
4464
4464
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4465
4465
|
return t.reference[a] > t.floating[a] && (i = Mt(i)), [i, Mt(i)];
|
|
4466
4466
|
}
|
|
@@ -4527,14 +4527,14 @@ function kt(e) {
|
|
|
4527
4527
|
y: n
|
|
4528
4528
|
};
|
|
4529
4529
|
}
|
|
4530
|
-
function
|
|
4530
|
+
function wr(e, t, n) {
|
|
4531
4531
|
let {
|
|
4532
4532
|
reference: r,
|
|
4533
4533
|
floating: o
|
|
4534
4534
|
} = e;
|
|
4535
|
-
const a = Ne(t), i =
|
|
4535
|
+
const a = Ne(t), i = $n(t), c = Fn(i), l = xe(t), d = a === "y", u = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, v = r[c] / 2 - o[c] / 2;
|
|
4536
4536
|
let h;
|
|
4537
|
-
switch (
|
|
4537
|
+
switch (l) {
|
|
4538
4538
|
case "top":
|
|
4539
4539
|
h = {
|
|
4540
4540
|
x: u,
|
|
@@ -4567,10 +4567,10 @@ function yr(e, t, n) {
|
|
|
4567
4567
|
}
|
|
4568
4568
|
switch (et(t)) {
|
|
4569
4569
|
case "start":
|
|
4570
|
-
h[i] -= v * (n &&
|
|
4570
|
+
h[i] -= v * (n && d ? -1 : 1);
|
|
4571
4571
|
break;
|
|
4572
4572
|
case "end":
|
|
4573
|
-
h[i] += v * (n &&
|
|
4573
|
+
h[i] += v * (n && d ? -1 : 1);
|
|
4574
4574
|
break;
|
|
4575
4575
|
}
|
|
4576
4576
|
return h;
|
|
@@ -4581,15 +4581,15 @@ const ml = async (e, t, n) => {
|
|
|
4581
4581
|
strategy: o = "absolute",
|
|
4582
4582
|
middleware: a = [],
|
|
4583
4583
|
platform: i
|
|
4584
|
-
} = n, c = a.filter(Boolean),
|
|
4585
|
-
let
|
|
4584
|
+
} = n, c = a.filter(Boolean), l = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
4585
|
+
let d = await i.getElementRects({
|
|
4586
4586
|
reference: e,
|
|
4587
4587
|
floating: t,
|
|
4588
4588
|
strategy: o
|
|
4589
4589
|
}), {
|
|
4590
4590
|
x: u,
|
|
4591
4591
|
y: m
|
|
4592
|
-
} =
|
|
4592
|
+
} = wr(d, r, l), v = r, h = {}, b = 0;
|
|
4593
4593
|
for (let f = 0; f < c.length; f++) {
|
|
4594
4594
|
const {
|
|
4595
4595
|
name: g,
|
|
@@ -4606,7 +4606,7 @@ const ml = async (e, t, n) => {
|
|
|
4606
4606
|
placement: v,
|
|
4607
4607
|
strategy: o,
|
|
4608
4608
|
middlewareData: h,
|
|
4609
|
-
rects:
|
|
4609
|
+
rects: d,
|
|
4610
4610
|
platform: i,
|
|
4611
4611
|
elements: {
|
|
4612
4612
|
reference: e,
|
|
@@ -4619,14 +4619,14 @@ const ml = async (e, t, n) => {
|
|
|
4619
4619
|
...h[g],
|
|
4620
4620
|
...C
|
|
4621
4621
|
}
|
|
4622
|
-
}, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (v = S.placement), S.rects && (
|
|
4622
|
+
}, S && b <= 50 && (b++, typeof S == "object" && (S.placement && (v = S.placement), S.rects && (d = S.rects === !0 ? await i.getElementRects({
|
|
4623
4623
|
reference: e,
|
|
4624
4624
|
floating: t,
|
|
4625
4625
|
strategy: o
|
|
4626
4626
|
}) : S.rects), {
|
|
4627
4627
|
x: u,
|
|
4628
4628
|
y: m
|
|
4629
|
-
} =
|
|
4629
|
+
} = wr(d, v, l)), f = -1);
|
|
4630
4630
|
}
|
|
4631
4631
|
return {
|
|
4632
4632
|
x: u,
|
|
@@ -4645,18 +4645,18 @@ async function it(e, t) {
|
|
|
4645
4645
|
platform: a,
|
|
4646
4646
|
rects: i,
|
|
4647
4647
|
elements: c,
|
|
4648
|
-
strategy:
|
|
4648
|
+
strategy: l
|
|
4649
4649
|
} = e, {
|
|
4650
|
-
boundary:
|
|
4650
|
+
boundary: d = "clippingAncestors",
|
|
4651
4651
|
rootBoundary: u = "viewport",
|
|
4652
4652
|
elementContext: m = "floating",
|
|
4653
4653
|
altBoundary: v = !1,
|
|
4654
4654
|
padding: h = 0
|
|
4655
4655
|
} = ye(t, e), b = zo(h), g = c[v ? m === "floating" ? "reference" : "floating" : m], w = kt(await a.getClippingRect({
|
|
4656
4656
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(g))) == null || n ? g : g.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
|
|
4657
|
-
boundary:
|
|
4657
|
+
boundary: d,
|
|
4658
4658
|
rootBoundary: u,
|
|
4659
|
-
strategy:
|
|
4659
|
+
strategy: l
|
|
4660
4660
|
})), y = m === "floating" ? {
|
|
4661
4661
|
x: r,
|
|
4662
4662
|
y: o,
|
|
@@ -4672,7 +4672,7 @@ async function it(e, t) {
|
|
|
4672
4672
|
elements: c,
|
|
4673
4673
|
rect: y,
|
|
4674
4674
|
offsetParent: x,
|
|
4675
|
-
strategy:
|
|
4675
|
+
strategy: l
|
|
4676
4676
|
}) : y);
|
|
4677
4677
|
return {
|
|
4678
4678
|
top: (w.top - S.top + b.top) / C.y,
|
|
@@ -4692,20 +4692,20 @@ const hl = (e) => ({
|
|
|
4692
4692
|
rects: a,
|
|
4693
4693
|
platform: i,
|
|
4694
4694
|
elements: c,
|
|
4695
|
-
middlewareData:
|
|
4695
|
+
middlewareData: l
|
|
4696
4696
|
} = t, {
|
|
4697
|
-
element:
|
|
4697
|
+
element: d,
|
|
4698
4698
|
padding: u = 0
|
|
4699
4699
|
} = ye(e, t) || {};
|
|
4700
|
-
if (
|
|
4700
|
+
if (d == null)
|
|
4701
4701
|
return {};
|
|
4702
4702
|
const m = zo(u), v = {
|
|
4703
4703
|
x: n,
|
|
4704
4704
|
y: r
|
|
4705
|
-
}, h =
|
|
4705
|
+
}, h = $n(o), b = Fn(h), f = await i.getDimensions(d), g = h === "y", w = g ? "top" : "left", y = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[h] - v[h] - a.floating[b], S = v[h] - a.reference[h], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
4706
4706
|
let T = E ? E[x] : 0;
|
|
4707
4707
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(E))) && (T = c.floating[x] || a.floating[b]);
|
|
4708
|
-
const F = C / 2 - S / 2, k = T / 2 - f[b] / 2 - 1, $ = Ae(m[w], k), V = Ae(m[y], k), z = $, M = T - f[b] - V, R = T / 2 - f[b] / 2 + F, W = vn(z, R, M), N = !
|
|
4708
|
+
const F = C / 2 - S / 2, k = T / 2 - f[b] / 2 - 1, $ = Ae(m[w], k), V = Ae(m[y], k), z = $, M = T - f[b] - V, R = T / 2 - f[b] / 2 + F, W = vn(z, R, M), N = !l.arrow && et(o) != null && R !== W && a.reference[b] / 2 - (R < z ? $ : V) - f[b] / 2 < 0, H = N ? R < z ? R - z : R - M : 0;
|
|
4709
4709
|
return {
|
|
4710
4710
|
[h]: v[h] + H,
|
|
4711
4711
|
data: {
|
|
@@ -4729,8 +4729,8 @@ const hl = (e) => ({
|
|
|
4729
4729
|
middlewareData: a,
|
|
4730
4730
|
rects: i,
|
|
4731
4731
|
initialPlacement: c,
|
|
4732
|
-
platform:
|
|
4733
|
-
elements:
|
|
4732
|
+
platform: l,
|
|
4733
|
+
elements: d
|
|
4734
4734
|
} = t, {
|
|
4735
4735
|
mainAxis: u = !0,
|
|
4736
4736
|
crossAxis: m = !0,
|
|
@@ -4742,7 +4742,7 @@ const hl = (e) => ({
|
|
|
4742
4742
|
} = ye(e, t);
|
|
4743
4743
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
4744
4744
|
return {};
|
|
4745
|
-
const w = xe(o), y = Ne(c), x = xe(c) === c, C = await (
|
|
4745
|
+
const w = xe(o), y = Ne(c), x = xe(c) === c, C = await (l.isRTL == null ? void 0 : l.isRTL(d.floating)), S = v || (x || !f ? [Mt(c)] : dl(c)), E = b !== "none";
|
|
4746
4746
|
!v && E && S.push(...fl(c, f, b, C));
|
|
4747
4747
|
const T = [c, ...S], F = await it(t, g), k = [];
|
|
4748
4748
|
let $ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
@@ -4798,7 +4798,7 @@ const hl = (e) => ({
|
|
|
4798
4798
|
}
|
|
4799
4799
|
};
|
|
4800
4800
|
};
|
|
4801
|
-
function
|
|
4801
|
+
function yr(e, t) {
|
|
4802
4802
|
return {
|
|
4803
4803
|
top: e.top - t.height,
|
|
4804
4804
|
right: e.right - t.width,
|
|
@@ -4806,7 +4806,7 @@ function xr(e, t) {
|
|
|
4806
4806
|
left: e.left - t.width
|
|
4807
4807
|
};
|
|
4808
4808
|
}
|
|
4809
|
-
function
|
|
4809
|
+
function xr(e) {
|
|
4810
4810
|
return il.some((t) => e[t] >= 0);
|
|
4811
4811
|
}
|
|
4812
4812
|
const vl = function(e) {
|
|
@@ -4825,11 +4825,11 @@ const vl = function(e) {
|
|
|
4825
4825
|
const a = await it(t, {
|
|
4826
4826
|
...o,
|
|
4827
4827
|
elementContext: "reference"
|
|
4828
|
-
}), i =
|
|
4828
|
+
}), i = yr(a, n.reference);
|
|
4829
4829
|
return {
|
|
4830
4830
|
data: {
|
|
4831
4831
|
referenceHiddenOffsets: i,
|
|
4832
|
-
referenceHidden:
|
|
4832
|
+
referenceHidden: xr(i)
|
|
4833
4833
|
}
|
|
4834
4834
|
};
|
|
4835
4835
|
}
|
|
@@ -4837,11 +4837,11 @@ const vl = function(e) {
|
|
|
4837
4837
|
const a = await it(t, {
|
|
4838
4838
|
...o,
|
|
4839
4839
|
altBoundary: !0
|
|
4840
|
-
}), i =
|
|
4840
|
+
}), i = yr(a, n.floating);
|
|
4841
4841
|
return {
|
|
4842
4842
|
data: {
|
|
4843
4843
|
escapedOffsets: i,
|
|
4844
|
-
escaped:
|
|
4844
|
+
escaped: xr(i)
|
|
4845
4845
|
}
|
|
4846
4846
|
};
|
|
4847
4847
|
}
|
|
@@ -4856,7 +4856,7 @@ async function bl(e, t) {
|
|
|
4856
4856
|
placement: n,
|
|
4857
4857
|
platform: r,
|
|
4858
4858
|
elements: o
|
|
4859
|
-
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = xe(n), c = et(n),
|
|
4859
|
+
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = xe(n), c = et(n), l = Ne(n) === "y", d = ["left", "top"].includes(i) ? -1 : 1, u = a && l ? -1 : 1, m = ye(t, e);
|
|
4860
4860
|
let {
|
|
4861
4861
|
mainAxis: v,
|
|
4862
4862
|
crossAxis: h,
|
|
@@ -4870,11 +4870,11 @@ async function bl(e, t) {
|
|
|
4870
4870
|
crossAxis: m.crossAxis || 0,
|
|
4871
4871
|
alignmentAxis: m.alignmentAxis
|
|
4872
4872
|
};
|
|
4873
|
-
return c && typeof b == "number" && (h = c === "end" ? b * -1 : b),
|
|
4873
|
+
return c && typeof b == "number" && (h = c === "end" ? b * -1 : b), l ? {
|
|
4874
4874
|
x: h * u,
|
|
4875
|
-
y: v *
|
|
4875
|
+
y: v * d
|
|
4876
4876
|
} : {
|
|
4877
|
-
x: v *
|
|
4877
|
+
x: v * d,
|
|
4878
4878
|
y: h * u
|
|
4879
4879
|
};
|
|
4880
4880
|
}
|
|
@@ -4889,12 +4889,12 @@ const wl = function(e) {
|
|
|
4889
4889
|
y: a,
|
|
4890
4890
|
placement: i,
|
|
4891
4891
|
middlewareData: c
|
|
4892
|
-
} = t,
|
|
4892
|
+
} = t, l = await bl(t, e);
|
|
4893
4893
|
return i === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
4894
|
-
x: o +
|
|
4895
|
-
y: a +
|
|
4894
|
+
x: o + l.x,
|
|
4895
|
+
y: a + l.y,
|
|
4896
4896
|
data: {
|
|
4897
|
-
...
|
|
4897
|
+
...l,
|
|
4898
4898
|
placement: i
|
|
4899
4899
|
}
|
|
4900
4900
|
};
|
|
@@ -4924,12 +4924,12 @@ const wl = function(e) {
|
|
|
4924
4924
|
};
|
|
4925
4925
|
}
|
|
4926
4926
|
},
|
|
4927
|
-
...
|
|
4928
|
-
} = ye(e, t),
|
|
4927
|
+
...l
|
|
4928
|
+
} = ye(e, t), d = {
|
|
4929
4929
|
x: n,
|
|
4930
4930
|
y: r
|
|
4931
|
-
}, u = await it(t,
|
|
4932
|
-
let h =
|
|
4931
|
+
}, u = await it(t, l), m = Ne(xe(o)), v = Ln(m);
|
|
4932
|
+
let h = d[v], b = d[m];
|
|
4933
4933
|
if (a) {
|
|
4934
4934
|
const g = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", y = h + u[g], x = h - u[w];
|
|
4935
4935
|
h = vn(y, h, x);
|
|
@@ -4968,12 +4968,12 @@ const wl = function(e) {
|
|
|
4968
4968
|
middlewareData: i
|
|
4969
4969
|
} = t, {
|
|
4970
4970
|
offset: c = 0,
|
|
4971
|
-
mainAxis:
|
|
4972
|
-
crossAxis:
|
|
4971
|
+
mainAxis: l = !0,
|
|
4972
|
+
crossAxis: d = !0
|
|
4973
4973
|
} = ye(e, t), u = {
|
|
4974
4974
|
x: n,
|
|
4975
4975
|
y: r
|
|
4976
|
-
}, m = Ne(o), v =
|
|
4976
|
+
}, m = Ne(o), v = Ln(m);
|
|
4977
4977
|
let h = u[v], b = u[m];
|
|
4978
4978
|
const f = ye(c, t), g = typeof f == "number" ? {
|
|
4979
4979
|
mainAxis: f,
|
|
@@ -4983,11 +4983,11 @@ const wl = function(e) {
|
|
|
4983
4983
|
crossAxis: 0,
|
|
4984
4984
|
...f
|
|
4985
4985
|
};
|
|
4986
|
-
if (
|
|
4986
|
+
if (l) {
|
|
4987
4987
|
const x = v === "y" ? "height" : "width", C = a.reference[v] - a.floating[x] + g.mainAxis, S = a.reference[v] + a.reference[x] - g.mainAxis;
|
|
4988
4988
|
h < C ? h = C : h > S && (h = S);
|
|
4989
4989
|
}
|
|
4990
|
-
if (
|
|
4990
|
+
if (d) {
|
|
4991
4991
|
var w, y;
|
|
4992
4992
|
const x = v === "y" ? "width" : "height", C = ["top", "left"].includes(xe(o)), S = a.reference[m] - a.floating[x] + (C && ((w = i.offset) == null ? void 0 : w[m]) || 0) + (C ? 0 : g.crossAxis), E = a.reference[m] + a.reference[x] + (C ? 0 : ((y = i.offset) == null ? void 0 : y[m]) || 0) - (C ? g.crossAxis : 0);
|
|
4993
4993
|
b < S ? b = S : b > E && (b = E);
|
|
@@ -5010,10 +5010,10 @@ const wl = function(e) {
|
|
|
5010
5010
|
platform: i,
|
|
5011
5011
|
elements: c
|
|
5012
5012
|
} = t, {
|
|
5013
|
-
apply:
|
|
5013
|
+
apply: l = () => {
|
|
5014
5014
|
},
|
|
5015
|
-
...
|
|
5016
|
-
} = ye(e, t), u = await it(t,
|
|
5015
|
+
...d
|
|
5016
|
+
} = ye(e, t), u = await it(t, d), m = xe(o), v = et(o), h = Ne(o) === "y", {
|
|
5017
5017
|
width: b,
|
|
5018
5018
|
height: f
|
|
5019
5019
|
} = a.floating;
|
|
@@ -5025,7 +5025,7 @@ const wl = function(e) {
|
|
|
5025
5025
|
const $ = ie(u.left, 0), V = ie(u.right, 0), z = ie(u.top, 0), M = ie(u.bottom, 0);
|
|
5026
5026
|
h ? F = b - 2 * ($ !== 0 || V !== 0 ? $ + V : ie(u.left, u.right)) : T = f - 2 * (z !== 0 || M !== 0 ? z + M : ie(u.top, u.bottom));
|
|
5027
5027
|
}
|
|
5028
|
-
await
|
|
5028
|
+
await l({
|
|
5029
5029
|
...t,
|
|
5030
5030
|
availableWidth: F,
|
|
5031
5031
|
availableHeight: T
|
|
@@ -5062,7 +5062,7 @@ function ue(e) {
|
|
|
5062
5062
|
function ve(e) {
|
|
5063
5063
|
return $t() ? e instanceof HTMLElement || e instanceof se(e).HTMLElement : !1;
|
|
5064
5064
|
}
|
|
5065
|
-
function
|
|
5065
|
+
function Er(e) {
|
|
5066
5066
|
return !$t() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof se(e).ShadowRoot;
|
|
5067
5067
|
}
|
|
5068
5068
|
function lt(e) {
|
|
@@ -5086,14 +5086,14 @@ function zt(e) {
|
|
|
5086
5086
|
}
|
|
5087
5087
|
});
|
|
5088
5088
|
}
|
|
5089
|
-
function
|
|
5090
|
-
const t =
|
|
5089
|
+
function zn(e) {
|
|
5090
|
+
const t = Wn(), n = ue(e) ? fe(e) : e;
|
|
5091
5091
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5092
5092
|
}
|
|
5093
5093
|
function Sl(e) {
|
|
5094
5094
|
let t = Oe(e);
|
|
5095
5095
|
for (; ve(t) && !qe(t); ) {
|
|
5096
|
-
if (
|
|
5096
|
+
if (zn(t))
|
|
5097
5097
|
return t;
|
|
5098
5098
|
if (zt(t))
|
|
5099
5099
|
return null;
|
|
@@ -5101,7 +5101,7 @@ function Sl(e) {
|
|
|
5101
5101
|
}
|
|
5102
5102
|
return null;
|
|
5103
5103
|
}
|
|
5104
|
-
function
|
|
5104
|
+
function Wn() {
|
|
5105
5105
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5106
5106
|
}
|
|
5107
5107
|
function qe(e) {
|
|
@@ -5126,10 +5126,10 @@ function Oe(e) {
|
|
|
5126
5126
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5127
5127
|
e.assignedSlot || // DOM Element detected.
|
|
5128
5128
|
e.parentNode || // ShadowRoot detected.
|
|
5129
|
-
|
|
5129
|
+
Er(e) && e.host || // Fallback.
|
|
5130
5130
|
be(e)
|
|
5131
5131
|
);
|
|
5132
|
-
return
|
|
5132
|
+
return Er(t) ? t.host : t;
|
|
5133
5133
|
}
|
|
5134
5134
|
function Bo(e) {
|
|
5135
5135
|
const t = Oe(e);
|
|
@@ -5158,11 +5158,11 @@ function Vo(e) {
|
|
|
5158
5158
|
$: c
|
|
5159
5159
|
};
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function Bn(e) {
|
|
5162
5162
|
return ue(e) ? e : e.contextElement;
|
|
5163
5163
|
}
|
|
5164
5164
|
function Ye(e) {
|
|
5165
|
-
const t =
|
|
5165
|
+
const t = Bn(e);
|
|
5166
5166
|
if (!ve(t))
|
|
5167
5167
|
return ge(1);
|
|
5168
5168
|
const n = t.getBoundingClientRect(), {
|
|
@@ -5179,7 +5179,7 @@ function Ye(e) {
|
|
|
5179
5179
|
const Tl = /* @__PURE__ */ ge(0);
|
|
5180
5180
|
function Ho(e) {
|
|
5181
5181
|
const t = se(e);
|
|
5182
|
-
return !
|
|
5182
|
+
return !Wn() || !t.visualViewport ? Tl : {
|
|
5183
5183
|
x: t.visualViewport.offsetLeft,
|
|
5184
5184
|
y: t.visualViewport.offsetTop
|
|
5185
5185
|
};
|
|
@@ -5189,27 +5189,27 @@ function Rl(e, t, n) {
|
|
|
5189
5189
|
}
|
|
5190
5190
|
function ze(e, t, n, r) {
|
|
5191
5191
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5192
|
-
const o = e.getBoundingClientRect(), a =
|
|
5192
|
+
const o = e.getBoundingClientRect(), a = Bn(e);
|
|
5193
5193
|
let i = ge(1);
|
|
5194
5194
|
t && (r ? ue(r) && (i = Ye(r)) : i = Ye(e));
|
|
5195
5195
|
const c = Rl(a, n, r) ? Ho(a) : ge(0);
|
|
5196
|
-
let
|
|
5196
|
+
let l = (o.left + c.x) / i.x, d = (o.top + c.y) / i.y, u = o.width / i.x, m = o.height / i.y;
|
|
5197
5197
|
if (a) {
|
|
5198
5198
|
const v = se(a), h = r && ue(r) ? se(r) : r;
|
|
5199
5199
|
let b = v, f = wn(b);
|
|
5200
5200
|
for (; f && r && h !== b; ) {
|
|
5201
5201
|
const g = Ye(f), w = f.getBoundingClientRect(), y = fe(f), x = w.left + (f.clientLeft + parseFloat(y.paddingLeft)) * g.x, C = w.top + (f.clientTop + parseFloat(y.paddingTop)) * g.y;
|
|
5202
|
-
|
|
5202
|
+
l *= g.x, d *= g.y, u *= g.x, m *= g.y, l += x, d += C, b = se(f), f = wn(b);
|
|
5203
5203
|
}
|
|
5204
5204
|
}
|
|
5205
5205
|
return kt({
|
|
5206
5206
|
width: u,
|
|
5207
5207
|
height: m,
|
|
5208
|
-
x:
|
|
5209
|
-
y:
|
|
5208
|
+
x: l,
|
|
5209
|
+
y: d
|
|
5210
5210
|
});
|
|
5211
5211
|
}
|
|
5212
|
-
function
|
|
5212
|
+
function Vn(e, t) {
|
|
5213
5213
|
const n = Wt(e).scrollLeft;
|
|
5214
5214
|
return t ? t.left + n : ze(be(e)).left + n;
|
|
5215
5215
|
}
|
|
@@ -5217,7 +5217,7 @@ function jo(e, t, n) {
|
|
|
5217
5217
|
n === void 0 && (n = !1);
|
|
5218
5218
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
5219
5219
|
// RTL <body> scrollbar.
|
|
5220
|
-
|
|
5220
|
+
Vn(e, r)
|
|
5221
5221
|
)), a = r.top + t.scrollTop;
|
|
5222
5222
|
return {
|
|
5223
5223
|
x: o,
|
|
@@ -5234,21 +5234,21 @@ function Pl(e) {
|
|
|
5234
5234
|
const a = o === "fixed", i = be(r), c = t ? zt(t.floating) : !1;
|
|
5235
5235
|
if (r === i || c && a)
|
|
5236
5236
|
return n;
|
|
5237
|
-
let
|
|
5237
|
+
let l = {
|
|
5238
5238
|
scrollLeft: 0,
|
|
5239
5239
|
scrollTop: 0
|
|
5240
|
-
},
|
|
5240
|
+
}, d = ge(1);
|
|
5241
5241
|
const u = ge(0), m = ve(r);
|
|
5242
|
-
if ((m || !m && !a) && ((tt(r) !== "body" || lt(i)) && (
|
|
5242
|
+
if ((m || !m && !a) && ((tt(r) !== "body" || lt(i)) && (l = Wt(r)), ve(r))) {
|
|
5243
5243
|
const h = ze(r);
|
|
5244
|
-
|
|
5244
|
+
d = Ye(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
5245
5245
|
}
|
|
5246
|
-
const v = i && !m && !a ? jo(i,
|
|
5246
|
+
const v = i && !m && !a ? jo(i, l, !0) : ge(0);
|
|
5247
5247
|
return {
|
|
5248
|
-
width: n.width *
|
|
5249
|
-
height: n.height *
|
|
5250
|
-
x: n.x *
|
|
5251
|
-
y: n.y *
|
|
5248
|
+
width: n.width * d.x,
|
|
5249
|
+
height: n.height * d.y,
|
|
5250
|
+
x: n.x * d.x - l.scrollLeft * d.x + u.x + v.x,
|
|
5251
|
+
y: n.y * d.y - l.scrollTop * d.y + u.y + v.y
|
|
5252
5252
|
};
|
|
5253
5253
|
}
|
|
5254
5254
|
function Al(e) {
|
|
@@ -5256,7 +5256,7 @@ function Al(e) {
|
|
|
5256
5256
|
}
|
|
5257
5257
|
function Nl(e) {
|
|
5258
5258
|
const t = be(e), n = Wt(e), r = e.ownerDocument.body, o = ie(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ie(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5259
|
-
let i = -n.scrollLeft +
|
|
5259
|
+
let i = -n.scrollLeft + Vn(e);
|
|
5260
5260
|
const c = -n.scrollTop;
|
|
5261
5261
|
return fe(r).direction === "rtl" && (i += ie(t.clientWidth, r.clientWidth) - o), {
|
|
5262
5262
|
width: o,
|
|
@@ -5267,29 +5267,29 @@ function Nl(e) {
|
|
|
5267
5267
|
}
|
|
5268
5268
|
function Ol(e, t) {
|
|
5269
5269
|
const n = se(e), r = be(e), o = n.visualViewport;
|
|
5270
|
-
let a = r.clientWidth, i = r.clientHeight, c = 0,
|
|
5270
|
+
let a = r.clientWidth, i = r.clientHeight, c = 0, l = 0;
|
|
5271
5271
|
if (o) {
|
|
5272
5272
|
a = o.width, i = o.height;
|
|
5273
|
-
const
|
|
5274
|
-
(!
|
|
5273
|
+
const d = Wn();
|
|
5274
|
+
(!d || d && t === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
5275
5275
|
}
|
|
5276
5276
|
return {
|
|
5277
5277
|
width: a,
|
|
5278
5278
|
height: i,
|
|
5279
5279
|
x: c,
|
|
5280
|
-
y:
|
|
5280
|
+
y: l
|
|
5281
5281
|
};
|
|
5282
5282
|
}
|
|
5283
5283
|
function Ml(e, t) {
|
|
5284
|
-
const n = ze(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = ve(e) ? Ye(e) : ge(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y,
|
|
5284
|
+
const n = ze(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = ve(e) ? Ye(e) : ge(1), i = e.clientWidth * a.x, c = e.clientHeight * a.y, l = o * a.x, d = r * a.y;
|
|
5285
5285
|
return {
|
|
5286
5286
|
width: i,
|
|
5287
5287
|
height: c,
|
|
5288
|
-
x:
|
|
5289
|
-
y:
|
|
5288
|
+
x: l,
|
|
5289
|
+
y: d
|
|
5290
5290
|
};
|
|
5291
5291
|
}
|
|
5292
|
-
function
|
|
5292
|
+
function Cr(e, t, n) {
|
|
5293
5293
|
let r;
|
|
5294
5294
|
if (t === "viewport")
|
|
5295
5295
|
r = Ol(e, n);
|
|
@@ -5320,8 +5320,8 @@ function kl(e, t) {
|
|
|
5320
5320
|
const a = fe(e).position === "fixed";
|
|
5321
5321
|
let i = a ? Oe(e) : e;
|
|
5322
5322
|
for (; ue(i) && !qe(i); ) {
|
|
5323
|
-
const c = fe(i),
|
|
5324
|
-
!
|
|
5323
|
+
const c = fe(i), l = zn(i);
|
|
5324
|
+
!l && c.position === "fixed" && (o = null), (a ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !l && Go(e, i)) ? r = r.filter((u) => u !== i) : o = c, i = Oe(i);
|
|
5325
5325
|
}
|
|
5326
5326
|
return t.set(e, r), r;
|
|
5327
5327
|
}
|
|
@@ -5332,15 +5332,15 @@ function Dl(e) {
|
|
|
5332
5332
|
rootBoundary: r,
|
|
5333
5333
|
strategy: o
|
|
5334
5334
|
} = e;
|
|
5335
|
-
const i = [...n === "clippingAncestors" ? zt(t) ? [] : kl(t, this._c) : [].concat(n), r], c = i[0],
|
|
5336
|
-
const m =
|
|
5337
|
-
return
|
|
5338
|
-
},
|
|
5335
|
+
const i = [...n === "clippingAncestors" ? zt(t) ? [] : kl(t, this._c) : [].concat(n), r], c = i[0], l = i.reduce((d, u) => {
|
|
5336
|
+
const m = Cr(t, u, o);
|
|
5337
|
+
return d.top = ie(m.top, d.top), d.right = Ae(m.right, d.right), d.bottom = Ae(m.bottom, d.bottom), d.left = ie(m.left, d.left), d;
|
|
5338
|
+
}, Cr(t, c, o));
|
|
5339
5339
|
return {
|
|
5340
|
-
width:
|
|
5341
|
-
height:
|
|
5342
|
-
x:
|
|
5343
|
-
y:
|
|
5340
|
+
width: l.right - l.left,
|
|
5341
|
+
height: l.bottom - l.top,
|
|
5342
|
+
x: l.left,
|
|
5343
|
+
y: l.top
|
|
5344
5344
|
};
|
|
5345
5345
|
}
|
|
5346
5346
|
function Il(e) {
|
|
@@ -5359,13 +5359,13 @@ function _l(e, t, n) {
|
|
|
5359
5359
|
scrollLeft: 0,
|
|
5360
5360
|
scrollTop: 0
|
|
5361
5361
|
};
|
|
5362
|
-
const
|
|
5362
|
+
const l = ge(0);
|
|
5363
5363
|
if (r || !r && !a)
|
|
5364
5364
|
if ((tt(t) !== "body" || lt(o)) && (c = Wt(t)), r) {
|
|
5365
5365
|
const v = ze(t, !0, a, t);
|
|
5366
|
-
|
|
5367
|
-
} else o && (
|
|
5368
|
-
const
|
|
5366
|
+
l.x = v.x + t.clientLeft, l.y = v.y + t.clientTop;
|
|
5367
|
+
} else o && (l.x = Vn(o));
|
|
5368
|
+
const d = o && !r && !a ? jo(o, c) : ge(0), u = i.left + c.scrollLeft - l.x - d.x, m = i.top + c.scrollTop - l.y - d.y;
|
|
5369
5369
|
return {
|
|
5370
5370
|
x: u,
|
|
5371
5371
|
y: m,
|
|
@@ -5376,7 +5376,7 @@ function _l(e, t, n) {
|
|
|
5376
5376
|
function on(e) {
|
|
5377
5377
|
return fe(e).position === "static";
|
|
5378
5378
|
}
|
|
5379
|
-
function
|
|
5379
|
+
function Sr(e, t) {
|
|
5380
5380
|
if (!ve(e) || fe(e).position === "fixed")
|
|
5381
5381
|
return null;
|
|
5382
5382
|
if (t)
|
|
@@ -5397,10 +5397,10 @@ function Uo(e, t) {
|
|
|
5397
5397
|
}
|
|
5398
5398
|
return n;
|
|
5399
5399
|
}
|
|
5400
|
-
let r =
|
|
5400
|
+
let r = Sr(e, t);
|
|
5401
5401
|
for (; r && Cl(r) && on(r); )
|
|
5402
|
-
r =
|
|
5403
|
-
return r && qe(r) && on(r) && !
|
|
5402
|
+
r = Sr(r, t);
|
|
5403
|
+
return r && qe(r) && on(r) && !zn(r) ? n : r || Sl(e) || n;
|
|
5404
5404
|
}
|
|
5405
5405
|
const Ll = async function(e) {
|
|
5406
5406
|
const t = this.getOffsetParent || Uo, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -5439,31 +5439,31 @@ function zl(e, t) {
|
|
|
5439
5439
|
var c;
|
|
5440
5440
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
5441
5441
|
}
|
|
5442
|
-
function i(c,
|
|
5443
|
-
c === void 0 && (c = !1),
|
|
5444
|
-
const
|
|
5442
|
+
function i(c, l) {
|
|
5443
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), a();
|
|
5444
|
+
const d = e.getBoundingClientRect(), {
|
|
5445
5445
|
left: u,
|
|
5446
5446
|
top: m,
|
|
5447
5447
|
width: v,
|
|
5448
5448
|
height: h
|
|
5449
|
-
} =
|
|
5449
|
+
} = d;
|
|
5450
5450
|
if (c || t(), !v || !h)
|
|
5451
5451
|
return;
|
|
5452
5452
|
const b = yt(m), f = yt(o.clientWidth - (u + v)), g = yt(o.clientHeight - (m + h)), w = yt(u), x = {
|
|
5453
5453
|
rootMargin: -b + "px " + -f + "px " + -g + "px " + -w + "px",
|
|
5454
|
-
threshold: ie(0, Ae(1,
|
|
5454
|
+
threshold: ie(0, Ae(1, l)) || 1
|
|
5455
5455
|
};
|
|
5456
5456
|
let C = !0;
|
|
5457
5457
|
function S(E) {
|
|
5458
5458
|
const T = E[0].intersectionRatio;
|
|
5459
|
-
if (T !==
|
|
5459
|
+
if (T !== l) {
|
|
5460
5460
|
if (!C)
|
|
5461
5461
|
return i();
|
|
5462
5462
|
T ? i(!1, T) : r = setTimeout(() => {
|
|
5463
5463
|
i(!1, 1e-7);
|
|
5464
5464
|
}, 1e3);
|
|
5465
5465
|
}
|
|
5466
|
-
T === 1 && !Ko(
|
|
5466
|
+
T === 1 && !Ko(d, e.getBoundingClientRect()) && i(), C = !1;
|
|
5467
5467
|
}
|
|
5468
5468
|
try {
|
|
5469
5469
|
n = new IntersectionObserver(S, {
|
|
@@ -5485,24 +5485,24 @@ function Wl(e, t, n, r) {
|
|
|
5485
5485
|
ancestorResize: a = !0,
|
|
5486
5486
|
elementResize: i = typeof ResizeObserver == "function",
|
|
5487
5487
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5488
|
-
animationFrame:
|
|
5489
|
-
} = r,
|
|
5488
|
+
animationFrame: l = !1
|
|
5489
|
+
} = r, d = Bn(e), u = o || a ? [...d ? st(d) : [], ...st(t)] : [];
|
|
5490
5490
|
u.forEach((w) => {
|
|
5491
5491
|
o && w.addEventListener("scroll", n, {
|
|
5492
5492
|
passive: !0
|
|
5493
5493
|
}), a && w.addEventListener("resize", n);
|
|
5494
5494
|
});
|
|
5495
|
-
const m =
|
|
5495
|
+
const m = d && c ? zl(d, n) : null;
|
|
5496
5496
|
let v = -1, h = null;
|
|
5497
5497
|
i && (h = new ResizeObserver((w) => {
|
|
5498
5498
|
let [y] = w;
|
|
5499
|
-
y && y.target ===
|
|
5499
|
+
y && y.target === d && h && (h.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
5500
5500
|
var x;
|
|
5501
5501
|
(x = h) == null || x.observe(t);
|
|
5502
5502
|
})), n();
|
|
5503
|
-
}),
|
|
5504
|
-
let b, f =
|
|
5505
|
-
|
|
5503
|
+
}), d && !l && h.observe(d), h.observe(t));
|
|
5504
|
+
let b, f = l ? ze(e) : null;
|
|
5505
|
+
l && g();
|
|
5506
5506
|
function g() {
|
|
5507
5507
|
const w = ze(e);
|
|
5508
5508
|
f && !Ko(f, w) && n(), f = w, b = requestAnimationFrame(g);
|
|
@@ -5511,10 +5511,10 @@ function Wl(e, t, n, r) {
|
|
|
5511
5511
|
var w;
|
|
5512
5512
|
u.forEach((y) => {
|
|
5513
5513
|
o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
|
|
5514
|
-
}), m == null || m(), (w = h) == null || w.disconnect(), h = null,
|
|
5514
|
+
}), m == null || m(), (w = h) == null || w.disconnect(), h = null, l && cancelAnimationFrame(b);
|
|
5515
5515
|
};
|
|
5516
5516
|
}
|
|
5517
|
-
const Bl = wl, Vl = yl, Hl = gl, jl = El, Gl = vl,
|
|
5517
|
+
const Bl = wl, Vl = yl, Hl = gl, jl = El, Gl = vl, Tr = hl, Ul = xl, Kl = (e, t, n) => {
|
|
5518
5518
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5519
5519
|
platform: $l,
|
|
5520
5520
|
...n
|
|
@@ -5561,7 +5561,7 @@ function Dt(e, t) {
|
|
|
5561
5561
|
function Yo(e) {
|
|
5562
5562
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5563
5563
|
}
|
|
5564
|
-
function
|
|
5564
|
+
function Rr(e, t) {
|
|
5565
5565
|
const n = Yo(e);
|
|
5566
5566
|
return Math.round(t * n) / n;
|
|
5567
5567
|
}
|
|
@@ -5583,8 +5583,8 @@ function Yl(e) {
|
|
|
5583
5583
|
floating: i
|
|
5584
5584
|
} = {},
|
|
5585
5585
|
transform: c = !0,
|
|
5586
|
-
whileElementsMounted:
|
|
5587
|
-
open:
|
|
5586
|
+
whileElementsMounted: l,
|
|
5587
|
+
open: d
|
|
5588
5588
|
} = e, [u, m] = s.useState({
|
|
5589
5589
|
x: 0,
|
|
5590
5590
|
y: 0,
|
|
@@ -5598,7 +5598,7 @@ function Yl(e) {
|
|
|
5598
5598
|
O !== E.current && (E.current = O, f(O));
|
|
5599
5599
|
}, []), x = s.useCallback((O) => {
|
|
5600
5600
|
O !== T.current && (T.current = O, w(O));
|
|
5601
|
-
}, []), C = a || b, S = i || g, E = s.useRef(null), T = s.useRef(null), F = s.useRef(u), k =
|
|
5601
|
+
}, []), C = a || b, S = i || g, E = s.useRef(null), T = s.useRef(null), F = s.useRef(u), k = l != null, $ = an(l), V = an(o), z = an(d), M = s.useCallback(() => {
|
|
5602
5602
|
if (!E.current || !T.current)
|
|
5603
5603
|
return;
|
|
5604
5604
|
const O = {
|
|
@@ -5621,11 +5621,11 @@ function Yl(e) {
|
|
|
5621
5621
|
});
|
|
5622
5622
|
}, [v, t, n, V, z]);
|
|
5623
5623
|
Tt(() => {
|
|
5624
|
-
|
|
5624
|
+
d === !1 && F.current.isPositioned && (F.current.isPositioned = !1, m((O) => ({
|
|
5625
5625
|
...O,
|
|
5626
5626
|
isPositioned: !1
|
|
5627
5627
|
})));
|
|
5628
|
-
}, [
|
|
5628
|
+
}, [d]);
|
|
5629
5629
|
const R = s.useRef(!1);
|
|
5630
5630
|
Tt(() => (R.current = !0, () => {
|
|
5631
5631
|
R.current = !1;
|
|
@@ -5652,7 +5652,7 @@ function Yl(e) {
|
|
|
5652
5652
|
};
|
|
5653
5653
|
if (!N.floating)
|
|
5654
5654
|
return O;
|
|
5655
|
-
const _ =
|
|
5655
|
+
const _ = Rr(N.floating, u.x), K = Rr(N.floating, u.y);
|
|
5656
5656
|
return c ? {
|
|
5657
5657
|
...O,
|
|
5658
5658
|
transform: "translate(" + _ + "px, " + K + "px)",
|
|
@@ -5685,10 +5685,10 @@ const Xl = (e) => {
|
|
|
5685
5685
|
element: r,
|
|
5686
5686
|
padding: o
|
|
5687
5687
|
} = typeof e == "function" ? e(n) : e;
|
|
5688
|
-
return r && t(r) ? r.current != null ?
|
|
5688
|
+
return r && t(r) ? r.current != null ? Tr({
|
|
5689
5689
|
element: r.current,
|
|
5690
5690
|
padding: o
|
|
5691
|
-
}).fn(n) : {} : r ?
|
|
5691
|
+
}).fn(n) : {} : r ? Tr({
|
|
5692
5692
|
element: r,
|
|
5693
5693
|
padding: o
|
|
5694
5694
|
}).fn(n) : {};
|
|
@@ -5744,8 +5744,8 @@ function ad(e) {
|
|
|
5744
5744
|
const a = o[0];
|
|
5745
5745
|
let i, c;
|
|
5746
5746
|
if ("borderBoxSize" in a) {
|
|
5747
|
-
const
|
|
5748
|
-
i =
|
|
5747
|
+
const l = a.borderBoxSize, d = Array.isArray(l) ? l[0] : l;
|
|
5748
|
+
i = d.inlineSize, c = d.blockSize;
|
|
5749
5749
|
} else
|
|
5750
5750
|
i = e.offsetWidth, c = e.offsetHeight;
|
|
5751
5751
|
n({ width: i, height: c });
|
|
@@ -5755,11 +5755,11 @@ function ad(e) {
|
|
|
5755
5755
|
n(void 0);
|
|
5756
5756
|
}, [e]), t;
|
|
5757
5757
|
}
|
|
5758
|
-
var
|
|
5758
|
+
var Hn = "Popper", [qo, Zo] = ct(Hn), [id, Qo] = qo(Hn), Jo = (e) => {
|
|
5759
5759
|
const { __scopePopper: t, children: n } = e, [r, o] = s.useState(null);
|
|
5760
5760
|
return /* @__PURE__ */ p(id, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5761
5761
|
};
|
|
5762
|
-
Jo.displayName =
|
|
5762
|
+
Jo.displayName = Hn;
|
|
5763
5763
|
var ea = "PopperAnchor", ta = s.forwardRef(
|
|
5764
5764
|
(e, t) => {
|
|
5765
5765
|
const { __scopePopper: n, virtualRef: r, ...o } = e, a = Qo(ea, n), i = s.useRef(null), c = ee(t, i);
|
|
@@ -5769,7 +5769,7 @@ var ea = "PopperAnchor", ta = s.forwardRef(
|
|
|
5769
5769
|
}
|
|
5770
5770
|
);
|
|
5771
5771
|
ta.displayName = ea;
|
|
5772
|
-
var
|
|
5772
|
+
var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
5773
5773
|
(e, t) => {
|
|
5774
5774
|
var me, nt, ut, rt, ft, Ve;
|
|
5775
5775
|
const {
|
|
@@ -5779,15 +5779,15 @@ var Gn = "PopperContent", [sd, cd] = qo(Gn), na = s.forwardRef(
|
|
|
5779
5779
|
align: a = "center",
|
|
5780
5780
|
alignOffset: i = 0,
|
|
5781
5781
|
arrowPadding: c = 0,
|
|
5782
|
-
avoidCollisions:
|
|
5783
|
-
collisionBoundary:
|
|
5782
|
+
avoidCollisions: l = !0,
|
|
5783
|
+
collisionBoundary: d = [],
|
|
5784
5784
|
collisionPadding: u = 0,
|
|
5785
5785
|
sticky: m = "partial",
|
|
5786
5786
|
hideWhenDetached: v = !1,
|
|
5787
5787
|
updatePositionStrategy: h = "optimized",
|
|
5788
5788
|
onPlaced: b,
|
|
5789
5789
|
...f
|
|
5790
|
-
} = e, g = Qo(
|
|
5790
|
+
} = e, g = Qo(jn, n), [w, y] = s.useState(null), x = ee(t, (Me) => y(Me)), [C, S] = s.useState(null), E = ad(C), T = (E == null ? void 0 : E.width) ?? 0, F = (E == null ? void 0 : E.height) ?? 0, k = r + (a !== "center" ? "-" + a : ""), $ = typeof u == "number" ? u : { top: 0, right: 0, bottom: 0, left: 0, ...u }, V = Array.isArray(d) ? d : [d], z = V.length > 0, M = {
|
|
5791
5791
|
padding: $,
|
|
5792
5792
|
boundary: V.filter(dd),
|
|
5793
5793
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5804,13 +5804,13 @@ var Gn = "PopperContent", [sd, cd] = qo(Gn), na = s.forwardRef(
|
|
|
5804
5804
|
},
|
|
5805
5805
|
middleware: [
|
|
5806
5806
|
ql({ mainAxis: o + F, alignmentAxis: i }),
|
|
5807
|
-
|
|
5807
|
+
l && Zl({
|
|
5808
5808
|
mainAxis: !0,
|
|
5809
5809
|
crossAxis: !1,
|
|
5810
5810
|
limiter: m === "partial" ? Ql() : void 0,
|
|
5811
5811
|
...M
|
|
5812
5812
|
}),
|
|
5813
|
-
|
|
5813
|
+
l && Jl({ ...M }),
|
|
5814
5814
|
ed({
|
|
5815
5815
|
...M,
|
|
5816
5816
|
apply: ({ elements: Me, rects: D, availableWidth: L, availableHeight: Z }) => {
|
|
@@ -5883,7 +5883,7 @@ var Gn = "PopperContent", [sd, cd] = qo(Gn), na = s.forwardRef(
|
|
|
5883
5883
|
);
|
|
5884
5884
|
}
|
|
5885
5885
|
);
|
|
5886
|
-
na.displayName =
|
|
5886
|
+
na.displayName = jn;
|
|
5887
5887
|
var ra = "PopperArrow", ld = {
|
|
5888
5888
|
top: "bottom",
|
|
5889
5889
|
right: "left",
|
|
@@ -5943,9 +5943,9 @@ var ud = (e) => ({
|
|
|
5943
5943
|
options: e,
|
|
5944
5944
|
fn(t) {
|
|
5945
5945
|
var g, w, y;
|
|
5946
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = i ? 0 : e.arrowWidth,
|
|
5946
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [d, u] = aa(n), m = { start: "0%", center: "50%", end: "100%" }[u], v = (((w = o.arrow) == null ? void 0 : w.x) ?? 0) + c / 2, h = (((y = o.arrow) == null ? void 0 : y.y) ?? 0) + l / 2;
|
|
5947
5947
|
let b = "", f = "";
|
|
5948
|
-
return
|
|
5948
|
+
return d === "bottom" ? (b = i ? m : `${v}px`, f = `${-l}px`) : d === "top" ? (b = i ? m : `${v}px`, f = `${r.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, f = i ? m : `${h}px`) : d === "left" && (b = `${r.floating.width + l}px`, f = i ? m : `${h}px`), { data: { x: b, y: f } };
|
|
5949
5949
|
}
|
|
5950
5950
|
});
|
|
5951
5951
|
function aa(e) {
|
|
@@ -5978,16 +5978,16 @@ var fd = Jo, pd = ta, md = na, hd = oa, gd = "VisuallyHidden", Bt = s.forwardRef
|
|
|
5978
5978
|
Bt.displayName = gd;
|
|
5979
5979
|
var vd = Bt, [Vt, qu] = ct("Tooltip", [
|
|
5980
5980
|
Zo
|
|
5981
|
-
]), Ht = Zo(), ia = "TooltipProvider", bd = 700, yn = "tooltip.open", [wd,
|
|
5981
|
+
]), Ht = Zo(), ia = "TooltipProvider", bd = 700, yn = "tooltip.open", [wd, Gn] = Vt(ia), sa = (e) => {
|
|
5982
5982
|
const {
|
|
5983
5983
|
__scopeTooltip: t,
|
|
5984
5984
|
delayDuration: n = bd,
|
|
5985
5985
|
skipDelayDuration: r = 300,
|
|
5986
5986
|
disableHoverableContent: o = !1,
|
|
5987
5987
|
children: a
|
|
5988
|
-
} = e, [i, c] = s.useState(!0),
|
|
5988
|
+
} = e, [i, c] = s.useState(!0), l = s.useRef(!1), d = s.useRef(0);
|
|
5989
5989
|
return s.useEffect(() => {
|
|
5990
|
-
const u =
|
|
5990
|
+
const u = d.current;
|
|
5991
5991
|
return () => window.clearTimeout(u);
|
|
5992
5992
|
}, []), /* @__PURE__ */ p(
|
|
5993
5993
|
wd,
|
|
@@ -5996,17 +5996,17 @@ var vd = Bt, [Vt, qu] = ct("Tooltip", [
|
|
|
5996
5996
|
isOpenDelayed: i,
|
|
5997
5997
|
delayDuration: n,
|
|
5998
5998
|
onOpen: s.useCallback(() => {
|
|
5999
|
-
window.clearTimeout(
|
|
5999
|
+
window.clearTimeout(d.current), c(!1);
|
|
6000
6000
|
}, []),
|
|
6001
6001
|
onClose: s.useCallback(() => {
|
|
6002
|
-
window.clearTimeout(
|
|
6002
|
+
window.clearTimeout(d.current), d.current = window.setTimeout(
|
|
6003
6003
|
() => c(!0),
|
|
6004
6004
|
r
|
|
6005
6005
|
);
|
|
6006
6006
|
}, [r]),
|
|
6007
|
-
isPointerInTransitRef:
|
|
6007
|
+
isPointerInTransitRef: l,
|
|
6008
6008
|
onPointerInTransitChange: s.useCallback((u) => {
|
|
6009
|
-
|
|
6009
|
+
l.current = u;
|
|
6010
6010
|
}, []),
|
|
6011
6011
|
disableHoverableContent: o,
|
|
6012
6012
|
children: a
|
|
@@ -6023,11 +6023,11 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6023
6023
|
onOpenChange: a,
|
|
6024
6024
|
disableHoverableContent: i,
|
|
6025
6025
|
delayDuration: c
|
|
6026
|
-
} = e,
|
|
6026
|
+
} = e, l = Gn(jt, e.__scopeTooltip), d = Ht(t), [u, m] = s.useState(null), v = Et(), h = s.useRef(0), b = i ?? l.disableHoverableContent, f = c ?? l.delayDuration, g = s.useRef(!1), [w = !1, y] = Mn({
|
|
6027
6027
|
prop: r,
|
|
6028
6028
|
defaultProp: o,
|
|
6029
6029
|
onChange: (T) => {
|
|
6030
|
-
T ? (
|
|
6030
|
+
T ? (l.onOpen(), document.dispatchEvent(new CustomEvent(yn))) : l.onClose(), a == null || a(T);
|
|
6031
6031
|
}
|
|
6032
6032
|
}), x = s.useMemo(() => w ? g.current ? "delayed-open" : "instant-open" : "closed", [w]), C = s.useCallback(() => {
|
|
6033
6033
|
window.clearTimeout(h.current), h.current = 0, g.current = !1, y(!0);
|
|
@@ -6040,7 +6040,7 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6040
6040
|
}, [f, y]);
|
|
6041
6041
|
return s.useEffect(() => () => {
|
|
6042
6042
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
6043
|
-
}, []), /* @__PURE__ */ p(fd, { ...
|
|
6043
|
+
}, []), /* @__PURE__ */ p(fd, { ...d, children: /* @__PURE__ */ p(
|
|
6044
6044
|
yd,
|
|
6045
6045
|
{
|
|
6046
6046
|
scope: t,
|
|
@@ -6050,8 +6050,8 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6050
6050
|
trigger: u,
|
|
6051
6051
|
onTriggerChange: m,
|
|
6052
6052
|
onTriggerEnter: s.useCallback(() => {
|
|
6053
|
-
|
|
6054
|
-
}, [
|
|
6053
|
+
l.isOpenDelayed ? E() : C();
|
|
6054
|
+
}, [l.isOpenDelayed, E, C]),
|
|
6055
6055
|
onTriggerLeave: s.useCallback(() => {
|
|
6056
6056
|
b ? S() : (window.clearTimeout(h.current), h.current = 0);
|
|
6057
6057
|
}, [S, b]),
|
|
@@ -6065,14 +6065,14 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6065
6065
|
ca.displayName = jt;
|
|
6066
6066
|
var xn = "TooltipTrigger", la = s.forwardRef(
|
|
6067
6067
|
(e, t) => {
|
|
6068
|
-
const { __scopeTooltip: n, ...r } = e, o = dt(xn, n), a =
|
|
6068
|
+
const { __scopeTooltip: n, ...r } = e, o = dt(xn, n), a = Gn(xn, n), i = Ht(n), c = s.useRef(null), l = ee(t, c, o.onTriggerChange), d = s.useRef(!1), u = s.useRef(!1), m = s.useCallback(() => d.current = !1, []);
|
|
6069
6069
|
return s.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ p(pd, { asChild: !0, ...i, children: /* @__PURE__ */ p(
|
|
6070
6070
|
Y.button,
|
|
6071
6071
|
{
|
|
6072
6072
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6073
6073
|
"data-state": o.stateAttribute,
|
|
6074
6074
|
...r,
|
|
6075
|
-
ref:
|
|
6075
|
+
ref: l,
|
|
6076
6076
|
onPointerMove: U(e.onPointerMove, (v) => {
|
|
6077
6077
|
v.pointerType !== "touch" && !u.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
|
|
6078
6078
|
}),
|
|
@@ -6080,10 +6080,10 @@ var xn = "TooltipTrigger", la = s.forwardRef(
|
|
|
6080
6080
|
o.onTriggerLeave(), u.current = !1;
|
|
6081
6081
|
}),
|
|
6082
6082
|
onPointerDown: U(e.onPointerDown, () => {
|
|
6083
|
-
|
|
6083
|
+
d.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
6084
6084
|
}),
|
|
6085
6085
|
onFocus: U(e.onFocus, () => {
|
|
6086
|
-
|
|
6086
|
+
d.current || o.onOpen();
|
|
6087
6087
|
}),
|
|
6088
6088
|
onBlur: U(e.onBlur, o.onClose),
|
|
6089
6089
|
onClick: U(e.onClick, o.onClose)
|
|
@@ -6092,20 +6092,20 @@ var xn = "TooltipTrigger", la = s.forwardRef(
|
|
|
6092
6092
|
}
|
|
6093
6093
|
);
|
|
6094
6094
|
la.displayName = xn;
|
|
6095
|
-
var
|
|
6095
|
+
var Un = "TooltipPortal", [xd, Ed] = Vt(Un, {
|
|
6096
6096
|
forceMount: void 0
|
|
6097
6097
|
}), da = (e) => {
|
|
6098
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = dt(
|
|
6098
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = dt(Un, t);
|
|
6099
6099
|
return /* @__PURE__ */ p(xd, { scope: t, forceMount: n, children: /* @__PURE__ */ p(Be, { present: n || a.open, children: /* @__PURE__ */ p(Lt, { asChild: !0, container: o, children: r }) }) });
|
|
6100
6100
|
};
|
|
6101
|
-
da.displayName =
|
|
6101
|
+
da.displayName = Un;
|
|
6102
6102
|
var Ze = "TooltipContent", ua = s.forwardRef(
|
|
6103
6103
|
(e, t) => {
|
|
6104
6104
|
const n = Ed(Ze, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = dt(Ze, e.__scopeTooltip);
|
|
6105
6105
|
return /* @__PURE__ */ p(Be, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ p(fa, { side: o, ...a, ref: t }) : /* @__PURE__ */ p(Cd, { side: o, ...a, ref: t }) });
|
|
6106
6106
|
}
|
|
6107
6107
|
), Cd = s.forwardRef((e, t) => {
|
|
6108
|
-
const n = dt(Ze, e.__scopeTooltip), r =
|
|
6108
|
+
const n = dt(Ze, e.__scopeTooltip), r = Gn(Ze, e.__scopeTooltip), o = s.useRef(null), a = ee(t, o), [i, c] = s.useState(null), { trigger: l, onClose: d } = n, u = o.current, { onPointerInTransitChange: m } = r, v = s.useCallback(() => {
|
|
6109
6109
|
c(null), m(!1);
|
|
6110
6110
|
}, [m]), h = s.useCallback(
|
|
6111
6111
|
(b, f) => {
|
|
@@ -6115,21 +6115,21 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6115
6115
|
[m]
|
|
6116
6116
|
);
|
|
6117
6117
|
return s.useEffect(() => () => v(), [v]), s.useEffect(() => {
|
|
6118
|
-
if (
|
|
6119
|
-
const b = (g) => h(g, u), f = (g) => h(g,
|
|
6120
|
-
return
|
|
6121
|
-
|
|
6118
|
+
if (l && u) {
|
|
6119
|
+
const b = (g) => h(g, u), f = (g) => h(g, l);
|
|
6120
|
+
return l.addEventListener("pointerleave", b), u.addEventListener("pointerleave", f), () => {
|
|
6121
|
+
l.removeEventListener("pointerleave", b), u.removeEventListener("pointerleave", f);
|
|
6122
6122
|
};
|
|
6123
6123
|
}
|
|
6124
|
-
}, [
|
|
6124
|
+
}, [l, u, h, v]), s.useEffect(() => {
|
|
6125
6125
|
if (i) {
|
|
6126
6126
|
const b = (f) => {
|
|
6127
|
-
const g = f.target, w = { x: f.clientX, y: f.clientY }, y = (
|
|
6128
|
-
y ? v() : x && (v(),
|
|
6127
|
+
const g = f.target, w = { x: f.clientX, y: f.clientY }, y = (l == null ? void 0 : l.contains(g)) || (u == null ? void 0 : u.contains(g)), x = !Od(w, i);
|
|
6128
|
+
y ? v() : x && (v(), d());
|
|
6129
6129
|
};
|
|
6130
6130
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6131
6131
|
}
|
|
6132
|
-
}, [
|
|
6132
|
+
}, [l, u, i, d, v]), /* @__PURE__ */ p(fa, { ...e, ref: a });
|
|
6133
6133
|
}), [Sd, Td] = Vt(jt, { isInside: !1 }), fa = s.forwardRef(
|
|
6134
6134
|
(e, t) => {
|
|
6135
6135
|
const {
|
|
@@ -6139,16 +6139,16 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6139
6139
|
onEscapeKeyDown: a,
|
|
6140
6140
|
onPointerDownOutside: i,
|
|
6141
6141
|
...c
|
|
6142
|
-
} = e,
|
|
6142
|
+
} = e, l = dt(Ze, n), d = Ht(n), { onClose: u } = l;
|
|
6143
6143
|
return s.useEffect(() => (document.addEventListener(yn, u), () => document.removeEventListener(yn, u)), [u]), s.useEffect(() => {
|
|
6144
|
-
if (
|
|
6144
|
+
if (l.trigger) {
|
|
6145
6145
|
const m = (v) => {
|
|
6146
6146
|
const h = v.target;
|
|
6147
|
-
h != null && h.contains(
|
|
6147
|
+
h != null && h.contains(l.trigger) && u();
|
|
6148
6148
|
};
|
|
6149
6149
|
return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
|
|
6150
6150
|
}
|
|
6151
|
-
}, [
|
|
6151
|
+
}, [l.trigger, u]), /* @__PURE__ */ p(
|
|
6152
6152
|
_t,
|
|
6153
6153
|
{
|
|
6154
6154
|
asChild: !0,
|
|
@@ -6160,8 +6160,8 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6160
6160
|
children: /* @__PURE__ */ G(
|
|
6161
6161
|
md,
|
|
6162
6162
|
{
|
|
6163
|
-
"data-state":
|
|
6164
|
-
...
|
|
6163
|
+
"data-state": l.stateAttribute,
|
|
6164
|
+
...d,
|
|
6165
6165
|
...c,
|
|
6166
6166
|
ref: t,
|
|
6167
6167
|
style: {
|
|
@@ -6174,7 +6174,7 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6174
6174
|
},
|
|
6175
6175
|
children: [
|
|
6176
6176
|
/* @__PURE__ */ p(qr, { children: r }),
|
|
6177
|
-
/* @__PURE__ */ p(Sd, { scope: n, isInside: !0, children: /* @__PURE__ */ p(vd, { id:
|
|
6177
|
+
/* @__PURE__ */ p(Sd, { scope: n, isInside: !0, children: /* @__PURE__ */ p(vd, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
6178
6178
|
]
|
|
6179
6179
|
}
|
|
6180
6180
|
)
|
|
@@ -6251,8 +6251,8 @@ function Od(e, t) {
|
|
|
6251
6251
|
const { x: n, y: r } = e;
|
|
6252
6252
|
let o = !1;
|
|
6253
6253
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
6254
|
-
const c = t[a].x,
|
|
6255
|
-
|
|
6254
|
+
const c = t[a].x, l = t[a].y, d = t[i].x, u = t[i].y;
|
|
6255
|
+
l > r != u > r && n < (d - c) * (r - l) / (u - l) + c && (o = !o);
|
|
6256
6256
|
}
|
|
6257
6257
|
return o;
|
|
6258
6258
|
}
|
|
@@ -6316,13 +6316,13 @@ const va = s.forwardRef(
|
|
|
6316
6316
|
children: a,
|
|
6317
6317
|
...i
|
|
6318
6318
|
}, c) => {
|
|
6319
|
-
const
|
|
6319
|
+
const l = al(), [d, u] = s.useState(!1), [m, v] = s.useState(e), h = t ?? m, b = s.useCallback(
|
|
6320
6320
|
(y) => {
|
|
6321
6321
|
const x = typeof y == "function" ? y(h) : y;
|
|
6322
6322
|
n ? n(x) : v(x), document.cookie = `${Wd}=${x}; path=/; max-age=${Bd}`;
|
|
6323
6323
|
},
|
|
6324
6324
|
[n, h]
|
|
6325
|
-
), f = s.useCallback(() =>
|
|
6325
|
+
), f = s.useCallback(() => l ? u((y) => !y) : b((y) => !y), [l, b, u]);
|
|
6326
6326
|
s.useEffect(() => {
|
|
6327
6327
|
const y = (x) => {
|
|
6328
6328
|
x.key === Gd && (x.metaKey || x.ctrlKey) && (x.preventDefault(), f());
|
|
@@ -6334,12 +6334,12 @@ const va = s.forwardRef(
|
|
|
6334
6334
|
state: g,
|
|
6335
6335
|
open: h,
|
|
6336
6336
|
setOpen: b,
|
|
6337
|
-
isMobile:
|
|
6338
|
-
openMobile:
|
|
6337
|
+
isMobile: l,
|
|
6338
|
+
openMobile: d,
|
|
6339
6339
|
setOpenMobile: u,
|
|
6340
6340
|
toggleSidebar: f
|
|
6341
6341
|
}),
|
|
6342
|
-
[g, h, b,
|
|
6342
|
+
[g, h, b, l, d, u, f]
|
|
6343
6343
|
);
|
|
6344
6344
|
return /* @__PURE__ */ p(ga.Provider, { value: w, children: /* @__PURE__ */ p(Fd, { delayDuration: 0, children: /* @__PURE__ */ p(
|
|
6345
6345
|
"div",
|
|
@@ -6370,7 +6370,7 @@ const ba = s.forwardRef(
|
|
|
6370
6370
|
children: o,
|
|
6371
6371
|
...a
|
|
6372
6372
|
}, i) => {
|
|
6373
|
-
const { isMobile: c, state:
|
|
6373
|
+
const { isMobile: c, state: l, openMobile: d, setOpenMobile: u } = Gt();
|
|
6374
6374
|
return n === "none" ? /* @__PURE__ */ p(
|
|
6375
6375
|
"div",
|
|
6376
6376
|
{
|
|
@@ -6382,7 +6382,7 @@ const ba = s.forwardRef(
|
|
|
6382
6382
|
...a,
|
|
6383
6383
|
children: o
|
|
6384
6384
|
}
|
|
6385
|
-
) : c ? /* @__PURE__ */ p(Qc, { open:
|
|
6385
|
+
) : c ? /* @__PURE__ */ p(Qc, { open: d, onOpenChange: u, ...a, children: /* @__PURE__ */ p(
|
|
6386
6386
|
$o,
|
|
6387
6387
|
{
|
|
6388
6388
|
"data-sidebar": "sidebar",
|
|
@@ -6399,8 +6399,8 @@ const ba = s.forwardRef(
|
|
|
6399
6399
|
{
|
|
6400
6400
|
ref: i,
|
|
6401
6401
|
className: "group peer hidden md:block text-sidebar-foreground",
|
|
6402
|
-
"data-state":
|
|
6403
|
-
"data-collapsible":
|
|
6402
|
+
"data-state": l,
|
|
6403
|
+
"data-collapsible": l === "collapsed" ? n : "",
|
|
6404
6404
|
"data-variant": t,
|
|
6405
6405
|
"data-side": e,
|
|
6406
6406
|
children: [
|
|
@@ -6445,7 +6445,7 @@ ba.displayName = "Sidebar";
|
|
|
6445
6445
|
const wa = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
6446
6446
|
const { toggleSidebar: o } = Gt();
|
|
6447
6447
|
return /* @__PURE__ */ G(
|
|
6448
|
-
|
|
6448
|
+
Nn,
|
|
6449
6449
|
{
|
|
6450
6450
|
ref: r,
|
|
6451
6451
|
"data-sidebar": "trigger",
|
|
@@ -6503,7 +6503,7 @@ const Kd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
|
6503
6503
|
));
|
|
6504
6504
|
Kd.displayName = "SidebarInset";
|
|
6505
6505
|
const Yd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6506
|
-
|
|
6506
|
+
On,
|
|
6507
6507
|
{
|
|
6508
6508
|
ref: n,
|
|
6509
6509
|
"data-sidebar": "input",
|
|
@@ -6657,8 +6657,8 @@ const eu = It(
|
|
|
6657
6657
|
className: a,
|
|
6658
6658
|
...i
|
|
6659
6659
|
}, c) => {
|
|
6660
|
-
const
|
|
6661
|
-
|
|
6660
|
+
const l = e ? de : "button", { isMobile: d, state: u } = Gt(), m = /* @__PURE__ */ p(
|
|
6661
|
+
l,
|
|
6662
6662
|
{
|
|
6663
6663
|
ref: c,
|
|
6664
6664
|
"data-sidebar": "menu-button",
|
|
@@ -6677,7 +6677,7 @@ const eu = It(
|
|
|
6677
6677
|
{
|
|
6678
6678
|
side: "right",
|
|
6679
6679
|
align: "center",
|
|
6680
|
-
hidden: u !== "collapsed" ||
|
|
6680
|
+
hidden: u !== "collapsed" || d,
|
|
6681
6681
|
...o
|
|
6682
6682
|
}
|
|
6683
6683
|
)
|
|
@@ -6734,14 +6734,14 @@ const ru = s.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
6734
6734
|
...n,
|
|
6735
6735
|
children: [
|
|
6736
6736
|
t && /* @__PURE__ */ p(
|
|
6737
|
-
|
|
6737
|
+
br,
|
|
6738
6738
|
{
|
|
6739
6739
|
className: "size-4 rounded-md",
|
|
6740
6740
|
"data-sidebar": "menu-skeleton-icon"
|
|
6741
6741
|
}
|
|
6742
6742
|
),
|
|
6743
6743
|
/* @__PURE__ */ p(
|
|
6744
|
-
|
|
6744
|
+
br,
|
|
6745
6745
|
{
|
|
6746
6746
|
className: "h-4 flex-1 max-w-(--skeleton-width)",
|
|
6747
6747
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -6799,20 +6799,20 @@ function su(e) {
|
|
|
6799
6799
|
return /* @__PURE__ */ p(o, { scope: b, itemMap: w, collectionRef: g, children: f });
|
|
6800
6800
|
};
|
|
6801
6801
|
i.displayName = t;
|
|
6802
|
-
const c = e + "CollectionSlot",
|
|
6802
|
+
const c = e + "CollectionSlot", l = _e.forwardRef(
|
|
6803
6803
|
(h, b) => {
|
|
6804
6804
|
const { scope: f, children: g } = h, w = a(c, f), y = ee(b, w.collectionRef);
|
|
6805
6805
|
return /* @__PURE__ */ p(de, { ref: y, children: g });
|
|
6806
6806
|
}
|
|
6807
6807
|
);
|
|
6808
|
-
|
|
6809
|
-
const
|
|
6808
|
+
l.displayName = c;
|
|
6809
|
+
const d = e + "CollectionItemSlot", u = "data-radix-collection-item", m = _e.forwardRef(
|
|
6810
6810
|
(h, b) => {
|
|
6811
|
-
const { scope: f, children: g, ...w } = h, y = _e.useRef(null), x = ee(b, y), C = a(
|
|
6811
|
+
const { scope: f, children: g, ...w } = h, y = _e.useRef(null), x = ee(b, y), C = a(d, f);
|
|
6812
6812
|
return _e.useEffect(() => (C.itemMap.set(y, { ref: y, ...w }), () => void C.itemMap.delete(y))), /* @__PURE__ */ p(de, { [u]: "", ref: x, children: g });
|
|
6813
6813
|
}
|
|
6814
6814
|
);
|
|
6815
|
-
m.displayName =
|
|
6815
|
+
m.displayName = d;
|
|
6816
6816
|
function v(h) {
|
|
6817
6817
|
const b = a(e + "CollectionConsumer", h);
|
|
6818
6818
|
return _e.useCallback(() => {
|
|
@@ -6825,12 +6825,12 @@ function su(e) {
|
|
|
6825
6825
|
}, [b.collectionRef, b.itemMap]);
|
|
6826
6826
|
}
|
|
6827
6827
|
return [
|
|
6828
|
-
{ Provider: i, Slot:
|
|
6828
|
+
{ Provider: i, Slot: l, ItemSlot: m },
|
|
6829
6829
|
v,
|
|
6830
6830
|
r
|
|
6831
6831
|
];
|
|
6832
6832
|
}
|
|
6833
|
-
var
|
|
6833
|
+
var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu]), [du, Ut] = Ra(Kn), Pa = (e) => {
|
|
6834
6834
|
const {
|
|
6835
6835
|
__scopeToast: t,
|
|
6836
6836
|
label: n = "Notification",
|
|
@@ -6838,10 +6838,10 @@ var Yn = "ToastProvider", [Xn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu
|
|
|
6838
6838
|
swipeDirection: o = "right",
|
|
6839
6839
|
swipeThreshold: a = 50,
|
|
6840
6840
|
children: i
|
|
6841
|
-
} = e, [c,
|
|
6841
|
+
} = e, [c, l] = s.useState(null), [d, u] = s.useState(0), m = s.useRef(!1), v = s.useRef(!1);
|
|
6842
6842
|
return n.trim() || console.error(
|
|
6843
|
-
`Invalid prop \`label\` supplied to \`${
|
|
6844
|
-
), /* @__PURE__ */ p(
|
|
6843
|
+
`Invalid prop \`label\` supplied to \`${Kn}\`. Expected non-empty \`string\`.`
|
|
6844
|
+
), /* @__PURE__ */ p(Yn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
6845
6845
|
du,
|
|
6846
6846
|
{
|
|
6847
6847
|
scope: t,
|
|
@@ -6849,9 +6849,9 @@ var Yn = "ToastProvider", [Xn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu
|
|
|
6849
6849
|
duration: r,
|
|
6850
6850
|
swipeDirection: o,
|
|
6851
6851
|
swipeThreshold: a,
|
|
6852
|
-
toastCount:
|
|
6852
|
+
toastCount: d,
|
|
6853
6853
|
viewport: c,
|
|
6854
|
-
onViewportChange:
|
|
6854
|
+
onViewportChange: l,
|
|
6855
6855
|
onToastAdd: s.useCallback(() => u((h) => h + 1), []),
|
|
6856
6856
|
onToastRemove: s.useCallback(() => u((h) => h - 1), []),
|
|
6857
6857
|
isFocusedToastEscapeKeyDownRef: m,
|
|
@@ -6860,7 +6860,7 @@ var Yn = "ToastProvider", [Xn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu
|
|
|
6860
6860
|
}
|
|
6861
6861
|
) });
|
|
6862
6862
|
};
|
|
6863
|
-
Pa.displayName =
|
|
6863
|
+
Pa.displayName = Kn;
|
|
6864
6864
|
var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.viewportResume", Na = s.forwardRef(
|
|
6865
6865
|
(e, t) => {
|
|
6866
6866
|
const {
|
|
@@ -6868,7 +6868,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6868
6868
|
hotkey: r = uu,
|
|
6869
6869
|
label: o = "Notifications ({hotkey})",
|
|
6870
6870
|
...a
|
|
6871
|
-
} = e, i = Ut(Aa, n), c = cu(n),
|
|
6871
|
+
} = e, i = Ut(Aa, n), c = cu(n), l = s.useRef(null), d = s.useRef(null), u = s.useRef(null), m = s.useRef(null), v = ee(t, m, i.onViewportChange), h = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), b = i.toastCount > 0;
|
|
6872
6872
|
s.useEffect(() => {
|
|
6873
6873
|
const g = (w) => {
|
|
6874
6874
|
var x;
|
|
@@ -6876,7 +6876,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6876
6876
|
};
|
|
6877
6877
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
6878
6878
|
}, [r]), s.useEffect(() => {
|
|
6879
|
-
const g =
|
|
6879
|
+
const g = l.current, w = m.current;
|
|
6880
6880
|
if (b && g && w) {
|
|
6881
6881
|
const y = () => {
|
|
6882
6882
|
if (!i.isClosePausedRef.current) {
|
|
@@ -6917,11 +6917,11 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6917
6917
|
if (y.key === "Tab" && !x) {
|
|
6918
6918
|
const F = document.activeElement, k = y.shiftKey;
|
|
6919
6919
|
if (y.target === g && k) {
|
|
6920
|
-
(S =
|
|
6920
|
+
(S = d.current) == null || S.focus();
|
|
6921
6921
|
return;
|
|
6922
6922
|
}
|
|
6923
6923
|
const z = f({ tabbingDirection: k ? "backwards" : "forwards" }), M = z.findIndex((R) => R === F);
|
|
6924
|
-
sn(z.slice(M + 1)) ? y.preventDefault() : k ? (E =
|
|
6924
|
+
sn(z.slice(M + 1)) ? y.preventDefault() : k ? (E = d.current) == null || E.focus() : (T = u.current) == null || T.focus();
|
|
6925
6925
|
}
|
|
6926
6926
|
};
|
|
6927
6927
|
return g.addEventListener("keydown", w), () => g.removeEventListener("keydown", w);
|
|
@@ -6929,7 +6929,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6929
6929
|
}, [c, f]), /* @__PURE__ */ G(
|
|
6930
6930
|
Vs,
|
|
6931
6931
|
{
|
|
6932
|
-
ref:
|
|
6932
|
+
ref: l,
|
|
6933
6933
|
role: "region",
|
|
6934
6934
|
"aria-label": o.replace("{hotkey}", h),
|
|
6935
6935
|
tabIndex: -1,
|
|
@@ -6938,7 +6938,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6938
6938
|
b && /* @__PURE__ */ p(
|
|
6939
6939
|
Sn,
|
|
6940
6940
|
{
|
|
6941
|
-
ref:
|
|
6941
|
+
ref: d,
|
|
6942
6942
|
onFocusFromOutsideViewport: () => {
|
|
6943
6943
|
const g = f({
|
|
6944
6944
|
tabbingDirection: "forwards"
|
|
@@ -6947,7 +6947,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6947
6947
|
}
|
|
6948
6948
|
}
|
|
6949
6949
|
),
|
|
6950
|
-
/* @__PURE__ */ p(
|
|
6950
|
+
/* @__PURE__ */ p(Yn.Slot, { scope: n, children: /* @__PURE__ */ p(Y.ol, { tabIndex: -1, ...a, ref: v }) }),
|
|
6951
6951
|
b && /* @__PURE__ */ p(
|
|
6952
6952
|
Sn,
|
|
6953
6953
|
{
|
|
@@ -6978,9 +6978,9 @@ var Oa = "ToastFocusProxy", Sn = s.forwardRef(
|
|
|
6978
6978
|
ref: t,
|
|
6979
6979
|
style: { position: "fixed" },
|
|
6980
6980
|
onFocus: (i) => {
|
|
6981
|
-
var
|
|
6981
|
+
var d;
|
|
6982
6982
|
const c = i.relatedTarget;
|
|
6983
|
-
!((
|
|
6983
|
+
!((d = a.viewport) != null && d.contains(c)) && r();
|
|
6984
6984
|
}
|
|
6985
6985
|
}
|
|
6986
6986
|
);
|
|
@@ -6989,7 +6989,7 @@ var Oa = "ToastFocusProxy", Sn = s.forwardRef(
|
|
|
6989
6989
|
Sn.displayName = Oa;
|
|
6990
6990
|
var Kt = "Toast", fu = "toast.swipeStart", pu = "toast.swipeMove", mu = "toast.swipeCancel", hu = "toast.swipeEnd", Ma = s.forwardRef(
|
|
6991
6991
|
(e, t) => {
|
|
6992
|
-
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [c = !0,
|
|
6992
|
+
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [c = !0, l] = Mn({
|
|
6993
6993
|
prop: r,
|
|
6994
6994
|
defaultProp: o,
|
|
6995
6995
|
onChange: a
|
|
@@ -7000,22 +7000,22 @@ var Kt = "Toast", fu = "toast.swipeStart", pu = "toast.swipeMove", mu = "toast.s
|
|
|
7000
7000
|
open: c,
|
|
7001
7001
|
...i,
|
|
7002
7002
|
ref: t,
|
|
7003
|
-
onClose: () =>
|
|
7003
|
+
onClose: () => l(!1),
|
|
7004
7004
|
onPause: ce(e.onPause),
|
|
7005
7005
|
onResume: ce(e.onResume),
|
|
7006
|
-
onSwipeStart: U(e.onSwipeStart, (
|
|
7007
|
-
|
|
7006
|
+
onSwipeStart: U(e.onSwipeStart, (d) => {
|
|
7007
|
+
d.currentTarget.setAttribute("data-swipe", "start");
|
|
7008
7008
|
}),
|
|
7009
|
-
onSwipeMove: U(e.onSwipeMove, (
|
|
7010
|
-
const { x: u, y: m } =
|
|
7011
|
-
|
|
7009
|
+
onSwipeMove: U(e.onSwipeMove, (d) => {
|
|
7010
|
+
const { x: u, y: m } = d.detail.delta;
|
|
7011
|
+
d.currentTarget.setAttribute("data-swipe", "move"), d.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), d.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${m}px`);
|
|
7012
7012
|
}),
|
|
7013
|
-
onSwipeCancel: U(e.onSwipeCancel, (
|
|
7014
|
-
|
|
7013
|
+
onSwipeCancel: U(e.onSwipeCancel, (d) => {
|
|
7014
|
+
d.currentTarget.setAttribute("data-swipe", "cancel"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
7015
7015
|
}),
|
|
7016
|
-
onSwipeEnd: U(e.onSwipeEnd, (
|
|
7017
|
-
const { x: u, y: m } =
|
|
7018
|
-
|
|
7016
|
+
onSwipeEnd: U(e.onSwipeEnd, (d) => {
|
|
7017
|
+
const { x: u, y: m } = d.detail.delta;
|
|
7018
|
+
d.currentTarget.setAttribute("data-swipe", "end"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), d.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), d.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${m}px`), l(!1);
|
|
7019
7019
|
})
|
|
7020
7020
|
}
|
|
7021
7021
|
) });
|
|
@@ -7034,8 +7034,8 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7034
7034
|
open: a,
|
|
7035
7035
|
onClose: i,
|
|
7036
7036
|
onEscapeKeyDown: c,
|
|
7037
|
-
onPause:
|
|
7038
|
-
onResume:
|
|
7037
|
+
onPause: l,
|
|
7038
|
+
onResume: d,
|
|
7039
7039
|
onSwipeStart: u,
|
|
7040
7040
|
onSwipeMove: m,
|
|
7041
7041
|
onSwipeCancel: v,
|
|
@@ -7054,16 +7054,16 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7054
7054
|
const R = f.viewport;
|
|
7055
7055
|
if (R) {
|
|
7056
7056
|
const W = () => {
|
|
7057
|
-
z(T.current),
|
|
7057
|
+
z(T.current), d == null || d();
|
|
7058
7058
|
}, N = () => {
|
|
7059
7059
|
const H = (/* @__PURE__ */ new Date()).getTime() - E.current;
|
|
7060
|
-
T.current = T.current - H, window.clearTimeout(F.current),
|
|
7060
|
+
T.current = T.current - H, window.clearTimeout(F.current), l == null || l();
|
|
7061
7061
|
};
|
|
7062
7062
|
return R.addEventListener(En, N), R.addEventListener(Cn, W), () => {
|
|
7063
7063
|
R.removeEventListener(En, N), R.removeEventListener(Cn, W);
|
|
7064
7064
|
};
|
|
7065
7065
|
}
|
|
7066
|
-
}, [f.viewport, S,
|
|
7066
|
+
}, [f.viewport, S, l, d, z]), s.useEffect(() => {
|
|
7067
7067
|
a && !f.isClosePausedRef.current && z(S);
|
|
7068
7068
|
}, [a, S, f.isClosePausedRef, z]), s.useEffect(() => (k(), () => $()), [k, $]);
|
|
7069
7069
|
const M = s.useMemo(() => g ? $a(g) : null, [g]);
|
|
@@ -7079,7 +7079,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7079
7079
|
}
|
|
7080
7080
|
),
|
|
7081
7081
|
/* @__PURE__ */ p(gu, { scope: n, onClose: V, children: Rn.createPortal(
|
|
7082
|
-
/* @__PURE__ */ p(
|
|
7082
|
+
/* @__PURE__ */ p(Yn.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
7083
7083
|
Bs,
|
|
7084
7084
|
{
|
|
7085
7085
|
asChild: !0,
|
|
@@ -7109,7 +7109,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7109
7109
|
const W = R.clientX - x.current.x, N = R.clientY - x.current.y, H = !!C.current, O = ["left", "right"].includes(f.swipeDirection), _ = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, K = O ? _(0, W) : 0, q = O ? 0 : _(0, N), te = R.pointerType === "touch" ? 10 : 2, Q = { x: K, y: q }, J = { originalEvent: R, delta: Q };
|
|
7110
7110
|
H ? (C.current = Q, xt(pu, m, J, {
|
|
7111
7111
|
discrete: !1
|
|
7112
|
-
})) :
|
|
7112
|
+
})) : Pr(Q, f.swipeDirection, te) ? (C.current = Q, xt(fu, u, J, {
|
|
7113
7113
|
discrete: !1
|
|
7114
7114
|
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(W) > te || Math.abs(N) > te) && (x.current = null);
|
|
7115
7115
|
}),
|
|
@@ -7117,7 +7117,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7117
7117
|
const W = C.current, N = R.target;
|
|
7118
7118
|
if (N.hasPointerCapture(R.pointerId) && N.releasePointerCapture(R.pointerId), C.current = null, x.current = null, W) {
|
|
7119
7119
|
const H = R.currentTarget, O = { originalEvent: R, delta: W };
|
|
7120
|
-
|
|
7120
|
+
Pr(W, f.swipeDirection, f.swipeThreshold) ? xt(hu, h, O, {
|
|
7121
7121
|
discrete: !0
|
|
7122
7122
|
}) : xt(
|
|
7123
7123
|
mu,
|
|
@@ -7140,10 +7140,10 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7140
7140
|
] }) : null;
|
|
7141
7141
|
}
|
|
7142
7142
|
), wu = (e) => {
|
|
7143
|
-
const { __scopeToast: t, children: n, ...r } = e, o = Ut(Kt, t), [a, i] = s.useState(!1), [c,
|
|
7143
|
+
const { __scopeToast: t, children: n, ...r } = e, o = Ut(Kt, t), [a, i] = s.useState(!1), [c, l] = s.useState(!1);
|
|
7144
7144
|
return Eu(() => i(!0)), s.useEffect(() => {
|
|
7145
|
-
const
|
|
7146
|
-
return () => window.clearTimeout(
|
|
7145
|
+
const d = window.setTimeout(() => l(!0), 1e3);
|
|
7146
|
+
return () => window.clearTimeout(d);
|
|
7147
7147
|
}, []), c ? null : /* @__PURE__ */ p(Lt, { asChild: !0, children: /* @__PURE__ */ p(Bt, { ...r, children: a && /* @__PURE__ */ G(Xe, { children: [
|
|
7148
7148
|
o.label,
|
|
7149
7149
|
" ",
|
|
@@ -7166,13 +7166,13 @@ Da.displayName = xu;
|
|
|
7166
7166
|
var Ia = "ToastAction", _a = s.forwardRef(
|
|
7167
7167
|
(e, t) => {
|
|
7168
7168
|
const { altText: n, ...r } = e;
|
|
7169
|
-
return n.trim() ? /* @__PURE__ */ p(Fa, { altText: n, asChild: !0, children: /* @__PURE__ */ p(
|
|
7169
|
+
return n.trim() ? /* @__PURE__ */ p(Fa, { altText: n, asChild: !0, children: /* @__PURE__ */ p(Xn, { ...r, ref: t }) }) : (console.error(
|
|
7170
7170
|
`Invalid prop \`altText\` supplied to \`${Ia}\`. Expected non-empty \`string\`.`
|
|
7171
7171
|
), null);
|
|
7172
7172
|
}
|
|
7173
7173
|
);
|
|
7174
7174
|
_a.displayName = Ia;
|
|
7175
|
-
var La = "ToastClose",
|
|
7175
|
+
var La = "ToastClose", Xn = s.forwardRef(
|
|
7176
7176
|
(e, t) => {
|
|
7177
7177
|
const { __scopeToast: n, ...r } = e, o = vu(La, n);
|
|
7178
7178
|
return /* @__PURE__ */ p(Fa, { asChild: !0, children: /* @__PURE__ */ p(
|
|
@@ -7186,7 +7186,7 @@ var La = "ToastClose", qn = s.forwardRef(
|
|
|
7186
7186
|
) });
|
|
7187
7187
|
}
|
|
7188
7188
|
);
|
|
7189
|
-
|
|
7189
|
+
Xn.displayName = La;
|
|
7190
7190
|
var Fa = s.forwardRef((e, t) => {
|
|
7191
7191
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
7192
7192
|
return /* @__PURE__ */ p(
|
|
@@ -7217,7 +7217,7 @@ function xt(e, t, n, { discrete: r }) {
|
|
|
7217
7217
|
const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
7218
7218
|
t && o.addEventListener(e, t, { once: !0 }), r ? Zr(o, a) : o.dispatchEvent(a);
|
|
7219
7219
|
}
|
|
7220
|
-
var
|
|
7220
|
+
var Pr = (e, t, n = 0) => {
|
|
7221
7221
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
7222
7222
|
return t === "left" || t === "right" ? a && r > n : !a && o > n;
|
|
7223
7223
|
};
|
|
@@ -7248,7 +7248,7 @@ function sn(e) {
|
|
|
7248
7248
|
const t = document.activeElement;
|
|
7249
7249
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7250
7250
|
}
|
|
7251
|
-
var Tu = Pa, za = Na, Wa = Ma, Ba = ka, Va = Da, Ha = _a, ja =
|
|
7251
|
+
var Tu = Pa, za = Na, Wa = Ma, Ba = ka, Va = Da, Ha = _a, ja = Xn;
|
|
7252
7252
|
const Ru = Tu, Ga = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7253
7253
|
za,
|
|
7254
7254
|
{
|
|
@@ -7316,7 +7316,7 @@ let cn = 0;
|
|
|
7316
7316
|
function Mu() {
|
|
7317
7317
|
return cn = (cn + 1) % Number.MAX_SAFE_INTEGER, cn.toString();
|
|
7318
7318
|
}
|
|
7319
|
-
const ln = /* @__PURE__ */ new Map(),
|
|
7319
|
+
const ln = /* @__PURE__ */ new Map(), Ar = (e) => {
|
|
7320
7320
|
if (ln.has(e)) return;
|
|
7321
7321
|
const t = setTimeout(() => {
|
|
7322
7322
|
ln.delete(e), at({ type: "REMOVE_TOAST", toastId: e });
|
|
@@ -7338,7 +7338,7 @@ const ln = /* @__PURE__ */ new Map(), Nr = (e) => {
|
|
|
7338
7338
|
};
|
|
7339
7339
|
case "DISMISS_TOAST": {
|
|
7340
7340
|
const { toastId: n } = t;
|
|
7341
|
-
return n ?
|
|
7341
|
+
return n ? Ar(n) : e.toasts.forEach((r) => Ar(r.id)), {
|
|
7342
7342
|
...e,
|
|
7343
7343
|
toasts: e.toasts.map(
|
|
7344
7344
|
(r) => r.id === n || n === void 0 ? { ...r, open: !1 } : r
|
|
@@ -7401,7 +7401,7 @@ function Iu() {
|
|
|
7401
7401
|
] });
|
|
7402
7402
|
}
|
|
7403
7403
|
function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
7404
|
-
const [n, r] = Tn(""), o = oi(), { toast: a } = qa(),
|
|
7404
|
+
const [n, r] = Tn(""), o = oi(), { toast: a } = qa(), i = () => {
|
|
7405
7405
|
const l = n.trim();
|
|
7406
7406
|
if (!l || l.length < 2) {
|
|
7407
7407
|
a({
|
|
@@ -7412,10 +7412,10 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7412
7412
|
});
|
|
7413
7413
|
return;
|
|
7414
7414
|
}
|
|
7415
|
-
const
|
|
7415
|
+
const d = new URLSearchParams({ q: l });
|
|
7416
7416
|
o({
|
|
7417
|
-
pathname:
|
|
7418
|
-
search:
|
|
7417
|
+
pathname: t,
|
|
7418
|
+
search: d.toString()
|
|
7419
7419
|
}), r("");
|
|
7420
7420
|
};
|
|
7421
7421
|
return /* @__PURE__ */ G("header", { className: "flex h-16 items-center gap-4 border-b dark text-foreground bg-background px-6 fixed top-0 right-0 z-50 lg:left-64 left-0", children: [
|
|
@@ -7426,32 +7426,32 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7426
7426
|
{
|
|
7427
7427
|
type: "button",
|
|
7428
7428
|
className: "absolute left-2 top-1/2 -translate-y-1/2",
|
|
7429
|
-
onClick:
|
|
7429
|
+
onClick: i,
|
|
7430
7430
|
"aria-label": "Search",
|
|
7431
7431
|
children: /* @__PURE__ */ p(Oi, { className: "h-4 w-4 text-muted-foreground" })
|
|
7432
7432
|
}
|
|
7433
7433
|
),
|
|
7434
7434
|
/* @__PURE__ */ p(
|
|
7435
|
-
|
|
7435
|
+
On,
|
|
7436
7436
|
{
|
|
7437
7437
|
placeholder: "Search...",
|
|
7438
7438
|
className: "w-full pl-8 bg-white text-black",
|
|
7439
7439
|
value: n,
|
|
7440
7440
|
onChange: (l) => r(l.target.value),
|
|
7441
7441
|
onKeyDown: (l) => {
|
|
7442
|
-
l.key === "Enter" &&
|
|
7442
|
+
l.key === "Enter" && i();
|
|
7443
7443
|
}
|
|
7444
7444
|
}
|
|
7445
7445
|
)
|
|
7446
7446
|
] }) }) }),
|
|
7447
|
-
/* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ G(
|
|
7447
|
+
/* @__PURE__ */ p("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ G(Nn, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
|
|
7448
7448
|
/* @__PURE__ */ p(Ei, { className: "h-4 w-4" }),
|
|
7449
7449
|
/* @__PURE__ */ p("span", { className: "sr-only", children: "Sign out" })
|
|
7450
7450
|
] }) })
|
|
7451
7451
|
] });
|
|
7452
7452
|
}
|
|
7453
7453
|
function Lu({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7454
|
-
const { appID: r } =
|
|
7454
|
+
const { appID: r } = Or(), o = e.filter((a) => a.showInNav);
|
|
7455
7455
|
return /* @__PURE__ */ G(ba, { className: "border-r dark", children: [
|
|
7456
7456
|
/* @__PURE__ */ p(ya, { className: "border-b px-6 h-16 justify-center bg-background text-foreground", children: /* @__PURE__ */ G("div", { className: "flex items-center gap-2", children: [
|
|
7457
7457
|
/* @__PURE__ */ p("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ p(
|
|
@@ -7478,7 +7478,7 @@ function Qu({
|
|
|
7478
7478
|
children: e,
|
|
7479
7479
|
routes: t,
|
|
7480
7480
|
footer: n,
|
|
7481
|
-
searchResultsRouteName: r
|
|
7481
|
+
searchResultsRouteName: r,
|
|
7482
7482
|
dashboardTitle: o,
|
|
7483
7483
|
onSignOut: a
|
|
7484
7484
|
}) {
|
|
@@ -7506,8 +7506,8 @@ function Qu({
|
|
|
7506
7506
|
}
|
|
7507
7507
|
export {
|
|
7508
7508
|
Xu as AvatarFooter,
|
|
7509
|
-
|
|
7510
|
-
|
|
7509
|
+
Nn as Button,
|
|
7510
|
+
On as Input,
|
|
7511
7511
|
Bu as InputOTP,
|
|
7512
7512
|
Vu as InputOTPGroup,
|
|
7513
7513
|
ju as InputOTPSeparator,
|
|
@@ -7548,7 +7548,7 @@ export {
|
|
|
7548
7548
|
Ud as SidebarRail,
|
|
7549
7549
|
Xd as SidebarSeparator,
|
|
7550
7550
|
wa as SidebarTrigger,
|
|
7551
|
-
|
|
7551
|
+
br as Skeleton,
|
|
7552
7552
|
Ua as Toast,
|
|
7553
7553
|
Au as ToastAction,
|
|
7554
7554
|
Ka as ToastClose,
|