randmarcomps 1.31.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 +13 -59
- package/dist/randmarcomps.js +657 -656
- package/dist/randmarcomps.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { jsx as
|
|
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 {
|
|
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;
|
|
@@ -47,16 +47,16 @@ function gi({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
47
47
|
}, [e, n]), s.useEffect(() => {
|
|
48
48
|
let v = r || document.activeElement === t.current;
|
|
49
49
|
if (n === "none" || !v) return;
|
|
50
|
-
let h = setTimeout(
|
|
51
|
-
|
|
50
|
+
let h = setTimeout(m, 0), b = setTimeout(m, 2e3), f = setTimeout(m, 5e3), g = setTimeout(() => {
|
|
51
|
+
d(!0);
|
|
52
52
|
}, 6e3);
|
|
53
53
|
return () => {
|
|
54
54
|
clearTimeout(h), clearTimeout(b), clearTimeout(f), clearTimeout(g);
|
|
55
55
|
};
|
|
56
|
-
}, [t, r, n,
|
|
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] });
|
|
@@ -118,7 +118,7 @@ var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
|
118
118
|
}, [k, _]), s.useEffect(() => {
|
|
119
119
|
$ !== void 0 && k !== $ && $.length < a && k.length === a && (u == null || u(k));
|
|
120
120
|
}, [a, u, $, k]);
|
|
121
|
-
let oe = gi({ containerRef: R, inputRef: M, pushPasswordManagerStrategy:
|
|
121
|
+
let oe = gi({ containerRef: R, inputRef: M, pushPasswordManagerStrategy: m, isFocused: _ }), Ee = s.useCallback((D) => {
|
|
122
122
|
let L = D.currentTarget.value.slice(0, a);
|
|
123
123
|
if (L.length > 0 && z && !z.test(L)) {
|
|
124
124
|
D.preventDefault();
|
|
@@ -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,
|
|
@@ -368,8 +368,8 @@ const Pn = "-", Ii = (e) => {
|
|
|
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) => {
|
|
@@ -385,9 +385,9 @@ const Pn = "-", Ii = (e) => {
|
|
|
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 Pn = "-", 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,10 +421,10 @@ const Pn = "-", 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
429
|
return t.split(Pn).forEach((r) => {
|
|
430
430
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
@@ -463,26 +463,26 @@ const Pn = "-", 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,
|
|
485
|
-
baseClassName:
|
|
485
|
+
baseClassName: m,
|
|
486
486
|
maybePostfixModifierPosition: h
|
|
487
487
|
};
|
|
488
488
|
};
|
|
@@ -527,27 +527,27 @@ const Pn = "-", 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[
|
|
533
|
-
isExternal:
|
|
530
|
+
let l = "";
|
|
531
|
+
for (let d = c.length - 1; d >= 0; d -= 1) {
|
|
532
|
+
const u = c[d], {
|
|
533
|
+
isExternal: m,
|
|
534
534
|
modifiers: v,
|
|
535
535
|
hasImportantModifier: h,
|
|
536
536
|
baseClassName: b,
|
|
537
537
|
maybePostfixModifierPosition: f
|
|
538
538
|
} = n(u);
|
|
539
|
-
if (
|
|
540
|
-
|
|
539
|
+
if (m) {
|
|
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 Pn = "-", 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,7 +599,7 @@ 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.
|
|
@@ -611,14 +611,14 @@ const X = (e) => {
|
|
|
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
|
|
@@ -1984,7 +1984,7 @@ const X = (e) => {
|
|
|
1984
1984
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
1985
1985
|
*/
|
|
1986
1986
|
"inset-shadow": [{
|
|
1987
|
-
"inset-shadow": ["none", A, P,
|
|
1987
|
+
"inset-shadow": ["none", A, P, m]
|
|
1988
1988
|
}],
|
|
1989
1989
|
/**
|
|
1990
1990
|
* Inset Box Shadow Color
|
|
@@ -2838,7 +2838,7 @@ function Bu({
|
|
|
2838
2838
|
containerClassName: t,
|
|
2839
2839
|
...n
|
|
2840
2840
|
}) {
|
|
2841
|
-
return /* @__PURE__ */
|
|
2841
|
+
return /* @__PURE__ */ p(
|
|
2842
2842
|
Lr,
|
|
2843
2843
|
{
|
|
2844
2844
|
"data-slot": "input-otp",
|
|
@@ -2852,7 +2852,7 @@ function Bu({
|
|
|
2852
2852
|
);
|
|
2853
2853
|
}
|
|
2854
2854
|
function Vu({ className: e, ...t }) {
|
|
2855
|
-
return /* @__PURE__ */
|
|
2855
|
+
return /* @__PURE__ */ p(
|
|
2856
2856
|
"div",
|
|
2857
2857
|
{
|
|
2858
2858
|
"data-slot": "input-otp-group",
|
|
@@ -2879,15 +2879,15 @@ function Hu({
|
|
|
2879
2879
|
...n,
|
|
2880
2880
|
children: [
|
|
2881
2881
|
o,
|
|
2882
|
-
a && /* @__PURE__ */
|
|
2882
|
+
a && /* @__PURE__ */ p("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ p("div", { className: "animate-caret-blink bg-foreground h-4 w-px duration-1000" }) })
|
|
2883
2883
|
]
|
|
2884
2884
|
}
|
|
2885
2885
|
);
|
|
2886
2886
|
}
|
|
2887
2887
|
function ju({ ...e }) {
|
|
2888
|
-
return /* @__PURE__ */
|
|
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,10 +2914,10 @@ 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((
|
|
2918
|
-
return /* @__PURE__ */
|
|
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
|
+
return /* @__PURE__ */ p(mn, { ...r, ref: t, children: s.isValidElement(i) ? s.cloneElement(i, void 0, c) : null });
|
|
2919
2919
|
}
|
|
2920
|
-
return /* @__PURE__ */
|
|
2920
|
+
return /* @__PURE__ */ p(mn, { ...r, ref: t, children: n });
|
|
2921
2921
|
});
|
|
2922
2922
|
de.displayName = "Slot";
|
|
2923
2923
|
var mn = s.forwardRef((e, t) => {
|
|
@@ -2929,7 +2929,7 @@ var mn = s.forwardRef((e, t) => {
|
|
|
2929
2929
|
return s.Children.count(n) > 1 ? s.Children.only(null) : null;
|
|
2930
2930
|
});
|
|
2931
2931
|
mn.displayName = "SlotClone";
|
|
2932
|
-
var qr = ({ children: e }) => /* @__PURE__ */
|
|
2932
|
+
var qr = ({ children: e }) => /* @__PURE__ */ p(Xe, { children: e });
|
|
2933
2933
|
function xs(e) {
|
|
2934
2934
|
return s.isValidElement(e) && e.type === qr;
|
|
2935
2935
|
}
|
|
@@ -2948,19 +2948,19 @@ 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((
|
|
2960
|
-
let [
|
|
2961
|
-
return v === void 0 || (
|
|
2962
|
-
}, {}),
|
|
2963
|
-
let { class:
|
|
2957
|
+
const v = rr(u) || rr(m);
|
|
2958
|
+
return o[d][v];
|
|
2959
|
+
}), c = n && Object.entries(n).reduce((d, u) => {
|
|
2960
|
+
let [m, v] = u;
|
|
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
|
+
let { class: m, className: v, ...h } = u;
|
|
2964
2964
|
return Object.entries(h).every((b) => {
|
|
2965
2965
|
let [f, g] = b;
|
|
2966
2966
|
return Array.isArray(g) ? g.includes({
|
|
@@ -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
|
-
...
|
|
2975
|
-
|
|
2974
|
+
...d,
|
|
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
|
{
|
|
@@ -3006,7 +3006,7 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
3008
|
), Nn = s.forwardRef(
|
|
3009
|
-
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */
|
|
3009
|
+
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */ p(
|
|
3010
3010
|
r ? de : "button",
|
|
3011
3011
|
{
|
|
3012
3012
|
className: I(Ss({ variant: t, size: n, className: e })),
|
|
@@ -3017,7 +3017,7 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3017
3017
|
);
|
|
3018
3018
|
Nn.displayName = "Button";
|
|
3019
3019
|
const On = s.forwardRef(
|
|
3020
|
-
({ className: e, type: t, ...n }, r) => /* @__PURE__ */
|
|
3020
|
+
({ className: e, type: t, ...n }, r) => /* @__PURE__ */ p(
|
|
3021
3021
|
"input",
|
|
3022
3022
|
{
|
|
3023
3023
|
type: t,
|
|
@@ -3051,16 +3051,16 @@ var Ts = [
|
|
|
3051
3051
|
], Y = Ts.reduce((e, t) => {
|
|
3052
3052
|
const n = s.forwardRef((r, o) => {
|
|
3053
3053
|
const { asChild: a, ...i } = r, c = a ? de : t;
|
|
3054
|
-
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */
|
|
3054
|
+
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ p(c, { ...i, ref: o });
|
|
3055
3055
|
});
|
|
3056
3056
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3057
3057
|
}, {});
|
|
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 =
|
|
3063
|
-
return /* @__PURE__ */
|
|
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
|
+
return /* @__PURE__ */ p(
|
|
3064
3064
|
Y.div,
|
|
3065
3065
|
{
|
|
3066
3066
|
"data-orientation": a,
|
|
@@ -3076,7 +3076,7 @@ function As(e) {
|
|
|
3076
3076
|
}
|
|
3077
3077
|
var Jr = Qr;
|
|
3078
3078
|
const eo = s.forwardRef(
|
|
3079
|
-
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */
|
|
3079
|
+
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ p(
|
|
3080
3080
|
Jr,
|
|
3081
3081
|
{
|
|
3082
3082
|
ref: o,
|
|
@@ -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__ */
|
|
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 } =
|
|
3123
|
-
return /* @__PURE__ */
|
|
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
|
+
return /* @__PURE__ */ p(f.Provider, { value: g, children: h });
|
|
3124
3124
|
};
|
|
3125
|
-
|
|
3126
|
-
function u(
|
|
3125
|
+
d.displayName = a + "Provider";
|
|
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
|
-
throw new Error(`\`${
|
|
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,9 +3153,9 @@ function Os(...e) {
|
|
|
3153
3153
|
scopeName: o.scopeName
|
|
3154
3154
|
}));
|
|
3155
3155
|
return function(a) {
|
|
3156
|
-
const i = r.reduce((c, { useScope:
|
|
3157
|
-
const
|
|
3158
|
-
return { ...c, ...
|
|
3156
|
+
const i = r.reduce((c, { useScope: l, scopeName: d }) => {
|
|
3157
|
+
const m = l(a)[`__scope${d}`];
|
|
3158
|
+
return { ...c, ...m };
|
|
3159
3159
|
}, {});
|
|
3160
3160
|
return s.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
3161
3161
|
};
|
|
@@ -3186,17 +3186,17 @@ function Mn({
|
|
|
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
|
|
3193
|
-
|
|
3192
|
+
const m = typeof d == "function" ? d(e) : d;
|
|
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
|
-
}, []), /* @__PURE__ */
|
|
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,
|
|
@@ -3277,7 +3277,7 @@ var $s = "DismissableLayerBranch", no = s.forwardRef((e, t) => {
|
|
|
3277
3277
|
return n.branches.add(a), () => {
|
|
3278
3278
|
n.branches.delete(a);
|
|
3279
3279
|
};
|
|
3280
|
-
}, [n.branches]), /* @__PURE__ */
|
|
3280
|
+
}, [n.branches]), /* @__PURE__ */ p(Y.div, { ...e, ref: o });
|
|
3281
3281
|
});
|
|
3282
3282
|
no.displayName = $s;
|
|
3283
3283
|
function zs(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -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;
|
|
@@ -3353,11 +3353,11 @@ var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoF
|
|
|
3353
3353
|
let f = function(x) {
|
|
3354
3354
|
if (h.paused || !c) return;
|
|
3355
3355
|
const C = x.target;
|
|
3356
|
-
c.contains(C) ?
|
|
3356
|
+
c.contains(C) ? m.current = C : Re(m.current, { select: !0 });
|
|
3357
3357
|
}, g = function(x) {
|
|
3358
3358
|
if (h.paused || !c) return;
|
|
3359
3359
|
const C = x.relatedTarget;
|
|
3360
|
-
C !== null && (c.contains(C) || Re(
|
|
3360
|
+
C !== null && (c.contains(C) || Re(m.current, { select: !0 }));
|
|
3361
3361
|
}, w = function(x) {
|
|
3362
3362
|
if (document.activeElement === document.body)
|
|
3363
3363
|
for (const S of x)
|
|
@@ -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;
|
|
@@ -3396,7 +3396,7 @@ var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoF
|
|
|
3396
3396
|
},
|
|
3397
3397
|
[n, r, h.paused]
|
|
3398
3398
|
);
|
|
3399
|
-
return /* @__PURE__ */
|
|
3399
|
+
return /* @__PURE__ */ p(Y.div, { tabIndex: -1, ...i, ref: v, onKeyDown: b });
|
|
3400
3400
|
});
|
|
3401
3401
|
oo.displayName = Hs;
|
|
3402
3402
|
function js(e, { select: t = !1 } = {}) {
|
|
@@ -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
|
}
|
|
@@ -3466,7 +3466,7 @@ var qs = "Portal", Lt = s.forwardRef((e, t) => {
|
|
|
3466
3466
|
const { container: n, ...r } = e, [o, a] = s.useState(!1);
|
|
3467
3467
|
Pe(() => a(!0), []);
|
|
3468
3468
|
const i = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
3469
|
-
return i ? ri.createPortal(/* @__PURE__ */
|
|
3469
|
+
return i ? ri.createPortal(/* @__PURE__ */ p(Y.div, { ...r, ref: t }), i) : null;
|
|
3470
3470
|
});
|
|
3471
3471
|
Lt.displayName = qs;
|
|
3472
3472
|
function Zs(e, t) {
|
|
@@ -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,37 +3492,37 @@ 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
|
|
3506
|
-
const u = t.ownerDocument.defaultView ?? window,
|
|
3505
|
+
let d;
|
|
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
|
}
|
|
3514
3514
|
}, v = (h) => {
|
|
3515
3515
|
h.target === t && (a.current = ht(r.current));
|
|
3516
3516
|
};
|
|
3517
|
-
return t.addEventListener("animationstart", v), t.addEventListener("animationcancel",
|
|
3518
|
-
u.clearTimeout(
|
|
3517
|
+
return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
|
|
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
|
-
(b || w) && fo(e, c) && (
|
|
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(
|
|
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) {
|
|
@@ -3981,20 +3981,20 @@ function Ic(e) {
|
|
|
3981
3981
|
}, 1);
|
|
3982
3982
|
}, []), u = s.useCallback(function(f) {
|
|
3983
3983
|
n.current = vt(f), r.current = void 0;
|
|
3984
|
-
}, []),
|
|
3985
|
-
|
|
3984
|
+
}, []), m = s.useCallback(function(f) {
|
|
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
|
-
onScrollCapture:
|
|
3992
|
-
onWheelCapture:
|
|
3991
|
+
onScrollCapture: m,
|
|
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
|
-
!
|
|
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(
|
|
4041
|
-
var u = function(
|
|
4042
|
-
!
|
|
4040
|
+
o.forEach(d);
|
|
4041
|
+
var u = function(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
|
|
@@ -4052,9 +4052,9 @@ var Fc = function(e) {
|
|
|
4052
4052
|
});
|
|
4053
4053
|
};
|
|
4054
4054
|
return u(t), c.clear(), nn++, function() {
|
|
4055
|
-
i.forEach(function(
|
|
4056
|
-
var v = Ue.get(
|
|
4057
|
-
Ue.set(
|
|
4055
|
+
i.forEach(function(m) {
|
|
4056
|
+
var v = Ue.get(m) - 1, h = a.get(m) - 1;
|
|
4057
|
+
Ue.set(m, v), a.set(m, h), v || (bt.has(m) || m.removeAttribute(r), bt.delete(m)), h || m.removeAttribute(n);
|
|
4058
4058
|
}), nn--, nn || (Ue = /* @__PURE__ */ new WeakMap(), Ue = /* @__PURE__ */ new WeakMap(), bt = /* @__PURE__ */ new WeakMap(), wt = {});
|
|
4059
4059
|
};
|
|
4060
4060
|
}, Wc = function(e, t, n) {
|
|
@@ -4071,23 +4071,23 @@ 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
|
|
4078
4078
|
});
|
|
4079
|
-
return /* @__PURE__ */
|
|
4079
|
+
return /* @__PURE__ */ p(
|
|
4080
4080
|
Bc,
|
|
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
|
-
onOpenToggle: s.useCallback(() => u((
|
|
4090
|
+
onOpenToggle: s.useCallback(() => u((m) => !m), [u]),
|
|
4091
4091
|
modal: i,
|
|
4092
4092
|
children: n
|
|
4093
4093
|
}
|
|
@@ -4097,7 +4097,7 @@ 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);
|
|
4100
|
-
return /* @__PURE__ */
|
|
4100
|
+
return /* @__PURE__ */ p(
|
|
4101
4101
|
Y.button,
|
|
4102
4102
|
{
|
|
4103
4103
|
type: "button",
|
|
@@ -4117,13 +4117,13 @@ var Dn = "DialogPortal", [Vc, yo] = go(Dn, {
|
|
|
4117
4117
|
forceMount: void 0
|
|
4118
4118
|
}), xo = (e) => {
|
|
4119
4119
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = pe(Dn, t);
|
|
4120
|
-
return /* @__PURE__ */
|
|
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
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);
|
|
4126
|
-
return a.modal ? /* @__PURE__ */
|
|
4126
|
+
return a.modal ? /* @__PURE__ */ p(Be, { present: r || a.open, children: /* @__PURE__ */ p(Hc, { ...o, ref: t }) }) : null;
|
|
4127
4127
|
}
|
|
4128
4128
|
);
|
|
4129
4129
|
Eo.displayName = Nt;
|
|
@@ -4133,7 +4133,7 @@ var Hc = s.forwardRef(
|
|
|
4133
4133
|
return (
|
|
4134
4134
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4135
4135
|
// ie. when `Overlay` and `Content` are siblings
|
|
4136
|
-
/* @__PURE__ */
|
|
4136
|
+
/* @__PURE__ */ p(mo, { as: de, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ p(
|
|
4137
4137
|
Y.div,
|
|
4138
4138
|
{
|
|
4139
4139
|
"data-state": _n(o.open),
|
|
@@ -4147,7 +4147,7 @@ var Hc = s.forwardRef(
|
|
|
4147
4147
|
), $e = "DialogContent", Co = s.forwardRef(
|
|
4148
4148
|
(e, t) => {
|
|
4149
4149
|
const n = yo($e, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = pe($e, e.__scopeDialog);
|
|
4150
|
-
return /* @__PURE__ */
|
|
4150
|
+
return /* @__PURE__ */ p(Be, { present: r || a.open, children: a.modal ? /* @__PURE__ */ p(jc, { ...o, ref: t }) : /* @__PURE__ */ p(Gc, { ...o, ref: t }) });
|
|
4151
4151
|
}
|
|
4152
4152
|
);
|
|
4153
4153
|
Co.displayName = $e;
|
|
@@ -4157,7 +4157,7 @@ var jc = s.forwardRef(
|
|
|
4157
4157
|
return s.useEffect(() => {
|
|
4158
4158
|
const a = r.current;
|
|
4159
4159
|
if (a) return Wc(a);
|
|
4160
|
-
}, []), /* @__PURE__ */
|
|
4160
|
+
}, []), /* @__PURE__ */ p(
|
|
4161
4161
|
So,
|
|
4162
4162
|
{
|
|
4163
4163
|
...e,
|
|
@@ -4182,7 +4182,7 @@ var jc = s.forwardRef(
|
|
|
4182
4182
|
), Gc = s.forwardRef(
|
|
4183
4183
|
(e, t) => {
|
|
4184
4184
|
const n = pe($e, e.__scopeDialog), r = s.useRef(!1), o = s.useRef(!1);
|
|
4185
|
-
return /* @__PURE__ */
|
|
4185
|
+
return /* @__PURE__ */ p(
|
|
4186
4186
|
So,
|
|
4187
4187
|
{
|
|
4188
4188
|
...e,
|
|
@@ -4194,19 +4194,19 @@ 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
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ p(
|
|
4210
4210
|
oo,
|
|
4211
4211
|
{
|
|
4212
4212
|
asChild: !0,
|
|
@@ -4214,7 +4214,7 @@ var jc = s.forwardRef(
|
|
|
4214
4214
|
trapped: r,
|
|
4215
4215
|
onMountAutoFocus: o,
|
|
4216
4216
|
onUnmountAutoFocus: a,
|
|
4217
|
-
children: /* @__PURE__ */
|
|
4217
|
+
children: /* @__PURE__ */ p(
|
|
4218
4218
|
_t,
|
|
4219
4219
|
{
|
|
4220
4220
|
role: "dialog",
|
|
@@ -4223,36 +4223,36 @@ var jc = s.forwardRef(
|
|
|
4223
4223
|
"aria-labelledby": c.titleId,
|
|
4224
4224
|
"data-state": _n(c.open),
|
|
4225
4225
|
...i,
|
|
4226
|
-
ref:
|
|
4226
|
+
ref: d,
|
|
4227
4227
|
onDismiss: () => c.onOpenChange(!1)
|
|
4228
4228
|
}
|
|
4229
4229
|
)
|
|
4230
4230
|
}
|
|
4231
4231
|
),
|
|
4232
4232
|
/* @__PURE__ */ G(Xe, { children: [
|
|
4233
|
-
/* @__PURE__ */
|
|
4234
|
-
/* @__PURE__ */
|
|
4233
|
+
/* @__PURE__ */ p(Uc, { titleId: c.titleId }),
|
|
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
4240
|
const { __scopeDialog: n, ...r } = e, o = pe(In, n);
|
|
4241
|
-
return /* @__PURE__ */
|
|
4241
|
+
return /* @__PURE__ */ p(Y.h2, { id: o.titleId, ...r, ref: t });
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
4244
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);
|
|
4248
|
-
return /* @__PURE__ */
|
|
4248
|
+
return /* @__PURE__ */ p(Y.p, { id: o.descriptionId, ...r, ref: t });
|
|
4249
4249
|
}
|
|
4250
4250
|
);
|
|
4251
4251
|
Po.displayName = Ro;
|
|
4252
4252
|
var Ao = "DialogClose", No = s.forwardRef(
|
|
4253
4253
|
(e, t) => {
|
|
4254
4254
|
const { __scopeDialog: n, ...r } = e, o = pe(Ao, n);
|
|
4255
|
-
return /* @__PURE__ */
|
|
4255
|
+
return /* @__PURE__ */ p(
|
|
4256
4256
|
Y.button,
|
|
4257
4257
|
{
|
|
4258
4258
|
type: "button",
|
|
@@ -4288,7 +4288,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4288
4288
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4289
4289
|
}, [r, e, t]), null;
|
|
4290
4290
|
}, Xc = vo, qc = wo, Zc = xo, ko = Eo, Do = Co, Io = To, _o = Po, Lo = No;
|
|
4291
|
-
const Qc = Xc, Ku = qc, Yu = Lo, Jc = Zc, Fo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
4291
|
+
const Qc = Xc, Ku = qc, Yu = Lo, Jc = Zc, Fo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
4292
4292
|
ko,
|
|
4293
4293
|
{
|
|
4294
4294
|
className: I(
|
|
@@ -4316,7 +4316,7 @@ const el = It(
|
|
|
4316
4316
|
}
|
|
4317
4317
|
}
|
|
4318
4318
|
), $o = s.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ G(Jc, { children: [
|
|
4319
|
-
/* @__PURE__ */
|
|
4319
|
+
/* @__PURE__ */ p(Fo, {}),
|
|
4320
4320
|
/* @__PURE__ */ G(
|
|
4321
4321
|
Do,
|
|
4322
4322
|
{
|
|
@@ -4325,8 +4325,8 @@ const el = It(
|
|
|
4325
4325
|
...r,
|
|
4326
4326
|
children: [
|
|
4327
4327
|
/* @__PURE__ */ G(Lo, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
4328
|
-
/* @__PURE__ */
|
|
4329
|
-
/* @__PURE__ */
|
|
4328
|
+
/* @__PURE__ */ p($r, { className: "h-4 w-4" }),
|
|
4329
|
+
/* @__PURE__ */ p("span", { className: "sr-only", children: "Close" })
|
|
4330
4330
|
] }),
|
|
4331
4331
|
n
|
|
4332
4332
|
]
|
|
@@ -4337,7 +4337,7 @@ $o.displayName = Do.displayName;
|
|
|
4337
4337
|
const tl = ({
|
|
4338
4338
|
className: e,
|
|
4339
4339
|
...t
|
|
4340
|
-
}) => /* @__PURE__ */
|
|
4340
|
+
}) => /* @__PURE__ */ p(
|
|
4341
4341
|
"div",
|
|
4342
4342
|
{
|
|
4343
4343
|
className: I(
|
|
@@ -4351,7 +4351,7 @@ tl.displayName = "SheetHeader";
|
|
|
4351
4351
|
const nl = ({
|
|
4352
4352
|
className: e,
|
|
4353
4353
|
...t
|
|
4354
|
-
}) => /* @__PURE__ */
|
|
4354
|
+
}) => /* @__PURE__ */ p(
|
|
4355
4355
|
"div",
|
|
4356
4356
|
{
|
|
4357
4357
|
className: I(
|
|
@@ -4362,7 +4362,7 @@ const nl = ({
|
|
|
4362
4362
|
}
|
|
4363
4363
|
);
|
|
4364
4364
|
nl.displayName = "SheetFooter";
|
|
4365
|
-
const rl = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
4365
|
+
const rl = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
4366
4366
|
Io,
|
|
4367
4367
|
{
|
|
4368
4368
|
ref: n,
|
|
@@ -4371,7 +4371,7 @@ const rl = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
4371
4371
|
}
|
|
4372
4372
|
));
|
|
4373
4373
|
rl.displayName = Io.displayName;
|
|
4374
|
-
const ol = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
4374
|
+
const ol = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
4375
4375
|
_o,
|
|
4376
4376
|
{
|
|
4377
4377
|
ref: n,
|
|
@@ -4380,6 +4380,26 @@ const ol = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
4380
4380
|
}
|
|
4381
4381
|
));
|
|
4382
4382
|
ol.displayName = _o.displayName;
|
|
4383
|
+
function Xu({ getMyAccountPath: e, publicName: t, applicationName: n }) {
|
|
4384
|
+
const { appID: r } = Or(), o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, i] = Tn(!1);
|
|
4385
|
+
return /* @__PURE__ */ G("div", { className: "flex items-center gap-3", children: [
|
|
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
|
+
"img",
|
|
4388
|
+
{
|
|
4389
|
+
src: o,
|
|
4390
|
+
alt: "Partner logo",
|
|
4391
|
+
className: "h-9 w-9 object-cover bg-neutral-100",
|
|
4392
|
+
onError: () => {
|
|
4393
|
+
i(!0);
|
|
4394
|
+
}
|
|
4395
|
+
}
|
|
4396
|
+
) }),
|
|
4397
|
+
/* @__PURE__ */ G("div", { className: "flex flex-1 flex-col", children: [
|
|
4398
|
+
/* @__PURE__ */ p("span", { className: "text-sm font-medium", children: t || "Partner" }),
|
|
4399
|
+
/* @__PURE__ */ p("span", { className: "text-xs text-muted-foreground", children: n })
|
|
4400
|
+
] })
|
|
4401
|
+
] });
|
|
4402
|
+
}
|
|
4383
4403
|
const rn = 1024;
|
|
4384
4404
|
function al() {
|
|
4385
4405
|
const [e, t] = s.useState(void 0);
|
|
@@ -4390,11 +4410,11 @@ function al() {
|
|
|
4390
4410
|
return n.addEventListener("change", r), t(window.innerWidth < rn), () => n.removeEventListener("change", r);
|
|
4391
4411
|
}, []), !!e;
|
|
4392
4412
|
}
|
|
4393
|
-
function
|
|
4413
|
+
function br({
|
|
4394
4414
|
className: e,
|
|
4395
4415
|
...t
|
|
4396
4416
|
}) {
|
|
4397
|
-
return /* @__PURE__ */
|
|
4417
|
+
return /* @__PURE__ */ p(
|
|
4398
4418
|
"div",
|
|
4399
4419
|
{
|
|
4400
4420
|
className: I("animate-pulse rounded-md bg-primary/20", e),
|
|
@@ -4507,14 +4527,14 @@ function kt(e) {
|
|
|
4507
4527
|
y: n
|
|
4508
4528
|
};
|
|
4509
4529
|
}
|
|
4510
|
-
function
|
|
4530
|
+
function wr(e, t, n) {
|
|
4511
4531
|
let {
|
|
4512
4532
|
reference: r,
|
|
4513
4533
|
floating: o
|
|
4514
4534
|
} = e;
|
|
4515
|
-
const a = Ne(t), i = $n(t), c = Fn(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;
|
|
4516
4536
|
let h;
|
|
4517
|
-
switch (
|
|
4537
|
+
switch (l) {
|
|
4518
4538
|
case "top":
|
|
4519
4539
|
h = {
|
|
4520
4540
|
x: u,
|
|
@@ -4530,13 +4550,13 @@ function yr(e, t, n) {
|
|
|
4530
4550
|
case "right":
|
|
4531
4551
|
h = {
|
|
4532
4552
|
x: r.x + r.width,
|
|
4533
|
-
y:
|
|
4553
|
+
y: m
|
|
4534
4554
|
};
|
|
4535
4555
|
break;
|
|
4536
4556
|
case "left":
|
|
4537
4557
|
h = {
|
|
4538
4558
|
x: r.x - o.width,
|
|
4539
|
-
y:
|
|
4559
|
+
y: m
|
|
4540
4560
|
};
|
|
4541
4561
|
break;
|
|
4542
4562
|
default:
|
|
@@ -4547,10 +4567,10 @@ function yr(e, t, n) {
|
|
|
4547
4567
|
}
|
|
4548
4568
|
switch (et(t)) {
|
|
4549
4569
|
case "start":
|
|
4550
|
-
h[i] -= v * (n &&
|
|
4570
|
+
h[i] -= v * (n && d ? -1 : 1);
|
|
4551
4571
|
break;
|
|
4552
4572
|
case "end":
|
|
4553
|
-
h[i] += v * (n &&
|
|
4573
|
+
h[i] += v * (n && d ? -1 : 1);
|
|
4554
4574
|
break;
|
|
4555
4575
|
}
|
|
4556
4576
|
return h;
|
|
@@ -4561,15 +4581,15 @@ const ml = async (e, t, n) => {
|
|
|
4561
4581
|
strategy: o = "absolute",
|
|
4562
4582
|
middleware: a = [],
|
|
4563
4583
|
platform: i
|
|
4564
|
-
} = n, c = a.filter(Boolean),
|
|
4565
|
-
let
|
|
4584
|
+
} = n, c = a.filter(Boolean), l = await (i.isRTL == null ? void 0 : i.isRTL(t));
|
|
4585
|
+
let d = await i.getElementRects({
|
|
4566
4586
|
reference: e,
|
|
4567
4587
|
floating: t,
|
|
4568
4588
|
strategy: o
|
|
4569
4589
|
}), {
|
|
4570
4590
|
x: u,
|
|
4571
|
-
y:
|
|
4572
|
-
} =
|
|
4591
|
+
y: m
|
|
4592
|
+
} = wr(d, r, l), v = r, h = {}, b = 0;
|
|
4573
4593
|
for (let f = 0; f < c.length; f++) {
|
|
4574
4594
|
const {
|
|
4575
4595
|
name: g,
|
|
@@ -4581,36 +4601,36 @@ const ml = async (e, t, n) => {
|
|
|
4581
4601
|
reset: S
|
|
4582
4602
|
} = await w({
|
|
4583
4603
|
x: u,
|
|
4584
|
-
y:
|
|
4604
|
+
y: m,
|
|
4585
4605
|
initialPlacement: r,
|
|
4586
4606
|
placement: v,
|
|
4587
4607
|
strategy: o,
|
|
4588
4608
|
middlewareData: h,
|
|
4589
|
-
rects:
|
|
4609
|
+
rects: d,
|
|
4590
4610
|
platform: i,
|
|
4591
4611
|
elements: {
|
|
4592
4612
|
reference: e,
|
|
4593
4613
|
floating: t
|
|
4594
4614
|
}
|
|
4595
4615
|
});
|
|
4596
|
-
u = y ?? u,
|
|
4616
|
+
u = y ?? u, m = x ?? m, h = {
|
|
4597
4617
|
...h,
|
|
4598
4618
|
[g]: {
|
|
4599
4619
|
...h[g],
|
|
4600
4620
|
...C
|
|
4601
4621
|
}
|
|
4602
|
-
}, 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({
|
|
4603
4623
|
reference: e,
|
|
4604
4624
|
floating: t,
|
|
4605
4625
|
strategy: o
|
|
4606
4626
|
}) : S.rects), {
|
|
4607
4627
|
x: u,
|
|
4608
|
-
y:
|
|
4609
|
-
} =
|
|
4628
|
+
y: m
|
|
4629
|
+
} = wr(d, v, l)), f = -1);
|
|
4610
4630
|
}
|
|
4611
4631
|
return {
|
|
4612
4632
|
x: u,
|
|
4613
|
-
y:
|
|
4633
|
+
y: m,
|
|
4614
4634
|
placement: v,
|
|
4615
4635
|
strategy: o,
|
|
4616
4636
|
middlewareData: h
|
|
@@ -4625,19 +4645,19 @@ async function it(e, t) {
|
|
|
4625
4645
|
platform: a,
|
|
4626
4646
|
rects: i,
|
|
4627
4647
|
elements: c,
|
|
4628
|
-
strategy:
|
|
4648
|
+
strategy: l
|
|
4629
4649
|
} = e, {
|
|
4630
|
-
boundary:
|
|
4650
|
+
boundary: d = "clippingAncestors",
|
|
4631
4651
|
rootBoundary: u = "viewport",
|
|
4632
|
-
elementContext:
|
|
4652
|
+
elementContext: m = "floating",
|
|
4633
4653
|
altBoundary: v = !1,
|
|
4634
4654
|
padding: h = 0
|
|
4635
|
-
} = ye(t, e), b = zo(h), g = c[v ?
|
|
4655
|
+
} = ye(t, e), b = zo(h), g = c[v ? m === "floating" ? "reference" : "floating" : m], w = kt(await a.getClippingRect({
|
|
4636
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)),
|
|
4637
|
-
boundary:
|
|
4657
|
+
boundary: d,
|
|
4638
4658
|
rootBoundary: u,
|
|
4639
|
-
strategy:
|
|
4640
|
-
})), y =
|
|
4659
|
+
strategy: l
|
|
4660
|
+
})), y = m === "floating" ? {
|
|
4641
4661
|
x: r,
|
|
4642
4662
|
y: o,
|
|
4643
4663
|
width: i.floating.width,
|
|
@@ -4652,7 +4672,7 @@ async function it(e, t) {
|
|
|
4652
4672
|
elements: c,
|
|
4653
4673
|
rect: y,
|
|
4654
4674
|
offsetParent: x,
|
|
4655
|
-
strategy:
|
|
4675
|
+
strategy: l
|
|
4656
4676
|
}) : y);
|
|
4657
4677
|
return {
|
|
4658
4678
|
top: (w.top - S.top + b.top) / C.y,
|
|
@@ -4672,20 +4692,20 @@ const hl = (e) => ({
|
|
|
4672
4692
|
rects: a,
|
|
4673
4693
|
platform: i,
|
|
4674
4694
|
elements: c,
|
|
4675
|
-
middlewareData:
|
|
4695
|
+
middlewareData: l
|
|
4676
4696
|
} = t, {
|
|
4677
|
-
element:
|
|
4697
|
+
element: d,
|
|
4678
4698
|
padding: u = 0
|
|
4679
4699
|
} = ye(e, t) || {};
|
|
4680
|
-
if (
|
|
4700
|
+
if (d == null)
|
|
4681
4701
|
return {};
|
|
4682
|
-
const
|
|
4702
|
+
const m = zo(u), v = {
|
|
4683
4703
|
x: n,
|
|
4684
4704
|
y: r
|
|
4685
|
-
}, h = $n(o), b = Fn(h), f = await i.getDimensions(
|
|
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));
|
|
4686
4706
|
let T = E ? E[x] : 0;
|
|
4687
4707
|
(!T || !await (i.isElement == null ? void 0 : i.isElement(E))) && (T = c.floating[x] || a.floating[b]);
|
|
4688
|
-
const F = C / 2 - S / 2, k = T / 2 - f[b] / 2 - 1, $ = Ae(
|
|
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;
|
|
4689
4709
|
return {
|
|
4690
4710
|
[h]: v[h] + H,
|
|
4691
4711
|
data: {
|
|
@@ -4709,11 +4729,11 @@ const hl = (e) => ({
|
|
|
4709
4729
|
middlewareData: a,
|
|
4710
4730
|
rects: i,
|
|
4711
4731
|
initialPlacement: c,
|
|
4712
|
-
platform:
|
|
4713
|
-
elements:
|
|
4732
|
+
platform: l,
|
|
4733
|
+
elements: d
|
|
4714
4734
|
} = t, {
|
|
4715
4735
|
mainAxis: u = !0,
|
|
4716
|
-
crossAxis:
|
|
4736
|
+
crossAxis: m = !0,
|
|
4717
4737
|
fallbackPlacements: v,
|
|
4718
4738
|
fallbackStrategy: h = "bestFit",
|
|
4719
4739
|
fallbackAxisSideDirection: b = "none",
|
|
@@ -4722,11 +4742,11 @@ const hl = (e) => ({
|
|
|
4722
4742
|
} = ye(e, t);
|
|
4723
4743
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
4724
4744
|
return {};
|
|
4725
|
-
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";
|
|
4726
4746
|
!v && E && S.push(...fl(c, f, b, C));
|
|
4727
4747
|
const T = [c, ...S], F = await it(t, g), k = [];
|
|
4728
4748
|
let $ = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
4729
|
-
if (u && k.push(F[w]),
|
|
4749
|
+
if (u && k.push(F[w]), m) {
|
|
4730
4750
|
const R = ll(o, i, C);
|
|
4731
4751
|
k.push(F[R[0]], F[R[1]]);
|
|
4732
4752
|
}
|
|
@@ -4778,7 +4798,7 @@ const hl = (e) => ({
|
|
|
4778
4798
|
}
|
|
4779
4799
|
};
|
|
4780
4800
|
};
|
|
4781
|
-
function
|
|
4801
|
+
function yr(e, t) {
|
|
4782
4802
|
return {
|
|
4783
4803
|
top: e.top - t.height,
|
|
4784
4804
|
right: e.right - t.width,
|
|
@@ -4786,7 +4806,7 @@ function xr(e, t) {
|
|
|
4786
4806
|
left: e.left - t.width
|
|
4787
4807
|
};
|
|
4788
4808
|
}
|
|
4789
|
-
function
|
|
4809
|
+
function xr(e) {
|
|
4790
4810
|
return il.some((t) => e[t] >= 0);
|
|
4791
4811
|
}
|
|
4792
4812
|
const vl = function(e) {
|
|
@@ -4805,11 +4825,11 @@ const vl = function(e) {
|
|
|
4805
4825
|
const a = await it(t, {
|
|
4806
4826
|
...o,
|
|
4807
4827
|
elementContext: "reference"
|
|
4808
|
-
}), i =
|
|
4828
|
+
}), i = yr(a, n.reference);
|
|
4809
4829
|
return {
|
|
4810
4830
|
data: {
|
|
4811
4831
|
referenceHiddenOffsets: i,
|
|
4812
|
-
referenceHidden:
|
|
4832
|
+
referenceHidden: xr(i)
|
|
4813
4833
|
}
|
|
4814
4834
|
};
|
|
4815
4835
|
}
|
|
@@ -4817,11 +4837,11 @@ const vl = function(e) {
|
|
|
4817
4837
|
const a = await it(t, {
|
|
4818
4838
|
...o,
|
|
4819
4839
|
altBoundary: !0
|
|
4820
|
-
}), i =
|
|
4840
|
+
}), i = yr(a, n.floating);
|
|
4821
4841
|
return {
|
|
4822
4842
|
data: {
|
|
4823
4843
|
escapedOffsets: i,
|
|
4824
|
-
escaped:
|
|
4844
|
+
escaped: xr(i)
|
|
4825
4845
|
}
|
|
4826
4846
|
};
|
|
4827
4847
|
}
|
|
@@ -4836,25 +4856,25 @@ async function bl(e, t) {
|
|
|
4836
4856
|
placement: n,
|
|
4837
4857
|
platform: r,
|
|
4838
4858
|
elements: o
|
|
4839
|
-
} = 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);
|
|
4840
4860
|
let {
|
|
4841
4861
|
mainAxis: v,
|
|
4842
4862
|
crossAxis: h,
|
|
4843
4863
|
alignmentAxis: b
|
|
4844
|
-
} = typeof
|
|
4845
|
-
mainAxis:
|
|
4864
|
+
} = typeof m == "number" ? {
|
|
4865
|
+
mainAxis: m,
|
|
4846
4866
|
crossAxis: 0,
|
|
4847
4867
|
alignmentAxis: null
|
|
4848
4868
|
} : {
|
|
4849
|
-
mainAxis:
|
|
4850
|
-
crossAxis:
|
|
4851
|
-
alignmentAxis:
|
|
4869
|
+
mainAxis: m.mainAxis || 0,
|
|
4870
|
+
crossAxis: m.crossAxis || 0,
|
|
4871
|
+
alignmentAxis: m.alignmentAxis
|
|
4852
4872
|
};
|
|
4853
|
-
return c && typeof b == "number" && (h = c === "end" ? b * -1 : b),
|
|
4873
|
+
return c && typeof b == "number" && (h = c === "end" ? b * -1 : b), l ? {
|
|
4854
4874
|
x: h * u,
|
|
4855
|
-
y: v *
|
|
4875
|
+
y: v * d
|
|
4856
4876
|
} : {
|
|
4857
|
-
x: v *
|
|
4877
|
+
x: v * d,
|
|
4858
4878
|
y: h * u
|
|
4859
4879
|
};
|
|
4860
4880
|
}
|
|
@@ -4869,12 +4889,12 @@ const wl = function(e) {
|
|
|
4869
4889
|
y: a,
|
|
4870
4890
|
placement: i,
|
|
4871
4891
|
middlewareData: c
|
|
4872
|
-
} = t,
|
|
4892
|
+
} = t, l = await bl(t, e);
|
|
4873
4893
|
return i === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
4874
|
-
x: o +
|
|
4875
|
-
y: a +
|
|
4894
|
+
x: o + l.x,
|
|
4895
|
+
y: a + l.y,
|
|
4876
4896
|
data: {
|
|
4877
|
-
...
|
|
4897
|
+
...l,
|
|
4878
4898
|
placement: i
|
|
4879
4899
|
}
|
|
4880
4900
|
};
|
|
@@ -4904,24 +4924,24 @@ const wl = function(e) {
|
|
|
4904
4924
|
};
|
|
4905
4925
|
}
|
|
4906
4926
|
},
|
|
4907
|
-
...
|
|
4908
|
-
} = ye(e, t),
|
|
4927
|
+
...l
|
|
4928
|
+
} = ye(e, t), d = {
|
|
4909
4929
|
x: n,
|
|
4910
4930
|
y: r
|
|
4911
|
-
}, u = await it(t,
|
|
4912
|
-
let h =
|
|
4931
|
+
}, u = await it(t, l), m = Ne(xe(o)), v = Ln(m);
|
|
4932
|
+
let h = d[v], b = d[m];
|
|
4913
4933
|
if (a) {
|
|
4914
4934
|
const g = v === "y" ? "top" : "left", w = v === "y" ? "bottom" : "right", y = h + u[g], x = h - u[w];
|
|
4915
4935
|
h = vn(y, h, x);
|
|
4916
4936
|
}
|
|
4917
4937
|
if (i) {
|
|
4918
|
-
const g =
|
|
4938
|
+
const g = m === "y" ? "top" : "left", w = m === "y" ? "bottom" : "right", y = b + u[g], x = b - u[w];
|
|
4919
4939
|
b = vn(y, b, x);
|
|
4920
4940
|
}
|
|
4921
4941
|
const f = c.fn({
|
|
4922
4942
|
...t,
|
|
4923
4943
|
[v]: h,
|
|
4924
|
-
[
|
|
4944
|
+
[m]: b
|
|
4925
4945
|
});
|
|
4926
4946
|
return {
|
|
4927
4947
|
...f,
|
|
@@ -4930,7 +4950,7 @@ const wl = function(e) {
|
|
|
4930
4950
|
y: f.y - r,
|
|
4931
4951
|
enabled: {
|
|
4932
4952
|
[v]: a,
|
|
4933
|
-
[
|
|
4953
|
+
[m]: i
|
|
4934
4954
|
}
|
|
4935
4955
|
}
|
|
4936
4956
|
};
|
|
@@ -4948,13 +4968,13 @@ const wl = function(e) {
|
|
|
4948
4968
|
middlewareData: i
|
|
4949
4969
|
} = t, {
|
|
4950
4970
|
offset: c = 0,
|
|
4951
|
-
mainAxis:
|
|
4952
|
-
crossAxis:
|
|
4971
|
+
mainAxis: l = !0,
|
|
4972
|
+
crossAxis: d = !0
|
|
4953
4973
|
} = ye(e, t), u = {
|
|
4954
4974
|
x: n,
|
|
4955
4975
|
y: r
|
|
4956
|
-
},
|
|
4957
|
-
let h = u[v], b = u[
|
|
4976
|
+
}, m = Ne(o), v = Ln(m);
|
|
4977
|
+
let h = u[v], b = u[m];
|
|
4958
4978
|
const f = ye(c, t), g = typeof f == "number" ? {
|
|
4959
4979
|
mainAxis: f,
|
|
4960
4980
|
crossAxis: 0
|
|
@@ -4963,18 +4983,18 @@ const wl = function(e) {
|
|
|
4963
4983
|
crossAxis: 0,
|
|
4964
4984
|
...f
|
|
4965
4985
|
};
|
|
4966
|
-
if (
|
|
4986
|
+
if (l) {
|
|
4967
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;
|
|
4968
4988
|
h < C ? h = C : h > S && (h = S);
|
|
4969
4989
|
}
|
|
4970
|
-
if (
|
|
4990
|
+
if (d) {
|
|
4971
4991
|
var w, y;
|
|
4972
|
-
const x = v === "y" ? "width" : "height", C = ["top", "left"].includes(xe(o)), S = a.reference[
|
|
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);
|
|
4973
4993
|
b < S ? b = S : b > E && (b = E);
|
|
4974
4994
|
}
|
|
4975
4995
|
return {
|
|
4976
4996
|
[v]: h,
|
|
4977
|
-
[
|
|
4997
|
+
[m]: b
|
|
4978
4998
|
};
|
|
4979
4999
|
}
|
|
4980
5000
|
};
|
|
@@ -4990,22 +5010,22 @@ const wl = function(e) {
|
|
|
4990
5010
|
platform: i,
|
|
4991
5011
|
elements: c
|
|
4992
5012
|
} = t, {
|
|
4993
|
-
apply:
|
|
5013
|
+
apply: l = () => {
|
|
4994
5014
|
},
|
|
4995
|
-
...
|
|
4996
|
-
} = 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", {
|
|
4997
5017
|
width: b,
|
|
4998
5018
|
height: f
|
|
4999
5019
|
} = a.floating;
|
|
5000
5020
|
let g, w;
|
|
5001
|
-
|
|
5021
|
+
m === "top" || m === "bottom" ? (g = m, w = v === (await (i.isRTL == null ? void 0 : i.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (w = m, g = v === "end" ? "top" : "bottom");
|
|
5002
5022
|
const y = f - u.top - u.bottom, x = b - u.left - u.right, C = Ae(f - u[g], y), S = Ae(b - u[w], x), E = !t.middlewareData.shift;
|
|
5003
5023
|
let T = C, F = S;
|
|
5004
5024
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = x), (r = t.middlewareData.shift) != null && r.enabled.y && (T = y), E && !v) {
|
|
5005
5025
|
const $ = ie(u.left, 0), V = ie(u.right, 0), z = ie(u.top, 0), M = ie(u.bottom, 0);
|
|
5006
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));
|
|
5007
5027
|
}
|
|
5008
|
-
await
|
|
5028
|
+
await l({
|
|
5009
5029
|
...t,
|
|
5010
5030
|
availableWidth: F,
|
|
5011
5031
|
availableHeight: T
|
|
@@ -5042,7 +5062,7 @@ function ue(e) {
|
|
|
5042
5062
|
function ve(e) {
|
|
5043
5063
|
return $t() ? e instanceof HTMLElement || e instanceof se(e).HTMLElement : !1;
|
|
5044
5064
|
}
|
|
5045
|
-
function
|
|
5065
|
+
function Er(e) {
|
|
5046
5066
|
return !$t() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof se(e).ShadowRoot;
|
|
5047
5067
|
}
|
|
5048
5068
|
function lt(e) {
|
|
@@ -5106,10 +5126,10 @@ function Oe(e) {
|
|
|
5106
5126
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5107
5127
|
e.assignedSlot || // DOM Element detected.
|
|
5108
5128
|
e.parentNode || // ShadowRoot detected.
|
|
5109
|
-
|
|
5129
|
+
Er(e) && e.host || // Fallback.
|
|
5110
5130
|
be(e)
|
|
5111
5131
|
);
|
|
5112
|
-
return
|
|
5132
|
+
return Er(t) ? t.host : t;
|
|
5113
5133
|
}
|
|
5114
5134
|
function Bo(e) {
|
|
5115
5135
|
const t = Oe(e);
|
|
@@ -5173,20 +5193,20 @@ function ze(e, t, n, r) {
|
|
|
5173
5193
|
let i = ge(1);
|
|
5174
5194
|
t && (r ? ue(r) && (i = Ye(r)) : i = Ye(e));
|
|
5175
5195
|
const c = Rl(a, n, r) ? Ho(a) : ge(0);
|
|
5176
|
-
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;
|
|
5177
5197
|
if (a) {
|
|
5178
5198
|
const v = se(a), h = r && ue(r) ? se(r) : r;
|
|
5179
5199
|
let b = v, f = wn(b);
|
|
5180
5200
|
for (; f && r && h !== b; ) {
|
|
5181
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;
|
|
5182
|
-
|
|
5202
|
+
l *= g.x, d *= g.y, u *= g.x, m *= g.y, l += x, d += C, b = se(f), f = wn(b);
|
|
5183
5203
|
}
|
|
5184
5204
|
}
|
|
5185
5205
|
return kt({
|
|
5186
5206
|
width: u,
|
|
5187
|
-
height:
|
|
5188
|
-
x:
|
|
5189
|
-
y:
|
|
5207
|
+
height: m,
|
|
5208
|
+
x: l,
|
|
5209
|
+
y: d
|
|
5190
5210
|
});
|
|
5191
5211
|
}
|
|
5192
5212
|
function Vn(e, t) {
|
|
@@ -5214,21 +5234,21 @@ function Pl(e) {
|
|
|
5214
5234
|
const a = o === "fixed", i = be(r), c = t ? zt(t.floating) : !1;
|
|
5215
5235
|
if (r === i || c && a)
|
|
5216
5236
|
return n;
|
|
5217
|
-
let
|
|
5237
|
+
let l = {
|
|
5218
5238
|
scrollLeft: 0,
|
|
5219
5239
|
scrollTop: 0
|
|
5220
|
-
},
|
|
5221
|
-
const u = ge(0),
|
|
5222
|
-
if ((
|
|
5240
|
+
}, d = ge(1);
|
|
5241
|
+
const u = ge(0), m = ve(r);
|
|
5242
|
+
if ((m || !m && !a) && ((tt(r) !== "body" || lt(i)) && (l = Wt(r)), ve(r))) {
|
|
5223
5243
|
const h = ze(r);
|
|
5224
|
-
|
|
5244
|
+
d = Ye(r), u.x = h.x + r.clientLeft, u.y = h.y + r.clientTop;
|
|
5225
5245
|
}
|
|
5226
|
-
const v = i && !
|
|
5246
|
+
const v = i && !m && !a ? jo(i, l, !0) : ge(0);
|
|
5227
5247
|
return {
|
|
5228
|
-
width: n.width *
|
|
5229
|
-
height: n.height *
|
|
5230
|
-
x: n.x *
|
|
5231
|
-
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
|
|
5232
5252
|
};
|
|
5233
5253
|
}
|
|
5234
5254
|
function Al(e) {
|
|
@@ -5247,29 +5267,29 @@ function Nl(e) {
|
|
|
5247
5267
|
}
|
|
5248
5268
|
function Ol(e, t) {
|
|
5249
5269
|
const n = se(e), r = be(e), o = n.visualViewport;
|
|
5250
|
-
let a = r.clientWidth, i = r.clientHeight, c = 0,
|
|
5270
|
+
let a = r.clientWidth, i = r.clientHeight, c = 0, l = 0;
|
|
5251
5271
|
if (o) {
|
|
5252
5272
|
a = o.width, i = o.height;
|
|
5253
|
-
const
|
|
5254
|
-
(!
|
|
5273
|
+
const d = Wn();
|
|
5274
|
+
(!d || d && t === "fixed") && (c = o.offsetLeft, l = o.offsetTop);
|
|
5255
5275
|
}
|
|
5256
5276
|
return {
|
|
5257
5277
|
width: a,
|
|
5258
5278
|
height: i,
|
|
5259
5279
|
x: c,
|
|
5260
|
-
y:
|
|
5280
|
+
y: l
|
|
5261
5281
|
};
|
|
5262
5282
|
}
|
|
5263
5283
|
function Ml(e, t) {
|
|
5264
|
-
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;
|
|
5265
5285
|
return {
|
|
5266
5286
|
width: i,
|
|
5267
5287
|
height: c,
|
|
5268
|
-
x:
|
|
5269
|
-
y:
|
|
5288
|
+
x: l,
|
|
5289
|
+
y: d
|
|
5270
5290
|
};
|
|
5271
5291
|
}
|
|
5272
|
-
function
|
|
5292
|
+
function Cr(e, t, n) {
|
|
5273
5293
|
let r;
|
|
5274
5294
|
if (t === "viewport")
|
|
5275
5295
|
r = Ol(e, n);
|
|
@@ -5300,8 +5320,8 @@ function kl(e, t) {
|
|
|
5300
5320
|
const a = fe(e).position === "fixed";
|
|
5301
5321
|
let i = a ? Oe(e) : e;
|
|
5302
5322
|
for (; ue(i) && !qe(i); ) {
|
|
5303
|
-
const c = fe(i),
|
|
5304
|
-
!
|
|
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);
|
|
5305
5325
|
}
|
|
5306
5326
|
return t.set(e, r), r;
|
|
5307
5327
|
}
|
|
@@ -5312,15 +5332,15 @@ function Dl(e) {
|
|
|
5312
5332
|
rootBoundary: r,
|
|
5313
5333
|
strategy: o
|
|
5314
5334
|
} = e;
|
|
5315
|
-
const i = [...n === "clippingAncestors" ? zt(t) ? [] : kl(t, this._c) : [].concat(n), r], c = i[0],
|
|
5316
|
-
const
|
|
5317
|
-
return
|
|
5318
|
-
},
|
|
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));
|
|
5319
5339
|
return {
|
|
5320
|
-
width:
|
|
5321
|
-
height:
|
|
5322
|
-
x:
|
|
5323
|
-
y:
|
|
5340
|
+
width: l.right - l.left,
|
|
5341
|
+
height: l.bottom - l.top,
|
|
5342
|
+
x: l.left,
|
|
5343
|
+
y: l.top
|
|
5324
5344
|
};
|
|
5325
5345
|
}
|
|
5326
5346
|
function Il(e) {
|
|
@@ -5339,16 +5359,16 @@ function _l(e, t, n) {
|
|
|
5339
5359
|
scrollLeft: 0,
|
|
5340
5360
|
scrollTop: 0
|
|
5341
5361
|
};
|
|
5342
|
-
const
|
|
5362
|
+
const l = ge(0);
|
|
5343
5363
|
if (r || !r && !a)
|
|
5344
5364
|
if ((tt(t) !== "body" || lt(o)) && (c = Wt(t)), r) {
|
|
5345
5365
|
const v = ze(t, !0, a, t);
|
|
5346
|
-
|
|
5347
|
-
} else o && (
|
|
5348
|
-
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;
|
|
5349
5369
|
return {
|
|
5350
5370
|
x: u,
|
|
5351
|
-
y:
|
|
5371
|
+
y: m,
|
|
5352
5372
|
width: i.width,
|
|
5353
5373
|
height: i.height
|
|
5354
5374
|
};
|
|
@@ -5356,7 +5376,7 @@ function _l(e, t, n) {
|
|
|
5356
5376
|
function on(e) {
|
|
5357
5377
|
return fe(e).position === "static";
|
|
5358
5378
|
}
|
|
5359
|
-
function
|
|
5379
|
+
function Sr(e, t) {
|
|
5360
5380
|
if (!ve(e) || fe(e).position === "fixed")
|
|
5361
5381
|
return null;
|
|
5362
5382
|
if (t)
|
|
@@ -5377,9 +5397,9 @@ function Uo(e, t) {
|
|
|
5377
5397
|
}
|
|
5378
5398
|
return n;
|
|
5379
5399
|
}
|
|
5380
|
-
let r =
|
|
5400
|
+
let r = Sr(e, t);
|
|
5381
5401
|
for (; r && Cl(r) && on(r); )
|
|
5382
|
-
r =
|
|
5402
|
+
r = Sr(r, t);
|
|
5383
5403
|
return r && qe(r) && on(r) && !zn(r) ? n : r || Sl(e) || n;
|
|
5384
5404
|
}
|
|
5385
5405
|
const Ll = async function(e) {
|
|
@@ -5419,31 +5439,31 @@ function zl(e, t) {
|
|
|
5419
5439
|
var c;
|
|
5420
5440
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
5421
5441
|
}
|
|
5422
|
-
function i(c,
|
|
5423
|
-
c === void 0 && (c = !1),
|
|
5424
|
-
const
|
|
5442
|
+
function i(c, l) {
|
|
5443
|
+
c === void 0 && (c = !1), l === void 0 && (l = 1), a();
|
|
5444
|
+
const d = e.getBoundingClientRect(), {
|
|
5425
5445
|
left: u,
|
|
5426
|
-
top:
|
|
5446
|
+
top: m,
|
|
5427
5447
|
width: v,
|
|
5428
5448
|
height: h
|
|
5429
|
-
} =
|
|
5449
|
+
} = d;
|
|
5430
5450
|
if (c || t(), !v || !h)
|
|
5431
5451
|
return;
|
|
5432
|
-
const b = yt(
|
|
5452
|
+
const b = yt(m), f = yt(o.clientWidth - (u + v)), g = yt(o.clientHeight - (m + h)), w = yt(u), x = {
|
|
5433
5453
|
rootMargin: -b + "px " + -f + "px " + -g + "px " + -w + "px",
|
|
5434
|
-
threshold: ie(0, Ae(1,
|
|
5454
|
+
threshold: ie(0, Ae(1, l)) || 1
|
|
5435
5455
|
};
|
|
5436
5456
|
let C = !0;
|
|
5437
5457
|
function S(E) {
|
|
5438
5458
|
const T = E[0].intersectionRatio;
|
|
5439
|
-
if (T !==
|
|
5459
|
+
if (T !== l) {
|
|
5440
5460
|
if (!C)
|
|
5441
5461
|
return i();
|
|
5442
5462
|
T ? i(!1, T) : r = setTimeout(() => {
|
|
5443
5463
|
i(!1, 1e-7);
|
|
5444
5464
|
}, 1e3);
|
|
5445
5465
|
}
|
|
5446
|
-
T === 1 && !Ko(
|
|
5466
|
+
T === 1 && !Ko(d, e.getBoundingClientRect()) && i(), C = !1;
|
|
5447
5467
|
}
|
|
5448
5468
|
try {
|
|
5449
5469
|
n = new IntersectionObserver(S, {
|
|
@@ -5465,24 +5485,24 @@ function Wl(e, t, n, r) {
|
|
|
5465
5485
|
ancestorResize: a = !0,
|
|
5466
5486
|
elementResize: i = typeof ResizeObserver == "function",
|
|
5467
5487
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5468
|
-
animationFrame:
|
|
5469
|
-
} = r,
|
|
5488
|
+
animationFrame: l = !1
|
|
5489
|
+
} = r, d = Bn(e), u = o || a ? [...d ? st(d) : [], ...st(t)] : [];
|
|
5470
5490
|
u.forEach((w) => {
|
|
5471
5491
|
o && w.addEventListener("scroll", n, {
|
|
5472
5492
|
passive: !0
|
|
5473
5493
|
}), a && w.addEventListener("resize", n);
|
|
5474
5494
|
});
|
|
5475
|
-
const
|
|
5495
|
+
const m = d && c ? zl(d, n) : null;
|
|
5476
5496
|
let v = -1, h = null;
|
|
5477
5497
|
i && (h = new ResizeObserver((w) => {
|
|
5478
5498
|
let [y] = w;
|
|
5479
|
-
y && y.target ===
|
|
5499
|
+
y && y.target === d && h && (h.unobserve(t), cancelAnimationFrame(v), v = requestAnimationFrame(() => {
|
|
5480
5500
|
var x;
|
|
5481
5501
|
(x = h) == null || x.observe(t);
|
|
5482
5502
|
})), n();
|
|
5483
|
-
}),
|
|
5484
|
-
let b, f =
|
|
5485
|
-
|
|
5503
|
+
}), d && !l && h.observe(d), h.observe(t));
|
|
5504
|
+
let b, f = l ? ze(e) : null;
|
|
5505
|
+
l && g();
|
|
5486
5506
|
function g() {
|
|
5487
5507
|
const w = ze(e);
|
|
5488
5508
|
f && !Ko(f, w) && n(), f = w, b = requestAnimationFrame(g);
|
|
@@ -5491,10 +5511,10 @@ function Wl(e, t, n, r) {
|
|
|
5491
5511
|
var w;
|
|
5492
5512
|
u.forEach((y) => {
|
|
5493
5513
|
o && y.removeEventListener("scroll", n), a && y.removeEventListener("resize", n);
|
|
5494
|
-
}),
|
|
5514
|
+
}), m == null || m(), (w = h) == null || w.disconnect(), h = null, l && cancelAnimationFrame(b);
|
|
5495
5515
|
};
|
|
5496
5516
|
}
|
|
5497
|
-
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) => {
|
|
5498
5518
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5499
5519
|
platform: $l,
|
|
5500
5520
|
...n
|
|
@@ -5541,7 +5561,7 @@ function Dt(e, t) {
|
|
|
5541
5561
|
function Yo(e) {
|
|
5542
5562
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5543
5563
|
}
|
|
5544
|
-
function
|
|
5564
|
+
function Rr(e, t) {
|
|
5545
5565
|
const n = Yo(e);
|
|
5546
5566
|
return Math.round(t * n) / n;
|
|
5547
5567
|
}
|
|
@@ -5563,9 +5583,9 @@ function Yl(e) {
|
|
|
5563
5583
|
floating: i
|
|
5564
5584
|
} = {},
|
|
5565
5585
|
transform: c = !0,
|
|
5566
|
-
whileElementsMounted:
|
|
5567
|
-
open:
|
|
5568
|
-
} = e, [u,
|
|
5586
|
+
whileElementsMounted: l,
|
|
5587
|
+
open: d
|
|
5588
|
+
} = e, [u, m] = s.useState({
|
|
5569
5589
|
x: 0,
|
|
5570
5590
|
y: 0,
|
|
5571
5591
|
strategy: n,
|
|
@@ -5578,7 +5598,7 @@ function Yl(e) {
|
|
|
5578
5598
|
O !== E.current && (E.current = O, f(O));
|
|
5579
5599
|
}, []), x = s.useCallback((O) => {
|
|
5580
5600
|
O !== T.current && (T.current = O, w(O));
|
|
5581
|
-
}, []), 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(() => {
|
|
5582
5602
|
if (!E.current || !T.current)
|
|
5583
5603
|
return;
|
|
5584
5604
|
const O = {
|
|
@@ -5596,16 +5616,16 @@ function Yl(e) {
|
|
|
5596
5616
|
isPositioned: z.current !== !1
|
|
5597
5617
|
};
|
|
5598
5618
|
R.current && !Dt(F.current, K) && (F.current = K, Rn.flushSync(() => {
|
|
5599
|
-
|
|
5619
|
+
m(K);
|
|
5600
5620
|
}));
|
|
5601
5621
|
});
|
|
5602
5622
|
}, [v, t, n, V, z]);
|
|
5603
5623
|
Tt(() => {
|
|
5604
|
-
|
|
5624
|
+
d === !1 && F.current.isPositioned && (F.current.isPositioned = !1, m((O) => ({
|
|
5605
5625
|
...O,
|
|
5606
5626
|
isPositioned: !1
|
|
5607
5627
|
})));
|
|
5608
|
-
}, [
|
|
5628
|
+
}, [d]);
|
|
5609
5629
|
const R = s.useRef(!1);
|
|
5610
5630
|
Tt(() => (R.current = !0, () => {
|
|
5611
5631
|
R.current = !1;
|
|
@@ -5632,7 +5652,7 @@ function Yl(e) {
|
|
|
5632
5652
|
};
|
|
5633
5653
|
if (!N.floating)
|
|
5634
5654
|
return O;
|
|
5635
|
-
const _ =
|
|
5655
|
+
const _ = Rr(N.floating, u.x), K = Rr(N.floating, u.y);
|
|
5636
5656
|
return c ? {
|
|
5637
5657
|
...O,
|
|
5638
5658
|
transform: "translate(" + _ + "px, " + K + "px)",
|
|
@@ -5665,10 +5685,10 @@ const Xl = (e) => {
|
|
|
5665
5685
|
element: r,
|
|
5666
5686
|
padding: o
|
|
5667
5687
|
} = typeof e == "function" ? e(n) : e;
|
|
5668
|
-
return r && t(r) ? r.current != null ?
|
|
5688
|
+
return r && t(r) ? r.current != null ? Tr({
|
|
5669
5689
|
element: r.current,
|
|
5670
5690
|
padding: o
|
|
5671
|
-
}).fn(n) : {} : r ?
|
|
5691
|
+
}).fn(n) : {} : r ? Tr({
|
|
5672
5692
|
element: r,
|
|
5673
5693
|
padding: o
|
|
5674
5694
|
}).fn(n) : {};
|
|
@@ -5698,7 +5718,7 @@ const Xl = (e) => {
|
|
|
5698
5718
|
});
|
|
5699
5719
|
var rd = "Arrow", Xo = s.forwardRef((e, t) => {
|
|
5700
5720
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
5701
|
-
return /* @__PURE__ */
|
|
5721
|
+
return /* @__PURE__ */ p(
|
|
5702
5722
|
Y.svg,
|
|
5703
5723
|
{
|
|
5704
5724
|
...a,
|
|
@@ -5707,7 +5727,7 @@ var rd = "Arrow", Xo = s.forwardRef((e, t) => {
|
|
|
5707
5727
|
height: o,
|
|
5708
5728
|
viewBox: "0 0 30 10",
|
|
5709
5729
|
preserveAspectRatio: "none",
|
|
5710
|
-
children: e.asChild ? n : /* @__PURE__ */
|
|
5730
|
+
children: e.asChild ? n : /* @__PURE__ */ p("polygon", { points: "0,0 30,0 15,10" })
|
|
5711
5731
|
}
|
|
5712
5732
|
);
|
|
5713
5733
|
});
|
|
@@ -5724,8 +5744,8 @@ function ad(e) {
|
|
|
5724
5744
|
const a = o[0];
|
|
5725
5745
|
let i, c;
|
|
5726
5746
|
if ("borderBoxSize" in a) {
|
|
5727
|
-
const
|
|
5728
|
-
i =
|
|
5747
|
+
const l = a.borderBoxSize, d = Array.isArray(l) ? l[0] : l;
|
|
5748
|
+
i = d.inlineSize, c = d.blockSize;
|
|
5729
5749
|
} else
|
|
5730
5750
|
i = e.offsetWidth, c = e.offsetHeight;
|
|
5731
5751
|
n({ width: i, height: c });
|
|
@@ -5737,7 +5757,7 @@ function ad(e) {
|
|
|
5737
5757
|
}
|
|
5738
5758
|
var Hn = "Popper", [qo, Zo] = ct(Hn), [id, Qo] = qo(Hn), Jo = (e) => {
|
|
5739
5759
|
const { __scopePopper: t, children: n } = e, [r, o] = s.useState(null);
|
|
5740
|
-
return /* @__PURE__ */
|
|
5760
|
+
return /* @__PURE__ */ p(id, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5741
5761
|
};
|
|
5742
5762
|
Jo.displayName = Hn;
|
|
5743
5763
|
var ea = "PopperAnchor", ta = s.forwardRef(
|
|
@@ -5745,7 +5765,7 @@ var ea = "PopperAnchor", ta = s.forwardRef(
|
|
|
5745
5765
|
const { __scopePopper: n, virtualRef: r, ...o } = e, a = Qo(ea, n), i = s.useRef(null), c = ee(t, i);
|
|
5746
5766
|
return s.useEffect(() => {
|
|
5747
5767
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
5748
|
-
}), r ? null : /* @__PURE__ */
|
|
5768
|
+
}), r ? null : /* @__PURE__ */ p(Y.div, { ...o, ref: c });
|
|
5749
5769
|
}
|
|
5750
5770
|
);
|
|
5751
5771
|
ta.displayName = ea;
|
|
@@ -5759,15 +5779,15 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5759
5779
|
align: a = "center",
|
|
5760
5780
|
alignOffset: i = 0,
|
|
5761
5781
|
arrowPadding: c = 0,
|
|
5762
|
-
avoidCollisions:
|
|
5763
|
-
collisionBoundary:
|
|
5782
|
+
avoidCollisions: l = !0,
|
|
5783
|
+
collisionBoundary: d = [],
|
|
5764
5784
|
collisionPadding: u = 0,
|
|
5765
|
-
sticky:
|
|
5785
|
+
sticky: m = "partial",
|
|
5766
5786
|
hideWhenDetached: v = !1,
|
|
5767
5787
|
updatePositionStrategy: h = "optimized",
|
|
5768
5788
|
onPlaced: b,
|
|
5769
5789
|
...f
|
|
5770
|
-
} = 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(
|
|
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 = {
|
|
5771
5791
|
padding: $,
|
|
5772
5792
|
boundary: V.filter(dd),
|
|
5773
5793
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5784,13 +5804,13 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5784
5804
|
},
|
|
5785
5805
|
middleware: [
|
|
5786
5806
|
ql({ mainAxis: o + F, alignmentAxis: i }),
|
|
5787
|
-
|
|
5807
|
+
l && Zl({
|
|
5788
5808
|
mainAxis: !0,
|
|
5789
5809
|
crossAxis: !1,
|
|
5790
|
-
limiter:
|
|
5810
|
+
limiter: m === "partial" ? Ql() : void 0,
|
|
5791
5811
|
...M
|
|
5792
5812
|
}),
|
|
5793
|
-
|
|
5813
|
+
l && Jl({ ...M }),
|
|
5794
5814
|
ed({
|
|
5795
5815
|
...M,
|
|
5796
5816
|
apply: ({ elements: Me, rects: D, availableWidth: L, availableHeight: Z }) => {
|
|
@@ -5809,7 +5829,7 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5809
5829
|
const te = (me = O.arrow) == null ? void 0 : me.x, Q = (nt = O.arrow) == null ? void 0 : nt.y, J = ((ut = O.arrow) == null ? void 0 : ut.centerOffset) !== 0, [oe, Ee] = s.useState();
|
|
5810
5830
|
return Pe(() => {
|
|
5811
5831
|
w && Ee(window.getComputedStyle(w).zIndex);
|
|
5812
|
-
}, [w]), /* @__PURE__ */
|
|
5832
|
+
}, [w]), /* @__PURE__ */ p(
|
|
5813
5833
|
"div",
|
|
5814
5834
|
{
|
|
5815
5835
|
ref: R.setFloating,
|
|
@@ -5833,7 +5853,7 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5833
5853
|
}
|
|
5834
5854
|
},
|
|
5835
5855
|
dir: e.dir,
|
|
5836
|
-
children: /* @__PURE__ */
|
|
5856
|
+
children: /* @__PURE__ */ p(
|
|
5837
5857
|
sd,
|
|
5838
5858
|
{
|
|
5839
5859
|
scope: n,
|
|
@@ -5842,7 +5862,7 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5842
5862
|
arrowX: te,
|
|
5843
5863
|
arrowY: Q,
|
|
5844
5864
|
shouldHideArrow: J,
|
|
5845
|
-
children: /* @__PURE__ */
|
|
5865
|
+
children: /* @__PURE__ */ p(
|
|
5846
5866
|
Y.div,
|
|
5847
5867
|
{
|
|
5848
5868
|
"data-side": _,
|
|
@@ -5875,7 +5895,7 @@ var ra = "PopperArrow", ld = {
|
|
|
5875
5895
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5876
5896
|
// doesn't report size as we'd expect on SVG elements.
|
|
5877
5897
|
// it reports their bounding box which is effectively the largest path inside the SVG.
|
|
5878
|
-
/* @__PURE__ */
|
|
5898
|
+
/* @__PURE__ */ p(
|
|
5879
5899
|
"span",
|
|
5880
5900
|
{
|
|
5881
5901
|
ref: a.onArrowChange,
|
|
@@ -5898,7 +5918,7 @@ var ra = "PopperArrow", ld = {
|
|
|
5898
5918
|
}[a.placedSide],
|
|
5899
5919
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
5900
5920
|
},
|
|
5901
|
-
children: /* @__PURE__ */
|
|
5921
|
+
children: /* @__PURE__ */ p(
|
|
5902
5922
|
od,
|
|
5903
5923
|
{
|
|
5904
5924
|
...o,
|
|
@@ -5923,9 +5943,9 @@ var ud = (e) => ({
|
|
|
5923
5943
|
options: e,
|
|
5924
5944
|
fn(t) {
|
|
5925
5945
|
var g, w, y;
|
|
5926
|
-
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;
|
|
5927
5947
|
let b = "", f = "";
|
|
5928
|
-
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 } };
|
|
5929
5949
|
}
|
|
5930
5950
|
});
|
|
5931
5951
|
function aa(e) {
|
|
@@ -5933,7 +5953,7 @@ function aa(e) {
|
|
|
5933
5953
|
return [t, n];
|
|
5934
5954
|
}
|
|
5935
5955
|
var fd = Jo, pd = ta, md = na, hd = oa, gd = "VisuallyHidden", Bt = s.forwardRef(
|
|
5936
|
-
(e, t) => /* @__PURE__ */
|
|
5956
|
+
(e, t) => /* @__PURE__ */ p(
|
|
5937
5957
|
Y.span,
|
|
5938
5958
|
{
|
|
5939
5959
|
...e,
|
|
@@ -5956,7 +5976,7 @@ var fd = Jo, pd = ta, md = na, hd = oa, gd = "VisuallyHidden", Bt = s.forwardRef
|
|
|
5956
5976
|
)
|
|
5957
5977
|
);
|
|
5958
5978
|
Bt.displayName = gd;
|
|
5959
|
-
var vd = Bt, [Vt,
|
|
5979
|
+
var vd = Bt, [Vt, qu] = ct("Tooltip", [
|
|
5960
5980
|
Zo
|
|
5961
5981
|
]), Ht = Zo(), ia = "TooltipProvider", bd = 700, yn = "tooltip.open", [wd, Gn] = Vt(ia), sa = (e) => {
|
|
5962
5982
|
const {
|
|
@@ -5965,28 +5985,28 @@ var vd = Bt, [Vt, Xu] = ct("Tooltip", [
|
|
|
5965
5985
|
skipDelayDuration: r = 300,
|
|
5966
5986
|
disableHoverableContent: o = !1,
|
|
5967
5987
|
children: a
|
|
5968
|
-
} = e, [i, c] = s.useState(!0),
|
|
5988
|
+
} = e, [i, c] = s.useState(!0), l = s.useRef(!1), d = s.useRef(0);
|
|
5969
5989
|
return s.useEffect(() => {
|
|
5970
|
-
const u =
|
|
5990
|
+
const u = d.current;
|
|
5971
5991
|
return () => window.clearTimeout(u);
|
|
5972
|
-
}, []), /* @__PURE__ */
|
|
5992
|
+
}, []), /* @__PURE__ */ p(
|
|
5973
5993
|
wd,
|
|
5974
5994
|
{
|
|
5975
5995
|
scope: t,
|
|
5976
5996
|
isOpenDelayed: i,
|
|
5977
5997
|
delayDuration: n,
|
|
5978
5998
|
onOpen: s.useCallback(() => {
|
|
5979
|
-
window.clearTimeout(
|
|
5999
|
+
window.clearTimeout(d.current), c(!1);
|
|
5980
6000
|
}, []),
|
|
5981
6001
|
onClose: s.useCallback(() => {
|
|
5982
|
-
window.clearTimeout(
|
|
6002
|
+
window.clearTimeout(d.current), d.current = window.setTimeout(
|
|
5983
6003
|
() => c(!0),
|
|
5984
6004
|
r
|
|
5985
6005
|
);
|
|
5986
6006
|
}, [r]),
|
|
5987
|
-
isPointerInTransitRef:
|
|
6007
|
+
isPointerInTransitRef: l,
|
|
5988
6008
|
onPointerInTransitChange: s.useCallback((u) => {
|
|
5989
|
-
|
|
6009
|
+
l.current = u;
|
|
5990
6010
|
}, []),
|
|
5991
6011
|
disableHoverableContent: o,
|
|
5992
6012
|
children: a
|
|
@@ -6003,11 +6023,11 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6003
6023
|
onOpenChange: a,
|
|
6004
6024
|
disableHoverableContent: i,
|
|
6005
6025
|
delayDuration: c
|
|
6006
|
-
} = 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({
|
|
6007
6027
|
prop: r,
|
|
6008
6028
|
defaultProp: o,
|
|
6009
6029
|
onChange: (T) => {
|
|
6010
|
-
T ? (
|
|
6030
|
+
T ? (l.onOpen(), document.dispatchEvent(new CustomEvent(yn))) : l.onClose(), a == null || a(T);
|
|
6011
6031
|
}
|
|
6012
6032
|
}), x = s.useMemo(() => w ? g.current ? "delayed-open" : "instant-open" : "closed", [w]), C = s.useCallback(() => {
|
|
6013
6033
|
window.clearTimeout(h.current), h.current = 0, g.current = !1, y(!0);
|
|
@@ -6020,7 +6040,7 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6020
6040
|
}, [f, y]);
|
|
6021
6041
|
return s.useEffect(() => () => {
|
|
6022
6042
|
h.current && (window.clearTimeout(h.current), h.current = 0);
|
|
6023
|
-
}, []), /* @__PURE__ */
|
|
6043
|
+
}, []), /* @__PURE__ */ p(fd, { ...d, children: /* @__PURE__ */ p(
|
|
6024
6044
|
yd,
|
|
6025
6045
|
{
|
|
6026
6046
|
scope: t,
|
|
@@ -6028,10 +6048,10 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6028
6048
|
open: w,
|
|
6029
6049
|
stateAttribute: x,
|
|
6030
6050
|
trigger: u,
|
|
6031
|
-
onTriggerChange:
|
|
6051
|
+
onTriggerChange: m,
|
|
6032
6052
|
onTriggerEnter: s.useCallback(() => {
|
|
6033
|
-
|
|
6034
|
-
}, [
|
|
6053
|
+
l.isOpenDelayed ? E() : C();
|
|
6054
|
+
}, [l.isOpenDelayed, E, C]),
|
|
6035
6055
|
onTriggerLeave: s.useCallback(() => {
|
|
6036
6056
|
b ? S() : (window.clearTimeout(h.current), h.current = 0);
|
|
6037
6057
|
}, [S, b]),
|
|
@@ -6045,14 +6065,14 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6045
6065
|
ca.displayName = jt;
|
|
6046
6066
|
var xn = "TooltipTrigger", la = s.forwardRef(
|
|
6047
6067
|
(e, t) => {
|
|
6048
|
-
const { __scopeTooltip: n, ...r } = e, o = dt(xn, n), a = Gn(xn, n), i = Ht(n), c = s.useRef(null),
|
|
6049
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup",
|
|
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
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ p(pd, { asChild: !0, ...i, children: /* @__PURE__ */ p(
|
|
6050
6070
|
Y.button,
|
|
6051
6071
|
{
|
|
6052
6072
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6053
6073
|
"data-state": o.stateAttribute,
|
|
6054
6074
|
...r,
|
|
6055
|
-
ref:
|
|
6075
|
+
ref: l,
|
|
6056
6076
|
onPointerMove: U(e.onPointerMove, (v) => {
|
|
6057
6077
|
v.pointerType !== "touch" && !u.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), u.current = !0);
|
|
6058
6078
|
}),
|
|
@@ -6060,10 +6080,10 @@ var xn = "TooltipTrigger", la = s.forwardRef(
|
|
|
6060
6080
|
o.onTriggerLeave(), u.current = !1;
|
|
6061
6081
|
}),
|
|
6062
6082
|
onPointerDown: U(e.onPointerDown, () => {
|
|
6063
|
-
|
|
6083
|
+
d.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
6064
6084
|
}),
|
|
6065
6085
|
onFocus: U(e.onFocus, () => {
|
|
6066
|
-
|
|
6086
|
+
d.current || o.onOpen();
|
|
6067
6087
|
}),
|
|
6068
6088
|
onBlur: U(e.onBlur, o.onClose),
|
|
6069
6089
|
onClick: U(e.onClick, o.onClose)
|
|
@@ -6076,40 +6096,40 @@ var Un = "TooltipPortal", [xd, Ed] = Vt(Un, {
|
|
|
6076
6096
|
forceMount: void 0
|
|
6077
6097
|
}), da = (e) => {
|
|
6078
6098
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = dt(Un, t);
|
|
6079
|
-
return /* @__PURE__ */
|
|
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 }) }) });
|
|
6080
6100
|
};
|
|
6081
6101
|
da.displayName = Un;
|
|
6082
6102
|
var Ze = "TooltipContent", ua = s.forwardRef(
|
|
6083
6103
|
(e, t) => {
|
|
6084
6104
|
const n = Ed(Ze, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = dt(Ze, e.__scopeTooltip);
|
|
6085
|
-
return /* @__PURE__ */
|
|
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 }) });
|
|
6086
6106
|
}
|
|
6087
6107
|
), Cd = s.forwardRef((e, t) => {
|
|
6088
|
-
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:
|
|
6089
|
-
c(null),
|
|
6090
|
-
}, [
|
|
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
|
+
c(null), m(!1);
|
|
6110
|
+
}, [m]), h = s.useCallback(
|
|
6091
6111
|
(b, f) => {
|
|
6092
6112
|
const g = b.currentTarget, w = { x: b.clientX, y: b.clientY }, y = Pd(w, g.getBoundingClientRect()), x = Ad(w, y), C = Nd(f.getBoundingClientRect()), S = Md([...x, ...C]);
|
|
6093
|
-
c(S),
|
|
6113
|
+
c(S), m(!0);
|
|
6094
6114
|
},
|
|
6095
|
-
[
|
|
6115
|
+
[m]
|
|
6096
6116
|
);
|
|
6097
6117
|
return s.useEffect(() => () => v(), [v]), s.useEffect(() => {
|
|
6098
|
-
if (
|
|
6099
|
-
const b = (g) => h(g, u), f = (g) => h(g,
|
|
6100
|
-
return
|
|
6101
|
-
|
|
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);
|
|
6102
6122
|
};
|
|
6103
6123
|
}
|
|
6104
|
-
}, [
|
|
6124
|
+
}, [l, u, h, v]), s.useEffect(() => {
|
|
6105
6125
|
if (i) {
|
|
6106
6126
|
const b = (f) => {
|
|
6107
|
-
const g = f.target, w = { x: f.clientX, y: f.clientY }, y = (
|
|
6108
|
-
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());
|
|
6109
6129
|
};
|
|
6110
6130
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6111
6131
|
}
|
|
6112
|
-
}, [
|
|
6132
|
+
}, [l, u, i, d, v]), /* @__PURE__ */ p(fa, { ...e, ref: a });
|
|
6113
6133
|
}), [Sd, Td] = Vt(jt, { isInside: !1 }), fa = s.forwardRef(
|
|
6114
6134
|
(e, t) => {
|
|
6115
6135
|
const {
|
|
@@ -6119,29 +6139,29 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6119
6139
|
onEscapeKeyDown: a,
|
|
6120
6140
|
onPointerDownOutside: i,
|
|
6121
6141
|
...c
|
|
6122
|
-
} = e,
|
|
6142
|
+
} = e, l = dt(Ze, n), d = Ht(n), { onClose: u } = l;
|
|
6123
6143
|
return s.useEffect(() => (document.addEventListener(yn, u), () => document.removeEventListener(yn, u)), [u]), s.useEffect(() => {
|
|
6124
|
-
if (
|
|
6125
|
-
const
|
|
6144
|
+
if (l.trigger) {
|
|
6145
|
+
const m = (v) => {
|
|
6126
6146
|
const h = v.target;
|
|
6127
|
-
h != null && h.contains(
|
|
6147
|
+
h != null && h.contains(l.trigger) && u();
|
|
6128
6148
|
};
|
|
6129
|
-
return window.addEventListener("scroll",
|
|
6149
|
+
return window.addEventListener("scroll", m, { capture: !0 }), () => window.removeEventListener("scroll", m, { capture: !0 });
|
|
6130
6150
|
}
|
|
6131
|
-
}, [
|
|
6151
|
+
}, [l.trigger, u]), /* @__PURE__ */ p(
|
|
6132
6152
|
_t,
|
|
6133
6153
|
{
|
|
6134
6154
|
asChild: !0,
|
|
6135
6155
|
disableOutsidePointerEvents: !1,
|
|
6136
6156
|
onEscapeKeyDown: a,
|
|
6137
6157
|
onPointerDownOutside: i,
|
|
6138
|
-
onFocusOutside: (
|
|
6158
|
+
onFocusOutside: (m) => m.preventDefault(),
|
|
6139
6159
|
onDismiss: u,
|
|
6140
6160
|
children: /* @__PURE__ */ G(
|
|
6141
6161
|
md,
|
|
6142
6162
|
{
|
|
6143
|
-
"data-state":
|
|
6144
|
-
...
|
|
6163
|
+
"data-state": l.stateAttribute,
|
|
6164
|
+
...d,
|
|
6145
6165
|
...c,
|
|
6146
6166
|
ref: t,
|
|
6147
6167
|
style: {
|
|
@@ -6153,8 +6173,8 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6153
6173
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6154
6174
|
},
|
|
6155
6175
|
children: [
|
|
6156
|
-
/* @__PURE__ */
|
|
6157
|
-
/* @__PURE__ */
|
|
6176
|
+
/* @__PURE__ */ p(qr, { children: r }),
|
|
6177
|
+
/* @__PURE__ */ p(Sd, { scope: n, isInside: !0, children: /* @__PURE__ */ p(vd, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
6158
6178
|
]
|
|
6159
6179
|
}
|
|
6160
6180
|
)
|
|
@@ -6169,7 +6189,7 @@ var pa = "TooltipArrow", Rd = s.forwardRef(
|
|
|
6169
6189
|
return Td(
|
|
6170
6190
|
pa,
|
|
6171
6191
|
n
|
|
6172
|
-
).isInside ? null : /* @__PURE__ */
|
|
6192
|
+
).isInside ? null : /* @__PURE__ */ p(hd, { ...o, ...r, ref: t });
|
|
6173
6193
|
}
|
|
6174
6194
|
);
|
|
6175
6195
|
Rd.displayName = pa;
|
|
@@ -6231,8 +6251,8 @@ function Od(e, t) {
|
|
|
6231
6251
|
const { x: n, y: r } = e;
|
|
6232
6252
|
let o = !1;
|
|
6233
6253
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
6234
|
-
const c = t[a].x,
|
|
6235
|
-
|
|
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);
|
|
6236
6256
|
}
|
|
6237
6257
|
return o;
|
|
6238
6258
|
}
|
|
@@ -6266,7 +6286,7 @@ function kd(e) {
|
|
|
6266
6286
|
return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
|
|
6267
6287
|
}
|
|
6268
6288
|
var Dd = sa, Id = ca, _d = la, Ld = da, ma = ua;
|
|
6269
|
-
const Fd = Dd, $d = Id, zd = _d, ha = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */
|
|
6289
|
+
const Fd = Dd, $d = Id, zd = _d, ha = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ p(Ld, { children: /* @__PURE__ */ p(
|
|
6270
6290
|
ma,
|
|
6271
6291
|
{
|
|
6272
6292
|
ref: r,
|
|
@@ -6296,13 +6316,13 @@ const va = s.forwardRef(
|
|
|
6296
6316
|
children: a,
|
|
6297
6317
|
...i
|
|
6298
6318
|
}, c) => {
|
|
6299
|
-
const
|
|
6319
|
+
const l = al(), [d, u] = s.useState(!1), [m, v] = s.useState(e), h = t ?? m, b = s.useCallback(
|
|
6300
6320
|
(y) => {
|
|
6301
6321
|
const x = typeof y == "function" ? y(h) : y;
|
|
6302
6322
|
n ? n(x) : v(x), document.cookie = `${Wd}=${x}; path=/; max-age=${Bd}`;
|
|
6303
6323
|
},
|
|
6304
6324
|
[n, h]
|
|
6305
|
-
), f = s.useCallback(() =>
|
|
6325
|
+
), f = s.useCallback(() => l ? u((y) => !y) : b((y) => !y), [l, b, u]);
|
|
6306
6326
|
s.useEffect(() => {
|
|
6307
6327
|
const y = (x) => {
|
|
6308
6328
|
x.key === Gd && (x.metaKey || x.ctrlKey) && (x.preventDefault(), f());
|
|
@@ -6314,14 +6334,14 @@ const va = s.forwardRef(
|
|
|
6314
6334
|
state: g,
|
|
6315
6335
|
open: h,
|
|
6316
6336
|
setOpen: b,
|
|
6317
|
-
isMobile:
|
|
6318
|
-
openMobile:
|
|
6337
|
+
isMobile: l,
|
|
6338
|
+
openMobile: d,
|
|
6319
6339
|
setOpenMobile: u,
|
|
6320
6340
|
toggleSidebar: f
|
|
6321
6341
|
}),
|
|
6322
|
-
[g, h, b,
|
|
6342
|
+
[g, h, b, l, d, u, f]
|
|
6323
6343
|
);
|
|
6324
|
-
return /* @__PURE__ */
|
|
6344
|
+
return /* @__PURE__ */ p(ga.Provider, { value: w, children: /* @__PURE__ */ p(Fd, { delayDuration: 0, children: /* @__PURE__ */ p(
|
|
6325
6345
|
"div",
|
|
6326
6346
|
{
|
|
6327
6347
|
style: {
|
|
@@ -6350,8 +6370,8 @@ const ba = s.forwardRef(
|
|
|
6350
6370
|
children: o,
|
|
6351
6371
|
...a
|
|
6352
6372
|
}, i) => {
|
|
6353
|
-
const { isMobile: c, state:
|
|
6354
|
-
return n === "none" ? /* @__PURE__ */
|
|
6373
|
+
const { isMobile: c, state: l, openMobile: d, setOpenMobile: u } = Gt();
|
|
6374
|
+
return n === "none" ? /* @__PURE__ */ p(
|
|
6355
6375
|
"div",
|
|
6356
6376
|
{
|
|
6357
6377
|
className: I(
|
|
@@ -6362,7 +6382,7 @@ const ba = s.forwardRef(
|
|
|
6362
6382
|
...a,
|
|
6363
6383
|
children: o
|
|
6364
6384
|
}
|
|
6365
|
-
) : c ? /* @__PURE__ */
|
|
6385
|
+
) : c ? /* @__PURE__ */ p(Qc, { open: d, onOpenChange: u, ...a, children: /* @__PURE__ */ p(
|
|
6366
6386
|
$o,
|
|
6367
6387
|
{
|
|
6368
6388
|
"data-sidebar": "sidebar",
|
|
@@ -6372,19 +6392,19 @@ const ba = s.forwardRef(
|
|
|
6372
6392
|
"--sidebar-width": Hd
|
|
6373
6393
|
},
|
|
6374
6394
|
side: e,
|
|
6375
|
-
children: /* @__PURE__ */
|
|
6395
|
+
children: /* @__PURE__ */ p("div", { className: "flex h-full w-full flex-col", children: o })
|
|
6376
6396
|
}
|
|
6377
6397
|
) }) : /* @__PURE__ */ G(
|
|
6378
6398
|
"div",
|
|
6379
6399
|
{
|
|
6380
6400
|
ref: i,
|
|
6381
6401
|
className: "group peer hidden md:block text-sidebar-foreground",
|
|
6382
|
-
"data-state":
|
|
6383
|
-
"data-collapsible":
|
|
6402
|
+
"data-state": l,
|
|
6403
|
+
"data-collapsible": l === "collapsed" ? n : "",
|
|
6384
6404
|
"data-variant": t,
|
|
6385
6405
|
"data-side": e,
|
|
6386
6406
|
children: [
|
|
6387
|
-
/* @__PURE__ */
|
|
6407
|
+
/* @__PURE__ */ p(
|
|
6388
6408
|
"div",
|
|
6389
6409
|
{
|
|
6390
6410
|
className: I(
|
|
@@ -6395,7 +6415,7 @@ const ba = s.forwardRef(
|
|
|
6395
6415
|
)
|
|
6396
6416
|
}
|
|
6397
6417
|
),
|
|
6398
|
-
/* @__PURE__ */
|
|
6418
|
+
/* @__PURE__ */ p(
|
|
6399
6419
|
"div",
|
|
6400
6420
|
{
|
|
6401
6421
|
className: I(
|
|
@@ -6406,7 +6426,7 @@ const ba = s.forwardRef(
|
|
|
6406
6426
|
r
|
|
6407
6427
|
),
|
|
6408
6428
|
...a,
|
|
6409
|
-
children: /* @__PURE__ */
|
|
6429
|
+
children: /* @__PURE__ */ p(
|
|
6410
6430
|
"div",
|
|
6411
6431
|
{
|
|
6412
6432
|
"data-sidebar": "sidebar",
|
|
@@ -6437,8 +6457,8 @@ const wa = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6437
6457
|
},
|
|
6438
6458
|
...n,
|
|
6439
6459
|
children: [
|
|
6440
|
-
/* @__PURE__ */
|
|
6441
|
-
/* @__PURE__ */
|
|
6460
|
+
/* @__PURE__ */ p(Ai, {}),
|
|
6461
|
+
/* @__PURE__ */ p("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6442
6462
|
]
|
|
6443
6463
|
}
|
|
6444
6464
|
);
|
|
@@ -6446,7 +6466,7 @@ const wa = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6446
6466
|
wa.displayName = "SidebarTrigger";
|
|
6447
6467
|
const Ud = s.forwardRef(({ className: e, ...t }, n) => {
|
|
6448
6468
|
const { toggleSidebar: r } = Gt();
|
|
6449
|
-
return /* @__PURE__ */
|
|
6469
|
+
return /* @__PURE__ */ p(
|
|
6450
6470
|
"button",
|
|
6451
6471
|
{
|
|
6452
6472
|
ref: n,
|
|
@@ -6469,7 +6489,7 @@ const Ud = s.forwardRef(({ className: e, ...t }, n) => {
|
|
|
6469
6489
|
);
|
|
6470
6490
|
});
|
|
6471
6491
|
Ud.displayName = "SidebarRail";
|
|
6472
|
-
const Kd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6492
|
+
const Kd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6473
6493
|
"main",
|
|
6474
6494
|
{
|
|
6475
6495
|
ref: n,
|
|
@@ -6482,7 +6502,7 @@ const Kd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6482
6502
|
}
|
|
6483
6503
|
));
|
|
6484
6504
|
Kd.displayName = "SidebarInset";
|
|
6485
|
-
const Yd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6505
|
+
const Yd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6486
6506
|
On,
|
|
6487
6507
|
{
|
|
6488
6508
|
ref: n,
|
|
@@ -6495,7 +6515,7 @@ const Yd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6495
6515
|
}
|
|
6496
6516
|
));
|
|
6497
6517
|
Yd.displayName = "SidebarInput";
|
|
6498
|
-
const ya = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6518
|
+
const ya = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6499
6519
|
"div",
|
|
6500
6520
|
{
|
|
6501
6521
|
ref: n,
|
|
@@ -6505,7 +6525,7 @@ const ya = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6505
6525
|
}
|
|
6506
6526
|
));
|
|
6507
6527
|
ya.displayName = "SidebarHeader";
|
|
6508
|
-
const xa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6528
|
+
const xa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6509
6529
|
"div",
|
|
6510
6530
|
{
|
|
6511
6531
|
ref: n,
|
|
@@ -6515,7 +6535,7 @@ const xa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6515
6535
|
}
|
|
6516
6536
|
));
|
|
6517
6537
|
xa.displayName = "SidebarFooter";
|
|
6518
|
-
const Xd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6538
|
+
const Xd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6519
6539
|
eo,
|
|
6520
6540
|
{
|
|
6521
6541
|
ref: n,
|
|
@@ -6525,7 +6545,7 @@ const Xd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6525
6545
|
}
|
|
6526
6546
|
));
|
|
6527
6547
|
Xd.displayName = "SidebarSeparator";
|
|
6528
|
-
const Ea = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6548
|
+
const Ea = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6529
6549
|
"div",
|
|
6530
6550
|
{
|
|
6531
6551
|
ref: n,
|
|
@@ -6538,7 +6558,7 @@ const Ea = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6538
6558
|
}
|
|
6539
6559
|
));
|
|
6540
6560
|
Ea.displayName = "SidebarContent";
|
|
6541
|
-
const qd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6561
|
+
const qd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6542
6562
|
"div",
|
|
6543
6563
|
{
|
|
6544
6564
|
ref: n,
|
|
@@ -6548,7 +6568,7 @@ const qd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6548
6568
|
}
|
|
6549
6569
|
));
|
|
6550
6570
|
qd.displayName = "SidebarGroup";
|
|
6551
|
-
const Zd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */
|
|
6571
|
+
const Zd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ p(
|
|
6552
6572
|
t ? de : "div",
|
|
6553
6573
|
{
|
|
6554
6574
|
ref: r,
|
|
@@ -6562,7 +6582,7 @@ const Zd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
6562
6582
|
}
|
|
6563
6583
|
));
|
|
6564
6584
|
Zd.displayName = "SidebarGroupLabel";
|
|
6565
|
-
const Qd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */
|
|
6585
|
+
const Qd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ p(
|
|
6566
6586
|
t ? de : "button",
|
|
6567
6587
|
{
|
|
6568
6588
|
ref: r,
|
|
@@ -6578,7 +6598,7 @@ const Qd = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
6578
6598
|
}
|
|
6579
6599
|
));
|
|
6580
6600
|
Qd.displayName = "SidebarGroupAction";
|
|
6581
|
-
const Jd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6601
|
+
const Jd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6582
6602
|
"div",
|
|
6583
6603
|
{
|
|
6584
6604
|
ref: n,
|
|
@@ -6588,7 +6608,7 @@ const Jd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6588
6608
|
}
|
|
6589
6609
|
));
|
|
6590
6610
|
Jd.displayName = "SidebarGroupContent";
|
|
6591
|
-
const Ca = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6611
|
+
const Ca = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6592
6612
|
"ul",
|
|
6593
6613
|
{
|
|
6594
6614
|
ref: n,
|
|
@@ -6598,7 +6618,7 @@ const Ca = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6598
6618
|
}
|
|
6599
6619
|
));
|
|
6600
6620
|
Ca.displayName = "SidebarMenu";
|
|
6601
|
-
const Sa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6621
|
+
const Sa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6602
6622
|
"li",
|
|
6603
6623
|
{
|
|
6604
6624
|
ref: n,
|
|
@@ -6637,8 +6657,8 @@ const eu = It(
|
|
|
6637
6657
|
className: a,
|
|
6638
6658
|
...i
|
|
6639
6659
|
}, c) => {
|
|
6640
|
-
const
|
|
6641
|
-
|
|
6660
|
+
const l = e ? de : "button", { isMobile: d, state: u } = Gt(), m = /* @__PURE__ */ p(
|
|
6661
|
+
l,
|
|
6642
6662
|
{
|
|
6643
6663
|
ref: c,
|
|
6644
6664
|
"data-sidebar": "menu-button",
|
|
@@ -6651,21 +6671,21 @@ const eu = It(
|
|
|
6651
6671
|
return o ? (typeof o == "string" && (o = {
|
|
6652
6672
|
children: o
|
|
6653
6673
|
}), /* @__PURE__ */ G($d, { children: [
|
|
6654
|
-
/* @__PURE__ */
|
|
6655
|
-
/* @__PURE__ */
|
|
6674
|
+
/* @__PURE__ */ p(zd, { asChild: !0, children: m }),
|
|
6675
|
+
/* @__PURE__ */ p(
|
|
6656
6676
|
ha,
|
|
6657
6677
|
{
|
|
6658
6678
|
side: "right",
|
|
6659
6679
|
align: "center",
|
|
6660
|
-
hidden: u !== "collapsed" ||
|
|
6680
|
+
hidden: u !== "collapsed" || d,
|
|
6661
6681
|
...o
|
|
6662
6682
|
}
|
|
6663
6683
|
)
|
|
6664
|
-
] })) :
|
|
6684
|
+
] })) : m;
|
|
6665
6685
|
}
|
|
6666
6686
|
);
|
|
6667
6687
|
Ta.displayName = "SidebarMenuButton";
|
|
6668
|
-
const tu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */
|
|
6688
|
+
const tu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ p(
|
|
6669
6689
|
t ? de : "button",
|
|
6670
6690
|
{
|
|
6671
6691
|
ref: o,
|
|
@@ -6685,7 +6705,7 @@ const tu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
|
|
|
6685
6705
|
}
|
|
6686
6706
|
));
|
|
6687
6707
|
tu.displayName = "SidebarMenuAction";
|
|
6688
|
-
const nu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6708
|
+
const nu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6689
6709
|
"div",
|
|
6690
6710
|
{
|
|
6691
6711
|
ref: n,
|
|
@@ -6713,15 +6733,15 @@ const ru = s.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
6713
6733
|
className: I("rounded-md h-8 flex gap-2 px-2 items-center", e),
|
|
6714
6734
|
...n,
|
|
6715
6735
|
children: [
|
|
6716
|
-
t && /* @__PURE__ */
|
|
6717
|
-
|
|
6736
|
+
t && /* @__PURE__ */ p(
|
|
6737
|
+
br,
|
|
6718
6738
|
{
|
|
6719
6739
|
className: "size-4 rounded-md",
|
|
6720
6740
|
"data-sidebar": "menu-skeleton-icon"
|
|
6721
6741
|
}
|
|
6722
6742
|
),
|
|
6723
|
-
/* @__PURE__ */
|
|
6724
|
-
|
|
6743
|
+
/* @__PURE__ */ p(
|
|
6744
|
+
br,
|
|
6725
6745
|
{
|
|
6726
6746
|
className: "h-4 flex-1 max-w-(--skeleton-width)",
|
|
6727
6747
|
"data-sidebar": "menu-skeleton-text",
|
|
@@ -6735,7 +6755,7 @@ const ru = s.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
6735
6755
|
);
|
|
6736
6756
|
});
|
|
6737
6757
|
ru.displayName = "SidebarMenuSkeleton";
|
|
6738
|
-
const ou = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
6758
|
+
const ou = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6739
6759
|
"ul",
|
|
6740
6760
|
{
|
|
6741
6761
|
ref: n,
|
|
@@ -6749,9 +6769,9 @@ const ou = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
6749
6769
|
}
|
|
6750
6770
|
));
|
|
6751
6771
|
ou.displayName = "SidebarMenuSub";
|
|
6752
|
-
const au = s.forwardRef(({ ...e }, t) => /* @__PURE__ */
|
|
6772
|
+
const au = s.forwardRef(({ ...e }, t) => /* @__PURE__ */ p("li", { ref: t, ...e }));
|
|
6753
6773
|
au.displayName = "SidebarMenuSubItem";
|
|
6754
|
-
const iu = s.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */
|
|
6774
|
+
const iu = s.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */ p(
|
|
6755
6775
|
e ? de : "a",
|
|
6756
6776
|
{
|
|
6757
6777
|
ref: a,
|
|
@@ -6776,23 +6796,23 @@ function su(e) {
|
|
|
6776
6796
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
6777
6797
|
), i = (h) => {
|
|
6778
6798
|
const { scope: b, children: f } = h, g = _e.useRef(null), w = _e.useRef(/* @__PURE__ */ new Map()).current;
|
|
6779
|
-
return /* @__PURE__ */
|
|
6799
|
+
return /* @__PURE__ */ p(o, { scope: b, itemMap: w, collectionRef: g, children: f });
|
|
6780
6800
|
};
|
|
6781
6801
|
i.displayName = t;
|
|
6782
|
-
const c = e + "CollectionSlot",
|
|
6802
|
+
const c = e + "CollectionSlot", l = _e.forwardRef(
|
|
6783
6803
|
(h, b) => {
|
|
6784
6804
|
const { scope: f, children: g } = h, w = a(c, f), y = ee(b, w.collectionRef);
|
|
6785
|
-
return /* @__PURE__ */
|
|
6805
|
+
return /* @__PURE__ */ p(de, { ref: y, children: g });
|
|
6786
6806
|
}
|
|
6787
6807
|
);
|
|
6788
|
-
|
|
6789
|
-
const
|
|
6808
|
+
l.displayName = c;
|
|
6809
|
+
const d = e + "CollectionItemSlot", u = "data-radix-collection-item", m = _e.forwardRef(
|
|
6790
6810
|
(h, b) => {
|
|
6791
|
-
const { scope: f, children: g, ...w } = h, y = _e.useRef(null), x = ee(b, y), C = a(
|
|
6792
|
-
return _e.useEffect(() => (C.itemMap.set(y, { ref: y, ...w }), () => void C.itemMap.delete(y))), /* @__PURE__ */
|
|
6811
|
+
const { scope: f, children: g, ...w } = h, y = _e.useRef(null), x = ee(b, y), C = a(d, f);
|
|
6812
|
+
return _e.useEffect(() => (C.itemMap.set(y, { ref: y, ...w }), () => void C.itemMap.delete(y))), /* @__PURE__ */ p(de, { [u]: "", ref: x, children: g });
|
|
6793
6813
|
}
|
|
6794
6814
|
);
|
|
6795
|
-
|
|
6815
|
+
m.displayName = d;
|
|
6796
6816
|
function v(h) {
|
|
6797
6817
|
const b = a(e + "CollectionConsumer", h);
|
|
6798
6818
|
return _e.useCallback(() => {
|
|
@@ -6805,12 +6825,12 @@ function su(e) {
|
|
|
6805
6825
|
}, [b.collectionRef, b.itemMap]);
|
|
6806
6826
|
}
|
|
6807
6827
|
return [
|
|
6808
|
-
{ Provider: i, Slot:
|
|
6828
|
+
{ Provider: i, Slot: l, ItemSlot: m },
|
|
6809
6829
|
v,
|
|
6810
6830
|
r
|
|
6811
6831
|
];
|
|
6812
6832
|
}
|
|
6813
|
-
var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra,
|
|
6833
|
+
var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu]), [du, Ut] = Ra(Kn), Pa = (e) => {
|
|
6814
6834
|
const {
|
|
6815
6835
|
__scopeToast: t,
|
|
6816
6836
|
label: n = "Notification",
|
|
@@ -6818,10 +6838,10 @@ var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra, qu] = ct("Toast", [lu
|
|
|
6818
6838
|
swipeDirection: o = "right",
|
|
6819
6839
|
swipeThreshold: a = 50,
|
|
6820
6840
|
children: i
|
|
6821
|
-
} = e, [c,
|
|
6841
|
+
} = e, [c, l] = s.useState(null), [d, u] = s.useState(0), m = s.useRef(!1), v = s.useRef(!1);
|
|
6822
6842
|
return n.trim() || console.error(
|
|
6823
6843
|
`Invalid prop \`label\` supplied to \`${Kn}\`. Expected non-empty \`string\`.`
|
|
6824
|
-
), /* @__PURE__ */
|
|
6844
|
+
), /* @__PURE__ */ p(Yn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
6825
6845
|
du,
|
|
6826
6846
|
{
|
|
6827
6847
|
scope: t,
|
|
@@ -6829,12 +6849,12 @@ var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra, qu] = ct("Toast", [lu
|
|
|
6829
6849
|
duration: r,
|
|
6830
6850
|
swipeDirection: o,
|
|
6831
6851
|
swipeThreshold: a,
|
|
6832
|
-
toastCount:
|
|
6852
|
+
toastCount: d,
|
|
6833
6853
|
viewport: c,
|
|
6834
|
-
onViewportChange:
|
|
6854
|
+
onViewportChange: l,
|
|
6835
6855
|
onToastAdd: s.useCallback(() => u((h) => h + 1), []),
|
|
6836
6856
|
onToastRemove: s.useCallback(() => u((h) => h - 1), []),
|
|
6837
|
-
isFocusedToastEscapeKeyDownRef:
|
|
6857
|
+
isFocusedToastEscapeKeyDownRef: m,
|
|
6838
6858
|
isClosePausedRef: v,
|
|
6839
6859
|
children: i
|
|
6840
6860
|
}
|
|
@@ -6848,15 +6868,15 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6848
6868
|
hotkey: r = uu,
|
|
6849
6869
|
label: o = "Notifications ({hotkey})",
|
|
6850
6870
|
...a
|
|
6851
|
-
} = 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;
|
|
6852
6872
|
s.useEffect(() => {
|
|
6853
6873
|
const g = (w) => {
|
|
6854
6874
|
var x;
|
|
6855
|
-
r.length !== 0 && r.every((C) => w[C] || w.code === C) && ((x =
|
|
6875
|
+
r.length !== 0 && r.every((C) => w[C] || w.code === C) && ((x = m.current) == null || x.focus());
|
|
6856
6876
|
};
|
|
6857
6877
|
return document.addEventListener("keydown", g), () => document.removeEventListener("keydown", g);
|
|
6858
6878
|
}, [r]), s.useEffect(() => {
|
|
6859
|
-
const g =
|
|
6879
|
+
const g = l.current, w = m.current;
|
|
6860
6880
|
if (b && g && w) {
|
|
6861
6881
|
const y = () => {
|
|
6862
6882
|
if (!i.isClosePausedRef.current) {
|
|
@@ -6889,7 +6909,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6889
6909
|
[c]
|
|
6890
6910
|
);
|
|
6891
6911
|
return s.useEffect(() => {
|
|
6892
|
-
const g =
|
|
6912
|
+
const g = m.current;
|
|
6893
6913
|
if (g) {
|
|
6894
6914
|
const w = (y) => {
|
|
6895
6915
|
var S, E, T;
|
|
@@ -6897,11 +6917,11 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6897
6917
|
if (y.key === "Tab" && !x) {
|
|
6898
6918
|
const F = document.activeElement, k = y.shiftKey;
|
|
6899
6919
|
if (y.target === g && k) {
|
|
6900
|
-
(S =
|
|
6920
|
+
(S = d.current) == null || S.focus();
|
|
6901
6921
|
return;
|
|
6902
6922
|
}
|
|
6903
6923
|
const z = f({ tabbingDirection: k ? "backwards" : "forwards" }), M = z.findIndex((R) => R === F);
|
|
6904
|
-
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();
|
|
6905
6925
|
}
|
|
6906
6926
|
};
|
|
6907
6927
|
return g.addEventListener("keydown", w), () => g.removeEventListener("keydown", w);
|
|
@@ -6909,16 +6929,16 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6909
6929
|
}, [c, f]), /* @__PURE__ */ G(
|
|
6910
6930
|
Vs,
|
|
6911
6931
|
{
|
|
6912
|
-
ref:
|
|
6932
|
+
ref: l,
|
|
6913
6933
|
role: "region",
|
|
6914
6934
|
"aria-label": o.replace("{hotkey}", h),
|
|
6915
6935
|
tabIndex: -1,
|
|
6916
6936
|
style: { pointerEvents: b ? void 0 : "none" },
|
|
6917
6937
|
children: [
|
|
6918
|
-
b && /* @__PURE__ */
|
|
6938
|
+
b && /* @__PURE__ */ p(
|
|
6919
6939
|
Sn,
|
|
6920
6940
|
{
|
|
6921
|
-
ref:
|
|
6941
|
+
ref: d,
|
|
6922
6942
|
onFocusFromOutsideViewport: () => {
|
|
6923
6943
|
const g = f({
|
|
6924
6944
|
tabbingDirection: "forwards"
|
|
@@ -6927,8 +6947,8 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
6927
6947
|
}
|
|
6928
6948
|
}
|
|
6929
6949
|
),
|
|
6930
|
-
/* @__PURE__ */
|
|
6931
|
-
b && /* @__PURE__ */
|
|
6950
|
+
/* @__PURE__ */ p(Yn.Slot, { scope: n, children: /* @__PURE__ */ p(Y.ol, { tabIndex: -1, ...a, ref: v }) }),
|
|
6951
|
+
b && /* @__PURE__ */ p(
|
|
6932
6952
|
Sn,
|
|
6933
6953
|
{
|
|
6934
6954
|
ref: u,
|
|
@@ -6949,7 +6969,7 @@ Na.displayName = Aa;
|
|
|
6949
6969
|
var Oa = "ToastFocusProxy", Sn = s.forwardRef(
|
|
6950
6970
|
(e, t) => {
|
|
6951
6971
|
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = Ut(Oa, n);
|
|
6952
|
-
return /* @__PURE__ */
|
|
6972
|
+
return /* @__PURE__ */ p(
|
|
6953
6973
|
Bt,
|
|
6954
6974
|
{
|
|
6955
6975
|
"aria-hidden": !0,
|
|
@@ -6958,9 +6978,9 @@ var Oa = "ToastFocusProxy", Sn = s.forwardRef(
|
|
|
6958
6978
|
ref: t,
|
|
6959
6979
|
style: { position: "fixed" },
|
|
6960
6980
|
onFocus: (i) => {
|
|
6961
|
-
var
|
|
6981
|
+
var d;
|
|
6962
6982
|
const c = i.relatedTarget;
|
|
6963
|
-
!((
|
|
6983
|
+
!((d = a.viewport) != null && d.contains(c)) && r();
|
|
6964
6984
|
}
|
|
6965
6985
|
}
|
|
6966
6986
|
);
|
|
@@ -6969,33 +6989,33 @@ var Oa = "ToastFocusProxy", Sn = s.forwardRef(
|
|
|
6969
6989
|
Sn.displayName = Oa;
|
|
6970
6990
|
var Kt = "Toast", fu = "toast.swipeStart", pu = "toast.swipeMove", mu = "toast.swipeCancel", hu = "toast.swipeEnd", Ma = s.forwardRef(
|
|
6971
6991
|
(e, t) => {
|
|
6972
|
-
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({
|
|
6973
6993
|
prop: r,
|
|
6974
6994
|
defaultProp: o,
|
|
6975
6995
|
onChange: a
|
|
6976
6996
|
});
|
|
6977
|
-
return /* @__PURE__ */
|
|
6997
|
+
return /* @__PURE__ */ p(Be, { present: n || c, children: /* @__PURE__ */ p(
|
|
6978
6998
|
bu,
|
|
6979
6999
|
{
|
|
6980
7000
|
open: c,
|
|
6981
7001
|
...i,
|
|
6982
7002
|
ref: t,
|
|
6983
|
-
onClose: () =>
|
|
7003
|
+
onClose: () => l(!1),
|
|
6984
7004
|
onPause: ce(e.onPause),
|
|
6985
7005
|
onResume: ce(e.onResume),
|
|
6986
|
-
onSwipeStart: U(e.onSwipeStart, (
|
|
6987
|
-
|
|
7006
|
+
onSwipeStart: U(e.onSwipeStart, (d) => {
|
|
7007
|
+
d.currentTarget.setAttribute("data-swipe", "start");
|
|
6988
7008
|
}),
|
|
6989
|
-
onSwipeMove: U(e.onSwipeMove, (
|
|
6990
|
-
const { x: u, y:
|
|
6991
|
-
|
|
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`);
|
|
6992
7012
|
}),
|
|
6993
|
-
onSwipeCancel: U(e.onSwipeCancel, (
|
|
6994
|
-
|
|
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");
|
|
6995
7015
|
}),
|
|
6996
|
-
onSwipeEnd: U(e.onSwipeEnd, (
|
|
6997
|
-
const { x: u, y:
|
|
6998
|
-
|
|
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);
|
|
6999
7019
|
})
|
|
7000
7020
|
}
|
|
7001
7021
|
) });
|
|
@@ -7014,10 +7034,10 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7014
7034
|
open: a,
|
|
7015
7035
|
onClose: i,
|
|
7016
7036
|
onEscapeKeyDown: c,
|
|
7017
|
-
onPause:
|
|
7018
|
-
onResume:
|
|
7037
|
+
onPause: l,
|
|
7038
|
+
onResume: d,
|
|
7019
7039
|
onSwipeStart: u,
|
|
7020
|
-
onSwipeMove:
|
|
7040
|
+
onSwipeMove: m,
|
|
7021
7041
|
onSwipeCancel: v,
|
|
7022
7042
|
onSwipeEnd: h,
|
|
7023
7043
|
...b
|
|
@@ -7034,21 +7054,21 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7034
7054
|
const R = f.viewport;
|
|
7035
7055
|
if (R) {
|
|
7036
7056
|
const W = () => {
|
|
7037
|
-
z(T.current),
|
|
7057
|
+
z(T.current), d == null || d();
|
|
7038
7058
|
}, N = () => {
|
|
7039
7059
|
const H = (/* @__PURE__ */ new Date()).getTime() - E.current;
|
|
7040
|
-
T.current = T.current - H, window.clearTimeout(F.current),
|
|
7060
|
+
T.current = T.current - H, window.clearTimeout(F.current), l == null || l();
|
|
7041
7061
|
};
|
|
7042
7062
|
return R.addEventListener(En, N), R.addEventListener(Cn, W), () => {
|
|
7043
7063
|
R.removeEventListener(En, N), R.removeEventListener(Cn, W);
|
|
7044
7064
|
};
|
|
7045
7065
|
}
|
|
7046
|
-
}, [f.viewport, S,
|
|
7066
|
+
}, [f.viewport, S, l, d, z]), s.useEffect(() => {
|
|
7047
7067
|
a && !f.isClosePausedRef.current && z(S);
|
|
7048
7068
|
}, [a, S, f.isClosePausedRef, z]), s.useEffect(() => (k(), () => $()), [k, $]);
|
|
7049
7069
|
const M = s.useMemo(() => g ? $a(g) : null, [g]);
|
|
7050
7070
|
return f.viewport ? /* @__PURE__ */ G(Xe, { children: [
|
|
7051
|
-
M && /* @__PURE__ */
|
|
7071
|
+
M && /* @__PURE__ */ p(
|
|
7052
7072
|
wu,
|
|
7053
7073
|
{
|
|
7054
7074
|
__scopeToast: n,
|
|
@@ -7058,15 +7078,15 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7058
7078
|
children: M
|
|
7059
7079
|
}
|
|
7060
7080
|
),
|
|
7061
|
-
/* @__PURE__ */
|
|
7062
|
-
/* @__PURE__ */
|
|
7081
|
+
/* @__PURE__ */ p(gu, { scope: n, onClose: V, children: Rn.createPortal(
|
|
7082
|
+
/* @__PURE__ */ p(Yn.ItemSlot, { scope: n, children: /* @__PURE__ */ p(
|
|
7063
7083
|
Bs,
|
|
7064
7084
|
{
|
|
7065
7085
|
asChild: !0,
|
|
7066
7086
|
onEscapeKeyDown: U(c, () => {
|
|
7067
7087
|
f.isFocusedToastEscapeKeyDownRef.current || V(), f.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
7068
7088
|
}),
|
|
7069
|
-
children: /* @__PURE__ */
|
|
7089
|
+
children: /* @__PURE__ */ p(
|
|
7070
7090
|
Y.li,
|
|
7071
7091
|
{
|
|
7072
7092
|
role: "status",
|
|
@@ -7087,9 +7107,9 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7087
7107
|
onPointerMove: U(e.onPointerMove, (R) => {
|
|
7088
7108
|
if (!x.current) return;
|
|
7089
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 };
|
|
7090
|
-
H ? (C.current = Q, xt(pu,
|
|
7110
|
+
H ? (C.current = Q, xt(pu, m, J, {
|
|
7091
7111
|
discrete: !1
|
|
7092
|
-
})) :
|
|
7112
|
+
})) : Pr(Q, f.swipeDirection, te) ? (C.current = Q, xt(fu, u, J, {
|
|
7093
7113
|
discrete: !1
|
|
7094
7114
|
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(W) > te || Math.abs(N) > te) && (x.current = null);
|
|
7095
7115
|
}),
|
|
@@ -7097,7 +7117,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7097
7117
|
const W = C.current, N = R.target;
|
|
7098
7118
|
if (N.hasPointerCapture(R.pointerId) && N.releasePointerCapture(R.pointerId), C.current = null, x.current = null, W) {
|
|
7099
7119
|
const H = R.currentTarget, O = { originalEvent: R, delta: W };
|
|
7100
|
-
|
|
7120
|
+
Pr(W, f.swipeDirection, f.swipeThreshold) ? xt(hu, h, O, {
|
|
7101
7121
|
discrete: !0
|
|
7102
7122
|
}) : xt(
|
|
7103
7123
|
mu,
|
|
@@ -7120,11 +7140,11 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7120
7140
|
] }) : null;
|
|
7121
7141
|
}
|
|
7122
7142
|
), wu = (e) => {
|
|
7123
|
-
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);
|
|
7124
7144
|
return Eu(() => i(!0)), s.useEffect(() => {
|
|
7125
|
-
const
|
|
7126
|
-
return () => window.clearTimeout(
|
|
7127
|
-
}, []), c ? null : /* @__PURE__ */
|
|
7145
|
+
const d = window.setTimeout(() => l(!0), 1e3);
|
|
7146
|
+
return () => window.clearTimeout(d);
|
|
7147
|
+
}, []), c ? null : /* @__PURE__ */ p(Lt, { asChild: !0, children: /* @__PURE__ */ p(Bt, { ...r, children: a && /* @__PURE__ */ G(Xe, { children: [
|
|
7128
7148
|
o.label,
|
|
7129
7149
|
" ",
|
|
7130
7150
|
n
|
|
@@ -7132,21 +7152,21 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7132
7152
|
}, yu = "ToastTitle", ka = s.forwardRef(
|
|
7133
7153
|
(e, t) => {
|
|
7134
7154
|
const { __scopeToast: n, ...r } = e;
|
|
7135
|
-
return /* @__PURE__ */
|
|
7155
|
+
return /* @__PURE__ */ p(Y.div, { ...r, ref: t });
|
|
7136
7156
|
}
|
|
7137
7157
|
);
|
|
7138
7158
|
ka.displayName = yu;
|
|
7139
7159
|
var xu = "ToastDescription", Da = s.forwardRef(
|
|
7140
7160
|
(e, t) => {
|
|
7141
7161
|
const { __scopeToast: n, ...r } = e;
|
|
7142
|
-
return /* @__PURE__ */
|
|
7162
|
+
return /* @__PURE__ */ p(Y.div, { ...r, ref: t });
|
|
7143
7163
|
}
|
|
7144
7164
|
);
|
|
7145
7165
|
Da.displayName = xu;
|
|
7146
7166
|
var Ia = "ToastAction", _a = s.forwardRef(
|
|
7147
7167
|
(e, t) => {
|
|
7148
7168
|
const { altText: n, ...r } = e;
|
|
7149
|
-
return n.trim() ? /* @__PURE__ */
|
|
7169
|
+
return n.trim() ? /* @__PURE__ */ p(Fa, { altText: n, asChild: !0, children: /* @__PURE__ */ p(Xn, { ...r, ref: t }) }) : (console.error(
|
|
7150
7170
|
`Invalid prop \`altText\` supplied to \`${Ia}\`. Expected non-empty \`string\`.`
|
|
7151
7171
|
), null);
|
|
7152
7172
|
}
|
|
@@ -7155,7 +7175,7 @@ _a.displayName = Ia;
|
|
|
7155
7175
|
var La = "ToastClose", Xn = s.forwardRef(
|
|
7156
7176
|
(e, t) => {
|
|
7157
7177
|
const { __scopeToast: n, ...r } = e, o = vu(La, n);
|
|
7158
|
-
return /* @__PURE__ */
|
|
7178
|
+
return /* @__PURE__ */ p(Fa, { asChild: !0, children: /* @__PURE__ */ p(
|
|
7159
7179
|
Y.button,
|
|
7160
7180
|
{
|
|
7161
7181
|
type: "button",
|
|
@@ -7169,7 +7189,7 @@ var La = "ToastClose", Xn = s.forwardRef(
|
|
|
7169
7189
|
Xn.displayName = La;
|
|
7170
7190
|
var Fa = s.forwardRef((e, t) => {
|
|
7171
7191
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
7172
|
-
return /* @__PURE__ */
|
|
7192
|
+
return /* @__PURE__ */ p(
|
|
7173
7193
|
Y.div,
|
|
7174
7194
|
{
|
|
7175
7195
|
"data-radix-toast-announce-exclude": "",
|
|
@@ -7197,7 +7217,7 @@ function xt(e, t, n, { discrete: r }) {
|
|
|
7197
7217
|
const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
7198
7218
|
t && o.addEventListener(e, t, { once: !0 }), r ? Zr(o, a) : o.dispatchEvent(a);
|
|
7199
7219
|
}
|
|
7200
|
-
var
|
|
7220
|
+
var Pr = (e, t, n = 0) => {
|
|
7201
7221
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
7202
7222
|
return t === "left" || t === "right" ? a && r > n : !a && o > n;
|
|
7203
7223
|
};
|
|
@@ -7229,7 +7249,7 @@ function sn(e) {
|
|
|
7229
7249
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7230
7250
|
}
|
|
7231
7251
|
var Tu = Pa, za = Na, Wa = Ma, Ba = ka, Va = Da, Ha = _a, ja = Xn;
|
|
7232
|
-
const Ru = Tu, Ga = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7252
|
+
const Ru = Tu, Ga = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7233
7253
|
za,
|
|
7234
7254
|
{
|
|
7235
7255
|
ref: n,
|
|
@@ -7259,9 +7279,9 @@ const Pu = It(
|
|
|
7259
7279
|
variant: "default"
|
|
7260
7280
|
}
|
|
7261
7281
|
}
|
|
7262
|
-
), Ua = s.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */
|
|
7282
|
+
), Ua = s.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ p(Wa, { ref: r, className: I(Pu({ variant: t }), e), ...n }));
|
|
7263
7283
|
Ua.displayName = Wa.displayName;
|
|
7264
|
-
const Au = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7284
|
+
const Au = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7265
7285
|
Ha,
|
|
7266
7286
|
{
|
|
7267
7287
|
ref: n,
|
|
@@ -7273,7 +7293,7 @@ const Au = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
7273
7293
|
}
|
|
7274
7294
|
));
|
|
7275
7295
|
Au.displayName = Ha.displayName;
|
|
7276
|
-
const Ka = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7296
|
+
const Ka = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
7277
7297
|
ja,
|
|
7278
7298
|
{
|
|
7279
7299
|
ref: n,
|
|
@@ -7283,20 +7303,20 @@ const Ka = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ m(
|
|
|
7283
7303
|
),
|
|
7284
7304
|
"toast-close": "",
|
|
7285
7305
|
...t,
|
|
7286
|
-
children: /* @__PURE__ */
|
|
7306
|
+
children: /* @__PURE__ */ p($r, { className: "h-4 w-4" })
|
|
7287
7307
|
}
|
|
7288
7308
|
));
|
|
7289
7309
|
Ka.displayName = ja.displayName;
|
|
7290
|
-
const Ya = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7310
|
+
const Ya = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(Ba, { ref: n, className: I("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
7291
7311
|
Ya.displayName = Ba.displayName;
|
|
7292
|
-
const Xa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7312
|
+
const Xa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(Va, { ref: n, className: I("text-sm opacity-90", e), ...t }));
|
|
7293
7313
|
Xa.displayName = Va.displayName;
|
|
7294
7314
|
const Nu = 1, Ou = 1e6;
|
|
7295
7315
|
let cn = 0;
|
|
7296
7316
|
function Mu() {
|
|
7297
7317
|
return cn = (cn + 1) % Number.MAX_SAFE_INTEGER, cn.toString();
|
|
7298
7318
|
}
|
|
7299
|
-
const ln = /* @__PURE__ */ new Map(),
|
|
7319
|
+
const ln = /* @__PURE__ */ new Map(), Ar = (e) => {
|
|
7300
7320
|
if (ln.has(e)) return;
|
|
7301
7321
|
const t = setTimeout(() => {
|
|
7302
7322
|
ln.delete(e), at({ type: "REMOVE_TOAST", toastId: e });
|
|
@@ -7318,7 +7338,7 @@ const ln = /* @__PURE__ */ new Map(), Nr = (e) => {
|
|
|
7318
7338
|
};
|
|
7319
7339
|
case "DISMISS_TOAST": {
|
|
7320
7340
|
const { toastId: n } = t;
|
|
7321
|
-
return n ?
|
|
7341
|
+
return n ? Ar(n) : e.toasts.forEach((r) => Ar(r.id)), {
|
|
7322
7342
|
...e,
|
|
7323
7343
|
toasts: e.toasts.map(
|
|
7324
7344
|
(r) => r.id === n || n === void 0 ? { ...r, open: !1 } : r
|
|
@@ -7370,18 +7390,18 @@ function Iu() {
|
|
|
7370
7390
|
e.map(function({ id: t, title: n, description: r, action: o, ...a }) {
|
|
7371
7391
|
return /* @__PURE__ */ G(Ua, { ...a, children: [
|
|
7372
7392
|
/* @__PURE__ */ G("div", { className: "grid gap-1", children: [
|
|
7373
|
-
n && /* @__PURE__ */
|
|
7374
|
-
r && /* @__PURE__ */
|
|
7393
|
+
n && /* @__PURE__ */ p(Ya, { children: n }),
|
|
7394
|
+
r && /* @__PURE__ */ p(Xa, { children: r })
|
|
7375
7395
|
] }),
|
|
7376
7396
|
o,
|
|
7377
|
-
/* @__PURE__ */
|
|
7397
|
+
/* @__PURE__ */ p(Ka, {})
|
|
7378
7398
|
] }, t);
|
|
7379
7399
|
}),
|
|
7380
|
-
/* @__PURE__ */
|
|
7400
|
+
/* @__PURE__ */ p(Ga, {})
|
|
7381
7401
|
] });
|
|
7382
7402
|
}
|
|
7383
7403
|
function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
7384
|
-
const [n, r] = Tn(""), o = oi(), { toast: a } = qa(),
|
|
7404
|
+
const [n, r] = Tn(""), o = oi(), { toast: a } = qa(), i = () => {
|
|
7385
7405
|
const l = n.trim();
|
|
7386
7406
|
if (!l || l.length < 2) {
|
|
7387
7407
|
a({
|
|
@@ -7392,26 +7412,26 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7392
7412
|
});
|
|
7393
7413
|
return;
|
|
7394
7414
|
}
|
|
7395
|
-
const
|
|
7415
|
+
const d = new URLSearchParams({ q: l });
|
|
7396
7416
|
o({
|
|
7397
|
-
pathname:
|
|
7398
|
-
search:
|
|
7417
|
+
pathname: t,
|
|
7418
|
+
search: d.toString()
|
|
7399
7419
|
}), r("");
|
|
7400
7420
|
};
|
|
7401
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: [
|
|
7402
|
-
/* @__PURE__ */
|
|
7403
|
-
/* @__PURE__ */
|
|
7404
|
-
/* @__PURE__ */
|
|
7422
|
+
/* @__PURE__ */ p(wa, { className: "lg:hidden", children: /* @__PURE__ */ p(Si, { className: "h-6 w-6" }) }),
|
|
7423
|
+
/* @__PURE__ */ p("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ p("div", { className: "relative w-full max-w-sm", children: /* @__PURE__ */ G("div", { children: [
|
|
7424
|
+
/* @__PURE__ */ p(
|
|
7405
7425
|
"button",
|
|
7406
7426
|
{
|
|
7407
7427
|
type: "button",
|
|
7408
7428
|
className: "absolute left-2 top-1/2 -translate-y-1/2",
|
|
7409
|
-
onClick:
|
|
7429
|
+
onClick: i,
|
|
7410
7430
|
"aria-label": "Search",
|
|
7411
|
-
children: /* @__PURE__ */
|
|
7431
|
+
children: /* @__PURE__ */ p(Oi, { className: "h-4 w-4 text-muted-foreground" })
|
|
7412
7432
|
}
|
|
7413
7433
|
),
|
|
7414
|
-
/* @__PURE__ */
|
|
7434
|
+
/* @__PURE__ */ p(
|
|
7415
7435
|
On,
|
|
7416
7436
|
{
|
|
7417
7437
|
placeholder: "Search...",
|
|
@@ -7419,24 +7439,22 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7419
7439
|
value: n,
|
|
7420
7440
|
onChange: (l) => r(l.target.value),
|
|
7421
7441
|
onKeyDown: (l) => {
|
|
7422
|
-
l.key === "Enter" &&
|
|
7442
|
+
l.key === "Enter" && i();
|
|
7423
7443
|
}
|
|
7424
7444
|
}
|
|
7425
7445
|
)
|
|
7426
7446
|
] }) }) }),
|
|
7427
|
-
/* @__PURE__ */
|
|
7428
|
-
/* @__PURE__ */
|
|
7429
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__PURE__ */ p(Ei, { className: "h-4 w-4" }),
|
|
7449
|
+
/* @__PURE__ */ p("span", { className: "sr-only", children: "Sign out" })
|
|
7430
7450
|
] }) })
|
|
7431
7451
|
] });
|
|
7432
7452
|
}
|
|
7433
|
-
function Lu({ routes: e,
|
|
7434
|
-
const { appID:
|
|
7435
|
-
l(!0);
|
|
7436
|
-
};
|
|
7453
|
+
function Lu({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7454
|
+
const { appID: r } = Or(), o = e.filter((a) => a.showInNav);
|
|
7437
7455
|
return /* @__PURE__ */ G(ba, { className: "border-r dark", children: [
|
|
7438
|
-
/* @__PURE__ */
|
|
7439
|
-
/* @__PURE__ */
|
|
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
|
+
/* @__PURE__ */ p("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ p(
|
|
7440
7458
|
"img",
|
|
7441
7459
|
{
|
|
7442
7460
|
src: "https://api.randmar.io/images/RandmarIcon.svg",
|
|
@@ -7444,74 +7462,57 @@ function Lu({ routes: e, getMyAccountPath: t, publicName: n, applicationName: r,
|
|
|
7444
7462
|
className: "h-4 w-4 filter brightness-0 saturate-100 invert"
|
|
7445
7463
|
}
|
|
7446
7464
|
) }),
|
|
7447
|
-
/* @__PURE__ */
|
|
7465
|
+
/* @__PURE__ */ p("span", { className: "font-semibold text-lg", children: n })
|
|
7448
7466
|
] }) }),
|
|
7449
|
-
/* @__PURE__ */
|
|
7450
|
-
const
|
|
7451
|
-
return /* @__PURE__ */
|
|
7452
|
-
|
|
7453
|
-
/* @__PURE__ */
|
|
7454
|
-
] }) }) },
|
|
7467
|
+
/* @__PURE__ */ p(Ea, { className: "py-4 bg-background text-foreground", children: /* @__PURE__ */ p(Ca, { children: o.map((a) => {
|
|
7468
|
+
const i = a.icon, c = `/${a.path.replace(":appID", r)}`;
|
|
7469
|
+
return /* @__PURE__ */ p(Sa, { children: /* @__PURE__ */ p(Ta, { asChild: !0, children: /* @__PURE__ */ G(Mr, { to: c, className: "transition-colors hover:bg-muted px-6", children: [
|
|
7470
|
+
i && /* @__PURE__ */ p(i, { className: "h-4 w-4" }),
|
|
7471
|
+
/* @__PURE__ */ p("span", { children: a.label })
|
|
7472
|
+
] }) }) }, a.key);
|
|
7455
7473
|
}) }) }),
|
|
7456
|
-
/* @__PURE__ */
|
|
7457
|
-
/* @__PURE__ */ m("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted", children: d ? /* @__PURE__ */ m(Qn, { to: `${t(a)}#brand`, className: "transition-colors hover:bg-muted px-6", children: /* @__PURE__ */ m(ki, { className: "h-5 w-5 text-muted-foreground" }) }) : /* @__PURE__ */ m(
|
|
7458
|
-
"img",
|
|
7459
|
-
{
|
|
7460
|
-
src: c,
|
|
7461
|
-
alt: "Partner logo",
|
|
7462
|
-
className: "h-9 w-9 object-cover bg-neutral-100",
|
|
7463
|
-
onError: u
|
|
7464
|
-
}
|
|
7465
|
-
) }),
|
|
7466
|
-
/* @__PURE__ */ G("div", { className: "flex flex-1 flex-col", children: [
|
|
7467
|
-
/* @__PURE__ */ m("span", { className: "text-sm font-medium", children: n || "Partner" }),
|
|
7468
|
-
/* @__PURE__ */ m("span", { className: "text-xs text-muted-foreground", children: r })
|
|
7469
|
-
] })
|
|
7470
|
-
] }) })
|
|
7474
|
+
/* @__PURE__ */ p(xa, { className: "border-t p-4 bg-background text-foreground", children: t })
|
|
7471
7475
|
] });
|
|
7472
7476
|
}
|
|
7473
|
-
function
|
|
7477
|
+
function Qu({
|
|
7474
7478
|
children: e,
|
|
7475
7479
|
routes: t,
|
|
7476
|
-
|
|
7477
|
-
|
|
7478
|
-
|
|
7479
|
-
|
|
7480
|
-
dashboardTitle: i,
|
|
7481
|
-
onSignOut: c
|
|
7480
|
+
footer: n,
|
|
7481
|
+
searchResultsRouteName: r,
|
|
7482
|
+
dashboardTitle: o,
|
|
7483
|
+
onSignOut: a
|
|
7482
7484
|
}) {
|
|
7483
|
-
return /* @__PURE__ */
|
|
7484
|
-
/* @__PURE__ */
|
|
7485
|
+
return /* @__PURE__ */ p(Xe, { children: /* @__PURE__ */ p(va, { children: /* @__PURE__ */ G("div", { className: "flex grow", children: [
|
|
7486
|
+
/* @__PURE__ */ p(
|
|
7485
7487
|
Lu,
|
|
7486
7488
|
{
|
|
7487
7489
|
routes: t,
|
|
7488
|
-
|
|
7489
|
-
|
|
7490
|
-
applicationName: a,
|
|
7491
|
-
dashboardTitle: i
|
|
7490
|
+
footer: n,
|
|
7491
|
+
dashboardTitle: o
|
|
7492
7492
|
}
|
|
7493
7493
|
),
|
|
7494
7494
|
/* @__PURE__ */ G("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
7495
|
-
/* @__PURE__ */
|
|
7495
|
+
/* @__PURE__ */ p(
|
|
7496
7496
|
_u,
|
|
7497
7497
|
{
|
|
7498
|
-
onSignOut:
|
|
7499
|
-
searchResultsRouteName:
|
|
7498
|
+
onSignOut: a,
|
|
7499
|
+
searchResultsRouteName: r
|
|
7500
7500
|
}
|
|
7501
7501
|
),
|
|
7502
|
-
/* @__PURE__ */
|
|
7503
|
-
/* @__PURE__ */
|
|
7502
|
+
/* @__PURE__ */ p("main", { className: "flex-1 overflow-auto mt-16", children: e }),
|
|
7503
|
+
/* @__PURE__ */ p(Iu, {})
|
|
7504
7504
|
] })
|
|
7505
7505
|
] }) }) });
|
|
7506
7506
|
}
|
|
7507
7507
|
export {
|
|
7508
|
+
Xu as AvatarFooter,
|
|
7508
7509
|
Nn as Button,
|
|
7509
7510
|
On as Input,
|
|
7510
7511
|
Bu as InputOTP,
|
|
7511
7512
|
Vu as InputOTPGroup,
|
|
7512
7513
|
ju as InputOTPSeparator,
|
|
7513
7514
|
Hu as InputOTPSlot,
|
|
7514
|
-
|
|
7515
|
+
Qu as Layout,
|
|
7515
7516
|
Lu as Navbar,
|
|
7516
7517
|
eo as Separator,
|
|
7517
7518
|
Qc as Sheet,
|
|
@@ -7547,7 +7548,7 @@ export {
|
|
|
7547
7548
|
Ud as SidebarRail,
|
|
7548
7549
|
Xd as SidebarSeparator,
|
|
7549
7550
|
wa as SidebarTrigger,
|
|
7550
|
-
|
|
7551
|
+
br as Skeleton,
|
|
7551
7552
|
Ua as Toast,
|
|
7552
7553
|
Au as ToastAction,
|
|
7553
7554
|
Ka as ToastClose,
|