randmarcomps 1.31.0 → 1.32.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 +12 -58
- package/dist/randmarcomps.js +385 -384
- package/dist/randmarcomps.umd.cjs +7 -7
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
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
3
|
import _e, { forwardRef as Or, 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 {
|
|
6
|
+
import { useParams as Pn, Link as Mr, useNavigate as oi } from "react-router-dom";
|
|
7
7
|
var ai = Object.defineProperty, ii = Object.defineProperties, si = Object.getOwnPropertyDescriptors, At = Object.getOwnPropertySymbols, kr = Object.prototype.hasOwnProperty, Dr = Object.prototype.propertyIsEnumerable, Jn = (e, t, n) => t in e ? ai(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ci = (e, t) => {
|
|
8
8
|
for (var n in t || (t = {})) kr.call(t, n) && Jn(e, n, t[n]);
|
|
9
9
|
if (At) for (var n of At(t)) Dr.call(t, n) && Jn(e, n, t[n]);
|
|
@@ -26,7 +26,7 @@ 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), [d, l] = s.useState(!1), u = s.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && o && i, [o, i, n]),
|
|
29
|
+
let [o, a] = s.useState(!1), [i, c] = s.useState(!1), [d, l] = 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
31
|
if (!v || !h || d || 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;
|
|
@@ -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(
|
|
50
|
+
let h = setTimeout(m, 0), b = setTimeout(m, 2e3), f = setTimeout(m, 5e3), g = setTimeout(() => {
|
|
51
51
|
l(!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: d, inputMode: l = "numeric", onComplete: u, pushPasswordManagerStrategy:
|
|
59
|
+
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: c, placeholder: d, inputMode: l = "numeric", onComplete: u, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: h, noScriptCSSFallback: b = vi, render: f, children: g } = n, w = di(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), y, x, C, S, E;
|
|
60
60
|
let [T, F] = s.useState(typeof w.defaultValue == "string" ? w.defaultValue : ""), k = r ?? T, $ = fi(k), V = s.useCallback((D) => {
|
|
61
61
|
o == null || o(D), F(D);
|
|
62
62
|
}, [o]), z = s.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), M = s.useRef(null), R = s.useRef(null), W = s.useRef({ value: k, onChange: V, isIOS: typeof window < "u" && ((x = (y = window == null ? void 0 : window.CSS) == null ? void 0 : y.supports) == null ? void 0 : x.call(y, "-webkit-touch-callout", "none")) }), N = s.useRef({ prev: [(C = M.current) == null ? void 0 : C.selectionStart, (S = M.current) == null ? void 0 : S.selectionEnd, (E = M.current) == null ? void 0 : E.selectionDirection] });
|
|
@@ -88,8 +88,8 @@ var _r = s.createContext({}), Lr = s.forwardRef((e, t) => {
|
|
|
88
88
|
}
|
|
89
89
|
Ce !== -1 && Se !== -1 && Ce !== Se && M.current.setSelectionRange(Ce, Se, De);
|
|
90
90
|
}
|
|
91
|
-
let
|
|
92
|
-
te(
|
|
91
|
+
let Zn = Ce !== -1 ? Ce : j, Qn = Se !== -1 ? Se : ae, Za = De ?? pt;
|
|
92
|
+
te(Zn), J(Qn), N.current.prev = [Zn, Qn, Za];
|
|
93
93
|
}
|
|
94
94
|
if (document.addEventListener("selectionchange", Z, { capture: !0 }), Z(), document.activeElement === D && K(!0), !document.getElementById("input-otp-style")) {
|
|
95
95
|
let j = document.createElement("style");
|
|
@@ -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();
|
|
@@ -357,14 +357,14 @@ function Wr() {
|
|
|
357
357
|
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = zr(e)) && (r && (r += " "), r += t);
|
|
358
358
|
return r;
|
|
359
359
|
}
|
|
360
|
-
const
|
|
360
|
+
const An = "-", Ii = (e) => {
|
|
361
361
|
const t = Li(e), {
|
|
362
362
|
conflictingClassGroups: n,
|
|
363
363
|
conflictingClassGroupModifiers: r
|
|
364
364
|
} = e;
|
|
365
365
|
return {
|
|
366
366
|
getClassGroupId: (i) => {
|
|
367
|
-
const c = i.split(
|
|
367
|
+
const c = i.split(An);
|
|
368
368
|
return c[0] === "" && c.length !== 1 && c.shift(), Br(c, t) || _i(i);
|
|
369
369
|
},
|
|
370
370
|
getConflictingClassGroupIds: (i, c) => {
|
|
@@ -381,7 +381,7 @@ const Pn = "-", Ii = (e) => {
|
|
|
381
381
|
return o;
|
|
382
382
|
if (t.validators.length === 0)
|
|
383
383
|
return;
|
|
384
|
-
const a = e.join(
|
|
384
|
+
const a = e.join(An);
|
|
385
385
|
return (i = t.validators.find(({
|
|
386
386
|
validator: c
|
|
387
387
|
}) => c(a))) == null ? void 0 : i.classGroupId;
|
|
@@ -426,7 +426,7 @@ const Pn = "-", Ii = (e) => {
|
|
|
426
426
|
});
|
|
427
427
|
}, tr = (e, t) => {
|
|
428
428
|
let n = e;
|
|
429
|
-
return t.split(
|
|
429
|
+
return t.split(An).forEach((r) => {
|
|
430
430
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
431
431
|
nextPart: /* @__PURE__ */ new Map(),
|
|
432
432
|
validators: []
|
|
@@ -478,11 +478,11 @@ const Pn = "-", Ii = (e) => {
|
|
|
478
478
|
}
|
|
479
479
|
f === "[" ? i++ : f === "]" ? i-- : f === "(" ? c++ : f === ")" && c--;
|
|
480
480
|
}
|
|
481
|
-
const u = a.length === 0 ? o : o.substring(d),
|
|
481
|
+
const u = a.length === 0 ? o : o.substring(d), m = Bi(u), v = m !== u, h = l && l > d ? l - d : 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
|
};
|
|
@@ -530,13 +530,13 @@ const Pn = "-", Ii = (e) => {
|
|
|
530
530
|
let d = "";
|
|
531
531
|
for (let l = c.length - 1; l >= 0; l -= 1) {
|
|
532
532
|
const u = c[l], {
|
|
533
|
-
isExternal:
|
|
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 (
|
|
539
|
+
if (m) {
|
|
540
540
|
d = u + (d.length > 0 ? " " + d : d);
|
|
541
541
|
continue;
|
|
542
542
|
}
|
|
@@ -582,7 +582,7 @@ const Vr = (e) => {
|
|
|
582
582
|
function Ki(e, ...t) {
|
|
583
583
|
let n, r, o, a = i;
|
|
584
584
|
function i(d) {
|
|
585
|
-
const l = t.reduce((u,
|
|
585
|
+
const l = t.reduce((u, m) => m(u), e());
|
|
586
586
|
return n = Hi(l), r = n.cache.get, o = n.cache.set, a = c, c(d);
|
|
587
587
|
}
|
|
588
588
|
function c(d) {
|
|
@@ -604,14 +604,14 @@ const X = (e) => {
|
|
|
604
604
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
605
605
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
606
606
|
qi.test(e) && !Zi.test(e)
|
|
607
|
-
),
|
|
607
|
+
), Nn = () => !1, ns = (e) => Qi.test(e), rs = (e) => Ji.test(e), os = (e) => !P(e) && !A(e), as = (e) => Qe(e, Kr, Nn), P = (e) => Hr.test(e), Fe = (e) => Qe(e, Yr, ts), Xt = (e) => Qe(e, gs, B), is = (e) => Qe(e, Gr, Nn), ss = (e) => Qe(e, Ur, rs), cs = (e) => Qe(e, Nn, ns), A = (e) => jr.test(e), mt = (e) => Je(e, Yr), ls = (e) => Je(e, vs), ds = (e) => Je(e, Gr), us = (e) => Je(e, Kr), fs = (e) => Je(e, Ur), ps = (e) => Je(e, bs, !0), Qe = (e, t, n) => {
|
|
608
608
|
const r = Hr.exec(e);
|
|
609
609
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
610
610
|
}, Je = (e, t, n = !1) => {
|
|
611
611
|
const r = jr.exec(e);
|
|
612
612
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
613
613
|
}, Gr = (e) => e === "position", ms = /* @__PURE__ */ new Set(["image", "url"]), Ur = (e) => ms.has(e), hs = /* @__PURE__ */ new Set(["length", "size", "percentage"]), Kr = (e) => hs.has(e), Yr = (e) => e === "length", gs = (e) => e === "number", vs = (e) => e === "family-name", bs = (e) => e === "shadow", ws = () => {
|
|
614
|
-
const e = X("color"), t = X("font"), n = X("text"), r = X("font-weight"), o = X("tracking"), a = X("leading"), i = X("breakpoint"), c = X("container"), d = X("spacing"), l = X("radius"), u = X("shadow"),
|
|
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"), d = X("spacing"), l = 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, d], T = () => [He, "full", "auto", ...E()], F = () => [Le, "none", "subgrid", A, P], k = () => ["auto", {
|
|
615
615
|
span: ["full", Le, A, P]
|
|
616
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 = () => [nr, Fe], O = () => [
|
|
617
617
|
// Deprecated since Tailwind CSS v4.0.0
|
|
@@ -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,13 +2879,13 @@ 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
2890
|
function rr(e, t) {
|
|
2891
2891
|
if (typeof e == "function")
|
|
@@ -2915,9 +2915,9 @@ 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
2917
|
const i = a.props.children, c = o.map((d) => d === a ? s.Children.count(i) > 1 ? s.Children.only(null) : s.isValidElement(i) ? i.props.children : null : d);
|
|
2918
|
-
return /* @__PURE__ */
|
|
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
|
}
|
|
@@ -2952,15 +2952,15 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
2952
2952
|
var r;
|
|
2953
2953
|
if ((t == null ? void 0 : t.variants) == null) return ar(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
2954
2954
|
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((l) => {
|
|
2955
|
-
const u = n == null ? void 0 : n[l],
|
|
2955
|
+
const u = n == null ? void 0 : n[l], m = a == null ? void 0 : a[l];
|
|
2956
2956
|
if (u === null) return null;
|
|
2957
|
-
const v = or(u) || or(
|
|
2957
|
+
const v = or(u) || or(m);
|
|
2958
2958
|
return o[l][v];
|
|
2959
2959
|
}), c = n && Object.entries(n).reduce((l, u) => {
|
|
2960
|
-
let [
|
|
2961
|
-
return v === void 0 || (l[
|
|
2960
|
+
let [m, v] = u;
|
|
2961
|
+
return v === void 0 || (l[m] = v), l;
|
|
2962
2962
|
}, {}), d = t == null || (r = t.compoundVariants) === null || r === void 0 ? void 0 : r.reduce((l, u) => {
|
|
2963
|
-
let { class:
|
|
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({
|
|
@@ -2972,7 +2972,7 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
2972
2972
|
}[f] === g;
|
|
2973
2973
|
}) ? [
|
|
2974
2974
|
...l,
|
|
2975
|
-
|
|
2975
|
+
m,
|
|
2976
2976
|
v
|
|
2977
2977
|
] : l;
|
|
2978
2978
|
}, []);
|
|
@@ -3005,8 +3005,8 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3005
3005
|
size: "default"
|
|
3006
3006
|
}
|
|
3007
3007
|
}
|
|
3008
|
-
),
|
|
3009
|
-
({ className: e, variant: t, size: n, asChild: r = !1, ...o }, a) => /* @__PURE__ */
|
|
3008
|
+
), On = s.forwardRef(
|
|
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 })),
|
|
@@ -3015,9 +3015,9 @@ const or = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, ar = Wr, I
|
|
|
3015
3015
|
}
|
|
3016
3016
|
)
|
|
3017
3017
|
);
|
|
3018
|
-
|
|
3019
|
-
const
|
|
3020
|
-
({ className: e, type: t, ...n }, r) => /* @__PURE__ */
|
|
3018
|
+
On.displayName = "Button";
|
|
3019
|
+
const Mn = s.forwardRef(
|
|
3020
|
+
({ className: e, type: t, ...n }, r) => /* @__PURE__ */ p(
|
|
3021
3021
|
"input",
|
|
3022
3022
|
{
|
|
3023
3023
|
type: t,
|
|
@@ -3030,7 +3030,7 @@ const On = s.forwardRef(
|
|
|
3030
3030
|
}
|
|
3031
3031
|
)
|
|
3032
3032
|
);
|
|
3033
|
-
|
|
3033
|
+
Mn.displayName = "Input";
|
|
3034
3034
|
var Ts = [
|
|
3035
3035
|
"a",
|
|
3036
3036
|
"button",
|
|
@@ -3051,7 +3051,7 @@ 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
|
}, {});
|
|
@@ -3060,7 +3060,7 @@ function Zr(e, t) {
|
|
|
3060
3060
|
}
|
|
3061
3061
|
var Rs = "Separator", ir = "horizontal", Ps = ["horizontal", "vertical"], Qr = s.forwardRef((e, t) => {
|
|
3062
3062
|
const { decorative: n, orientation: r = ir, ...o } = e, a = As(r) ? r : ir, c = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
3063
|
-
return /* @__PURE__ */
|
|
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,
|
|
@@ -3101,7 +3101,7 @@ function U(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
|
3101
3101
|
function Ns(e, t) {
|
|
3102
3102
|
const n = s.createContext(t), r = (a) => {
|
|
3103
3103
|
const { children: i, ...c } = a, d = s.useMemo(() => c, Object.values(c));
|
|
3104
|
-
return /* @__PURE__ */
|
|
3104
|
+
return /* @__PURE__ */ p(n.Provider, { value: d, children: i });
|
|
3105
3105
|
};
|
|
3106
3106
|
r.displayName = e + "Provider";
|
|
3107
3107
|
function o(a) {
|
|
@@ -3117,18 +3117,18 @@ function ct(e, t = []) {
|
|
|
3117
3117
|
function r(a, i) {
|
|
3118
3118
|
const c = s.createContext(i), d = n.length;
|
|
3119
3119
|
n = [...n, i];
|
|
3120
|
-
const l = (
|
|
3120
|
+
const l = (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[d]) || c, g = s.useMemo(() => b, Object.values(b));
|
|
3123
|
+
return /* @__PURE__ */ p(f.Provider, { value: g, children: h });
|
|
3124
3124
|
};
|
|
3125
3125
|
l.displayName = a + "Provider";
|
|
3126
|
-
function u(
|
|
3126
|
+
function u(m, v) {
|
|
3127
3127
|
var f;
|
|
3128
3128
|
const h = ((f = v == null ? void 0 : v[e]) == null ? void 0 : f[d]) || 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
3133
|
return [l, u];
|
|
3134
3134
|
}
|
|
@@ -3154,8 +3154,8 @@ function Os(...e) {
|
|
|
3154
3154
|
}));
|
|
3155
3155
|
return function(a) {
|
|
3156
3156
|
const i = r.reduce((c, { useScope: d, scopeName: l }) => {
|
|
3157
|
-
const
|
|
3158
|
-
return { ...c, ...
|
|
3157
|
+
const m = d(a)[`__scope${l}`];
|
|
3158
|
+
return { ...c, ...m };
|
|
3159
3159
|
}, {});
|
|
3160
3160
|
return s.useMemo(() => ({ [`__scope${t.scopeName}`]: i }), [i]);
|
|
3161
3161
|
};
|
|
@@ -3180,7 +3180,7 @@ function ce(e) {
|
|
|
3180
3180
|
return (r = t.current) == null ? void 0 : r.call(t, ...n);
|
|
3181
3181
|
}, []);
|
|
3182
3182
|
}
|
|
3183
|
-
function
|
|
3183
|
+
function kn({
|
|
3184
3184
|
prop: e,
|
|
3185
3185
|
defaultProp: t,
|
|
3186
3186
|
onChange: n = () => {
|
|
@@ -3189,8 +3189,8 @@ function Mn({
|
|
|
3189
3189
|
const [r, o] = Ds({ defaultProp: t, onChange: n }), a = e !== void 0, i = a ? e : r, c = ce(n), d = s.useCallback(
|
|
3190
3190
|
(l) => {
|
|
3191
3191
|
if (a) {
|
|
3192
|
-
const
|
|
3193
|
-
|
|
3192
|
+
const m = typeof l == "function" ? l(e) : l;
|
|
3193
|
+
m !== e && c(m);
|
|
3194
3194
|
} else
|
|
3195
3195
|
o(l);
|
|
3196
3196
|
},
|
|
@@ -3230,7 +3230,7 @@ var _s = "DismissableLayer", hn = "dismissableLayer.update", Ls = "dismissableLa
|
|
|
3230
3230
|
onInteractOutside: i,
|
|
3231
3231
|
onDismiss: c,
|
|
3232
3232
|
...d
|
|
3233
|
-
} = e, l = s.useContext(to), [u,
|
|
3233
|
+
} = e, l = 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(l.layers), [g] = [...l.layersWithOutsidePointerEventsDisabled].slice(-1), w = f.indexOf(g), y = u ? f.indexOf(u) : -1, x = l.layersWithOutsidePointerEventsDisabled.size > 0, C = y >= w, S = zs((T) => {
|
|
3234
3234
|
const F = T.target, k = [...l.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) => {
|
|
@@ -3249,7 +3249,7 @@ var _s = "DismissableLayer", hn = "dismissableLayer.update", Ls = "dismissableLa
|
|
|
3249
3249
|
}, [u, l]), 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
|
...d,
|
|
@@ -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) {
|
|
@@ -3339,7 +3339,7 @@ var Bs = _t, Vs = no, qt = "focusScope.autoFocusOnMount", Zt = "focusScope.autoF
|
|
|
3339
3339
|
onMountAutoFocus: o,
|
|
3340
3340
|
onUnmountAutoFocus: a,
|
|
3341
3341
|
...i
|
|
3342
|
-
} = e, [c, d] = s.useState(null), l = ce(o), u = ce(a),
|
|
3342
|
+
} = e, [c, d] = s.useState(null), l = ce(o), u = ce(a), m = s.useRef(null), v = ee(t, (f) => d(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)
|
|
@@ -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 } = {}) {
|
|
@@ -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) {
|
|
@@ -3503,7 +3503,7 @@ function Qs(e) {
|
|
|
3503
3503
|
}, [e, d]), Pe(() => {
|
|
3504
3504
|
if (t) {
|
|
3505
3505
|
let l;
|
|
3506
|
-
const u = t.ownerDocument.defaultView ?? window,
|
|
3506
|
+
const u = t.ownerDocument.defaultView ?? window, m = (h) => {
|
|
3507
3507
|
const f = ht(r.current).includes(h.animationName);
|
|
3508
3508
|
if (h.target === t && f && (d("ANIMATION_END"), !o.current)) {
|
|
3509
3509
|
const g = t.style.animationFillMode;
|
|
@@ -3514,8 +3514,8 @@ function Qs(e) {
|
|
|
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(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel",
|
|
3517
|
+
return t.addEventListener("animationstart", v), t.addEventListener("animationcancel", m), t.addEventListener("animationend", m), () => {
|
|
3518
|
+
u.clearTimeout(l), t.removeEventListener("animationstart", v), t.removeEventListener("animationcancel", m), t.removeEventListener("animationend", m);
|
|
3519
3519
|
};
|
|
3520
3520
|
} else
|
|
3521
3521
|
d("ANIMATION_END");
|
|
@@ -3696,11 +3696,11 @@ 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, d = e.className, l = e.removeScrollBar, u = e.enabled,
|
|
3699
|
+
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, d = e.className, l = 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: l, shards:
|
|
3703
|
+
u && s.createElement(C, { sideCar: co, removeScrollBar: l, shards: m, noIsolation: h, inert: b, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: y }),
|
|
3704
3704
|
i ? s.cloneElement(s.Children.only(c), he(he({}, E), { ref: S })) : s.createElement(w, he({}, E, { className: d, ref: S }), c)
|
|
3705
3705
|
);
|
|
3706
3706
|
});
|
|
@@ -3899,16 +3899,16 @@ 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, d = t.contains(c), l = !1, u = i > 0,
|
|
3902
|
+
var a = Nc(e, window.getComputedStyle(t).direction), i = a * r, c = n.target, d = t.contains(c), l = !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
3908
|
!d && c !== document.body || // self content
|
|
3909
3909
|
d && (t.contains(c) || t === c)
|
|
3910
3910
|
);
|
|
3911
|
-
return (u && Math.abs(
|
|
3911
|
+
return (u && Math.abs(m) < 1 || !u && Math.abs(v) < 1) && (l = !0), l;
|
|
3912
3912
|
}, vt = function(e) {
|
|
3913
3913
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3914
3914
|
}, vr = function(e) {
|
|
@@ -3981,15 +3981,15 @@ function Ic(e) {
|
|
|
3981
3981
|
}, 1);
|
|
3982
3982
|
}, []), u = s.useCallback(function(f) {
|
|
3983
3983
|
n.current = vt(f), r.current = void 0;
|
|
3984
|
-
}, []),
|
|
3984
|
+
}, []), m = s.useCallback(function(f) {
|
|
3985
3985
|
l(f.type, vr(f), f.target, c(f, e.lockRef.current));
|
|
3986
3986
|
}, []), v = s.useCallback(function(f) {
|
|
3987
3987
|
l(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
3994
|
}), document.addEventListener("wheel", d, je), document.addEventListener("touchmove", d, je), document.addEventListener("touchstart", u, je), function() {
|
|
3995
3995
|
Ge = Ge.filter(function(f) {
|
|
@@ -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(), d = new Set(o), l = function(
|
|
4038
|
-
!
|
|
4037
|
+
var a = wt[n], i = [], c = /* @__PURE__ */ new Set(), d = new Set(o), l = function(m) {
|
|
4038
|
+
!m || c.has(m) || (c.add(m), l(m.parentNode));
|
|
4039
4039
|
};
|
|
4040
4040
|
o.forEach(l);
|
|
4041
|
-
var u = function(
|
|
4042
|
-
!
|
|
4041
|
+
var u = function(m) {
|
|
4042
|
+
!m || d.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) {
|
|
@@ -4063,7 +4063,7 @@ var Fc = function(e) {
|
|
|
4063
4063
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), zc(r, o, n, "aria-hidden")) : function() {
|
|
4064
4064
|
return null;
|
|
4065
4065
|
};
|
|
4066
|
-
},
|
|
4066
|
+
}, Dn = "Dialog", [go, Gu] = ct(Dn), [Bc, pe] = go(Dn), vo = (e) => {
|
|
4067
4067
|
const {
|
|
4068
4068
|
__scopeDialog: t,
|
|
4069
4069
|
children: n,
|
|
@@ -4071,12 +4071,12 @@ var Fc = function(e) {
|
|
|
4071
4071
|
defaultOpen: o,
|
|
4072
4072
|
onOpenChange: a,
|
|
4073
4073
|
modal: i = !0
|
|
4074
|
-
} = e, c = s.useRef(null), d = s.useRef(null), [l = !1, u] =
|
|
4074
|
+
} = e, c = s.useRef(null), d = s.useRef(null), [l = !1, u] = kn({
|
|
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,
|
|
@@ -4087,24 +4087,24 @@ var Fc = function(e) {
|
|
|
4087
4087
|
descriptionId: Et(),
|
|
4088
4088
|
open: l,
|
|
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
|
}
|
|
4094
4094
|
);
|
|
4095
4095
|
};
|
|
4096
|
-
vo.displayName =
|
|
4096
|
+
vo.displayName = Dn;
|
|
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",
|
|
4104
4104
|
"aria-haspopup": "dialog",
|
|
4105
4105
|
"aria-expanded": o.open,
|
|
4106
4106
|
"aria-controls": o.contentId,
|
|
4107
|
-
"data-state":
|
|
4107
|
+
"data-state": Ln(o.open),
|
|
4108
4108
|
...r,
|
|
4109
4109
|
ref: a,
|
|
4110
4110
|
onClick: U(e.onClick, o.onOpenToggle)
|
|
@@ -4113,17 +4113,17 @@ var bo = "DialogTrigger", wo = s.forwardRef(
|
|
|
4113
4113
|
}
|
|
4114
4114
|
);
|
|
4115
4115
|
wo.displayName = bo;
|
|
4116
|
-
var
|
|
4116
|
+
var In = "DialogPortal", [Vc, yo] = go(In, {
|
|
4117
4117
|
forceMount: void 0
|
|
4118
4118
|
}), xo = (e) => {
|
|
4119
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = pe(
|
|
4120
|
-
return /* @__PURE__ */
|
|
4119
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = pe(In, t);
|
|
4120
|
+
return /* @__PURE__ */ p(Vc, { scope: t, forceMount: n, children: s.Children.map(r, (i) => /* @__PURE__ */ p(Be, { present: n || a.open, children: /* @__PURE__ */ p(Lt, { asChild: !0, container: o, children: i }) })) });
|
|
4121
4121
|
};
|
|
4122
|
-
xo.displayName =
|
|
4122
|
+
xo.displayName = In;
|
|
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,10 +4133,10 @@ 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
|
-
"data-state":
|
|
4139
|
+
"data-state": Ln(o.open),
|
|
4140
4140
|
...r,
|
|
4141
4141
|
ref: t,
|
|
4142
4142
|
style: { pointerEvents: "auto", ...r.style }
|
|
@@ -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,
|
|
@@ -4206,7 +4206,7 @@ var jc = s.forwardRef(
|
|
|
4206
4206
|
(e, t) => {
|
|
4207
4207
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, c = pe($e, n), d = s.useRef(null), l = ee(t, d);
|
|
4208
4208
|
return ec(), /* @__PURE__ */ G(Xe, { children: [
|
|
4209
|
-
/* @__PURE__ */
|
|
4209
|
+
/* @__PURE__ */ p(
|
|
4210
4210
|
oo,
|
|
4211
4211
|
{
|
|
4212
4212
|
asChild: !0,
|
|
@@ -4214,14 +4214,14 @@ 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",
|
|
4221
4221
|
id: c.contentId,
|
|
4222
4222
|
"aria-describedby": c.descriptionId,
|
|
4223
4223
|
"aria-labelledby": c.titleId,
|
|
4224
|
-
"data-state":
|
|
4224
|
+
"data-state": Ln(c.open),
|
|
4225
4225
|
...i,
|
|
4226
4226
|
ref: l,
|
|
4227
4227
|
onDismiss: () => c.onOpenChange(!1)
|
|
@@ -4230,29 +4230,29 @@ var jc = s.forwardRef(
|
|
|
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: d, descriptionId: c.descriptionId })
|
|
4235
4235
|
] })
|
|
4236
4236
|
] });
|
|
4237
4237
|
}
|
|
4238
|
-
),
|
|
4238
|
+
), _n = "DialogTitle", To = s.forwardRef(
|
|
4239
4239
|
(e, t) => {
|
|
4240
|
-
const { __scopeDialog: n, ...r } = e, o = pe(
|
|
4241
|
-
return /* @__PURE__ */
|
|
4240
|
+
const { __scopeDialog: n, ...r } = e, o = pe(_n, n);
|
|
4241
|
+
return /* @__PURE__ */ p(Y.h2, { id: o.titleId, ...r, ref: t });
|
|
4242
4242
|
}
|
|
4243
4243
|
);
|
|
4244
|
-
To.displayName =
|
|
4244
|
+
To.displayName = _n;
|
|
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",
|
|
@@ -4264,12 +4264,12 @@ var Ao = "DialogClose", No = s.forwardRef(
|
|
|
4264
4264
|
}
|
|
4265
4265
|
);
|
|
4266
4266
|
No.displayName = Ao;
|
|
4267
|
-
function
|
|
4267
|
+
function Ln(e) {
|
|
4268
4268
|
return e ? "open" : "closed";
|
|
4269
4269
|
}
|
|
4270
4270
|
var Oo = "DialogTitleWarning", [Uu, Mo] = Ns(Oo, {
|
|
4271
4271
|
contentName: $e,
|
|
4272
|
-
titleName:
|
|
4272
|
+
titleName: _n,
|
|
4273
4273
|
docsSlug: "dialog"
|
|
4274
4274
|
}), Uc = ({ titleId: e }) => {
|
|
4275
4275
|
const t = Mo(Oo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
@@ -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 } = Pn(), 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);
|
|
@@ -4394,7 +4414,7 @@ function wr({
|
|
|
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),
|
|
@@ -4426,21 +4446,21 @@ function xe(e) {
|
|
|
4426
4446
|
function et(e) {
|
|
4427
4447
|
return e.split("-")[1];
|
|
4428
4448
|
}
|
|
4429
|
-
function
|
|
4449
|
+
function Fn(e) {
|
|
4430
4450
|
return e === "x" ? "y" : "x";
|
|
4431
4451
|
}
|
|
4432
|
-
function
|
|
4452
|
+
function $n(e) {
|
|
4433
4453
|
return e === "y" ? "height" : "width";
|
|
4434
4454
|
}
|
|
4435
4455
|
function Ne(e) {
|
|
4436
4456
|
return ["top", "bottom"].includes(xe(e)) ? "y" : "x";
|
|
4437
4457
|
}
|
|
4438
|
-
function
|
|
4439
|
-
return
|
|
4458
|
+
function zn(e) {
|
|
4459
|
+
return Fn(Ne(e));
|
|
4440
4460
|
}
|
|
4441
4461
|
function ll(e, t, n) {
|
|
4442
4462
|
n === void 0 && (n = !1);
|
|
4443
|
-
const r = et(e), o =
|
|
4463
|
+
const r = et(e), o = zn(e), a = $n(o);
|
|
4444
4464
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4445
4465
|
return t.reference[a] > t.floating[a] && (i = Mt(i)), [i, Mt(i)];
|
|
4446
4466
|
}
|
|
@@ -4512,7 +4532,7 @@ function yr(e, t, n) {
|
|
|
4512
4532
|
reference: r,
|
|
4513
4533
|
floating: o
|
|
4514
4534
|
} = e;
|
|
4515
|
-
const a = Ne(t), i =
|
|
4535
|
+
const a = Ne(t), i = zn(t), c = $n(i), d = xe(t), l = 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
4537
|
switch (d) {
|
|
4518
4538
|
case "top":
|
|
@@ -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:
|
|
@@ -4568,7 +4588,7 @@ const ml = async (e, t, n) => {
|
|
|
4568
4588
|
strategy: o
|
|
4569
4589
|
}), {
|
|
4570
4590
|
x: u,
|
|
4571
|
-
y:
|
|
4591
|
+
y: m
|
|
4572
4592
|
} = yr(l, r, d), v = r, h = {}, b = 0;
|
|
4573
4593
|
for (let f = 0; f < c.length; f++) {
|
|
4574
4594
|
const {
|
|
@@ -4581,7 +4601,7 @@ 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,
|
|
@@ -4593,7 +4613,7 @@ const ml = async (e, t, n) => {
|
|
|
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],
|
|
@@ -4605,12 +4625,12 @@ const ml = async (e, t, n) => {
|
|
|
4605
4625
|
strategy: o
|
|
4606
4626
|
}) : S.rects), {
|
|
4607
4627
|
x: u,
|
|
4608
|
-
y:
|
|
4628
|
+
y: m
|
|
4609
4629
|
} = yr(l, v, d)), 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
|
|
@@ -4629,15 +4649,15 @@ async function it(e, t) {
|
|
|
4629
4649
|
} = e, {
|
|
4630
4650
|
boundary: l = "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
4657
|
boundary: l,
|
|
4638
4658
|
rootBoundary: u,
|
|
4639
4659
|
strategy: d
|
|
4640
|
-
})), y =
|
|
4660
|
+
})), y = m === "floating" ? {
|
|
4641
4661
|
x: r,
|
|
4642
4662
|
y: o,
|
|
4643
4663
|
width: i.floating.width,
|
|
@@ -4679,13 +4699,13 @@ const hl = (e) => ({
|
|
|
4679
4699
|
} = ye(e, t) || {};
|
|
4680
4700
|
if (l == null)
|
|
4681
4701
|
return {};
|
|
4682
|
-
const
|
|
4702
|
+
const m = zo(u), v = {
|
|
4683
4703
|
x: n,
|
|
4684
4704
|
y: r
|
|
4685
|
-
}, h =
|
|
4705
|
+
}, h = zn(o), b = $n(h), f = await i.getDimensions(l), 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(l));
|
|
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 = !d.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: {
|
|
@@ -4713,7 +4733,7 @@ const hl = (e) => ({
|
|
|
4713
4733
|
elements: l
|
|
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",
|
|
@@ -4726,7 +4746,7 @@ const hl = (e) => ({
|
|
|
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
|
}
|
|
@@ -4836,19 +4856,19 @@ 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), d = Ne(n) === "y", l = ["left", "top"].includes(i) ? -1 : 1, u = a && d ? -1 : 1,
|
|
4859
|
+
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = xe(n), c = et(n), d = Ne(n) === "y", l = ["left", "top"].includes(i) ? -1 : 1, u = a && d ? -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
4873
|
return c && typeof b == "number" && (h = c === "end" ? b * -1 : b), d ? {
|
|
4854
4874
|
x: h * u,
|
|
@@ -4908,20 +4928,20 @@ const wl = function(e) {
|
|
|
4908
4928
|
} = ye(e, t), l = {
|
|
4909
4929
|
x: n,
|
|
4910
4930
|
y: r
|
|
4911
|
-
}, u = await it(t, d),
|
|
4912
|
-
let h = l[v], b = l[
|
|
4931
|
+
}, u = await it(t, d), m = Ne(xe(o)), v = Fn(m);
|
|
4932
|
+
let h = l[v], b = l[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
|
};
|
|
@@ -4953,8 +4973,8 @@ const wl = function(e) {
|
|
|
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 = Fn(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
|
|
@@ -4969,12 +4989,12 @@ const wl = function(e) {
|
|
|
4969
4989
|
}
|
|
4970
4990
|
if (l) {
|
|
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
|
};
|
|
@@ -4993,12 +5013,12 @@ const wl = function(e) {
|
|
|
4993
5013
|
apply: d = () => {
|
|
4994
5014
|
},
|
|
4995
5015
|
...l
|
|
4996
|
-
} = ye(e, t), u = await it(t, l),
|
|
5016
|
+
} = ye(e, t), u = await it(t, l), 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) {
|
|
@@ -5066,14 +5086,14 @@ function zt(e) {
|
|
|
5066
5086
|
}
|
|
5067
5087
|
});
|
|
5068
5088
|
}
|
|
5069
|
-
function
|
|
5070
|
-
const t =
|
|
5089
|
+
function Wn(e) {
|
|
5090
|
+
const t = Bn(), n = ue(e) ? fe(e) : e;
|
|
5071
5091
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5072
5092
|
}
|
|
5073
5093
|
function Sl(e) {
|
|
5074
5094
|
let t = Oe(e);
|
|
5075
5095
|
for (; ve(t) && !qe(t); ) {
|
|
5076
|
-
if (
|
|
5096
|
+
if (Wn(t))
|
|
5077
5097
|
return t;
|
|
5078
5098
|
if (zt(t))
|
|
5079
5099
|
return null;
|
|
@@ -5081,7 +5101,7 @@ function Sl(e) {
|
|
|
5081
5101
|
}
|
|
5082
5102
|
return null;
|
|
5083
5103
|
}
|
|
5084
|
-
function
|
|
5104
|
+
function Bn() {
|
|
5085
5105
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5086
5106
|
}
|
|
5087
5107
|
function qe(e) {
|
|
@@ -5138,11 +5158,11 @@ function Vo(e) {
|
|
|
5138
5158
|
$: c
|
|
5139
5159
|
};
|
|
5140
5160
|
}
|
|
5141
|
-
function
|
|
5161
|
+
function Vn(e) {
|
|
5142
5162
|
return ue(e) ? e : e.contextElement;
|
|
5143
5163
|
}
|
|
5144
5164
|
function Ye(e) {
|
|
5145
|
-
const t =
|
|
5165
|
+
const t = Vn(e);
|
|
5146
5166
|
if (!ve(t))
|
|
5147
5167
|
return ge(1);
|
|
5148
5168
|
const n = t.getBoundingClientRect(), {
|
|
@@ -5159,7 +5179,7 @@ function Ye(e) {
|
|
|
5159
5179
|
const Tl = /* @__PURE__ */ ge(0);
|
|
5160
5180
|
function Ho(e) {
|
|
5161
5181
|
const t = se(e);
|
|
5162
|
-
return !
|
|
5182
|
+
return !Bn() || !t.visualViewport ? Tl : {
|
|
5163
5183
|
x: t.visualViewport.offsetLeft,
|
|
5164
5184
|
y: t.visualViewport.offsetTop
|
|
5165
5185
|
};
|
|
@@ -5169,27 +5189,27 @@ function Rl(e, t, n) {
|
|
|
5169
5189
|
}
|
|
5170
5190
|
function ze(e, t, n, r) {
|
|
5171
5191
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5172
|
-
const o = e.getBoundingClientRect(), a =
|
|
5192
|
+
const o = e.getBoundingClientRect(), a = Vn(e);
|
|
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 d = (o.left + c.x) / i.x, l = (o.top + c.y) / i.y, u = o.width / i.x,
|
|
5196
|
+
let d = (o.left + c.x) / i.x, l = (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
|
-
d *= g.x, l *= g.y, u *= g.x,
|
|
5202
|
+
d *= g.x, l *= g.y, u *= g.x, m *= g.y, d += x, l += C, b = se(f), f = wn(b);
|
|
5183
5203
|
}
|
|
5184
5204
|
}
|
|
5185
5205
|
return kt({
|
|
5186
5206
|
width: u,
|
|
5187
|
-
height:
|
|
5207
|
+
height: m,
|
|
5188
5208
|
x: d,
|
|
5189
5209
|
y: l
|
|
5190
5210
|
});
|
|
5191
5211
|
}
|
|
5192
|
-
function
|
|
5212
|
+
function Hn(e, t) {
|
|
5193
5213
|
const n = Wt(e).scrollLeft;
|
|
5194
5214
|
return t ? t.left + n : ze(be(e)).left + n;
|
|
5195
5215
|
}
|
|
@@ -5197,7 +5217,7 @@ function jo(e, t, n) {
|
|
|
5197
5217
|
n === void 0 && (n = !1);
|
|
5198
5218
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
5199
5219
|
// RTL <body> scrollbar.
|
|
5200
|
-
|
|
5220
|
+
Hn(e, r)
|
|
5201
5221
|
)), a = r.top + t.scrollTop;
|
|
5202
5222
|
return {
|
|
5203
5223
|
x: o,
|
|
@@ -5218,12 +5238,12 @@ function Pl(e) {
|
|
|
5218
5238
|
scrollLeft: 0,
|
|
5219
5239
|
scrollTop: 0
|
|
5220
5240
|
}, l = ge(1);
|
|
5221
|
-
const u = ge(0),
|
|
5222
|
-
if ((
|
|
5241
|
+
const u = ge(0), m = ve(r);
|
|
5242
|
+
if ((m || !m && !a) && ((tt(r) !== "body" || lt(i)) && (d = Wt(r)), ve(r))) {
|
|
5223
5243
|
const h = ze(r);
|
|
5224
5244
|
l = 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, d, !0) : ge(0);
|
|
5227
5247
|
return {
|
|
5228
5248
|
width: n.width * l.x,
|
|
5229
5249
|
height: n.height * l.y,
|
|
@@ -5236,7 +5256,7 @@ function Al(e) {
|
|
|
5236
5256
|
}
|
|
5237
5257
|
function Nl(e) {
|
|
5238
5258
|
const t = be(e), n = Wt(e), r = e.ownerDocument.body, o = ie(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ie(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5239
|
-
let i = -n.scrollLeft +
|
|
5259
|
+
let i = -n.scrollLeft + Hn(e);
|
|
5240
5260
|
const c = -n.scrollTop;
|
|
5241
5261
|
return fe(r).direction === "rtl" && (i += ie(t.clientWidth, r.clientWidth) - o), {
|
|
5242
5262
|
width: o,
|
|
@@ -5250,7 +5270,7 @@ function Ol(e, t) {
|
|
|
5250
5270
|
let a = r.clientWidth, i = r.clientHeight, c = 0, d = 0;
|
|
5251
5271
|
if (o) {
|
|
5252
5272
|
a = o.width, i = o.height;
|
|
5253
|
-
const l =
|
|
5273
|
+
const l = Bn();
|
|
5254
5274
|
(!l || l && t === "fixed") && (c = o.offsetLeft, d = o.offsetTop);
|
|
5255
5275
|
}
|
|
5256
5276
|
return {
|
|
@@ -5300,7 +5320,7 @@ 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), d =
|
|
5323
|
+
const c = fe(i), d = Wn(i);
|
|
5304
5324
|
!d && c.position === "fixed" && (o = null), (a ? !d && !o : !d && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || lt(i) && !d && Go(e, i)) ? r = r.filter((u) => u !== i) : o = c, i = Oe(i);
|
|
5305
5325
|
}
|
|
5306
5326
|
return t.set(e, r), r;
|
|
@@ -5313,8 +5333,8 @@ function Dl(e) {
|
|
|
5313
5333
|
strategy: o
|
|
5314
5334
|
} = e;
|
|
5315
5335
|
const i = [...n === "clippingAncestors" ? zt(t) ? [] : kl(t, this._c) : [].concat(n), r], c = i[0], d = i.reduce((l, u) => {
|
|
5316
|
-
const
|
|
5317
|
-
return l.top = ie(
|
|
5336
|
+
const m = Sr(t, u, o);
|
|
5337
|
+
return l.top = ie(m.top, l.top), l.right = Ae(m.right, l.right), l.bottom = Ae(m.bottom, l.bottom), l.left = ie(m.left, l.left), l;
|
|
5318
5338
|
}, Sr(t, c, o));
|
|
5319
5339
|
return {
|
|
5320
5340
|
width: d.right - d.left,
|
|
@@ -5344,11 +5364,11 @@ function _l(e, t, n) {
|
|
|
5344
5364
|
if ((tt(t) !== "body" || lt(o)) && (c = Wt(t)), r) {
|
|
5345
5365
|
const v = ze(t, !0, a, t);
|
|
5346
5366
|
d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
|
|
5347
|
-
} else o && (d.x =
|
|
5348
|
-
const l = o && !r && !a ? jo(o, c) : ge(0), u = i.left + c.scrollLeft - d.x - l.x,
|
|
5367
|
+
} else o && (d.x = Hn(o));
|
|
5368
|
+
const l = o && !r && !a ? jo(o, c) : ge(0), u = i.left + c.scrollLeft - d.x - l.x, m = i.top + c.scrollTop - d.y - l.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
|
};
|
|
@@ -5380,7 +5400,7 @@ function Uo(e, t) {
|
|
|
5380
5400
|
let r = Tr(e, t);
|
|
5381
5401
|
for (; r && Cl(r) && on(r); )
|
|
5382
5402
|
r = Tr(r, t);
|
|
5383
|
-
return r && qe(r) && on(r) && !
|
|
5403
|
+
return r && qe(r) && on(r) && !Wn(r) ? n : r || Sl(e) || n;
|
|
5384
5404
|
}
|
|
5385
5405
|
const Ll = async function(e) {
|
|
5386
5406
|
const t = this.getOffsetParent || Uo, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -5423,13 +5443,13 @@ function zl(e, t) {
|
|
|
5423
5443
|
c === void 0 && (c = !1), d === void 0 && (d = 1), a();
|
|
5424
5444
|
const l = e.getBoundingClientRect(), {
|
|
5425
5445
|
left: u,
|
|
5426
|
-
top:
|
|
5446
|
+
top: m,
|
|
5427
5447
|
width: v,
|
|
5428
5448
|
height: h
|
|
5429
5449
|
} = l;
|
|
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
5454
|
threshold: ie(0, Ae(1, d)) || 1
|
|
5435
5455
|
};
|
|
@@ -5466,13 +5486,13 @@ function Wl(e, t, n, r) {
|
|
|
5466
5486
|
elementResize: i = typeof ResizeObserver == "function",
|
|
5467
5487
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5468
5488
|
animationFrame: d = !1
|
|
5469
|
-
} = r, l =
|
|
5489
|
+
} = r, l = Vn(e), u = o || a ? [...l ? st(l) : [], ...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 = l && c ? zl(l, n) : null;
|
|
5476
5496
|
let v = -1, h = null;
|
|
5477
5497
|
i && (h = new ResizeObserver((w) => {
|
|
5478
5498
|
let [y] = w;
|
|
@@ -5491,7 +5511,7 @@ 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, d && cancelAnimationFrame(b);
|
|
5495
5515
|
};
|
|
5496
5516
|
}
|
|
5497
5517
|
const Bl = wl, Vl = yl, Hl = gl, jl = El, Gl = vl, Rr = hl, Ul = xl, Kl = (e, t, n) => {
|
|
@@ -5565,7 +5585,7 @@ function Yl(e) {
|
|
|
5565
5585
|
transform: c = !0,
|
|
5566
5586
|
whileElementsMounted: d,
|
|
5567
5587
|
open: l
|
|
5568
|
-
} = e, [u,
|
|
5588
|
+
} = e, [u, m] = s.useState({
|
|
5569
5589
|
x: 0,
|
|
5570
5590
|
y: 0,
|
|
5571
5591
|
strategy: n,
|
|
@@ -5596,12 +5616,12 @@ 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
|
-
l === !1 && F.current.isPositioned && (F.current.isPositioned = !1,
|
|
5624
|
+
l === !1 && F.current.isPositioned && (F.current.isPositioned = !1, m((O) => ({
|
|
5605
5625
|
...O,
|
|
5606
5626
|
isPositioned: !1
|
|
5607
5627
|
})));
|
|
@@ -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
|
});
|
|
@@ -5735,21 +5755,21 @@ function ad(e) {
|
|
|
5735
5755
|
n(void 0);
|
|
5736
5756
|
}, [e]), t;
|
|
5737
5757
|
}
|
|
5738
|
-
var
|
|
5758
|
+
var jn = "Popper", [qo, Zo] = ct(jn), [id, Qo] = qo(jn), 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
|
-
Jo.displayName =
|
|
5762
|
+
Jo.displayName = jn;
|
|
5743
5763
|
var ea = "PopperAnchor", ta = s.forwardRef(
|
|
5744
5764
|
(e, t) => {
|
|
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;
|
|
5752
|
-
var
|
|
5772
|
+
var Gn = "PopperContent", [sd, cd] = qo(Gn), na = s.forwardRef(
|
|
5753
5773
|
(e, t) => {
|
|
5754
5774
|
var me, nt, ut, rt, ft, Ve;
|
|
5755
5775
|
const {
|
|
@@ -5762,12 +5782,12 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5762
5782
|
avoidCollisions: d = !0,
|
|
5763
5783
|
collisionBoundary: l = [],
|
|
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(
|
|
5790
|
+
} = e, g = Qo(Gn, 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(l) ? l : [l], 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
|
|
@@ -5787,7 +5807,7 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5787
5807
|
d && 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
|
d && Jl({ ...M }),
|
|
@@ -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": _,
|
|
@@ -5863,7 +5883,7 @@ var jn = "PopperContent", [sd, cd] = qo(jn), na = s.forwardRef(
|
|
|
5863
5883
|
);
|
|
5864
5884
|
}
|
|
5865
5885
|
);
|
|
5866
|
-
na.displayName =
|
|
5886
|
+
na.displayName = Gn;
|
|
5867
5887
|
var ra = "PopperArrow", ld = {
|
|
5868
5888
|
top: "bottom",
|
|
5869
5889
|
right: "left",
|
|
@@ -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, d = i ? 0 : e.arrowHeight, [l, u] = aa(n),
|
|
5946
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = i ? 0 : e.arrowWidth, d = i ? 0 : e.arrowHeight, [l, 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) + d / 2;
|
|
5927
5947
|
let b = "", f = "";
|
|
5928
|
-
return l === "bottom" ? (b = i ?
|
|
5948
|
+
return l === "bottom" ? (b = i ? m : `${v}px`, f = `${-d}px`) : l === "top" ? (b = i ? m : `${v}px`, f = `${r.floating.height + d}px`) : l === "right" ? (b = `${-d}px`, f = i ? m : `${h}px`) : l === "left" && (b = `${r.floating.width + d}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,9 +5976,9 @@ 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
|
-
]), Ht = Zo(), ia = "TooltipProvider", bd = 700, yn = "tooltip.open", [wd,
|
|
5981
|
+
]), Ht = Zo(), ia = "TooltipProvider", bd = 700, yn = "tooltip.open", [wd, Un] = Vt(ia), sa = (e) => {
|
|
5962
5982
|
const {
|
|
5963
5983
|
__scopeTooltip: t,
|
|
5964
5984
|
delayDuration: n = bd,
|
|
@@ -5969,7 +5989,7 @@ var vd = Bt, [Vt, Xu] = ct("Tooltip", [
|
|
|
5969
5989
|
return s.useEffect(() => {
|
|
5970
5990
|
const u = l.current;
|
|
5971
5991
|
return () => window.clearTimeout(u);
|
|
5972
|
-
}, []), /* @__PURE__ */
|
|
5992
|
+
}, []), /* @__PURE__ */ p(
|
|
5973
5993
|
wd,
|
|
5974
5994
|
{
|
|
5975
5995
|
scope: t,
|
|
@@ -6003,7 +6023,7 @@ var jt = "Tooltip", [yd, dt] = Vt(jt), ca = (e) => {
|
|
|
6003
6023
|
onOpenChange: a,
|
|
6004
6024
|
disableHoverableContent: i,
|
|
6005
6025
|
delayDuration: c
|
|
6006
|
-
} = e, d =
|
|
6026
|
+
} = e, d = Un(jt, e.__scopeTooltip), l = Ht(t), [u, m] = s.useState(null), v = Et(), h = s.useRef(0), b = i ?? d.disableHoverableContent, f = c ?? d.delayDuration, g = s.useRef(!1), [w = !1, y] = kn({
|
|
6007
6027
|
prop: r,
|
|
6008
6028
|
defaultProp: o,
|
|
6009
6029
|
onChange: (T) => {
|
|
@@ -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, { ...l, children: /* @__PURE__ */ p(
|
|
6024
6044
|
yd,
|
|
6025
6045
|
{
|
|
6026
6046
|
scope: t,
|
|
@@ -6028,7 +6048,7 @@ 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
6053
|
d.isOpenDelayed ? E() : C();
|
|
6034
6054
|
}, [d.isOpenDelayed, E, C]),
|
|
@@ -6045,8 +6065,8 @@ 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 =
|
|
6049
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup",
|
|
6068
|
+
const { __scopeTooltip: n, ...r } = e, o = dt(xn, n), a = Un(xn, n), i = Ht(n), c = s.useRef(null), d = ee(t, c, o.onTriggerChange), l = s.useRef(!1), u = s.useRef(!1), m = s.useCallback(() => l.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,
|
|
@@ -6060,7 +6080,7 @@ var xn = "TooltipTrigger", la = s.forwardRef(
|
|
|
6060
6080
|
o.onTriggerLeave(), u.current = !1;
|
|
6061
6081
|
}),
|
|
6062
6082
|
onPointerDown: U(e.onPointerDown, () => {
|
|
6063
|
-
l.current = !0, document.addEventListener("pointerup",
|
|
6083
|
+
l.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
6064
6084
|
}),
|
|
6065
6085
|
onFocus: U(e.onFocus, () => {
|
|
6066
6086
|
l.current || o.onOpen();
|
|
@@ -6072,27 +6092,27 @@ var xn = "TooltipTrigger", la = s.forwardRef(
|
|
|
6072
6092
|
}
|
|
6073
6093
|
);
|
|
6074
6094
|
la.displayName = xn;
|
|
6075
|
-
var
|
|
6095
|
+
var Kn = "TooltipPortal", [xd, Ed] = Vt(Kn, {
|
|
6076
6096
|
forceMount: void 0
|
|
6077
6097
|
}), da = (e) => {
|
|
6078
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = dt(
|
|
6079
|
-
return /* @__PURE__ */
|
|
6098
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = dt(Kn, t);
|
|
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
|
-
da.displayName =
|
|
6101
|
+
da.displayName = Kn;
|
|
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 =
|
|
6089
|
-
c(null),
|
|
6090
|
-
}, [
|
|
6108
|
+
const n = dt(Ze, e.__scopeTooltip), r = Un(Ze, e.__scopeTooltip), o = s.useRef(null), a = ee(t, o), [i, c] = s.useState(null), { trigger: d, onClose: l } = 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
6118
|
if (d && u) {
|
|
@@ -6109,7 +6129,7 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6109
6129
|
};
|
|
6110
6130
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6111
6131
|
}
|
|
6112
|
-
}, [d, u, i, l, v]), /* @__PURE__ */
|
|
6132
|
+
}, [d, u, i, l, 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 {
|
|
@@ -6122,20 +6142,20 @@ var Ze = "TooltipContent", ua = s.forwardRef(
|
|
|
6122
6142
|
} = e, d = dt(Ze, n), l = Ht(n), { onClose: u } = d;
|
|
6123
6143
|
return s.useEffect(() => (document.addEventListener(yn, u), () => document.removeEventListener(yn, u)), [u]), s.useEffect(() => {
|
|
6124
6144
|
if (d.trigger) {
|
|
6125
|
-
const
|
|
6145
|
+
const m = (v) => {
|
|
6126
6146
|
const h = v.target;
|
|
6127
6147
|
h != null && h.contains(d.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
|
-
}, [d.trigger, u]), /* @__PURE__ */
|
|
6151
|
+
}, [d.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,
|
|
@@ -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: d.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;
|
|
@@ -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,7 +6316,7 @@ const va = s.forwardRef(
|
|
|
6296
6316
|
children: a,
|
|
6297
6317
|
...i
|
|
6298
6318
|
}, c) => {
|
|
6299
|
-
const d = al(), [l, u] = s.useState(!1), [
|
|
6319
|
+
const d = al(), [l, 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}`;
|
|
@@ -6321,7 +6341,7 @@ const va = s.forwardRef(
|
|
|
6321
6341
|
}),
|
|
6322
6342
|
[g, h, b, d, l, 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: {
|
|
@@ -6351,7 +6371,7 @@ const ba = s.forwardRef(
|
|
|
6351
6371
|
...a
|
|
6352
6372
|
}, i) => {
|
|
6353
6373
|
const { isMobile: c, state: d, openMobile: l, setOpenMobile: u } = Gt();
|
|
6354
|
-
return n === "none" ? /* @__PURE__ */
|
|
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: l, onOpenChange: u, ...a, children: /* @__PURE__ */ p(
|
|
6366
6386
|
$o,
|
|
6367
6387
|
{
|
|
6368
6388
|
"data-sidebar": "sidebar",
|
|
@@ -6372,7 +6392,7 @@ 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",
|
|
@@ -6384,7 +6404,7 @@ const ba = s.forwardRef(
|
|
|
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",
|
|
@@ -6425,7 +6445,7 @@ ba.displayName = "Sidebar";
|
|
|
6425
6445
|
const wa = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
6426
6446
|
const { toggleSidebar: o } = Gt();
|
|
6427
6447
|
return /* @__PURE__ */ G(
|
|
6428
|
-
|
|
6448
|
+
On,
|
|
6429
6449
|
{
|
|
6430
6450
|
ref: r,
|
|
6431
6451
|
"data-sidebar": "trigger",
|
|
@@ -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,8 +6502,8 @@ 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__ */
|
|
6486
|
-
|
|
6505
|
+
const Yd = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ p(
|
|
6506
|
+
Mn,
|
|
6487
6507
|
{
|
|
6488
6508
|
ref: n,
|
|
6489
6509
|
"data-sidebar": "input",
|
|
@@ -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,7 +6657,7 @@ const eu = It(
|
|
|
6637
6657
|
className: a,
|
|
6638
6658
|
...i
|
|
6639
6659
|
}, c) => {
|
|
6640
|
-
const d = e ? de : "button", { isMobile: l, state: u } = Gt(),
|
|
6660
|
+
const d = e ? de : "button", { isMobile: l, state: u } = Gt(), m = /* @__PURE__ */ p(
|
|
6641
6661
|
d,
|
|
6642
6662
|
{
|
|
6643
6663
|
ref: c,
|
|
@@ -6651,8 +6671,8 @@ 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",
|
|
@@ -6661,11 +6681,11 @@ const eu = It(
|
|
|
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,14 +6733,14 @@ 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__ */
|
|
6736
|
+
t && /* @__PURE__ */ p(
|
|
6717
6737
|
wr,
|
|
6718
6738
|
{
|
|
6719
6739
|
className: "size-4 rounded-md",
|
|
6720
6740
|
"data-sidebar": "menu-skeleton-icon"
|
|
6721
6741
|
}
|
|
6722
6742
|
),
|
|
6723
|
-
/* @__PURE__ */
|
|
6743
|
+
/* @__PURE__ */ p(
|
|
6724
6744
|
wr,
|
|
6725
6745
|
{
|
|
6726
6746
|
className: "h-4 flex-1 max-w-(--skeleton-width)",
|
|
@@ -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
6802
|
const c = e + "CollectionSlot", d = _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
6808
|
d.displayName = c;
|
|
6789
|
-
const l = e + "CollectionItemSlot", u = "data-radix-collection-item",
|
|
6809
|
+
const l = e + "CollectionItemSlot", u = "data-radix-collection-item", m = _e.forwardRef(
|
|
6790
6810
|
(h, b) => {
|
|
6791
6811
|
const { scope: f, children: g, ...w } = h, y = _e.useRef(null), x = ee(b, y), C = a(l, f);
|
|
6792
|
-
return _e.useEffect(() => (C.itemMap.set(y, { ref: y, ...w }), () => void C.itemMap.delete(y))), /* @__PURE__ */
|
|
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 = l;
|
|
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: d, ItemSlot:
|
|
6828
|
+
{ Provider: i, Slot: d, ItemSlot: m },
|
|
6809
6829
|
v,
|
|
6810
6830
|
r
|
|
6811
6831
|
];
|
|
6812
6832
|
}
|
|
6813
|
-
var
|
|
6833
|
+
var Yn = "ToastProvider", [Xn, cu, lu] = su("Toast"), [Ra, Zu] = ct("Toast", [lu]), [du, Ut] = Ra(Yn), 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, d] = s.useState(null), [l, u] = s.useState(0),
|
|
6841
|
+
} = e, [c, d] = s.useState(null), [l, u] = s.useState(0), m = s.useRef(!1), v = s.useRef(!1);
|
|
6822
6842
|
return n.trim() || console.error(
|
|
6823
|
-
`Invalid prop \`label\` supplied to \`${
|
|
6824
|
-
), /* @__PURE__ */
|
|
6843
|
+
`Invalid prop \`label\` supplied to \`${Yn}\`. Expected non-empty \`string\`.`
|
|
6844
|
+
), /* @__PURE__ */ p(Xn.Provider, { scope: t, children: /* @__PURE__ */ p(
|
|
6825
6845
|
du,
|
|
6826
6846
|
{
|
|
6827
6847
|
scope: t,
|
|
@@ -6834,13 +6854,13 @@ var Kn = "ToastProvider", [Yn, cu, lu] = su("Toast"), [Ra, qu] = ct("Toast", [lu
|
|
|
6834
6854
|
onViewportChange: d,
|
|
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
|
}
|
|
6841
6861
|
) });
|
|
6842
6862
|
};
|
|
6843
|
-
Pa.displayName =
|
|
6863
|
+
Pa.displayName = Yn;
|
|
6844
6864
|
var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.viewportResume", Na = s.forwardRef(
|
|
6845
6865
|
(e, t) => {
|
|
6846
6866
|
const {
|
|
@@ -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), d = s.useRef(null), l = s.useRef(null), u = s.useRef(null),
|
|
6871
|
+
} = e, i = Ut(Aa, n), c = cu(n), d = s.useRef(null), l = 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 = d.current, w =
|
|
6879
|
+
const g = d.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;
|
|
@@ -6915,7 +6935,7 @@ var Aa = "ToastViewport", uu = ["F8"], En = "toast.viewportPause", Cn = "toast.v
|
|
|
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
6941
|
ref: l,
|
|
@@ -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(Xn.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,
|
|
@@ -6969,12 +6989,12 @@ 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, d] =
|
|
6992
|
+
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [c = !0, d] = kn({
|
|
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,
|
|
@@ -6987,15 +7007,15 @@ var Kt = "Toast", fu = "toast.swipeStart", pu = "toast.swipeMove", mu = "toast.s
|
|
|
6987
7007
|
l.currentTarget.setAttribute("data-swipe", "start");
|
|
6988
7008
|
}),
|
|
6989
7009
|
onSwipeMove: U(e.onSwipeMove, (l) => {
|
|
6990
|
-
const { x: u, y:
|
|
6991
|
-
l.currentTarget.setAttribute("data-swipe", "move"), l.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${
|
|
7010
|
+
const { x: u, y: m } = l.detail.delta;
|
|
7011
|
+
l.currentTarget.setAttribute("data-swipe", "move"), l.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${m}px`);
|
|
6992
7012
|
}),
|
|
6993
7013
|
onSwipeCancel: U(e.onSwipeCancel, (l) => {
|
|
6994
7014
|
l.currentTarget.setAttribute("data-swipe", "cancel"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), l.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
6995
7015
|
}),
|
|
6996
7016
|
onSwipeEnd: U(e.onSwipeEnd, (l) => {
|
|
6997
|
-
const { x: u, y:
|
|
6998
|
-
l.currentTarget.setAttribute("data-swipe", "end"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), l.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${
|
|
7017
|
+
const { x: u, y: m } = l.detail.delta;
|
|
7018
|
+
l.currentTarget.setAttribute("data-swipe", "end"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), l.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), l.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${u}px`), l.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${m}px`), d(!1);
|
|
6999
7019
|
})
|
|
7000
7020
|
}
|
|
7001
7021
|
) });
|
|
@@ -7017,7 +7037,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7017
7037
|
onPause: d,
|
|
7018
7038
|
onResume: l,
|
|
7019
7039
|
onSwipeStart: u,
|
|
7020
|
-
onSwipeMove:
|
|
7040
|
+
onSwipeMove: m,
|
|
7021
7041
|
onSwipeCancel: v,
|
|
7022
7042
|
onSwipeEnd: h,
|
|
7023
7043
|
...b
|
|
@@ -7048,7 +7068,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
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(Xn.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,7 +7107,7 @@ 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
|
})) : Ar(Q, f.swipeDirection, te) ? (C.current = Q, xt(fu, u, J, {
|
|
7093
7113
|
discrete: !1
|
|
@@ -7124,7 +7144,7 @@ var [gu, vu] = Ra(Kt, {
|
|
|
7124
7144
|
return Eu(() => i(!0)), s.useEffect(() => {
|
|
7125
7145
|
const l = window.setTimeout(() => d(!0), 1e3);
|
|
7126
7146
|
return () => window.clearTimeout(l);
|
|
7127
|
-
}, []), c ? null : /* @__PURE__ */
|
|
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,30 +7152,30 @@ 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(qn, { ...r, ref: t }) }) : (console.error(
|
|
7150
7170
|
`Invalid prop \`altText\` supplied to \`${Ia}\`. Expected non-empty \`string\`.`
|
|
7151
7171
|
), null);
|
|
7152
7172
|
}
|
|
7153
7173
|
);
|
|
7154
7174
|
_a.displayName = Ia;
|
|
7155
|
-
var La = "ToastClose",
|
|
7175
|
+
var La = "ToastClose", qn = 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",
|
|
@@ -7166,10 +7186,10 @@ var La = "ToastClose", Xn = s.forwardRef(
|
|
|
7166
7186
|
) });
|
|
7167
7187
|
}
|
|
7168
7188
|
);
|
|
7169
|
-
|
|
7189
|
+
qn.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": "",
|
|
@@ -7228,8 +7248,8 @@ function sn(e) {
|
|
|
7228
7248
|
const t = document.activeElement;
|
|
7229
7249
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7230
7250
|
}
|
|
7231
|
-
var Tu = Pa, za = Na, Wa = Ma, Ba = ka, Va = Da, Ha = _a, ja =
|
|
7232
|
-
const Ru = Tu, Ga = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
7251
|
+
var Tu = Pa, za = Na, Wa = Ma, Ba = ka, Va = Da, Ha = _a, ja = qn;
|
|
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,13 +7303,13 @@ 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;
|
|
@@ -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(), { appID: i } =
|
|
7404
|
+
const [n, r] = Tn(""), o = oi(), { toast: a } = qa(), { appID: i } = Pn(), c = () => {
|
|
7385
7405
|
const l = n.trim();
|
|
7386
7406
|
if (!l || l.length < 2) {
|
|
7387
7407
|
a({
|
|
@@ -7399,20 +7419,20 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
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
7429
|
onClick: c,
|
|
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__ */
|
|
7415
|
-
|
|
7434
|
+
/* @__PURE__ */ p(
|
|
7435
|
+
Mn,
|
|
7416
7436
|
{
|
|
7417
7437
|
placeholder: "Search...",
|
|
7418
7438
|
className: "w-full pl-8 bg-white text-black",
|
|
@@ -7424,19 +7444,17 @@ function _u({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
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(On, { 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 } = Pn(), 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 = "search",
|
|
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
|
-
|
|
7509
|
-
On as
|
|
7508
|
+
Xu as AvatarFooter,
|
|
7509
|
+
On as Button,
|
|
7510
|
+
Mn 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,
|