randmarcomps 1.51.0 → 1.56.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 +72 -49
- package/dist/randmarcomps.js +786 -778
- package/dist/randmarcomps.umd.cjs +25 -25
- package/package.json +10 -20
package/dist/randmarcomps.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx as u, jsxs as I, Fragment as Ae } from "react/jsx-runtime";
|
|
2
2
|
import * as s from "react";
|
|
3
|
-
import $e, { forwardRef as jr, createElement as wn, useState as In, useLayoutEffect as
|
|
3
|
+
import $e, { forwardRef as jr, createElement as wn, useState as In, useLayoutEffect as gi, useEffect as Gr } from "react";
|
|
4
4
|
import * as Ln from "react-dom";
|
|
5
5
|
import vi from "react-dom";
|
|
6
|
-
import { useNavigate as bi,
|
|
7
|
-
var
|
|
8
|
-
for (var n in t || (t = {}))
|
|
9
|
-
if (Dt) for (var n of Dt(t))
|
|
6
|
+
import { useNavigate as bi, useLocation as yi, useParams as wi, Link as xi } from "react-router-dom";
|
|
7
|
+
var Ei = Object.defineProperty, Ci = Object.defineProperties, Si = Object.getOwnPropertyDescriptors, Dt = Object.getOwnPropertySymbols, Ur = Object.prototype.hasOwnProperty, Kr = Object.prototype.propertyIsEnumerable, ur = (e, t, n) => t in e ? Ei(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Ti = (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
|
+
}, Ri = (e, t) => Ci(e, Si(t)), Ni = (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
|
-
function
|
|
17
|
+
function Pi(e) {
|
|
18
18
|
let t = setTimeout(e, 0), n = setTimeout(e, 10), r = setTimeout(e, 50);
|
|
19
19
|
return [t, n, r];
|
|
20
20
|
}
|
|
21
|
-
function
|
|
21
|
+
function Ai(e) {
|
|
22
22
|
let t = s.useRef();
|
|
23
23
|
return s.useEffect(() => {
|
|
24
24
|
t.current = e;
|
|
25
25
|
}), t.current;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
function
|
|
27
|
+
var Oi = 18, Yr = 40, Mi = `${Yr}px`, ki = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
28
|
+
function Di({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
29
29
|
let [o, a] = s.useState(!1), [i, l] = s.useState(!1), [d, c] = 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, g = t.current;
|
|
31
31
|
if (!v || !g || d || n === "none") return;
|
|
32
|
-
let y = v, p = y.getBoundingClientRect().left + y.offsetWidth, h = y.getBoundingClientRect().top + y.offsetHeight / 2, b = p -
|
|
33
|
-
document.querySelectorAll(
|
|
32
|
+
let y = v, p = y.getBoundingClientRect().left + y.offsetWidth, h = y.getBoundingClientRect().top + y.offsetHeight / 2, b = p - Oi, w = h;
|
|
33
|
+
document.querySelectorAll(ki).length === 0 && document.elementFromPoint(b, w) === v || (a(!0), c(!0));
|
|
34
34
|
}, [e, t, d, n]);
|
|
35
35
|
return s.useEffect(() => {
|
|
36
36
|
let v = e.current;
|
|
37
37
|
if (!v || n === "none") return;
|
|
38
38
|
function g() {
|
|
39
39
|
let p = window.innerWidth - v.getBoundingClientRect().right;
|
|
40
|
-
l(p >=
|
|
40
|
+
l(p >= Yr);
|
|
41
41
|
}
|
|
42
42
|
g();
|
|
43
43
|
let y = setInterval(g, 1e3);
|
|
@@ -53,11 +53,11 @@ function ki({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
53
53
|
return () => {
|
|
54
54
|
clearTimeout(g), clearTimeout(y), clearTimeout(p), clearTimeout(h);
|
|
55
55
|
};
|
|
56
|
-
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: f, PWM_BADGE_SPACE_WIDTH:
|
|
56
|
+
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: f, PWM_BADGE_SPACE_WIDTH: Mi };
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: l, placeholder: d, inputMode: c = "numeric", onComplete: f, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y =
|
|
60
|
-
let [T, $] = s.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), D = r ?? T, z =
|
|
58
|
+
var Xr = s.createContext({}), qr = s.forwardRef((e, t) => {
|
|
59
|
+
var n = e, { value: r, onChange: o, maxLength: a, textAlign: i = "left", pattern: l, placeholder: d, inputMode: c = "numeric", onComplete: f, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y = _i, render: p, children: h } = n, b = Ni(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, x, E, S, C;
|
|
60
|
+
let [T, $] = s.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), D = r ?? T, z = Ai(D), H = s.useCallback((_) => {
|
|
61
61
|
o == null || o(_), $(_);
|
|
62
62
|
}, [o]), W = s.useMemo(() => l ? typeof l == "string" ? new RegExp(l) : l : null, [l]), k = s.useRef(null), R = s.useRef(null), B = s.useRef({ value: D, onChange: H, isIOS: typeof window < "u" && ((x = (w = window == null ? void 0 : window.CSS) == null ? void 0 : w.supports) == null ? void 0 : x.call(w, "-webkit-touch-callout", "none")) }), A = s.useRef({ prev: [(E = k.current) == null ? void 0 : E.selectionStart, (S = k.current) == null ? void 0 : S.selectionEnd, (C = k.current) == null ? void 0 : C.selectionDirection] });
|
|
63
63
|
s.useImperativeHandle(t, () => k.current, []), s.useEffect(() => {
|
|
@@ -71,8 +71,8 @@ var Yr = s.createContext({}), Xr = s.forwardRef((e, t) => {
|
|
|
71
71
|
}
|
|
72
72
|
let G = _.selectionStart, ae = _.selectionEnd, bt = _.selectionDirection, ce = _.maxLength, Ie = _.value, xe = A.current.prev, Te = -1, Re = -1, Le;
|
|
73
73
|
if (Ie.length !== 0 && G !== null && ae !== null) {
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
74
|
+
let pi = G === ae, mi = G === Ie.length && Ie.length < ce;
|
|
75
|
+
if (pi && !mi) {
|
|
76
76
|
let Fe = G;
|
|
77
77
|
if (Fe === 0) Te = 0, Re = 1, Le = "forward";
|
|
78
78
|
else if (Fe === ce) Te = Fe - 1, Re = Fe, Le = "backward";
|
|
@@ -80,16 +80,16 @@ var Yr = s.createContext({}), Xr = s.forwardRef((e, t) => {
|
|
|
80
80
|
let on = 0;
|
|
81
81
|
if (xe[0] !== null && xe[1] !== null) {
|
|
82
82
|
Le = Fe < xe[1] ? "backward" : "forward";
|
|
83
|
-
let
|
|
84
|
-
Le === "backward" && !
|
|
83
|
+
let hi = xe[0] === xe[1] && xe[0] < ce;
|
|
84
|
+
Le === "backward" && !hi && (on = -1);
|
|
85
85
|
}
|
|
86
86
|
Te = on + Fe, Re = on + Fe + 1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
Te !== -1 && Re !== -1 && Te !== Re && k.current.setSelectionRange(Te, Re, Le);
|
|
90
90
|
}
|
|
91
|
-
let cr = Te !== -1 ? Te : G, dr = Re !== -1 ? Re : ae,
|
|
92
|
-
te(cr), J(dr), A.current.prev = [cr, dr,
|
|
91
|
+
let cr = Te !== -1 ? Te : G, dr = Re !== -1 ? Re : ae, fi = Le ?? bt;
|
|
92
|
+
te(cr), J(dr), A.current.prev = [cr, dr, fi];
|
|
93
93
|
}
|
|
94
94
|
if (document.addEventListener("selectionchange", Z, { capture: !0 }), Z(), document.activeElement === _ && Y(!0), !document.getElementById("input-otp-style")) {
|
|
95
95
|
let G = document.createElement("style");
|
|
@@ -109,7 +109,7 @@ var Yr = s.createContext({}), Xr = s.forwardRef((e, t) => {
|
|
|
109
109
|
}, []);
|
|
110
110
|
let [j, O] = s.useState(!1), [L, Y] = s.useState(!1), [q, te] = s.useState(null), [Q, J] = s.useState(null);
|
|
111
111
|
s.useEffect(() => {
|
|
112
|
-
|
|
112
|
+
Pi(() => {
|
|
113
113
|
var _, F, Z, ne;
|
|
114
114
|
(_ = k.current) == null || _.dispatchEvent(new Event("input"));
|
|
115
115
|
let re = (F = k.current) == null ? void 0 : F.selectionStart, G = (Z = k.current) == null ? void 0 : Z.selectionEnd, ae = (ne = k.current) == null ? void 0 : ne.selectionDirection;
|
|
@@ -118,7 +118,7 @@ var Yr = s.createContext({}), Xr = s.forwardRef((e, t) => {
|
|
|
118
118
|
}, [D, L]), s.useEffect(() => {
|
|
119
119
|
z !== void 0 && D !== z && z.length < a && D.length === a && (f == null || f(D));
|
|
120
120
|
}, [a, f, z, D]);
|
|
121
|
-
let oe =
|
|
121
|
+
let oe = Di({ containerRef: R, inputRef: k, pushPasswordManagerStrategy: m, isFocused: L }), Se = s.useCallback((_) => {
|
|
122
122
|
let F = _.currentTarget.value.slice(0, a);
|
|
123
123
|
if (F.length > 0 && W && !W.test(F)) {
|
|
124
124
|
_.preventDefault();
|
|
@@ -143,7 +143,7 @@ var Yr = s.createContext({}), Xr = s.forwardRef((e, t) => {
|
|
|
143
143
|
ne.value = ce, H(ce);
|
|
144
144
|
let Ie = Math.min(ce.length, a - 1), xe = ce.length;
|
|
145
145
|
ne.setSelectionRange(Ie, xe), te(Ie), J(xe);
|
|
146
|
-
}, [a, H, W, D]), gt = s.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), at = s.useMemo(() => ({ position: "absolute", inset: 0, width: oe.willPushPWMBadge ? `calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: oe.willPushPWMBadge ? `inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [oe.PWM_BADGE_SPACE_WIDTH, oe.willPushPWMBadge, i]), vt = s.useMemo(() => s.createElement("input", Ti(
|
|
146
|
+
}, [a, H, W, D]), gt = s.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), at = s.useMemo(() => ({ position: "absolute", inset: 0, width: oe.willPushPWMBadge ? `calc(100% + ${oe.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: oe.willPushPWMBadge ? `inset(0 ${oe.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: i, opacity: "1", color: "transparent", pointerEvents: "all", background: "transparent", caretColor: "transparent", border: "0 solid transparent", outline: "0 solid transparent", boxShadow: "none", lineHeight: "1", letterSpacing: "-.5em", fontSize: "var(--root-height)", fontFamily: "monospace", fontVariantNumeric: "tabular-nums" }), [oe.PWM_BADGE_SPACE_WIDTH, oe.willPushPWMBadge, i]), vt = s.useMemo(() => s.createElement("input", Ri(Ti({ autoComplete: b.autoComplete || "one-time-code" }, b), { "data-input-otp": !0, "data-input-otp-placeholder-shown": D.length === 0 || void 0, "data-input-otp-mss": q, "data-input-otp-mse": Q, inputMode: c, pattern: W == null ? void 0 : W.source, "aria-placeholder": d, style: at, maxLength: a, value: D, ref: k, onPaste: (_) => {
|
|
147
147
|
var F;
|
|
148
148
|
ot(_), (F = b.onPaste) == null || F.call(b, _);
|
|
149
149
|
}, onChange: Se, onMouseOver: (_) => {
|
|
@@ -162,10 +162,10 @@ var Yr = s.createContext({}), Xr = 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 = d == null ? void 0 : d[F]) != null ? Z : null;
|
|
164
164
|
return { char: re, placeholderChar: G, isActive: ne, hasFakeCaret: ne && re === null };
|
|
165
|
-
}), isFocused: L, isHovering: !b.disabled && j }), [L, j, a, Q, q, b.disabled, D]), _e = s.useMemo(() => p ? p(je) : s.createElement(
|
|
165
|
+
}), isFocused: L, isHovering: !b.disabled && j }), [L, j, a, Q, q, b.disabled, D]), _e = s.useMemo(() => p ? p(je) : s.createElement(Xr.Provider, { value: je }, h), [h, je, p]);
|
|
166
166
|
return s.createElement(s.Fragment, null, y !== null && s.createElement("noscript", null, s.createElement("style", null, y)), s.createElement("div", { ref: R, "data-input-otp-container": !0, style: gt, className: g }, _e, s.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, vt)));
|
|
167
167
|
});
|
|
168
|
-
|
|
168
|
+
qr.displayName = "Input";
|
|
169
169
|
function it(e, t) {
|
|
170
170
|
try {
|
|
171
171
|
e.insertRule(t);
|
|
@@ -173,7 +173,7 @@ function it(e, t) {
|
|
|
173
173
|
console.error("input-otp could not insert CSS rule:", t);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
var
|
|
176
|
+
var _i = `
|
|
177
177
|
[data-input-otp] {
|
|
178
178
|
--nojs-bg: white !important;
|
|
179
179
|
--nojs-fg: black !important;
|
|
@@ -199,14 +199,14 @@ var Di = `
|
|
|
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
|
|
202
|
+
const Ii = (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
|
*
|
|
206
206
|
* This source code is licensed under the ISC license.
|
|
207
207
|
* See the LICENSE file in the root directory of this source tree.
|
|
208
208
|
*/
|
|
209
|
-
var
|
|
209
|
+
var Li = {
|
|
210
210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
211
211
|
width: 24,
|
|
212
212
|
height: 24,
|
|
@@ -223,7 +223,7 @@ var Ii = {
|
|
|
223
223
|
* This source code is licensed under the ISC license.
|
|
224
224
|
* See the LICENSE file in the root directory of this source tree.
|
|
225
225
|
*/
|
|
226
|
-
const
|
|
226
|
+
const Fi = jr(
|
|
227
227
|
({
|
|
228
228
|
color: e = "currentColor",
|
|
229
229
|
size: t = 24,
|
|
@@ -237,12 +237,12 @@ const Li = jr(
|
|
|
237
237
|
"svg",
|
|
238
238
|
{
|
|
239
239
|
ref: d,
|
|
240
|
-
...
|
|
240
|
+
...Li,
|
|
241
241
|
width: t,
|
|
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
|
...l
|
|
247
247
|
},
|
|
248
248
|
[
|
|
@@ -259,10 +259,10 @@ const Li = jr(
|
|
|
259
259
|
*/
|
|
260
260
|
const pe = (e, t) => {
|
|
261
261
|
const n = jr(
|
|
262
|
-
({ className: r, ...o }, a) => wn(
|
|
262
|
+
({ className: r, ...o }, a) => wn(Fi, {
|
|
263
263
|
ref: a,
|
|
264
264
|
iconNode: t,
|
|
265
|
-
className:
|
|
265
|
+
className: Zr(`lucide-${Ii(e)}`, r),
|
|
266
266
|
...o
|
|
267
267
|
})
|
|
268
268
|
);
|
|
@@ -274,91 +274,91 @@ const pe = (e, t) => {
|
|
|
274
274
|
* This source code is licensed under the ISC license.
|
|
275
275
|
* See the LICENSE file in the root directory of this source tree.
|
|
276
276
|
*/
|
|
277
|
-
const
|
|
277
|
+
const $i = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], zi = pe("Check", $i);
|
|
278
278
|
/**
|
|
279
279
|
* @license lucide-react v0.479.0 - ISC
|
|
280
280
|
*
|
|
281
281
|
* This source code is licensed under the ISC license.
|
|
282
282
|
* See the LICENSE file in the root directory of this source tree.
|
|
283
283
|
*/
|
|
284
|
-
const
|
|
284
|
+
const Wi = [
|
|
285
285
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
286
286
|
["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
|
|
287
|
-
],
|
|
287
|
+
], Bi = pe("Copy", Wi);
|
|
288
288
|
/**
|
|
289
289
|
* @license lucide-react v0.479.0 - ISC
|
|
290
290
|
*
|
|
291
291
|
* This source code is licensed under the ISC license.
|
|
292
292
|
* See the LICENSE file in the root directory of this source tree.
|
|
293
293
|
*/
|
|
294
|
-
const
|
|
294
|
+
const Vi = [
|
|
295
295
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
296
296
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
297
297
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
298
|
-
],
|
|
298
|
+
], Hi = pe("Download", Vi);
|
|
299
299
|
/**
|
|
300
300
|
* @license lucide-react v0.479.0 - ISC
|
|
301
301
|
*
|
|
302
302
|
* This source code is licensed under the ISC license.
|
|
303
303
|
* See the LICENSE file in the root directory of this source tree.
|
|
304
304
|
*/
|
|
305
|
-
const
|
|
305
|
+
const ji = [
|
|
306
306
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
307
307
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
308
308
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
309
|
-
],
|
|
309
|
+
], Gi = pe("LogOut", ji);
|
|
310
310
|
/**
|
|
311
311
|
* @license lucide-react v0.479.0 - ISC
|
|
312
312
|
*
|
|
313
313
|
* This source code is licensed under the ISC license.
|
|
314
314
|
* See the LICENSE file in the root directory of this source tree.
|
|
315
315
|
*/
|
|
316
|
-
const
|
|
316
|
+
const Ui = [
|
|
317
317
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
318
318
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
319
319
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
320
|
-
],
|
|
320
|
+
], Ki = pe("Menu", Ui);
|
|
321
321
|
/**
|
|
322
322
|
* @license lucide-react v0.479.0 - ISC
|
|
323
323
|
*
|
|
324
324
|
* This source code is licensed under the ISC license.
|
|
325
325
|
* See the LICENSE file in the root directory of this source tree.
|
|
326
326
|
*/
|
|
327
|
-
const
|
|
327
|
+
const Yi = [["path", { d: "M5 12h14", key: "1ays0h" }]], Xi = pe("Minus", Yi);
|
|
328
328
|
/**
|
|
329
329
|
* @license lucide-react v0.479.0 - ISC
|
|
330
330
|
*
|
|
331
331
|
* This source code is licensed under the ISC license.
|
|
332
332
|
* See the LICENSE file in the root directory of this source tree.
|
|
333
333
|
*/
|
|
334
|
-
const
|
|
334
|
+
const qi = [
|
|
335
335
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
336
336
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
337
|
-
],
|
|
337
|
+
], Zi = pe("PanelLeft", qi);
|
|
338
338
|
/**
|
|
339
339
|
* @license lucide-react v0.479.0 - ISC
|
|
340
340
|
*
|
|
341
341
|
* This source code is licensed under the ISC license.
|
|
342
342
|
* See the LICENSE file in the root directory of this source tree.
|
|
343
343
|
*/
|
|
344
|
-
const
|
|
344
|
+
const Qi = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], Ji = pe("Play", Qi);
|
|
345
345
|
/**
|
|
346
346
|
* @license lucide-react v0.479.0 - ISC
|
|
347
347
|
*
|
|
348
348
|
* This source code is licensed under the ISC license.
|
|
349
349
|
* See the LICENSE file in the root directory of this source tree.
|
|
350
350
|
*/
|
|
351
|
-
const
|
|
351
|
+
const es = [
|
|
352
352
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
353
353
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
354
|
-
],
|
|
354
|
+
], ts = pe("Search", es);
|
|
355
355
|
/**
|
|
356
356
|
* @license lucide-react v0.479.0 - ISC
|
|
357
357
|
*
|
|
358
358
|
* This source code is licensed under the ISC license.
|
|
359
359
|
* See the LICENSE file in the root directory of this source tree.
|
|
360
360
|
*/
|
|
361
|
-
const
|
|
361
|
+
const ns = [
|
|
362
362
|
[
|
|
363
363
|
"path",
|
|
364
364
|
{
|
|
@@ -368,50 +368,50 @@ const ts = [
|
|
|
368
368
|
],
|
|
369
369
|
["path", { d: "M12 9v4", key: "juzpu7" }],
|
|
370
370
|
["path", { d: "M12 17h.01", key: "p32p05" }]
|
|
371
|
-
],
|
|
371
|
+
], rs = pe("TriangleAlert", ns);
|
|
372
372
|
/**
|
|
373
373
|
* @license lucide-react v0.479.0 - ISC
|
|
374
374
|
*
|
|
375
375
|
* This source code is licensed under the ISC license.
|
|
376
376
|
* See the LICENSE file in the root directory of this source tree.
|
|
377
377
|
*/
|
|
378
|
-
const
|
|
378
|
+
const os = [
|
|
379
379
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
380
380
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
381
|
-
], Fn = pe("X",
|
|
382
|
-
function
|
|
381
|
+
], Fn = pe("X", os);
|
|
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
|
-
const $n = "-",
|
|
396
|
-
const t =
|
|
395
|
+
const $n = "-", as = (e) => {
|
|
396
|
+
const t = ss(e), {
|
|
397
397
|
conflictingClassGroups: n,
|
|
398
398
|
conflictingClassGroupModifiers: r
|
|
399
399
|
} = e;
|
|
400
400
|
return {
|
|
401
401
|
getClassGroupId: (i) => {
|
|
402
402
|
const l = i.split($n);
|
|
403
|
-
return l[0] === "" && l.length !== 1 && l.shift(),
|
|
403
|
+
return l[0] === "" && l.length !== 1 && l.shift(), eo(l, t) || is(i);
|
|
404
404
|
},
|
|
405
405
|
getConflictingClassGroupIds: (i, l) => {
|
|
406
406
|
const d = n[i] || [];
|
|
407
407
|
return l && r[i] ? [...d, ...r[i]] : d;
|
|
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)
|
|
@@ -420,13 +420,13 @@ const $n = "-", os = (e) => {
|
|
|
420
420
|
return (i = t.validators.find(({
|
|
421
421
|
validator: l
|
|
422
422
|
}) => l(a))) == null ? void 0 : i.classGroupId;
|
|
423
|
-
}, fr = /^\[(.+)\]$/,
|
|
423
|
+
}, fr = /^\[(.+)\]$/, is = (e) => {
|
|
424
424
|
if (fr.test(e)) {
|
|
425
425
|
const t = fr.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
426
426
|
if (n)
|
|
427
427
|
return "arbitrary.." + n;
|
|
428
428
|
}
|
|
429
|
-
},
|
|
429
|
+
}, ss = (e) => {
|
|
430
430
|
const {
|
|
431
431
|
theme: t,
|
|
432
432
|
classGroups: n
|
|
@@ -445,7 +445,7 @@ const $n = "-", os = (e) => {
|
|
|
445
445
|
return;
|
|
446
446
|
}
|
|
447
447
|
if (typeof o == "function") {
|
|
448
|
-
if (
|
|
448
|
+
if (ls(o)) {
|
|
449
449
|
xn(o(r), t, n, r);
|
|
450
450
|
return;
|
|
451
451
|
}
|
|
@@ -467,7 +467,7 @@ const $n = "-", os = (e) => {
|
|
|
467
467
|
validators: []
|
|
468
468
|
}), n = n.nextPart.get(r);
|
|
469
469
|
}), n;
|
|
470
|
-
},
|
|
470
|
+
}, ls = (e) => e.isThemeGetter, cs = (e) => {
|
|
471
471
|
if (e < 1)
|
|
472
472
|
return {
|
|
473
473
|
get: () => {
|
|
@@ -491,7 +491,7 @@ const $n = "-", os = (e) => {
|
|
|
491
491
|
n.has(a) ? n.set(a, i) : o(a, i);
|
|
492
492
|
}
|
|
493
493
|
};
|
|
494
|
-
}, En = "!", Cn = ":",
|
|
494
|
+
}, En = "!", Cn = ":", ds = Cn.length, us = (e) => {
|
|
495
495
|
const {
|
|
496
496
|
prefix: t,
|
|
497
497
|
experimentalParseClassName: n
|
|
@@ -503,7 +503,7 @@ const $n = "-", os = (e) => {
|
|
|
503
503
|
let p = o[y];
|
|
504
504
|
if (i === 0 && l === 0) {
|
|
505
505
|
if (p === Cn) {
|
|
506
|
-
a.push(o.slice(d, y)), d = y +
|
|
506
|
+
a.push(o.slice(d, y)), d = y + ds;
|
|
507
507
|
continue;
|
|
508
508
|
}
|
|
509
509
|
if (p === "/") {
|
|
@@ -513,7 +513,7 @@ const $n = "-", os = (e) => {
|
|
|
513
513
|
}
|
|
514
514
|
p === "[" ? i++ : p === "]" ? i-- : p === "(" ? l++ : p === ")" && l--;
|
|
515
515
|
}
|
|
516
|
-
const f = a.length === 0 ? o : o.substring(d), m =
|
|
516
|
+
const f = a.length === 0 ? o : o.substring(d), m = fs(f), v = m !== f, g = c && c > d ? c - d : void 0;
|
|
517
517
|
return {
|
|
518
518
|
modifiers: a,
|
|
519
519
|
hasImportantModifier: v,
|
|
@@ -539,7 +539,7 @@ const $n = "-", os = (e) => {
|
|
|
539
539
|
});
|
|
540
540
|
}
|
|
541
541
|
return r;
|
|
542
|
-
},
|
|
542
|
+
}, fs = (e) => e.endsWith(En) ? e.substring(0, e.length - 1) : e.startsWith(En) ? e.substring(1) : e, ps = (e) => {
|
|
543
543
|
const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
|
|
544
544
|
return (r) => {
|
|
545
545
|
if (r.length <= 1)
|
|
@@ -550,18 +550,18 @@ const $n = "-", os = (e) => {
|
|
|
550
550
|
i[0] === "[" || t[i] ? (o.push(...a.sort(), i), a = []) : a.push(i);
|
|
551
551
|
}), o.push(...a.sort()), o;
|
|
552
552
|
};
|
|
553
|
-
},
|
|
554
|
-
cache:
|
|
555
|
-
parseClassName:
|
|
556
|
-
sortModifiers:
|
|
557
|
-
...
|
|
558
|
-
}),
|
|
553
|
+
}, ms = (e) => ({
|
|
554
|
+
cache: cs(e.cacheSize),
|
|
555
|
+
parseClassName: us(e),
|
|
556
|
+
sortModifiers: ps(e),
|
|
557
|
+
...as(e)
|
|
558
|
+
}), hs = /\s+/, gs = (e, t) => {
|
|
559
559
|
const {
|
|
560
560
|
parseClassName: n,
|
|
561
561
|
getClassGroupId: r,
|
|
562
562
|
getConflictingClassGroupIds: o,
|
|
563
563
|
sortModifiers: a
|
|
564
|
-
} = t, i = [], l = e.trim().split(
|
|
564
|
+
} = t, i = [], l = e.trim().split(hs);
|
|
565
565
|
let d = "";
|
|
566
566
|
for (let c = l.length - 1; c >= 0; c -= 1) {
|
|
567
567
|
const f = l[c], {
|
|
@@ -600,52 +600,52 @@ const $n = "-", os = (e) => {
|
|
|
600
600
|
}
|
|
601
601
|
return d;
|
|
602
602
|
};
|
|
603
|
-
function
|
|
603
|
+
function vs() {
|
|
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
|
-
function
|
|
617
|
+
function bs(e, ...t) {
|
|
618
618
|
let n, r, o, a = i;
|
|
619
619
|
function i(d) {
|
|
620
620
|
const c = t.reduce((f, m) => m(f), e());
|
|
621
|
-
return n =
|
|
621
|
+
return n = ms(c), r = n.cache.get, o = n.cache.set, a = l, l(d);
|
|
622
622
|
}
|
|
623
623
|
function l(d) {
|
|
624
624
|
const c = r(d);
|
|
625
625
|
if (c)
|
|
626
626
|
return c;
|
|
627
|
-
const f =
|
|
627
|
+
const f = gs(d, n);
|
|
628
628
|
return o(d, f), f;
|
|
629
629
|
}
|
|
630
630
|
return function() {
|
|
631
|
-
return a(
|
|
631
|
+
return a(vs.apply(null, arguments));
|
|
632
632
|
};
|
|
633
633
|
}
|
|
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, ys = /^\d+\/\d+$/, ws = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, xs = /\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$/, Es = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Cs = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ss = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Ge = (e) => ys.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), ze = (e) => !!e && Number.isInteger(Number(e)), mr = (e) => e.endsWith("%") && V(e.slice(0, -1)), Ne = (e) => ws.test(e), Ts = () => !0, Rs = (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
|
-
|
|
642
|
-
), zn = () => !1,
|
|
643
|
-
const r =
|
|
641
|
+
xs.test(e) && !Es.test(e)
|
|
642
|
+
), zn = () => !1, Ns = (e) => Cs.test(e), Ps = (e) => Ss.test(e), As = (e) => !N(e) && !P(e), Os = (e) => et(e, io, zn), N = (e) => no.test(e), We = (e) => et(e, so, Rs), an = (e) => et(e, Bs, V), Ms = (e) => et(e, oo, zn), ks = (e) => et(e, ao, Ps), Ds = (e) => et(e, zn, Ns), P = (e) => ro.test(e), yt = (e) => tt(e, so), _s = (e) => tt(e, Vs), Is = (e) => tt(e, oo), Ls = (e) => tt(e, io), Fs = (e) => tt(e, ao), $s = (e) => tt(e, Hs, !0), et = (e, t, n) => {
|
|
643
|
+
const r = no.exec(e);
|
|
644
644
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
645
645
|
}, tt = (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", zs = /* @__PURE__ */ new Set(["image", "url"]), ao = (e) => zs.has(e), Ws = /* @__PURE__ */ new Set(["length", "size", "percentage"]), io = (e) => Ws.has(e), so = (e) => e === "length", Bs = (e) => e === "number", Vs = (e) => e === "family-name", Hs = (e) => e === "shadow", js = () => {
|
|
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"), l = X("container"), d = X("spacing"), c = X("radius"), f = X("shadow"), m = X("inset-shadow"), v = X("drop-shadow"), g = X("blur"), y = X("perspective"), p = X("aspect"), h = X("ease"), b = 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"], E = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], C = () => [P, N, d], T = () => [Ge, "full", "auto", ...C()], $ = () => [ze, "none", "subgrid", P, N], D = () => ["auto", {
|
|
650
650
|
span: ["full", ze, P, N]
|
|
651
651
|
}, P, N], z = () => [ze, "auto", P, N], H = () => ["auto", "min", "max", "fr", P, N], W = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], k = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...C()], B = () => [Ge, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...C()], A = () => [e, P, N], j = () => [mr, We], O = () => [
|
|
@@ -671,11 +671,11 @@ const X = (e) => {
|
|
|
671
671
|
aspect: ["video"],
|
|
672
672
|
blur: [Ne],
|
|
673
673
|
breakpoint: [Ne],
|
|
674
|
-
color: [
|
|
674
|
+
color: [Ts],
|
|
675
675
|
container: [Ne],
|
|
676
676
|
"drop-shadow": [Ne],
|
|
677
677
|
ease: ["in", "out", "in-out"],
|
|
678
|
-
font: [
|
|
678
|
+
font: [As],
|
|
679
679
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
680
680
|
"inset-shadow": [Ne],
|
|
681
681
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
@@ -1382,7 +1382,7 @@ const X = (e) => {
|
|
|
1382
1382
|
* @see https://tailwindcss.com/docs/font-family
|
|
1383
1383
|
*/
|
|
1384
1384
|
"font-family": [{
|
|
1385
|
-
font: [
|
|
1385
|
+
font: [_s, N, t]
|
|
1386
1386
|
}],
|
|
1387
1387
|
/**
|
|
1388
1388
|
* Font Variant Numeric
|
|
@@ -1603,7 +1603,7 @@ const X = (e) => {
|
|
|
1603
1603
|
* @see https://tailwindcss.com/docs/background-position
|
|
1604
1604
|
*/
|
|
1605
1605
|
"bg-position": [{
|
|
1606
|
-
bg: [...x(),
|
|
1606
|
+
bg: [...x(), Is, Ms]
|
|
1607
1607
|
}],
|
|
1608
1608
|
/**
|
|
1609
1609
|
* Background Repeat
|
|
@@ -1619,7 +1619,7 @@ const X = (e) => {
|
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/background-size
|
|
1620
1620
|
*/
|
|
1621
1621
|
"bg-size": [{
|
|
1622
|
-
bg: ["auto", "cover", "contain",
|
|
1622
|
+
bg: ["auto", "cover", "contain", Ls, Os]
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Background Image
|
|
@@ -1632,7 +1632,7 @@ const X = (e) => {
|
|
|
1632
1632
|
}, ze, P, N],
|
|
1633
1633
|
radial: ["", P, N],
|
|
1634
1634
|
conic: [ze, P, N]
|
|
1635
|
-
},
|
|
1635
|
+
}, Fs, ks]
|
|
1636
1636
|
}],
|
|
1637
1637
|
/**
|
|
1638
1638
|
* Background Color
|
|
@@ -2003,8 +2003,8 @@ const X = (e) => {
|
|
|
2003
2003
|
"",
|
|
2004
2004
|
"none",
|
|
2005
2005
|
f,
|
|
2006
|
-
|
|
2007
|
-
|
|
2006
|
+
$s,
|
|
2007
|
+
Ds
|
|
2008
2008
|
]
|
|
2009
2009
|
}],
|
|
2010
2010
|
/**
|
|
@@ -2864,17 +2864,17 @@ const X = (e) => {
|
|
|
2864
2864
|
},
|
|
2865
2865
|
orderSensitiveModifiers: ["before", "after", "placeholder", "file", "marker", "selection", "first-line", "first-letter", "backdrop", "*", "**"]
|
|
2866
2866
|
};
|
|
2867
|
-
},
|
|
2867
|
+
}, Gs = /* @__PURE__ */ bs(js);
|
|
2868
2868
|
function M(...e) {
|
|
2869
|
-
return
|
|
2869
|
+
return Gs(Jr(e));
|
|
2870
2870
|
}
|
|
2871
|
-
function
|
|
2871
|
+
function uf({
|
|
2872
2872
|
className: e,
|
|
2873
2873
|
containerClassName: t,
|
|
2874
2874
|
...n
|
|
2875
2875
|
}) {
|
|
2876
2876
|
return /* @__PURE__ */ u(
|
|
2877
|
-
|
|
2877
|
+
qr,
|
|
2878
2878
|
{
|
|
2879
2879
|
"data-slot": "input-otp",
|
|
2880
2880
|
containerClassName: M(
|
|
@@ -2886,7 +2886,7 @@ function df({
|
|
|
2886
2886
|
}
|
|
2887
2887
|
);
|
|
2888
2888
|
}
|
|
2889
|
-
function
|
|
2889
|
+
function ff({ className: e, ...t }) {
|
|
2890
2890
|
return /* @__PURE__ */ u(
|
|
2891
2891
|
"div",
|
|
2892
2892
|
{
|
|
@@ -2896,12 +2896,12 @@ function uf({ className: e, ...t }) {
|
|
|
2896
2896
|
}
|
|
2897
2897
|
);
|
|
2898
2898
|
}
|
|
2899
|
-
function
|
|
2899
|
+
function pf({
|
|
2900
2900
|
index: e,
|
|
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
|
{
|
|
@@ -2919,8 +2919,8 @@ function ff({
|
|
|
2919
2919
|
}
|
|
2920
2920
|
);
|
|
2921
2921
|
}
|
|
2922
|
-
function
|
|
2923
|
-
return /* @__PURE__ */ u("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ u(
|
|
2922
|
+
function mf({ ...e }) {
|
|
2923
|
+
return /* @__PURE__ */ u("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ u(Xi, {}) });
|
|
2924
2924
|
}
|
|
2925
2925
|
function U(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
2926
2926
|
return function(o) {
|
|
@@ -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 lo(...e) {
|
|
2937
2937
|
return (t) => {
|
|
2938
2938
|
let n = !1;
|
|
2939
2939
|
const r = e.map((o) => {
|
|
@@ -2950,9 +2950,9 @@ function so(...e) {
|
|
|
2950
2950
|
};
|
|
2951
2951
|
}
|
|
2952
2952
|
function ee(...e) {
|
|
2953
|
-
return s.useCallback(
|
|
2953
|
+
return s.useCallback(lo(...e), e);
|
|
2954
2954
|
}
|
|
2955
|
-
function
|
|
2955
|
+
function Us(e, t) {
|
|
2956
2956
|
const n = s.createContext(t), r = (a) => {
|
|
2957
2957
|
const { children: i, ...l } = a, d = s.useMemo(() => l, Object.values(l));
|
|
2958
2958
|
return /* @__PURE__ */ u(n.Provider, { value: d, children: i });
|
|
@@ -2996,9 +2996,9 @@ function pt(e, t = []) {
|
|
|
2996
2996
|
);
|
|
2997
2997
|
};
|
|
2998
2998
|
};
|
|
2999
|
-
return o.scopeName = e, [r,
|
|
2999
|
+
return o.scopeName = e, [r, Ks(o, ...t)];
|
|
3000
3000
|
}
|
|
3001
|
-
function
|
|
3001
|
+
function Ks(...e) {
|
|
3002
3002
|
const t = e[0];
|
|
3003
3003
|
if (e.length === 1) return t;
|
|
3004
3004
|
const n = () => {
|
|
@@ -3017,12 +3017,12 @@ function Us(...e) {
|
|
|
3017
3017
|
return n.scopeName = t.scopeName, n;
|
|
3018
3018
|
}
|
|
3019
3019
|
var Oe = globalThis != null && globalThis.document ? s.useLayoutEffect : () => {
|
|
3020
|
-
},
|
|
3021
|
-
}),
|
|
3020
|
+
}, Ys = s.useId || (() => {
|
|
3021
|
+
}), Xs = 0;
|
|
3022
3022
|
function Nt(e) {
|
|
3023
|
-
const [t, n] = s.useState(
|
|
3023
|
+
const [t, n] = s.useState(Ys());
|
|
3024
3024
|
return Oe(() => {
|
|
3025
|
-
n((r) => r ?? String(
|
|
3025
|
+
n((r) => r ?? String(Xs++));
|
|
3026
3026
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3027
3027
|
}
|
|
3028
3028
|
function le(e) {
|
|
@@ -3040,7 +3040,7 @@ function Wn({
|
|
|
3040
3040
|
onChange: n = () => {
|
|
3041
3041
|
}
|
|
3042
3042
|
}) {
|
|
3043
|
-
const [r, o] =
|
|
3043
|
+
const [r, o] = qs({ defaultProp: t, onChange: n }), a = e !== void 0, i = a ? e : r, l = le(n), d = s.useCallback(
|
|
3044
3044
|
(c) => {
|
|
3045
3045
|
if (a) {
|
|
3046
3046
|
const m = typeof c == "function" ? c(e) : c;
|
|
@@ -3052,7 +3052,7 @@ function Wn({
|
|
|
3052
3052
|
);
|
|
3053
3053
|
return [i, d];
|
|
3054
3054
|
}
|
|
3055
|
-
function
|
|
3055
|
+
function qs({
|
|
3056
3056
|
defaultProp: e,
|
|
3057
3057
|
onChange: t
|
|
3058
3058
|
}) {
|
|
@@ -3062,7 +3062,7 @@ function Xs({
|
|
|
3062
3062
|
}, [r, o, a]), n;
|
|
3063
3063
|
}
|
|
3064
3064
|
var de = s.forwardRef((e, t) => {
|
|
3065
|
-
const { children: n, ...r } = e, o = s.Children.toArray(n), a = o.find(
|
|
3065
|
+
const { children: n, ...r } = e, o = s.Children.toArray(n), a = o.find(Zs);
|
|
3066
3066
|
if (a) {
|
|
3067
3067
|
const i = a.props.children, l = o.map((d) => d === a ? s.Children.count(i) > 1 ? s.Children.only(null) : s.isValidElement(i) ? i.props.children : null : d);
|
|
3068
3068
|
return /* @__PURE__ */ u(Sn, { ...r, ref: t, children: s.isValidElement(i) ? s.cloneElement(i, void 0, l) : null });
|
|
@@ -3073,17 +3073,17 @@ de.displayName = "Slot";
|
|
|
3073
3073
|
var Sn = s.forwardRef((e, t) => {
|
|
3074
3074
|
const { children: n, ...r } = e;
|
|
3075
3075
|
if (s.isValidElement(n)) {
|
|
3076
|
-
const o =
|
|
3077
|
-
return n.type !== s.Fragment && (a.ref = t ?
|
|
3076
|
+
const o = Js(n), a = Qs(r, n.props);
|
|
3077
|
+
return n.type !== s.Fragment && (a.ref = t ? lo(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
|
|
3083
|
-
function
|
|
3084
|
-
return s.isValidElement(e) && e.type ===
|
|
3082
|
+
var co = ({ children: e }) => /* @__PURE__ */ u(Ae, { children: e });
|
|
3083
|
+
function Zs(e) {
|
|
3084
|
+
return s.isValidElement(e) && e.type === co;
|
|
3085
3085
|
}
|
|
3086
|
-
function
|
|
3086
|
+
function Qs(e, t) {
|
|
3087
3087
|
const n = { ...t };
|
|
3088
3088
|
for (const r in t) {
|
|
3089
3089
|
const o = e[r], a = t[r];
|
|
@@ -3093,12 +3093,12 @@ function Zs(e, t) {
|
|
|
3093
3093
|
}
|
|
3094
3094
|
return { ...e, ...n };
|
|
3095
3095
|
}
|
|
3096
|
-
function
|
|
3096
|
+
function Js(e) {
|
|
3097
3097
|
var r, o;
|
|
3098
3098
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3099
3099
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3100
3100
|
}
|
|
3101
|
-
var
|
|
3101
|
+
var el = [
|
|
3102
3102
|
"a",
|
|
3103
3103
|
"button",
|
|
3104
3104
|
"div",
|
|
@@ -3115,17 +3115,17 @@ var Js = [
|
|
|
3115
3115
|
"span",
|
|
3116
3116
|
"svg",
|
|
3117
3117
|
"ul"
|
|
3118
|
-
], K =
|
|
3118
|
+
], K = el.reduce((e, t) => {
|
|
3119
3119
|
const n = s.forwardRef((r, o) => {
|
|
3120
3120
|
const { asChild: a, ...i } = r, l = a ? de : t;
|
|
3121
3121
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ u(l, { ...i, ref: o });
|
|
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
|
-
function
|
|
3128
|
+
function tl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3129
3129
|
const n = le(e);
|
|
3130
3130
|
s.useEffect(() => {
|
|
3131
3131
|
const r = (o) => {
|
|
@@ -3134,7 +3134,7 @@ function el(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
|
|
3137
|
+
var nl = "DismissableLayer", Tn = "dismissableLayer.update", rl = "dismissableLayer.pointerDownOutside", ol = "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,14 +3148,14 @@ var tl = "DismissableLayer", Tn = "dismissableLayer.update", nl = "dismissableLa
|
|
|
3148
3148
|
onInteractOutside: i,
|
|
3149
3149
|
onDismiss: l,
|
|
3150
3150
|
...d
|
|
3151
|
-
} = e, c = s.useContext(
|
|
3151
|
+
} = e, c = s.useContext(fo), [f, m] = s.useState(null), v = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = s.useState({}), y = ee(t, (T) => m(T)), p = Array.from(c.layers), [h] = [...c.layersWithOutsidePointerEventsDisabled].slice(-1), b = p.indexOf(h), w = f ? p.indexOf(f) : -1, x = c.layersWithOutsidePointerEventsDisabled.size > 0, E = w >= b, S = il((T) => {
|
|
3152
3152
|
const $ = T.target, D = [...c.branches].some((z) => z.contains($));
|
|
3153
3153
|
!E || D || (o == null || o(T), i == null || i(T), T.defaultPrevented || l == null || l());
|
|
3154
|
-
}, v), C =
|
|
3154
|
+
}, v), C = sl((T) => {
|
|
3155
3155
|
const $ = T.target;
|
|
3156
3156
|
[...c.branches].some((z) => z.contains($)) || (a == null || a(T), i == null || i(T), T.defaultPrevented || l == null || l());
|
|
3157
3157
|
}, v);
|
|
3158
|
-
return
|
|
3158
|
+
return tl((T) => {
|
|
3159
3159
|
w === c.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && l && (T.preventDefault(), l()));
|
|
3160
3160
|
}, v), s.useEffect(() => {
|
|
3161
3161
|
if (f)
|
|
@@ -3186,9 +3186,9 @@ var tl = "DismissableLayer", Tn = "dismissableLayer.update", nl = "dismissableLa
|
|
|
3186
3186
|
);
|
|
3187
3187
|
}
|
|
3188
3188
|
);
|
|
3189
|
-
zt.displayName =
|
|
3190
|
-
var
|
|
3191
|
-
const n = s.useContext(
|
|
3189
|
+
zt.displayName = nl;
|
|
3190
|
+
var al = "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,16 +3197,16 @@ var ol = "DismissableLayerBranch", fo = s.forwardRef((e, t) => {
|
|
|
3197
3197
|
};
|
|
3198
3198
|
}, [n.branches]), /* @__PURE__ */ u(K.div, { ...e, ref: o });
|
|
3199
3199
|
});
|
|
3200
|
-
|
|
3201
|
-
function
|
|
3200
|
+
po.displayName = al;
|
|
3201
|
+
function il(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3202
3202
|
const n = le(e), r = s.useRef(!1), o = s.useRef(() => {
|
|
3203
3203
|
});
|
|
3204
3204
|
return s.useEffect(() => {
|
|
3205
3205
|
const a = (l) => {
|
|
3206
3206
|
if (l.target && !r.current) {
|
|
3207
3207
|
let d = function() {
|
|
3208
|
-
|
|
3209
|
-
|
|
3208
|
+
mo(
|
|
3209
|
+
rl,
|
|
3210
3210
|
n,
|
|
3211
3211
|
c,
|
|
3212
3212
|
{ discrete: !0 }
|
|
@@ -3228,11 +3228,11 @@ function al(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3228
3228
|
onPointerDownCapture: () => r.current = !0
|
|
3229
3229
|
};
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function sl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3232
3232
|
const n = le(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(ol, 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
|
|
3253
|
+
var ll = zt, cl = po, sn = "focusScope.autoFocusOnMount", ln = "focusScope.autoFocusOnUnmount", br = { bubbles: !1, cancelable: !0 }, dl = "FocusScope", ho = s.forwardRef((e, t) => {
|
|
3254
3254
|
const {
|
|
3255
3255
|
loop: n = !1,
|
|
3256
3256
|
trapped: r = !1,
|
|
@@ -3293,7 +3293,7 @@ var sl = zt, ll = fo, sn = "focusScope.autoFocusOnMount", ln = "focusScope.autoF
|
|
|
3293
3293
|
const p = document.activeElement;
|
|
3294
3294
|
if (!l.contains(p)) {
|
|
3295
3295
|
const b = new CustomEvent(sn, br);
|
|
3296
|
-
l.addEventListener(sn, c), l.dispatchEvent(b), b.defaultPrevented || (
|
|
3296
|
+
l.addEventListener(sn, c), l.dispatchEvent(b), b.defaultPrevented || (ul(gl(go(l)), { select: !0 }), document.activeElement === p && Pe(l));
|
|
3297
3297
|
}
|
|
3298
3298
|
return () => {
|
|
3299
3299
|
l.removeEventListener(sn, c), setTimeout(() => {
|
|
@@ -3308,7 +3308,7 @@ var sl = zt, ll = fo, sn = "focusScope.autoFocusOnMount", ln = "focusScope.autoF
|
|
|
3308
3308
|
if (!n && !r || g.paused) return;
|
|
3309
3309
|
const h = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, b = document.activeElement;
|
|
3310
3310
|
if (h && b) {
|
|
3311
|
-
const w = p.currentTarget, [x, E] =
|
|
3311
|
+
const w = p.currentTarget, [x, E] = fl(w);
|
|
3312
3312
|
x && E ? !p.shiftKey && b === E ? (p.preventDefault(), n && Pe(x, { select: !0 })) : p.shiftKey && b === x && (p.preventDefault(), n && Pe(E, { select: !0 })) : b === w && p.preventDefault();
|
|
3313
3313
|
}
|
|
3314
3314
|
},
|
|
@@ -3316,17 +3316,17 @@ var sl = zt, ll = fo, sn = "focusScope.autoFocusOnMount", ln = "focusScope.autoF
|
|
|
3316
3316
|
);
|
|
3317
3317
|
return /* @__PURE__ */ u(K.div, { tabIndex: -1, ...i, ref: v, onKeyDown: y });
|
|
3318
3318
|
});
|
|
3319
|
-
|
|
3320
|
-
function
|
|
3319
|
+
ho.displayName = dl;
|
|
3320
|
+
function ul(e, { select: t = !1 } = {}) {
|
|
3321
3321
|
const n = document.activeElement;
|
|
3322
3322
|
for (const r of e)
|
|
3323
3323
|
if (Pe(r, { select: t }), document.activeElement !== n) return;
|
|
3324
3324
|
}
|
|
3325
|
-
function
|
|
3326
|
-
const t =
|
|
3325
|
+
function fl(e) {
|
|
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";
|
|
@@ -3338,9 +3338,9 @@ function ho(e) {
|
|
|
3338
3338
|
}
|
|
3339
3339
|
function yr(e, t) {
|
|
3340
3340
|
for (const n of e)
|
|
3341
|
-
if (!
|
|
3341
|
+
if (!pl(n, { upTo: t })) return n;
|
|
3342
3342
|
}
|
|
3343
|
-
function
|
|
3343
|
+
function pl(e, { upTo: t }) {
|
|
3344
3344
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
3345
3345
|
for (; e; ) {
|
|
3346
3346
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -3349,17 +3349,17 @@ function fl(e, { upTo: t }) {
|
|
|
3349
3349
|
}
|
|
3350
3350
|
return !1;
|
|
3351
3351
|
}
|
|
3352
|
-
function
|
|
3352
|
+
function ml(e) {
|
|
3353
3353
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3354
3354
|
}
|
|
3355
3355
|
function Pe(e, { select: t = !1 } = {}) {
|
|
3356
3356
|
if (e && e.focus) {
|
|
3357
3357
|
const n = document.activeElement;
|
|
3358
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
3358
|
+
e.focus({ preventScroll: !0 }), e !== n && ml(e) && t && e.select();
|
|
3359
3359
|
}
|
|
3360
3360
|
}
|
|
3361
|
-
var wr =
|
|
3362
|
-
function
|
|
3361
|
+
var wr = hl();
|
|
3362
|
+
function hl() {
|
|
3363
3363
|
let e = [];
|
|
3364
3364
|
return {
|
|
3365
3365
|
add(t) {
|
|
@@ -3376,27 +3376,27 @@ function xr(e, t) {
|
|
|
3376
3376
|
const n = [...e], r = n.indexOf(t);
|
|
3377
3377
|
return r !== -1 && n.splice(r, 1), n;
|
|
3378
3378
|
}
|
|
3379
|
-
function
|
|
3379
|
+
function gl(e) {
|
|
3380
3380
|
return e.filter((t) => t.tagName !== "A");
|
|
3381
3381
|
}
|
|
3382
|
-
var
|
|
3382
|
+
var vl = "Portal", Wt = s.forwardRef((e, t) => {
|
|
3383
3383
|
var l;
|
|
3384
3384
|
const { container: n, ...r } = e, [o, a] = s.useState(!1);
|
|
3385
3385
|
Oe(() => a(!0), []);
|
|
3386
3386
|
const i = n || o && ((l = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : l.body);
|
|
3387
3387
|
return i ? vi.createPortal(/* @__PURE__ */ u(K.div, { ...r, ref: t }), i) : null;
|
|
3388
3388
|
});
|
|
3389
|
-
Wt.displayName =
|
|
3390
|
-
function
|
|
3389
|
+
Wt.displayName = vl;
|
|
3390
|
+
function bl(e, t) {
|
|
3391
3391
|
return s.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3392
3392
|
}
|
|
3393
3393
|
var He = (e) => {
|
|
3394
|
-
const { present: t, children: n } = e, r =
|
|
3394
|
+
const { present: t, children: n } = e, r = yl(t), o = typeof n == "function" ? n({ present: r.isPresent }) : s.Children.only(n), a = ee(r.ref, wl(o));
|
|
3395
3395
|
return typeof n == "function" || r.isPresent ? s.cloneElement(o, { ref: a }) : null;
|
|
3396
3396
|
};
|
|
3397
3397
|
He.displayName = "Presence";
|
|
3398
|
-
function
|
|
3399
|
-
const [t, n] = s.useState(), r = s.useRef({}), o = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [l, d] =
|
|
3398
|
+
function yl(e) {
|
|
3399
|
+
const [t, n] = s.useState(), r = s.useRef({}), o = s.useRef(e), a = s.useRef("none"), i = e ? "mounted" : "unmounted", [l, d] = bl(i, {
|
|
3400
3400
|
mounted: {
|
|
3401
3401
|
UNMOUNT: "unmounted",
|
|
3402
3402
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -3447,13 +3447,13 @@ function bl(e) {
|
|
|
3447
3447
|
function wt(e) {
|
|
3448
3448
|
return (e == null ? void 0 : e.animationName) || "none";
|
|
3449
3449
|
}
|
|
3450
|
-
function
|
|
3450
|
+
function wl(e) {
|
|
3451
3451
|
var r, o;
|
|
3452
3452
|
let t = (r = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : r.get, n = t && "isReactWarning" in t && t.isReactWarning;
|
|
3453
3453
|
return n ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, n = t && "isReactWarning" in t && t.isReactWarning, n ? e.props.ref : e.props.ref || e.ref);
|
|
3454
3454
|
}
|
|
3455
3455
|
var cn = 0;
|
|
3456
|
-
function
|
|
3456
|
+
function xl() {
|
|
3457
3457
|
s.useEffect(() => {
|
|
3458
3458
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3459
3459
|
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Er()), document.body.insertAdjacentElement("beforeend", e[1] ?? Er()), cn++, () => {
|
|
@@ -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")
|
|
@@ -3482,16 +3482,16 @@ function go(e, t) {
|
|
|
3482
3482
|
t.indexOf(r[o]) < 0 && Object.prototype.propertyIsEnumerable.call(e, r[o]) && (n[r[o]] = e[r[o]]);
|
|
3483
3483
|
return n;
|
|
3484
3484
|
}
|
|
3485
|
-
function
|
|
3485
|
+
function El(e, t, n) {
|
|
3486
3486
|
if (n || arguments.length === 2) for (var r = 0, o = t.length, a; r < o; r++)
|
|
3487
3487
|
(a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
|
|
3488
3488
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
3489
3489
|
}
|
|
3490
|
-
var Pt = "right-scroll-bar-position", At = "width-before-scroll-bar",
|
|
3490
|
+
var Pt = "right-scroll-bar-position", At = "width-before-scroll-bar", Cl = "with-scroll-bars-hidden", Sl = "--removed-body-scroll-bar-size";
|
|
3491
3491
|
function dn(e, t) {
|
|
3492
3492
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3493
3493
|
}
|
|
3494
|
-
function
|
|
3494
|
+
function Tl(e, t) {
|
|
3495
3495
|
var n = In(function() {
|
|
3496
3496
|
return {
|
|
3497
3497
|
// value
|
|
@@ -3512,14 +3512,14 @@ function Sl(e, t) {
|
|
|
3512
3512
|
})[0];
|
|
3513
3513
|
return n.callback = t, n.facade;
|
|
3514
3514
|
}
|
|
3515
|
-
var
|
|
3516
|
-
function
|
|
3517
|
-
var n =
|
|
3515
|
+
var Rl = typeof window < "u" ? s.useLayoutEffect : s.useEffect, Cr = /* @__PURE__ */ new WeakMap();
|
|
3516
|
+
function Nl(e, t) {
|
|
3517
|
+
var n = Tl(null, function(r) {
|
|
3518
3518
|
return e.forEach(function(o) {
|
|
3519
3519
|
return dn(o, r);
|
|
3520
3520
|
});
|
|
3521
3521
|
});
|
|
3522
|
-
return
|
|
3522
|
+
return Rl(function() {
|
|
3523
3523
|
var r = Cr.get(n);
|
|
3524
3524
|
if (r) {
|
|
3525
3525
|
var o = new Set(r), a = new Set(e), i = n.current;
|
|
@@ -3532,11 +3532,11 @@ function Rl(e, t) {
|
|
|
3532
3532
|
Cr.set(n, e);
|
|
3533
3533
|
}, [e]), n;
|
|
3534
3534
|
}
|
|
3535
|
-
function
|
|
3535
|
+
function Pl(e) {
|
|
3536
3536
|
return e;
|
|
3537
3537
|
}
|
|
3538
|
-
function
|
|
3539
|
-
t === void 0 && (t =
|
|
3538
|
+
function Al(e, t) {
|
|
3539
|
+
t === void 0 && (t = Pl);
|
|
3540
3540
|
var n = [], r = !1, o = {
|
|
3541
3541
|
read: function() {
|
|
3542
3542
|
if (r)
|
|
@@ -3590,13 +3590,13 @@ function Pl(e, t) {
|
|
|
3590
3590
|
};
|
|
3591
3591
|
return o;
|
|
3592
3592
|
}
|
|
3593
|
-
function
|
|
3593
|
+
function Ol(e) {
|
|
3594
3594
|
e === void 0 && (e = {});
|
|
3595
|
-
var t =
|
|
3595
|
+
var t = Al(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 vo = function(e) {
|
|
|
3604
3604
|
throw new Error("Sidecar medium not found");
|
|
3605
3605
|
return s.createElement(r, ge({}, n));
|
|
3606
3606
|
};
|
|
3607
|
-
|
|
3608
|
-
function
|
|
3609
|
-
return e.useMedium(t),
|
|
3607
|
+
bo.isSideCarExport = !0;
|
|
3608
|
+
function Ml(e, t) {
|
|
3609
|
+
return e.useMedium(t), bo;
|
|
3610
3610
|
}
|
|
3611
|
-
var
|
|
3611
|
+
var yo = Ol(), 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, l = e.children, d = e.className, c = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, g = e.noIsolation, y = e.inert, p = e.allowPinchZoom, h = e.as, b = h === void 0 ? "div" : h, w = e.gapMode, x =
|
|
3617
|
+
}), o = r[0], a = r[1], i = e.forwardProps, l = e.children, d = e.className, c = e.removeScrollBar, f = e.enabled, m = e.shards, v = e.sideCar, g = e.noIsolation, y = e.inert, p = e.allowPinchZoom, h = e.as, b = h === void 0 ? "div" : h, w = e.gapMode, x = vo(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), E = v, S = Nl([n, t]), C = ge(ge({}, x), o);
|
|
3618
3618
|
return s.createElement(
|
|
3619
3619
|
s.Fragment,
|
|
3620
3620
|
null,
|
|
3621
|
-
f && s.createElement(E, { sideCar:
|
|
3621
|
+
f && s.createElement(E, { sideCar: yo, removeScrollBar: c, shards: m, noIsolation: g, inert: y, setCallbacks: a, allowPinchZoom: !!p, lockRef: n, gapMode: w }),
|
|
3622
3622
|
i ? s.cloneElement(s.Children.only(l), ge(ge({}, C), { ref: S })) : s.createElement(b, ge({}, C, { className: d, ref: S }), l)
|
|
3623
3623
|
);
|
|
3624
3624
|
});
|
|
@@ -3631,37 +3631,37 @@ Bt.classNames = {
|
|
|
3631
3631
|
fullWidth: At,
|
|
3632
3632
|
zeroRight: Pt
|
|
3633
3633
|
};
|
|
3634
|
-
var
|
|
3634
|
+
var kl = function() {
|
|
3635
3635
|
if (typeof __webpack_nonce__ < "u")
|
|
3636
3636
|
return __webpack_nonce__;
|
|
3637
3637
|
};
|
|
3638
|
-
function
|
|
3638
|
+
function Dl() {
|
|
3639
3639
|
if (!document)
|
|
3640
3640
|
return null;
|
|
3641
3641
|
var e = document.createElement("style");
|
|
3642
3642
|
e.type = "text/css";
|
|
3643
|
-
var t =
|
|
3643
|
+
var t = kl();
|
|
3644
3644
|
return t && e.setAttribute("nonce", t), e;
|
|
3645
3645
|
}
|
|
3646
|
-
function
|
|
3646
|
+
function _l(e, t) {
|
|
3647
3647
|
e.styleSheet ? e.styleSheet.cssText = t : e.appendChild(document.createTextNode(t));
|
|
3648
3648
|
}
|
|
3649
|
-
function
|
|
3649
|
+
function Il(e) {
|
|
3650
3650
|
var t = document.head || document.getElementsByTagName("head")[0];
|
|
3651
3651
|
t.appendChild(e);
|
|
3652
3652
|
}
|
|
3653
|
-
var
|
|
3653
|
+
var Ll = function() {
|
|
3654
3654
|
var e = 0, t = null;
|
|
3655
3655
|
return {
|
|
3656
3656
|
add: function(n) {
|
|
3657
|
-
e == 0 && (t =
|
|
3657
|
+
e == 0 && (t = Dl()) && (_l(t, n), Il(t)), e++;
|
|
3658
3658
|
},
|
|
3659
3659
|
remove: function() {
|
|
3660
3660
|
e--, !e && t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
3661
3661
|
}
|
|
3662
3662
|
};
|
|
3663
|
-
},
|
|
3664
|
-
var e =
|
|
3663
|
+
}, Fl = function() {
|
|
3664
|
+
var e = Ll();
|
|
3665
3665
|
return function(t, n) {
|
|
3666
3666
|
s.useEffect(function() {
|
|
3667
3667
|
return e.add(t), function() {
|
|
@@ -3669,36 +3669,36 @@ var Il = function() {
|
|
|
3669
3669
|
};
|
|
3670
3670
|
}, [t && n]);
|
|
3671
3671
|
};
|
|
3672
|
-
},
|
|
3673
|
-
var e =
|
|
3672
|
+
}, wo = function() {
|
|
3673
|
+
var e = Fl(), t = function(n) {
|
|
3674
3674
|
var r = n.styles, o = n.dynamic;
|
|
3675
3675
|
return e(r, o), null;
|
|
3676
3676
|
};
|
|
3677
3677
|
return t;
|
|
3678
|
-
},
|
|
3678
|
+
}, $l = {
|
|
3679
3679
|
left: 0,
|
|
3680
3680
|
top: 0,
|
|
3681
3681
|
right: 0,
|
|
3682
3682
|
gap: 0
|
|
3683
3683
|
}, fn = function(e) {
|
|
3684
3684
|
return parseInt(e || "", 10) || 0;
|
|
3685
|
-
},
|
|
3685
|
+
}, zl = function(e) {
|
|
3686
3686
|
var t = window.getComputedStyle(document.body), n = t[e === "padding" ? "paddingLeft" : "marginLeft"], r = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
3687
3687
|
return [fn(n), fn(r), fn(o)];
|
|
3688
|
-
},
|
|
3688
|
+
}, Wl = function(e) {
|
|
3689
3689
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
3690
|
-
return
|
|
3691
|
-
var t =
|
|
3690
|
+
return $l;
|
|
3691
|
+
var t = zl(e), n = document.documentElement.clientWidth, r = window.innerWidth;
|
|
3692
3692
|
return {
|
|
3693
3693
|
left: t[0],
|
|
3694
3694
|
top: t[1],
|
|
3695
3695
|
right: t[2],
|
|
3696
3696
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3697
3697
|
};
|
|
3698
|
-
},
|
|
3698
|
+
}, Bl = wo(), Xe = "data-scroll-locked", Vl = function(e, t, n, r) {
|
|
3699
3699
|
var o = e.left, a = e.top, i = e.right, l = e.gap;
|
|
3700
3700
|
return n === void 0 && (n = "margin"), `
|
|
3701
|
-
.`.concat(
|
|
3701
|
+
.`.concat(Cl, ` {
|
|
3702
3702
|
overflow: hidden `).concat(r, `;
|
|
3703
3703
|
padding-right: `).concat(l, "px ").concat(r, `;
|
|
3704
3704
|
}
|
|
@@ -3736,26 +3736,26 @@ var Il = function() {
|
|
|
3736
3736
|
}
|
|
3737
3737
|
|
|
3738
3738
|
body[`).concat(Xe, `] {
|
|
3739
|
-
`).concat(
|
|
3739
|
+
`).concat(Sl, ": ").concat(l, `px;
|
|
3740
3740
|
}
|
|
3741
3741
|
`);
|
|
3742
3742
|
}, Sr = function() {
|
|
3743
3743
|
var e = parseInt(document.body.getAttribute(Xe) || "0", 10);
|
|
3744
3744
|
return isFinite(e) ? e : 0;
|
|
3745
|
-
},
|
|
3745
|
+
}, Hl = function() {
|
|
3746
3746
|
s.useEffect(function() {
|
|
3747
3747
|
return document.body.setAttribute(Xe, (Sr() + 1).toString()), function() {
|
|
3748
3748
|
var e = Sr() - 1;
|
|
3749
3749
|
e <= 0 ? document.body.removeAttribute(Xe) : document.body.setAttribute(Xe, e.toString());
|
|
3750
3750
|
};
|
|
3751
3751
|
}, []);
|
|
3752
|
-
},
|
|
3752
|
+
}, jl = function(e) {
|
|
3753
3753
|
var t = e.noRelative, n = e.noImportant, r = e.gapMode, o = r === void 0 ? "margin" : r;
|
|
3754
|
-
|
|
3754
|
+
Hl();
|
|
3755
3755
|
var a = s.useMemo(function() {
|
|
3756
|
-
return
|
|
3756
|
+
return Wl(o);
|
|
3757
3757
|
}, [o]);
|
|
3758
|
-
return s.createElement(
|
|
3758
|
+
return s.createElement(Bl, { styles: Vl(a, !t, o, n ? "" : "!important") });
|
|
3759
3759
|
}, Rn = !1;
|
|
3760
3760
|
if (typeof window < "u")
|
|
3761
3761
|
try {
|
|
@@ -3768,59 +3768,59 @@ if (typeof window < "u")
|
|
|
3768
3768
|
} catch {
|
|
3769
3769
|
Rn = !1;
|
|
3770
3770
|
}
|
|
3771
|
-
var Ue = Rn ? { passive: !1 } : !1,
|
|
3771
|
+
var Ue = Rn ? { passive: !1 } : !1, Gl = 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);
|
|
3777
3777
|
return (
|
|
3778
3778
|
// not-not-scrollable
|
|
3779
3779
|
n[t] !== "hidden" && // contains scroll inside self
|
|
3780
|
-
!(n.overflowY === n.overflowX && !
|
|
3780
|
+
!(n.overflowY === n.overflowX && !Gl(e) && n[t] === "visible")
|
|
3781
3781
|
);
|
|
3782
|
-
}, Gl = function(e) {
|
|
3783
|
-
return wo(e, "overflowY");
|
|
3784
3782
|
}, Ul = function(e) {
|
|
3785
|
-
return
|
|
3783
|
+
return xo(e, "overflowY");
|
|
3784
|
+
}, Kl = function(e) {
|
|
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 = Eo(e, r);
|
|
3791
3791
|
if (o) {
|
|
3792
|
-
var a =
|
|
3792
|
+
var a = Co(e, r), i = a[1], l = a[2];
|
|
3793
3793
|
if (i > l)
|
|
3794
3794
|
return !0;
|
|
3795
3795
|
}
|
|
3796
3796
|
r = r.parentNode;
|
|
3797
3797
|
} while (r && r !== n.body);
|
|
3798
3798
|
return !1;
|
|
3799
|
-
},
|
|
3799
|
+
}, Yl = function(e) {
|
|
3800
3800
|
var t = e.scrollTop, n = e.scrollHeight, r = e.clientHeight;
|
|
3801
3801
|
return [
|
|
3802
3802
|
t,
|
|
3803
3803
|
n,
|
|
3804
3804
|
r
|
|
3805
3805
|
];
|
|
3806
|
-
},
|
|
3806
|
+
}, Xl = function(e) {
|
|
3807
3807
|
var t = e.scrollLeft, n = e.scrollWidth, r = e.clientWidth;
|
|
3808
3808
|
return [
|
|
3809
3809
|
t,
|
|
3810
3810
|
n,
|
|
3811
3811
|
r
|
|
3812
3812
|
];
|
|
3813
|
-
}, xo = function(e, t) {
|
|
3814
|
-
return e === "v" ? Gl(t) : Ul(t);
|
|
3815
3813
|
}, Eo = function(e, t) {
|
|
3816
|
-
return e === "v" ?
|
|
3817
|
-
},
|
|
3814
|
+
return e === "v" ? Ul(t) : Kl(t);
|
|
3815
|
+
}, Co = function(e, t) {
|
|
3816
|
+
return e === "v" ? Yl(t) : Xl(t);
|
|
3817
|
+
}, ql = function(e, t) {
|
|
3818
3818
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3819
|
-
},
|
|
3820
|
-
var a =
|
|
3819
|
+
}, Zl = function(e, t, n, r, o) {
|
|
3820
|
+
var a = ql(e, window.getComputedStyle(t).direction), i = a * r, l = n.target, d = t.contains(l), c = !1, f = i > 0, m = 0, v = 0;
|
|
3821
3821
|
do {
|
|
3822
|
-
var g =
|
|
3823
|
-
(y || b) &&
|
|
3822
|
+
var g = Co(e, l), y = g[0], p = g[1], h = g[2], b = p - h - a * y;
|
|
3823
|
+
(y || b) && Eo(e, l) && (m += b, v += y), l instanceof ShadowRoot ? l = l.host : l = l.parentNode;
|
|
3824
3824
|
} while (
|
|
3825
3825
|
// portaled content
|
|
3826
3826
|
!d && l !== document.body || // self content
|
|
@@ -3833,22 +3833,22 @@ var Ue = Rn ? { passive: !1 } : !1, jl = function(e) {
|
|
|
3833
3833
|
return [e.deltaX, e.deltaY];
|
|
3834
3834
|
}, Nr = function(e) {
|
|
3835
3835
|
return e && "current" in e ? e.current : e;
|
|
3836
|
-
},
|
|
3836
|
+
}, Ql = function(e, t) {
|
|
3837
3837
|
return e[0] === t[0] && e[1] === t[1];
|
|
3838
|
-
},
|
|
3838
|
+
}, Jl = function(e) {
|
|
3839
3839
|
return `
|
|
3840
3840
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3841
3841
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3842
3842
|
`);
|
|
3843
|
-
},
|
|
3844
|
-
function
|
|
3845
|
-
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), o = s.useState(
|
|
3843
|
+
}, ec = 0, Ke = [];
|
|
3844
|
+
function tc(e) {
|
|
3845
|
+
var t = s.useRef([]), n = s.useRef([0, 0]), r = s.useRef(), o = s.useState(ec++)[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() {
|
|
3849
3849
|
if (e.inert) {
|
|
3850
3850
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3851
|
-
var p =
|
|
3851
|
+
var p = El([e.lockRef.current], (e.shards || []).map(Nr), !0).filter(Boolean);
|
|
3852
3852
|
return p.forEach(function(h) {
|
|
3853
3853
|
return h.classList.add("allow-interactivity-".concat(o));
|
|
3854
3854
|
}), function() {
|
|
@@ -3872,12 +3872,12 @@ function ec(e) {
|
|
|
3872
3872
|
if (!r.current && "changedTouches" in p && (x || E) && (r.current = S), !S)
|
|
3873
3873
|
return !0;
|
|
3874
3874
|
var D = r.current || S;
|
|
3875
|
-
return
|
|
3875
|
+
return Zl(D, h, p, D === "h" ? x : E);
|
|
3876
3876
|
}, []), d = s.useCallback(function(p) {
|
|
3877
3877
|
var h = p;
|
|
3878
3878
|
if (!(!Ke.length || Ke[Ke.length - 1] !== a)) {
|
|
3879
3879
|
var b = "deltaY" in h ? Rr(h) : Et(h), w = t.current.filter(function(S) {
|
|
3880
|
-
return S.name === h.type && (S.target === h.target || h.target === S.shadowParent) &&
|
|
3880
|
+
return S.name === h.type && (S.target === h.target || h.target === S.shadowParent) && Ql(S.delta, b);
|
|
3881
3881
|
})[0];
|
|
3882
3882
|
if (w && w.should) {
|
|
3883
3883
|
h.cancelable && h.preventDefault();
|
|
@@ -3891,7 +3891,7 @@ function ec(e) {
|
|
|
3891
3891
|
}
|
|
3892
3892
|
}
|
|
3893
3893
|
}, []), c = s.useCallback(function(p, h, b, w) {
|
|
3894
|
-
var x = { name: p, delta: h, target: b, should: w, shadowParent:
|
|
3894
|
+
var x = { name: p, delta: h, target: b, should: w, shadowParent: nc(b) };
|
|
3895
3895
|
t.current.push(x), setTimeout(function() {
|
|
3896
3896
|
t.current = t.current.filter(function(E) {
|
|
3897
3897
|
return E !== x;
|
|
@@ -3919,38 +3919,38 @@ function ec(e) {
|
|
|
3919
3919
|
return s.createElement(
|
|
3920
3920
|
s.Fragment,
|
|
3921
3921
|
null,
|
|
3922
|
-
y ? s.createElement(a, { styles:
|
|
3923
|
-
g ? s.createElement(
|
|
3922
|
+
y ? s.createElement(a, { styles: Jl(o) }) : null,
|
|
3923
|
+
g ? s.createElement(jl, { gapMode: e.gapMode }) : null
|
|
3924
3924
|
);
|
|
3925
3925
|
}
|
|
3926
|
-
function
|
|
3926
|
+
function nc(e) {
|
|
3927
3927
|
for (var t = null; e !== null; )
|
|
3928
3928
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
3929
3929
|
return t;
|
|
3930
3930
|
}
|
|
3931
|
-
const
|
|
3932
|
-
var
|
|
3933
|
-
return s.createElement(Bt, ge({}, e, { ref: t, sideCar:
|
|
3931
|
+
const rc = Ml(yo, tc);
|
|
3932
|
+
var So = s.forwardRef(function(e, t) {
|
|
3933
|
+
return s.createElement(Bt, ge({}, e, { ref: t, sideCar: rc }));
|
|
3934
3934
|
});
|
|
3935
|
-
|
|
3936
|
-
var
|
|
3935
|
+
So.classNames = Bt.classNames;
|
|
3936
|
+
var oc = 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(), Ct = /* @__PURE__ */ new WeakMap(), St = {}, pn = 0,
|
|
3942
|
-
return e && (e.host ||
|
|
3943
|
-
},
|
|
3941
|
+
}, Ye = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), St = {}, pn = 0, To = function(e) {
|
|
3942
|
+
return e && (e.host || To(e.parentNode));
|
|
3943
|
+
}, ac = 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;
|
|
3951
3951
|
});
|
|
3952
|
-
},
|
|
3953
|
-
var o =
|
|
3952
|
+
}, ic = function(e, t, n, r) {
|
|
3953
|
+
var o = ac(t, Array.isArray(e) ? e : [e]);
|
|
3954
3954
|
St[n] || (St[n] = /* @__PURE__ */ new WeakMap());
|
|
3955
3955
|
var a = St[n], i = [], l = /* @__PURE__ */ new Set(), d = new Set(o), c = function(m) {
|
|
3956
3956
|
!m || l.has(m) || (l.add(m), c(m.parentNode));
|
|
@@ -3975,13 +3975,13 @@ var rc = function(e) {
|
|
|
3975
3975
|
Ye.set(m, v), a.set(m, g), v || (Ct.has(m) || m.removeAttribute(r), Ct.delete(m)), g || m.removeAttribute(n);
|
|
3976
3976
|
}), pn--, pn || (Ye = /* @__PURE__ */ new WeakMap(), Ye = /* @__PURE__ */ new WeakMap(), Ct = /* @__PURE__ */ new WeakMap(), St = {});
|
|
3977
3977
|
};
|
|
3978
|
-
},
|
|
3978
|
+
}, sc = function(e, t, n) {
|
|
3979
3979
|
n === void 0 && (n = "data-aria-hidden");
|
|
3980
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
3981
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))),
|
|
3980
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = oc(e);
|
|
3981
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), ic(r, o, n, "aria-hidden")) : function() {
|
|
3982
3982
|
return null;
|
|
3983
3983
|
};
|
|
3984
|
-
}, Bn = "Dialog", [
|
|
3984
|
+
}, Bn = "Dialog", [Ro, hf] = pt(Bn), [lc, me] = Ro(Bn), No = (e) => {
|
|
3985
3985
|
const {
|
|
3986
3986
|
__scopeDialog: t,
|
|
3987
3987
|
children: n,
|
|
@@ -3995,7 +3995,7 @@ var rc = function(e) {
|
|
|
3995
3995
|
onChange: a
|
|
3996
3996
|
});
|
|
3997
3997
|
return /* @__PURE__ */ u(
|
|
3998
|
-
|
|
3998
|
+
lc,
|
|
3999
3999
|
{
|
|
4000
4000
|
scope: t,
|
|
4001
4001
|
triggerRef: l,
|
|
@@ -4011,10 +4011,10 @@ var rc = 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
|
K.button,
|
|
4020
4020
|
{
|
|
@@ -4030,28 +4030,28 @@ var No = "DialogTrigger", Po = s.forwardRef(
|
|
|
4030
4030
|
);
|
|
4031
4031
|
}
|
|
4032
4032
|
);
|
|
4033
|
-
|
|
4034
|
-
var Vn = "DialogPortal", [
|
|
4033
|
+
Ao.displayName = Po;
|
|
4034
|
+
var Vn = "DialogPortal", [cc, Oo] = Ro(Vn, {
|
|
4035
4035
|
forceMount: void 0
|
|
4036
|
-
}),
|
|
4036
|
+
}), Mo = (e) => {
|
|
4037
4037
|
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = me(Vn, t);
|
|
4038
|
-
return /* @__PURE__ */ u(
|
|
4038
|
+
return /* @__PURE__ */ u(cc, { 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
|
+
Mo.displayName = Vn;
|
|
4041
|
+
var _t = "DialogOverlay", ko = s.forwardRef(
|
|
4042
4042
|
(e, t) => {
|
|
4043
|
-
const n =
|
|
4044
|
-
return a.modal ? /* @__PURE__ */ u(He, { present: r || a.open, children: /* @__PURE__ */ u(
|
|
4043
|
+
const n = Oo(_t, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = me(_t, e.__scopeDialog);
|
|
4044
|
+
return a.modal ? /* @__PURE__ */ u(He, { present: r || a.open, children: /* @__PURE__ */ u(dc, { ...o, ref: t }) }) : null;
|
|
4045
4045
|
}
|
|
4046
4046
|
);
|
|
4047
|
-
|
|
4048
|
-
var
|
|
4047
|
+
ko.displayName = _t;
|
|
4048
|
+
var dc = 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
|
K.div,
|
|
4056
4056
|
{
|
|
4057
4057
|
"data-state": jn(o.open),
|
|
@@ -4062,21 +4062,21 @@ var cc = s.forwardRef(
|
|
|
4062
4062
|
) })
|
|
4063
4063
|
);
|
|
4064
4064
|
}
|
|
4065
|
-
), Be = "DialogContent",
|
|
4065
|
+
), Be = "DialogContent", Do = s.forwardRef(
|
|
4066
4066
|
(e, t) => {
|
|
4067
|
-
const n =
|
|
4068
|
-
return /* @__PURE__ */ u(He, { present: r || a.open, children: a.modal ? /* @__PURE__ */ u(
|
|
4067
|
+
const n = Oo(Be, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = me(Be, e.__scopeDialog);
|
|
4068
|
+
return /* @__PURE__ */ u(He, { present: r || a.open, children: a.modal ? /* @__PURE__ */ u(uc, { ...o, ref: t }) : /* @__PURE__ */ u(fc, { ...o, ref: t }) });
|
|
4069
4069
|
}
|
|
4070
4070
|
);
|
|
4071
|
-
|
|
4072
|
-
var
|
|
4071
|
+
Do.displayName = Be;
|
|
4072
|
+
var uc = s.forwardRef(
|
|
4073
4073
|
(e, t) => {
|
|
4074
4074
|
const n = me(Be, e.__scopeDialog), r = s.useRef(null), o = ee(t, n.contentRef, r);
|
|
4075
4075
|
return s.useEffect(() => {
|
|
4076
4076
|
const a = r.current;
|
|
4077
|
-
if (a) return
|
|
4077
|
+
if (a) return sc(a);
|
|
4078
4078
|
}, []), /* @__PURE__ */ u(
|
|
4079
|
-
|
|
4079
|
+
_o,
|
|
4080
4080
|
{
|
|
4081
4081
|
...e,
|
|
4082
4082
|
ref: o,
|
|
@@ -4097,11 +4097,11 @@ var dc = s.forwardRef(
|
|
|
4097
4097
|
}
|
|
4098
4098
|
);
|
|
4099
4099
|
}
|
|
4100
|
-
),
|
|
4100
|
+
), fc = 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 dc = 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, l = me(Be, n), d = s.useRef(null), c = ee(t, d);
|
|
4126
|
-
return
|
|
4126
|
+
return xl(), /* @__PURE__ */ I(Ae, { children: [
|
|
4127
4127
|
/* @__PURE__ */ u(
|
|
4128
|
-
|
|
4128
|
+
ho,
|
|
4129
4129
|
{
|
|
4130
4130
|
asChild: !0,
|
|
4131
4131
|
loop: !0,
|
|
@@ -4148,28 +4148,28 @@ var dc = s.forwardRef(
|
|
|
4148
4148
|
}
|
|
4149
4149
|
),
|
|
4150
4150
|
/* @__PURE__ */ I(Ae, { children: [
|
|
4151
|
-
/* @__PURE__ */ u(
|
|
4152
|
-
/* @__PURE__ */ u(
|
|
4151
|
+
/* @__PURE__ */ u(pc, { titleId: l.titleId }),
|
|
4152
|
+
/* @__PURE__ */ u(hc, { contentRef: d, descriptionId: l.descriptionId })
|
|
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(K.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(K.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
|
K.button,
|
|
4175
4175
|
{
|
|
@@ -4181,16 +4181,16 @@ var Fo = "DialogClose", $o = 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", [gf, Bo] = Us(Wo, {
|
|
4189
4189
|
contentName: Be,
|
|
4190
4190
|
titleName: Hn,
|
|
4191
4191
|
docsSlug: "dialog"
|
|
4192
|
-
}),
|
|
4193
|
-
const t = Wo
|
|
4192
|
+
}), pc = ({ titleId: e }) => {
|
|
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
|
|
|
@@ -4198,17 +4198,17 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4198
4198
|
return s.useEffect(() => {
|
|
4199
4199
|
e && (document.getElementById(e) || console.error(n));
|
|
4200
4200
|
}, [n, e]), null;
|
|
4201
|
-
},
|
|
4202
|
-
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${
|
|
4201
|
+
}, mc = "DialogDescriptionWarning", hc = ({ contentRef: e, descriptionId: t }) => {
|
|
4202
|
+
const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Bo(mc).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 = Mo, Vt = ko, 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
|
|
4211
|
+
const gc = Vo, vc = 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 hc = Bo, gc = Vo, Pr = Ut, Ho = s.forwardRef(({ className: e, ...t }, n) =
|
|
|
4219
4219
|
...t
|
|
4220
4220
|
}
|
|
4221
4221
|
));
|
|
4222
|
-
|
|
4223
|
-
const Kn = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ I(
|
|
4224
|
-
/* @__PURE__ */ u(
|
|
4222
|
+
jo.displayName = Vt.displayName;
|
|
4223
|
+
const Kn = s.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ I(vc, { children: [
|
|
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 jo = ({
|
|
|
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 Go = ({
|
|
|
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 Uo = 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 Ko = 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((c) => {
|
|
@@ -4368,7 +4368,7 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Qr, K
|
|
|
4368
4368
|
m();
|
|
4369
4369
|
};
|
|
4370
4370
|
return /* @__PURE__ */ I(Un, { children: [
|
|
4371
|
-
/* @__PURE__ */ u(
|
|
4371
|
+
/* @__PURE__ */ u(gc, { asChild: !0, children: /* @__PURE__ */ u(
|
|
4372
4372
|
d,
|
|
4373
4373
|
{
|
|
4374
4374
|
className: M(Mr({ variant: t, size: n, className: e })),
|
|
@@ -4377,11 +4377,11 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Qr, 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: c }),
|
|
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(ve, { variant: "outline", children: g }) }),
|
|
4386
4386
|
/* @__PURE__ */ u(Pr, { asChild: !0, children: /* @__PURE__ */ u(ve, { onClick: y, children: v }) })
|
|
4387
4387
|
] })
|
|
@@ -4390,15 +4390,15 @@ const Ar = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Or = Qr, K
|
|
|
4390
4390
|
}
|
|
4391
4391
|
);
|
|
4392
4392
|
ve.displayName = "Button";
|
|
4393
|
-
const
|
|
4393
|
+
const bc = ["top", "right", "bottom", "left"], Me = Math.min, ie = Math.max, It = Math.round, Tt = Math.floor, be = (e) => ({
|
|
4394
4394
|
x: e,
|
|
4395
4395
|
y: e
|
|
4396
|
-
}),
|
|
4396
|
+
}), yc = {
|
|
4397
4397
|
left: "right",
|
|
4398
4398
|
right: "left",
|
|
4399
4399
|
bottom: "top",
|
|
4400
4400
|
top: "bottom"
|
|
4401
|
-
},
|
|
4401
|
+
}, wc = {
|
|
4402
4402
|
start: "end",
|
|
4403
4403
|
end: "start"
|
|
4404
4404
|
};
|
|
@@ -4426,20 +4426,20 @@ function ke(e) {
|
|
|
4426
4426
|
function qn(e) {
|
|
4427
4427
|
return Yn(ke(e));
|
|
4428
4428
|
}
|
|
4429
|
-
function
|
|
4429
|
+
function xc(e, t, n) {
|
|
4430
4430
|
n === void 0 && (n = !1);
|
|
4431
4431
|
const r = nt(e), o = qn(e), a = Xn(o);
|
|
4432
4432
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4433
4433
|
return t.reference[a] > t.floating[a] && (i = Lt(i)), [i, Lt(i)];
|
|
4434
4434
|
}
|
|
4435
|
-
function
|
|
4435
|
+
function Ec(e) {
|
|
4436
4436
|
const t = Lt(e);
|
|
4437
4437
|
return [Pn(e), t, Pn(t)];
|
|
4438
4438
|
}
|
|
4439
4439
|
function Pn(e) {
|
|
4440
|
-
return e.replace(/start|end/g, (t) =>
|
|
4440
|
+
return e.replace(/start|end/g, (t) => wc[t]);
|
|
4441
4441
|
}
|
|
4442
|
-
function
|
|
4442
|
+
function Cc(e, t, n) {
|
|
4443
4443
|
const r = ["left", "right"], o = ["right", "left"], a = ["top", "bottom"], i = ["bottom", "top"];
|
|
4444
4444
|
switch (e) {
|
|
4445
4445
|
case "top":
|
|
@@ -4452,15 +4452,15 @@ function Ec(e, t, n) {
|
|
|
4452
4452
|
return [];
|
|
4453
4453
|
}
|
|
4454
4454
|
}
|
|
4455
|
-
function
|
|
4455
|
+
function Sc(e, t, n, r) {
|
|
4456
4456
|
const o = nt(e);
|
|
4457
|
-
let a =
|
|
4457
|
+
let a = Cc(Ce(e), n === "start", r);
|
|
4458
4458
|
return o && (a = a.map((i) => i + "-" + o), t && (a = a.concat(a.map(Pn)))), a;
|
|
4459
4459
|
}
|
|
4460
4460
|
function Lt(e) {
|
|
4461
|
-
return e.replace(/left|right|bottom|top/g, (t) =>
|
|
4461
|
+
return e.replace(/left|right|bottom|top/g, (t) => yc[t]);
|
|
4462
4462
|
}
|
|
4463
|
-
function
|
|
4463
|
+
function Tc(e) {
|
|
4464
4464
|
return {
|
|
4465
4465
|
top: 0,
|
|
4466
4466
|
right: 0,
|
|
@@ -4469,8 +4469,8 @@ function Sc(e) {
|
|
|
4469
4469
|
...e
|
|
4470
4470
|
};
|
|
4471
4471
|
}
|
|
4472
|
-
function
|
|
4473
|
-
return typeof e != "number" ?
|
|
4472
|
+
function Xo(e) {
|
|
4473
|
+
return typeof e != "number" ? Tc(e) : {
|
|
4474
4474
|
top: e,
|
|
4475
4475
|
right: e,
|
|
4476
4476
|
bottom: e,
|
|
@@ -4543,7 +4543,7 @@ function kr(e, t, n) {
|
|
|
4543
4543
|
}
|
|
4544
4544
|
return g;
|
|
4545
4545
|
}
|
|
4546
|
-
const
|
|
4546
|
+
const Rc = async (e, t, n) => {
|
|
4547
4547
|
const {
|
|
4548
4548
|
placement: r = "bottom",
|
|
4549
4549
|
strategy: o = "absolute",
|
|
@@ -4620,7 +4620,7 @@ async function ut(e, t) {
|
|
|
4620
4620
|
elementContext: m = "floating",
|
|
4621
4621
|
altBoundary: v = !1,
|
|
4622
4622
|
padding: g = 0
|
|
4623
|
-
} = Ee(t, e), y =
|
|
4623
|
+
} = Ee(t, e), y = Xo(g), h = l[v ? m === "floating" ? "reference" : "floating" : m], b = Ft(await a.getClippingRect({
|
|
4624
4624
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(l.floating)),
|
|
4625
4625
|
boundary: c,
|
|
4626
4626
|
rootBoundary: f,
|
|
@@ -4649,7 +4649,7 @@ async function ut(e, t) {
|
|
|
4649
4649
|
right: (S.right - b.right + y.right) / E.x
|
|
4650
4650
|
};
|
|
4651
4651
|
}
|
|
4652
|
-
const
|
|
4652
|
+
const Nc = (e) => ({
|
|
4653
4653
|
name: "arrow",
|
|
4654
4654
|
options: e,
|
|
4655
4655
|
async fn(t) {
|
|
@@ -4667,7 +4667,7 @@ const Rc = (e) => ({
|
|
|
4667
4667
|
} = Ee(e, t) || {};
|
|
4668
4668
|
if (c == null)
|
|
4669
4669
|
return {};
|
|
4670
|
-
const m =
|
|
4670
|
+
const m = Xo(f), v = {
|
|
4671
4671
|
x: n,
|
|
4672
4672
|
y: r
|
|
4673
4673
|
}, g = qn(o), y = Xn(g), p = await i.getDimensions(c), h = g === "y", b = h ? "top" : "left", w = h ? "bottom" : "right", x = h ? "clientHeight" : "clientWidth", E = a.reference[y] + a.reference[g] - v[g] - a.floating[y], S = v[g] - a.reference[g], C = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
@@ -4686,7 +4686,7 @@ const Rc = (e) => ({
|
|
|
4686
4686
|
reset: A
|
|
4687
4687
|
};
|
|
4688
4688
|
}
|
|
4689
|
-
}),
|
|
4689
|
+
}), Pc = function(e) {
|
|
4690
4690
|
return e === void 0 && (e = {}), {
|
|
4691
4691
|
name: "flip",
|
|
4692
4692
|
options: e,
|
|
@@ -4710,12 +4710,12 @@ const Rc = (e) => ({
|
|
|
4710
4710
|
} = Ee(e, t);
|
|
4711
4711
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
4712
4712
|
return {};
|
|
4713
|
-
const b = Ce(o), w = ke(l), x = Ce(l) === l, E = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), S = v || (x || !p ? [Lt(l)] :
|
|
4714
|
-
!v && C && S.push(...
|
|
4713
|
+
const b = Ce(o), w = ke(l), x = Ce(l) === l, E = await (d.isRTL == null ? void 0 : d.isRTL(c.floating)), S = v || (x || !p ? [Lt(l)] : Ec(l)), C = y !== "none";
|
|
4714
|
+
!v && C && S.push(...Sc(l, p, y, E));
|
|
4715
4715
|
const T = [l, ...S], $ = await ut(t, h), D = [];
|
|
4716
4716
|
let z = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
4717
4717
|
if (f && D.push($[b]), m) {
|
|
4718
|
-
const R =
|
|
4718
|
+
const R = xc(o, i, E);
|
|
4719
4719
|
D.push($[R[0]], $[R[1]]);
|
|
4720
4720
|
}
|
|
4721
4721
|
if (z = [...z, {
|
|
@@ -4775,9 +4775,9 @@ function Dr(e, t) {
|
|
|
4775
4775
|
};
|
|
4776
4776
|
}
|
|
4777
4777
|
function _r(e) {
|
|
4778
|
-
return
|
|
4778
|
+
return bc.some((t) => e[t] >= 0);
|
|
4779
4779
|
}
|
|
4780
|
-
const
|
|
4780
|
+
const Ac = function(e) {
|
|
4781
4781
|
return e === void 0 && (e = {}), {
|
|
4782
4782
|
name: "hide",
|
|
4783
4783
|
options: e,
|
|
@@ -4819,7 +4819,7 @@ const Pc = function(e) {
|
|
|
4819
4819
|
}
|
|
4820
4820
|
};
|
|
4821
4821
|
};
|
|
4822
|
-
async function
|
|
4822
|
+
async function Oc(e, t) {
|
|
4823
4823
|
const {
|
|
4824
4824
|
placement: n,
|
|
4825
4825
|
platform: r,
|
|
@@ -4846,7 +4846,7 @@ async function Ac(e, t) {
|
|
|
4846
4846
|
y: g * f
|
|
4847
4847
|
};
|
|
4848
4848
|
}
|
|
4849
|
-
const
|
|
4849
|
+
const Mc = function(e) {
|
|
4850
4850
|
return e === void 0 && (e = 0), {
|
|
4851
4851
|
name: "offset",
|
|
4852
4852
|
options: e,
|
|
@@ -4857,7 +4857,7 @@ const Oc = function(e) {
|
|
|
4857
4857
|
y: a,
|
|
4858
4858
|
placement: i,
|
|
4859
4859
|
middlewareData: l
|
|
4860
|
-
} = t, d = await
|
|
4860
|
+
} = t, d = await Oc(t, e);
|
|
4861
4861
|
return i === ((n = l.offset) == null ? void 0 : n.placement) && (r = l.arrow) != null && r.alignmentOffset ? {} : {
|
|
4862
4862
|
x: o + d.x,
|
|
4863
4863
|
y: a + d.y,
|
|
@@ -4868,7 +4868,7 @@ const Oc = function(e) {
|
|
|
4868
4868
|
};
|
|
4869
4869
|
}
|
|
4870
4870
|
};
|
|
4871
|
-
},
|
|
4871
|
+
}, kc = function(e) {
|
|
4872
4872
|
return e === void 0 && (e = {}), {
|
|
4873
4873
|
name: "shift",
|
|
4874
4874
|
options: e,
|
|
@@ -4924,7 +4924,7 @@ const Oc = function(e) {
|
|
|
4924
4924
|
};
|
|
4925
4925
|
}
|
|
4926
4926
|
};
|
|
4927
|
-
},
|
|
4927
|
+
}, Dc = function(e) {
|
|
4928
4928
|
return e === void 0 && (e = {}), {
|
|
4929
4929
|
options: e,
|
|
4930
4930
|
fn(t) {
|
|
@@ -4966,7 +4966,7 @@ const Oc = function(e) {
|
|
|
4966
4966
|
};
|
|
4967
4967
|
}
|
|
4968
4968
|
};
|
|
4969
|
-
},
|
|
4969
|
+
}, _c = function(e) {
|
|
4970
4970
|
return e === void 0 && (e = {}), {
|
|
4971
4971
|
name: "size",
|
|
4972
4972
|
options: e,
|
|
@@ -5011,7 +5011,7 @@ function Yt() {
|
|
|
5011
5011
|
return typeof window < "u";
|
|
5012
5012
|
}
|
|
5013
5013
|
function rt(e) {
|
|
5014
|
-
return
|
|
5014
|
+
return qo(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5015
5015
|
}
|
|
5016
5016
|
function se(e) {
|
|
5017
5017
|
var t;
|
|
@@ -5019,9 +5019,9 @@ function se(e) {
|
|
|
5019
5019
|
}
|
|
5020
5020
|
function we(e) {
|
|
5021
5021
|
var t;
|
|
5022
|
-
return (t = (
|
|
5022
|
+
return (t = (qo(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5023
5023
|
}
|
|
5024
|
-
function
|
|
5024
|
+
function qo(e) {
|
|
5025
5025
|
return Yt() ? e instanceof Node || e instanceof se(e).Node : !1;
|
|
5026
5026
|
}
|
|
5027
5027
|
function ue(e) {
|
|
@@ -5042,7 +5042,7 @@ function mt(e) {
|
|
|
5042
5042
|
} = fe(e);
|
|
5043
5043
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5044
5044
|
}
|
|
5045
|
-
function
|
|
5045
|
+
function Ic(e) {
|
|
5046
5046
|
return ["table", "td", "th"].includes(rt(e));
|
|
5047
5047
|
}
|
|
5048
5048
|
function Xt(e) {
|
|
@@ -5058,7 +5058,7 @@ function Zn(e) {
|
|
|
5058
5058
|
const t = Qn(), n = ue(e) ? fe(e) : e;
|
|
5059
5059
|
return ["transform", "translate", "scale", "rotate", "perspective"].some((r) => n[r] ? n[r] !== "none" : !1) || (n.containerType ? n.containerType !== "normal" : !1) || !t && (n.backdropFilter ? n.backdropFilter !== "none" : !1) || !t && (n.filter ? n.filter !== "none" : !1) || ["transform", "translate", "scale", "rotate", "perspective", "filter"].some((r) => (n.willChange || "").includes(r)) || ["paint", "layout", "strict", "content"].some((r) => (n.contain || "").includes(r));
|
|
5060
5060
|
}
|
|
5061
|
-
function
|
|
5061
|
+
function Lc(e) {
|
|
5062
5062
|
let t = De(e);
|
|
5063
5063
|
for (; ye(t) && !Qe(t); ) {
|
|
5064
5064
|
if (Zn(t))
|
|
@@ -5099,14 +5099,14 @@ function De(e) {
|
|
|
5099
5099
|
);
|
|
5100
5100
|
return Ir(t) ? t.host : t;
|
|
5101
5101
|
}
|
|
5102
|
-
function
|
|
5102
|
+
function Zo(e) {
|
|
5103
5103
|
const t = De(e);
|
|
5104
|
-
return Qe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ye(t) && mt(t) ? t :
|
|
5104
|
+
return Qe(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : ye(t) && mt(t) ? t : Zo(t);
|
|
5105
5105
|
}
|
|
5106
5106
|
function ft(e, t, n) {
|
|
5107
5107
|
var r;
|
|
5108
5108
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5109
|
-
const o =
|
|
5109
|
+
const o = Zo(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), i = se(o);
|
|
5110
5110
|
if (a) {
|
|
5111
5111
|
const l = An(i);
|
|
5112
5112
|
return t.concat(i, i.visualViewport || [], mt(o) ? o : [], l && n ? ft(l) : []);
|
|
@@ -5116,7 +5116,7 @@ function ft(e, t, n) {
|
|
|
5116
5116
|
function An(e) {
|
|
5117
5117
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5118
5118
|
}
|
|
5119
|
-
function
|
|
5119
|
+
function Qo(e) {
|
|
5120
5120
|
const t = fe(e);
|
|
5121
5121
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5122
5122
|
const o = ye(e), a = o ? e.offsetWidth : n, i = o ? e.offsetHeight : r, l = It(n) !== a || It(r) !== i;
|
|
@@ -5137,22 +5137,22 @@ function qe(e) {
|
|
|
5137
5137
|
width: r,
|
|
5138
5138
|
height: o,
|
|
5139
5139
|
$: a
|
|
5140
|
-
} =
|
|
5140
|
+
} = Qo(t);
|
|
5141
5141
|
let i = (a ? It(n.width) : n.width) / r, l = (a ? It(n.height) : n.height) / o;
|
|
5142
5142
|
return (!i || !Number.isFinite(i)) && (i = 1), (!l || !Number.isFinite(l)) && (l = 1), {
|
|
5143
5143
|
x: i,
|
|
5144
5144
|
y: l
|
|
5145
5145
|
};
|
|
5146
5146
|
}
|
|
5147
|
-
const
|
|
5148
|
-
function
|
|
5147
|
+
const Fc = /* @__PURE__ */ be(0);
|
|
5148
|
+
function Jo(e) {
|
|
5149
5149
|
const t = se(e);
|
|
5150
|
-
return !Qn() || !t.visualViewport ?
|
|
5150
|
+
return !Qn() || !t.visualViewport ? Fc : {
|
|
5151
5151
|
x: t.visualViewport.offsetLeft,
|
|
5152
5152
|
y: t.visualViewport.offsetTop
|
|
5153
5153
|
};
|
|
5154
5154
|
}
|
|
5155
|
-
function
|
|
5155
|
+
function $c(e, t, n) {
|
|
5156
5156
|
return t === void 0 && (t = !1), !n || t && n !== se(e) ? !1 : t;
|
|
5157
5157
|
}
|
|
5158
5158
|
function Ve(e, t, n, r) {
|
|
@@ -5160,7 +5160,7 @@ function Ve(e, t, n, r) {
|
|
|
5160
5160
|
const o = e.getBoundingClientRect(), a = Jn(e);
|
|
5161
5161
|
let i = be(1);
|
|
5162
5162
|
t && (r ? ue(r) && (i = qe(r)) : i = qe(e));
|
|
5163
|
-
const l =
|
|
5163
|
+
const l = $c(a, n, r) ? Jo(a) : be(0);
|
|
5164
5164
|
let d = (o.left + l.x) / i.x, c = (o.top + l.y) / i.y, f = o.width / i.x, m = o.height / i.y;
|
|
5165
5165
|
if (a) {
|
|
5166
5166
|
const v = se(a), g = r && ue(r) ? se(r) : r;
|
|
@@ -5181,7 +5181,7 @@ function er(e, t) {
|
|
|
5181
5181
|
const n = qt(e).scrollLeft;
|
|
5182
5182
|
return t ? t.left + n : Ve(we(e)).left + n;
|
|
5183
5183
|
}
|
|
5184
|
-
function
|
|
5184
|
+
function ea(e, t, n) {
|
|
5185
5185
|
n === void 0 && (n = !1);
|
|
5186
5186
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
5187
5187
|
// RTL <body> scrollbar.
|
|
@@ -5192,7 +5192,7 @@ function Jo(e, t, n) {
|
|
|
5192
5192
|
y: a
|
|
5193
5193
|
};
|
|
5194
5194
|
}
|
|
5195
|
-
function
|
|
5195
|
+
function zc(e) {
|
|
5196
5196
|
let {
|
|
5197
5197
|
elements: t,
|
|
5198
5198
|
rect: n,
|
|
@@ -5211,7 +5211,7 @@ function $c(e) {
|
|
|
5211
5211
|
const g = Ve(r);
|
|
5212
5212
|
c = qe(r), f.x = g.x + r.clientLeft, f.y = g.y + r.clientTop;
|
|
5213
5213
|
}
|
|
5214
|
-
const v = i && !m && !a ?
|
|
5214
|
+
const v = i && !m && !a ? ea(i, d, !0) : be(0);
|
|
5215
5215
|
return {
|
|
5216
5216
|
width: n.width * c.x,
|
|
5217
5217
|
height: n.height * c.y,
|
|
@@ -5219,10 +5219,10 @@ function $c(e) {
|
|
|
5219
5219
|
y: n.y * c.y - d.scrollTop * c.y + f.y + v.y
|
|
5220
5220
|
};
|
|
5221
5221
|
}
|
|
5222
|
-
function
|
|
5222
|
+
function Wc(e) {
|
|
5223
5223
|
return Array.from(e.getClientRects());
|
|
5224
5224
|
}
|
|
5225
|
-
function
|
|
5225
|
+
function Bc(e) {
|
|
5226
5226
|
const t = we(e), n = qt(e), r = e.ownerDocument.body, o = ie(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = ie(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5227
5227
|
let i = -n.scrollLeft + er(e);
|
|
5228
5228
|
const l = -n.scrollTop;
|
|
@@ -5233,7 +5233,7 @@ function Wc(e) {
|
|
|
5233
5233
|
y: l
|
|
5234
5234
|
};
|
|
5235
5235
|
}
|
|
5236
|
-
function
|
|
5236
|
+
function Vc(e, t) {
|
|
5237
5237
|
const n = se(e), r = we(e), o = n.visualViewport;
|
|
5238
5238
|
let a = r.clientWidth, i = r.clientHeight, l = 0, d = 0;
|
|
5239
5239
|
if (o) {
|
|
@@ -5248,7 +5248,7 @@ function Bc(e, t) {
|
|
|
5248
5248
|
y: d
|
|
5249
5249
|
};
|
|
5250
5250
|
}
|
|
5251
|
-
function
|
|
5251
|
+
function Hc(e, t) {
|
|
5252
5252
|
const n = Ve(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = ye(e) ? qe(e) : be(1), i = e.clientWidth * a.x, l = e.clientHeight * a.y, d = o * a.x, c = r * a.y;
|
|
5253
5253
|
return {
|
|
5254
5254
|
width: i,
|
|
@@ -5260,13 +5260,13 @@ function Vc(e, t) {
|
|
|
5260
5260
|
function Lr(e, t, n) {
|
|
5261
5261
|
let r;
|
|
5262
5262
|
if (t === "viewport")
|
|
5263
|
-
r =
|
|
5263
|
+
r = Vc(e, n);
|
|
5264
5264
|
else if (t === "document")
|
|
5265
|
-
r =
|
|
5265
|
+
r = Bc(we(e));
|
|
5266
5266
|
else if (ue(t))
|
|
5267
|
-
r =
|
|
5267
|
+
r = Hc(t, n);
|
|
5268
5268
|
else {
|
|
5269
|
-
const o =
|
|
5269
|
+
const o = Jo(e);
|
|
5270
5270
|
r = {
|
|
5271
5271
|
x: t.x - o.x,
|
|
5272
5272
|
y: t.y - o.y,
|
|
@@ -5276,11 +5276,11 @@ function Lr(e, t, n) {
|
|
|
5276
5276
|
}
|
|
5277
5277
|
return Ft(r);
|
|
5278
5278
|
}
|
|
5279
|
-
function
|
|
5279
|
+
function ta(e, t) {
|
|
5280
5280
|
const n = De(e);
|
|
5281
|
-
return n === t || !ue(n) || Qe(n) ? !1 : fe(n).position === "fixed" ||
|
|
5281
|
+
return n === t || !ue(n) || Qe(n) ? !1 : fe(n).position === "fixed" || ta(n, t);
|
|
5282
5282
|
}
|
|
5283
|
-
function
|
|
5283
|
+
function jc(e, t) {
|
|
5284
5284
|
const n = t.get(e);
|
|
5285
5285
|
if (n)
|
|
5286
5286
|
return n;
|
|
@@ -5289,18 +5289,18 @@ function Hc(e, t) {
|
|
|
5289
5289
|
let i = a ? De(e) : e;
|
|
5290
5290
|
for (; ue(i) && !Qe(i); ) {
|
|
5291
5291
|
const l = fe(i), d = Zn(i);
|
|
5292
|
-
!d && l.position === "fixed" && (o = null), (a ? !d && !o : !d && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || mt(i) && !d &&
|
|
5292
|
+
!d && l.position === "fixed" && (o = null), (a ? !d && !o : !d && l.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || mt(i) && !d && ta(e, i)) ? r = r.filter((f) => f !== i) : o = l, i = De(i);
|
|
5293
5293
|
}
|
|
5294
5294
|
return t.set(e, r), r;
|
|
5295
5295
|
}
|
|
5296
|
-
function
|
|
5296
|
+
function Gc(e) {
|
|
5297
5297
|
let {
|
|
5298
5298
|
element: t,
|
|
5299
5299
|
boundary: n,
|
|
5300
5300
|
rootBoundary: r,
|
|
5301
5301
|
strategy: o
|
|
5302
5302
|
} = e;
|
|
5303
|
-
const i = [...n === "clippingAncestors" ? Xt(t) ? [] :
|
|
5303
|
+
const i = [...n === "clippingAncestors" ? Xt(t) ? [] : jc(t, this._c) : [].concat(n), r], l = i[0], d = i.reduce((c, f) => {
|
|
5304
5304
|
const m = Lr(t, f, o);
|
|
5305
5305
|
return c.top = ie(m.top, c.top), c.right = Me(m.right, c.right), c.bottom = Me(m.bottom, c.bottom), c.left = ie(m.left, c.left), c;
|
|
5306
5306
|
}, Lr(t, l, o));
|
|
@@ -5311,17 +5311,17 @@ function jc(e) {
|
|
|
5311
5311
|
y: d.top
|
|
5312
5312
|
};
|
|
5313
5313
|
}
|
|
5314
|
-
function
|
|
5314
|
+
function Uc(e) {
|
|
5315
5315
|
const {
|
|
5316
5316
|
width: t,
|
|
5317
5317
|
height: n
|
|
5318
|
-
} =
|
|
5318
|
+
} = Qo(e);
|
|
5319
5319
|
return {
|
|
5320
5320
|
width: t,
|
|
5321
5321
|
height: n
|
|
5322
5322
|
};
|
|
5323
5323
|
}
|
|
5324
|
-
function
|
|
5324
|
+
function Kc(e, t, n) {
|
|
5325
5325
|
const r = ye(t), o = we(t), a = n === "fixed", i = Ve(e, !0, a, t);
|
|
5326
5326
|
let l = {
|
|
5327
5327
|
scrollLeft: 0,
|
|
@@ -5333,7 +5333,7 @@ function Uc(e, t, n) {
|
|
|
5333
5333
|
const v = Ve(t, !0, a, t);
|
|
5334
5334
|
d.x = v.x + t.clientLeft, d.y = v.y + t.clientTop;
|
|
5335
5335
|
} else o && (d.x = er(o));
|
|
5336
|
-
const c = o && !r && !a ?
|
|
5336
|
+
const c = o && !r && !a ? ea(o, l) : be(0), f = i.left + l.scrollLeft - d.x - c.x, m = i.top + l.scrollTop - d.y - c.y;
|
|
5337
5337
|
return {
|
|
5338
5338
|
x: f,
|
|
5339
5339
|
y: m,
|
|
@@ -5352,7 +5352,7 @@ function Fr(e, t) {
|
|
|
5352
5352
|
let n = e.offsetParent;
|
|
5353
5353
|
return we(e) === n && (n = n.ownerDocument.body), n;
|
|
5354
5354
|
}
|
|
5355
|
-
function
|
|
5355
|
+
function na(e, t) {
|
|
5356
5356
|
const n = se(e);
|
|
5357
5357
|
if (Xt(e))
|
|
5358
5358
|
return n;
|
|
@@ -5366,14 +5366,14 @@ function ta(e, t) {
|
|
|
5366
5366
|
return n;
|
|
5367
5367
|
}
|
|
5368
5368
|
let r = Fr(e, t);
|
|
5369
|
-
for (; r &&
|
|
5369
|
+
for (; r && Ic(r) && mn(r); )
|
|
5370
5370
|
r = Fr(r, t);
|
|
5371
|
-
return r && Qe(r) && mn(r) && !Zn(r) ? n : r ||
|
|
5371
|
+
return r && Qe(r) && mn(r) && !Zn(r) ? n : r || Lc(e) || n;
|
|
5372
5372
|
}
|
|
5373
|
-
const
|
|
5374
|
-
const t = this.getOffsetParent ||
|
|
5373
|
+
const Yc = async function(e) {
|
|
5374
|
+
const t = this.getOffsetParent || na, n = this.getDimensions, r = await n(e.floating);
|
|
5375
5375
|
return {
|
|
5376
|
-
reference:
|
|
5376
|
+
reference: Kc(e.reference, await t(e.floating), e.strategy),
|
|
5377
5377
|
floating: {
|
|
5378
5378
|
x: 0,
|
|
5379
5379
|
y: 0,
|
|
@@ -5382,25 +5382,25 @@ const Kc = async function(e) {
|
|
|
5382
5382
|
}
|
|
5383
5383
|
};
|
|
5384
5384
|
};
|
|
5385
|
-
function
|
|
5385
|
+
function Xc(e) {
|
|
5386
5386
|
return fe(e).direction === "rtl";
|
|
5387
5387
|
}
|
|
5388
|
-
const
|
|
5389
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
5388
|
+
const qc = {
|
|
5389
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: zc,
|
|
5390
5390
|
getDocumentElement: we,
|
|
5391
|
-
getClippingRect:
|
|
5392
|
-
getOffsetParent:
|
|
5393
|
-
getElementRects:
|
|
5394
|
-
getClientRects:
|
|
5395
|
-
getDimensions:
|
|
5391
|
+
getClippingRect: Gc,
|
|
5392
|
+
getOffsetParent: na,
|
|
5393
|
+
getElementRects: Yc,
|
|
5394
|
+
getClientRects: Wc,
|
|
5395
|
+
getDimensions: Uc,
|
|
5396
5396
|
getScale: qe,
|
|
5397
5397
|
isElement: ue,
|
|
5398
|
-
isRTL:
|
|
5398
|
+
isRTL: Xc
|
|
5399
5399
|
};
|
|
5400
|
-
function
|
|
5400
|
+
function ra(e, t) {
|
|
5401
5401
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5402
5402
|
}
|
|
5403
|
-
function
|
|
5403
|
+
function Zc(e, t) {
|
|
5404
5404
|
let n = null, r;
|
|
5405
5405
|
const o = we(e);
|
|
5406
5406
|
function a() {
|
|
@@ -5431,7 +5431,7 @@ function qc(e, t) {
|
|
|
5431
5431
|
i(!1, 1e-7);
|
|
5432
5432
|
}, 1e3);
|
|
5433
5433
|
}
|
|
5434
|
-
T === 1 && !
|
|
5434
|
+
T === 1 && !ra(c, e.getBoundingClientRect()) && i(), E = !1;
|
|
5435
5435
|
}
|
|
5436
5436
|
try {
|
|
5437
5437
|
n = new IntersectionObserver(S, {
|
|
@@ -5446,7 +5446,7 @@ function qc(e, t) {
|
|
|
5446
5446
|
}
|
|
5447
5447
|
return i(!0), a;
|
|
5448
5448
|
}
|
|
5449
|
-
function
|
|
5449
|
+
function Qc(e, t, n, r) {
|
|
5450
5450
|
r === void 0 && (r = {});
|
|
5451
5451
|
const {
|
|
5452
5452
|
ancestorScroll: o = !0,
|
|
@@ -5460,7 +5460,7 @@ function Zc(e, t, n, r) {
|
|
|
5460
5460
|
passive: !0
|
|
5461
5461
|
}), a && b.addEventListener("resize", n);
|
|
5462
5462
|
});
|
|
5463
|
-
const m = c && l ?
|
|
5463
|
+
const m = c && l ? Zc(c, n) : null;
|
|
5464
5464
|
let v = -1, g = null;
|
|
5465
5465
|
i && (g = new ResizeObserver((b) => {
|
|
5466
5466
|
let [w] = b;
|
|
@@ -5473,7 +5473,7 @@ function Zc(e, t, n, r) {
|
|
|
5473
5473
|
d && h();
|
|
5474
5474
|
function h() {
|
|
5475
5475
|
const b = Ve(e);
|
|
5476
|
-
p && !
|
|
5476
|
+
p && !ra(p, b) && n(), p = b, y = requestAnimationFrame(h);
|
|
5477
5477
|
}
|
|
5478
5478
|
return n(), () => {
|
|
5479
5479
|
var b;
|
|
@@ -5482,20 +5482,20 @@ function Zc(e, t, n, r) {
|
|
|
5482
5482
|
}), m == null || m(), (b = g) == null || b.disconnect(), g = null, d && cancelAnimationFrame(y);
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
|
-
const
|
|
5485
|
+
const Jc = Mc, ed = kc, td = Pc, nd = _c, rd = Ac, $r = Nc, od = Dc, ad = (e, t, n) => {
|
|
5486
5486
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5487
|
-
platform:
|
|
5487
|
+
platform: qc,
|
|
5488
5488
|
...n
|
|
5489
5489
|
}, a = {
|
|
5490
5490
|
...o.platform,
|
|
5491
5491
|
_c: r
|
|
5492
5492
|
};
|
|
5493
|
-
return
|
|
5493
|
+
return Rc(e, t, {
|
|
5494
5494
|
...o,
|
|
5495
5495
|
platform: a
|
|
5496
5496
|
});
|
|
5497
5497
|
};
|
|
5498
|
-
var Ot = typeof document < "u" ?
|
|
5498
|
+
var Ot = typeof document < "u" ? gi : Gr;
|
|
5499
5499
|
function $t(e, t) {
|
|
5500
5500
|
if (e === t)
|
|
5501
5501
|
return !0;
|
|
@@ -5526,11 +5526,11 @@ function $t(e, t) {
|
|
|
5526
5526
|
}
|
|
5527
5527
|
return e !== e && t !== t;
|
|
5528
5528
|
}
|
|
5529
|
-
function
|
|
5529
|
+
function oa(e) {
|
|
5530
5530
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5531
5531
|
}
|
|
5532
5532
|
function zr(e, t) {
|
|
5533
|
-
const n =
|
|
5533
|
+
const n = oa(e);
|
|
5534
5534
|
return Math.round(t * n) / n;
|
|
5535
5535
|
}
|
|
5536
5536
|
function hn(e) {
|
|
@@ -5539,7 +5539,7 @@ function hn(e) {
|
|
|
5539
5539
|
t.current = e;
|
|
5540
5540
|
}), t;
|
|
5541
5541
|
}
|
|
5542
|
-
function
|
|
5542
|
+
function id(e) {
|
|
5543
5543
|
e === void 0 && (e = {});
|
|
5544
5544
|
const {
|
|
5545
5545
|
placement: t = "bottom",
|
|
@@ -5574,7 +5574,7 @@ function ad(e) {
|
|
|
5574
5574
|
strategy: n,
|
|
5575
5575
|
middleware: v
|
|
5576
5576
|
};
|
|
5577
|
-
H.current && (O.platform = H.current),
|
|
5577
|
+
H.current && (O.platform = H.current), ad(C.current, T.current, O).then((L) => {
|
|
5578
5578
|
const Y = {
|
|
5579
5579
|
...L,
|
|
5580
5580
|
// The floating element's position may be recomputed while it's closed
|
|
@@ -5624,7 +5624,7 @@ function ad(e) {
|
|
|
5624
5624
|
return l ? {
|
|
5625
5625
|
...O,
|
|
5626
5626
|
transform: "translate(" + L + "px, " + Y + "px)",
|
|
5627
|
-
...
|
|
5627
|
+
...oa(A.floating) >= 1.5 && {
|
|
5628
5628
|
willChange: "transform"
|
|
5629
5629
|
}
|
|
5630
5630
|
} : {
|
|
@@ -5641,7 +5641,7 @@ function ad(e) {
|
|
|
5641
5641
|
floatingStyles: j
|
|
5642
5642
|
}), [f, k, B, A, j]);
|
|
5643
5643
|
}
|
|
5644
|
-
const
|
|
5644
|
+
const sd = (e) => {
|
|
5645
5645
|
function t(n) {
|
|
5646
5646
|
return {}.hasOwnProperty.call(n, "current");
|
|
5647
5647
|
}
|
|
@@ -5662,17 +5662,14 @@ const id = (e) => {
|
|
|
5662
5662
|
}).fn(n) : {};
|
|
5663
5663
|
}
|
|
5664
5664
|
};
|
|
5665
|
-
},
|
|
5666
|
-
...Qc(e),
|
|
5667
|
-
options: [e, t]
|
|
5668
|
-
}), ld = (e, t) => ({
|
|
5665
|
+
}, ld = (e, t) => ({
|
|
5669
5666
|
...Jc(e),
|
|
5670
5667
|
options: [e, t]
|
|
5671
5668
|
}), cd = (e, t) => ({
|
|
5672
|
-
...
|
|
5669
|
+
...ed(e),
|
|
5673
5670
|
options: [e, t]
|
|
5674
5671
|
}), dd = (e, t) => ({
|
|
5675
|
-
...
|
|
5672
|
+
...od(e),
|
|
5676
5673
|
options: [e, t]
|
|
5677
5674
|
}), ud = (e, t) => ({
|
|
5678
5675
|
...td(e),
|
|
@@ -5681,10 +5678,13 @@ const id = (e) => {
|
|
|
5681
5678
|
...nd(e),
|
|
5682
5679
|
options: [e, t]
|
|
5683
5680
|
}), pd = (e, t) => ({
|
|
5684
|
-
...
|
|
5681
|
+
...rd(e),
|
|
5682
|
+
options: [e, t]
|
|
5683
|
+
}), md = (e, t) => ({
|
|
5684
|
+
...sd(e),
|
|
5685
5685
|
options: [e, t]
|
|
5686
5686
|
});
|
|
5687
|
-
var
|
|
5687
|
+
var hd = "Arrow", aa = s.forwardRef((e, t) => {
|
|
5688
5688
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
5689
5689
|
return /* @__PURE__ */ u(
|
|
5690
5690
|
K.svg,
|
|
@@ -5699,9 +5699,9 @@ var md = "Arrow", oa = s.forwardRef((e, t) => {
|
|
|
5699
5699
|
}
|
|
5700
5700
|
);
|
|
5701
5701
|
});
|
|
5702
|
-
|
|
5703
|
-
var
|
|
5704
|
-
function
|
|
5702
|
+
aa.displayName = hd;
|
|
5703
|
+
var gd = aa;
|
|
5704
|
+
function vd(e) {
|
|
5705
5705
|
const [t, n] = s.useState(void 0);
|
|
5706
5706
|
return Oe(() => {
|
|
5707
5707
|
if (e) {
|
|
@@ -5723,21 +5723,21 @@ function gd(e) {
|
|
|
5723
5723
|
n(void 0);
|
|
5724
5724
|
}, [e]), t;
|
|
5725
5725
|
}
|
|
5726
|
-
var tr = "Popper", [
|
|
5726
|
+
var tr = "Popper", [ia, sa] = pt(tr), [bd, la] = ia(tr), ca = (e) => {
|
|
5727
5727
|
const { __scopePopper: t, children: n } = e, [r, o] = s.useState(null);
|
|
5728
|
-
return /* @__PURE__ */ u(
|
|
5728
|
+
return /* @__PURE__ */ u(bd, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5729
5729
|
};
|
|
5730
|
-
|
|
5731
|
-
var
|
|
5730
|
+
ca.displayName = tr;
|
|
5731
|
+
var da = "PopperAnchor", ua = s.forwardRef(
|
|
5732
5732
|
(e, t) => {
|
|
5733
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, a =
|
|
5733
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, a = la(da, n), i = s.useRef(null), l = ee(t, i);
|
|
5734
5734
|
return s.useEffect(() => {
|
|
5735
5735
|
a.onAnchorChange((r == null ? void 0 : r.current) || i.current);
|
|
5736
5736
|
}), r ? null : /* @__PURE__ */ u(K.div, { ...o, ref: l });
|
|
5737
5737
|
}
|
|
5738
5738
|
);
|
|
5739
|
-
|
|
5740
|
-
var nr = "PopperContent", [
|
|
5739
|
+
ua.displayName = da;
|
|
5740
|
+
var nr = "PopperContent", [yd, wd] = ia(nr), fa = s.forwardRef(
|
|
5741
5741
|
(e, t) => {
|
|
5742
5742
|
var he, ot, gt, at, vt, je;
|
|
5743
5743
|
const {
|
|
@@ -5755,42 +5755,42 @@ var nr = "PopperContent", [bd, yd] = aa(nr), ua = s.forwardRef(
|
|
|
5755
5755
|
updatePositionStrategy: g = "optimized",
|
|
5756
5756
|
onPlaced: y,
|
|
5757
5757
|
...p
|
|
5758
|
-
} = e, h =
|
|
5758
|
+
} = e, h = la(nr, n), [b, w] = s.useState(null), x = ee(t, (_e) => w(_e)), [E, S] = s.useState(null), C = vd(E), T = (C == null ? void 0 : C.width) ?? 0, $ = (C == null ? void 0 : C.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), z = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, H = Array.isArray(c) ? c : [c], W = H.length > 0, k = {
|
|
5759
5759
|
padding: z,
|
|
5760
|
-
boundary: H.filter(
|
|
5760
|
+
boundary: H.filter(Ed),
|
|
5761
5761
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5762
5762
|
altBoundary: W
|
|
5763
|
-
}, { refs: R, floatingStyles: B, placement: A, isPositioned: j, middlewareData: O } =
|
|
5763
|
+
}, { refs: R, floatingStyles: B, placement: A, isPositioned: j, middlewareData: O } = id({
|
|
5764
5764
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5765
5765
|
strategy: "fixed",
|
|
5766
5766
|
placement: D,
|
|
5767
|
-
whileElementsMounted: (..._e) =>
|
|
5767
|
+
whileElementsMounted: (..._e) => Qc(..._e, {
|
|
5768
5768
|
animationFrame: g === "always"
|
|
5769
5769
|
}),
|
|
5770
5770
|
elements: {
|
|
5771
5771
|
reference: h.anchor
|
|
5772
5772
|
},
|
|
5773
5773
|
middleware: [
|
|
5774
|
-
|
|
5775
|
-
d &&
|
|
5774
|
+
ld({ mainAxis: o + $, alignmentAxis: i }),
|
|
5775
|
+
d && cd({
|
|
5776
5776
|
mainAxis: !0,
|
|
5777
5777
|
crossAxis: !1,
|
|
5778
|
-
limiter: m === "partial" ?
|
|
5778
|
+
limiter: m === "partial" ? dd() : void 0,
|
|
5779
5779
|
...k
|
|
5780
5780
|
}),
|
|
5781
|
-
d &&
|
|
5782
|
-
|
|
5781
|
+
d && ud({ ...k }),
|
|
5782
|
+
fd({
|
|
5783
5783
|
...k,
|
|
5784
5784
|
apply: ({ elements: _e, rects: _, availableWidth: F, availableHeight: Z }) => {
|
|
5785
5785
|
const { width: ne, height: re } = _.reference, G = _e.floating.style;
|
|
5786
5786
|
G.setProperty("--radix-popper-available-width", `${F}px`), G.setProperty("--radix-popper-available-height", `${Z}px`), G.setProperty("--radix-popper-anchor-width", `${ne}px`), G.setProperty("--radix-popper-anchor-height", `${re}px`);
|
|
5787
5787
|
}
|
|
5788
5788
|
}),
|
|
5789
|
-
E &&
|
|
5790
|
-
|
|
5791
|
-
v &&
|
|
5789
|
+
E && md({ element: E, padding: l }),
|
|
5790
|
+
Cd({ arrowWidth: T, arrowHeight: $ }),
|
|
5791
|
+
v && pd({ strategy: "referenceHidden", ...k })
|
|
5792
5792
|
]
|
|
5793
|
-
}), [L, Y] =
|
|
5793
|
+
}), [L, Y] = ha(A), q = le(y);
|
|
5794
5794
|
Oe(() => {
|
|
5795
5795
|
j && (q == null || q());
|
|
5796
5796
|
}, [j, q]);
|
|
@@ -5822,7 +5822,7 @@ var nr = "PopperContent", [bd, yd] = aa(nr), ua = s.forwardRef(
|
|
|
5822
5822
|
},
|
|
5823
5823
|
dir: e.dir,
|
|
5824
5824
|
children: /* @__PURE__ */ u(
|
|
5825
|
-
|
|
5825
|
+
yd,
|
|
5826
5826
|
{
|
|
5827
5827
|
scope: n,
|
|
5828
5828
|
placedSide: L,
|
|
@@ -5851,14 +5851,14 @@ var nr = "PopperContent", [bd, yd] = aa(nr), ua = s.forwardRef(
|
|
|
5851
5851
|
);
|
|
5852
5852
|
}
|
|
5853
5853
|
);
|
|
5854
|
-
|
|
5855
|
-
var
|
|
5854
|
+
fa.displayName = nr;
|
|
5855
|
+
var pa = "PopperArrow", xd = {
|
|
5856
5856
|
top: "bottom",
|
|
5857
5857
|
right: "left",
|
|
5858
5858
|
bottom: "top",
|
|
5859
5859
|
left: "right"
|
|
5860
|
-
},
|
|
5861
|
-
const { __scopePopper: r, ...o } = t, a =
|
|
5860
|
+
}, ma = s.forwardRef(function(t, n) {
|
|
5861
|
+
const { __scopePopper: r, ...o } = t, a = wd(pa, r), i = xd[a.placedSide];
|
|
5862
5862
|
return (
|
|
5863
5863
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
5864
5864
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -5887,7 +5887,7 @@ var fa = "PopperArrow", wd = {
|
|
|
5887
5887
|
visibility: a.shouldHideArrow ? "hidden" : void 0
|
|
5888
5888
|
},
|
|
5889
5889
|
children: /* @__PURE__ */ u(
|
|
5890
|
-
|
|
5890
|
+
gd,
|
|
5891
5891
|
{
|
|
5892
5892
|
...o,
|
|
5893
5893
|
ref: n,
|
|
@@ -5902,25 +5902,25 @@ var fa = "PopperArrow", wd = {
|
|
|
5902
5902
|
)
|
|
5903
5903
|
);
|
|
5904
5904
|
});
|
|
5905
|
-
|
|
5906
|
-
function
|
|
5905
|
+
ma.displayName = pa;
|
|
5906
|
+
function Ed(e) {
|
|
5907
5907
|
return e !== null;
|
|
5908
5908
|
}
|
|
5909
|
-
var
|
|
5909
|
+
var Cd = (e) => ({
|
|
5910
5910
|
name: "transformOrigin",
|
|
5911
5911
|
options: e,
|
|
5912
5912
|
fn(t) {
|
|
5913
5913
|
var h, b, w;
|
|
5914
|
-
const { placement: n, rects: r, middlewareData: o } = t, i = ((h = o.arrow) == null ? void 0 : h.centerOffset) !== 0, l = i ? 0 : e.arrowWidth, d = i ? 0 : e.arrowHeight, [c, f] =
|
|
5914
|
+
const { placement: n, rects: r, middlewareData: o } = t, i = ((h = o.arrow) == null ? void 0 : h.centerOffset) !== 0, l = i ? 0 : e.arrowWidth, d = i ? 0 : e.arrowHeight, [c, f] = ha(n), m = { start: "0%", center: "50%", end: "100%" }[f], v = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + l / 2, g = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + d / 2;
|
|
5915
5915
|
let y = "", p = "";
|
|
5916
5916
|
return c === "bottom" ? (y = i ? m : `${v}px`, p = `${-d}px`) : c === "top" ? (y = i ? m : `${v}px`, p = `${r.floating.height + d}px`) : c === "right" ? (y = `${-d}px`, p = i ? m : `${g}px`) : c === "left" && (y = `${r.floating.width + d}px`, p = i ? m : `${g}px`), { data: { x: y, y: p } };
|
|
5917
5917
|
}
|
|
5918
5918
|
});
|
|
5919
|
-
function
|
|
5919
|
+
function ha(e) {
|
|
5920
5920
|
const [t, n = "center"] = e.split("-");
|
|
5921
5921
|
return [t, n];
|
|
5922
5922
|
}
|
|
5923
|
-
var
|
|
5923
|
+
var Sd = ca, Td = ua, Rd = fa, Nd = ma, Pd = "VisuallyHidden", Zt = s.forwardRef(
|
|
5924
5924
|
(e, t) => /* @__PURE__ */ u(
|
|
5925
5925
|
K.span,
|
|
5926
5926
|
{
|
|
@@ -5943,13 +5943,13 @@ var Cd = la, Sd = da, Td = ua, Rd = pa, Nd = "VisuallyHidden", Zt = s.forwardRef
|
|
|
5943
5943
|
}
|
|
5944
5944
|
)
|
|
5945
5945
|
);
|
|
5946
|
-
Zt.displayName =
|
|
5947
|
-
var
|
|
5948
|
-
|
|
5949
|
-
]), Jt =
|
|
5946
|
+
Zt.displayName = Pd;
|
|
5947
|
+
var Ad = Zt, [Qt, vf] = pt("Tooltip", [
|
|
5948
|
+
sa
|
|
5949
|
+
]), Jt = sa(), ga = "TooltipProvider", Od = 700, On = "tooltip.open", [Md, rr] = Qt(ga), va = (e) => {
|
|
5950
5950
|
const {
|
|
5951
5951
|
__scopeTooltip: t,
|
|
5952
|
-
delayDuration: n =
|
|
5952
|
+
delayDuration: n = Od,
|
|
5953
5953
|
skipDelayDuration: r = 300,
|
|
5954
5954
|
disableHoverableContent: o = !1,
|
|
5955
5955
|
children: a
|
|
@@ -5958,7 +5958,7 @@ var Pd = Zt, [Qt, gf] = pt("Tooltip", [
|
|
|
5958
5958
|
const f = c.current;
|
|
5959
5959
|
return () => window.clearTimeout(f);
|
|
5960
5960
|
}, []), /* @__PURE__ */ u(
|
|
5961
|
-
|
|
5961
|
+
Md,
|
|
5962
5962
|
{
|
|
5963
5963
|
scope: t,
|
|
5964
5964
|
isOpenDelayed: i,
|
|
@@ -5981,8 +5981,8 @@ var Pd = Zt, [Qt, gf] = pt("Tooltip", [
|
|
|
5981
5981
|
}
|
|
5982
5982
|
);
|
|
5983
5983
|
};
|
|
5984
|
-
|
|
5985
|
-
var en = "Tooltip", [
|
|
5984
|
+
va.displayName = ga;
|
|
5985
|
+
var en = "Tooltip", [kd, ht] = Qt(en), ba = (e) => {
|
|
5986
5986
|
const {
|
|
5987
5987
|
__scopeTooltip: t,
|
|
5988
5988
|
children: n,
|
|
@@ -6008,8 +6008,8 @@ var en = "Tooltip", [Md, ht] = Qt(en), va = (e) => {
|
|
|
6008
6008
|
}, [p, w]);
|
|
6009
6009
|
return s.useEffect(() => () => {
|
|
6010
6010
|
g.current && (window.clearTimeout(g.current), g.current = 0);
|
|
6011
|
-
}, []), /* @__PURE__ */ u(
|
|
6012
|
-
|
|
6011
|
+
}, []), /* @__PURE__ */ u(Sd, { ...c, children: /* @__PURE__ */ u(
|
|
6012
|
+
kd,
|
|
6013
6013
|
{
|
|
6014
6014
|
scope: t,
|
|
6015
6015
|
contentId: v,
|
|
@@ -6030,11 +6030,11 @@ var en = "Tooltip", [Md, ht] = Qt(en), va = (e) => {
|
|
|
6030
6030
|
}
|
|
6031
6031
|
) });
|
|
6032
6032
|
};
|
|
6033
|
-
|
|
6034
|
-
var Mn = "TooltipTrigger",
|
|
6033
|
+
ba.displayName = en;
|
|
6034
|
+
var Mn = "TooltipTrigger", ya = s.forwardRef(
|
|
6035
6035
|
(e, t) => {
|
|
6036
6036
|
const { __scopeTooltip: n, ...r } = e, o = ht(Mn, n), a = rr(Mn, n), i = Jt(n), l = s.useRef(null), d = ee(t, l, o.onTriggerChange), c = s.useRef(!1), f = s.useRef(!1), m = s.useCallback(() => c.current = !1, []);
|
|
6037
|
-
return s.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ u(
|
|
6037
|
+
return s.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ u(Td, { asChild: !0, ...i, children: /* @__PURE__ */ u(
|
|
6038
6038
|
K.button,
|
|
6039
6039
|
{
|
|
6040
6040
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
@@ -6059,25 +6059,25 @@ var Mn = "TooltipTrigger", ba = s.forwardRef(
|
|
|
6059
6059
|
) });
|
|
6060
6060
|
}
|
|
6061
6061
|
);
|
|
6062
|
-
|
|
6063
|
-
var or = "TooltipPortal", [
|
|
6062
|
+
ya.displayName = Mn;
|
|
6063
|
+
var or = "TooltipPortal", [Dd, _d] = Qt(or, {
|
|
6064
6064
|
forceMount: void 0
|
|
6065
|
-
}),
|
|
6065
|
+
}), wa = (e) => {
|
|
6066
6066
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = ht(or, t);
|
|
6067
|
-
return /* @__PURE__ */ u(
|
|
6067
|
+
return /* @__PURE__ */ u(Dd, { scope: t, forceMount: n, children: /* @__PURE__ */ u(He, { present: n || a.open, children: /* @__PURE__ */ u(Wt, { asChild: !0, container: o, children: r }) }) });
|
|
6068
6068
|
};
|
|
6069
|
-
|
|
6070
|
-
var Je = "TooltipContent",
|
|
6069
|
+
wa.displayName = or;
|
|
6070
|
+
var Je = "TooltipContent", xa = s.forwardRef(
|
|
6071
6071
|
(e, t) => {
|
|
6072
|
-
const n =
|
|
6073
|
-
return /* @__PURE__ */ u(He, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(
|
|
6072
|
+
const n = _d(Je, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, i = ht(Je, e.__scopeTooltip);
|
|
6073
|
+
return /* @__PURE__ */ u(He, { present: r || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ u(Ea, { side: o, ...a, ref: t }) : /* @__PURE__ */ u(Id, { side: o, ...a, ref: t }) });
|
|
6074
6074
|
}
|
|
6075
|
-
),
|
|
6075
|
+
), Id = s.forwardRef((e, t) => {
|
|
6076
6076
|
const n = ht(Je, e.__scopeTooltip), r = rr(Je, e.__scopeTooltip), o = s.useRef(null), a = ee(t, o), [i, l] = s.useState(null), { trigger: d, onClose: c } = n, f = o.current, { onPointerInTransitChange: m } = r, v = s.useCallback(() => {
|
|
6077
6077
|
l(null), m(!1);
|
|
6078
6078
|
}, [m]), g = s.useCallback(
|
|
6079
6079
|
(y, p) => {
|
|
6080
|
-
const h = y.currentTarget, b = { x: y.clientX, y: y.clientY }, w =
|
|
6080
|
+
const h = y.currentTarget, b = { x: y.clientX, y: y.clientY }, w = zd(b, h.getBoundingClientRect()), x = Wd(b, w), E = Bd(p.getBoundingClientRect()), S = Hd([...x, ...E]);
|
|
6081
6081
|
l(S), m(!0);
|
|
6082
6082
|
},
|
|
6083
6083
|
[m]
|
|
@@ -6092,13 +6092,13 @@ var Je = "TooltipContent", wa = s.forwardRef(
|
|
|
6092
6092
|
}, [d, f, g, v]), s.useEffect(() => {
|
|
6093
6093
|
if (i) {
|
|
6094
6094
|
const y = (p) => {
|
|
6095
|
-
const h = p.target, b = { x: p.clientX, y: p.clientY }, w = (d == null ? void 0 : d.contains(h)) || (f == null ? void 0 : f.contains(h)), x = !
|
|
6095
|
+
const h = p.target, b = { x: p.clientX, y: p.clientY }, w = (d == null ? void 0 : d.contains(h)) || (f == null ? void 0 : f.contains(h)), x = !Vd(b, i);
|
|
6096
6096
|
w ? v() : x && (v(), c());
|
|
6097
6097
|
};
|
|
6098
6098
|
return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
|
|
6099
6099
|
}
|
|
6100
|
-
}, [d, f, i, c, v]), /* @__PURE__ */ u(
|
|
6101
|
-
}), [
|
|
6100
|
+
}, [d, f, i, c, v]), /* @__PURE__ */ u(Ea, { ...e, ref: a });
|
|
6101
|
+
}), [Ld, Fd] = Qt(en, { isInside: !1 }), Ea = s.forwardRef(
|
|
6102
6102
|
(e, t) => {
|
|
6103
6103
|
const {
|
|
6104
6104
|
__scopeTooltip: n,
|
|
@@ -6126,7 +6126,7 @@ var Je = "TooltipContent", wa = s.forwardRef(
|
|
|
6126
6126
|
onFocusOutside: (m) => m.preventDefault(),
|
|
6127
6127
|
onDismiss: f,
|
|
6128
6128
|
children: /* @__PURE__ */ I(
|
|
6129
|
-
|
|
6129
|
+
Rd,
|
|
6130
6130
|
{
|
|
6131
6131
|
"data-state": d.stateAttribute,
|
|
6132
6132
|
...c,
|
|
@@ -6141,8 +6141,8 @@ var Je = "TooltipContent", wa = s.forwardRef(
|
|
|
6141
6141
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6142
6142
|
},
|
|
6143
6143
|
children: [
|
|
6144
|
-
/* @__PURE__ */ u(
|
|
6145
|
-
/* @__PURE__ */ u(
|
|
6144
|
+
/* @__PURE__ */ u(co, { children: r }),
|
|
6145
|
+
/* @__PURE__ */ u(Ld, { scope: n, isInside: !0, children: /* @__PURE__ */ u(Ad, { id: d.contentId, role: "tooltip", children: o || r }) })
|
|
6146
6146
|
]
|
|
6147
6147
|
}
|
|
6148
6148
|
)
|
|
@@ -6150,18 +6150,18 @@ var Je = "TooltipContent", wa = s.forwardRef(
|
|
|
6150
6150
|
);
|
|
6151
6151
|
}
|
|
6152
6152
|
);
|
|
6153
|
-
|
|
6154
|
-
var
|
|
6153
|
+
xa.displayName = Je;
|
|
6154
|
+
var Ca = "TooltipArrow", $d = s.forwardRef(
|
|
6155
6155
|
(e, t) => {
|
|
6156
6156
|
const { __scopeTooltip: n, ...r } = e, o = Jt(n);
|
|
6157
|
-
return
|
|
6158
|
-
|
|
6157
|
+
return Fd(
|
|
6158
|
+
Ca,
|
|
6159
6159
|
n
|
|
6160
|
-
).isInside ? null : /* @__PURE__ */ u(
|
|
6160
|
+
).isInside ? null : /* @__PURE__ */ u(Nd, { ...o, ...r, ref: t });
|
|
6161
6161
|
}
|
|
6162
6162
|
);
|
|
6163
|
-
|
|
6164
|
-
function
|
|
6163
|
+
$d.displayName = Ca;
|
|
6164
|
+
function zd(e, t) {
|
|
6165
6165
|
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);
|
|
6166
6166
|
switch (Math.min(n, r, o, a)) {
|
|
6167
6167
|
case a:
|
|
@@ -6176,7 +6176,7 @@ function $d(e, t) {
|
|
|
6176
6176
|
throw new Error("unreachable");
|
|
6177
6177
|
}
|
|
6178
6178
|
}
|
|
6179
|
-
function
|
|
6179
|
+
function Wd(e, t, n = 5) {
|
|
6180
6180
|
const r = [];
|
|
6181
6181
|
switch (t) {
|
|
6182
6182
|
case "top":
|
|
@@ -6206,7 +6206,7 @@ function zd(e, t, n = 5) {
|
|
|
6206
6206
|
}
|
|
6207
6207
|
return r;
|
|
6208
6208
|
}
|
|
6209
|
-
function
|
|
6209
|
+
function Bd(e) {
|
|
6210
6210
|
const { top: t, right: n, bottom: r, left: o } = e;
|
|
6211
6211
|
return [
|
|
6212
6212
|
{ x: o, y: t },
|
|
@@ -6215,7 +6215,7 @@ function Wd(e) {
|
|
|
6215
6215
|
{ x: o, y: r }
|
|
6216
6216
|
];
|
|
6217
6217
|
}
|
|
6218
|
-
function
|
|
6218
|
+
function Vd(e, t) {
|
|
6219
6219
|
const { x: n, y: r } = e;
|
|
6220
6220
|
let o = !1;
|
|
6221
6221
|
for (let a = 0, i = t.length - 1; a < t.length; i = a++) {
|
|
@@ -6224,11 +6224,11 @@ function Bd(e, t) {
|
|
|
6224
6224
|
}
|
|
6225
6225
|
return o;
|
|
6226
6226
|
}
|
|
6227
|
-
function
|
|
6227
|
+
function Hd(e) {
|
|
6228
6228
|
const t = e.slice();
|
|
6229
|
-
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0),
|
|
6229
|
+
return t.sort((n, r) => n.x < r.x ? -1 : n.x > r.x ? 1 : n.y < r.y ? -1 : n.y > r.y ? 1 : 0), jd(t);
|
|
6230
6230
|
}
|
|
6231
|
-
function
|
|
6231
|
+
function jd(e) {
|
|
6232
6232
|
if (e.length <= 1) return e.slice();
|
|
6233
6233
|
const t = [];
|
|
6234
6234
|
for (let r = 0; r < e.length; r++) {
|
|
@@ -6253,9 +6253,9 @@ function Hd(e) {
|
|
|
6253
6253
|
}
|
|
6254
6254
|
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);
|
|
6255
6255
|
}
|
|
6256
|
-
var
|
|
6257
|
-
const st =
|
|
6258
|
-
|
|
6256
|
+
var Gd = va, Ud = ba, Kd = ya, Yd = wa, Sa = xa;
|
|
6257
|
+
const st = Gd, lt = Ud, ct = Kd, Ze = s.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ u(Yd, { children: /* @__PURE__ */ u(
|
|
6258
|
+
Sa,
|
|
6259
6259
|
{
|
|
6260
6260
|
ref: r,
|
|
6261
6261
|
sideOffset: t,
|
|
@@ -6266,7 +6266,7 @@ const st = jd, lt = Gd, ct = Ud, Ze = s.forwardRef(({ className: e, sideOffset:
|
|
|
6266
6266
|
...n
|
|
6267
6267
|
}
|
|
6268
6268
|
) }));
|
|
6269
|
-
Ze.displayName =
|
|
6269
|
+
Ze.displayName = Sa.displayName;
|
|
6270
6270
|
const ar = s.forwardRef(
|
|
6271
6271
|
({ className: e, type: t, mask: n, onChange: r, placeholder: o, ...a }, i) => {
|
|
6272
6272
|
const [l, d] = s.useState(!1), c = s.useRef(null), m = o || (n === "phone" ? "(999) 999-9999" : n === "postal-code-ca" ? "A9A 9A9" : n === "zip-code-us" ? "99999" : ""), v = () => n === "phone" ? "Only enter numbers. Formatting will be added automatically." : n === "postal-code-ca" ? "Enter letters and numbers only. Spacing will be applied automatically." : n === "zip-code-us" ? "Only enter numbers. Formatting will be added automatically." : "", g = () => {
|
|
@@ -6324,8 +6324,8 @@ const ar = s.forwardRef(
|
|
|
6324
6324
|
}
|
|
6325
6325
|
);
|
|
6326
6326
|
ar.displayName = "Input";
|
|
6327
|
-
var
|
|
6328
|
-
const { decorative: n, orientation: r = Wr, ...o } = e, a =
|
|
6327
|
+
var Xd = "Separator", Wr = "horizontal", qd = ["horizontal", "vertical"], Ta = s.forwardRef((e, t) => {
|
|
6328
|
+
const { decorative: n, orientation: r = Wr, ...o } = e, a = Zd(r) ? r : Wr, l = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
6329
6329
|
return /* @__PURE__ */ u(
|
|
6330
6330
|
K.div,
|
|
6331
6331
|
{
|
|
@@ -6336,14 +6336,14 @@ var Yd = "Separator", Wr = "horizontal", Xd = ["horizontal", "vertical"], Sa = s
|
|
|
6336
6336
|
}
|
|
6337
6337
|
);
|
|
6338
6338
|
});
|
|
6339
|
-
|
|
6340
|
-
function
|
|
6341
|
-
return
|
|
6339
|
+
Ta.displayName = Xd;
|
|
6340
|
+
function Zd(e) {
|
|
6341
|
+
return qd.includes(e);
|
|
6342
6342
|
}
|
|
6343
|
-
var
|
|
6344
|
-
const
|
|
6343
|
+
var Ra = Ta;
|
|
6344
|
+
const Na = s.forwardRef(
|
|
6345
6345
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ u(
|
|
6346
|
-
|
|
6346
|
+
Ra,
|
|
6347
6347
|
{
|
|
6348
6348
|
ref: o,
|
|
6349
6349
|
decorative: n,
|
|
@@ -6357,8 +6357,8 @@ const Ra = s.forwardRef(
|
|
|
6357
6357
|
}
|
|
6358
6358
|
)
|
|
6359
6359
|
);
|
|
6360
|
-
|
|
6361
|
-
const
|
|
6360
|
+
Na.displayName = Ra.displayName;
|
|
6361
|
+
const Qd = Gn, bf = Vo, yf = Ut, Jd = Ho, Pa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6362
6362
|
Vt,
|
|
6363
6363
|
{
|
|
6364
6364
|
className: M(
|
|
@@ -6369,8 +6369,8 @@ const Zd = Gn, vf = Bo, bf = Ut, Qd = Vo, Na = s.forwardRef(({ className: e, ...
|
|
|
6369
6369
|
ref: n
|
|
6370
6370
|
}
|
|
6371
6371
|
));
|
|
6372
|
-
|
|
6373
|
-
const
|
|
6372
|
+
Pa.displayName = Vt.displayName;
|
|
6373
|
+
const eu = Kt(
|
|
6374
6374
|
"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",
|
|
6375
6375
|
{
|
|
6376
6376
|
variants: {
|
|
@@ -6385,13 +6385,13 @@ const Jd = Kt(
|
|
|
6385
6385
|
side: "right"
|
|
6386
6386
|
}
|
|
6387
6387
|
}
|
|
6388
|
-
),
|
|
6389
|
-
/* @__PURE__ */ u(
|
|
6388
|
+
), Aa = s.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ I(Jd, { children: [
|
|
6389
|
+
/* @__PURE__ */ u(Pa, {}),
|
|
6390
6390
|
/* @__PURE__ */ I(
|
|
6391
6391
|
Ht,
|
|
6392
6392
|
{
|
|
6393
6393
|
ref: o,
|
|
6394
|
-
className: M(
|
|
6394
|
+
className: M(eu({ side: e }), t),
|
|
6395
6395
|
...r,
|
|
6396
6396
|
children: [
|
|
6397
6397
|
/* @__PURE__ */ I(Ut, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
@@ -6403,8 +6403,8 @@ const Jd = Kt(
|
|
|
6403
6403
|
}
|
|
6404
6404
|
)
|
|
6405
6405
|
] }));
|
|
6406
|
-
|
|
6407
|
-
const
|
|
6406
|
+
Aa.displayName = Ht.displayName;
|
|
6407
|
+
const tu = ({
|
|
6408
6408
|
className: e,
|
|
6409
6409
|
...t
|
|
6410
6410
|
}) => /* @__PURE__ */ u(
|
|
@@ -6417,8 +6417,8 @@ const eu = ({
|
|
|
6417
6417
|
...t
|
|
6418
6418
|
}
|
|
6419
6419
|
);
|
|
6420
|
-
|
|
6421
|
-
const
|
|
6420
|
+
tu.displayName = "SheetHeader";
|
|
6421
|
+
const nu = ({
|
|
6422
6422
|
className: e,
|
|
6423
6423
|
...t
|
|
6424
6424
|
}) => /* @__PURE__ */ u(
|
|
@@ -6431,8 +6431,8 @@ const tu = ({
|
|
|
6431
6431
|
...t
|
|
6432
6432
|
}
|
|
6433
6433
|
);
|
|
6434
|
-
|
|
6435
|
-
const
|
|
6434
|
+
nu.displayName = "SheetFooter";
|
|
6435
|
+
const ru = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6436
6436
|
jt,
|
|
6437
6437
|
{
|
|
6438
6438
|
ref: n,
|
|
@@ -6440,8 +6440,8 @@ const nu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6440
6440
|
...t
|
|
6441
6441
|
}
|
|
6442
6442
|
));
|
|
6443
|
-
|
|
6444
|
-
const
|
|
6443
|
+
ru.displayName = jt.displayName;
|
|
6444
|
+
const ou = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6445
6445
|
Gt,
|
|
6446
6446
|
{
|
|
6447
6447
|
ref: n,
|
|
@@ -6449,13 +6449,13 @@ const ru = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6449
6449
|
...t
|
|
6450
6450
|
}
|
|
6451
6451
|
));
|
|
6452
|
-
|
|
6453
|
-
function
|
|
6452
|
+
ou.displayName = Gt.displayName;
|
|
6453
|
+
function wf({ onClick: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
6454
6454
|
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, i] = In(!1), l = () => {
|
|
6455
6455
|
i(!0);
|
|
6456
6456
|
};
|
|
6457
6457
|
return /* @__PURE__ */ I("div", { className: "flex items-center gap-3", children: [
|
|
6458
|
-
/* @__PURE__ */ u("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted " + (e !== void 0 ? "cursor-pointer" : ""), children: a ? /* @__PURE__ */ u(ve, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ u(
|
|
6458
|
+
/* @__PURE__ */ u("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted " + (e !== void 0 ? "cursor-pointer" : ""), children: a ? /* @__PURE__ */ u(ve, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ u(rs, { className: "h-5 w-5 text-muted-foreground !bg-sidebar" }) }) : /* @__PURE__ */ u(ve, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ u(
|
|
6459
6459
|
"img",
|
|
6460
6460
|
{
|
|
6461
6461
|
src: o,
|
|
@@ -6470,7 +6470,7 @@ function yf({ onClick: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
|
6470
6470
|
] })
|
|
6471
6471
|
] });
|
|
6472
6472
|
}
|
|
6473
|
-
var
|
|
6473
|
+
var au = "Label", Oa = s.forwardRef((e, t) => /* @__PURE__ */ u(
|
|
6474
6474
|
K.label,
|
|
6475
6475
|
{
|
|
6476
6476
|
...e,
|
|
@@ -6481,14 +6481,14 @@ var ou = "Label", Aa = s.forwardRef((e, t) => /* @__PURE__ */ u(
|
|
|
6481
6481
|
}
|
|
6482
6482
|
}
|
|
6483
6483
|
));
|
|
6484
|
-
|
|
6485
|
-
var
|
|
6486
|
-
function
|
|
6484
|
+
Oa.displayName = au;
|
|
6485
|
+
var iu = Oa;
|
|
6486
|
+
function xf({
|
|
6487
6487
|
className: e,
|
|
6488
6488
|
...t
|
|
6489
6489
|
}) {
|
|
6490
6490
|
return /* @__PURE__ */ u(
|
|
6491
|
-
|
|
6491
|
+
iu,
|
|
6492
6492
|
{
|
|
6493
6493
|
"data-slot": "label",
|
|
6494
6494
|
className: M(
|
|
@@ -6500,7 +6500,7 @@ function wf({
|
|
|
6500
6500
|
);
|
|
6501
6501
|
}
|
|
6502
6502
|
const gn = 1024;
|
|
6503
|
-
function
|
|
6503
|
+
function su() {
|
|
6504
6504
|
const [e, t] = s.useState(void 0);
|
|
6505
6505
|
return s.useEffect(() => {
|
|
6506
6506
|
const n = window.matchMedia(`(max-width: ${gn - 1}px)`), r = () => {
|
|
@@ -6521,14 +6521,14 @@ function Br({
|
|
|
6521
6521
|
}
|
|
6522
6522
|
);
|
|
6523
6523
|
}
|
|
6524
|
-
const
|
|
6524
|
+
const lu = "sidebar:state", cu = 60 * 60 * 24 * 7, du = "16rem", uu = "18rem", fu = "3rem", pu = "b", Ma = s.createContext(null);
|
|
6525
6525
|
function tn() {
|
|
6526
|
-
const e = s.useContext(
|
|
6526
|
+
const e = s.useContext(Ma);
|
|
6527
6527
|
if (!e)
|
|
6528
6528
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
6529
6529
|
return e;
|
|
6530
6530
|
}
|
|
6531
|
-
const
|
|
6531
|
+
const ka = s.forwardRef(
|
|
6532
6532
|
({
|
|
6533
6533
|
defaultOpen: e = !0,
|
|
6534
6534
|
open: t,
|
|
@@ -6538,16 +6538,16 @@ const Ma = s.forwardRef(
|
|
|
6538
6538
|
children: a,
|
|
6539
6539
|
...i
|
|
6540
6540
|
}, l) => {
|
|
6541
|
-
const d =
|
|
6541
|
+
const d = su(), [c, f] = s.useState(!1), [m, v] = s.useState(e), g = t ?? m, y = s.useCallback(
|
|
6542
6542
|
(w) => {
|
|
6543
6543
|
const x = typeof w == "function" ? w(g) : w;
|
|
6544
|
-
n ? n(x) : v(x), document.cookie = `${
|
|
6544
|
+
n ? n(x) : v(x), document.cookie = `${lu}=${x}; path=/; max-age=${cu}`;
|
|
6545
6545
|
},
|
|
6546
6546
|
[n, g]
|
|
6547
6547
|
), p = s.useCallback(() => d ? f((w) => !w) : y((w) => !w), [d, y, f]);
|
|
6548
6548
|
s.useEffect(() => {
|
|
6549
6549
|
const w = (x) => {
|
|
6550
|
-
x.key ===
|
|
6550
|
+
x.key === pu && (x.metaKey || x.ctrlKey) && (x.preventDefault(), p());
|
|
6551
6551
|
};
|
|
6552
6552
|
return window.addEventListener("keydown", w), () => window.removeEventListener("keydown", w);
|
|
6553
6553
|
}, [p]);
|
|
@@ -6563,12 +6563,12 @@ const Ma = s.forwardRef(
|
|
|
6563
6563
|
}),
|
|
6564
6564
|
[h, g, y, d, c, f, p]
|
|
6565
6565
|
);
|
|
6566
|
-
return /* @__PURE__ */ u(
|
|
6566
|
+
return /* @__PURE__ */ u(Ma.Provider, { value: b, children: /* @__PURE__ */ u(st, { delayDuration: 0, children: /* @__PURE__ */ u(
|
|
6567
6567
|
"div",
|
|
6568
6568
|
{
|
|
6569
6569
|
style: {
|
|
6570
|
-
"--sidebar-width":
|
|
6571
|
-
"--sidebar-width-icon":
|
|
6570
|
+
"--sidebar-width": du,
|
|
6571
|
+
"--sidebar-width-icon": fu,
|
|
6572
6572
|
...o
|
|
6573
6573
|
},
|
|
6574
6574
|
className: M(
|
|
@@ -6582,8 +6582,8 @@ const Ma = s.forwardRef(
|
|
|
6582
6582
|
) }) });
|
|
6583
6583
|
}
|
|
6584
6584
|
);
|
|
6585
|
-
|
|
6586
|
-
const
|
|
6585
|
+
ka.displayName = "SidebarProvider";
|
|
6586
|
+
const Da = s.forwardRef(
|
|
6587
6587
|
({
|
|
6588
6588
|
side: e = "left",
|
|
6589
6589
|
variant: t = "sidebar",
|
|
@@ -6604,14 +6604,14 @@ const ka = s.forwardRef(
|
|
|
6604
6604
|
...a,
|
|
6605
6605
|
children: o
|
|
6606
6606
|
}
|
|
6607
|
-
) : l ? /* @__PURE__ */ u(
|
|
6608
|
-
|
|
6607
|
+
) : l ? /* @__PURE__ */ u(Qd, { open: c, onOpenChange: f, ...a, children: /* @__PURE__ */ u(
|
|
6608
|
+
Aa,
|
|
6609
6609
|
{
|
|
6610
6610
|
"data-sidebar": "sidebar",
|
|
6611
6611
|
"data-mobile": "true",
|
|
6612
6612
|
className: "w-(--sidebar-width) bg-sidebar p-0 text-sidebar-foreground [&>button]:hidden",
|
|
6613
6613
|
style: {
|
|
6614
|
-
"--sidebar-width":
|
|
6614
|
+
"--sidebar-width": uu
|
|
6615
6615
|
},
|
|
6616
6616
|
side: e,
|
|
6617
6617
|
children: /* @__PURE__ */ u("div", { className: "flex h-full w-full flex-col", children: o })
|
|
@@ -6663,8 +6663,8 @@ const ka = s.forwardRef(
|
|
|
6663
6663
|
);
|
|
6664
6664
|
}
|
|
6665
6665
|
);
|
|
6666
|
-
|
|
6667
|
-
const
|
|
6666
|
+
Da.displayName = "Sidebar";
|
|
6667
|
+
const _a = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
6668
6668
|
const { toggleSidebar: o } = tn();
|
|
6669
6669
|
return /* @__PURE__ */ I(
|
|
6670
6670
|
ve,
|
|
@@ -6679,14 +6679,14 @@ const Da = s.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6679
6679
|
},
|
|
6680
6680
|
...n,
|
|
6681
6681
|
children: [
|
|
6682
|
-
/* @__PURE__ */ u(
|
|
6682
|
+
/* @__PURE__ */ u(Zi, {}),
|
|
6683
6683
|
/* @__PURE__ */ u("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6684
6684
|
]
|
|
6685
6685
|
}
|
|
6686
6686
|
);
|
|
6687
6687
|
});
|
|
6688
|
-
|
|
6689
|
-
const
|
|
6688
|
+
_a.displayName = "SidebarTrigger";
|
|
6689
|
+
const mu = s.forwardRef(({ className: e, ...t }, n) => {
|
|
6690
6690
|
const { toggleSidebar: r } = tn();
|
|
6691
6691
|
return /* @__PURE__ */ u(
|
|
6692
6692
|
"button",
|
|
@@ -6710,8 +6710,8 @@ const pu = s.forwardRef(({ className: e, ...t }, n) => {
|
|
|
6710
6710
|
}
|
|
6711
6711
|
);
|
|
6712
6712
|
});
|
|
6713
|
-
|
|
6714
|
-
const
|
|
6713
|
+
mu.displayName = "SidebarRail";
|
|
6714
|
+
const hu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6715
6715
|
"main",
|
|
6716
6716
|
{
|
|
6717
6717
|
ref: n,
|
|
@@ -6723,8 +6723,8 @@ const mu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6723
6723
|
...t
|
|
6724
6724
|
}
|
|
6725
6725
|
));
|
|
6726
|
-
|
|
6727
|
-
const
|
|
6726
|
+
hu.displayName = "SidebarInset";
|
|
6727
|
+
const gu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6728
6728
|
ar,
|
|
6729
6729
|
{
|
|
6730
6730
|
ref: n,
|
|
@@ -6736,8 +6736,8 @@ const hu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6736
6736
|
...t
|
|
6737
6737
|
}
|
|
6738
6738
|
));
|
|
6739
|
-
|
|
6740
|
-
const
|
|
6739
|
+
gu.displayName = "SidebarInput";
|
|
6740
|
+
const Ia = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6741
6741
|
"div",
|
|
6742
6742
|
{
|
|
6743
6743
|
ref: n,
|
|
@@ -6746,8 +6746,8 @@ const _a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6746
6746
|
...t
|
|
6747
6747
|
}
|
|
6748
6748
|
));
|
|
6749
|
-
|
|
6750
|
-
const
|
|
6749
|
+
Ia.displayName = "SidebarHeader";
|
|
6750
|
+
const La = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6751
6751
|
"div",
|
|
6752
6752
|
{
|
|
6753
6753
|
ref: n,
|
|
@@ -6756,9 +6756,9 @@ const Ia = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6756
6756
|
...t
|
|
6757
6757
|
}
|
|
6758
6758
|
));
|
|
6759
|
-
|
|
6760
|
-
const
|
|
6761
|
-
|
|
6759
|
+
La.displayName = "SidebarFooter";
|
|
6760
|
+
const vu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6761
|
+
Na,
|
|
6762
6762
|
{
|
|
6763
6763
|
ref: n,
|
|
6764
6764
|
"data-sidebar": "separator",
|
|
@@ -6766,8 +6766,8 @@ const gu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6766
6766
|
...t
|
|
6767
6767
|
}
|
|
6768
6768
|
));
|
|
6769
|
-
|
|
6770
|
-
const
|
|
6769
|
+
vu.displayName = "SidebarSeparator";
|
|
6770
|
+
const Fa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6771
6771
|
"div",
|
|
6772
6772
|
{
|
|
6773
6773
|
ref: n,
|
|
@@ -6779,8 +6779,8 @@ const La = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6779
6779
|
...t
|
|
6780
6780
|
}
|
|
6781
6781
|
));
|
|
6782
|
-
|
|
6783
|
-
const
|
|
6782
|
+
Fa.displayName = "SidebarContent";
|
|
6783
|
+
const bu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6784
6784
|
"div",
|
|
6785
6785
|
{
|
|
6786
6786
|
ref: n,
|
|
@@ -6789,8 +6789,8 @@ const vu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6789
6789
|
...t
|
|
6790
6790
|
}
|
|
6791
6791
|
));
|
|
6792
|
-
|
|
6793
|
-
const
|
|
6792
|
+
bu.displayName = "SidebarGroup";
|
|
6793
|
+
const yu = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ u(
|
|
6794
6794
|
t ? de : "div",
|
|
6795
6795
|
{
|
|
6796
6796
|
ref: r,
|
|
@@ -6803,8 +6803,8 @@ const bu = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
6803
6803
|
...n
|
|
6804
6804
|
}
|
|
6805
6805
|
));
|
|
6806
|
-
|
|
6807
|
-
const
|
|
6806
|
+
yu.displayName = "SidebarGroupLabel";
|
|
6807
|
+
const wu = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ u(
|
|
6808
6808
|
t ? de : "button",
|
|
6809
6809
|
{
|
|
6810
6810
|
ref: r,
|
|
@@ -6819,8 +6819,8 @@ const yu = s.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
6819
6819
|
...n
|
|
6820
6820
|
}
|
|
6821
6821
|
));
|
|
6822
|
-
|
|
6823
|
-
const
|
|
6822
|
+
wu.displayName = "SidebarGroupAction";
|
|
6823
|
+
const xu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6824
6824
|
"div",
|
|
6825
6825
|
{
|
|
6826
6826
|
ref: n,
|
|
@@ -6829,8 +6829,8 @@ const wu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6829
6829
|
...t
|
|
6830
6830
|
}
|
|
6831
6831
|
));
|
|
6832
|
-
|
|
6833
|
-
const
|
|
6832
|
+
xu.displayName = "SidebarGroupContent";
|
|
6833
|
+
const $a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6834
6834
|
"ul",
|
|
6835
6835
|
{
|
|
6836
6836
|
ref: n,
|
|
@@ -6839,8 +6839,8 @@ const Fa = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6839
6839
|
...t
|
|
6840
6840
|
}
|
|
6841
6841
|
));
|
|
6842
|
-
|
|
6843
|
-
const
|
|
6842
|
+
$a.displayName = "SidebarMenu";
|
|
6843
|
+
const za = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6844
6844
|
"li",
|
|
6845
6845
|
{
|
|
6846
6846
|
ref: n,
|
|
@@ -6849,8 +6849,8 @@ const $a = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6849
6849
|
...t
|
|
6850
6850
|
}
|
|
6851
6851
|
));
|
|
6852
|
-
|
|
6853
|
-
const
|
|
6852
|
+
za.displayName = "SidebarMenuItem";
|
|
6853
|
+
const Eu = Kt(
|
|
6854
6854
|
"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",
|
|
6855
6855
|
{
|
|
6856
6856
|
variants: {
|
|
@@ -6869,7 +6869,7 @@ const xu = Kt(
|
|
|
6869
6869
|
size: "default"
|
|
6870
6870
|
}
|
|
6871
6871
|
}
|
|
6872
|
-
),
|
|
6872
|
+
), Wa = s.forwardRef(
|
|
6873
6873
|
({
|
|
6874
6874
|
asChild: e = !1,
|
|
6875
6875
|
isActive: t = !1,
|
|
@@ -6886,7 +6886,7 @@ const xu = Kt(
|
|
|
6886
6886
|
"data-sidebar": "menu-button",
|
|
6887
6887
|
"data-size": r,
|
|
6888
6888
|
"data-active": t,
|
|
6889
|
-
className: M(
|
|
6889
|
+
className: M(Eu({ variant: n, size: r }), a),
|
|
6890
6890
|
...i
|
|
6891
6891
|
}
|
|
6892
6892
|
);
|
|
@@ -6906,8 +6906,8 @@ const xu = Kt(
|
|
|
6906
6906
|
] })) : m;
|
|
6907
6907
|
}
|
|
6908
6908
|
);
|
|
6909
|
-
|
|
6910
|
-
const
|
|
6909
|
+
Wa.displayName = "SidebarMenuButton";
|
|
6910
|
+
const Cu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ u(
|
|
6911
6911
|
t ? de : "button",
|
|
6912
6912
|
{
|
|
6913
6913
|
ref: o,
|
|
@@ -6926,8 +6926,8 @@ const Eu = s.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, .
|
|
|
6926
6926
|
...r
|
|
6927
6927
|
}
|
|
6928
6928
|
));
|
|
6929
|
-
|
|
6930
|
-
const
|
|
6929
|
+
Cu.displayName = "SidebarMenuAction";
|
|
6930
|
+
const Su = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6931
6931
|
"div",
|
|
6932
6932
|
{
|
|
6933
6933
|
ref: n,
|
|
@@ -6944,8 +6944,8 @@ const Cu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6944
6944
|
...t
|
|
6945
6945
|
}
|
|
6946
6946
|
));
|
|
6947
|
-
|
|
6948
|
-
const
|
|
6947
|
+
Su.displayName = "SidebarMenuBadge";
|
|
6948
|
+
const Tu = s.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
6949
6949
|
const o = s.useMemo(() => `${Math.floor(Math.random() * 40) + 50}%`, []);
|
|
6950
6950
|
return /* @__PURE__ */ I(
|
|
6951
6951
|
"div",
|
|
@@ -6976,8 +6976,8 @@ const Su = s.forwardRef(({ className: e, showIcon: t = !1, ...n }, r) => {
|
|
|
6976
6976
|
}
|
|
6977
6977
|
);
|
|
6978
6978
|
});
|
|
6979
|
-
|
|
6980
|
-
const
|
|
6979
|
+
Tu.displayName = "SidebarMenuSkeleton";
|
|
6980
|
+
const Ru = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
6981
6981
|
"ul",
|
|
6982
6982
|
{
|
|
6983
6983
|
ref: n,
|
|
@@ -6990,10 +6990,10 @@ const Tu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
6990
6990
|
...t
|
|
6991
6991
|
}
|
|
6992
6992
|
));
|
|
6993
|
-
|
|
6994
|
-
const
|
|
6995
|
-
|
|
6996
|
-
const
|
|
6993
|
+
Ru.displayName = "SidebarMenuSub";
|
|
6994
|
+
const Nu = s.forwardRef(({ ...e }, t) => /* @__PURE__ */ u("li", { ref: t, ...e }));
|
|
6995
|
+
Nu.displayName = "SidebarMenuSubItem";
|
|
6996
|
+
const Pu = s.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */ u(
|
|
6997
6997
|
e ? de : "a",
|
|
6998
6998
|
{
|
|
6999
6999
|
ref: a,
|
|
@@ -7011,8 +7011,8 @@ const Nu = s.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
|
|
|
7011
7011
|
...o
|
|
7012
7012
|
}
|
|
7013
7013
|
));
|
|
7014
|
-
|
|
7015
|
-
function
|
|
7014
|
+
Pu.displayName = "SidebarMenuSubButton";
|
|
7015
|
+
function Au(e) {
|
|
7016
7016
|
const t = e + "CollectionProvider", [n, r] = pt(t), [o, a] = n(
|
|
7017
7017
|
t,
|
|
7018
7018
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
@@ -7052,7 +7052,7 @@ function Pu(e) {
|
|
|
7052
7052
|
r
|
|
7053
7053
|
];
|
|
7054
7054
|
}
|
|
7055
|
-
var ir = "ToastProvider", [sr,
|
|
7055
|
+
var ir = "ToastProvider", [sr, Ou, Mu] = Au("Toast"), [Ba, Ef] = pt("Toast", [Mu]), [ku, nn] = Ba(ir), Va = (e) => {
|
|
7056
7056
|
const {
|
|
7057
7057
|
__scopeToast: t,
|
|
7058
7058
|
label: n = "Notification",
|
|
@@ -7064,7 +7064,7 @@ var ir = "ToastProvider", [sr, Au, Ou] = Pu("Toast"), [Wa, xf] = pt("Toast", [Ou
|
|
|
7064
7064
|
return n.trim() || console.error(
|
|
7065
7065
|
`Invalid prop \`label\` supplied to \`${ir}\`. Expected non-empty \`string\`.`
|
|
7066
7066
|
), /* @__PURE__ */ u(sr.Provider, { scope: t, children: /* @__PURE__ */ u(
|
|
7067
|
-
|
|
7067
|
+
ku,
|
|
7068
7068
|
{
|
|
7069
7069
|
scope: t,
|
|
7070
7070
|
label: n,
|
|
@@ -7082,15 +7082,15 @@ var ir = "ToastProvider", [sr, Au, Ou] = Pu("Toast"), [Wa, xf] = pt("Toast", [Ou
|
|
|
7082
7082
|
}
|
|
7083
7083
|
) });
|
|
7084
7084
|
};
|
|
7085
|
-
|
|
7086
|
-
var
|
|
7085
|
+
Va.displayName = ir;
|
|
7086
|
+
var Ha = "ToastViewport", Du = ["F8"], kn = "toast.viewportPause", Dn = "toast.viewportResume", ja = s.forwardRef(
|
|
7087
7087
|
(e, t) => {
|
|
7088
7088
|
const {
|
|
7089
7089
|
__scopeToast: n,
|
|
7090
|
-
hotkey: r =
|
|
7090
|
+
hotkey: r = Du,
|
|
7091
7091
|
label: o = "Notifications ({hotkey})",
|
|
7092
7092
|
...a
|
|
7093
|
-
} = e, i = nn(
|
|
7093
|
+
} = e, i = nn(Ha, n), l = Ou(n), d = s.useRef(null), c = s.useRef(null), f = s.useRef(null), m = s.useRef(null), v = ee(t, m, i.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = i.toastCount > 0;
|
|
7094
7094
|
s.useEffect(() => {
|
|
7095
7095
|
const h = (b) => {
|
|
7096
7096
|
var x;
|
|
@@ -7123,7 +7123,7 @@ var Va = "ToastViewport", ku = ["F8"], kn = "toast.viewportPause", Dn = "toast.v
|
|
|
7123
7123
|
const p = s.useCallback(
|
|
7124
7124
|
({ tabbingDirection: h }) => {
|
|
7125
7125
|
const w = l().map((x) => {
|
|
7126
|
-
const E = x.ref.current, S = [E, ...
|
|
7126
|
+
const E = x.ref.current, S = [E, ...Uu(E)];
|
|
7127
7127
|
return h === "forwards" ? S : S.reverse();
|
|
7128
7128
|
});
|
|
7129
7129
|
return (h === "forwards" ? w.reverse() : w).flat();
|
|
@@ -7149,7 +7149,7 @@ var Va = "ToastViewport", ku = ["F8"], kn = "toast.viewportPause", Dn = "toast.v
|
|
|
7149
7149
|
return h.addEventListener("keydown", b), () => h.removeEventListener("keydown", b);
|
|
7150
7150
|
}
|
|
7151
7151
|
}, [l, p]), /* @__PURE__ */ I(
|
|
7152
|
-
|
|
7152
|
+
cl,
|
|
7153
7153
|
{
|
|
7154
7154
|
ref: d,
|
|
7155
7155
|
role: "region",
|
|
@@ -7187,10 +7187,10 @@ var Va = "ToastViewport", ku = ["F8"], kn = "toast.viewportPause", Dn = "toast.v
|
|
|
7187
7187
|
);
|
|
7188
7188
|
}
|
|
7189
7189
|
);
|
|
7190
|
-
|
|
7191
|
-
var
|
|
7190
|
+
ja.displayName = Ha;
|
|
7191
|
+
var Ga = "ToastFocusProxy", _n = s.forwardRef(
|
|
7192
7192
|
(e, t) => {
|
|
7193
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = nn(
|
|
7193
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = nn(Ga, n);
|
|
7194
7194
|
return /* @__PURE__ */ u(
|
|
7195
7195
|
Zt,
|
|
7196
7196
|
{
|
|
@@ -7208,8 +7208,8 @@ var ja = "ToastFocusProxy", _n = s.forwardRef(
|
|
|
7208
7208
|
);
|
|
7209
7209
|
}
|
|
7210
7210
|
);
|
|
7211
|
-
_n.displayName =
|
|
7212
|
-
var rn = "Toast",
|
|
7211
|
+
_n.displayName = Ga;
|
|
7212
|
+
var rn = "Toast", _u = "toast.swipeStart", Iu = "toast.swipeMove", Lu = "toast.swipeCancel", Fu = "toast.swipeEnd", Ua = s.forwardRef(
|
|
7213
7213
|
(e, t) => {
|
|
7214
7214
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...i } = e, [l = !0, d] = Wn({
|
|
7215
7215
|
prop: r,
|
|
@@ -7217,7 +7217,7 @@ var rn = "Toast", Du = "toast.swipeStart", _u = "toast.swipeMove", Iu = "toast.s
|
|
|
7217
7217
|
onChange: a
|
|
7218
7218
|
});
|
|
7219
7219
|
return /* @__PURE__ */ u(He, { present: n || l, children: /* @__PURE__ */ u(
|
|
7220
|
-
|
|
7220
|
+
Wu,
|
|
7221
7221
|
{
|
|
7222
7222
|
open: l,
|
|
7223
7223
|
...i,
|
|
@@ -7243,11 +7243,11 @@ var rn = "Toast", Du = "toast.swipeStart", _u = "toast.swipeMove", Iu = "toast.s
|
|
|
7243
7243
|
) });
|
|
7244
7244
|
}
|
|
7245
7245
|
);
|
|
7246
|
-
|
|
7247
|
-
var [
|
|
7246
|
+
Ua.displayName = rn;
|
|
7247
|
+
var [$u, zu] = Ba(rn, {
|
|
7248
7248
|
onClose() {
|
|
7249
7249
|
}
|
|
7250
|
-
}),
|
|
7250
|
+
}), Wu = s.forwardRef(
|
|
7251
7251
|
(e, t) => {
|
|
7252
7252
|
const {
|
|
7253
7253
|
__scopeToast: n,
|
|
@@ -7288,10 +7288,10 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7288
7288
|
}, [p.viewport, S, d, c, W]), s.useEffect(() => {
|
|
7289
7289
|
a && !p.isClosePausedRef.current && W(S);
|
|
7290
7290
|
}, [a, S, p.isClosePausedRef, W]), s.useEffect(() => (D(), () => z()), [D, z]);
|
|
7291
|
-
const k = s.useMemo(() => h ?
|
|
7291
|
+
const k = s.useMemo(() => h ? Ja(h) : null, [h]);
|
|
7292
7292
|
return p.viewport ? /* @__PURE__ */ I(Ae, { children: [
|
|
7293
7293
|
k && /* @__PURE__ */ u(
|
|
7294
|
-
|
|
7294
|
+
Bu,
|
|
7295
7295
|
{
|
|
7296
7296
|
__scopeToast: n,
|
|
7297
7297
|
role: "status",
|
|
@@ -7300,9 +7300,9 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7300
7300
|
children: k
|
|
7301
7301
|
}
|
|
7302
7302
|
),
|
|
7303
|
-
/* @__PURE__ */ u(
|
|
7303
|
+
/* @__PURE__ */ u($u, { scope: n, onClose: H, children: Ln.createPortal(
|
|
7304
7304
|
/* @__PURE__ */ u(sr.ItemSlot, { scope: n, children: /* @__PURE__ */ u(
|
|
7305
|
-
|
|
7305
|
+
ll,
|
|
7306
7306
|
{
|
|
7307
7307
|
asChild: !0,
|
|
7308
7308
|
onEscapeKeyDown: U(l, () => {
|
|
@@ -7329,9 +7329,9 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7329
7329
|
onPointerMove: U(e.onPointerMove, (R) => {
|
|
7330
7330
|
if (!x.current) return;
|
|
7331
7331
|
const B = R.clientX - x.current.x, A = R.clientY - x.current.y, j = !!E.current, O = ["left", "right"].includes(p.swipeDirection), L = ["left", "up"].includes(p.swipeDirection) ? Math.min : Math.max, Y = O ? L(0, B) : 0, q = O ? 0 : L(0, A), te = R.pointerType === "touch" ? 10 : 2, Q = { x: Y, y: q }, J = { originalEvent: R, delta: Q };
|
|
7332
|
-
j ? (E.current = Q, Rt(
|
|
7332
|
+
j ? (E.current = Q, Rt(Iu, m, J, {
|
|
7333
7333
|
discrete: !1
|
|
7334
|
-
})) : Vr(Q, p.swipeDirection, te) ? (E.current = Q, Rt(
|
|
7334
|
+
})) : Vr(Q, p.swipeDirection, te) ? (E.current = Q, Rt(_u, f, J, {
|
|
7335
7335
|
discrete: !1
|
|
7336
7336
|
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(B) > te || Math.abs(A) > te) && (x.current = null);
|
|
7337
7337
|
}),
|
|
@@ -7339,10 +7339,10 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7339
7339
|
const B = E.current, A = R.target;
|
|
7340
7340
|
if (A.hasPointerCapture(R.pointerId) && A.releasePointerCapture(R.pointerId), E.current = null, x.current = null, B) {
|
|
7341
7341
|
const j = R.currentTarget, O = { originalEvent: R, delta: B };
|
|
7342
|
-
Vr(B, p.swipeDirection, p.swipeThreshold) ? Rt(
|
|
7342
|
+
Vr(B, p.swipeDirection, p.swipeThreshold) ? Rt(Fu, g, O, {
|
|
7343
7343
|
discrete: !0
|
|
7344
7344
|
}) : Rt(
|
|
7345
|
-
|
|
7345
|
+
Lu,
|
|
7346
7346
|
v,
|
|
7347
7347
|
O,
|
|
7348
7348
|
{
|
|
@@ -7361,9 +7361,9 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7361
7361
|
) })
|
|
7362
7362
|
] }) : null;
|
|
7363
7363
|
}
|
|
7364
|
-
),
|
|
7364
|
+
), Bu = (e) => {
|
|
7365
7365
|
const { __scopeToast: t, children: n, ...r } = e, o = nn(rn, t), [a, i] = s.useState(!1), [l, d] = s.useState(!1);
|
|
7366
|
-
return
|
|
7366
|
+
return ju(() => i(!0)), s.useEffect(() => {
|
|
7367
7367
|
const c = window.setTimeout(() => d(!0), 1e3);
|
|
7368
7368
|
return () => window.clearTimeout(c);
|
|
7369
7369
|
}, []), l ? null : /* @__PURE__ */ u(Wt, { asChild: !0, children: /* @__PURE__ */ u(Zt, { ...r, children: a && /* @__PURE__ */ I(Ae, { children: [
|
|
@@ -7371,33 +7371,33 @@ var [Fu, $u] = Wa(rn, {
|
|
|
7371
7371
|
" ",
|
|
7372
7372
|
n
|
|
7373
7373
|
] }) }) });
|
|
7374
|
-
},
|
|
7374
|
+
}, Vu = "ToastTitle", Ka = s.forwardRef(
|
|
7375
7375
|
(e, t) => {
|
|
7376
7376
|
const { __scopeToast: n, ...r } = e;
|
|
7377
7377
|
return /* @__PURE__ */ u(K.div, { ...r, ref: t });
|
|
7378
7378
|
}
|
|
7379
7379
|
);
|
|
7380
|
-
|
|
7381
|
-
var
|
|
7380
|
+
Ka.displayName = Vu;
|
|
7381
|
+
var Hu = "ToastDescription", Ya = s.forwardRef(
|
|
7382
7382
|
(e, t) => {
|
|
7383
7383
|
const { __scopeToast: n, ...r } = e;
|
|
7384
7384
|
return /* @__PURE__ */ u(K.div, { ...r, ref: t });
|
|
7385
7385
|
}
|
|
7386
7386
|
);
|
|
7387
|
-
|
|
7388
|
-
var
|
|
7387
|
+
Ya.displayName = Hu;
|
|
7388
|
+
var Xa = "ToastAction", qa = s.forwardRef(
|
|
7389
7389
|
(e, t) => {
|
|
7390
7390
|
const { altText: n, ...r } = e;
|
|
7391
|
-
return n.trim() ? /* @__PURE__ */ u(
|
|
7392
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
7391
|
+
return n.trim() ? /* @__PURE__ */ u(Qa, { altText: n, asChild: !0, children: /* @__PURE__ */ u(lr, { ...r, ref: t }) }) : (console.error(
|
|
7392
|
+
`Invalid prop \`altText\` supplied to \`${Xa}\`. Expected non-empty \`string\`.`
|
|
7393
7393
|
), null);
|
|
7394
7394
|
}
|
|
7395
7395
|
);
|
|
7396
|
-
|
|
7397
|
-
var
|
|
7396
|
+
qa.displayName = Xa;
|
|
7397
|
+
var Za = "ToastClose", lr = s.forwardRef(
|
|
7398
7398
|
(e, t) => {
|
|
7399
|
-
const { __scopeToast: n, ...r } = e, o =
|
|
7400
|
-
return /* @__PURE__ */ u(
|
|
7399
|
+
const { __scopeToast: n, ...r } = e, o = zu(Za, n);
|
|
7400
|
+
return /* @__PURE__ */ u(Qa, { asChild: !0, children: /* @__PURE__ */ u(
|
|
7401
7401
|
K.button,
|
|
7402
7402
|
{
|
|
7403
7403
|
type: "button",
|
|
@@ -7408,8 +7408,8 @@ var qa = "ToastClose", lr = s.forwardRef(
|
|
|
7408
7408
|
) });
|
|
7409
7409
|
}
|
|
7410
7410
|
);
|
|
7411
|
-
lr.displayName =
|
|
7412
|
-
var
|
|
7411
|
+
lr.displayName = Za;
|
|
7412
|
+
var Qa = s.forwardRef((e, t) => {
|
|
7413
7413
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
7414
7414
|
return /* @__PURE__ */ u(
|
|
7415
7415
|
K.div,
|
|
@@ -7421,29 +7421,29 @@ var Za = s.forwardRef((e, t) => {
|
|
|
7421
7421
|
}
|
|
7422
7422
|
);
|
|
7423
7423
|
});
|
|
7424
|
-
function
|
|
7424
|
+
function Ja(e) {
|
|
7425
7425
|
const t = [];
|
|
7426
7426
|
return Array.from(e.childNodes).forEach((r) => {
|
|
7427
|
-
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent),
|
|
7427
|
+
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), Gu(r)) {
|
|
7428
7428
|
const o = r.ariaHidden || r.hidden || r.style.display === "none", a = r.dataset.radixToastAnnounceExclude === "";
|
|
7429
7429
|
if (!o)
|
|
7430
7430
|
if (a) {
|
|
7431
7431
|
const i = r.dataset.radixToastAnnounceAlt;
|
|
7432
7432
|
i && t.push(i);
|
|
7433
7433
|
} else
|
|
7434
|
-
t.push(...
|
|
7434
|
+
t.push(...Ja(r));
|
|
7435
7435
|
}
|
|
7436
7436
|
}), t;
|
|
7437
7437
|
}
|
|
7438
7438
|
function Rt(e, t, n, { discrete: r }) {
|
|
7439
7439
|
const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
7440
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
7440
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? uo(o, a) : o.dispatchEvent(a);
|
|
7441
7441
|
}
|
|
7442
7442
|
var Vr = (e, t, n = 0) => {
|
|
7443
7443
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
7444
7444
|
return t === "left" || t === "right" ? a && r > n : !a && o > n;
|
|
7445
7445
|
};
|
|
7446
|
-
function
|
|
7446
|
+
function ju(e = () => {
|
|
7447
7447
|
}) {
|
|
7448
7448
|
const t = le(e);
|
|
7449
7449
|
Oe(() => {
|
|
@@ -7453,10 +7453,10 @@ function Hu(e = () => {
|
|
|
7453
7453
|
};
|
|
7454
7454
|
}, [t]);
|
|
7455
7455
|
}
|
|
7456
|
-
function
|
|
7456
|
+
function Gu(e) {
|
|
7457
7457
|
return e.nodeType === e.ELEMENT_NODE;
|
|
7458
7458
|
}
|
|
7459
|
-
function
|
|
7459
|
+
function Uu(e) {
|
|
7460
7460
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
7461
7461
|
acceptNode: (r) => {
|
|
7462
7462
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -7470,9 +7470,9 @@ function vn(e) {
|
|
|
7470
7470
|
const t = document.activeElement;
|
|
7471
7471
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7472
7472
|
}
|
|
7473
|
-
var
|
|
7474
|
-
const
|
|
7475
|
-
|
|
7473
|
+
var Ku = Va, ei = ja, ti = Ua, ni = Ka, ri = Ya, oi = qa, ai = lr;
|
|
7474
|
+
const Yu = Ku, ii = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7475
|
+
ei,
|
|
7476
7476
|
{
|
|
7477
7477
|
ref: n,
|
|
7478
7478
|
className: M(
|
|
@@ -7482,8 +7482,8 @@ const Ku = Uu, ai = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
7482
7482
|
...t
|
|
7483
7483
|
}
|
|
7484
7484
|
));
|
|
7485
|
-
|
|
7486
|
-
const
|
|
7485
|
+
ii.displayName = ei.displayName;
|
|
7486
|
+
const Xu = Kt(
|
|
7487
7487
|
"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",
|
|
7488
7488
|
{
|
|
7489
7489
|
variants: {
|
|
@@ -7501,10 +7501,10 @@ const Yu = Kt(
|
|
|
7501
7501
|
variant: "default"
|
|
7502
7502
|
}
|
|
7503
7503
|
}
|
|
7504
|
-
),
|
|
7505
|
-
|
|
7506
|
-
const
|
|
7507
|
-
|
|
7504
|
+
), si = s.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ u(ti, { ref: r, className: M(Xu({ variant: t }), e), ...n }));
|
|
7505
|
+
si.displayName = ti.displayName;
|
|
7506
|
+
const qu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7507
|
+
oi,
|
|
7508
7508
|
{
|
|
7509
7509
|
ref: n,
|
|
7510
7510
|
className: M(
|
|
@@ -7514,9 +7514,9 @@ const Xu = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
7514
7514
|
...t
|
|
7515
7515
|
}
|
|
7516
7516
|
));
|
|
7517
|
-
|
|
7518
|
-
const
|
|
7519
|
-
|
|
7517
|
+
qu.displayName = oi.displayName;
|
|
7518
|
+
const li = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
7519
|
+
ai,
|
|
7520
7520
|
{
|
|
7521
7521
|
ref: n,
|
|
7522
7522
|
className: M(
|
|
@@ -7528,28 +7528,28 @@ const si = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(
|
|
|
7528
7528
|
children: /* @__PURE__ */ u(Fn, { className: "h-4 w-4" })
|
|
7529
7529
|
}
|
|
7530
7530
|
));
|
|
7531
|
-
|
|
7532
|
-
const
|
|
7533
|
-
li.displayName = ti.displayName;
|
|
7534
|
-
const ci = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ni, { ref: n, className: M("text-sm opacity-90", e), ...t }));
|
|
7531
|
+
li.displayName = ai.displayName;
|
|
7532
|
+
const ci = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ni, { ref: n, className: M("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
7535
7533
|
ci.displayName = ni.displayName;
|
|
7536
|
-
const
|
|
7534
|
+
const di = s.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ u(ri, { ref: n, className: M("text-sm opacity-90", e), ...t }));
|
|
7535
|
+
di.displayName = ri.displayName;
|
|
7536
|
+
const Zu = 1, Qu = 1e6;
|
|
7537
7537
|
let bn = 0;
|
|
7538
|
-
function
|
|
7538
|
+
function Ju() {
|
|
7539
7539
|
return bn = (bn + 1) % Number.MAX_SAFE_INTEGER, bn.toString();
|
|
7540
7540
|
}
|
|
7541
7541
|
const yn = /* @__PURE__ */ new Map(), Hr = (e) => {
|
|
7542
7542
|
if (yn.has(e)) return;
|
|
7543
7543
|
const t = setTimeout(() => {
|
|
7544
7544
|
yn.delete(e), dt({ type: "REMOVE_TOAST", toastId: e });
|
|
7545
|
-
},
|
|
7545
|
+
}, Qu);
|
|
7546
7546
|
yn.set(e, t);
|
|
7547
|
-
},
|
|
7547
|
+
}, ef = (e, t) => {
|
|
7548
7548
|
switch (t.type) {
|
|
7549
7549
|
case "ADD_TOAST":
|
|
7550
7550
|
return {
|
|
7551
7551
|
...e,
|
|
7552
|
-
toasts: [t.toast, ...e.toasts].slice(0,
|
|
7552
|
+
toasts: [t.toast, ...e.toasts].slice(0, Zu)
|
|
7553
7553
|
};
|
|
7554
7554
|
case "UPDATE_TOAST":
|
|
7555
7555
|
return {
|
|
@@ -7576,10 +7576,10 @@ const yn = /* @__PURE__ */ new Map(), Hr = (e) => {
|
|
|
7576
7576
|
}, Mt = [];
|
|
7577
7577
|
let kt = { toasts: [] };
|
|
7578
7578
|
function dt(e) {
|
|
7579
|
-
kt =
|
|
7579
|
+
kt = ef(kt, e), Mt.forEach((t) => t(kt));
|
|
7580
7580
|
}
|
|
7581
|
-
function
|
|
7582
|
-
const t =
|
|
7581
|
+
function tf({ ...e }) {
|
|
7582
|
+
const t = Ju(), n = (o) => dt({
|
|
7583
7583
|
type: "UPDATE_TOAST",
|
|
7584
7584
|
toast: { ...o, id: t }
|
|
7585
7585
|
}), r = () => dt({ type: "DISMISS_TOAST", toastId: t });
|
|
@@ -7595,38 +7595,43 @@ function ef({ ...e }) {
|
|
|
7595
7595
|
}
|
|
7596
7596
|
}), { id: t, dismiss: r, update: n };
|
|
7597
7597
|
}
|
|
7598
|
-
function
|
|
7598
|
+
function ui() {
|
|
7599
7599
|
const [e, t] = s.useState(kt);
|
|
7600
7600
|
return s.useEffect(() => (Mt.push(t), () => {
|
|
7601
7601
|
const n = Mt.indexOf(t);
|
|
7602
7602
|
n > -1 && Mt.splice(n, 1);
|
|
7603
7603
|
}), []), {
|
|
7604
7604
|
...e,
|
|
7605
|
-
toast:
|
|
7605
|
+
toast: tf,
|
|
7606
7606
|
dismiss: (n) => dt({ type: "DISMISS_TOAST", toastId: n })
|
|
7607
7607
|
};
|
|
7608
7608
|
}
|
|
7609
|
-
function
|
|
7610
|
-
const { toasts: e } =
|
|
7611
|
-
return /* @__PURE__ */ I(
|
|
7609
|
+
function nf() {
|
|
7610
|
+
const { toasts: e } = ui();
|
|
7611
|
+
return /* @__PURE__ */ I(Yu, { children: [
|
|
7612
7612
|
e.map(function({ id: t, title: n, description: r, action: o, ...a }) {
|
|
7613
|
-
return /* @__PURE__ */ I(
|
|
7613
|
+
return /* @__PURE__ */ I(si, { ...a, children: [
|
|
7614
7614
|
/* @__PURE__ */ I("div", { className: "grid gap-1", children: [
|
|
7615
|
-
n && /* @__PURE__ */ u(
|
|
7616
|
-
r && /* @__PURE__ */ u(
|
|
7615
|
+
n && /* @__PURE__ */ u(ci, { children: n }),
|
|
7616
|
+
r && /* @__PURE__ */ u(di, { children: r })
|
|
7617
7617
|
] }),
|
|
7618
7618
|
o,
|
|
7619
|
-
/* @__PURE__ */ u(
|
|
7619
|
+
/* @__PURE__ */ u(li, {})
|
|
7620
7620
|
] }, t);
|
|
7621
7621
|
}),
|
|
7622
|
-
/* @__PURE__ */ u(
|
|
7622
|
+
/* @__PURE__ */ u(ii, {})
|
|
7623
7623
|
] });
|
|
7624
7624
|
}
|
|
7625
|
-
function
|
|
7626
|
-
const [r, o] = In(""), a = bi(),
|
|
7627
|
-
|
|
7628
|
-
|
|
7629
|
-
|
|
7625
|
+
function rf({ onSignOut: e, searchResultsRouteName: t, rightMenu: n }) {
|
|
7626
|
+
const [r, o] = In(""), a = bi(), i = yi(), { toast: l } = ui();
|
|
7627
|
+
Gr(() => {
|
|
7628
|
+
const m = new URLSearchParams(i.search).get("q");
|
|
7629
|
+
m && o(m);
|
|
7630
|
+
}, [i.search]);
|
|
7631
|
+
const d = () => {
|
|
7632
|
+
const f = r.trim();
|
|
7633
|
+
if (!f || f.length < 2) {
|
|
7634
|
+
l({
|
|
7630
7635
|
title: "Enter more characters to search",
|
|
7631
7636
|
description: "At least 2 characters are needed to search products.",
|
|
7632
7637
|
variant: "destructive",
|
|
@@ -7634,23 +7639,23 @@ function nf({ onSignOut: e, searchResultsRouteName: t, rightMenu: n }) {
|
|
|
7634
7639
|
});
|
|
7635
7640
|
return;
|
|
7636
7641
|
}
|
|
7637
|
-
const
|
|
7642
|
+
const m = new URLSearchParams({ q: f });
|
|
7638
7643
|
a({
|
|
7639
7644
|
pathname: t,
|
|
7640
|
-
search:
|
|
7641
|
-
})
|
|
7645
|
+
search: m.toString()
|
|
7646
|
+
});
|
|
7642
7647
|
};
|
|
7643
7648
|
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: [
|
|
7644
|
-
/* @__PURE__ */ u(
|
|
7649
|
+
/* @__PURE__ */ u(_a, { className: "lg:hidden", children: /* @__PURE__ */ u(Ki, { className: "h-6 w-6" }) }),
|
|
7645
7650
|
/* @__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: [
|
|
7646
7651
|
/* @__PURE__ */ u(
|
|
7647
7652
|
"button",
|
|
7648
7653
|
{
|
|
7649
7654
|
type: "button",
|
|
7650
7655
|
className: "absolute left-2 top-1/2 -translate-y-1/2",
|
|
7651
|
-
onClick:
|
|
7656
|
+
onClick: d,
|
|
7652
7657
|
"aria-label": "Search",
|
|
7653
|
-
children: /* @__PURE__ */ u(
|
|
7658
|
+
children: /* @__PURE__ */ u(ts, { className: "h-4 w-4 text-muted-foreground" })
|
|
7654
7659
|
}
|
|
7655
7660
|
),
|
|
7656
7661
|
/* @__PURE__ */ u(
|
|
@@ -7659,24 +7664,25 @@ function nf({ onSignOut: e, searchResultsRouteName: t, rightMenu: n }) {
|
|
|
7659
7664
|
placeholder: "Search...",
|
|
7660
7665
|
className: "w-full pl-8 bg-white text-black",
|
|
7661
7666
|
value: r,
|
|
7662
|
-
onChange: (
|
|
7663
|
-
onKeyDown: (
|
|
7664
|
-
|
|
7667
|
+
onChange: (f) => o(f.target.value),
|
|
7668
|
+
onKeyDown: (f) => {
|
|
7669
|
+
f.key === "Enter" && d();
|
|
7665
7670
|
}
|
|
7666
|
-
}
|
|
7671
|
+
},
|
|
7672
|
+
"topbar-search"
|
|
7667
7673
|
)
|
|
7668
7674
|
] }) }) }),
|
|
7669
7675
|
n || /* @__PURE__ */ u(Ae, {}),
|
|
7670
7676
|
e && /* @__PURE__ */ u("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ I(ve, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
|
|
7671
|
-
/* @__PURE__ */ u(
|
|
7677
|
+
/* @__PURE__ */ u(Gi, { className: "h-4 w-4 text-sidebar-foreground" }),
|
|
7672
7678
|
/* @__PURE__ */ u("span", { className: "sr-only", children: "Sign out" })
|
|
7673
7679
|
] }) })
|
|
7674
7680
|
] });
|
|
7675
7681
|
}
|
|
7676
|
-
function
|
|
7677
|
-
const { appID: r } =
|
|
7678
|
-
return /* @__PURE__ */ I(
|
|
7679
|
-
/* @__PURE__ */ u(
|
|
7682
|
+
function of({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7683
|
+
const { appID: r } = wi(), o = e.filter((a) => a.showInNav);
|
|
7684
|
+
return /* @__PURE__ */ I(Da, { className: "border-r border-sidebar-border", children: [
|
|
7685
|
+
/* @__PURE__ */ u(Ia, { 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: [
|
|
7680
7686
|
/* @__PURE__ */ u("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ u(
|
|
7681
7687
|
"img",
|
|
7682
7688
|
{
|
|
@@ -7687,17 +7693,17 @@ function rf({ routes: e, footer: t, dashboardTitle: n }) {
|
|
|
7687
7693
|
) }),
|
|
7688
7694
|
/* @__PURE__ */ u("span", { className: "font-semibold text-lg", children: n })
|
|
7689
7695
|
] }) }),
|
|
7690
|
-
/* @__PURE__ */ u(
|
|
7696
|
+
/* @__PURE__ */ u(Fa, { className: "py-4 bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ u($a, { children: o.map((a) => {
|
|
7691
7697
|
const i = a.icon, l = `/${a.path.replace(":appID", r)}`;
|
|
7692
|
-
return /* @__PURE__ */ u(
|
|
7698
|
+
return /* @__PURE__ */ u(za, { children: /* @__PURE__ */ u(Wa, { asChild: !0, children: /* @__PURE__ */ I(xi, { to: l, className: "transition-colors hover:bg-muted px-6", children: [
|
|
7693
7699
|
i && /* @__PURE__ */ u(i, { className: "h-4 w-4" }),
|
|
7694
7700
|
/* @__PURE__ */ u("span", { children: a.label })
|
|
7695
7701
|
] }) }) }, a.key);
|
|
7696
7702
|
}) }) }),
|
|
7697
|
-
/* @__PURE__ */ u(
|
|
7703
|
+
/* @__PURE__ */ u(La, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: t })
|
|
7698
7704
|
] });
|
|
7699
7705
|
}
|
|
7700
|
-
function
|
|
7706
|
+
function Cf({
|
|
7701
7707
|
children: e,
|
|
7702
7708
|
rightMenu: t,
|
|
7703
7709
|
routes: n,
|
|
@@ -7706,9 +7712,9 @@ function Ef({
|
|
|
7706
7712
|
dashboardTitle: a,
|
|
7707
7713
|
onSignOut: i
|
|
7708
7714
|
}) {
|
|
7709
|
-
return /* @__PURE__ */ u(Ae, { children: /* @__PURE__ */ u(
|
|
7715
|
+
return /* @__PURE__ */ u(Ae, { children: /* @__PURE__ */ u(ka, { children: /* @__PURE__ */ I("div", { className: "flex grow", children: [
|
|
7710
7716
|
/* @__PURE__ */ u(
|
|
7711
|
-
|
|
7717
|
+
of,
|
|
7712
7718
|
{
|
|
7713
7719
|
routes: n,
|
|
7714
7720
|
footer: r,
|
|
@@ -7717,7 +7723,7 @@ function Ef({
|
|
|
7717
7723
|
),
|
|
7718
7724
|
/* @__PURE__ */ I("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
7719
7725
|
/* @__PURE__ */ u(
|
|
7720
|
-
|
|
7726
|
+
rf,
|
|
7721
7727
|
{
|
|
7722
7728
|
onSignOut: i,
|
|
7723
7729
|
rightMenu: t,
|
|
@@ -7725,17 +7731,17 @@ function Ef({
|
|
|
7725
7731
|
}
|
|
7726
7732
|
),
|
|
7727
7733
|
/* @__PURE__ */ u("main", { className: "flex-1 overflow-auto mt-16", children: e }),
|
|
7728
|
-
/* @__PURE__ */ u(
|
|
7734
|
+
/* @__PURE__ */ u(nf, {})
|
|
7729
7735
|
] })
|
|
7730
7736
|
] }) }) });
|
|
7731
7737
|
}
|
|
7732
|
-
const
|
|
7738
|
+
const af = {
|
|
7733
7739
|
sm: 100,
|
|
7734
7740
|
md: 200,
|
|
7735
7741
|
lg: 300,
|
|
7736
7742
|
xl: 400
|
|
7737
7743
|
};
|
|
7738
|
-
function
|
|
7744
|
+
function Sf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
7739
7745
|
const [o, a] = s.useState(!1), [i, l] = s.useState(!1), [d, c] = s.useState(!1), [f, m] = s.useState(!1), v = `https://api.randmar.io/Product/${e}/Video`;
|
|
7740
7746
|
s.useEffect(() => {
|
|
7741
7747
|
(async () => {
|
|
@@ -7768,7 +7774,7 @@ function Cf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7768
7774
|
function p() {
|
|
7769
7775
|
a(!0);
|
|
7770
7776
|
}
|
|
7771
|
-
const h =
|
|
7777
|
+
const h = af[t || "xl"];
|
|
7772
7778
|
return /* @__PURE__ */ I(Ae, { children: [
|
|
7773
7779
|
/* @__PURE__ */ u(Un, { open: o, onOpenChange: a, children: /* @__PURE__ */ u(Kn, { className: "max-w-4xl p-0 overflow-hidden", children: r ? /* @__PURE__ */ I("div", { className: "flex flex-row", children: [
|
|
7774
7780
|
/* @__PURE__ */ I(
|
|
@@ -7799,7 +7805,7 @@ function Cf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7799
7805
|
variant: "secondary",
|
|
7800
7806
|
size: "icon",
|
|
7801
7807
|
onClick: y,
|
|
7802
|
-
children: d ? /* @__PURE__ */ u(
|
|
7808
|
+
children: d ? /* @__PURE__ */ u(zi, { className: "h-4 w-4" }) : /* @__PURE__ */ u(Bi, { className: "h-4 w-4" })
|
|
7803
7809
|
}
|
|
7804
7810
|
) }),
|
|
7805
7811
|
/* @__PURE__ */ u(Ze, { children: /* @__PURE__ */ u("p", { children: "Copy video link" }) })
|
|
@@ -7812,7 +7818,7 @@ function Cf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7812
7818
|
size: "icon",
|
|
7813
7819
|
onClick: g,
|
|
7814
7820
|
disabled: f,
|
|
7815
|
-
children: /* @__PURE__ */ u(
|
|
7821
|
+
children: /* @__PURE__ */ u(Hi, { className: "h-4 w-4" })
|
|
7816
7822
|
}
|
|
7817
7823
|
) }),
|
|
7818
7824
|
/* @__PURE__ */ u(Ze, { children: /* @__PURE__ */ u("p", { children: "Download video" }) })
|
|
@@ -7839,7 +7845,7 @@ function Cf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7839
7845
|
size: "icon",
|
|
7840
7846
|
className: "absolute top-2 right-2",
|
|
7841
7847
|
onClick: p,
|
|
7842
|
-
children: /* @__PURE__ */ u(
|
|
7848
|
+
children: /* @__PURE__ */ u(Ji, { className: "h-4 w-4" })
|
|
7843
7849
|
}
|
|
7844
7850
|
) }),
|
|
7845
7851
|
/* @__PURE__ */ u(Ze, { children: /* @__PURE__ */ u("p", { children: "Play video" }) })
|
|
@@ -7848,76 +7854,78 @@ function Cf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7848
7854
|
] });
|
|
7849
7855
|
}
|
|
7850
7856
|
export {
|
|
7851
|
-
|
|
7857
|
+
wf as AvatarFooter,
|
|
7852
7858
|
ve as Button,
|
|
7853
7859
|
Un as Dialog,
|
|
7854
7860
|
Pr as DialogClose,
|
|
7855
7861
|
Kn as DialogContent,
|
|
7856
|
-
|
|
7857
|
-
|
|
7858
|
-
|
|
7859
|
-
|
|
7860
|
-
|
|
7862
|
+
Yo as DialogDescription,
|
|
7863
|
+
Uo as DialogFooter,
|
|
7864
|
+
Go as DialogHeader,
|
|
7865
|
+
jo as DialogOverlay,
|
|
7866
|
+
vc as DialogPortal,
|
|
7867
|
+
Ko as DialogTitle,
|
|
7868
|
+
gc as DialogTrigger,
|
|
7861
7869
|
ar as Input,
|
|
7862
|
-
|
|
7863
|
-
|
|
7864
|
-
|
|
7865
|
-
|
|
7866
|
-
|
|
7867
|
-
|
|
7868
|
-
|
|
7869
|
-
|
|
7870
|
-
|
|
7871
|
-
|
|
7872
|
-
|
|
7873
|
-
|
|
7874
|
-
|
|
7875
|
-
|
|
7876
|
-
|
|
7877
|
-
|
|
7878
|
-
|
|
7879
|
-
|
|
7880
|
-
|
|
7881
|
-
|
|
7882
|
-
|
|
7883
|
-
|
|
7884
|
-
|
|
7885
|
-
|
|
7886
|
-
|
|
7887
|
-
|
|
7888
|
-
|
|
7889
|
-
|
|
7890
|
-
|
|
7891
|
-
|
|
7892
|
-
|
|
7893
|
-
|
|
7894
|
-
|
|
7895
|
-
|
|
7896
|
-
|
|
7897
|
-
|
|
7898
|
-
|
|
7899
|
-
|
|
7900
|
-
|
|
7901
|
-
|
|
7902
|
-
|
|
7903
|
-
|
|
7870
|
+
uf as InputOTP,
|
|
7871
|
+
ff as InputOTPGroup,
|
|
7872
|
+
mf as InputOTPSeparator,
|
|
7873
|
+
pf as InputOTPSlot,
|
|
7874
|
+
xf as Label,
|
|
7875
|
+
Cf as Layout,
|
|
7876
|
+
of as Navbar,
|
|
7877
|
+
Sf as ProductImage,
|
|
7878
|
+
Na as Separator,
|
|
7879
|
+
Qd as Sheet,
|
|
7880
|
+
yf as SheetClose,
|
|
7881
|
+
Aa as SheetContent,
|
|
7882
|
+
ou as SheetDescription,
|
|
7883
|
+
nu as SheetFooter,
|
|
7884
|
+
tu as SheetHeader,
|
|
7885
|
+
Pa as SheetOverlay,
|
|
7886
|
+
Jd as SheetPortal,
|
|
7887
|
+
ru as SheetTitle,
|
|
7888
|
+
bf as SheetTrigger,
|
|
7889
|
+
Da as Sidebar,
|
|
7890
|
+
Fa as SidebarContent,
|
|
7891
|
+
La as SidebarFooter,
|
|
7892
|
+
bu as SidebarGroup,
|
|
7893
|
+
wu as SidebarGroupAction,
|
|
7894
|
+
xu as SidebarGroupContent,
|
|
7895
|
+
yu as SidebarGroupLabel,
|
|
7896
|
+
Ia as SidebarHeader,
|
|
7897
|
+
gu as SidebarInput,
|
|
7898
|
+
hu as SidebarInset,
|
|
7899
|
+
$a as SidebarMenu,
|
|
7900
|
+
Cu as SidebarMenuAction,
|
|
7901
|
+
Su as SidebarMenuBadge,
|
|
7902
|
+
Wa as SidebarMenuButton,
|
|
7903
|
+
za as SidebarMenuItem,
|
|
7904
|
+
Tu as SidebarMenuSkeleton,
|
|
7905
|
+
Ru as SidebarMenuSub,
|
|
7906
|
+
Pu as SidebarMenuSubButton,
|
|
7907
|
+
Nu as SidebarMenuSubItem,
|
|
7908
|
+
ka as SidebarProvider,
|
|
7909
|
+
mu as SidebarRail,
|
|
7910
|
+
vu as SidebarSeparator,
|
|
7911
|
+
_a as SidebarTrigger,
|
|
7904
7912
|
Br as Skeleton,
|
|
7905
|
-
|
|
7906
|
-
|
|
7907
|
-
|
|
7908
|
-
|
|
7909
|
-
|
|
7910
|
-
|
|
7911
|
-
|
|
7912
|
-
|
|
7913
|
+
si as Toast,
|
|
7914
|
+
qu as ToastAction,
|
|
7915
|
+
li as ToastClose,
|
|
7916
|
+
di as ToastDescription,
|
|
7917
|
+
Yu as ToastProvider,
|
|
7918
|
+
ci as ToastTitle,
|
|
7919
|
+
ii as ToastViewport,
|
|
7920
|
+
nf as Toaster,
|
|
7913
7921
|
lt as Tooltip,
|
|
7914
7922
|
Ze as TooltipContent,
|
|
7915
7923
|
st as TooltipProvider,
|
|
7916
7924
|
ct as TooltipTrigger,
|
|
7917
|
-
|
|
7925
|
+
rf as Topbar,
|
|
7918
7926
|
Mr as buttonVariants,
|
|
7919
|
-
|
|
7920
|
-
|
|
7927
|
+
tf as toast,
|
|
7928
|
+
su as useIsMobile,
|
|
7921
7929
|
tn as useSidebar,
|
|
7922
|
-
|
|
7930
|
+
ui as useToast
|
|
7923
7931
|
};
|