randmarcomps 1.41.0 → 1.43.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 +2 -1
- package/dist/randmarcomps.js +322 -322
- package/dist/randmarcomps.umd.cjs +4 -4
- package/dist/style.css +2 -0
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { jsx as u, jsxs as I, Fragment as We } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import Fe, { forwardRef as jr, createElement as wn, useState as In, useLayoutEffect as
|
|
3
|
+
import Fe, { forwardRef as jr, createElement as wn, useState as In, useLayoutEffect as hi, useEffect as gi } from "react";
|
|
4
4
|
import * as Ln from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
7
|
-
var wi = Object.defineProperty, xi = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols,
|
|
8
|
-
for (var n in t || (t = {}))
|
|
9
|
-
if (Dt) for (var n of Dt(t))
|
|
5
|
+
import vi from "react-dom";
|
|
6
|
+
import { Link as Gr, useNavigate as bi, useParams as yi } from "react-router-dom";
|
|
7
|
+
var wi = Object.defineProperty, xi = Object.defineProperties, Ci = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Ur = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable, ur = (e, t, n) => t in e ? wi(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ei = (e, t) => {
|
|
8
|
+
for (var n in t || (t = {})) Ur.call(t, n) && ur(e, n, t[n]);
|
|
9
|
+
if (Dt) for (var n of Dt(t)) Kr.call(t, n) && ur(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
11
|
}, Si = (e, t) => xi(e, Ci(t)), Ti = (e, t) => {
|
|
12
12
|
var n = {};
|
|
13
|
-
for (var r in e)
|
|
14
|
-
if (e != null && Dt) for (var r of Dt(e)) t.indexOf(r) < 0 &&
|
|
13
|
+
for (var r in e) Ur.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
14
|
+
if (e != null && Dt) for (var r of Dt(e)) t.indexOf(r) < 0 && Kr.call(e, r) && (n[r] = e[r]);
|
|
15
15
|
return n;
|
|
16
16
|
};
|
|
17
17
|
function Ri(e) {
|
|
@@ -24,7 +24,7 @@ function Ni(e) {
|
|
|
24
24
|
t.current = e;
|
|
25
25
|
}), t.current;
|
|
26
26
|
}
|
|
27
|
-
var Pi = 18,
|
|
27
|
+
var Pi = 18, Yr = 40, Ai = `${Yr}px`, Oi = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
28
28
|
function ki({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
29
29
|
let [o, a] = s.useState(!1), [i, c] = s.useState(!1), [l, d] = s.useState(!1), f = 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;
|
|
@@ -37,7 +37,7 @@ function ki({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
37
37
|
if (!v || n === "none") return;
|
|
38
38
|
function h() {
|
|
39
39
|
let p = window.innerWidth - v.getBoundingClientRect().right;
|
|
40
|
-
c(p >=
|
|
40
|
+
c(p >= Yr);
|
|
41
41
|
}
|
|
42
42
|
h();
|
|
43
43
|
let b = setInterval(h, 1e3);
|
|
@@ -55,7 +55,7 @@ function ki({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
55
55
|
};
|
|
56
56
|
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: f, PWM_BADGE_SPACE_WIDTH: Ai };
|
|
57
57
|
}
|
|
58
|
-
var
|
|
58
|
+
var Xr = s.createContext({}), qr = s.forwardRef((e, t) => {
|
|
59
59
|
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: c, placeholder: l, inputMode: d = "numeric", onComplete: f, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: h, noScriptCSSFallback: b = Mi, render: p, children: g } = n, y = Ti(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, x, C, S, E;
|
|
60
60
|
let [T, $] = s.useState(typeof y.defaultValue == "string" ? y.defaultValue : ""), D = r ?? T, z = Ni(D), H = s.useCallback((_) => {
|
|
61
61
|
o == null || o(_), $(_);
|
|
@@ -71,8 +71,8 @@ var qr = s.createContext({}), Zr = s.forwardRef((e, t) => {
|
|
|
71
71
|
}
|
|
72
72
|
let G = _.selectionStart, ae = _.selectionEnd, ht = _.selectionDirection, le = _.maxLength, _e = _.value, we = A.current.prev, Se = -1, Te = -1, Ie;
|
|
73
73
|
if (_e.length !== 0 && G !== null && ae !== null) {
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
74
|
+
let fi = G === ae, pi = G === _e.length && _e.length < le;
|
|
75
|
+
if (fi && !pi) {
|
|
76
76
|
let Le = G;
|
|
77
77
|
if (Le === 0) Se = 0, Te = 1, Ie = "forward";
|
|
78
78
|
else if (Le === le) Se = Le - 1, Te = Le, Ie = "backward";
|
|
@@ -80,16 +80,16 @@ var qr = s.createContext({}), Zr = s.forwardRef((e, t) => {
|
|
|
80
80
|
let on = 0;
|
|
81
81
|
if (we[0] !== null && we[1] !== null) {
|
|
82
82
|
Ie = Le < we[1] ? "backward" : "forward";
|
|
83
|
-
let
|
|
84
|
-
Ie === "backward" && !
|
|
83
|
+
let mi = we[0] === we[1] && we[0] < le;
|
|
84
|
+
Ie === "backward" && !mi && (on = -1);
|
|
85
85
|
}
|
|
86
86
|
Se = on + Le, Te = on + Le + 1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
Se !== -1 && Te !== -1 && Se !== Te && M.current.setSelectionRange(Se, Te, Ie);
|
|
90
90
|
}
|
|
91
|
-
let lr = Se !== -1 ? Se : G, dr = Te !== -1 ? Te : ae,
|
|
92
|
-
te(lr), J(dr), A.current.prev = [lr, dr,
|
|
91
|
+
let lr = Se !== -1 ? Se : G, dr = Te !== -1 ? Te : ae, ui = Ie ?? ht;
|
|
92
|
+
te(lr), J(dr), A.current.prev = [lr, dr, ui];
|
|
93
93
|
}
|
|
94
94
|
if (document.addEventListener("selectionchange", Z, { capture: !0 }), Z(), document.activeElement === _ && K(!0), !document.getElementById("input-otp-style")) {
|
|
95
95
|
let G = document.createElement("style");
|
|
@@ -162,10 +162,10 @@ var qr = s.createContext({}), Zr = s.forwardRef((e, t) => {
|
|
|
162
162
|
var Z;
|
|
163
163
|
let ne = L && q !== null && Q !== null && (q === Q && F === q || F >= q && F < Q), re = D[F] !== void 0 ? D[F] : null, G = D[0] !== void 0 ? null : (Z = l == null ? void 0 : l[F]) != null ? Z : null;
|
|
164
164
|
return { char: re, placeholderChar: G, isActive: ne, hasFakeCaret: ne && re === null };
|
|
165
|
-
}), isFocused: L, isHovering: !y.disabled && j }), [L, j, a, Q, q, y.disabled, D]), De = s.useMemo(() => p ? p(je) : s.createElement(
|
|
165
|
+
}), isFocused: L, isHovering: !y.disabled && j }), [L, j, a, Q, q, y.disabled, D]), De = s.useMemo(() => p ? p(je) : s.createElement(Xr.Provider, { value: je }, g), [g, je, p]);
|
|
166
166
|
return s.createElement(s.Fragment, null, b !== null && s.createElement("noscript", null, s.createElement("style", null, b)), s.createElement("div", { ref: R, "data-input-otp-container": !0, style: pt, className: h }, De, s.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, mt)));
|
|
167
167
|
});
|
|
168
|
-
|
|
168
|
+
qr.displayName = "Input";
|
|
169
169
|
function at(e, t) {
|
|
170
170
|
try {
|
|
171
171
|
e.insertRule(t);
|
|
@@ -199,7 +199,7 @@ var Mi = `
|
|
|
199
199
|
* This source code is licensed under the ISC license.
|
|
200
200
|
* See the LICENSE file in the root directory of this source tree.
|
|
201
201
|
*/
|
|
202
|
-
const Di = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(),
|
|
202
|
+
const Di = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Zr = (...e) => e.filter((t, n, r) => !!t && t.trim() !== "" && r.indexOf(t) === n).join(" ").trim();
|
|
203
203
|
/**
|
|
204
204
|
* @license lucide-react v0.479.0 - ISC
|
|
205
205
|
*
|
|
@@ -242,7 +242,7 @@ const Ii = jr(
|
|
|
242
242
|
height: t,
|
|
243
243
|
stroke: e,
|
|
244
244
|
strokeWidth: r ? Number(n) * 24 / Number(t) : n,
|
|
245
|
-
className:
|
|
245
|
+
className: Zr("lucide", o),
|
|
246
246
|
...c
|
|
247
247
|
},
|
|
248
248
|
[
|
|
@@ -262,7 +262,7 @@ const pe = (e, t) => {
|
|
|
262
262
|
({ className: r, ...o }, a) => wn(Ii, {
|
|
263
263
|
ref: a,
|
|
264
264
|
iconNode: t,
|
|
265
|
-
className:
|
|
265
|
+
className: Zr(`lucide-${Di(e)}`, r),
|
|
266
266
|
...o
|
|
267
267
|
})
|
|
268
268
|
);
|
|
@@ -379,17 +379,17 @@ const ns = [
|
|
|
379
379
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
380
380
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
381
381
|
], Fn = pe("X", ns);
|
|
382
|
-
function
|
|
382
|
+
function Qr(e) {
|
|
383
383
|
var t, n, r = "";
|
|
384
384
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
385
385
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
386
386
|
var o = e.length;
|
|
387
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
387
|
+
for (t = 0; t < o; t++) e[t] && (n = Qr(e[t])) && (r && (r += " "), r += n);
|
|
388
388
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
389
389
|
return r;
|
|
390
390
|
}
|
|
391
|
-
function
|
|
392
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
391
|
+
function Jr() {
|
|
392
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = Qr(e)) && (r && (r += " "), r += t);
|
|
393
393
|
return r;
|
|
394
394
|
}
|
|
395
395
|
const $n = "-", rs = (e) => {
|
|
@@ -400,18 +400,18 @@ const $n = "-", rs = (e) => {
|
|
|
400
400
|
return {
|
|
401
401
|
getClassGroupId: (i) => {
|
|
402
402
|
const c = i.split($n);
|
|
403
|
-
return c[0] === "" && c.length !== 1 && c.shift(),
|
|
403
|
+
return c[0] === "" && c.length !== 1 && c.shift(), eo(c, t) || os(i);
|
|
404
404
|
},
|
|
405
405
|
getConflictingClassGroupIds: (i, c) => {
|
|
406
406
|
const l = n[i] || [];
|
|
407
407
|
return c && r[i] ? [...l, ...r[i]] : l;
|
|
408
408
|
}
|
|
409
409
|
};
|
|
410
|
-
},
|
|
410
|
+
}, eo = (e, t) => {
|
|
411
411
|
var i;
|
|
412
412
|
if (e.length === 0)
|
|
413
413
|
return t.classGroupId;
|
|
414
|
-
const n = e[0], r = t.nextPart.get(n), o = r ?
|
|
414
|
+
const n = e[0], r = t.nextPart.get(n), o = r ? eo(e.slice(1), r) : void 0;
|
|
415
415
|
if (o)
|
|
416
416
|
return o;
|
|
417
417
|
if (t.validators.length === 0)
|
|
@@ -603,15 +603,15 @@ const $n = "-", rs = (e) => {
|
|
|
603
603
|
function hs() {
|
|
604
604
|
let e = 0, t, n, r = "";
|
|
605
605
|
for (; e < arguments.length; )
|
|
606
|
-
(t = arguments[e++]) && (n =
|
|
606
|
+
(t = arguments[e++]) && (n = to(t)) && (r && (r += " "), r += n);
|
|
607
607
|
return r;
|
|
608
608
|
}
|
|
609
|
-
const
|
|
609
|
+
const to = (e) => {
|
|
610
610
|
if (typeof e == "string")
|
|
611
611
|
return e;
|
|
612
612
|
let t, n = "";
|
|
613
613
|
for (let r = 0; r < e.length; r++)
|
|
614
|
-
e[r] && (t =
|
|
614
|
+
e[r] && (t = to(e[r])) && (n && (n += " "), n += t);
|
|
615
615
|
return n;
|
|
616
616
|
};
|
|
617
617
|
function gs(e, ...t) {
|
|
@@ -634,18 +634,18 @@ function gs(e, ...t) {
|
|
|
634
634
|
const X = (e) => {
|
|
635
635
|
const t = (n) => n[e] || [];
|
|
636
636
|
return t.isThemeGetter = !0, t;
|
|
637
|
-
},
|
|
637
|
+
}, no = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, ro = /^\((?:(\w[\w-]*):)?(.+)\)$/i, vs = /^\d+\/\d+$/, bs = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ys = /\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/, ws = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, xs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Cs = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => vs.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), $e = (e) => !!e && Number.isInteger(Number(e)), mr = (e) => e.endsWith("%") && V(e.slice(0, -1)), Re = (e) => bs.test(e), Es = () => !0, Ss = (e) => (
|
|
638
638
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
639
639
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
640
640
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
641
641
|
ys.test(e) && !ws.test(e)
|
|
642
|
-
), zn = () => !1, Ts = (e) => xs.test(e), Rs = (e) => Cs.test(e), Ns = (e) => !N(e) && !P(e), Ps = (e) => Je(e,
|
|
643
|
-
const r =
|
|
642
|
+
), zn = () => !1, Ts = (e) => xs.test(e), Rs = (e) => Cs.test(e), Ns = (e) => !N(e) && !P(e), Ps = (e) => Je(e, io, zn), N = (e) => no.test(e), ze = (e) => Je(e, so, Ss), an = (e) => Je(e, zs, V), As = (e) => Je(e, oo, zn), Os = (e) => Je(e, ao, Rs), ks = (e) => Je(e, zn, Ts), P = (e) => ro.test(e), gt = (e) => et(e, so), Ms = (e) => et(e, Ws), Ds = (e) => et(e, oo), _s = (e) => et(e, io), Is = (e) => et(e, ao), Ls = (e) => et(e, Bs, !0), Je = (e, t, n) => {
|
|
643
|
+
const r = no.exec(e);
|
|
644
644
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
645
645
|
}, et = (e, t, n = !1) => {
|
|
646
|
-
const r =
|
|
646
|
+
const r = ro.exec(e);
|
|
647
647
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
648
|
-
},
|
|
648
|
+
}, oo = (e) => e === "position", Fs = /* @__PURE__ */ new Set(["image", "url"]), ao = (e) => Fs.has(e), $s = /* @__PURE__ */ new Set(["length", "size", "percentage"]), io = (e) => $s.has(e), so = (e) => e === "length", zs = (e) => e === "number", Ws = (e) => e === "family-name", Bs = (e) => e === "shadow", Vs = () => {
|
|
649
649
|
const e = X("color"), t = X("font"), n = X("text"), r = X("font-weight"), o = X("tracking"), a = X("leading"), i = X("breakpoint"), c = X("container"), l = X("spacing"), d = X("radius"), f = X("shadow"), m = X("inset-shadow"), v = X("drop-shadow"), h = X("blur"), b = X("perspective"), p = X("aspect"), g = X("ease"), y = X("animate"), w = () => ["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 = () => [P, N, l], T = () => [Ge, "full", "auto", ...E()], $ = () => [$e, "none", "subgrid", P, N], D = () => ["auto", {
|
|
650
650
|
span: ["full", $e, P, N]
|
|
651
651
|
}, P, N], z = () => [$e, "auto", P, N], H = () => ["auto", "min", "max", "fr", P, N], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], M = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], B = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], A = () => [e, P, N], j = () => [mr, ze], O = () => [
|
|
@@ -2866,7 +2866,7 @@ const X = (e) => {
|
|
|
2866
2866
|
};
|
|
2867
2867
|
}, Hs = /* @__PURE__ */ gs(Vs);
|
|
2868
2868
|
function k(...e) {
|
|
2869
|
-
return Hs(
|
|
2869
|
+
return Hs(Jr(e));
|
|
2870
2870
|
}
|
|
2871
2871
|
function sf({
|
|
2872
2872
|
className: e,
|
|
@@ -2874,7 +2874,7 @@ function sf({
|
|
|
2874
2874
|
...n
|
|
2875
2875
|
}) {
|
|
2876
2876
|
return /* @__PURE__ */ u(
|
|
2877
|
-
|
|
2877
|
+
qr,
|
|
2878
2878
|
{
|
|
2879
2879
|
"data-slot": "input-otp",
|
|
2880
2880
|
containerClassName: k(
|
|
@@ -2901,7 +2901,7 @@ function lf({
|
|
|
2901
2901
|
className: t,
|
|
2902
2902
|
...n
|
|
2903
2903
|
}) {
|
|
2904
|
-
const r = s.useContext(
|
|
2904
|
+
const r = s.useContext(Xr), { char: o, hasFakeCaret: a, isActive: i } = (r == null ? void 0 : r.slots[e]) ?? {};
|
|
2905
2905
|
return /* @__PURE__ */ I(
|
|
2906
2906
|
"div",
|
|
2907
2907
|
{
|
|
@@ -2933,7 +2933,7 @@ function hr(e, t) {
|
|
|
2933
2933
|
return e(t);
|
|
2934
2934
|
e != null && (e.current = t);
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2936
|
+
function co(...e) {
|
|
2937
2937
|
return (t) => {
|
|
2938
2938
|
let n = !1;
|
|
2939
2939
|
const r = e.map((o) => {
|
|
@@ -2950,7 +2950,7 @@ function lo(...e) {
|
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
2952
|
function ee(...e) {
|
|
2953
|
-
return s.useCallback(
|
|
2953
|
+
return s.useCallback(co(...e), e);
|
|
2954
2954
|
}
|
|
2955
2955
|
function js(e, t) {
|
|
2956
2956
|
const n = s.createContext(t), r = (a) => {
|
|
@@ -3074,14 +3074,14 @@ var Sn = s.forwardRef((e, t) => {
|
|
|
3074
3074
|
const { children: n, ...r } = e;
|
|
3075
3075
|
if (s.isValidElement(n)) {
|
|
3076
3076
|
const o = Zs(n), a = qs(r, n.props);
|
|
3077
|
-
return n.type !== s.Fragment && (a.ref = t ?
|
|
3077
|
+
return n.type !== s.Fragment && (a.ref = t ? co(t, o) : o), s.cloneElement(n, a);
|
|
3078
3078
|
}
|
|
3079
3079
|
return s.Children.count(n) > 1 ? s.Children.only(null) : null;
|
|
3080
3080
|
});
|
|
3081
3081
|
Sn.displayName = "SlotClone";
|
|
3082
|
-
var
|
|
3082
|
+
var lo = ({ children: e }) => /* @__PURE__ */ u(We, { children: e });
|
|
3083
3083
|
function Xs(e) {
|
|
3084
|
-
return s.isValidElement(e) && e.type ===
|
|
3084
|
+
return s.isValidElement(e) && e.type === lo;
|
|
3085
3085
|
}
|
|
3086
3086
|
function qs(e, t) {
|
|
3087
3087
|
const n = { ...t };
|
|
@@ -3122,7 +3122,7 @@ var Qs = [
|
|
|
3122
3122
|
});
|
|
3123
3123
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3124
3124
|
}, {});
|
|
3125
|
-
function
|
|
3125
|
+
function uo(e, t) {
|
|
3126
3126
|
e && Ln.flushSync(() => e.dispatchEvent(t));
|
|
3127
3127
|
}
|
|
3128
3128
|
function Js(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -3134,7 +3134,7 @@ function Js(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3134
3134
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3135
3135
|
}, [n, t]);
|
|
3136
3136
|
}
|
|
3137
|
-
var ec = "DismissableLayer", Tn = "dismissableLayer.update", tc = "dismissableLayer.pointerDownOutside", nc = "dismissableLayer.focusOutside", gr,
|
|
3137
|
+
var ec = "DismissableLayer", Tn = "dismissableLayer.update", tc = "dismissableLayer.pointerDownOutside", nc = "dismissableLayer.focusOutside", gr, fo = s.createContext({
|
|
3138
3138
|
layers: /* @__PURE__ */ new Set(),
|
|
3139
3139
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3140
3140
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3148,7 +3148,7 @@ var ec = "DismissableLayer", Tn = "dismissableLayer.update", tc = "dismissableLa
|
|
|
3148
3148
|
onInteractOutside: i,
|
|
3149
3149
|
onDismiss: c,
|
|
3150
3150
|
...l
|
|
3151
|
-
} = e, d = s.useContext(
|
|
3151
|
+
} = e, d = s.useContext(fo), [f, m] = s.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, h] = s.useState({}), b = ee(t, (T) => m(T)), p = Array.from(d.layers), [g] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), y = p.indexOf(g), w = f ? p.indexOf(f) : -1, x = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= y, S = oc((T) => {
|
|
3152
3152
|
const $ = T.target, D = [...d.branches].some((z) => z.contains($));
|
|
3153
3153
|
!C || D || (o == null || o(T), i == null || i(T), T.defaultPrevented || c == null || c());
|
|
3154
3154
|
}, v), E = ac((T) => {
|
|
@@ -3187,8 +3187,8 @@ var ec = "DismissableLayer", Tn = "dismissableLayer.update", tc = "dismissableLa
|
|
|
3187
3187
|
}
|
|
3188
3188
|
);
|
|
3189
3189
|
zt.displayName = ec;
|
|
3190
|
-
var rc = "DismissableLayerBranch",
|
|
3191
|
-
const n = s.useContext(
|
|
3190
|
+
var rc = "DismissableLayerBranch", po = s.forwardRef((e, t) => {
|
|
3191
|
+
const n = s.useContext(fo), r = s.useRef(null), o = ee(t, r);
|
|
3192
3192
|
return s.useEffect(() => {
|
|
3193
3193
|
const a = r.current;
|
|
3194
3194
|
if (a)
|
|
@@ -3197,7 +3197,7 @@ var rc = "DismissableLayerBranch", mo = s.forwardRef((e, t) => {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}, [n.branches]), /* @__PURE__ */ u(Y.div, { ...e, ref: o });
|
|
3199
3199
|
});
|
|
3200
|
-
|
|
3200
|
+
po.displayName = rc;
|
|
3201
3201
|
function oc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3202
3202
|
const n = ce(e), r = s.useRef(!1), o = s.useRef(() => {
|
|
3203
3203
|
});
|
|
@@ -3205,7 +3205,7 @@ function oc(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3205
3205
|
const a = (c) => {
|
|
3206
3206
|
if (c.target && !r.current) {
|
|
3207
3207
|
let l = function() {
|
|
3208
|
-
|
|
3208
|
+
mo(
|
|
3209
3209
|
tc,
|
|
3210
3210
|
n,
|
|
3211
3211
|
d,
|
|
@@ -3232,7 +3232,7 @@ function ac(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3232
3232
|
const n = ce(e), r = s.useRef(!1);
|
|
3233
3233
|
return s.useEffect(() => {
|
|
3234
3234
|
const o = (a) => {
|
|
3235
|
-
a.target && !r.current &&
|
|
3235
|
+
a.target && !r.current && mo(nc, n, { originalEvent: a }, {
|
|
3236
3236
|
discrete: !1
|
|
3237
3237
|
});
|
|
3238
3238
|
};
|
|
@@ -3246,11 +3246,11 @@ function vr() {
|
|
|
3246
3246
|
const e = new CustomEvent(Tn);
|
|
3247
3247
|
document.dispatchEvent(e);
|
|
3248
3248
|
}
|
|
3249
|
-
function
|
|
3249
|
+
function mo(e, t, n, { discrete: r }) {
|
|
3250
3250
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3251
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
3251
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? uo(o, a) : o.dispatchEvent(a);
|
|
3252
3252
|
}
|
|
3253
|
-
var ic = zt, sc =
|
|
3253
|
+
var ic = zt, sc = po, sn = "focusScope.autoFocusOnMount", cn = "focusScope.autoFocusOnUnmount", br = { bubbles: !1, cancelable: !0 }, cc = "FocusScope", ho = s.forwardRef((e, t) => {
|
|
3254
3254
|
const {
|
|
3255
3255
|
loop: n = !1,
|
|
3256
3256
|
trapped: r = !1,
|
|
@@ -3293,7 +3293,7 @@ var ic = zt, sc = mo, sn = "focusScope.autoFocusOnMount", cn = "focusScope.autoF
|
|
|
3293
3293
|
const p = document.activeElement;
|
|
3294
3294
|
if (!c.contains(p)) {
|
|
3295
3295
|
const y = new CustomEvent(sn, br);
|
|
3296
|
-
c.addEventListener(sn, d), c.dispatchEvent(y), y.defaultPrevented || (lc(mc(
|
|
3296
|
+
c.addEventListener(sn, d), c.dispatchEvent(y), y.defaultPrevented || (lc(mc(go(c)), { select: !0 }), document.activeElement === p && Ne(c));
|
|
3297
3297
|
}
|
|
3298
3298
|
return () => {
|
|
3299
3299
|
c.removeEventListener(sn, d), setTimeout(() => {
|
|
@@ -3316,17 +3316,17 @@ var ic = zt, sc = mo, sn = "focusScope.autoFocusOnMount", cn = "focusScope.autoF
|
|
|
3316
3316
|
);
|
|
3317
3317
|
return /* @__PURE__ */ u(Y.div, { tabIndex: -1, ...i, ref: v, onKeyDown: b });
|
|
3318
3318
|
});
|
|
3319
|
-
|
|
3319
|
+
ho.displayName = cc;
|
|
3320
3320
|
function lc(e, { select: t = !1 } = {}) {
|
|
3321
3321
|
const n = document.activeElement;
|
|
3322
3322
|
for (const r of e)
|
|
3323
3323
|
if (Ne(r, { select: t }), document.activeElement !== n) return;
|
|
3324
3324
|
}
|
|
3325
3325
|
function dc(e) {
|
|
3326
|
-
const t =
|
|
3326
|
+
const t = go(e), n = yr(t, e), r = yr(t.reverse(), e);
|
|
3327
3327
|
return [n, r];
|
|
3328
3328
|
}
|
|
3329
|
-
function
|
|
3329
|
+
function go(e) {
|
|
3330
3330
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
3331
3331
|
acceptNode: (r) => {
|
|
3332
3332
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -3384,7 +3384,7 @@ var hc = "Portal", Wt = s.forwardRef((e, t) => {
|
|
|
3384
3384
|
const { container: n, ...r } = e, [o, a] = s.useState(!1);
|
|
3385
3385
|
Ae(() => a(!0), []);
|
|
3386
3386
|
const i = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
3387
|
-
return i ?
|
|
3387
|
+
return i ? vi.createPortal(/* @__PURE__ */ u(Y.div, { ...r, ref: t }), i) : null;
|
|
3388
3388
|
});
|
|
3389
3389
|
Wt.displayName = hc;
|
|
3390
3390
|
function gc(e, t) {
|
|
@@ -3474,7 +3474,7 @@ var ge = function() {
|
|
|
3474
3474
|
return t;
|
|
3475
3475
|
}, ge.apply(this, arguments);
|
|
3476
3476
|
};
|
|
3477
|
-
function
|
|
3477
|
+
function vo(e, t) {
|
|
3478
3478
|
var n = {};
|
|
3479
3479
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3480
3480
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3595,8 +3595,8 @@ function Pc(e) {
|
|
|
3595
3595
|
var t = Nc(null);
|
|
3596
3596
|
return t.options = ge({ async: !0, ssr: !1 }, e), t;
|
|
3597
3597
|
}
|
|
3598
|
-
var
|
|
3599
|
-
var t = e.sideCar, n =
|
|
3598
|
+
var bo = function(e) {
|
|
3599
|
+
var t = e.sideCar, n = vo(e, ["sideCar"]);
|
|
3600
3600
|
if (!t)
|
|
3601
3601
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3602
3602
|
var r = t.read();
|
|
@@ -3604,21 +3604,21 @@ var yo = function(e) {
|
|
|
3604
3604
|
throw new Error("Sidecar medium not found");
|
|
3605
3605
|
return s.createElement(r, ge({}, n));
|
|
3606
3606
|
};
|
|
3607
|
-
|
|
3607
|
+
bo.isSideCarExport = !0;
|
|
3608
3608
|
function Ac(e, t) {
|
|
3609
|
-
return e.useMedium(t),
|
|
3609
|
+
return e.useMedium(t), bo;
|
|
3610
3610
|
}
|
|
3611
|
-
var
|
|
3611
|
+
var yo = Pc(), un = function() {
|
|
3612
3612
|
}, Bt = s.forwardRef(function(e, t) {
|
|
3613
3613
|
var n = s.useRef(null), r = s.useState({
|
|
3614
3614
|
onScrollCapture: un,
|
|
3615
3615
|
onWheelCapture: un,
|
|
3616
3616
|
onTouchMoveCapture: un
|
|
3617
|
-
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, h = e.noIsolation, b = e.inert, p = e.allowPinchZoom, g = e.as, y = g === void 0 ? "div" : g, w = e.gapMode, x =
|
|
3617
|
+
}), o = r[0], a = r[1], i = e.forwardProps, c = e.children, l = e.className, d = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, h = e.noIsolation, b = e.inert, p = e.allowPinchZoom, g = e.as, y = g === void 0 ? "div" : g, w = e.gapMode, x = vo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, S = Tc([n, t]), E = ge(ge({}, x), o);
|
|
3618
3618
|
return s.createElement(
|
|
3619
3619
|
s.Fragment,
|
|
3620
3620
|
null,
|
|
3621
|
-
f && s.createElement(C, { sideCar:
|
|
3621
|
+
f && s.createElement(C, { sideCar: yo, removeScrollBar: d, shards: m, noIsolation: h, inert: b, setCallbacks: a, allowPinchZoom: !!p, lockRef: n, gapMode: w }),
|
|
3622
3622
|
i ? s.cloneElement(s.Children.only(c), ge(ge({}, E), { ref: S })) : s.createElement(y, ge({}, E, { className: l, ref: S }), c)
|
|
3623
3623
|
);
|
|
3624
3624
|
});
|
|
@@ -3669,7 +3669,7 @@ var _c = function() {
|
|
|
3669
3669
|
};
|
|
3670
3670
|
}, [t && n]);
|
|
3671
3671
|
};
|
|
3672
|
-
},
|
|
3672
|
+
}, wo = function() {
|
|
3673
3673
|
var e = Ic(), t = function(n) {
|
|
3674
3674
|
var r = n.styles, o = n.dynamic;
|
|
3675
3675
|
return e(r, o), null;
|
|
@@ -3695,7 +3695,7 @@ var _c = function() {
|
|
|
3695
3695
|
right: t[2],
|
|
3696
3696
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3697
3697
|
};
|
|
3698
|
-
}, zc =
|
|
3698
|
+
}, zc = wo(), Xe = "data-scroll-locked", Wc = function(e, t, n, r) {
|
|
3699
3699
|
var o = e.left, a = e.top, i = e.right, c = e.gap;
|
|
3700
3700
|
return n === void 0 && (n = "margin"), `
|
|
3701
3701
|
.`.concat(xc, ` {
|
|
@@ -3770,7 +3770,7 @@ if (typeof window < "u")
|
|
|
3770
3770
|
}
|
|
3771
3771
|
var Ue = Rn ? { passive: !1 } : !1, Hc = function(e) {
|
|
3772
3772
|
return e.tagName === "TEXTAREA";
|
|
3773
|
-
},
|
|
3773
|
+
}, xo = function(e, t) {
|
|
3774
3774
|
if (!(e instanceof Element))
|
|
3775
3775
|
return !1;
|
|
3776
3776
|
var n = window.getComputedStyle(e);
|
|
@@ -3780,16 +3780,16 @@ var Ue = Rn ? { passive: !1 } : !1, Hc = function(e) {
|
|
|
3780
3780
|
!(n.overflowY === n.overflowX && !Hc(e) && n[t] === "visible")
|
|
3781
3781
|
);
|
|
3782
3782
|
}, jc = function(e) {
|
|
3783
|
-
return
|
|
3783
|
+
return xo(e, "overflowY");
|
|
3784
3784
|
}, Gc = function(e) {
|
|
3785
|
-
return
|
|
3785
|
+
return xo(e, "overflowX");
|
|
3786
3786
|
}, Tr = function(e, t) {
|
|
3787
3787
|
var n = t.ownerDocument, r = t;
|
|
3788
3788
|
do {
|
|
3789
3789
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3790
|
-
var o =
|
|
3790
|
+
var o = Co(e, r);
|
|
3791
3791
|
if (o) {
|
|
3792
|
-
var a =
|
|
3792
|
+
var a = Eo(e, r), i = a[1], c = a[2];
|
|
3793
3793
|
if (i > c)
|
|
3794
3794
|
return !0;
|
|
3795
3795
|
}
|
|
@@ -3810,17 +3810,17 @@ var Ue = Rn ? { passive: !1 } : !1, Hc = function(e) {
|
|
|
3810
3810
|
n,
|
|
3811
3811
|
r
|
|
3812
3812
|
];
|
|
3813
|
-
},
|
|
3813
|
+
}, Co = function(e, t) {
|
|
3814
3814
|
return e === "v" ? jc(t) : Gc(t);
|
|
3815
|
-
},
|
|
3815
|
+
}, Eo = function(e, t) {
|
|
3816
3816
|
return e === "v" ? Uc(t) : Kc(t);
|
|
3817
3817
|
}, Yc = function(e, t) {
|
|
3818
3818
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3819
3819
|
}, Xc = function(e, t, n, r, o) {
|
|
3820
3820
|
var a = Yc(e, window.getComputedStyle(t).direction), i = a * r, c = n.target, l = t.contains(c), d = !1, f = i > 0, m = 0, v = 0;
|
|
3821
3821
|
do {
|
|
3822
|
-
var h =
|
|
3823
|
-
(b || y) &&
|
|
3822
|
+
var h = Eo(e, c), b = h[0], p = h[1], g = h[2], y = p - g - a * b;
|
|
3823
|
+
(b || y) && Co(e, c) && (m += y, v += b), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
3824
3824
|
} while (
|
|
3825
3825
|
// portaled content
|
|
3826
3826
|
!l && c !== document.body || // self content
|
|
@@ -3842,7 +3842,7 @@ var Ue = Rn ? { passive: !1 } : !1, Hc = function(e) {
|
|
|
3842
3842
|
`);
|
|
3843
3843
|
}, Qc = 0, Ke = [];
|
|
3844
3844
|
function Jc(e) {
|
|
3845
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), o = s.useState(Qc++)[0], a = s.useState(
|
|
3845
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), o = s.useState(Qc++)[0], a = s.useState(wo)[0], i = s.useRef(e);
|
|
3846
3846
|
s.useEffect(function() {
|
|
3847
3847
|
i.current = e;
|
|
3848
3848
|
}, [e]), s.useEffect(function() {
|
|
@@ -3928,23 +3928,23 @@ function el(e) {
|
|
|
3928
3928
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3929
3929
|
return t;
|
|
3930
3930
|
}
|
|
3931
|
-
const tl = Ac(
|
|
3932
|
-
var
|
|
3931
|
+
const tl = Ac(yo, Jc);
|
|
3932
|
+
var So = s.forwardRef(function(e, t) {
|
|
3933
3933
|
return s.createElement(Bt, ge({}, e, { ref: t, sideCar: tl }));
|
|
3934
3934
|
});
|
|
3935
|
-
|
|
3935
|
+
So.classNames = Bt.classNames;
|
|
3936
3936
|
var nl = function(e) {
|
|
3937
3937
|
if (typeof document > "u")
|
|
3938
3938
|
return null;
|
|
3939
3939
|
var t = Array.isArray(e) ? e[0] : e;
|
|
3940
3940
|
return t.ownerDocument.body;
|
|
3941
|
-
}, Ye = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), xt = {}, pn = 0,
|
|
3942
|
-
return e && (e.host ||
|
|
3941
|
+
}, Ye = /* @__PURE__ */ new WeakMap(), wt = /* @__PURE__ */ new WeakMap(), xt = {}, pn = 0, To = function(e) {
|
|
3942
|
+
return e && (e.host || To(e.parentNode));
|
|
3943
3943
|
}, rl = function(e, t) {
|
|
3944
3944
|
return t.map(function(n) {
|
|
3945
3945
|
if (e.contains(n))
|
|
3946
3946
|
return n;
|
|
3947
|
-
var r =
|
|
3947
|
+
var r = To(n);
|
|
3948
3948
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
3949
3949
|
}).filter(function(n) {
|
|
3950
3950
|
return !!n;
|
|
@@ -3981,7 +3981,7 @@ var nl = function(e) {
|
|
|
3981
3981
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), ol(r, o, n, "aria-hidden")) : function() {
|
|
3982
3982
|
return null;
|
|
3983
3983
|
};
|
|
3984
|
-
}, Bn = "Dialog", [
|
|
3984
|
+
}, Bn = "Dialog", [Ro, uf] = dt(Bn), [il, me] = Ro(Bn), No = (e) => {
|
|
3985
3985
|
const {
|
|
3986
3986
|
__scopeDialog: t,
|
|
3987
3987
|
children: n,
|
|
@@ -4011,10 +4011,10 @@ var nl = function(e) {
|
|
|
4011
4011
|
}
|
|
4012
4012
|
);
|
|
4013
4013
|
};
|
|
4014
|
-
|
|
4015
|
-
var
|
|
4014
|
+
No.displayName = Bn;
|
|
4015
|
+
var Po = "DialogTrigger", Ao = s.forwardRef(
|
|
4016
4016
|
(e, t) => {
|
|
4017
|
-
const { __scopeDialog: n, ...r } = e, o = me(
|
|
4017
|
+
const { __scopeDialog: n, ...r } = e, o = me(Po, n), a = ee(t, o.triggerRef);
|
|
4018
4018
|
return /* @__PURE__ */ u(
|
|
4019
4019
|
Y.button,
|
|
4020
4020
|
{
|
|
@@ -4030,28 +4030,28 @@ var Ao = "DialogTrigger", Oo = s.forwardRef(
|
|
|
4030
4030
|
);
|
|
4031
4031
|
}
|
|
4032
4032
|
);
|
|
4033
|
-
|
|
4034
|
-
var Vn = "DialogPortal", [sl,
|
|
4033
|
+
Ao.displayName = Po;
|
|
4034
|
+
var Vn = "DialogPortal", [sl, Oo] = Ro(Vn, {
|
|
4035
4035
|
forceMount: void 0
|
|
4036
|
-
}),
|
|
4036
|
+
}), ko = (e) => {
|
|
4037
4037
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = me(Vn, t);
|
|
4038
4038
|
return /* @__PURE__ */ u(sl, { scope: t, forceMount: n, children: s.Children.map(r, (i) => /* @__PURE__ */ u(He, { present: n || a.open, children: /* @__PURE__ */ u(Wt, { asChild: !0, container: o, children: i }) })) });
|
|
4039
4039
|
};
|
|
4040
|
-
|
|
4041
|
-
var _t = "DialogOverlay",
|
|
4040
|
+
ko.displayName = Vn;
|
|
4041
|
+
var _t = "DialogOverlay", Mo = s.forwardRef(
|
|
4042
4042
|
(e, t) => {
|
|
4043
|
-
const n =
|
|
4043
|
+
const n = Oo(_t, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = me(_t, e.__scopeDialog);
|
|
4044
4044
|
return a.modal ? /* @__PURE__ */ u(He, { present: r || a.open, children: /* @__PURE__ */ u(cl, { ...o, ref: t }) }) : null;
|
|
4045
4045
|
}
|
|
4046
4046
|
);
|
|
4047
|
-
|
|
4047
|
+
Mo.displayName = _t;
|
|
4048
4048
|
var cl = s.forwardRef(
|
|
4049
4049
|
(e, t) => {
|
|
4050
4050
|
const { __scopeDialog: n, ...r } = e, o = me(_t, n);
|
|
4051
4051
|
return (
|
|
4052
4052
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4053
4053
|
// ie. when `Overlay` and `Content` are siblings
|
|
4054
|
-
/* @__PURE__ */ u(
|
|
4054
|
+
/* @__PURE__ */ u(So, { as: de, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ u(
|
|
4055
4055
|
Y.div,
|
|
4056
4056
|
{
|
|
4057
4057
|
"data-state": jn(o.open),
|
|
@@ -4062,13 +4062,13 @@ var cl = s.forwardRef(
|
|
|
4062
4062
|
) })
|
|
4063
4063
|
);
|
|
4064
4064
|
}
|
|
4065
|
-
), Be = "DialogContent",
|
|
4065
|
+
), Be = "DialogContent", Do = s.forwardRef(
|
|
4066
4066
|
(e, t) => {
|
|
4067
|
-
const n =
|
|
4067
|
+
const n = Oo(Be, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = me(Be, e.__scopeDialog);
|
|
4068
4068
|
return /* @__PURE__ */ u(He, { present: r || a.open, children: a.modal ? /* @__PURE__ */ u(ll, { ...o, ref: t }) : /* @__PURE__ */ u(dl, { ...o, ref: t }) });
|
|
4069
4069
|
}
|
|
4070
4070
|
);
|
|
4071
|
-
|
|
4071
|
+
Do.displayName = Be;
|
|
4072
4072
|
var ll = s.forwardRef(
|
|
4073
4073
|
(e, t) => {
|
|
4074
4074
|
const n = me(Be, e.__scopeDialog), r = s.useRef(null), o = ee(t, n.contentRef, r);
|
|
@@ -4076,7 +4076,7 @@ var ll = s.forwardRef(
|
|
|
4076
4076
|
const a = r.current;
|
|
4077
4077
|
if (a) return al(a);
|
|
4078
4078
|
}, []), /* @__PURE__ */ u(
|
|
4079
|
-
|
|
4079
|
+
_o,
|
|
4080
4080
|
{
|
|
4081
4081
|
...e,
|
|
4082
4082
|
ref: o,
|
|
@@ -4101,7 +4101,7 @@ var ll = s.forwardRef(
|
|
|
4101
4101
|
(e, t) => {
|
|
4102
4102
|
const n = me(Be, e.__scopeDialog), r = s.useRef(!1), o = s.useRef(!1);
|
|
4103
4103
|
return /* @__PURE__ */ u(
|
|
4104
|
-
|
|
4104
|
+
_o,
|
|
4105
4105
|
{
|
|
4106
4106
|
...e,
|
|
4107
4107
|
ref: t,
|
|
@@ -4120,12 +4120,12 @@ var ll = s.forwardRef(
|
|
|
4120
4120
|
}
|
|
4121
4121
|
);
|
|
4122
4122
|
}
|
|
4123
|
-
),
|
|
4123
|
+
), _o = s.forwardRef(
|
|
4124
4124
|
(e, t) => {
|
|
4125
4125
|
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...i } = e, c = me(Be, n), l = s.useRef(null), d = ee(t, l);
|
|
4126
4126
|
return yc(), /* @__PURE__ */ I(We, { children: [
|
|
4127
4127
|
/* @__PURE__ */ u(
|
|
4128
|
-
|
|
4128
|
+
ho,
|
|
4129
4129
|
{
|
|
4130
4130
|
asChild: !0,
|
|
4131
4131
|
loop: !0,
|
|
@@ -4153,23 +4153,23 @@ var ll = s.forwardRef(
|
|
|
4153
4153
|
] })
|
|
4154
4154
|
] });
|
|
4155
4155
|
}
|
|
4156
|
-
), Hn = "DialogTitle",
|
|
4156
|
+
), Hn = "DialogTitle", Io = s.forwardRef(
|
|
4157
4157
|
(e, t) => {
|
|
4158
4158
|
const { __scopeDialog: n, ...r } = e, o = me(Hn, n);
|
|
4159
4159
|
return /* @__PURE__ */ u(Y.h2, { id: o.titleId, ...r, ref: t });
|
|
4160
4160
|
}
|
|
4161
4161
|
);
|
|
4162
|
-
|
|
4163
|
-
var
|
|
4162
|
+
Io.displayName = Hn;
|
|
4163
|
+
var Lo = "DialogDescription", Fo = s.forwardRef(
|
|
4164
4164
|
(e, t) => {
|
|
4165
|
-
const { __scopeDialog: n, ...r } = e, o = me(
|
|
4165
|
+
const { __scopeDialog: n, ...r } = e, o = me(Lo, n);
|
|
4166
4166
|
return /* @__PURE__ */ u(Y.p, { id: o.descriptionId, ...r, ref: t });
|
|
4167
4167
|
}
|
|
4168
4168
|
);
|
|
4169
|
-
|
|
4170
|
-
var
|
|
4169
|
+
Fo.displayName = Lo;
|
|
4170
|
+
var $o = "DialogClose", zo = s.forwardRef(
|
|
4171
4171
|
(e, t) => {
|
|
4172
|
-
const { __scopeDialog: n, ...r } = e, o = me(
|
|
4172
|
+
const { __scopeDialog: n, ...r } = e, o = me($o, n);
|
|
4173
4173
|
return /* @__PURE__ */ u(
|
|
4174
4174
|
Y.button,
|
|
4175
4175
|
{
|
|
@@ -4181,16 +4181,16 @@ var zo = "DialogClose", Wo = s.forwardRef(
|
|
|
4181
4181
|
);
|
|
4182
4182
|
}
|
|
4183
4183
|
);
|
|
4184
|
-
|
|
4184
|
+
zo.displayName = $o;
|
|
4185
4185
|
function jn(e) {
|
|
4186
4186
|
return e ? "open" : "closed";
|
|
4187
4187
|
}
|
|
4188
|
-
var
|
|
4188
|
+
var Wo = "DialogTitleWarning", [ff, Bo] = js(Wo, {
|
|
4189
4189
|
contentName: Be,
|
|
4190
4190
|
titleName: Hn,
|
|
4191
4191
|
docsSlug: "dialog"
|
|
4192
4192
|
}), ul = ({ titleId: e }) => {
|
|
4193
|
-
const t =
|
|
4193
|
+
const t = Bo(Wo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4194
4194
|
|
|
4195
4195
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4196
4196
|
|
|
@@ -4199,16 +4199,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4199
4199
|
e && (document.getElementById(e) || console.error(n));
|
|
4200
4200
|
}, [n, e]), null;
|
|
4201
4201
|
}, fl = "DialogDescriptionWarning", pl = ({ contentRef: e, descriptionId: t }) => {
|
|
4202
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
4202
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bo(fl).contentName}}.`;
|
|
4203
4203
|
return s.useEffect(() => {
|
|
4204
4204
|
var a;
|
|
4205
4205
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4206
4206
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4207
4207
|
}, [r, e, t]), null;
|
|
4208
|
-
}, Gn =
|
|
4208
|
+
}, Gn = No, Vo = Ao, Ho = ko, Vt = Mo, Ht = Do, jt = Io, Gt = Fo, Ut = zo;
|
|
4209
4209
|
const Un = ({ modal: e = !1, ...t }) => /* @__PURE__ */ u(Gn, { modal: e, ...t });
|
|
4210
4210
|
Un.displayName = Gn.displayName;
|
|
4211
|
-
const ml =
|
|
4211
|
+
const ml = Vo, hl = Ho, Pr = Ut, jo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
4212
4212
|
Vt,
|
|
4213
4213
|
{
|
|
4214
4214
|
ref: n,
|
|
@@ -4219,9 +4219,9 @@ const ml = Ho, hl = jo, Pr = Ut, Go = s.forwardRef(({ className: e, ...t }, n) =
|
|
|
4219
4219
|
...t
|
|
4220
4220
|
}
|
|
4221
4221
|
));
|
|
4222
|
-
|
|
4222
|
+
jo.displayName = Vt.displayName;
|
|
4223
4223
|
const Kn = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ I(hl, { children: [
|
|
4224
|
-
/* @__PURE__ */ u(
|
|
4224
|
+
/* @__PURE__ */ u(jo, {}),
|
|
4225
4225
|
/* @__PURE__ */ I(
|
|
4226
4226
|
Ht,
|
|
4227
4227
|
{
|
|
@@ -4242,7 +4242,7 @@ const Kn = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__
|
|
|
4242
4242
|
)
|
|
4243
4243
|
] }));
|
|
4244
4244
|
Kn.displayName = Ht.displayName;
|
|
4245
|
-
const
|
|
4245
|
+
const Go = ({
|
|
4246
4246
|
className: e,
|
|
4247
4247
|
...t
|
|
4248
4248
|
}) => /* @__PURE__ */ u(
|
|
@@ -4255,8 +4255,8 @@ const Uo = ({
|
|
|
4255
4255
|
...t
|
|
4256
4256
|
}
|
|
4257
4257
|
);
|
|
4258
|
-
|
|
4259
|
-
const
|
|
4258
|
+
Go.displayName = "DialogHeader";
|
|
4259
|
+
const Uo = ({
|
|
4260
4260
|
className: e,
|
|
4261
4261
|
...t
|
|
4262
4262
|
}) => /* @__PURE__ */ u(
|
|
@@ -4269,8 +4269,8 @@ const Ko = ({
|
|
|
4269
4269
|
...t
|
|
4270
4270
|
}
|
|
4271
4271
|
);
|
|
4272
|
-
|
|
4273
|
-
const
|
|
4272
|
+
Uo.displayName = "DialogFooter";
|
|
4273
|
+
const Ko = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
4274
4274
|
jt,
|
|
4275
4275
|
{
|
|
4276
4276
|
ref: n,
|
|
@@ -4281,8 +4281,8 @@ const Yo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
4281
4281
|
...t
|
|
4282
4282
|
}
|
|
4283
4283
|
));
|
|
4284
|
-
|
|
4285
|
-
const
|
|
4284
|
+
Ko.displayName = jt.displayName;
|
|
4285
|
+
const Yo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
4286
4286
|
Gt,
|
|
4287
4287
|
{
|
|
4288
4288
|
ref: n,
|
|
@@ -4290,8 +4290,8 @@ const Xo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
4290
4290
|
...t
|
|
4291
4291
|
}
|
|
4292
4292
|
));
|
|
4293
|
-
|
|
4294
|
-
const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or =
|
|
4293
|
+
Yo.displayName = Gt.displayName;
|
|
4294
|
+
const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Jr, Kt = (e, t) => (n) => {
|
|
4295
4295
|
var r;
|
|
4296
4296
|
if ((t == null ? void 0 : t.variants) == null) return Or(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4297
4297
|
const { variants: o, defaultVariants: a } = t, i = Object.keys(o).map((d) => {
|
|
@@ -4377,11 +4377,11 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = eo, K
|
|
|
4377
4377
|
}
|
|
4378
4378
|
) }),
|
|
4379
4379
|
/* @__PURE__ */ I(Kn, { children: [
|
|
4380
|
-
/* @__PURE__ */ I(
|
|
4381
|
-
/* @__PURE__ */ u(
|
|
4382
|
-
/* @__PURE__ */ u(
|
|
4380
|
+
/* @__PURE__ */ I(Go, { children: [
|
|
4381
|
+
/* @__PURE__ */ u(Ko, { children: d }),
|
|
4382
|
+
/* @__PURE__ */ u(Yo, { children: f })
|
|
4383
4383
|
] }),
|
|
4384
|
-
/* @__PURE__ */ I(
|
|
4384
|
+
/* @__PURE__ */ I(Uo, { className: "flex justify-end gap-2 pt-4", children: [
|
|
4385
4385
|
/* @__PURE__ */ u(Pr, { asChild: !0, children: /* @__PURE__ */ u(Pe, { variant: "outline", children: h }) }),
|
|
4386
4386
|
/* @__PURE__ */ u(Pr, { asChild: !0, children: /* @__PURE__ */ u(Pe, { onClick: b, children: v }) })
|
|
4387
4387
|
] })
|
|
@@ -4405,7 +4405,7 @@ const Yn = s.forwardRef(
|
|
|
4405
4405
|
)
|
|
4406
4406
|
);
|
|
4407
4407
|
Yn.displayName = "Input";
|
|
4408
|
-
var gl = "Separator", Mr = "horizontal", vl = ["horizontal", "vertical"],
|
|
4408
|
+
var gl = "Separator", Mr = "horizontal", vl = ["horizontal", "vertical"], Xo = s.forwardRef((e, t) => {
|
|
4409
4409
|
const { decorative: n, orientation: r = Mr, ...o } = e, a = bl(r) ? r : Mr, c = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
4410
4410
|
return /* @__PURE__ */ u(
|
|
4411
4411
|
Y.div,
|
|
@@ -4417,14 +4417,14 @@ var gl = "Separator", Mr = "horizontal", vl = ["horizontal", "vertical"], qo = s
|
|
|
4417
4417
|
}
|
|
4418
4418
|
);
|
|
4419
4419
|
});
|
|
4420
|
-
|
|
4420
|
+
Xo.displayName = gl;
|
|
4421
4421
|
function bl(e) {
|
|
4422
4422
|
return vl.includes(e);
|
|
4423
4423
|
}
|
|
4424
|
-
var
|
|
4425
|
-
const
|
|
4424
|
+
var qo = Xo;
|
|
4425
|
+
const Zo = s.forwardRef(
|
|
4426
4426
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ u(
|
|
4427
|
-
|
|
4427
|
+
qo,
|
|
4428
4428
|
{
|
|
4429
4429
|
ref: o,
|
|
4430
4430
|
decorative: n,
|
|
@@ -4438,8 +4438,8 @@ const Qo = s.forwardRef(
|
|
|
4438
4438
|
}
|
|
4439
4439
|
)
|
|
4440
4440
|
);
|
|
4441
|
-
|
|
4442
|
-
const yl = Gn, pf =
|
|
4441
|
+
Zo.displayName = qo.displayName;
|
|
4442
|
+
const yl = Gn, pf = Vo, mf = Ut, wl = Ho, Qo = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
4443
4443
|
Vt,
|
|
4444
4444
|
{
|
|
4445
4445
|
className: k(
|
|
@@ -4450,7 +4450,7 @@ const yl = Gn, pf = Ho, mf = Ut, wl = jo, Jo = s.forwardRef(({ className: e, ...
|
|
|
4450
4450
|
ref: n
|
|
4451
4451
|
}
|
|
4452
4452
|
));
|
|
4453
|
-
|
|
4453
|
+
Qo.displayName = Vt.displayName;
|
|
4454
4454
|
const xl = Kt(
|
|
4455
4455
|
"fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=closed]:duration-300 data-[state=open]:duration-500 data-[state=open]:animate-in data-[state=closed]:animate-out",
|
|
4456
4456
|
{
|
|
@@ -4466,8 +4466,8 @@ const xl = Kt(
|
|
|
4466
4466
|
side: "right"
|
|
4467
4467
|
}
|
|
4468
4468
|
}
|
|
4469
|
-
),
|
|
4470
|
-
/* @__PURE__ */ u(
|
|
4469
|
+
), Jo = s.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ I(wl, { children: [
|
|
4470
|
+
/* @__PURE__ */ u(Qo, {}),
|
|
4471
4471
|
/* @__PURE__ */ I(
|
|
4472
4472
|
Ht,
|
|
4473
4473
|
{
|
|
@@ -4484,7 +4484,7 @@ const xl = Kt(
|
|
|
4484
4484
|
}
|
|
4485
4485
|
)
|
|
4486
4486
|
] }));
|
|
4487
|
-
|
|
4487
|
+
Jo.displayName = Ht.displayName;
|
|
4488
4488
|
const Cl = ({
|
|
4489
4489
|
className: e,
|
|
4490
4490
|
...t
|
|
@@ -4531,10 +4531,10 @@ const Tl = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
4531
4531
|
}
|
|
4532
4532
|
));
|
|
4533
4533
|
Tl.displayName = Gt.displayName;
|
|
4534
|
-
function hf({ getMyAccountPath: e, publicName: t, applicationName: n }) {
|
|
4535
|
-
const
|
|
4534
|
+
function hf({ getMyAccountPath: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
4535
|
+
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, i] = In(!1);
|
|
4536
4536
|
return /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
4537
|
-
/* @__PURE__ */ u("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted", children: a ? /* @__PURE__ */ u(
|
|
4537
|
+
/* @__PURE__ */ u("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted", children: a ? /* @__PURE__ */ u(Gr, { to: `${e(r)}`, className: "transition-colors hover:bg-muted px-6", children: /* @__PURE__ */ u(ts, { className: "h-5 w-5 text-muted-foreground" }) }) : /* @__PURE__ */ u(
|
|
4538
4538
|
"img",
|
|
4539
4539
|
{
|
|
4540
4540
|
src: o,
|
|
@@ -4652,7 +4652,7 @@ function _l(e) {
|
|
|
4652
4652
|
...e
|
|
4653
4653
|
};
|
|
4654
4654
|
}
|
|
4655
|
-
function
|
|
4655
|
+
function ea(e) {
|
|
4656
4656
|
return typeof e != "number" ? _l(e) : {
|
|
4657
4657
|
top: e,
|
|
4658
4658
|
right: e,
|
|
@@ -4803,7 +4803,7 @@ async function ct(e, t) {
|
|
|
4803
4803
|
elementContext: m = "floating",
|
|
4804
4804
|
altBoundary: v = !1,
|
|
4805
4805
|
padding: h = 0
|
|
4806
|
-
} = xe(t, e), b =
|
|
4806
|
+
} = xe(t, e), b = ea(h), g = c[v ? m === "floating" ? "reference" : "floating" : m], y = Ft(await a.getClippingRect({
|
|
4807
4807
|
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)),
|
|
4808
4808
|
boundary: d,
|
|
4809
4809
|
rootBoundary: f,
|
|
@@ -4850,7 +4850,7 @@ const Ll = (e) => ({
|
|
|
4850
4850
|
} = xe(e, t) || {};
|
|
4851
4851
|
if (d == null)
|
|
4852
4852
|
return {};
|
|
4853
|
-
const m =
|
|
4853
|
+
const m = ea(f), v = {
|
|
4854
4854
|
x: n,
|
|
4855
4855
|
y: r
|
|
4856
4856
|
}, h = Zn(o), b = qn(h), p = await i.getDimensions(d), g = h === "y", y = g ? "top" : "left", w = g ? "bottom" : "right", x = g ? "clientHeight" : "clientWidth", C = a.reference[b] + a.reference[h] - v[h] - a.floating[b], S = v[h] - a.reference[h], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(d));
|
|
@@ -5194,7 +5194,7 @@ function Yt() {
|
|
|
5194
5194
|
return typeof window < "u";
|
|
5195
5195
|
}
|
|
5196
5196
|
function nt(e) {
|
|
5197
|
-
return
|
|
5197
|
+
return ta(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5198
5198
|
}
|
|
5199
5199
|
function se(e) {
|
|
5200
5200
|
var t;
|
|
@@ -5202,9 +5202,9 @@ function se(e) {
|
|
|
5202
5202
|
}
|
|
5203
5203
|
function ye(e) {
|
|
5204
5204
|
var t;
|
|
5205
|
-
return (t = (
|
|
5205
|
+
return (t = (ta(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5206
5206
|
}
|
|
5207
|
-
function
|
|
5207
|
+
function ta(e) {
|
|
5208
5208
|
return Yt() ? e instanceof Node || e instanceof se(e).Node : !1;
|
|
5209
5209
|
}
|
|
5210
5210
|
function ue(e) {
|
|
@@ -5282,14 +5282,14 @@ function Me(e) {
|
|
|
5282
5282
|
);
|
|
5283
5283
|
return Fr(t) ? t.host : t;
|
|
5284
5284
|
}
|
|
5285
|
-
function
|
|
5285
|
+
function na(e) {
|
|
5286
5286
|
const t = Me(e);
|
|
5287
|
-
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && ut(t) ? t :
|
|
5287
|
+
return Ze(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : be(t) && ut(t) ? t : na(t);
|
|
5288
5288
|
}
|
|
5289
5289
|
function lt(e, t, n) {
|
|
5290
5290
|
var r;
|
|
5291
5291
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5292
|
-
const o =
|
|
5292
|
+
const o = na(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = se(o);
|
|
5293
5293
|
if (a) {
|
|
5294
5294
|
const c = An(i);
|
|
5295
5295
|
return t.concat(i, i.visualViewport || [], ut(o) ? o : [], c && n ? lt(c) : []);
|
|
@@ -5299,7 +5299,7 @@ function lt(e, t, n) {
|
|
|
5299
5299
|
function An(e) {
|
|
5300
5300
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5301
5301
|
}
|
|
5302
|
-
function
|
|
5302
|
+
function ra(e) {
|
|
5303
5303
|
const t = fe(e);
|
|
5304
5304
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5305
5305
|
const o = be(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, c = It(n) !== a || It(r) !== i;
|
|
@@ -5320,7 +5320,7 @@ function qe(e) {
|
|
|
5320
5320
|
width: r,
|
|
5321
5321
|
height: o,
|
|
5322
5322
|
$: a
|
|
5323
|
-
} =
|
|
5323
|
+
} = ra(t);
|
|
5324
5324
|
let i = (a ? It(n.width) : n.width) / r, c = (a ? It(n.height) : n.height) / o;
|
|
5325
5325
|
return (!i || !Number.isFinite(i)) && (i = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
5326
5326
|
x: i,
|
|
@@ -5328,7 +5328,7 @@ function qe(e) {
|
|
|
5328
5328
|
};
|
|
5329
5329
|
}
|
|
5330
5330
|
const Ul = /* @__PURE__ */ ve(0);
|
|
5331
|
-
function
|
|
5331
|
+
function oa(e) {
|
|
5332
5332
|
const t = se(e);
|
|
5333
5333
|
return !Jn() || !t.visualViewport ? Ul : {
|
|
5334
5334
|
x: t.visualViewport.offsetLeft,
|
|
@@ -5343,7 +5343,7 @@ function Ve(e, t, n, r) {
|
|
|
5343
5343
|
const o = e.getBoundingClientRect(), a = er(e);
|
|
5344
5344
|
let i = ve(1);
|
|
5345
5345
|
t && (r ? ue(r) && (i = qe(r)) : i = qe(e));
|
|
5346
|
-
const c = Kl(a, n, r) ?
|
|
5346
|
+
const c = Kl(a, n, r) ? oa(a) : ve(0);
|
|
5347
5347
|
let l = (o.left + c.x) / i.x, d = (o.top + c.y) / i.y, f = o.width / i.x, m = o.height / i.y;
|
|
5348
5348
|
if (a) {
|
|
5349
5349
|
const v = se(a), h = r && ue(r) ? se(r) : r;
|
|
@@ -5364,7 +5364,7 @@ function tr(e, t) {
|
|
|
5364
5364
|
const n = qt(e).scrollLeft;
|
|
5365
5365
|
return t ? t.left + n : Ve(ye(e)).left + n;
|
|
5366
5366
|
}
|
|
5367
|
-
function
|
|
5367
|
+
function aa(e, t, n) {
|
|
5368
5368
|
n === void 0 && (n = !1);
|
|
5369
5369
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
5370
5370
|
// RTL <body> scrollbar.
|
|
@@ -5394,7 +5394,7 @@ function Yl(e) {
|
|
|
5394
5394
|
const h = Ve(r);
|
|
5395
5395
|
d = qe(r), f.x = h.x + r.clientLeft, f.y = h.y + r.clientTop;
|
|
5396
5396
|
}
|
|
5397
|
-
const v = i && !m && !a ?
|
|
5397
|
+
const v = i && !m && !a ? aa(i, l, !0) : ve(0);
|
|
5398
5398
|
return {
|
|
5399
5399
|
width: n.width * d.x,
|
|
5400
5400
|
height: n.height * d.y,
|
|
@@ -5449,7 +5449,7 @@ function $r(e, t, n) {
|
|
|
5449
5449
|
else if (ue(t))
|
|
5450
5450
|
r = Ql(t, n);
|
|
5451
5451
|
else {
|
|
5452
|
-
const o =
|
|
5452
|
+
const o = oa(e);
|
|
5453
5453
|
r = {
|
|
5454
5454
|
x: t.x - o.x,
|
|
5455
5455
|
y: t.y - o.y,
|
|
@@ -5459,9 +5459,9 @@ function $r(e, t, n) {
|
|
|
5459
5459
|
}
|
|
5460
5460
|
return Ft(r);
|
|
5461
5461
|
}
|
|
5462
|
-
function
|
|
5462
|
+
function ia(e, t) {
|
|
5463
5463
|
const n = Me(e);
|
|
5464
|
-
return n === t || !ue(n) || Ze(n) ? !1 : fe(n).position === "fixed" ||
|
|
5464
|
+
return n === t || !ue(n) || Ze(n) ? !1 : fe(n).position === "fixed" || ia(n, t);
|
|
5465
5465
|
}
|
|
5466
5466
|
function Jl(e, t) {
|
|
5467
5467
|
const n = t.get(e);
|
|
@@ -5472,7 +5472,7 @@ function Jl(e, t) {
|
|
|
5472
5472
|
let i = a ? Me(e) : e;
|
|
5473
5473
|
for (; ue(i) && !Ze(i); ) {
|
|
5474
5474
|
const c = fe(i), l = Qn(i);
|
|
5475
|
-
!l && c.position === "fixed" && (o = null), (a ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ut(i) && !l &&
|
|
5475
|
+
!l && c.position === "fixed" && (o = null), (a ? !l && !o : !l && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || ut(i) && !l && ia(e, i)) ? r = r.filter((f) => f !== i) : o = c, i = Me(i);
|
|
5476
5476
|
}
|
|
5477
5477
|
return t.set(e, r), r;
|
|
5478
5478
|
}
|
|
@@ -5498,7 +5498,7 @@ function td(e) {
|
|
|
5498
5498
|
const {
|
|
5499
5499
|
width: t,
|
|
5500
5500
|
height: n
|
|
5501
|
-
} =
|
|
5501
|
+
} = ra(e);
|
|
5502
5502
|
return {
|
|
5503
5503
|
width: t,
|
|
5504
5504
|
height: n
|
|
@@ -5516,7 +5516,7 @@ function nd(e, t, n) {
|
|
|
5516
5516
|
const v = Ve(t, !0, a, t);
|
|
5517
5517
|
l.x = v.x + t.clientLeft, l.y = v.y + t.clientTop;
|
|
5518
5518
|
} else o && (l.x = tr(o));
|
|
5519
|
-
const d = o && !r && !a ?
|
|
5519
|
+
const d = o && !r && !a ? aa(o, c) : ve(0), f = i.left + c.scrollLeft - l.x - d.x, m = i.top + c.scrollTop - l.y - d.y;
|
|
5520
5520
|
return {
|
|
5521
5521
|
x: f,
|
|
5522
5522
|
y: m,
|
|
@@ -5535,7 +5535,7 @@ function zr(e, t) {
|
|
|
5535
5535
|
let n = e.offsetParent;
|
|
5536
5536
|
return ye(e) === n && (n = n.ownerDocument.body), n;
|
|
5537
5537
|
}
|
|
5538
|
-
function
|
|
5538
|
+
function sa(e, t) {
|
|
5539
5539
|
const n = se(e);
|
|
5540
5540
|
if (Xt(e))
|
|
5541
5541
|
return n;
|
|
@@ -5554,7 +5554,7 @@ function ca(e, t) {
|
|
|
5554
5554
|
return r && Ze(r) && hn(r) && !Qn(r) ? n : r || Gl(e) || n;
|
|
5555
5555
|
}
|
|
5556
5556
|
const rd = async function(e) {
|
|
5557
|
-
const t = this.getOffsetParent ||
|
|
5557
|
+
const t = this.getOffsetParent || sa, n = this.getDimensions, r = await n(e.floating);
|
|
5558
5558
|
return {
|
|
5559
5559
|
reference: nd(e.reference, await t(e.floating), e.strategy),
|
|
5560
5560
|
floating: {
|
|
@@ -5572,7 +5572,7 @@ const ad = {
|
|
|
5572
5572
|
convertOffsetParentRelativeRectToViewportRelativeRect: Yl,
|
|
5573
5573
|
getDocumentElement: ye,
|
|
5574
5574
|
getClippingRect: ed,
|
|
5575
|
-
getOffsetParent:
|
|
5575
|
+
getOffsetParent: sa,
|
|
5576
5576
|
getElementRects: rd,
|
|
5577
5577
|
getClientRects: Xl,
|
|
5578
5578
|
getDimensions: td,
|
|
@@ -5580,7 +5580,7 @@ const ad = {
|
|
|
5580
5580
|
isElement: ue,
|
|
5581
5581
|
isRTL: od
|
|
5582
5582
|
};
|
|
5583
|
-
function
|
|
5583
|
+
function ca(e, t) {
|
|
5584
5584
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5585
5585
|
}
|
|
5586
5586
|
function id(e, t) {
|
|
@@ -5614,7 +5614,7 @@ function id(e, t) {
|
|
|
5614
5614
|
i(!1, 1e-7);
|
|
5615
5615
|
}, 1e3);
|
|
5616
5616
|
}
|
|
5617
|
-
T === 1 && !
|
|
5617
|
+
T === 1 && !ca(d, e.getBoundingClientRect()) && i(), C = !1;
|
|
5618
5618
|
}
|
|
5619
5619
|
try {
|
|
5620
5620
|
n = new IntersectionObserver(S, {
|
|
@@ -5656,7 +5656,7 @@ function sd(e, t, n, r) {
|
|
|
5656
5656
|
l && g();
|
|
5657
5657
|
function g() {
|
|
5658
5658
|
const y = Ve(e);
|
|
5659
|
-
p && !
|
|
5659
|
+
p && !ca(p, y) && n(), p = y, b = requestAnimationFrame(g);
|
|
5660
5660
|
}
|
|
5661
5661
|
return n(), () => {
|
|
5662
5662
|
var y;
|
|
@@ -5678,7 +5678,7 @@ const cd = Wl, ld = Bl, dd = Fl, ud = Hl, fd = $l, Wr = Ll, pd = Vl, md = (e, t,
|
|
|
5678
5678
|
platform: a
|
|
5679
5679
|
});
|
|
5680
5680
|
};
|
|
5681
|
-
var Nt = typeof document < "u" ?
|
|
5681
|
+
var Nt = typeof document < "u" ? hi : gi;
|
|
5682
5682
|
function $t(e, t) {
|
|
5683
5683
|
if (e === t)
|
|
5684
5684
|
return !0;
|
|
@@ -5709,11 +5709,11 @@ function $t(e, t) {
|
|
|
5709
5709
|
}
|
|
5710
5710
|
return e !== e && t !== t;
|
|
5711
5711
|
}
|
|
5712
|
-
function
|
|
5712
|
+
function la(e) {
|
|
5713
5713
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5714
5714
|
}
|
|
5715
5715
|
function Br(e, t) {
|
|
5716
|
-
const n =
|
|
5716
|
+
const n = la(e);
|
|
5717
5717
|
return Math.round(t * n) / n;
|
|
5718
5718
|
}
|
|
5719
5719
|
function gn(e) {
|
|
@@ -5807,7 +5807,7 @@ function hd(e) {
|
|
|
5807
5807
|
return c ? {
|
|
5808
5808
|
...O,
|
|
5809
5809
|
transform: "translate(" + L + "px, " + K + "px)",
|
|
5810
|
-
...
|
|
5810
|
+
...la(A.floating) >= 1.5 && {
|
|
5811
5811
|
willChange: "transform"
|
|
5812
5812
|
}
|
|
5813
5813
|
} : {
|
|
@@ -5867,7 +5867,7 @@ const gd = (e) => {
|
|
|
5867
5867
|
...gd(e),
|
|
5868
5868
|
options: [e, t]
|
|
5869
5869
|
});
|
|
5870
|
-
var Sd = "Arrow",
|
|
5870
|
+
var Sd = "Arrow", da = s.forwardRef((e, t) => {
|
|
5871
5871
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
5872
5872
|
return /* @__PURE__ */ u(
|
|
5873
5873
|
Y.svg,
|
|
@@ -5882,8 +5882,8 @@ var Sd = "Arrow", ua = s.forwardRef((e, t) => {
|
|
|
5882
5882
|
}
|
|
5883
5883
|
);
|
|
5884
5884
|
});
|
|
5885
|
-
|
|
5886
|
-
var Td =
|
|
5885
|
+
da.displayName = Sd;
|
|
5886
|
+
var Td = da;
|
|
5887
5887
|
function Rd(e) {
|
|
5888
5888
|
const [t, n] = s.useState(void 0);
|
|
5889
5889
|
return Ae(() => {
|
|
@@ -5906,21 +5906,21 @@ function Rd(e) {
|
|
|
5906
5906
|
n(void 0);
|
|
5907
5907
|
}, [e]), t;
|
|
5908
5908
|
}
|
|
5909
|
-
var nr = "Popper", [
|
|
5909
|
+
var nr = "Popper", [ua, fa] = dt(nr), [Nd, pa] = ua(nr), ma = (e) => {
|
|
5910
5910
|
const { __scopePopper: t, children: n } = e, [r, o] = s.useState(null);
|
|
5911
5911
|
return /* @__PURE__ */ u(Nd, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5912
5912
|
};
|
|
5913
|
-
|
|
5914
|
-
var
|
|
5913
|
+
ma.displayName = nr;
|
|
5914
|
+
var ha = "PopperAnchor", ga = s.forwardRef(
|
|
5915
5915
|
(e, t) => {
|
|
5916
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, a =
|
|
5916
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, a = pa(ha, n), i = s.useRef(null), c = ee(t, i);
|
|
5917
5917
|
return s.useEffect(() => {
|
|
5918
5918
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
5919
5919
|
}), r ? null : /* @__PURE__ */ u(Y.div, { ...o, ref: c });
|
|
5920
5920
|
}
|
|
5921
5921
|
);
|
|
5922
|
-
|
|
5923
|
-
var rr = "PopperContent", [Pd, Ad] =
|
|
5922
|
+
ga.displayName = ha;
|
|
5923
|
+
var rr = "PopperContent", [Pd, Ad] = ua(rr), va = s.forwardRef(
|
|
5924
5924
|
(e, t) => {
|
|
5925
5925
|
var he, rt, pt, ot, mt, je;
|
|
5926
5926
|
const {
|
|
@@ -5938,7 +5938,7 @@ var rr = "PopperContent", [Pd, Ad] = fa(rr), ba = s.forwardRef(
|
|
|
5938
5938
|
updatePositionStrategy: h = "optimized",
|
|
5939
5939
|
onPlaced: b,
|
|
5940
5940
|
...p
|
|
5941
|
-
} = e, g =
|
|
5941
|
+
} = e, g = pa(rr, n), [y, w] = s.useState(null), x = ee(t, (De) => w(De)), [C, S] = s.useState(null), E = Rd(C), T = (E == null ? void 0 : E.width) ?? 0, $ = (E == null ? void 0 : E.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), z = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, H = Array.isArray(d) ? d : [d], W = H.length > 0, M = {
|
|
5942
5942
|
padding: z,
|
|
5943
5943
|
boundary: H.filter(kd),
|
|
5944
5944
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5973,7 +5973,7 @@ var rr = "PopperContent", [Pd, Ad] = fa(rr), ba = s.forwardRef(
|
|
|
5973
5973
|
Md({ arrowWidth: T, arrowHeight: $ }),
|
|
5974
5974
|
v && Cd({ strategy: "referenceHidden", ...M })
|
|
5975
5975
|
]
|
|
5976
|
-
}), [L, K] =
|
|
5976
|
+
}), [L, K] = wa(A), q = ce(b);
|
|
5977
5977
|
Ae(() => {
|
|
5978
5978
|
j && (q == null || q());
|
|
5979
5979
|
}, [j, q]);
|
|
@@ -6034,14 +6034,14 @@ var rr = "PopperContent", [Pd, Ad] = fa(rr), ba = s.forwardRef(
|
|
|
6034
6034
|
);
|
|
6035
6035
|
}
|
|
6036
6036
|
);
|
|
6037
|
-
|
|
6038
|
-
var
|
|
6037
|
+
va.displayName = rr;
|
|
6038
|
+
var ba = "PopperArrow", Od = {
|
|
6039
6039
|
top: "bottom",
|
|
6040
6040
|
right: "left",
|
|
6041
6041
|
bottom: "top",
|
|
6042
6042
|
left: "right"
|
|
6043
|
-
},
|
|
6044
|
-
const { __scopePopper: r, ...o } = t, a = Ad(
|
|
6043
|
+
}, ya = s.forwardRef(function(t, n) {
|
|
6044
|
+
const { __scopePopper: r, ...o } = t, a = Ad(ba, r), i = Od[a.placedSide];
|
|
6045
6045
|
return (
|
|
6046
6046
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6047
6047
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6085,7 +6085,7 @@ var ya = "PopperArrow", Od = {
|
|
|
6085
6085
|
)
|
|
6086
6086
|
);
|
|
6087
6087
|
});
|
|
6088
|
-
|
|
6088
|
+
ya.displayName = ba;
|
|
6089
6089
|
function kd(e) {
|
|
6090
6090
|
return e !== null;
|
|
6091
6091
|
}
|
|
@@ -6094,16 +6094,16 @@ var Md = (e) => ({
|
|
|
6094
6094
|
options: e,
|
|
6095
6095
|
fn(t) {
|
|
6096
6096
|
var g, y, w;
|
|
6097
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [d, f] =
|
|
6097
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((g = o.arrow) == null ? void 0 : g.centerOffset) !== 0, c = i ? 0 : e.arrowWidth, l = i ? 0 : e.arrowHeight, [d, f] = wa(n), m = { start: "0%", center: "50%", end: "100%" }[f], v = (((y = o.arrow) == null ? void 0 : y.x) ?? 0) + c / 2, h = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + l / 2;
|
|
6098
6098
|
let b = "", p = "";
|
|
6099
6099
|
return d === "bottom" ? (b = i ? m : `${v}px`, p = `${-l}px`) : d === "top" ? (b = i ? m : `${v}px`, p = `${r.floating.height + l}px`) : d === "right" ? (b = `${-l}px`, p = i ? m : `${h}px`) : d === "left" && (b = `${r.floating.width + l}px`, p = i ? m : `${h}px`), { data: { x: b, y: p } };
|
|
6100
6100
|
}
|
|
6101
6101
|
});
|
|
6102
|
-
function
|
|
6102
|
+
function wa(e) {
|
|
6103
6103
|
const [t, n = "center"] = e.split("-");
|
|
6104
6104
|
return [t, n];
|
|
6105
6105
|
}
|
|
6106
|
-
var Dd =
|
|
6106
|
+
var Dd = ma, _d = ga, Id = va, Ld = ya, Fd = "VisuallyHidden", Zt = s.forwardRef(
|
|
6107
6107
|
(e, t) => /* @__PURE__ */ u(
|
|
6108
6108
|
Y.span,
|
|
6109
6109
|
{
|
|
@@ -6128,8 +6128,8 @@ var Dd = ha, _d = va, Id = ba, Ld = wa, Fd = "VisuallyHidden", Zt = s.forwardRef
|
|
|
6128
6128
|
);
|
|
6129
6129
|
Zt.displayName = Fd;
|
|
6130
6130
|
var $d = Zt, [Qt, gf] = dt("Tooltip", [
|
|
6131
|
-
|
|
6132
|
-
]), Jt =
|
|
6131
|
+
fa
|
|
6132
|
+
]), Jt = fa(), xa = "TooltipProvider", zd = 700, On = "tooltip.open", [Wd, or] = Qt(xa), Ca = (e) => {
|
|
6133
6133
|
const {
|
|
6134
6134
|
__scopeTooltip: t,
|
|
6135
6135
|
delayDuration: n = zd,
|
|
@@ -6164,8 +6164,8 @@ var $d = Zt, [Qt, gf] = dt("Tooltip", [
|
|
|
6164
6164
|
}
|
|
6165
6165
|
);
|
|
6166
6166
|
};
|
|
6167
|
-
|
|
6168
|
-
var en = "Tooltip", [Bd, ft] = Qt(en),
|
|
6167
|
+
Ca.displayName = xa;
|
|
6168
|
+
var en = "Tooltip", [Bd, ft] = Qt(en), Ea = (e) => {
|
|
6169
6169
|
const {
|
|
6170
6170
|
__scopeTooltip: t,
|
|
6171
6171
|
children: n,
|
|
@@ -6213,8 +6213,8 @@ var en = "Tooltip", [Bd, ft] = Qt(en), Sa = (e) => {
|
|
|
6213
6213
|
}
|
|
6214
6214
|
) });
|
|
6215
6215
|
};
|
|
6216
|
-
|
|
6217
|
-
var kn = "TooltipTrigger",
|
|
6216
|
+
Ea.displayName = en;
|
|
6217
|
+
var kn = "TooltipTrigger", Sa = s.forwardRef(
|
|
6218
6218
|
(e, t) => {
|
|
6219
6219
|
const { __scopeTooltip: n, ...r } = e, o = ft(kn, n), a = or(kn, n), i = Jt(n), c = s.useRef(null), l = ee(t, c, o.onTriggerChange), d = s.useRef(!1), f = s.useRef(!1), m = s.useCallback(() => d.current = !1, []);
|
|
6220
6220
|
return s.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ u(_d, { asChild: !0, ...i, children: /* @__PURE__ */ u(
|
|
@@ -6242,18 +6242,18 @@ var kn = "TooltipTrigger", Ta = s.forwardRef(
|
|
|
6242
6242
|
) });
|
|
6243
6243
|
}
|
|
6244
6244
|
);
|
|
6245
|
-
|
|
6245
|
+
Sa.displayName = kn;
|
|
6246
6246
|
var ar = "TooltipPortal", [Vd, Hd] = Qt(ar, {
|
|
6247
6247
|
forceMount: void 0
|
|
6248
|
-
}),
|
|
6248
|
+
}), Ta = (e) => {
|
|
6249
6249
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = ft(ar, t);
|
|
6250
6250
|
return /* @__PURE__ */ u(Vd, { scope: t, forceMount: n, children: /* @__PURE__ */ u(He, { present: n || a.open, children: /* @__PURE__ */ u(Wt, { asChild: !0, container: o, children: r }) }) });
|
|
6251
6251
|
};
|
|
6252
|
-
|
|
6253
|
-
var Qe = "TooltipContent",
|
|
6252
|
+
Ta.displayName = ar;
|
|
6253
|
+
var Qe = "TooltipContent", Ra = s.forwardRef(
|
|
6254
6254
|
(e, t) => {
|
|
6255
6255
|
const n = Hd(Qe, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = ft(Qe, e.__scopeTooltip);
|
|
6256
|
-
return /* @__PURE__ */ u(He, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(
|
|
6256
|
+
return /* @__PURE__ */ u(He, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(Na, { side: o, ...a, ref: t }) : /* @__PURE__ */ u(jd, { side: o, ...a, ref: t }) });
|
|
6257
6257
|
}
|
|
6258
6258
|
), jd = s.forwardRef((e, t) => {
|
|
6259
6259
|
const n = ft(Qe, e.__scopeTooltip), r = or(Qe, e.__scopeTooltip), o = s.useRef(null), a = ee(t, o), [i, c] = s.useState(null), { trigger: l, onClose: d } = n, f = o.current, { onPointerInTransitChange: m } = r, v = s.useCallback(() => {
|
|
@@ -6280,8 +6280,8 @@ var Qe = "TooltipContent", Na = s.forwardRef(
|
|
|
6280
6280
|
};
|
|
6281
6281
|
return document.addEventListener("pointermove", b), () => document.removeEventListener("pointermove", b);
|
|
6282
6282
|
}
|
|
6283
|
-
}, [l, f, i, d, v]), /* @__PURE__ */ u(
|
|
6284
|
-
}), [Gd, Ud] = Qt(en, { isInside: !1 }),
|
|
6283
|
+
}, [l, f, i, d, v]), /* @__PURE__ */ u(Na, { ...e, ref: a });
|
|
6284
|
+
}), [Gd, Ud] = Qt(en, { isInside: !1 }), Na = s.forwardRef(
|
|
6285
6285
|
(e, t) => {
|
|
6286
6286
|
const {
|
|
6287
6287
|
__scopeTooltip: n,
|
|
@@ -6324,7 +6324,7 @@ var Qe = "TooltipContent", Na = s.forwardRef(
|
|
|
6324
6324
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6325
6325
|
},
|
|
6326
6326
|
children: [
|
|
6327
|
-
/* @__PURE__ */ u(
|
|
6327
|
+
/* @__PURE__ */ u(lo, { children: r }),
|
|
6328
6328
|
/* @__PURE__ */ u(Gd, { scope: n, isInside: !0, children: /* @__PURE__ */ u($d, { id: l.contentId, role: "tooltip", children: o || r }) })
|
|
6329
6329
|
]
|
|
6330
6330
|
}
|
|
@@ -6333,17 +6333,17 @@ var Qe = "TooltipContent", Na = s.forwardRef(
|
|
|
6333
6333
|
);
|
|
6334
6334
|
}
|
|
6335
6335
|
);
|
|
6336
|
-
|
|
6337
|
-
var
|
|
6336
|
+
Ra.displayName = Qe;
|
|
6337
|
+
var Pa = "TooltipArrow", Kd = s.forwardRef(
|
|
6338
6338
|
(e, t) => {
|
|
6339
6339
|
const { __scopeTooltip: n, ...r } = e, o = Jt(n);
|
|
6340
6340
|
return Ud(
|
|
6341
|
-
|
|
6341
|
+
Pa,
|
|
6342
6342
|
n
|
|
6343
6343
|
).isInside ? null : /* @__PURE__ */ u(Ld, { ...o, ...r, ref: t });
|
|
6344
6344
|
}
|
|
6345
6345
|
);
|
|
6346
|
-
Kd.displayName =
|
|
6346
|
+
Kd.displayName = Pa;
|
|
6347
6347
|
function Yd(e, t) {
|
|
6348
6348
|
const n = Math.abs(t.top - e.y), r = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
6349
6349
|
switch (Math.min(n, r, o, a)) {
|
|
@@ -6436,9 +6436,9 @@ function Jd(e) {
|
|
|
6436
6436
|
}
|
|
6437
6437
|
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);
|
|
6438
6438
|
}
|
|
6439
|
-
var eu =
|
|
6439
|
+
var eu = Ca, tu = Ea, nu = Sa, ru = Ta, Aa = Ra;
|
|
6440
6440
|
const Pt = eu, At = tu, Ot = nu, it = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u(ru, { children: /* @__PURE__ */ u(
|
|
6441
|
-
|
|
6441
|
+
Aa,
|
|
6442
6442
|
{
|
|
6443
6443
|
ref: r,
|
|
6444
6444
|
sideOffset: t,
|
|
@@ -6449,15 +6449,15 @@ const Pt = eu, At = tu, Ot = nu, it = s.forwardRef(({ className: e, sideOffset:
|
|
|
6449
6449
|
...n
|
|
6450
6450
|
}
|
|
6451
6451
|
) }));
|
|
6452
|
-
it.displayName =
|
|
6453
|
-
const ou = "sidebar:state", au = 60 * 60 * 24 * 7, iu = "16rem", su = "18rem", cu = "3rem", lu = "b",
|
|
6452
|
+
it.displayName = Aa.displayName;
|
|
6453
|
+
const ou = "sidebar:state", au = 60 * 60 * 24 * 7, iu = "16rem", su = "18rem", cu = "3rem", lu = "b", Oa = s.createContext(null);
|
|
6454
6454
|
function tn() {
|
|
6455
|
-
const e = s.useContext(
|
|
6455
|
+
const e = s.useContext(Oa);
|
|
6456
6456
|
if (!e)
|
|
6457
6457
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
6458
6458
|
return e;
|
|
6459
6459
|
}
|
|
6460
|
-
const
|
|
6460
|
+
const ka = s.forwardRef(
|
|
6461
6461
|
({
|
|
6462
6462
|
defaultOpen: e = !0,
|
|
6463
6463
|
open: t,
|
|
@@ -6492,7 +6492,7 @@ const Ma = s.forwardRef(
|
|
|
6492
6492
|
}),
|
|
6493
6493
|
[g, h, b, l, d, f, p]
|
|
6494
6494
|
);
|
|
6495
|
-
return /* @__PURE__ */ u(
|
|
6495
|
+
return /* @__PURE__ */ u(Oa.Provider, { value: y, children: /* @__PURE__ */ u(Pt, { delayDuration: 0, children: /* @__PURE__ */ u(
|
|
6496
6496
|
"div",
|
|
6497
6497
|
{
|
|
6498
6498
|
style: {
|
|
@@ -6511,8 +6511,8 @@ const Ma = s.forwardRef(
|
|
|
6511
6511
|
) }) });
|
|
6512
6512
|
}
|
|
6513
6513
|
);
|
|
6514
|
-
|
|
6515
|
-
const
|
|
6514
|
+
ka.displayName = "SidebarProvider";
|
|
6515
|
+
const Ma = s.forwardRef(
|
|
6516
6516
|
({
|
|
6517
6517
|
side: e = "left",
|
|
6518
6518
|
variant: t = "sidebar",
|
|
@@ -6534,7 +6534,7 @@ const Da = s.forwardRef(
|
|
|
6534
6534
|
children: o
|
|
6535
6535
|
}
|
|
6536
6536
|
) : c ? /* @__PURE__ */ u(yl, { open: d, onOpenChange: f, ...a, children: /* @__PURE__ */ u(
|
|
6537
|
-
|
|
6537
|
+
Jo,
|
|
6538
6538
|
{
|
|
6539
6539
|
"data-sidebar": "sidebar",
|
|
6540
6540
|
"data-mobile": "true",
|
|
@@ -6592,8 +6592,8 @@ const Da = s.forwardRef(
|
|
|
6592
6592
|
);
|
|
6593
6593
|
}
|
|
6594
6594
|
);
|
|
6595
|
-
|
|
6596
|
-
const
|
|
6595
|
+
Ma.displayName = "Sidebar";
|
|
6596
|
+
const Da = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
6597
6597
|
const { toggleSidebar: o } = tn();
|
|
6598
6598
|
return /* @__PURE__ */ I(
|
|
6599
6599
|
Pe,
|
|
@@ -6614,7 +6614,7 @@ const _a = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6614
6614
|
}
|
|
6615
6615
|
);
|
|
6616
6616
|
});
|
|
6617
|
-
|
|
6617
|
+
Da.displayName = "SidebarTrigger";
|
|
6618
6618
|
const du = s.forwardRef(({ className: e, ...t }, n) => {
|
|
6619
6619
|
const { toggleSidebar: r } = tn();
|
|
6620
6620
|
return /* @__PURE__ */ u(
|
|
@@ -6666,7 +6666,7 @@ const fu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6666
6666
|
}
|
|
6667
6667
|
));
|
|
6668
6668
|
fu.displayName = "SidebarInput";
|
|
6669
|
-
const
|
|
6669
|
+
const _a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6670
6670
|
"div",
|
|
6671
6671
|
{
|
|
6672
6672
|
ref: n,
|
|
@@ -6675,8 +6675,8 @@ const Ia = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6675
6675
|
...t
|
|
6676
6676
|
}
|
|
6677
6677
|
));
|
|
6678
|
-
|
|
6679
|
-
const
|
|
6678
|
+
_a.displayName = "SidebarHeader";
|
|
6679
|
+
const Ia = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6680
6680
|
"div",
|
|
6681
6681
|
{
|
|
6682
6682
|
ref: n,
|
|
@@ -6685,9 +6685,9 @@ const La = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6685
6685
|
...t
|
|
6686
6686
|
}
|
|
6687
6687
|
));
|
|
6688
|
-
|
|
6688
|
+
Ia.displayName = "SidebarFooter";
|
|
6689
6689
|
const pu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6690
|
-
|
|
6690
|
+
Zo,
|
|
6691
6691
|
{
|
|
6692
6692
|
ref: n,
|
|
6693
6693
|
"data-sidebar": "separator",
|
|
@@ -6696,7 +6696,7 @@ const pu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6696
6696
|
}
|
|
6697
6697
|
));
|
|
6698
6698
|
pu.displayName = "SidebarSeparator";
|
|
6699
|
-
const
|
|
6699
|
+
const La = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6700
6700
|
"div",
|
|
6701
6701
|
{
|
|
6702
6702
|
ref: n,
|
|
@@ -6708,7 +6708,7 @@ const Fa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6708
6708
|
...t
|
|
6709
6709
|
}
|
|
6710
6710
|
));
|
|
6711
|
-
|
|
6711
|
+
La.displayName = "SidebarContent";
|
|
6712
6712
|
const mu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6713
6713
|
"div",
|
|
6714
6714
|
{
|
|
@@ -6759,7 +6759,7 @@ const vu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6759
6759
|
}
|
|
6760
6760
|
));
|
|
6761
6761
|
vu.displayName = "SidebarGroupContent";
|
|
6762
|
-
const
|
|
6762
|
+
const Fa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6763
6763
|
"ul",
|
|
6764
6764
|
{
|
|
6765
6765
|
ref: n,
|
|
@@ -6768,8 +6768,8 @@ const $a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6768
6768
|
...t
|
|
6769
6769
|
}
|
|
6770
6770
|
));
|
|
6771
|
-
|
|
6772
|
-
const
|
|
6771
|
+
Fa.displayName = "SidebarMenu";
|
|
6772
|
+
const $a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6773
6773
|
"li",
|
|
6774
6774
|
{
|
|
6775
6775
|
ref: n,
|
|
@@ -6778,7 +6778,7 @@ const za = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6778
6778
|
...t
|
|
6779
6779
|
}
|
|
6780
6780
|
));
|
|
6781
|
-
|
|
6781
|
+
$a.displayName = "SidebarMenuItem";
|
|
6782
6782
|
const bu = Kt(
|
|
6783
6783
|
"peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm outline-hidden ring-sidebar-ring transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 group-has-data-[sidebar=menu-action]/menu-item:pr-8 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground data-[state=open]:hover:bg-sidebar-accent data-[state=open]:hover:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",
|
|
6784
6784
|
{
|
|
@@ -6798,7 +6798,7 @@ const bu = Kt(
|
|
|
6798
6798
|
size: "default"
|
|
6799
6799
|
}
|
|
6800
6800
|
}
|
|
6801
|
-
),
|
|
6801
|
+
), za = s.forwardRef(
|
|
6802
6802
|
({
|
|
6803
6803
|
asChild: e = !1,
|
|
6804
6804
|
isActive: t = !1,
|
|
@@ -6835,7 +6835,7 @@ const bu = Kt(
|
|
|
6835
6835
|
] })) : m;
|
|
6836
6836
|
}
|
|
6837
6837
|
);
|
|
6838
|
-
|
|
6838
|
+
za.displayName = "SidebarMenuButton";
|
|
6839
6839
|
const yu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ u(
|
|
6840
6840
|
t ? de : "button",
|
|
6841
6841
|
{
|
|
@@ -6981,7 +6981,7 @@ function Tu(e) {
|
|
|
6981
6981
|
r
|
|
6982
6982
|
];
|
|
6983
6983
|
}
|
|
6984
|
-
var ir = "ToastProvider", [sr, Ru, Nu] = Tu("Toast"), [
|
|
6984
|
+
var ir = "ToastProvider", [sr, Ru, Nu] = Tu("Toast"), [Wa, vf] = dt("Toast", [Nu]), [Pu, nn] = Wa(ir), Ba = (e) => {
|
|
6985
6985
|
const {
|
|
6986
6986
|
__scopeToast: t,
|
|
6987
6987
|
label: n = "Notification",
|
|
@@ -7011,15 +7011,15 @@ var ir = "ToastProvider", [sr, Ru, Nu] = Tu("Toast"), [Ba, vf] = dt("Toast", [Nu
|
|
|
7011
7011
|
}
|
|
7012
7012
|
) });
|
|
7013
7013
|
};
|
|
7014
|
-
|
|
7015
|
-
var
|
|
7014
|
+
Ba.displayName = ir;
|
|
7015
|
+
var Va = "ToastViewport", Au = ["F8"], Mn = "toast.viewportPause", Dn = "toast.viewportResume", Ha = s.forwardRef(
|
|
7016
7016
|
(e, t) => {
|
|
7017
7017
|
const {
|
|
7018
7018
|
__scopeToast: n,
|
|
7019
7019
|
hotkey: r = Au,
|
|
7020
7020
|
label: o = "Notifications ({hotkey})",
|
|
7021
7021
|
...a
|
|
7022
|
-
} = e, i = nn(
|
|
7022
|
+
} = e, i = nn(Va, n), c = Ru(n), l = s.useRef(null), d = s.useRef(null), f = 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;
|
|
7023
7023
|
s.useEffect(() => {
|
|
7024
7024
|
const g = (y) => {
|
|
7025
7025
|
var x;
|
|
@@ -7116,10 +7116,10 @@ var Ha = "ToastViewport", Au = ["F8"], Mn = "toast.viewportPause", Dn = "toast.v
|
|
|
7116
7116
|
);
|
|
7117
7117
|
}
|
|
7118
7118
|
);
|
|
7119
|
-
|
|
7120
|
-
var
|
|
7119
|
+
Ha.displayName = Va;
|
|
7120
|
+
var ja = "ToastFocusProxy", _n = s.forwardRef(
|
|
7121
7121
|
(e, t) => {
|
|
7122
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = nn(
|
|
7122
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = nn(ja, n);
|
|
7123
7123
|
return /* @__PURE__ */ u(
|
|
7124
7124
|
Zt,
|
|
7125
7125
|
{
|
|
@@ -7137,8 +7137,8 @@ var Ga = "ToastFocusProxy", _n = s.forwardRef(
|
|
|
7137
7137
|
);
|
|
7138
7138
|
}
|
|
7139
7139
|
);
|
|
7140
|
-
_n.displayName =
|
|
7141
|
-
var rn = "Toast", Ou = "toast.swipeStart", ku = "toast.swipeMove", Mu = "toast.swipeCancel", Du = "toast.swipeEnd",
|
|
7140
|
+
_n.displayName = ja;
|
|
7141
|
+
var rn = "Toast", Ou = "toast.swipeStart", ku = "toast.swipeMove", Mu = "toast.swipeCancel", Du = "toast.swipeEnd", Ga = s.forwardRef(
|
|
7142
7142
|
(e, t) => {
|
|
7143
7143
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [c = !0, l] = Wn({
|
|
7144
7144
|
prop: r,
|
|
@@ -7172,8 +7172,8 @@ var rn = "Toast", Ou = "toast.swipeStart", ku = "toast.swipeMove", Mu = "toast.s
|
|
|
7172
7172
|
) });
|
|
7173
7173
|
}
|
|
7174
7174
|
);
|
|
7175
|
-
|
|
7176
|
-
var [_u, Iu] =
|
|
7175
|
+
Ga.displayName = rn;
|
|
7176
|
+
var [_u, Iu] = Wa(rn, {
|
|
7177
7177
|
onClose() {
|
|
7178
7178
|
}
|
|
7179
7179
|
}), Lu = s.forwardRef(
|
|
@@ -7217,7 +7217,7 @@ var [_u, Iu] = Ba(rn, {
|
|
|
7217
7217
|
}, [p.viewport, S, l, d, W]), s.useEffect(() => {
|
|
7218
7218
|
a && !p.isClosePausedRef.current && W(S);
|
|
7219
7219
|
}, [a, S, p.isClosePausedRef, W]), s.useEffect(() => (D(), () => z()), [D, z]);
|
|
7220
|
-
const M = s.useMemo(() => g ?
|
|
7220
|
+
const M = s.useMemo(() => g ? Qa(g) : null, [g]);
|
|
7221
7221
|
return p.viewport ? /* @__PURE__ */ I(We, { children: [
|
|
7222
7222
|
M && /* @__PURE__ */ u(
|
|
7223
7223
|
Fu,
|
|
@@ -7300,33 +7300,33 @@ var [_u, Iu] = Ba(rn, {
|
|
|
7300
7300
|
" ",
|
|
7301
7301
|
n
|
|
7302
7302
|
] }) }) });
|
|
7303
|
-
}, $u = "ToastTitle",
|
|
7303
|
+
}, $u = "ToastTitle", Ua = s.forwardRef(
|
|
7304
7304
|
(e, t) => {
|
|
7305
7305
|
const { __scopeToast: n, ...r } = e;
|
|
7306
7306
|
return /* @__PURE__ */ u(Y.div, { ...r, ref: t });
|
|
7307
7307
|
}
|
|
7308
7308
|
);
|
|
7309
|
-
|
|
7310
|
-
var zu = "ToastDescription",
|
|
7309
|
+
Ua.displayName = $u;
|
|
7310
|
+
var zu = "ToastDescription", Ka = s.forwardRef(
|
|
7311
7311
|
(e, t) => {
|
|
7312
7312
|
const { __scopeToast: n, ...r } = e;
|
|
7313
7313
|
return /* @__PURE__ */ u(Y.div, { ...r, ref: t });
|
|
7314
7314
|
}
|
|
7315
7315
|
);
|
|
7316
|
-
|
|
7317
|
-
var
|
|
7316
|
+
Ka.displayName = zu;
|
|
7317
|
+
var Ya = "ToastAction", Xa = s.forwardRef(
|
|
7318
7318
|
(e, t) => {
|
|
7319
7319
|
const { altText: n, ...r } = e;
|
|
7320
|
-
return n.trim() ? /* @__PURE__ */ u(
|
|
7321
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
7320
|
+
return n.trim() ? /* @__PURE__ */ u(Za, { altText: n, asChild: !0, children: /* @__PURE__ */ u(cr, { ...r, ref: t }) }) : (console.error(
|
|
7321
|
+
`Invalid prop \`altText\` supplied to \`${Ya}\`. Expected non-empty \`string\`.`
|
|
7322
7322
|
), null);
|
|
7323
7323
|
}
|
|
7324
7324
|
);
|
|
7325
|
-
|
|
7326
|
-
var
|
|
7325
|
+
Xa.displayName = Ya;
|
|
7326
|
+
var qa = "ToastClose", cr = s.forwardRef(
|
|
7327
7327
|
(e, t) => {
|
|
7328
|
-
const { __scopeToast: n, ...r } = e, o = Iu(
|
|
7329
|
-
return /* @__PURE__ */ u(
|
|
7328
|
+
const { __scopeToast: n, ...r } = e, o = Iu(qa, n);
|
|
7329
|
+
return /* @__PURE__ */ u(Za, { asChild: !0, children: /* @__PURE__ */ u(
|
|
7330
7330
|
Y.button,
|
|
7331
7331
|
{
|
|
7332
7332
|
type: "button",
|
|
@@ -7337,8 +7337,8 @@ var Za = "ToastClose", cr = s.forwardRef(
|
|
|
7337
7337
|
) });
|
|
7338
7338
|
}
|
|
7339
7339
|
);
|
|
7340
|
-
cr.displayName =
|
|
7341
|
-
var
|
|
7340
|
+
cr.displayName = qa;
|
|
7341
|
+
var Za = s.forwardRef((e, t) => {
|
|
7342
7342
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
7343
7343
|
return /* @__PURE__ */ u(
|
|
7344
7344
|
Y.div,
|
|
@@ -7350,7 +7350,7 @@ var Qa = s.forwardRef((e, t) => {
|
|
|
7350
7350
|
}
|
|
7351
7351
|
);
|
|
7352
7352
|
});
|
|
7353
|
-
function
|
|
7353
|
+
function Qa(e) {
|
|
7354
7354
|
const t = [];
|
|
7355
7355
|
return Array.from(e.childNodes).forEach((r) => {
|
|
7356
7356
|
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), Bu(r)) {
|
|
@@ -7360,13 +7360,13 @@ function Ja(e) {
|
|
|
7360
7360
|
const i = r.dataset.radixToastAnnounceAlt;
|
|
7361
7361
|
i && t.push(i);
|
|
7362
7362
|
} else
|
|
7363
|
-
t.push(...
|
|
7363
|
+
t.push(...Qa(r));
|
|
7364
7364
|
}
|
|
7365
7365
|
}), t;
|
|
7366
7366
|
}
|
|
7367
7367
|
function Et(e, t, n, { discrete: r }) {
|
|
7368
7368
|
const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
7369
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
7369
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? uo(o, a) : o.dispatchEvent(a);
|
|
7370
7370
|
}
|
|
7371
7371
|
var Vr = (e, t, n = 0) => {
|
|
7372
7372
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
@@ -7399,9 +7399,9 @@ function vn(e) {
|
|
|
7399
7399
|
const t = document.activeElement;
|
|
7400
7400
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7401
7401
|
}
|
|
7402
|
-
var Hu =
|
|
7403
|
-
const ju = Hu,
|
|
7404
|
-
|
|
7402
|
+
var Hu = Ba, Ja = Ha, ei = Ga, ti = Ua, ni = Ka, ri = Xa, oi = cr;
|
|
7403
|
+
const ju = Hu, ai = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7404
|
+
Ja,
|
|
7405
7405
|
{
|
|
7406
7406
|
ref: n,
|
|
7407
7407
|
className: k(
|
|
@@ -7411,7 +7411,7 @@ const ju = Hu, ii = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
7411
7411
|
...t
|
|
7412
7412
|
}
|
|
7413
7413
|
));
|
|
7414
|
-
|
|
7414
|
+
ai.displayName = Ja.displayName;
|
|
7415
7415
|
const Gu = Kt(
|
|
7416
7416
|
"group pointer-events-auto relative flex w-full items-center justify-between space-x-2 overflow-hidden rounded-md border p-4 pr-6 shadow-lg transition-all data-[swipe=cancel]:translate-x-0 data-[swipe=end]:translate-x-[var(--radix-toast-swipe-end-x)] data-[swipe=move]:translate-x-[var(--radix-toast-swipe-move-x)] data-[swipe=move]:transition-none data-[state=open]:animate-in data-[state=closed]:animate-out data-[swipe=end]:animate-out data-[state=closed]:fade-out-80 data-[state=closed]:slide-out-to-right-full data-[state=open]:slide-in-from-top-full sm:data-[state=open]:slide-in-from-bottom-full",
|
|
7417
7417
|
{
|
|
@@ -7430,10 +7430,10 @@ const Gu = Kt(
|
|
|
7430
7430
|
variant: "default"
|
|
7431
7431
|
}
|
|
7432
7432
|
}
|
|
7433
|
-
),
|
|
7434
|
-
|
|
7433
|
+
), ii = s.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ u(ei, { ref: r, className: k(Gu({ variant: t }), e), ...n }));
|
|
7434
|
+
ii.displayName = ei.displayName;
|
|
7435
7435
|
const Uu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7436
|
-
|
|
7436
|
+
ri,
|
|
7437
7437
|
{
|
|
7438
7438
|
ref: n,
|
|
7439
7439
|
className: k(
|
|
@@ -7443,9 +7443,9 @@ const Uu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
7443
7443
|
...t
|
|
7444
7444
|
}
|
|
7445
7445
|
));
|
|
7446
|
-
Uu.displayName =
|
|
7447
|
-
const
|
|
7448
|
-
|
|
7446
|
+
Uu.displayName = ri.displayName;
|
|
7447
|
+
const si = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7448
|
+
oi,
|
|
7449
7449
|
{
|
|
7450
7450
|
ref: n,
|
|
7451
7451
|
className: k(
|
|
@@ -7457,11 +7457,11 @@ const ci = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
7457
7457
|
children: /* @__PURE__ */ u(Fn, { className: "h-4 w-4" })
|
|
7458
7458
|
}
|
|
7459
7459
|
));
|
|
7460
|
-
|
|
7461
|
-
const
|
|
7460
|
+
si.displayName = oi.displayName;
|
|
7461
|
+
const ci = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ti, { ref: n, className: k("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
7462
|
+
ci.displayName = ti.displayName;
|
|
7463
|
+
const li = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ni, { ref: n, className: k("text-sm opacity-90", e), ...t }));
|
|
7462
7464
|
li.displayName = ni.displayName;
|
|
7463
|
-
const di = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ri, { ref: n, className: k("text-sm opacity-90", e), ...t }));
|
|
7464
|
-
di.displayName = ri.displayName;
|
|
7465
7465
|
const Ku = 1, Yu = 1e6;
|
|
7466
7466
|
let bn = 0;
|
|
7467
7467
|
function Xu() {
|
|
@@ -7524,7 +7524,7 @@ function Zu({ ...e }) {
|
|
|
7524
7524
|
}
|
|
7525
7525
|
}), { id: t, dismiss: r, update: n };
|
|
7526
7526
|
}
|
|
7527
|
-
function
|
|
7527
|
+
function di() {
|
|
7528
7528
|
const [e, t] = s.useState(Mt);
|
|
7529
7529
|
return s.useEffect(() => (kt.push(t), () => {
|
|
7530
7530
|
const n = kt.indexOf(t);
|
|
@@ -7536,23 +7536,23 @@ function ui() {
|
|
|
7536
7536
|
};
|
|
7537
7537
|
}
|
|
7538
7538
|
function Qu() {
|
|
7539
|
-
const { toasts: e } =
|
|
7539
|
+
const { toasts: e } = di();
|
|
7540
7540
|
return /* @__PURE__ */ I(ju, { children: [
|
|
7541
7541
|
e.map(function({ id: t, title: n, description: r, action: o, ...a }) {
|
|
7542
|
-
return /* @__PURE__ */ I(
|
|
7542
|
+
return /* @__PURE__ */ I(ii, { ...a, children: [
|
|
7543
7543
|
/* @__PURE__ */ I("div", { className: "grid gap-1", children: [
|
|
7544
|
-
n && /* @__PURE__ */ u(
|
|
7545
|
-
r && /* @__PURE__ */ u(
|
|
7544
|
+
n && /* @__PURE__ */ u(ci, { children: n }),
|
|
7545
|
+
r && /* @__PURE__ */ u(li, { children: r })
|
|
7546
7546
|
] }),
|
|
7547
7547
|
o,
|
|
7548
|
-
/* @__PURE__ */ u(
|
|
7548
|
+
/* @__PURE__ */ u(si, {})
|
|
7549
7549
|
] }, t);
|
|
7550
7550
|
}),
|
|
7551
|
-
/* @__PURE__ */ u(
|
|
7551
|
+
/* @__PURE__ */ u(ai, {})
|
|
7552
7552
|
] });
|
|
7553
7553
|
}
|
|
7554
7554
|
function Ju({ onSignOut: e, searchResultsRouteName: t }) {
|
|
7555
|
-
const [n, r] = In(""), o =
|
|
7555
|
+
const [n, r] = In(""), o = bi(), { toast: a } = di(), i = () => {
|
|
7556
7556
|
const l = n.trim();
|
|
7557
7557
|
if (!l || l.length < 2) {
|
|
7558
7558
|
a({
|
|
@@ -7570,7 +7570,7 @@ function Ju({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7570
7570
|
}), r("");
|
|
7571
7571
|
};
|
|
7572
7572
|
return /* @__PURE__ */ I("header", { className: "flex h-16 items-center gap-4 border-b sidebar-foreground bg-sidebar px-6 fixed top-0 right-0 z-50 lg:left-64 left-0 border-sidebar-border", children: [
|
|
7573
|
-
/* @__PURE__ */ u(
|
|
7573
|
+
/* @__PURE__ */ u(Da, { className: "lg:hidden", children: /* @__PURE__ */ u(Gi, { className: "h-6 w-6" }) }),
|
|
7574
7574
|
/* @__PURE__ */ u("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ u("div", { className: "relative w-full max-w-sm", children: /* @__PURE__ */ I("div", { children: [
|
|
7575
7575
|
/* @__PURE__ */ u(
|
|
7576
7576
|
"button",
|
|
@@ -7602,9 +7602,9 @@ function Ju({ onSignOut: e, searchResultsRouteName: t }) {
|
|
|
7602
7602
|
] });
|
|
7603
7603
|
}
|
|
7604
7604
|
function ef({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7605
|
-
const { appID: r } =
|
|
7606
|
-
return /* @__PURE__ */ I(
|
|
7607
|
-
/* @__PURE__ */ u(
|
|
7605
|
+
const { appID: r } = yi(), o = e.filter((a) => a.showInNav);
|
|
7606
|
+
return /* @__PURE__ */ I(Ma, { className: "border-r border-sidebar-border", children: [
|
|
7607
|
+
/* @__PURE__ */ u(_a, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ I("div", { className: "flex items-center gap-2", children: [
|
|
7608
7608
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ u(
|
|
7609
7609
|
"img",
|
|
7610
7610
|
{
|
|
@@ -7615,14 +7615,14 @@ function ef({ routes: e, footer: t, dashboardTitle: n }) {
|
|
|
7615
7615
|
) }),
|
|
7616
7616
|
/* @__PURE__ */ u("span", { className: "font-semibold text-lg", children: n })
|
|
7617
7617
|
] }) }),
|
|
7618
|
-
/* @__PURE__ */ u(
|
|
7618
|
+
/* @__PURE__ */ u(La, { className: "py-4 bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ u(Fa, { children: o.map((a) => {
|
|
7619
7619
|
const i = a.icon, c = `/${a.path.replace(":appID", r)}`;
|
|
7620
|
-
return /* @__PURE__ */ u(
|
|
7620
|
+
return /* @__PURE__ */ u($a, { children: /* @__PURE__ */ u(za, { asChild: !0, children: /* @__PURE__ */ I(Gr, { to: c, className: "transition-colors hover:bg-muted px-6", children: [
|
|
7621
7621
|
i && /* @__PURE__ */ u(i, { className: "h-4 w-4" }),
|
|
7622
7622
|
/* @__PURE__ */ u("span", { children: a.label })
|
|
7623
7623
|
] }) }) }, a.key);
|
|
7624
7624
|
}) }) }),
|
|
7625
|
-
/* @__PURE__ */ u(
|
|
7625
|
+
/* @__PURE__ */ u(Ia, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: t })
|
|
7626
7626
|
] });
|
|
7627
7627
|
}
|
|
7628
7628
|
function bf({
|
|
@@ -7633,7 +7633,7 @@ function bf({
|
|
|
7633
7633
|
dashboardTitle: o,
|
|
7634
7634
|
onSignOut: a
|
|
7635
7635
|
}) {
|
|
7636
|
-
return /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(
|
|
7636
|
+
return /* @__PURE__ */ u(We, { children: /* @__PURE__ */ u(ka, { children: /* @__PURE__ */ I("div", { className: "flex grow", children: [
|
|
7637
7637
|
/* @__PURE__ */ u(
|
|
7638
7638
|
ef,
|
|
7639
7639
|
{
|
|
@@ -7779,10 +7779,10 @@ export {
|
|
|
7779
7779
|
Un as Dialog,
|
|
7780
7780
|
Pr as DialogClose,
|
|
7781
7781
|
Kn as DialogContent,
|
|
7782
|
-
|
|
7783
|
-
|
|
7784
|
-
|
|
7785
|
-
|
|
7782
|
+
Yo as DialogDescription,
|
|
7783
|
+
Uo as DialogFooter,
|
|
7784
|
+
Go as DialogHeader,
|
|
7785
|
+
Ko as DialogTitle,
|
|
7786
7786
|
ml as DialogTrigger,
|
|
7787
7787
|
Yn as Input,
|
|
7788
7788
|
sf as InputOTP,
|
|
@@ -7792,48 +7792,48 @@ export {
|
|
|
7792
7792
|
bf as Layout,
|
|
7793
7793
|
ef as Navbar,
|
|
7794
7794
|
yf as ProductImage,
|
|
7795
|
-
|
|
7795
|
+
Zo as Separator,
|
|
7796
7796
|
yl as Sheet,
|
|
7797
7797
|
mf as SheetClose,
|
|
7798
|
-
|
|
7798
|
+
Jo as SheetContent,
|
|
7799
7799
|
Tl as SheetDescription,
|
|
7800
7800
|
El as SheetFooter,
|
|
7801
7801
|
Cl as SheetHeader,
|
|
7802
|
-
|
|
7802
|
+
Qo as SheetOverlay,
|
|
7803
7803
|
wl as SheetPortal,
|
|
7804
7804
|
Sl as SheetTitle,
|
|
7805
7805
|
pf as SheetTrigger,
|
|
7806
|
-
|
|
7807
|
-
|
|
7808
|
-
|
|
7806
|
+
Ma as Sidebar,
|
|
7807
|
+
La as SidebarContent,
|
|
7808
|
+
Ia as SidebarFooter,
|
|
7809
7809
|
mu as SidebarGroup,
|
|
7810
7810
|
gu as SidebarGroupAction,
|
|
7811
7811
|
vu as SidebarGroupContent,
|
|
7812
7812
|
hu as SidebarGroupLabel,
|
|
7813
|
-
|
|
7813
|
+
_a as SidebarHeader,
|
|
7814
7814
|
fu as SidebarInput,
|
|
7815
7815
|
uu as SidebarInset,
|
|
7816
|
-
|
|
7816
|
+
Fa as SidebarMenu,
|
|
7817
7817
|
yu as SidebarMenuAction,
|
|
7818
7818
|
wu as SidebarMenuBadge,
|
|
7819
|
-
|
|
7820
|
-
|
|
7819
|
+
za as SidebarMenuButton,
|
|
7820
|
+
$a as SidebarMenuItem,
|
|
7821
7821
|
xu as SidebarMenuSkeleton,
|
|
7822
7822
|
Cu as SidebarMenuSub,
|
|
7823
7823
|
Su as SidebarMenuSubButton,
|
|
7824
7824
|
Eu as SidebarMenuSubItem,
|
|
7825
|
-
|
|
7825
|
+
ka as SidebarProvider,
|
|
7826
7826
|
du as SidebarRail,
|
|
7827
7827
|
pu as SidebarSeparator,
|
|
7828
|
-
|
|
7828
|
+
Da as SidebarTrigger,
|
|
7829
7829
|
Dr as Skeleton,
|
|
7830
|
-
|
|
7830
|
+
ii as Toast,
|
|
7831
7831
|
Uu as ToastAction,
|
|
7832
|
-
|
|
7833
|
-
|
|
7832
|
+
si as ToastClose,
|
|
7833
|
+
li as ToastDescription,
|
|
7834
7834
|
ju as ToastProvider,
|
|
7835
|
-
|
|
7836
|
-
|
|
7835
|
+
ci as ToastTitle,
|
|
7836
|
+
ai as ToastViewport,
|
|
7837
7837
|
Qu as Toaster,
|
|
7838
7838
|
At as Tooltip,
|
|
7839
7839
|
it as TooltipContent,
|
|
@@ -7844,5 +7844,5 @@ export {
|
|
|
7844
7844
|
Zu as toast,
|
|
7845
7845
|
Rl as useIsMobile,
|
|
7846
7846
|
tn as useSidebar,
|
|
7847
|
-
|
|
7847
|
+
di as useToast
|
|
7848
7848
|
};
|