randmarcomps 1.76.0 → 1.77.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.js +812 -801
- package/dist/randmarcomps.umd.cjs +30 -30
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,43 +1,43 @@
|
|
|
1
1
|
import { jsx as i, jsxs as x, Fragment as J } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
3
|
+
import Ge, { forwardRef as Ht, createElement as Rn, useState as ye, useLayoutEffect as Ts, useEffect as qe } from "react";
|
|
4
4
|
import * as Hn from "react-dom";
|
|
5
|
-
import
|
|
6
|
-
import { useLocation as
|
|
7
|
-
var
|
|
8
|
-
for (var n in t || (t = {}))
|
|
9
|
-
if (Ft) for (var n of Ft(t))
|
|
5
|
+
import Rs from "react-dom";
|
|
6
|
+
import { useLocation as Ps, useParams as As, Link as ks } from "react-router-dom";
|
|
7
|
+
var Ms = Object.defineProperty, Os = Object.defineProperties, Ds = Object.getOwnPropertyDescriptors, Ft = Object.getOwnPropertySymbols, to = Object.prototype.hasOwnProperty, no = Object.prototype.propertyIsEnumerable, yr = (e, t, n) => t in e ? Ms(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, Is = (e, t) => {
|
|
8
|
+
for (var n in t || (t = {})) to.call(t, n) && yr(e, n, t[n]);
|
|
9
|
+
if (Ft) for (var n of Ft(t)) no.call(t, n) && yr(e, n, t[n]);
|
|
10
10
|
return e;
|
|
11
|
-
},
|
|
11
|
+
}, _s = (e, t) => Os(e, Ds(t)), Ls = (e, t) => {
|
|
12
12
|
var n = {};
|
|
13
|
-
for (var r in e)
|
|
14
|
-
if (e != null && Ft) for (var r of Ft(e)) t.indexOf(r) < 0 &&
|
|
13
|
+
for (var r in e) to.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
14
|
+
if (e != null && Ft) for (var r of Ft(e)) t.indexOf(r) < 0 && no.call(e, r) && (n[r] = e[r]);
|
|
15
15
|
return n;
|
|
16
16
|
};
|
|
17
|
-
function
|
|
17
|
+
function $s(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 Fs(e) {
|
|
22
22
|
let t = l.useRef();
|
|
23
23
|
return l.useEffect(() => {
|
|
24
24
|
t.current = e;
|
|
25
25
|
}), t.current;
|
|
26
26
|
}
|
|
27
|
-
var
|
|
28
|
-
function
|
|
27
|
+
var zs = 18, ro = 40, Ws = `${ro}px`, Bs = ["[data-lastpass-icon-root]", "com-1password-button", "[data-dashlanecreated]", '[style$="2147483647 !important;"]'].join(",");
|
|
28
|
+
function js({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFocused: r }) {
|
|
29
29
|
let [o, a] = l.useState(!1), [s, c] = l.useState(!1), [u, d] = l.useState(!1), p = l.useMemo(() => n === "none" ? !1 : (n === "increase-width" || n === "experimental-no-flickering") && o && s, [o, s, n]), m = l.useCallback(() => {
|
|
30
30
|
let v = e.current, g = t.current;
|
|
31
31
|
if (!v || !g || u || n === "none") return;
|
|
32
|
-
let y = v, f = y.getBoundingClientRect().left + y.offsetWidth, h = y.getBoundingClientRect().top + y.offsetHeight / 2, b = f -
|
|
33
|
-
document.querySelectorAll(
|
|
32
|
+
let y = v, f = y.getBoundingClientRect().left + y.offsetWidth, h = y.getBoundingClientRect().top + y.offsetHeight / 2, b = f - zs, w = h;
|
|
33
|
+
document.querySelectorAll(Bs).length === 0 && document.elementFromPoint(b, w) === v || (a(!0), d(!0));
|
|
34
34
|
}, [e, t, u, n]);
|
|
35
35
|
return l.useEffect(() => {
|
|
36
36
|
let v = e.current;
|
|
37
37
|
if (!v || n === "none") return;
|
|
38
38
|
function g() {
|
|
39
39
|
let f = window.innerWidth - v.getBoundingClientRect().right;
|
|
40
|
-
c(f >=
|
|
40
|
+
c(f >= ro);
|
|
41
41
|
}
|
|
42
42
|
g();
|
|
43
43
|
let y = setInterval(g, 1e3);
|
|
@@ -53,11 +53,11 @@ function Bs({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
53
53
|
return () => {
|
|
54
54
|
clearTimeout(g), clearTimeout(y), clearTimeout(f), clearTimeout(h);
|
|
55
55
|
};
|
|
56
|
-
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: p, PWM_BADGE_SPACE_WIDTH:
|
|
56
|
+
}, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: p, PWM_BADGE_SPACE_WIDTH: Ws };
|
|
57
57
|
}
|
|
58
|
-
var
|
|
59
|
-
var n = e, { value: r, onChange: o, maxLength: a, textAlign: s = "left", pattern: c, placeholder: u, inputMode: d = "numeric", onComplete: p, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y =
|
|
60
|
-
let [T, F] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), D = r ?? T, B =
|
|
58
|
+
var oo = l.createContext({}), ao = l.forwardRef((e, t) => {
|
|
59
|
+
var n = e, { value: r, onChange: o, maxLength: a, textAlign: s = "left", pattern: c, placeholder: u, inputMode: d = "numeric", onComplete: p, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y = Vs, render: f, children: h } = n, b = Ls(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, N, C, S, E;
|
|
60
|
+
let [T, F] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), D = r ?? T, B = Fs(D), H = l.useCallback((_) => {
|
|
61
61
|
o == null || o(_), F(_);
|
|
62
62
|
}, [o]), j = l.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), I = l.useRef(null), R = l.useRef(null), z = l.useRef({ value: D, onChange: H, isIOS: typeof window < "u" && ((N = (w = window == null ? void 0 : window.CSS) == null ? void 0 : w.supports) == null ? void 0 : N.call(w, "-webkit-touch-callout", "none")) }), k = l.useRef({ prev: [(C = I.current) == null ? void 0 : C.selectionStart, (S = I.current) == null ? void 0 : S.selectionEnd, (E = I.current) == null ? void 0 : E.selectionDirection] });
|
|
63
63
|
l.useImperativeHandle(t, () => I.current, []), l.useEffect(() => {
|
|
@@ -69,33 +69,33 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
69
69
|
oe(null), ne(null);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
let G = _.selectionStart,
|
|
73
|
-
if (
|
|
74
|
-
let
|
|
75
|
-
if (
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
else if (
|
|
79
|
-
else if (be > 1 &&
|
|
72
|
+
let G = _.selectionStart, pe = _.selectionEnd, Ct = _.selectionDirection, be = _.maxLength, Ve = _.value, Ae = k.current.prev, De = -1, Ie = -1, He;
|
|
73
|
+
if (Ve.length !== 0 && G !== null && pe !== null) {
|
|
74
|
+
let Cs = G === pe, Es = G === Ve.length && Ve.length < be;
|
|
75
|
+
if (Cs && !Es) {
|
|
76
|
+
let Ue = G;
|
|
77
|
+
if (Ue === 0) De = 0, Ie = 1, He = "forward";
|
|
78
|
+
else if (Ue === be) De = Ue - 1, Ie = Ue, He = "backward";
|
|
79
|
+
else if (be > 1 && Ve.length > 1) {
|
|
80
80
|
let fn = 0;
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
let
|
|
84
|
-
|
|
81
|
+
if (Ae[0] !== null && Ae[1] !== null) {
|
|
82
|
+
He = Ue < Ae[1] ? "backward" : "forward";
|
|
83
|
+
let Ss = Ae[0] === Ae[1] && Ae[0] < be;
|
|
84
|
+
He === "backward" && !Ss && (fn = -1);
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
De = fn + Ue, Ie = fn + Ue + 1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
De !== -1 && Ie !== -1 && De !== Ie && I.current.setSelectionRange(De, Ie, He);
|
|
90
90
|
}
|
|
91
|
-
let vr =
|
|
92
|
-
oe(vr), ne(br), k.current.prev = [vr, br,
|
|
91
|
+
let vr = De !== -1 ? De : G, br = Ie !== -1 ? Ie : pe, Ns = He ?? Ct;
|
|
92
|
+
oe(vr), ne(br), k.current.prev = [vr, br, Ns];
|
|
93
93
|
}
|
|
94
94
|
if (document.addEventListener("selectionchange", ae, { capture: !0 }), ae(), document.activeElement === _ && q(!0), !document.getElementById("input-otp-style")) {
|
|
95
95
|
let G = document.createElement("style");
|
|
96
96
|
if (G.id = "input-otp-style", document.head.appendChild(G), G.sheet) {
|
|
97
|
-
let
|
|
98
|
-
|
|
97
|
+
let pe = "background: transparent !important; color: transparent !important; border-color: transparent !important; opacity: 0 !important; box-shadow: none !important; -webkit-box-shadow: none !important; -webkit-text-fill-color: transparent !important;";
|
|
98
|
+
ft(G.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), ft(G.sheet, `[data-input-otp]:autofill { ${pe} }`), ft(G.sheet, `[data-input-otp]:-webkit-autofill { ${pe} }`), ft(G.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), ft(G.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
let ce = () => {
|
|
@@ -109,16 +109,16 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
109
109
|
}, []);
|
|
110
110
|
let [U, O] = l.useState(!1), [L, q] = l.useState(!1), [Z, oe] = l.useState(null), [te, ne] = l.useState(null);
|
|
111
111
|
l.useEffect(() => {
|
|
112
|
-
|
|
112
|
+
$s(() => {
|
|
113
113
|
var _, W, ae, ce;
|
|
114
114
|
(_ = I.current) == null || _.dispatchEvent(new Event("input"));
|
|
115
|
-
let de = (W = I.current) == null ? void 0 : W.selectionStart, G = (ae = I.current) == null ? void 0 : ae.selectionEnd,
|
|
116
|
-
de !== null && G !== null && (oe(de), ne(G), k.current.prev = [de, G,
|
|
115
|
+
let de = (W = I.current) == null ? void 0 : W.selectionStart, G = (ae = I.current) == null ? void 0 : ae.selectionEnd, pe = (ce = I.current) == null ? void 0 : ce.selectionDirection;
|
|
116
|
+
de !== null && G !== null && (oe(de), ne(G), k.current.prev = [de, G, pe]);
|
|
117
117
|
});
|
|
118
118
|
}, [D, L]), l.useEffect(() => {
|
|
119
119
|
B !== void 0 && D !== B && B.length < a && D.length === a && (p == null || p(D));
|
|
120
120
|
}, [a, p, B, D]);
|
|
121
|
-
let se =
|
|
121
|
+
let se = js({ containerRef: R, inputRef: I, pushPasswordManagerStrategy: m, isFocused: L }), ve = l.useCallback((_) => {
|
|
122
122
|
let W = _.currentTarget.value.slice(0, a);
|
|
123
123
|
if (W.length > 0 && j && !j.test(W)) {
|
|
124
124
|
_.preventDefault();
|
|
@@ -132,20 +132,20 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
132
132
|
(_ = I.current) == null || _.setSelectionRange(W, ae), oe(W), ne(ae);
|
|
133
133
|
}
|
|
134
134
|
q(!0);
|
|
135
|
-
}, [a]),
|
|
135
|
+
}, [a]), Oe = l.useCallback((_) => {
|
|
136
136
|
var W, ae;
|
|
137
137
|
let ce = I.current;
|
|
138
138
|
if (!v && (!z.current.isIOS || !_.clipboardData || !ce)) return;
|
|
139
139
|
let de = _.clipboardData.getData("text/plain"), G = v ? v(de) : de;
|
|
140
140
|
_.preventDefault();
|
|
141
|
-
let
|
|
141
|
+
let pe = (W = I.current) == null ? void 0 : W.selectionStart, Ct = (ae = I.current) == null ? void 0 : ae.selectionEnd, be = (pe !== Ct ? D.slice(0, pe) + G + D.slice(Ct) : D.slice(0, pe) + G + D.slice(pe)).slice(0, a);
|
|
142
142
|
if (be.length > 0 && j && !j.test(be)) return;
|
|
143
143
|
ce.value = be, H(be);
|
|
144
|
-
let
|
|
145
|
-
ce.setSelectionRange(
|
|
146
|
-
}, [a, H, j, D]),
|
|
144
|
+
let Ve = Math.min(be.length, a - 1), Ae = be.length;
|
|
145
|
+
ce.setSelectionRange(Ve, Ae), oe(Ve), ne(Ae);
|
|
146
|
+
}, [a, H, j, D]), Be = l.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), $ = l.useMemo(() => ({ position: "absolute", inset: 0, width: se.willPushPWMBadge ? `calc(100% + ${se.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: se.willPushPWMBadge ? `inset(0 ${se.PWM_BADGE_SPACE_WIDTH} 0 0)` : void 0, height: "100%", display: "flex", textAlign: s, 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" }), [se.PWM_BADGE_SPACE_WIDTH, se.willPushPWMBadge, s]), K = l.useMemo(() => l.createElement("input", _s(Is({ 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": Z, "data-input-otp-mse": te, inputMode: d, pattern: j == null ? void 0 : j.source, "aria-placeholder": u, style: $, maxLength: a, value: D, ref: I, onPaste: (_) => {
|
|
147
147
|
var W;
|
|
148
|
-
|
|
148
|
+
Oe(_), (W = b.onPaste) == null || W.call(b, _);
|
|
149
149
|
}, onChange: ve, onMouseOver: (_) => {
|
|
150
150
|
var W;
|
|
151
151
|
O(!0), (W = b.onMouseOver) == null || W.call(b, _);
|
|
@@ -158,22 +158,22 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
158
158
|
}, onBlur: (_) => {
|
|
159
159
|
var W;
|
|
160
160
|
q(!1), (W = b.onBlur) == null || W.call(b, _);
|
|
161
|
-
} })), [ve, ue,
|
|
161
|
+
} })), [ve, ue, Oe, d, $, a, te, Z, b, j == null ? void 0 : j.source, D]), fe = l.useMemo(() => ({ slots: Array.from({ length: a }).map((_, W) => {
|
|
162
162
|
var ae;
|
|
163
163
|
let ce = L && Z !== null && te !== null && (Z === te && W === Z || W >= Z && W < te), de = D[W] !== void 0 ? D[W] : null, G = D[0] !== void 0 ? null : (ae = u == null ? void 0 : u[W]) != null ? ae : null;
|
|
164
164
|
return { char: de, placeholderChar: G, isActive: ce, hasFakeCaret: ce && de === null };
|
|
165
|
-
}), isFocused: L, isHovering: !b.disabled && U }), [L, U, a, te, Z, b.disabled, D]),
|
|
166
|
-
return l.createElement(l.Fragment, null, y !== null && l.createElement("noscript", null, l.createElement("style", null, y)), l.createElement("div", { ref: R, "data-input-otp-container": !0, style:
|
|
165
|
+
}), isFocused: L, isHovering: !b.disabled && U }), [L, U, a, te, Z, b.disabled, D]), je = l.useMemo(() => f ? f(fe) : l.createElement(oo.Provider, { value: fe }, h), [h, fe, f]);
|
|
166
|
+
return l.createElement(l.Fragment, null, y !== null && l.createElement("noscript", null, l.createElement("style", null, y)), l.createElement("div", { ref: R, "data-input-otp-container": !0, style: Be, className: g }, je, l.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, K)));
|
|
167
167
|
});
|
|
168
|
-
|
|
169
|
-
function
|
|
168
|
+
ao.displayName = "Input";
|
|
169
|
+
function ft(e, t) {
|
|
170
170
|
try {
|
|
171
171
|
e.insertRule(t);
|
|
172
172
|
} catch {
|
|
173
173
|
console.error("input-otp could not insert CSS rule:", t);
|
|
174
174
|
}
|
|
175
175
|
}
|
|
176
|
-
var
|
|
176
|
+
var Vs = `
|
|
177
177
|
[data-input-otp] {
|
|
178
178
|
--nojs-bg: white !important;
|
|
179
179
|
--nojs-fg: black !important;
|
|
@@ -199,14 +199,14 @@ var js = `
|
|
|
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 Hs = (e) => e.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), so = (...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 Us = {
|
|
210
210
|
xmlns: "http://www.w3.org/2000/svg",
|
|
211
211
|
width: 24,
|
|
212
212
|
height: 24,
|
|
@@ -223,7 +223,7 @@ var Hs = {
|
|
|
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 Gs = Ht(
|
|
227
227
|
({
|
|
228
228
|
color: e = "currentColor",
|
|
229
229
|
size: t = 24,
|
|
@@ -237,12 +237,12 @@ const Us = Ht(
|
|
|
237
237
|
"svg",
|
|
238
238
|
{
|
|
239
239
|
ref: u,
|
|
240
|
-
...
|
|
240
|
+
...Us,
|
|
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: so("lucide", o),
|
|
246
246
|
...c
|
|
247
247
|
},
|
|
248
248
|
[
|
|
@@ -259,10 +259,10 @@ const Us = Ht(
|
|
|
259
259
|
*/
|
|
260
260
|
const ee = (e, t) => {
|
|
261
261
|
const n = Ht(
|
|
262
|
-
({ className: r, ...o }, a) => Rn(
|
|
262
|
+
({ className: r, ...o }, a) => Rn(Gs, {
|
|
263
263
|
ref: a,
|
|
264
264
|
iconNode: t,
|
|
265
|
-
className:
|
|
265
|
+
className: so(`lucide-${Hs(e)}`, r),
|
|
266
266
|
...o
|
|
267
267
|
})
|
|
268
268
|
);
|
|
@@ -274,14 +274,14 @@ const ee = (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 Ks = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], io = ee("Check", Ks);
|
|
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 Ys = [
|
|
285
285
|
["path", { d: "M10.1 2.182a10 10 0 0 1 3.8 0", key: "5ilxe3" }],
|
|
286
286
|
["path", { d: "M13.9 21.818a10 10 0 0 1-3.8 0", key: "11zvb9" }],
|
|
287
287
|
["path", { d: "M17.609 3.721a10 10 0 0 1 2.69 2.7", key: "1iw5b2" }],
|
|
@@ -290,35 +290,35 @@ const Ks = [
|
|
|
290
290
|
["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
|
|
291
291
|
["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
|
|
292
292
|
["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
|
|
293
|
-
],
|
|
293
|
+
], qs = ee("CircleDashed", Ys);
|
|
294
294
|
/**
|
|
295
295
|
* @license lucide-react v0.479.0 - ISC
|
|
296
296
|
*
|
|
297
297
|
* This source code is licensed under the ISC license.
|
|
298
298
|
* See the LICENSE file in the root directory of this source tree.
|
|
299
299
|
*/
|
|
300
|
-
const
|
|
300
|
+
const Qs = [
|
|
301
301
|
["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
|
|
302
302
|
["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" }]
|
|
303
|
-
], Xs = ee("Copy",
|
|
303
|
+
], Xs = ee("Copy", Qs);
|
|
304
304
|
/**
|
|
305
305
|
* @license lucide-react v0.479.0 - ISC
|
|
306
306
|
*
|
|
307
307
|
* This source code is licensed under the ISC license.
|
|
308
308
|
* See the LICENSE file in the root directory of this source tree.
|
|
309
309
|
*/
|
|
310
|
-
const
|
|
310
|
+
const Zs = [
|
|
311
311
|
["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
|
|
312
312
|
["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
|
|
313
313
|
["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
|
|
314
|
-
],
|
|
314
|
+
], Js = ee("Download", Zs);
|
|
315
315
|
/**
|
|
316
316
|
* @license lucide-react v0.479.0 - ISC
|
|
317
317
|
*
|
|
318
318
|
* This source code is licensed under the ISC license.
|
|
319
319
|
* See the LICENSE file in the root directory of this source tree.
|
|
320
320
|
*/
|
|
321
|
-
const
|
|
321
|
+
const ei = [
|
|
322
322
|
[
|
|
323
323
|
"path",
|
|
324
324
|
{
|
|
@@ -327,67 +327,67 @@ const Js = [
|
|
|
327
327
|
}
|
|
328
328
|
],
|
|
329
329
|
["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
|
|
330
|
-
],
|
|
330
|
+
], ti = ee("Eye", ei);
|
|
331
331
|
/**
|
|
332
332
|
* @license lucide-react v0.479.0 - ISC
|
|
333
333
|
*
|
|
334
334
|
* This source code is licensed under the ISC license.
|
|
335
335
|
* See the LICENSE file in the root directory of this source tree.
|
|
336
336
|
*/
|
|
337
|
-
const
|
|
337
|
+
const ni = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], wr = ee("LoaderCircle", ni);
|
|
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 ri = [
|
|
345
345
|
["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
|
|
346
346
|
["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
|
|
347
347
|
["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
|
|
348
|
-
],
|
|
348
|
+
], oi = ee("LogOut", ri);
|
|
349
349
|
/**
|
|
350
350
|
* @license lucide-react v0.479.0 - ISC
|
|
351
351
|
*
|
|
352
352
|
* This source code is licensed under the ISC license.
|
|
353
353
|
* See the LICENSE file in the root directory of this source tree.
|
|
354
354
|
*/
|
|
355
|
-
const
|
|
355
|
+
const ai = [
|
|
356
356
|
["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
|
|
357
357
|
["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
|
|
358
358
|
["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
|
|
359
|
-
],
|
|
359
|
+
], si = ee("Menu", ai);
|
|
360
360
|
/**
|
|
361
361
|
* @license lucide-react v0.479.0 - ISC
|
|
362
362
|
*
|
|
363
363
|
* This source code is licensed under the ISC license.
|
|
364
364
|
* See the LICENSE file in the root directory of this source tree.
|
|
365
365
|
*/
|
|
366
|
-
const
|
|
366
|
+
const ii = [["path", { d: "M5 12h14", key: "1ays0h" }]], li = ee("Minus", ii);
|
|
367
367
|
/**
|
|
368
368
|
* @license lucide-react v0.479.0 - ISC
|
|
369
369
|
*
|
|
370
370
|
* This source code is licensed under the ISC license.
|
|
371
371
|
* See the LICENSE file in the root directory of this source tree.
|
|
372
372
|
*/
|
|
373
|
-
const
|
|
373
|
+
const ci = [
|
|
374
374
|
["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
|
|
375
375
|
["path", { d: "M9 3v18", key: "fh3hqa" }]
|
|
376
|
-
],
|
|
376
|
+
], di = ee("PanelLeft", ci);
|
|
377
377
|
/**
|
|
378
378
|
* @license lucide-react v0.479.0 - ISC
|
|
379
379
|
*
|
|
380
380
|
* This source code is licensed under the ISC license.
|
|
381
381
|
* See the LICENSE file in the root directory of this source tree.
|
|
382
382
|
*/
|
|
383
|
-
const
|
|
383
|
+
const ui = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], fi = ee("Play", ui);
|
|
384
384
|
/**
|
|
385
385
|
* @license lucide-react v0.479.0 - ISC
|
|
386
386
|
*
|
|
387
387
|
* This source code is licensed under the ISC license.
|
|
388
388
|
* See the LICENSE file in the root directory of this source tree.
|
|
389
389
|
*/
|
|
390
|
-
const
|
|
390
|
+
const pi = [
|
|
391
391
|
["rect", { width: "5", height: "5", x: "3", y: "3", rx: "1", key: "1tu5fj" }],
|
|
392
392
|
["rect", { width: "5", height: "5", x: "16", y: "3", rx: "1", key: "1v8r4q" }],
|
|
393
393
|
["rect", { width: "5", height: "5", x: "3", y: "16", rx: "1", key: "1x03jg" }],
|
|
@@ -400,36 +400,36 @@ const fi = [
|
|
|
400
400
|
["path", { d: "M16 12h1", key: "1slzba" }],
|
|
401
401
|
["path", { d: "M21 12v.01", key: "1lwtk9" }],
|
|
402
402
|
["path", { d: "M12 21v-1", key: "1880an" }]
|
|
403
|
-
],
|
|
403
|
+
], mi = ee("QrCode", pi);
|
|
404
404
|
/**
|
|
405
405
|
* @license lucide-react v0.479.0 - ISC
|
|
406
406
|
*
|
|
407
407
|
* This source code is licensed under the ISC license.
|
|
408
408
|
* See the LICENSE file in the root directory of this source tree.
|
|
409
409
|
*/
|
|
410
|
-
const
|
|
410
|
+
const hi = [
|
|
411
411
|
["path", { d: "M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8", key: "v9h5vc" }],
|
|
412
412
|
["path", { d: "M21 3v5h-5", key: "1q7to0" }],
|
|
413
413
|
["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
|
|
414
414
|
["path", { d: "M8 16H3v5", key: "1cv678" }]
|
|
415
|
-
],
|
|
415
|
+
], gi = ee("RefreshCw", hi);
|
|
416
416
|
/**
|
|
417
417
|
* @license lucide-react v0.479.0 - ISC
|
|
418
418
|
*
|
|
419
419
|
* This source code is licensed under the ISC license.
|
|
420
420
|
* See the LICENSE file in the root directory of this source tree.
|
|
421
421
|
*/
|
|
422
|
-
const
|
|
422
|
+
const vi = [
|
|
423
423
|
["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
|
|
424
424
|
["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
|
|
425
|
-
],
|
|
425
|
+
], bi = ee("Search", vi);
|
|
426
426
|
/**
|
|
427
427
|
* @license lucide-react v0.479.0 - ISC
|
|
428
428
|
*
|
|
429
429
|
* This source code is licensed under the ISC license.
|
|
430
430
|
* See the LICENSE file in the root directory of this source tree.
|
|
431
431
|
*/
|
|
432
|
-
const
|
|
432
|
+
const yi = [
|
|
433
433
|
[
|
|
434
434
|
"path",
|
|
435
435
|
{
|
|
@@ -438,7 +438,7 @@ const bi = [
|
|
|
438
438
|
}
|
|
439
439
|
],
|
|
440
440
|
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
441
|
-
],
|
|
441
|
+
], xr = ee("ShieldCheck", yi);
|
|
442
442
|
/**
|
|
443
443
|
* @license lucide-react v0.479.0 - ISC
|
|
444
444
|
*
|
|
@@ -455,7 +455,7 @@ const wi = [
|
|
|
455
455
|
key: "9zh506"
|
|
456
456
|
}
|
|
457
457
|
]
|
|
458
|
-
],
|
|
458
|
+
], Nr = ee("ShoppingCart", wi);
|
|
459
459
|
/**
|
|
460
460
|
* @license lucide-react v0.479.0 - ISC
|
|
461
461
|
*
|
|
@@ -509,7 +509,7 @@ const Si = [
|
|
|
509
509
|
["path", { d: "M6 18h12", key: "9pbo8z" }],
|
|
510
510
|
["path", { d: "M6 14h12", key: "4cwo0f" }],
|
|
511
511
|
["rect", { width: "12", height: "12", x: "6", y: "10", key: "apd30q" }]
|
|
512
|
-
],
|
|
512
|
+
], Cr = ee("Warehouse", Si);
|
|
513
513
|
/**
|
|
514
514
|
* @license lucide-react v0.479.0 - ISC
|
|
515
515
|
*
|
|
@@ -520,17 +520,17 @@ const Ti = [
|
|
|
520
520
|
["path", { d: "M18 6 6 18", key: "1bl5f8" }],
|
|
521
521
|
["path", { d: "m6 6 12 12", key: "d8bk6v" }]
|
|
522
522
|
], Un = ee("X", Ti);
|
|
523
|
-
function
|
|
523
|
+
function lo(e) {
|
|
524
524
|
var t, n, r = "";
|
|
525
525
|
if (typeof e == "string" || typeof e == "number") r += e;
|
|
526
526
|
else if (typeof e == "object") if (Array.isArray(e)) {
|
|
527
527
|
var o = e.length;
|
|
528
|
-
for (t = 0; t < o; t++) e[t] && (n =
|
|
528
|
+
for (t = 0; t < o; t++) e[t] && (n = lo(e[t])) && (r && (r += " "), r += n);
|
|
529
529
|
} else for (n in e) e[n] && (r && (r += " "), r += n);
|
|
530
530
|
return r;
|
|
531
531
|
}
|
|
532
|
-
function
|
|
533
|
-
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t =
|
|
532
|
+
function co() {
|
|
533
|
+
for (var e, t, n = 0, r = "", o = arguments.length; n < o; n++) (e = arguments[n]) && (t = lo(e)) && (r && (r += " "), r += t);
|
|
534
534
|
return r;
|
|
535
535
|
}
|
|
536
536
|
const Gn = "-", Ri = (e) => {
|
|
@@ -541,18 +541,18 @@ const Gn = "-", Ri = (e) => {
|
|
|
541
541
|
return {
|
|
542
542
|
getClassGroupId: (s) => {
|
|
543
543
|
const c = s.split(Gn);
|
|
544
|
-
return c[0] === "" && c.length !== 1 && c.shift(),
|
|
544
|
+
return c[0] === "" && c.length !== 1 && c.shift(), uo(c, t) || Pi(s);
|
|
545
545
|
},
|
|
546
546
|
getConflictingClassGroupIds: (s, c) => {
|
|
547
547
|
const u = n[s] || [];
|
|
548
548
|
return c && r[s] ? [...u, ...r[s]] : u;
|
|
549
549
|
}
|
|
550
550
|
};
|
|
551
|
-
},
|
|
551
|
+
}, uo = (e, t) => {
|
|
552
552
|
var s;
|
|
553
553
|
if (e.length === 0)
|
|
554
554
|
return t.classGroupId;
|
|
555
|
-
const n = e[0], r = t.nextPart.get(n), o = r ?
|
|
555
|
+
const n = e[0], r = t.nextPart.get(n), o = r ? uo(e.slice(1), r) : void 0;
|
|
556
556
|
if (o)
|
|
557
557
|
return o;
|
|
558
558
|
if (t.validators.length === 0)
|
|
@@ -561,9 +561,9 @@ const Gn = "-", Ri = (e) => {
|
|
|
561
561
|
return (s = t.validators.find(({
|
|
562
562
|
validator: c
|
|
563
563
|
}) => c(a))) == null ? void 0 : s.classGroupId;
|
|
564
|
-
},
|
|
565
|
-
if (
|
|
566
|
-
const t =
|
|
564
|
+
}, Er = /^\[(.+)\]$/, Pi = (e) => {
|
|
565
|
+
if (Er.test(e)) {
|
|
566
|
+
const t = Er.exec(e)[1], n = t == null ? void 0 : t.substring(0, t.indexOf(":"));
|
|
567
567
|
if (n)
|
|
568
568
|
return "arbitrary.." + n;
|
|
569
569
|
}
|
|
@@ -581,7 +581,7 @@ const Gn = "-", Ri = (e) => {
|
|
|
581
581
|
}, Pn = (e, t, n, r) => {
|
|
582
582
|
e.forEach((o) => {
|
|
583
583
|
if (typeof o == "string") {
|
|
584
|
-
const a = o === "" ? t :
|
|
584
|
+
const a = o === "" ? t : Sr(t, o);
|
|
585
585
|
a.classGroupId = n;
|
|
586
586
|
return;
|
|
587
587
|
}
|
|
@@ -597,10 +597,10 @@ const Gn = "-", Ri = (e) => {
|
|
|
597
597
|
return;
|
|
598
598
|
}
|
|
599
599
|
Object.entries(o).forEach(([a, s]) => {
|
|
600
|
-
Pn(s,
|
|
600
|
+
Pn(s, Sr(t, a), n, r);
|
|
601
601
|
});
|
|
602
602
|
});
|
|
603
|
-
},
|
|
603
|
+
}, Sr = (e, t) => {
|
|
604
604
|
let n = e;
|
|
605
605
|
return t.split(Gn).forEach((r) => {
|
|
606
606
|
n.nextPart.has(r) || n.nextPart.set(r, {
|
|
@@ -744,15 +744,15 @@ const Gn = "-", Ri = (e) => {
|
|
|
744
744
|
function zi() {
|
|
745
745
|
let e = 0, t, n, r = "";
|
|
746
746
|
for (; e < arguments.length; )
|
|
747
|
-
(t = arguments[e++]) && (n =
|
|
747
|
+
(t = arguments[e++]) && (n = fo(t)) && (r && (r += " "), r += n);
|
|
748
748
|
return r;
|
|
749
749
|
}
|
|
750
|
-
const
|
|
750
|
+
const fo = (e) => {
|
|
751
751
|
if (typeof e == "string")
|
|
752
752
|
return e;
|
|
753
753
|
let t, n = "";
|
|
754
754
|
for (let r = 0; r < e.length; r++)
|
|
755
|
-
e[r] && (t =
|
|
755
|
+
e[r] && (t = fo(e[r])) && (n && (n += " "), n += t);
|
|
756
756
|
return n;
|
|
757
757
|
};
|
|
758
758
|
function Wi(e, ...t) {
|
|
@@ -775,21 +775,21 @@ function Wi(e, ...t) {
|
|
|
775
775
|
const re = (e) => {
|
|
776
776
|
const t = (n) => n[e] || [];
|
|
777
777
|
return t.isThemeGetter = !0, t;
|
|
778
|
-
},
|
|
778
|
+
}, po = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, mo = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Bi = /^\d+\/\d+$/, ji = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, Vi = /\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$/, Hi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Ui = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Gi = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Je = (e) => Bi.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), Ke = (e) => !!e && Number.isInteger(Number(e)), Tr = (e) => e.endsWith("%") && V(e.slice(0, -1)), _e = (e) => ji.test(e), Ki = () => !0, Yi = (e) => (
|
|
779
779
|
// `colorFunctionRegex` check is necessary because color functions can have percentages in them which which would be incorrectly classified as lengths.
|
|
780
780
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
781
781
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
782
782
|
Vi.test(e) && !Hi.test(e)
|
|
783
|
-
), Kn = () => !1, qi = (e) => Ui.test(e),
|
|
784
|
-
const r = fo.exec(e);
|
|
785
|
-
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
786
|
-
}, lt = (e, t, n = !1) => {
|
|
783
|
+
), Kn = () => !1, qi = (e) => Ui.test(e), Qi = (e) => Gi.test(e), Xi = (e) => !P(e) && !A(e), Zi = (e) => lt(e, vo, Kn), P = (e) => po.test(e), Ye = (e) => lt(e, bo, Yi), pn = (e) => lt(e, cl, V), Ji = (e) => lt(e, ho, Kn), el = (e) => lt(e, go, Qi), tl = (e) => lt(e, Kn, qi), A = (e) => mo.test(e), Et = (e) => ct(e, bo), nl = (e) => ct(e, dl), rl = (e) => ct(e, ho), ol = (e) => ct(e, vo), al = (e) => ct(e, go), sl = (e) => ct(e, ul, !0), lt = (e, t, n) => {
|
|
787
784
|
const r = po.exec(e);
|
|
785
|
+
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
786
|
+
}, ct = (e, t, n = !1) => {
|
|
787
|
+
const r = mo.exec(e);
|
|
788
788
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
789
|
-
},
|
|
790
|
-
const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), a = re("leading"), s = re("breakpoint"), c = re("container"), u = re("spacing"), d = re("radius"), p = re("shadow"), m = re("inset-shadow"), v = re("drop-shadow"), g = re("blur"), y = re("perspective"), f = re("aspect"), h = re("ease"), b = re("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], E = () => [A, P, u], T = () => [
|
|
791
|
-
span: ["full",
|
|
792
|
-
}, A, P], B = () => [
|
|
789
|
+
}, ho = (e) => e === "position", il = /* @__PURE__ */ new Set(["image", "url"]), go = (e) => il.has(e), ll = /* @__PURE__ */ new Set(["length", "size", "percentage"]), vo = (e) => ll.has(e), bo = (e) => e === "length", cl = (e) => e === "number", dl = (e) => e === "family-name", ul = (e) => e === "shadow", fl = () => {
|
|
790
|
+
const e = re("color"), t = re("font"), n = re("text"), r = re("font-weight"), o = re("tracking"), a = re("leading"), s = re("breakpoint"), c = re("container"), u = re("spacing"), d = re("radius"), p = re("shadow"), m = re("inset-shadow"), v = re("drop-shadow"), g = re("blur"), y = re("perspective"), f = re("aspect"), h = re("ease"), b = re("animate"), w = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], N = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], C = () => ["auto", "hidden", "clip", "visible", "scroll"], S = () => ["auto", "contain", "none"], E = () => [A, P, u], T = () => [Je, "full", "auto", ...E()], F = () => [Ke, "none", "subgrid", A, P], D = () => ["auto", {
|
|
791
|
+
span: ["full", Ke, A, P]
|
|
792
|
+
}, A, P], B = () => [Ke, "auto", A, P], H = () => ["auto", "min", "max", "fr", A, P], j = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], I = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], z = () => [Je, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], k = () => [e, A, P], U = () => [Tr, Ye], O = () => [
|
|
793
793
|
// Deprecated since Tailwind CSS v4.0.0
|
|
794
794
|
"",
|
|
795
795
|
"none",
|
|
@@ -797,34 +797,34 @@ const re = (e) => {
|
|
|
797
797
|
d,
|
|
798
798
|
A,
|
|
799
799
|
P
|
|
800
|
-
], L = () => ["", V, Et,
|
|
800
|
+
], L = () => ["", V, Et, Ye], q = () => ["solid", "dashed", "dotted", "double"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], oe = () => [
|
|
801
801
|
// Deprecated since Tailwind CSS v4.0.0
|
|
802
802
|
"",
|
|
803
803
|
"none",
|
|
804
804
|
g,
|
|
805
805
|
A,
|
|
806
806
|
P
|
|
807
|
-
], te = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", A, P], ne = () => ["none", V, A, P], se = () => ["none", V, A, P], ve = () => [V, A, P], ue = () => [
|
|
807
|
+
], te = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", A, P], ne = () => ["none", V, A, P], se = () => ["none", V, A, P], ve = () => [V, A, P], ue = () => [Je, "full", ...E()];
|
|
808
808
|
return {
|
|
809
809
|
cacheSize: 500,
|
|
810
810
|
theme: {
|
|
811
811
|
animate: ["spin", "ping", "pulse", "bounce"],
|
|
812
812
|
aspect: ["video"],
|
|
813
|
-
blur: [
|
|
814
|
-
breakpoint: [
|
|
813
|
+
blur: [_e],
|
|
814
|
+
breakpoint: [_e],
|
|
815
815
|
color: [Ki],
|
|
816
|
-
container: [
|
|
817
|
-
"drop-shadow": [
|
|
816
|
+
container: [_e],
|
|
817
|
+
"drop-shadow": [_e],
|
|
818
818
|
ease: ["in", "out", "in-out"],
|
|
819
|
-
font: [
|
|
819
|
+
font: [Xi],
|
|
820
820
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
821
|
-
"inset-shadow": [
|
|
821
|
+
"inset-shadow": [_e],
|
|
822
822
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
823
823
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
824
|
-
radius: [
|
|
825
|
-
shadow: [
|
|
824
|
+
radius: [_e],
|
|
825
|
+
shadow: [_e],
|
|
826
826
|
spacing: ["px", V],
|
|
827
|
-
text: [
|
|
827
|
+
text: [_e],
|
|
828
828
|
tracking: ["tighter", "tight", "normal", "wide", "wider", "widest"]
|
|
829
829
|
},
|
|
830
830
|
classGroups: {
|
|
@@ -836,7 +836,7 @@ const re = (e) => {
|
|
|
836
836
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
837
837
|
*/
|
|
838
838
|
aspect: [{
|
|
839
|
-
aspect: ["auto", "square",
|
|
839
|
+
aspect: ["auto", "square", Je, P, A, f]
|
|
840
840
|
}],
|
|
841
841
|
/**
|
|
842
842
|
* Container
|
|
@@ -1049,7 +1049,7 @@ const re = (e) => {
|
|
|
1049
1049
|
* @see https://tailwindcss.com/docs/z-index
|
|
1050
1050
|
*/
|
|
1051
1051
|
z: [{
|
|
1052
|
-
z: [
|
|
1052
|
+
z: [Ke, "auto", A, P]
|
|
1053
1053
|
}],
|
|
1054
1054
|
// ------------------------
|
|
1055
1055
|
// --- Flexbox and Grid ---
|
|
@@ -1059,7 +1059,7 @@ const re = (e) => {
|
|
|
1059
1059
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1060
1060
|
*/
|
|
1061
1061
|
basis: [{
|
|
1062
|
-
basis: [
|
|
1062
|
+
basis: [Je, "full", "auto", c, ...E()]
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Flex Direction
|
|
@@ -1080,7 +1080,7 @@ const re = (e) => {
|
|
|
1080
1080
|
* @see https://tailwindcss.com/docs/flex
|
|
1081
1081
|
*/
|
|
1082
1082
|
flex: [{
|
|
1083
|
-
flex: [V,
|
|
1083
|
+
flex: [V, Je, "auto", "initial", "none", P]
|
|
1084
1084
|
}],
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Flex Grow
|
|
@@ -1101,7 +1101,7 @@ const re = (e) => {
|
|
|
1101
1101
|
* @see https://tailwindcss.com/docs/order
|
|
1102
1102
|
*/
|
|
1103
1103
|
order: [{
|
|
1104
|
-
order: [
|
|
1104
|
+
order: [Ke, "first", "last", "none", A, P]
|
|
1105
1105
|
}],
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Grid Template Columns
|
|
@@ -1492,7 +1492,7 @@ const re = (e) => {
|
|
|
1492
1492
|
* @see https://tailwindcss.com/docs/font-size
|
|
1493
1493
|
*/
|
|
1494
1494
|
"font-size": [{
|
|
1495
|
-
text: ["base", n, Et,
|
|
1495
|
+
text: ["base", n, Et, Ye]
|
|
1496
1496
|
}],
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Font Smoothing
|
|
@@ -1516,7 +1516,7 @@ const re = (e) => {
|
|
|
1516
1516
|
* @see https://tailwindcss.com/docs/font-stretch
|
|
1517
1517
|
*/
|
|
1518
1518
|
"font-stretch": [{
|
|
1519
|
-
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded",
|
|
1519
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Tr, P]
|
|
1520
1520
|
}],
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Font Family
|
|
@@ -1640,7 +1640,7 @@ const re = (e) => {
|
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1641
1641
|
*/
|
|
1642
1642
|
"text-decoration-thickness": [{
|
|
1643
|
-
decoration: [V, "from-font", "auto", A,
|
|
1643
|
+
decoration: [V, "from-font", "auto", A, Ye]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Text Decoration Color
|
|
@@ -1770,9 +1770,9 @@ const re = (e) => {
|
|
|
1770
1770
|
bg: ["none", {
|
|
1771
1771
|
linear: [{
|
|
1772
1772
|
to: ["t", "tr", "r", "br", "b", "bl", "l", "tl"]
|
|
1773
|
-
},
|
|
1773
|
+
}, Ke, A, P],
|
|
1774
1774
|
radial: ["", A, P],
|
|
1775
|
-
conic: [
|
|
1775
|
+
conic: [Ke, A, P]
|
|
1776
1776
|
}, al, el]
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
@@ -2122,7 +2122,7 @@ const re = (e) => {
|
|
|
2122
2122
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2123
2123
|
*/
|
|
2124
2124
|
"outline-w": [{
|
|
2125
|
-
outline: ["", V, Et,
|
|
2125
|
+
outline: ["", V, Et, Ye]
|
|
2126
2126
|
}],
|
|
2127
2127
|
/**
|
|
2128
2128
|
* Outline Color
|
|
@@ -2197,7 +2197,7 @@ const re = (e) => {
|
|
|
2197
2197
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2198
2198
|
*/
|
|
2199
2199
|
"ring-offset-w": [{
|
|
2200
|
-
"ring-offset": [V,
|
|
2200
|
+
"ring-offset": [V, Ye]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Ring Offset Color
|
|
@@ -2930,7 +2930,7 @@ const re = (e) => {
|
|
|
2930
2930
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2931
2931
|
*/
|
|
2932
2932
|
"stroke-w": [{
|
|
2933
|
-
stroke: [V, Et,
|
|
2933
|
+
stroke: [V, Et, Ye, pn]
|
|
2934
2934
|
}],
|
|
2935
2935
|
/**
|
|
2936
2936
|
* Stroke
|
|
@@ -3007,7 +3007,7 @@ const re = (e) => {
|
|
|
3007
3007
|
};
|
|
3008
3008
|
}, pl = /* @__PURE__ */ Wi(fl);
|
|
3009
3009
|
function M(...e) {
|
|
3010
|
-
return pl(
|
|
3010
|
+
return pl(co(e));
|
|
3011
3011
|
}
|
|
3012
3012
|
function Wf({
|
|
3013
3013
|
className: e,
|
|
@@ -3015,7 +3015,7 @@ function Wf({
|
|
|
3015
3015
|
...n
|
|
3016
3016
|
}) {
|
|
3017
3017
|
return /* @__PURE__ */ i(
|
|
3018
|
-
|
|
3018
|
+
ao,
|
|
3019
3019
|
{
|
|
3020
3020
|
"data-slot": "input-otp",
|
|
3021
3021
|
containerClassName: M(
|
|
@@ -3042,7 +3042,7 @@ function jf({
|
|
|
3042
3042
|
className: t,
|
|
3043
3043
|
...n
|
|
3044
3044
|
}) {
|
|
3045
|
-
const r = l.useContext(
|
|
3045
|
+
const r = l.useContext(oo), { char: o, hasFakeCaret: a, isActive: s } = (r == null ? void 0 : r.slots[e]) ?? {};
|
|
3046
3046
|
return /* @__PURE__ */ x(
|
|
3047
3047
|
"div",
|
|
3048
3048
|
{
|
|
@@ -3061,37 +3061,37 @@ function jf({
|
|
|
3061
3061
|
);
|
|
3062
3062
|
}
|
|
3063
3063
|
function Vf({ ...e }) {
|
|
3064
|
-
return /* @__PURE__ */ i("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ i(
|
|
3064
|
+
return /* @__PURE__ */ i("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ i(li, {}) });
|
|
3065
3065
|
}
|
|
3066
|
-
function
|
|
3066
|
+
function Q(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
3067
3067
|
return function(o) {
|
|
3068
3068
|
if (e == null || e(o), n === !1 || !o.defaultPrevented)
|
|
3069
3069
|
return t == null ? void 0 : t(o);
|
|
3070
3070
|
};
|
|
3071
3071
|
}
|
|
3072
|
-
function
|
|
3072
|
+
function Rr(e, t) {
|
|
3073
3073
|
if (typeof e == "function")
|
|
3074
3074
|
return e(t);
|
|
3075
3075
|
e != null && (e.current = t);
|
|
3076
3076
|
}
|
|
3077
|
-
function
|
|
3077
|
+
function yo(...e) {
|
|
3078
3078
|
return (t) => {
|
|
3079
3079
|
let n = !1;
|
|
3080
3080
|
const r = e.map((o) => {
|
|
3081
|
-
const a =
|
|
3081
|
+
const a = Rr(o, t);
|
|
3082
3082
|
return !n && typeof a == "function" && (n = !0), a;
|
|
3083
3083
|
});
|
|
3084
3084
|
if (n)
|
|
3085
3085
|
return () => {
|
|
3086
3086
|
for (let o = 0; o < r.length; o++) {
|
|
3087
3087
|
const a = r[o];
|
|
3088
|
-
typeof a == "function" ? a() :
|
|
3088
|
+
typeof a == "function" ? a() : Rr(e[o], null);
|
|
3089
3089
|
}
|
|
3090
3090
|
};
|
|
3091
3091
|
};
|
|
3092
3092
|
}
|
|
3093
3093
|
function le(...e) {
|
|
3094
|
-
return l.useCallback(
|
|
3094
|
+
return l.useCallback(yo(...e), e);
|
|
3095
3095
|
}
|
|
3096
3096
|
function ml(e, t) {
|
|
3097
3097
|
const n = l.createContext(t), r = (a) => {
|
|
@@ -3107,7 +3107,7 @@ function ml(e, t) {
|
|
|
3107
3107
|
}
|
|
3108
3108
|
return [r, o];
|
|
3109
3109
|
}
|
|
3110
|
-
function
|
|
3110
|
+
function yt(e, t = []) {
|
|
3111
3111
|
let n = [];
|
|
3112
3112
|
function r(a, s) {
|
|
3113
3113
|
const c = l.createContext(s), u = n.length;
|
|
@@ -3157,12 +3157,12 @@ function hl(...e) {
|
|
|
3157
3157
|
};
|
|
3158
3158
|
return n.scopeName = t.scopeName, n;
|
|
3159
3159
|
}
|
|
3160
|
-
var
|
|
3160
|
+
var $e = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3161
3161
|
}, gl = l.useId || (() => {
|
|
3162
3162
|
}), vl = 0;
|
|
3163
3163
|
function Ot(e) {
|
|
3164
3164
|
const [t, n] = l.useState(gl());
|
|
3165
|
-
return
|
|
3165
|
+
return $e(() => {
|
|
3166
3166
|
n((r) => r ?? String(vl++));
|
|
3167
3167
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3168
3168
|
}
|
|
@@ -3215,14 +3215,14 @@ var Mn = l.forwardRef((e, t) => {
|
|
|
3215
3215
|
const { children: n, ...r } = e;
|
|
3216
3216
|
if (l.isValidElement(n)) {
|
|
3217
3217
|
const o = xl(n), a = wl(r, n.props);
|
|
3218
|
-
return n.type !== l.Fragment && (a.ref = t ?
|
|
3218
|
+
return n.type !== l.Fragment && (a.ref = t ? yo(t, o) : o), l.cloneElement(n, a);
|
|
3219
3219
|
}
|
|
3220
3220
|
return l.Children.count(n) > 1 ? l.Children.only(null) : null;
|
|
3221
3221
|
});
|
|
3222
3222
|
Mn.displayName = "SlotClone";
|
|
3223
|
-
var
|
|
3223
|
+
var wo = ({ children: e }) => /* @__PURE__ */ i(J, { children: e });
|
|
3224
3224
|
function yl(e) {
|
|
3225
|
-
return l.isValidElement(e) && e.type ===
|
|
3225
|
+
return l.isValidElement(e) && e.type === wo;
|
|
3226
3226
|
}
|
|
3227
3227
|
function wl(e, t) {
|
|
3228
3228
|
const n = { ...t };
|
|
@@ -3256,14 +3256,14 @@ var Nl = [
|
|
|
3256
3256
|
"span",
|
|
3257
3257
|
"svg",
|
|
3258
3258
|
"ul"
|
|
3259
|
-
],
|
|
3259
|
+
], X = Nl.reduce((e, t) => {
|
|
3260
3260
|
const n = l.forwardRef((r, o) => {
|
|
3261
3261
|
const { asChild: a, ...s } = r, c = a ? we : t;
|
|
3262
3262
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ i(c, { ...s, ref: o });
|
|
3263
3263
|
});
|
|
3264
3264
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
3265
3265
|
}, {});
|
|
3266
|
-
function
|
|
3266
|
+
function xo(e, t) {
|
|
3267
3267
|
e && Hn.flushSync(() => e.dispatchEvent(t));
|
|
3268
3268
|
}
|
|
3269
3269
|
function Cl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
@@ -3275,7 +3275,7 @@ function Cl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3275
3275
|
return t.addEventListener("keydown", r, { capture: !0 }), () => t.removeEventListener("keydown", r, { capture: !0 });
|
|
3276
3276
|
}, [n, t]);
|
|
3277
3277
|
}
|
|
3278
|
-
var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLayer.pointerDownOutside", Tl = "dismissableLayer.focusOutside",
|
|
3278
|
+
var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLayer.pointerDownOutside", Tl = "dismissableLayer.focusOutside", Pr, No = l.createContext({
|
|
3279
3279
|
layers: /* @__PURE__ */ new Set(),
|
|
3280
3280
|
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
3281
3281
|
branches: /* @__PURE__ */ new Set()
|
|
@@ -3289,7 +3289,7 @@ var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLa
|
|
|
3289
3289
|
onInteractOutside: s,
|
|
3290
3290
|
onDismiss: c,
|
|
3291
3291
|
...u
|
|
3292
|
-
} = e, d = l.useContext(
|
|
3292
|
+
} = e, d = l.useContext(No), [p, m] = l.useState(null), v = (p == null ? void 0 : p.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, g] = l.useState({}), y = le(t, (T) => m(T)), f = Array.from(d.layers), [h] = [...d.layersWithOutsidePointerEventsDisabled].slice(-1), b = f.indexOf(h), w = p ? f.indexOf(p) : -1, N = d.layersWithOutsidePointerEventsDisabled.size > 0, C = w >= b, S = Pl((T) => {
|
|
3293
3293
|
const F = T.target, D = [...d.branches].some((B) => B.contains(F));
|
|
3294
3294
|
!C || D || (o == null || o(T), s == null || s(T), T.defaultPrevented || c == null || c());
|
|
3295
3295
|
}, v), E = Al((T) => {
|
|
@@ -3300,16 +3300,16 @@ var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLa
|
|
|
3300
3300
|
w === d.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && c && (T.preventDefault(), c()));
|
|
3301
3301
|
}, v), l.useEffect(() => {
|
|
3302
3302
|
if (p)
|
|
3303
|
-
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (
|
|
3304
|
-
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents =
|
|
3303
|
+
return n && (d.layersWithOutsidePointerEventsDisabled.size === 0 && (Pr = v.body.style.pointerEvents, v.body.style.pointerEvents = "none"), d.layersWithOutsidePointerEventsDisabled.add(p)), d.layers.add(p), Ar(), () => {
|
|
3304
|
+
n && d.layersWithOutsidePointerEventsDisabled.size === 1 && (v.body.style.pointerEvents = Pr);
|
|
3305
3305
|
};
|
|
3306
3306
|
}, [p, v, n, d]), l.useEffect(() => () => {
|
|
3307
|
-
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p),
|
|
3307
|
+
p && (d.layers.delete(p), d.layersWithOutsidePointerEventsDisabled.delete(p), Ar());
|
|
3308
3308
|
}, [p, d]), l.useEffect(() => {
|
|
3309
3309
|
const T = () => g({});
|
|
3310
3310
|
return document.addEventListener(On, T), () => document.removeEventListener(On, T);
|
|
3311
3311
|
}, []), /* @__PURE__ */ i(
|
|
3312
|
-
|
|
3312
|
+
X.div,
|
|
3313
3313
|
{
|
|
3314
3314
|
...u,
|
|
3315
3315
|
ref: y,
|
|
@@ -3317,9 +3317,9 @@ var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLa
|
|
|
3317
3317
|
pointerEvents: N ? C ? "auto" : "none" : void 0,
|
|
3318
3318
|
...e.style
|
|
3319
3319
|
},
|
|
3320
|
-
onFocusCapture:
|
|
3321
|
-
onBlurCapture:
|
|
3322
|
-
onPointerDownCapture:
|
|
3320
|
+
onFocusCapture: Q(e.onFocusCapture, E.onFocusCapture),
|
|
3321
|
+
onBlurCapture: Q(e.onBlurCapture, E.onBlurCapture),
|
|
3322
|
+
onPointerDownCapture: Q(
|
|
3323
3323
|
e.onPointerDownCapture,
|
|
3324
3324
|
S.onPointerDownCapture
|
|
3325
3325
|
)
|
|
@@ -3328,17 +3328,17 @@ var El = "DismissableLayer", On = "dismissableLayer.update", Sl = "dismissableLa
|
|
|
3328
3328
|
}
|
|
3329
3329
|
);
|
|
3330
3330
|
Ut.displayName = El;
|
|
3331
|
-
var Rl = "DismissableLayerBranch",
|
|
3332
|
-
const n = l.useContext(
|
|
3331
|
+
var Rl = "DismissableLayerBranch", Co = l.forwardRef((e, t) => {
|
|
3332
|
+
const n = l.useContext(No), r = l.useRef(null), o = le(t, r);
|
|
3333
3333
|
return l.useEffect(() => {
|
|
3334
3334
|
const a = r.current;
|
|
3335
3335
|
if (a)
|
|
3336
3336
|
return n.branches.add(a), () => {
|
|
3337
3337
|
n.branches.delete(a);
|
|
3338
3338
|
};
|
|
3339
|
-
}, [n.branches]), /* @__PURE__ */ i(
|
|
3339
|
+
}, [n.branches]), /* @__PURE__ */ i(X.div, { ...e, ref: o });
|
|
3340
3340
|
});
|
|
3341
|
-
|
|
3341
|
+
Co.displayName = Rl;
|
|
3342
3342
|
function Pl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3343
3343
|
const n = ge(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
3344
3344
|
});
|
|
@@ -3346,7 +3346,7 @@ function Pl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3346
3346
|
const a = (c) => {
|
|
3347
3347
|
if (c.target && !r.current) {
|
|
3348
3348
|
let u = function() {
|
|
3349
|
-
|
|
3349
|
+
Eo(
|
|
3350
3350
|
Sl,
|
|
3351
3351
|
n,
|
|
3352
3352
|
d,
|
|
@@ -3373,7 +3373,7 @@ function Al(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3373
3373
|
const n = ge(e), r = l.useRef(!1);
|
|
3374
3374
|
return l.useEffect(() => {
|
|
3375
3375
|
const o = (a) => {
|
|
3376
|
-
a.target && !r.current &&
|
|
3376
|
+
a.target && !r.current && Eo(Tl, n, { originalEvent: a }, {
|
|
3377
3377
|
discrete: !1
|
|
3378
3378
|
});
|
|
3379
3379
|
};
|
|
@@ -3383,15 +3383,15 @@ function Al(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3383
3383
|
onBlurCapture: () => r.current = !1
|
|
3384
3384
|
};
|
|
3385
3385
|
}
|
|
3386
|
-
function
|
|
3386
|
+
function Ar() {
|
|
3387
3387
|
const e = new CustomEvent(On);
|
|
3388
3388
|
document.dispatchEvent(e);
|
|
3389
3389
|
}
|
|
3390
|
-
function
|
|
3390
|
+
function Eo(e, t, n, { discrete: r }) {
|
|
3391
3391
|
const o = n.originalEvent.target, a = new CustomEvent(e, { bubbles: !1, cancelable: !0, detail: n });
|
|
3392
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
3392
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? xo(o, a) : o.dispatchEvent(a);
|
|
3393
3393
|
}
|
|
3394
|
-
var kl = Ut, Ml =
|
|
3394
|
+
var kl = Ut, Ml = Co, mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoFocusOnUnmount", kr = { bubbles: !1, cancelable: !0 }, Ol = "FocusScope", So = l.forwardRef((e, t) => {
|
|
3395
3395
|
const {
|
|
3396
3396
|
loop: n = !1,
|
|
3397
3397
|
trapped: r = !1,
|
|
@@ -3412,15 +3412,15 @@ var kl = Ut, Ml = No, mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoF
|
|
|
3412
3412
|
let f = function(N) {
|
|
3413
3413
|
if (g.paused || !c) return;
|
|
3414
3414
|
const C = N.target;
|
|
3415
|
-
c.contains(C) ? m.current = C :
|
|
3415
|
+
c.contains(C) ? m.current = C : Le(m.current, { select: !0 });
|
|
3416
3416
|
}, h = function(N) {
|
|
3417
3417
|
if (g.paused || !c) return;
|
|
3418
3418
|
const C = N.relatedTarget;
|
|
3419
|
-
C !== null && (c.contains(C) ||
|
|
3419
|
+
C !== null && (c.contains(C) || Le(m.current, { select: !0 }));
|
|
3420
3420
|
}, b = function(N) {
|
|
3421
3421
|
if (document.activeElement === document.body)
|
|
3422
3422
|
for (const S of N)
|
|
3423
|
-
S.removedNodes.length > 0 &&
|
|
3423
|
+
S.removedNodes.length > 0 && Le(c);
|
|
3424
3424
|
};
|
|
3425
3425
|
document.addEventListener("focusin", f), document.addEventListener("focusout", h);
|
|
3426
3426
|
const w = new MutationObserver(b);
|
|
@@ -3430,16 +3430,16 @@ var kl = Ut, Ml = No, mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoF
|
|
|
3430
3430
|
}
|
|
3431
3431
|
}, [r, c, g.paused]), l.useEffect(() => {
|
|
3432
3432
|
if (c) {
|
|
3433
|
-
|
|
3433
|
+
Or.add(g);
|
|
3434
3434
|
const f = document.activeElement;
|
|
3435
3435
|
if (!c.contains(f)) {
|
|
3436
|
-
const b = new CustomEvent(mn,
|
|
3437
|
-
c.addEventListener(mn, d), c.dispatchEvent(b), b.defaultPrevented || (Dl(Fl(
|
|
3436
|
+
const b = new CustomEvent(mn, kr);
|
|
3437
|
+
c.addEventListener(mn, d), c.dispatchEvent(b), b.defaultPrevented || (Dl(Fl(To(c)), { select: !0 }), document.activeElement === f && Le(c));
|
|
3438
3438
|
}
|
|
3439
3439
|
return () => {
|
|
3440
3440
|
c.removeEventListener(mn, d), setTimeout(() => {
|
|
3441
|
-
const b = new CustomEvent(hn,
|
|
3442
|
-
c.addEventListener(hn, p), c.dispatchEvent(b), b.defaultPrevented ||
|
|
3441
|
+
const b = new CustomEvent(hn, kr);
|
|
3442
|
+
c.addEventListener(hn, p), c.dispatchEvent(b), b.defaultPrevented || Le(f ?? document.body, { select: !0 }), c.removeEventListener(hn, p), Or.remove(g);
|
|
3443
3443
|
}, 0);
|
|
3444
3444
|
};
|
|
3445
3445
|
}
|
|
@@ -3450,24 +3450,24 @@ var kl = Ut, Ml = No, mn = "focusScope.autoFocusOnMount", hn = "focusScope.autoF
|
|
|
3450
3450
|
const h = f.key === "Tab" && !f.altKey && !f.ctrlKey && !f.metaKey, b = document.activeElement;
|
|
3451
3451
|
if (h && b) {
|
|
3452
3452
|
const w = f.currentTarget, [N, C] = Il(w);
|
|
3453
|
-
N && C ? !f.shiftKey && b === C ? (f.preventDefault(), n &&
|
|
3453
|
+
N && C ? !f.shiftKey && b === C ? (f.preventDefault(), n && Le(N, { select: !0 })) : f.shiftKey && b === N && (f.preventDefault(), n && Le(C, { select: !0 })) : b === w && f.preventDefault();
|
|
3454
3454
|
}
|
|
3455
3455
|
},
|
|
3456
3456
|
[n, r, g.paused]
|
|
3457
3457
|
);
|
|
3458
|
-
return /* @__PURE__ */ i(
|
|
3458
|
+
return /* @__PURE__ */ i(X.div, { tabIndex: -1, ...s, ref: v, onKeyDown: y });
|
|
3459
3459
|
});
|
|
3460
|
-
|
|
3460
|
+
So.displayName = Ol;
|
|
3461
3461
|
function Dl(e, { select: t = !1 } = {}) {
|
|
3462
3462
|
const n = document.activeElement;
|
|
3463
3463
|
for (const r of e)
|
|
3464
|
-
if (
|
|
3464
|
+
if (Le(r, { select: t }), document.activeElement !== n) return;
|
|
3465
3465
|
}
|
|
3466
3466
|
function Il(e) {
|
|
3467
|
-
const t =
|
|
3467
|
+
const t = To(e), n = Mr(t, e), r = Mr(t.reverse(), e);
|
|
3468
3468
|
return [n, r];
|
|
3469
3469
|
}
|
|
3470
|
-
function
|
|
3470
|
+
function To(e) {
|
|
3471
3471
|
const t = [], n = document.createTreeWalker(e, NodeFilter.SHOW_ELEMENT, {
|
|
3472
3472
|
acceptNode: (r) => {
|
|
3473
3473
|
const o = r.tagName === "INPUT" && r.type === "hidden";
|
|
@@ -3477,7 +3477,7 @@ function So(e) {
|
|
|
3477
3477
|
for (; n.nextNode(); ) t.push(n.currentNode);
|
|
3478
3478
|
return t;
|
|
3479
3479
|
}
|
|
3480
|
-
function
|
|
3480
|
+
function Mr(e, t) {
|
|
3481
3481
|
for (const n of e)
|
|
3482
3482
|
if (!_l(n, { upTo: t })) return n;
|
|
3483
3483
|
}
|
|
@@ -3493,27 +3493,27 @@ function _l(e, { upTo: t }) {
|
|
|
3493
3493
|
function Ll(e) {
|
|
3494
3494
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function Le(e, { select: t = !1 } = {}) {
|
|
3497
3497
|
if (e && e.focus) {
|
|
3498
3498
|
const n = document.activeElement;
|
|
3499
3499
|
e.focus({ preventScroll: !0 }), e !== n && Ll(e) && t && e.select();
|
|
3500
3500
|
}
|
|
3501
3501
|
}
|
|
3502
|
-
var
|
|
3502
|
+
var Or = $l();
|
|
3503
3503
|
function $l() {
|
|
3504
3504
|
let e = [];
|
|
3505
3505
|
return {
|
|
3506
3506
|
add(t) {
|
|
3507
3507
|
const n = e[0];
|
|
3508
|
-
t !== n && (n == null || n.pause()), e =
|
|
3508
|
+
t !== n && (n == null || n.pause()), e = Dr(e, t), e.unshift(t);
|
|
3509
3509
|
},
|
|
3510
3510
|
remove(t) {
|
|
3511
3511
|
var n;
|
|
3512
|
-
e =
|
|
3512
|
+
e = Dr(e, t), (n = e[0]) == null || n.resume();
|
|
3513
3513
|
}
|
|
3514
3514
|
};
|
|
3515
3515
|
}
|
|
3516
|
-
function
|
|
3516
|
+
function Dr(e, t) {
|
|
3517
3517
|
const n = [...e], r = n.indexOf(t);
|
|
3518
3518
|
return r !== -1 && n.splice(r, 1), n;
|
|
3519
3519
|
}
|
|
@@ -3523,19 +3523,19 @@ function Fl(e) {
|
|
|
3523
3523
|
var zl = "Portal", Gt = l.forwardRef((e, t) => {
|
|
3524
3524
|
var c;
|
|
3525
3525
|
const { container: n, ...r } = e, [o, a] = l.useState(!1);
|
|
3526
|
-
|
|
3526
|
+
$e(() => a(!0), []);
|
|
3527
3527
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
3528
|
-
return s ?
|
|
3528
|
+
return s ? Rs.createPortal(/* @__PURE__ */ i(X.div, { ...r, ref: t }), s) : null;
|
|
3529
3529
|
});
|
|
3530
3530
|
Gt.displayName = zl;
|
|
3531
3531
|
function Wl(e, t) {
|
|
3532
3532
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3533
3533
|
}
|
|
3534
|
-
var
|
|
3534
|
+
var Ze = (e) => {
|
|
3535
3535
|
const { present: t, children: n } = e, r = Bl(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), a = le(r.ref, jl(o));
|
|
3536
3536
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3537
3537
|
};
|
|
3538
|
-
|
|
3538
|
+
Ze.displayName = "Presence";
|
|
3539
3539
|
function Bl(e) {
|
|
3540
3540
|
const [t, n] = l.useState(), r = l.useRef({}), o = l.useRef(e), a = l.useRef("none"), s = e ? "mounted" : "unmounted", [c, u] = Wl(s, {
|
|
3541
3541
|
mounted: {
|
|
@@ -3553,13 +3553,13 @@ function Bl(e) {
|
|
|
3553
3553
|
return l.useEffect(() => {
|
|
3554
3554
|
const d = St(r.current);
|
|
3555
3555
|
a.current = c === "mounted" ? d : "none";
|
|
3556
|
-
}, [c]),
|
|
3556
|
+
}, [c]), $e(() => {
|
|
3557
3557
|
const d = r.current, p = o.current;
|
|
3558
3558
|
if (p !== e) {
|
|
3559
3559
|
const v = a.current, g = St(d);
|
|
3560
3560
|
e ? u("MOUNT") : g === "none" || (d == null ? void 0 : d.display) === "none" ? u("UNMOUNT") : u(p && v !== g ? "ANIMATION_OUT" : "UNMOUNT"), o.current = e;
|
|
3561
3561
|
}
|
|
3562
|
-
}, [e, u]),
|
|
3562
|
+
}, [e, u]), $e(() => {
|
|
3563
3563
|
if (t) {
|
|
3564
3564
|
let d;
|
|
3565
3565
|
const p = t.ownerDocument.defaultView ?? window, m = (g) => {
|
|
@@ -3597,25 +3597,25 @@ var gn = 0;
|
|
|
3597
3597
|
function Vl() {
|
|
3598
3598
|
l.useEffect(() => {
|
|
3599
3599
|
const e = document.querySelectorAll("[data-radix-focus-guard]");
|
|
3600
|
-
return document.body.insertAdjacentElement("afterbegin", e[0] ??
|
|
3600
|
+
return document.body.insertAdjacentElement("afterbegin", e[0] ?? Ir()), document.body.insertAdjacentElement("beforeend", e[1] ?? Ir()), gn++, () => {
|
|
3601
3601
|
gn === 1 && document.querySelectorAll("[data-radix-focus-guard]").forEach((t) => t.remove()), gn--;
|
|
3602
3602
|
};
|
|
3603
3603
|
}, []);
|
|
3604
3604
|
}
|
|
3605
|
-
function
|
|
3605
|
+
function Ir() {
|
|
3606
3606
|
const e = document.createElement("span");
|
|
3607
3607
|
return e.setAttribute("data-radix-focus-guard", ""), e.tabIndex = 0, e.style.outline = "none", e.style.opacity = "0", e.style.position = "fixed", e.style.pointerEvents = "none", e;
|
|
3608
3608
|
}
|
|
3609
|
-
var
|
|
3610
|
-
return
|
|
3609
|
+
var Se = function() {
|
|
3610
|
+
return Se = Object.assign || function(t) {
|
|
3611
3611
|
for (var n, r = 1, o = arguments.length; r < o; r++) {
|
|
3612
3612
|
n = arguments[r];
|
|
3613
3613
|
for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
|
|
3614
3614
|
}
|
|
3615
3615
|
return t;
|
|
3616
|
-
},
|
|
3616
|
+
}, Se.apply(this, arguments);
|
|
3617
3617
|
};
|
|
3618
|
-
function
|
|
3618
|
+
function Ro(e, t) {
|
|
3619
3619
|
var n = {};
|
|
3620
3620
|
for (var r in e) Object.prototype.hasOwnProperty.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
|
|
3621
3621
|
if (e != null && typeof Object.getOwnPropertySymbols == "function")
|
|
@@ -3653,7 +3653,7 @@ function Kl(e, t) {
|
|
|
3653
3653
|
})[0];
|
|
3654
3654
|
return n.callback = t, n.facade;
|
|
3655
3655
|
}
|
|
3656
|
-
var Yl = typeof window < "u" ? l.useLayoutEffect : l.useEffect,
|
|
3656
|
+
var Yl = typeof window < "u" ? l.useLayoutEffect : l.useEffect, _r = /* @__PURE__ */ new WeakMap();
|
|
3657
3657
|
function ql(e, t) {
|
|
3658
3658
|
var n = Kl(null, function(r) {
|
|
3659
3659
|
return e.forEach(function(o) {
|
|
@@ -3661,7 +3661,7 @@ function ql(e, t) {
|
|
|
3661
3661
|
});
|
|
3662
3662
|
});
|
|
3663
3663
|
return Yl(function() {
|
|
3664
|
-
var r =
|
|
3664
|
+
var r = _r.get(n);
|
|
3665
3665
|
if (r) {
|
|
3666
3666
|
var o = new Set(r), a = new Set(e), s = n.current;
|
|
3667
3667
|
o.forEach(function(c) {
|
|
@@ -3670,14 +3670,14 @@ function ql(e, t) {
|
|
|
3670
3670
|
o.has(c) || vn(c, s);
|
|
3671
3671
|
});
|
|
3672
3672
|
}
|
|
3673
|
-
|
|
3673
|
+
_r.set(n, e);
|
|
3674
3674
|
}, [e]), n;
|
|
3675
3675
|
}
|
|
3676
|
-
function
|
|
3676
|
+
function Ql(e) {
|
|
3677
3677
|
return e;
|
|
3678
3678
|
}
|
|
3679
|
-
function
|
|
3680
|
-
t === void 0 && (t =
|
|
3679
|
+
function Xl(e, t) {
|
|
3680
|
+
t === void 0 && (t = Ql);
|
|
3681
3681
|
var n = [], r = !1, o = {
|
|
3682
3682
|
read: function() {
|
|
3683
3683
|
if (r)
|
|
@@ -3733,34 +3733,34 @@ function Ql(e, t) {
|
|
|
3733
3733
|
}
|
|
3734
3734
|
function Zl(e) {
|
|
3735
3735
|
e === void 0 && (e = {});
|
|
3736
|
-
var t =
|
|
3737
|
-
return t.options =
|
|
3736
|
+
var t = Xl(null);
|
|
3737
|
+
return t.options = Se({ async: !0, ssr: !1 }, e), t;
|
|
3738
3738
|
}
|
|
3739
|
-
var
|
|
3740
|
-
var t = e.sideCar, n =
|
|
3739
|
+
var Po = function(e) {
|
|
3740
|
+
var t = e.sideCar, n = Ro(e, ["sideCar"]);
|
|
3741
3741
|
if (!t)
|
|
3742
3742
|
throw new Error("Sidecar: please provide `sideCar` property to import the right car");
|
|
3743
3743
|
var r = t.read();
|
|
3744
3744
|
if (!r)
|
|
3745
3745
|
throw new Error("Sidecar medium not found");
|
|
3746
|
-
return l.createElement(r,
|
|
3746
|
+
return l.createElement(r, Se({}, n));
|
|
3747
3747
|
};
|
|
3748
|
-
|
|
3748
|
+
Po.isSideCarExport = !0;
|
|
3749
3749
|
function Jl(e, t) {
|
|
3750
|
-
return e.useMedium(t),
|
|
3750
|
+
return e.useMedium(t), Po;
|
|
3751
3751
|
}
|
|
3752
|
-
var
|
|
3752
|
+
var Ao = Zl(), bn = function() {
|
|
3753
3753
|
}, Kt = l.forwardRef(function(e, t) {
|
|
3754
3754
|
var n = l.useRef(null), r = l.useState({
|
|
3755
3755
|
onScrollCapture: bn,
|
|
3756
3756
|
onWheelCapture: bn,
|
|
3757
3757
|
onTouchMoveCapture: bn
|
|
3758
|
-
}), o = r[0], a = r[1], s = e.forwardProps, c = e.children, u = e.className, d = e.removeScrollBar, p = e.enabled, m = e.shards, v = e.sideCar, g = e.noIsolation, y = e.inert, f = e.allowPinchZoom, h = e.as, b = h === void 0 ? "div" : h, w = e.gapMode, N =
|
|
3758
|
+
}), o = r[0], a = r[1], s = e.forwardProps, c = e.children, u = e.className, d = e.removeScrollBar, p = e.enabled, m = e.shards, v = e.sideCar, g = e.noIsolation, y = e.inert, f = e.allowPinchZoom, h = e.as, b = h === void 0 ? "div" : h, w = e.gapMode, N = Ro(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, S = ql([n, t]), E = Se(Se({}, N), o);
|
|
3759
3759
|
return l.createElement(
|
|
3760
3760
|
l.Fragment,
|
|
3761
3761
|
null,
|
|
3762
|
-
p && l.createElement(C, { sideCar:
|
|
3763
|
-
s ? l.cloneElement(l.Children.only(c),
|
|
3762
|
+
p && l.createElement(C, { sideCar: Ao, removeScrollBar: d, shards: m, noIsolation: g, inert: y, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: w }),
|
|
3763
|
+
s ? l.cloneElement(l.Children.only(c), Se(Se({}, E), { ref: S })) : l.createElement(b, Se({}, E, { className: u, ref: S }), c)
|
|
3764
3764
|
);
|
|
3765
3765
|
});
|
|
3766
3766
|
Kt.defaultProps = {
|
|
@@ -3810,7 +3810,7 @@ var oc = function() {
|
|
|
3810
3810
|
};
|
|
3811
3811
|
}, [t && n]);
|
|
3812
3812
|
};
|
|
3813
|
-
},
|
|
3813
|
+
}, ko = function() {
|
|
3814
3814
|
var e = ac(), t = function(n) {
|
|
3815
3815
|
var r = n.styles, o = n.dynamic;
|
|
3816
3816
|
return e(r, o), null;
|
|
@@ -3836,14 +3836,14 @@ var oc = function() {
|
|
|
3836
3836
|
right: t[2],
|
|
3837
3837
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3838
3838
|
};
|
|
3839
|
-
}, cc =
|
|
3839
|
+
}, cc = ko(), rt = "data-scroll-locked", dc = function(e, t, n, r) {
|
|
3840
3840
|
var o = e.left, a = e.top, s = e.right, c = e.gap;
|
|
3841
3841
|
return n === void 0 && (n = "margin"), `
|
|
3842
3842
|
.`.concat(Ul, ` {
|
|
3843
3843
|
overflow: hidden `).concat(r, `;
|
|
3844
3844
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
3845
3845
|
}
|
|
3846
|
-
body[`).concat(
|
|
3846
|
+
body[`).concat(rt, `] {
|
|
3847
3847
|
overflow: hidden `).concat(r, `;
|
|
3848
3848
|
overscroll-behavior: contain;
|
|
3849
3849
|
`).concat([
|
|
@@ -3876,18 +3876,18 @@ var oc = function() {
|
|
|
3876
3876
|
margin-right: 0 `).concat(r, `;
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
|
-
body[`).concat(
|
|
3879
|
+
body[`).concat(rt, `] {
|
|
3880
3880
|
`).concat(Gl, ": ").concat(c, `px;
|
|
3881
3881
|
}
|
|
3882
3882
|
`);
|
|
3883
|
-
},
|
|
3884
|
-
var e = parseInt(document.body.getAttribute(
|
|
3883
|
+
}, Lr = function() {
|
|
3884
|
+
var e = parseInt(document.body.getAttribute(rt) || "0", 10);
|
|
3885
3885
|
return isFinite(e) ? e : 0;
|
|
3886
3886
|
}, uc = function() {
|
|
3887
3887
|
l.useEffect(function() {
|
|
3888
|
-
return document.body.setAttribute(
|
|
3889
|
-
var e =
|
|
3890
|
-
e <= 0 ? document.body.removeAttribute(
|
|
3888
|
+
return document.body.setAttribute(rt, (Lr() + 1).toString()), function() {
|
|
3889
|
+
var e = Lr() - 1;
|
|
3890
|
+
e <= 0 ? document.body.removeAttribute(rt) : document.body.setAttribute(rt, e.toString());
|
|
3891
3891
|
};
|
|
3892
3892
|
}, []);
|
|
3893
3893
|
}, fc = function(e) {
|
|
@@ -3909,9 +3909,9 @@ if (typeof window < "u")
|
|
|
3909
3909
|
} catch {
|
|
3910
3910
|
Dn = !1;
|
|
3911
3911
|
}
|
|
3912
|
-
var
|
|
3912
|
+
var et = Dn ? { passive: !1 } : !1, pc = function(e) {
|
|
3913
3913
|
return e.tagName === "TEXTAREA";
|
|
3914
|
-
},
|
|
3914
|
+
}, Mo = function(e, t) {
|
|
3915
3915
|
if (!(e instanceof Element))
|
|
3916
3916
|
return !1;
|
|
3917
3917
|
var n = window.getComputedStyle(e);
|
|
@@ -3921,16 +3921,16 @@ var Je = Dn ? { passive: !1 } : !1, pc = function(e) {
|
|
|
3921
3921
|
!(n.overflowY === n.overflowX && !pc(e) && n[t] === "visible")
|
|
3922
3922
|
);
|
|
3923
3923
|
}, mc = function(e) {
|
|
3924
|
-
return
|
|
3924
|
+
return Mo(e, "overflowY");
|
|
3925
3925
|
}, hc = function(e) {
|
|
3926
|
-
return
|
|
3927
|
-
},
|
|
3926
|
+
return Mo(e, "overflowX");
|
|
3927
|
+
}, $r = function(e, t) {
|
|
3928
3928
|
var n = t.ownerDocument, r = t;
|
|
3929
3929
|
do {
|
|
3930
3930
|
typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
|
|
3931
|
-
var o =
|
|
3931
|
+
var o = Oo(e, r);
|
|
3932
3932
|
if (o) {
|
|
3933
|
-
var a =
|
|
3933
|
+
var a = Do(e, r), s = a[1], c = a[2];
|
|
3934
3934
|
if (s > c)
|
|
3935
3935
|
return !0;
|
|
3936
3936
|
}
|
|
@@ -3951,17 +3951,17 @@ var Je = Dn ? { passive: !1 } : !1, pc = function(e) {
|
|
|
3951
3951
|
n,
|
|
3952
3952
|
r
|
|
3953
3953
|
];
|
|
3954
|
-
}, Mo = function(e, t) {
|
|
3955
|
-
return e === "v" ? mc(t) : hc(t);
|
|
3956
3954
|
}, Oo = function(e, t) {
|
|
3955
|
+
return e === "v" ? mc(t) : hc(t);
|
|
3956
|
+
}, Do = function(e, t) {
|
|
3957
3957
|
return e === "v" ? gc(t) : vc(t);
|
|
3958
3958
|
}, bc = function(e, t) {
|
|
3959
3959
|
return e === "h" && t === "rtl" ? -1 : 1;
|
|
3960
3960
|
}, yc = function(e, t, n, r, o) {
|
|
3961
3961
|
var a = bc(e, window.getComputedStyle(t).direction), s = a * r, c = n.target, u = t.contains(c), d = !1, p = s > 0, m = 0, v = 0;
|
|
3962
3962
|
do {
|
|
3963
|
-
var g =
|
|
3964
|
-
(y || b) &&
|
|
3963
|
+
var g = Do(e, c), y = g[0], f = g[1], h = g[2], b = f - h - a * y;
|
|
3964
|
+
(y || b) && Oo(e, c) && (m += b, v += y), c instanceof ShadowRoot ? c = c.host : c = c.parentNode;
|
|
3965
3965
|
} while (
|
|
3966
3966
|
// portaled content
|
|
3967
3967
|
!u && c !== document.body || // self content
|
|
@@ -3970,9 +3970,9 @@ var Je = Dn ? { passive: !1 } : !1, pc = function(e) {
|
|
|
3970
3970
|
return (p && Math.abs(m) < 1 || !p && Math.abs(v) < 1) && (d = !0), d;
|
|
3971
3971
|
}, Rt = function(e) {
|
|
3972
3972
|
return "changedTouches" in e ? [e.changedTouches[0].clientX, e.changedTouches[0].clientY] : [0, 0];
|
|
3973
|
-
}, $r = function(e) {
|
|
3974
|
-
return [e.deltaX, e.deltaY];
|
|
3975
3973
|
}, Fr = function(e) {
|
|
3974
|
+
return [e.deltaX, e.deltaY];
|
|
3975
|
+
}, zr = function(e) {
|
|
3976
3976
|
return e && "current" in e ? e.current : e;
|
|
3977
3977
|
}, wc = function(e, t) {
|
|
3978
3978
|
return e[0] === t[0] && e[1] === t[1];
|
|
@@ -3981,15 +3981,15 @@ var Je = Dn ? { passive: !1 } : !1, pc = function(e) {
|
|
|
3981
3981
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3982
3982
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3983
3983
|
`);
|
|
3984
|
-
}, Nc = 0,
|
|
3984
|
+
}, Nc = 0, tt = [];
|
|
3985
3985
|
function Cc(e) {
|
|
3986
|
-
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Nc++)[0], a = l.useState(
|
|
3986
|
+
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(Nc++)[0], a = l.useState(ko)[0], s = l.useRef(e);
|
|
3987
3987
|
l.useEffect(function() {
|
|
3988
3988
|
s.current = e;
|
|
3989
3989
|
}, [e]), l.useEffect(function() {
|
|
3990
3990
|
if (e.inert) {
|
|
3991
3991
|
document.body.classList.add("block-interactivity-".concat(o));
|
|
3992
|
-
var f = Hl([e.lockRef.current], (e.shards || []).map(
|
|
3992
|
+
var f = Hl([e.lockRef.current], (e.shards || []).map(zr), !0).filter(Boolean);
|
|
3993
3993
|
return f.forEach(function(h) {
|
|
3994
3994
|
return h.classList.add("allow-interactivity-".concat(o));
|
|
3995
3995
|
}), function() {
|
|
@@ -4005,10 +4005,10 @@ function Cc(e) {
|
|
|
4005
4005
|
var b = Rt(f), w = n.current, N = "deltaX" in f ? f.deltaX : w[0] - b[0], C = "deltaY" in f ? f.deltaY : w[1] - b[1], S, E = f.target, T = Math.abs(N) > Math.abs(C) ? "h" : "v";
|
|
4006
4006
|
if ("touches" in f && T === "h" && E.type === "range")
|
|
4007
4007
|
return !1;
|
|
4008
|
-
var F =
|
|
4008
|
+
var F = $r(T, E);
|
|
4009
4009
|
if (!F)
|
|
4010
4010
|
return !0;
|
|
4011
|
-
if (F ? S = T : (S = T === "v" ? "h" : "v", F =
|
|
4011
|
+
if (F ? S = T : (S = T === "v" ? "h" : "v", F = $r(T, E)), !F)
|
|
4012
4012
|
return !1;
|
|
4013
4013
|
if (!r.current && "changedTouches" in f && (N || C) && (r.current = S), !S)
|
|
4014
4014
|
return !0;
|
|
@@ -4016,8 +4016,8 @@ function Cc(e) {
|
|
|
4016
4016
|
return yc(D, h, f, D === "h" ? N : C);
|
|
4017
4017
|
}, []), u = l.useCallback(function(f) {
|
|
4018
4018
|
var h = f;
|
|
4019
|
-
if (!(!
|
|
4020
|
-
var b = "deltaY" in h ?
|
|
4019
|
+
if (!(!tt.length || tt[tt.length - 1] !== a)) {
|
|
4020
|
+
var b = "deltaY" in h ? Fr(h) : Rt(h), w = t.current.filter(function(S) {
|
|
4021
4021
|
return S.name === h.type && (S.target === h.target || h.target === S.shadowParent) && wc(S.delta, b);
|
|
4022
4022
|
})[0];
|
|
4023
4023
|
if (w && w.should) {
|
|
@@ -4025,7 +4025,7 @@ function Cc(e) {
|
|
|
4025
4025
|
return;
|
|
4026
4026
|
}
|
|
4027
4027
|
if (!w) {
|
|
4028
|
-
var N = (s.current.shards || []).map(
|
|
4028
|
+
var N = (s.current.shards || []).map(zr).filter(Boolean).filter(function(S) {
|
|
4029
4029
|
return S.contains(h.target);
|
|
4030
4030
|
}), C = N.length > 0 ? c(h, N[0]) : !s.current.noIsolation;
|
|
4031
4031
|
C && h.cancelable && h.preventDefault();
|
|
@@ -4041,19 +4041,19 @@ function Cc(e) {
|
|
|
4041
4041
|
}, []), p = l.useCallback(function(f) {
|
|
4042
4042
|
n.current = Rt(f), r.current = void 0;
|
|
4043
4043
|
}, []), m = l.useCallback(function(f) {
|
|
4044
|
-
d(f.type,
|
|
4044
|
+
d(f.type, Fr(f), f.target, c(f, e.lockRef.current));
|
|
4045
4045
|
}, []), v = l.useCallback(function(f) {
|
|
4046
4046
|
d(f.type, Rt(f), f.target, c(f, e.lockRef.current));
|
|
4047
4047
|
}, []);
|
|
4048
4048
|
l.useEffect(function() {
|
|
4049
|
-
return
|
|
4049
|
+
return tt.push(a), e.setCallbacks({
|
|
4050
4050
|
onScrollCapture: m,
|
|
4051
4051
|
onWheelCapture: m,
|
|
4052
4052
|
onTouchMoveCapture: v
|
|
4053
|
-
}), document.addEventListener("wheel", u,
|
|
4054
|
-
|
|
4053
|
+
}), document.addEventListener("wheel", u, et), document.addEventListener("touchmove", u, et), document.addEventListener("touchstart", p, et), function() {
|
|
4054
|
+
tt = tt.filter(function(f) {
|
|
4055
4055
|
return f !== a;
|
|
4056
|
-
}), document.removeEventListener("wheel", u,
|
|
4056
|
+
}), document.removeEventListener("wheel", u, et), document.removeEventListener("touchmove", u, et), document.removeEventListener("touchstart", p, et);
|
|
4057
4057
|
};
|
|
4058
4058
|
}, []);
|
|
4059
4059
|
var g = e.removeScrollBar, y = e.inert;
|
|
@@ -4069,23 +4069,23 @@ function Ec(e) {
|
|
|
4069
4069
|
e instanceof ShadowRoot && (t = e.host, e = e.host), e = e.parentNode;
|
|
4070
4070
|
return t;
|
|
4071
4071
|
}
|
|
4072
|
-
const Sc = Jl(
|
|
4073
|
-
var
|
|
4074
|
-
return l.createElement(Kt,
|
|
4072
|
+
const Sc = Jl(Ao, Cc);
|
|
4073
|
+
var Io = l.forwardRef(function(e, t) {
|
|
4074
|
+
return l.createElement(Kt, Se({}, e, { ref: t, sideCar: Sc }));
|
|
4075
4075
|
});
|
|
4076
|
-
|
|
4076
|
+
Io.classNames = Kt.classNames;
|
|
4077
4077
|
var Tc = function(e) {
|
|
4078
4078
|
if (typeof document > "u")
|
|
4079
4079
|
return null;
|
|
4080
4080
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4081
4081
|
return t.ownerDocument.body;
|
|
4082
|
-
},
|
|
4083
|
-
return e && (e.host ||
|
|
4082
|
+
}, nt = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {}, wn = 0, _o = function(e) {
|
|
4083
|
+
return e && (e.host || _o(e.parentNode));
|
|
4084
4084
|
}, Rc = function(e, t) {
|
|
4085
4085
|
return t.map(function(n) {
|
|
4086
4086
|
if (e.contains(n))
|
|
4087
4087
|
return n;
|
|
4088
|
-
var r =
|
|
4088
|
+
var r = _o(n);
|
|
4089
4089
|
return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
|
|
4090
4090
|
}).filter(function(n) {
|
|
4091
4091
|
return !!n;
|
|
@@ -4103,8 +4103,8 @@ var Tc = function(e) {
|
|
|
4103
4103
|
p(v);
|
|
4104
4104
|
else
|
|
4105
4105
|
try {
|
|
4106
|
-
var g = v.getAttribute(r), y = g !== null && g !== "false", f = (
|
|
4107
|
-
|
|
4106
|
+
var g = v.getAttribute(r), y = g !== null && g !== "false", f = (nt.get(v) || 0) + 1, h = (a.get(v) || 0) + 1;
|
|
4107
|
+
nt.set(v, f), a.set(v, h), s.push(v), f === 1 && y && Pt.set(v, !0), h === 1 && v.setAttribute(n, "true"), y || v.setAttribute(r, "true");
|
|
4108
4108
|
} catch (b) {
|
|
4109
4109
|
console.error("aria-hidden: cannot operate on ", v, b);
|
|
4110
4110
|
}
|
|
@@ -4112,9 +4112,9 @@ var Tc = function(e) {
|
|
|
4112
4112
|
};
|
|
4113
4113
|
return p(t), c.clear(), wn++, function() {
|
|
4114
4114
|
s.forEach(function(m) {
|
|
4115
|
-
var v =
|
|
4116
|
-
|
|
4117
|
-
}), wn--, wn || (
|
|
4115
|
+
var v = nt.get(m) - 1, g = a.get(m) - 1;
|
|
4116
|
+
nt.set(m, v), a.set(m, g), v || (Pt.has(m) || m.removeAttribute(r), Pt.delete(m)), g || m.removeAttribute(n);
|
|
4117
|
+
}), wn--, wn || (nt = /* @__PURE__ */ new WeakMap(), nt = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {});
|
|
4118
4118
|
};
|
|
4119
4119
|
}, Ac = function(e, t, n) {
|
|
4120
4120
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -4122,7 +4122,7 @@ var Tc = function(e) {
|
|
|
4122
4122
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Pc(r, o, n, "aria-hidden")) : function() {
|
|
4123
4123
|
return null;
|
|
4124
4124
|
};
|
|
4125
|
-
}, qn = "Dialog", [
|
|
4125
|
+
}, qn = "Dialog", [Lo, Hf] = yt(qn), [kc, Ce] = Lo(qn), $o = (e) => {
|
|
4126
4126
|
const {
|
|
4127
4127
|
__scopeDialog: t,
|
|
4128
4128
|
children: n,
|
|
@@ -4152,12 +4152,12 @@ var Tc = function(e) {
|
|
|
4152
4152
|
}
|
|
4153
4153
|
);
|
|
4154
4154
|
};
|
|
4155
|
-
|
|
4156
|
-
var
|
|
4155
|
+
$o.displayName = qn;
|
|
4156
|
+
var Fo = "DialogTrigger", zo = l.forwardRef(
|
|
4157
4157
|
(e, t) => {
|
|
4158
|
-
const { __scopeDialog: n, ...r } = e, o = Ce(
|
|
4158
|
+
const { __scopeDialog: n, ...r } = e, o = Ce(Fo, n), a = le(t, o.triggerRef);
|
|
4159
4159
|
return /* @__PURE__ */ i(
|
|
4160
|
-
|
|
4160
|
+
X.button,
|
|
4161
4161
|
{
|
|
4162
4162
|
type: "button",
|
|
4163
4163
|
"aria-haspopup": "dialog",
|
|
@@ -4166,34 +4166,34 @@ var $o = "DialogTrigger", Fo = l.forwardRef(
|
|
|
4166
4166
|
"data-state": Zn(o.open),
|
|
4167
4167
|
...r,
|
|
4168
4168
|
ref: a,
|
|
4169
|
-
onClick:
|
|
4169
|
+
onClick: Q(e.onClick, o.onOpenToggle)
|
|
4170
4170
|
}
|
|
4171
4171
|
);
|
|
4172
4172
|
}
|
|
4173
4173
|
);
|
|
4174
|
-
|
|
4175
|
-
var
|
|
4174
|
+
zo.displayName = Fo;
|
|
4175
|
+
var Qn = "DialogPortal", [Mc, Wo] = Lo(Qn, {
|
|
4176
4176
|
forceMount: void 0
|
|
4177
|
-
}),
|
|
4178
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = Ce(
|
|
4179
|
-
return /* @__PURE__ */ i(Mc, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ i(
|
|
4177
|
+
}), Bo = (e) => {
|
|
4178
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = Ce(Qn, t);
|
|
4179
|
+
return /* @__PURE__ */ i(Mc, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ i(Ze, { present: n || a.open, children: /* @__PURE__ */ i(Gt, { asChild: !0, container: o, children: s }) })) });
|
|
4180
4180
|
};
|
|
4181
|
-
|
|
4182
|
-
var zt = "DialogOverlay",
|
|
4181
|
+
Bo.displayName = Qn;
|
|
4182
|
+
var zt = "DialogOverlay", jo = l.forwardRef(
|
|
4183
4183
|
(e, t) => {
|
|
4184
|
-
const n =
|
|
4185
|
-
return a.modal ? /* @__PURE__ */ i(
|
|
4184
|
+
const n = Wo(zt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Ce(zt, e.__scopeDialog);
|
|
4185
|
+
return a.modal ? /* @__PURE__ */ i(Ze, { present: r || a.open, children: /* @__PURE__ */ i(Oc, { ...o, ref: t }) }) : null;
|
|
4186
4186
|
}
|
|
4187
4187
|
);
|
|
4188
|
-
|
|
4188
|
+
jo.displayName = zt;
|
|
4189
4189
|
var Oc = l.forwardRef(
|
|
4190
4190
|
(e, t) => {
|
|
4191
4191
|
const { __scopeDialog: n, ...r } = e, o = Ce(zt, n);
|
|
4192
4192
|
return (
|
|
4193
4193
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
4194
4194
|
// ie. when `Overlay` and `Content` are siblings
|
|
4195
|
-
/* @__PURE__ */ i(
|
|
4196
|
-
|
|
4195
|
+
/* @__PURE__ */ i(Io, { as: we, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
|
|
4196
|
+
X.div,
|
|
4197
4197
|
{
|
|
4198
4198
|
"data-state": Zn(o.open),
|
|
4199
4199
|
...r,
|
|
@@ -4203,35 +4203,35 @@ var Oc = l.forwardRef(
|
|
|
4203
4203
|
) })
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
|
-
),
|
|
4206
|
+
), Qe = "DialogContent", Vo = l.forwardRef(
|
|
4207
4207
|
(e, t) => {
|
|
4208
|
-
const n =
|
|
4209
|
-
return /* @__PURE__ */ i(
|
|
4208
|
+
const n = Wo(Qe, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = Ce(Qe, e.__scopeDialog);
|
|
4209
|
+
return /* @__PURE__ */ i(Ze, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Dc, { ...o, ref: t }) : /* @__PURE__ */ i(Ic, { ...o, ref: t }) });
|
|
4210
4210
|
}
|
|
4211
4211
|
);
|
|
4212
|
-
|
|
4212
|
+
Vo.displayName = Qe;
|
|
4213
4213
|
var Dc = l.forwardRef(
|
|
4214
4214
|
(e, t) => {
|
|
4215
|
-
const n = Ce(
|
|
4215
|
+
const n = Ce(Qe, e.__scopeDialog), r = l.useRef(null), o = le(t, n.contentRef, r);
|
|
4216
4216
|
return l.useEffect(() => {
|
|
4217
4217
|
const a = r.current;
|
|
4218
4218
|
if (a) return Ac(a);
|
|
4219
4219
|
}, []), /* @__PURE__ */ i(
|
|
4220
|
-
|
|
4220
|
+
Ho,
|
|
4221
4221
|
{
|
|
4222
4222
|
...e,
|
|
4223
4223
|
ref: o,
|
|
4224
4224
|
trapFocus: n.open,
|
|
4225
4225
|
disableOutsidePointerEvents: !0,
|
|
4226
|
-
onCloseAutoFocus:
|
|
4226
|
+
onCloseAutoFocus: Q(e.onCloseAutoFocus, (a) => {
|
|
4227
4227
|
var s;
|
|
4228
4228
|
a.preventDefault(), (s = n.triggerRef.current) == null || s.focus();
|
|
4229
4229
|
}),
|
|
4230
|
-
onPointerDownOutside:
|
|
4230
|
+
onPointerDownOutside: Q(e.onPointerDownOutside, (a) => {
|
|
4231
4231
|
const s = a.detail.originalEvent, c = s.button === 0 && s.ctrlKey === !0;
|
|
4232
4232
|
(s.button === 2 || c) && a.preventDefault();
|
|
4233
4233
|
}),
|
|
4234
|
-
onFocusOutside:
|
|
4234
|
+
onFocusOutside: Q(
|
|
4235
4235
|
e.onFocusOutside,
|
|
4236
4236
|
(a) => a.preventDefault()
|
|
4237
4237
|
)
|
|
@@ -4240,9 +4240,9 @@ var Dc = l.forwardRef(
|
|
|
4240
4240
|
}
|
|
4241
4241
|
), Ic = l.forwardRef(
|
|
4242
4242
|
(e, t) => {
|
|
4243
|
-
const n = Ce(
|
|
4243
|
+
const n = Ce(Qe, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4244
4244
|
return /* @__PURE__ */ i(
|
|
4245
|
-
|
|
4245
|
+
Ho,
|
|
4246
4246
|
{
|
|
4247
4247
|
...e,
|
|
4248
4248
|
ref: t,
|
|
@@ -4261,12 +4261,12 @@ var Dc = l.forwardRef(
|
|
|
4261
4261
|
}
|
|
4262
4262
|
);
|
|
4263
4263
|
}
|
|
4264
|
-
),
|
|
4264
|
+
), Ho = l.forwardRef(
|
|
4265
4265
|
(e, t) => {
|
|
4266
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, c = Ce(
|
|
4266
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, c = Ce(Qe, n), u = l.useRef(null), d = le(t, u);
|
|
4267
4267
|
return Vl(), /* @__PURE__ */ x(J, { children: [
|
|
4268
4268
|
/* @__PURE__ */ i(
|
|
4269
|
-
|
|
4269
|
+
So,
|
|
4270
4270
|
{
|
|
4271
4271
|
asChild: !0,
|
|
4272
4272
|
loop: !0,
|
|
@@ -4294,44 +4294,44 @@ var Dc = l.forwardRef(
|
|
|
4294
4294
|
] })
|
|
4295
4295
|
] });
|
|
4296
4296
|
}
|
|
4297
|
-
),
|
|
4297
|
+
), Xn = "DialogTitle", Uo = l.forwardRef(
|
|
4298
4298
|
(e, t) => {
|
|
4299
|
-
const { __scopeDialog: n, ...r } = e, o = Ce(
|
|
4300
|
-
return /* @__PURE__ */ i(
|
|
4299
|
+
const { __scopeDialog: n, ...r } = e, o = Ce(Xn, n);
|
|
4300
|
+
return /* @__PURE__ */ i(X.h2, { id: o.titleId, ...r, ref: t });
|
|
4301
4301
|
}
|
|
4302
4302
|
);
|
|
4303
|
-
|
|
4304
|
-
var
|
|
4303
|
+
Uo.displayName = Xn;
|
|
4304
|
+
var Go = "DialogDescription", Ko = l.forwardRef(
|
|
4305
4305
|
(e, t) => {
|
|
4306
|
-
const { __scopeDialog: n, ...r } = e, o = Ce(
|
|
4307
|
-
return /* @__PURE__ */ i(
|
|
4306
|
+
const { __scopeDialog: n, ...r } = e, o = Ce(Go, n);
|
|
4307
|
+
return /* @__PURE__ */ i(X.p, { id: o.descriptionId, ...r, ref: t });
|
|
4308
4308
|
}
|
|
4309
4309
|
);
|
|
4310
|
-
|
|
4311
|
-
var
|
|
4310
|
+
Ko.displayName = Go;
|
|
4311
|
+
var Yo = "DialogClose", qo = l.forwardRef(
|
|
4312
4312
|
(e, t) => {
|
|
4313
|
-
const { __scopeDialog: n, ...r } = e, o = Ce(
|
|
4313
|
+
const { __scopeDialog: n, ...r } = e, o = Ce(Yo, n);
|
|
4314
4314
|
return /* @__PURE__ */ i(
|
|
4315
|
-
|
|
4315
|
+
X.button,
|
|
4316
4316
|
{
|
|
4317
4317
|
type: "button",
|
|
4318
4318
|
...r,
|
|
4319
4319
|
ref: t,
|
|
4320
|
-
onClick:
|
|
4320
|
+
onClick: Q(e.onClick, () => o.onOpenChange(!1))
|
|
4321
4321
|
}
|
|
4322
4322
|
);
|
|
4323
4323
|
}
|
|
4324
4324
|
);
|
|
4325
|
-
|
|
4325
|
+
qo.displayName = Yo;
|
|
4326
4326
|
function Zn(e) {
|
|
4327
4327
|
return e ? "open" : "closed";
|
|
4328
4328
|
}
|
|
4329
|
-
var
|
|
4330
|
-
contentName:
|
|
4331
|
-
titleName:
|
|
4329
|
+
var Qo = "DialogTitleWarning", [Uf, Xo] = ml(Qo, {
|
|
4330
|
+
contentName: Qe,
|
|
4331
|
+
titleName: Xn,
|
|
4332
4332
|
docsSlug: "dialog"
|
|
4333
4333
|
}), _c = ({ titleId: e }) => {
|
|
4334
|
-
const t = Xo(
|
|
4334
|
+
const t = Xo(Qo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
|
|
4335
4335
|
|
|
4336
4336
|
If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
|
|
4337
4337
|
|
|
@@ -4346,10 +4346,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
4346
4346
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
4347
4347
|
t && o && (document.getElementById(t) || console.warn(r));
|
|
4348
4348
|
}, [r, e, t]), null;
|
|
4349
|
-
}, Jn =
|
|
4349
|
+
}, Jn = $o, Zo = zo, Jo = Bo, Yt = jo, qt = Vo, Qt = Uo, Xt = Ko, Zt = qo;
|
|
4350
4350
|
const Jt = ({ modal: e = !1, ...t }) => /* @__PURE__ */ i(Jn, { modal: e, ...t });
|
|
4351
4351
|
Jt.displayName = Jn.displayName;
|
|
4352
|
-
const
|
|
4352
|
+
const ea = Zo, Fc = Jo, Wr = Zt, ta = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
4353
4353
|
Yt,
|
|
4354
4354
|
{
|
|
4355
4355
|
ref: n,
|
|
@@ -4360,9 +4360,9 @@ const Jo = Qo, Fc = Zo, zr = Zt, ea = l.forwardRef(({ className: e, ...t }, n) =
|
|
|
4360
4360
|
...t
|
|
4361
4361
|
}
|
|
4362
4362
|
));
|
|
4363
|
-
|
|
4363
|
+
ta.displayName = Yt.displayName;
|
|
4364
4364
|
const en = l.forwardRef(({ className: e, children: t, ...n }, r) => /* @__PURE__ */ x(Fc, { children: [
|
|
4365
|
-
/* @__PURE__ */ i(
|
|
4365
|
+
/* @__PURE__ */ i(ta, {}),
|
|
4366
4366
|
/* @__PURE__ */ x(
|
|
4367
4367
|
qt,
|
|
4368
4368
|
{
|
|
@@ -4397,7 +4397,7 @@ const er = ({
|
|
|
4397
4397
|
}
|
|
4398
4398
|
);
|
|
4399
4399
|
er.displayName = "DialogHeader";
|
|
4400
|
-
const
|
|
4400
|
+
const na = ({
|
|
4401
4401
|
className: e,
|
|
4402
4402
|
...t
|
|
4403
4403
|
}) => /* @__PURE__ */ i(
|
|
@@ -4410,9 +4410,9 @@ const ta = ({
|
|
|
4410
4410
|
...t
|
|
4411
4411
|
}
|
|
4412
4412
|
);
|
|
4413
|
-
|
|
4413
|
+
na.displayName = "DialogFooter";
|
|
4414
4414
|
const tr = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
4415
|
-
|
|
4415
|
+
Qt,
|
|
4416
4416
|
{
|
|
4417
4417
|
ref: n,
|
|
4418
4418
|
className: M(
|
|
@@ -4422,23 +4422,23 @@ const tr = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
4422
4422
|
...t
|
|
4423
4423
|
}
|
|
4424
4424
|
));
|
|
4425
|
-
tr.displayName =
|
|
4426
|
-
const
|
|
4427
|
-
|
|
4425
|
+
tr.displayName = Qt.displayName;
|
|
4426
|
+
const ra = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
4427
|
+
Xt,
|
|
4428
4428
|
{
|
|
4429
4429
|
ref: n,
|
|
4430
4430
|
className: M("text-sm text-muted-foreground", e),
|
|
4431
4431
|
...t
|
|
4432
4432
|
}
|
|
4433
4433
|
));
|
|
4434
|
-
|
|
4435
|
-
const
|
|
4434
|
+
ra.displayName = Xt.displayName;
|
|
4435
|
+
const Br = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, jr = co, wt = (e, t) => (n) => {
|
|
4436
4436
|
var r;
|
|
4437
|
-
if ((t == null ? void 0 : t.variants) == null) return
|
|
4437
|
+
if ((t == null ? void 0 : t.variants) == null) return jr(e, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4438
4438
|
const { variants: o, defaultVariants: a } = t, s = Object.keys(o).map((d) => {
|
|
4439
4439
|
const p = n == null ? void 0 : n[d], m = a == null ? void 0 : a[d];
|
|
4440
4440
|
if (p === null) return null;
|
|
4441
|
-
const v =
|
|
4441
|
+
const v = Br(p) || Br(m);
|
|
4442
4442
|
return o[d][v];
|
|
4443
4443
|
}), c = n && Object.entries(n).reduce((d, p) => {
|
|
4444
4444
|
let [m, v] = p;
|
|
@@ -4460,8 +4460,8 @@ const Wr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Br = lo, y
|
|
|
4460
4460
|
v
|
|
4461
4461
|
] : d;
|
|
4462
4462
|
}, []);
|
|
4463
|
-
return
|
|
4464
|
-
},
|
|
4463
|
+
return jr(e, s, u, n == null ? void 0 : n.class, n == null ? void 0 : n.className);
|
|
4464
|
+
}, Vr = wt(
|
|
4465
4465
|
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",
|
|
4466
4466
|
{
|
|
4467
4467
|
variants: {
|
|
@@ -4496,7 +4496,7 @@ const Wr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Br = lo, y
|
|
|
4496
4496
|
return /* @__PURE__ */ i(
|
|
4497
4497
|
u,
|
|
4498
4498
|
{
|
|
4499
|
-
className: M(
|
|
4499
|
+
className: M(Vr({ variant: t, size: n, className: e })),
|
|
4500
4500
|
ref: c,
|
|
4501
4501
|
onClick: a,
|
|
4502
4502
|
...s
|
|
@@ -4509,10 +4509,10 @@ const Wr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Br = lo, y
|
|
|
4509
4509
|
m();
|
|
4510
4510
|
};
|
|
4511
4511
|
return /* @__PURE__ */ x(Jt, { children: [
|
|
4512
|
-
/* @__PURE__ */ i(
|
|
4512
|
+
/* @__PURE__ */ i(ea, { asChild: !0, children: /* @__PURE__ */ i(
|
|
4513
4513
|
u,
|
|
4514
4514
|
{
|
|
4515
|
-
className: M(
|
|
4515
|
+
className: M(Vr({ variant: t, size: n, className: e })),
|
|
4516
4516
|
ref: c,
|
|
4517
4517
|
...s
|
|
4518
4518
|
}
|
|
@@ -4520,18 +4520,18 @@ const Wr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Br = lo, y
|
|
|
4520
4520
|
/* @__PURE__ */ x(en, { children: [
|
|
4521
4521
|
/* @__PURE__ */ x(er, { children: [
|
|
4522
4522
|
/* @__PURE__ */ i(tr, { children: d }),
|
|
4523
|
-
/* @__PURE__ */ i(
|
|
4523
|
+
/* @__PURE__ */ i(ra, { children: p })
|
|
4524
4524
|
] }),
|
|
4525
|
-
/* @__PURE__ */ x(
|
|
4526
|
-
/* @__PURE__ */ i(
|
|
4527
|
-
/* @__PURE__ */ i(
|
|
4525
|
+
/* @__PURE__ */ x(na, { className: "flex justify-end gap-2 pt-4", children: [
|
|
4526
|
+
/* @__PURE__ */ i(Wr, { asChild: !0, children: /* @__PURE__ */ i(ie, { variant: "outline", children: g }) }),
|
|
4527
|
+
/* @__PURE__ */ i(Wr, { asChild: !0, children: /* @__PURE__ */ i(ie, { onClick: y, children: v }) })
|
|
4528
4528
|
] })
|
|
4529
4529
|
] })
|
|
4530
4530
|
] });
|
|
4531
4531
|
}
|
|
4532
4532
|
);
|
|
4533
4533
|
ie.displayName = "Button";
|
|
4534
|
-
const zc = ["top", "right", "bottom", "left"],
|
|
4534
|
+
const zc = ["top", "right", "bottom", "left"], Fe = Math.min, me = Math.max, Wt = Math.round, kt = Math.floor, Te = (e) => ({
|
|
4535
4535
|
x: e,
|
|
4536
4536
|
y: e
|
|
4537
4537
|
}), Wc = {
|
|
@@ -4544,7 +4544,7 @@ const zc = ["top", "right", "bottom", "left"], $e = Math.min, pe = Math.max, Wt
|
|
|
4544
4544
|
end: "start"
|
|
4545
4545
|
};
|
|
4546
4546
|
function In(e, t, n) {
|
|
4547
|
-
return
|
|
4547
|
+
return me(e, Fe(t, n));
|
|
4548
4548
|
}
|
|
4549
4549
|
function ke(e, t) {
|
|
4550
4550
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -4552,7 +4552,7 @@ function ke(e, t) {
|
|
|
4552
4552
|
function Me(e) {
|
|
4553
4553
|
return e.split("-")[0];
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4555
|
+
function dt(e) {
|
|
4556
4556
|
return e.split("-")[1];
|
|
4557
4557
|
}
|
|
4558
4558
|
function nr(e) {
|
|
@@ -4561,15 +4561,15 @@ function nr(e) {
|
|
|
4561
4561
|
function rr(e) {
|
|
4562
4562
|
return e === "y" ? "height" : "width";
|
|
4563
4563
|
}
|
|
4564
|
-
function
|
|
4564
|
+
function ze(e) {
|
|
4565
4565
|
return ["top", "bottom"].includes(Me(e)) ? "y" : "x";
|
|
4566
4566
|
}
|
|
4567
4567
|
function or(e) {
|
|
4568
|
-
return nr(
|
|
4568
|
+
return nr(ze(e));
|
|
4569
4569
|
}
|
|
4570
4570
|
function jc(e, t, n) {
|
|
4571
4571
|
n === void 0 && (n = !1);
|
|
4572
|
-
const r =
|
|
4572
|
+
const r = dt(e), o = or(e), a = rr(o);
|
|
4573
4573
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
4574
4574
|
return t.reference[a] > t.floating[a] && (s = Bt(s)), [s, Bt(s)];
|
|
4575
4575
|
}
|
|
@@ -4594,7 +4594,7 @@ function Hc(e, t, n) {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
4596
|
function Uc(e, t, n, r) {
|
|
4597
|
-
const o =
|
|
4597
|
+
const o = dt(e);
|
|
4598
4598
|
let a = Hc(Me(e), n === "start", r);
|
|
4599
4599
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(_n)))), a;
|
|
4600
4600
|
}
|
|
@@ -4610,7 +4610,7 @@ function Gc(e) {
|
|
|
4610
4610
|
...e
|
|
4611
4611
|
};
|
|
4612
4612
|
}
|
|
4613
|
-
function
|
|
4613
|
+
function oa(e) {
|
|
4614
4614
|
return typeof e != "number" ? Gc(e) : {
|
|
4615
4615
|
top: e,
|
|
4616
4616
|
right: e,
|
|
@@ -4636,12 +4636,12 @@ function jt(e) {
|
|
|
4636
4636
|
y: n
|
|
4637
4637
|
};
|
|
4638
4638
|
}
|
|
4639
|
-
function
|
|
4639
|
+
function Hr(e, t, n) {
|
|
4640
4640
|
let {
|
|
4641
4641
|
reference: r,
|
|
4642
4642
|
floating: o
|
|
4643
4643
|
} = e;
|
|
4644
|
-
const a =
|
|
4644
|
+
const a = ze(t), s = or(t), c = rr(s), u = Me(t), d = a === "y", p = r.x + r.width / 2 - o.width / 2, m = r.y + r.height / 2 - o.height / 2, v = r[c] / 2 - o[c] / 2;
|
|
4645
4645
|
let g;
|
|
4646
4646
|
switch (u) {
|
|
4647
4647
|
case "top":
|
|
@@ -4674,7 +4674,7 @@ function Vr(e, t, n) {
|
|
|
4674
4674
|
y: r.y
|
|
4675
4675
|
};
|
|
4676
4676
|
}
|
|
4677
|
-
switch (
|
|
4677
|
+
switch (dt(t)) {
|
|
4678
4678
|
case "start":
|
|
4679
4679
|
g[s] -= v * (n && d ? -1 : 1);
|
|
4680
4680
|
break;
|
|
@@ -4698,7 +4698,7 @@ const Kc = async (e, t, n) => {
|
|
|
4698
4698
|
}), {
|
|
4699
4699
|
x: p,
|
|
4700
4700
|
y: m
|
|
4701
|
-
} =
|
|
4701
|
+
} = Hr(d, r, u), v = r, g = {}, y = 0;
|
|
4702
4702
|
for (let f = 0; f < c.length; f++) {
|
|
4703
4703
|
const {
|
|
4704
4704
|
name: h,
|
|
@@ -4735,7 +4735,7 @@ const Kc = async (e, t, n) => {
|
|
|
4735
4735
|
}) : S.rects), {
|
|
4736
4736
|
x: p,
|
|
4737
4737
|
y: m
|
|
4738
|
-
} =
|
|
4738
|
+
} = Hr(d, v, u)), f = -1);
|
|
4739
4739
|
}
|
|
4740
4740
|
return {
|
|
4741
4741
|
x: p,
|
|
@@ -4745,7 +4745,7 @@ const Kc = async (e, t, n) => {
|
|
|
4745
4745
|
middlewareData: g
|
|
4746
4746
|
};
|
|
4747
4747
|
};
|
|
4748
|
-
async function
|
|
4748
|
+
async function vt(e, t) {
|
|
4749
4749
|
var n;
|
|
4750
4750
|
t === void 0 && (t = {});
|
|
4751
4751
|
const {
|
|
@@ -4761,7 +4761,7 @@ async function gt(e, t) {
|
|
|
4761
4761
|
elementContext: m = "floating",
|
|
4762
4762
|
altBoundary: v = !1,
|
|
4763
4763
|
padding: g = 0
|
|
4764
|
-
} = ke(t, e), y =
|
|
4764
|
+
} = ke(t, e), y = oa(g), h = c[v ? m === "floating" ? "reference" : "floating" : m], b = jt(await a.getClippingRect({
|
|
4765
4765
|
element: (n = await (a.isElement == null ? void 0 : a.isElement(h))) == null || n ? h : h.contextElement || await (a.getDocumentElement == null ? void 0 : a.getDocumentElement(c.floating)),
|
|
4766
4766
|
boundary: d,
|
|
4767
4767
|
rootBoundary: p,
|
|
@@ -4808,13 +4808,13 @@ const Yc = (e) => ({
|
|
|
4808
4808
|
} = ke(e, t) || {};
|
|
4809
4809
|
if (d == null)
|
|
4810
4810
|
return {};
|
|
4811
|
-
const m =
|
|
4811
|
+
const m = oa(p), v = {
|
|
4812
4812
|
x: n,
|
|
4813
4813
|
y: r
|
|
4814
4814
|
}, g = or(o), y = rr(g), f = await s.getDimensions(d), h = g === "y", b = h ? "top" : "left", w = h ? "bottom" : "right", N = h ? "clientHeight" : "clientWidth", C = a.reference[y] + a.reference[g] - v[g] - a.floating[y], S = v[g] - a.reference[g], E = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(d));
|
|
4815
4815
|
let T = E ? E[N] : 0;
|
|
4816
4816
|
(!T || !await (s.isElement == null ? void 0 : s.isElement(E))) && (T = c.floating[N] || a.floating[y]);
|
|
4817
|
-
const F = C / 2 - S / 2, D = T / 2 - f[y] / 2 - 1, B =
|
|
4817
|
+
const F = C / 2 - S / 2, D = T / 2 - f[y] / 2 - 1, B = Fe(m[b], D), H = Fe(m[w], D), j = B, I = T - f[y] - H, R = T / 2 - f[y] / 2 + F, z = In(j, R, I), k = !u.arrow && dt(o) != null && R !== z && a.reference[y] / 2 - (R < j ? B : H) - f[y] / 2 < 0, U = k ? R < j ? R - j : R - I : 0;
|
|
4818
4818
|
return {
|
|
4819
4819
|
[g]: v[g] + U,
|
|
4820
4820
|
data: {
|
|
@@ -4851,9 +4851,9 @@ const Yc = (e) => ({
|
|
|
4851
4851
|
} = ke(e, t);
|
|
4852
4852
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
4853
4853
|
return {};
|
|
4854
|
-
const b = Me(o), w =
|
|
4854
|
+
const b = Me(o), w = ze(c), N = Me(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (N || !f ? [Bt(c)] : Vc(c)), E = y !== "none";
|
|
4855
4855
|
!v && E && S.push(...Uc(c, f, y, C));
|
|
4856
|
-
const T = [c, ...S], F = await
|
|
4856
|
+
const T = [c, ...S], F = await vt(t, h), D = [];
|
|
4857
4857
|
let B = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
4858
4858
|
if (p && D.push(F[b]), m) {
|
|
4859
4859
|
const R = jc(o, s, C);
|
|
@@ -4882,7 +4882,7 @@ const Yc = (e) => ({
|
|
|
4882
4882
|
var I;
|
|
4883
4883
|
const U = (I = B.filter((O) => {
|
|
4884
4884
|
if (E) {
|
|
4885
|
-
const L =
|
|
4885
|
+
const L = ze(O.placement);
|
|
4886
4886
|
return L === w || // Create a bias to the `y` side axis due to horizontal
|
|
4887
4887
|
// reading directions favoring greater width.
|
|
4888
4888
|
L === "y";
|
|
@@ -4907,7 +4907,7 @@ const Yc = (e) => ({
|
|
|
4907
4907
|
}
|
|
4908
4908
|
};
|
|
4909
4909
|
};
|
|
4910
|
-
function
|
|
4910
|
+
function Ur(e, t) {
|
|
4911
4911
|
return {
|
|
4912
4912
|
top: e.top - t.height,
|
|
4913
4913
|
right: e.right - t.width,
|
|
@@ -4915,10 +4915,10 @@ function Hr(e, t) {
|
|
|
4915
4915
|
left: e.left - t.width
|
|
4916
4916
|
};
|
|
4917
4917
|
}
|
|
4918
|
-
function
|
|
4918
|
+
function Gr(e) {
|
|
4919
4919
|
return zc.some((t) => e[t] >= 0);
|
|
4920
4920
|
}
|
|
4921
|
-
const
|
|
4921
|
+
const Qc = function(e) {
|
|
4922
4922
|
return e === void 0 && (e = {}), {
|
|
4923
4923
|
name: "hide",
|
|
4924
4924
|
options: e,
|
|
@@ -4931,26 +4931,26 @@ const Xc = function(e) {
|
|
|
4931
4931
|
} = ke(e, t);
|
|
4932
4932
|
switch (r) {
|
|
4933
4933
|
case "referenceHidden": {
|
|
4934
|
-
const a = await
|
|
4934
|
+
const a = await vt(t, {
|
|
4935
4935
|
...o,
|
|
4936
4936
|
elementContext: "reference"
|
|
4937
|
-
}), s =
|
|
4937
|
+
}), s = Ur(a, n.reference);
|
|
4938
4938
|
return {
|
|
4939
4939
|
data: {
|
|
4940
4940
|
referenceHiddenOffsets: s,
|
|
4941
|
-
referenceHidden:
|
|
4941
|
+
referenceHidden: Gr(s)
|
|
4942
4942
|
}
|
|
4943
4943
|
};
|
|
4944
4944
|
}
|
|
4945
4945
|
case "escaped": {
|
|
4946
|
-
const a = await
|
|
4946
|
+
const a = await vt(t, {
|
|
4947
4947
|
...o,
|
|
4948
4948
|
altBoundary: !0
|
|
4949
|
-
}), s =
|
|
4949
|
+
}), s = Ur(a, n.floating);
|
|
4950
4950
|
return {
|
|
4951
4951
|
data: {
|
|
4952
4952
|
escapedOffsets: s,
|
|
4953
|
-
escaped:
|
|
4953
|
+
escaped: Gr(s)
|
|
4954
4954
|
}
|
|
4955
4955
|
};
|
|
4956
4956
|
}
|
|
@@ -4960,12 +4960,12 @@ const Xc = function(e) {
|
|
|
4960
4960
|
}
|
|
4961
4961
|
};
|
|
4962
4962
|
};
|
|
4963
|
-
async function
|
|
4963
|
+
async function Xc(e, t) {
|
|
4964
4964
|
const {
|
|
4965
4965
|
placement: n,
|
|
4966
4966
|
platform: r,
|
|
4967
4967
|
elements: o
|
|
4968
|
-
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Me(n), c =
|
|
4968
|
+
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Me(n), c = dt(n), u = ze(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, m = ke(t, e);
|
|
4969
4969
|
let {
|
|
4970
4970
|
mainAxis: v,
|
|
4971
4971
|
crossAxis: g,
|
|
@@ -4998,7 +4998,7 @@ const Zc = function(e) {
|
|
|
4998
4998
|
y: a,
|
|
4999
4999
|
placement: s,
|
|
5000
5000
|
middlewareData: c
|
|
5001
|
-
} = t, u = await
|
|
5001
|
+
} = t, u = await Xc(t, e);
|
|
5002
5002
|
return s === ((n = c.offset) == null ? void 0 : n.placement) && (r = c.arrow) != null && r.alignmentOffset ? {} : {
|
|
5003
5003
|
x: o + u.x,
|
|
5004
5004
|
y: a + u.y,
|
|
@@ -5037,7 +5037,7 @@ const Zc = function(e) {
|
|
|
5037
5037
|
} = ke(e, t), d = {
|
|
5038
5038
|
x: n,
|
|
5039
5039
|
y: r
|
|
5040
|
-
}, p = await
|
|
5040
|
+
}, p = await vt(t, u), m = ze(Me(o)), v = nr(m);
|
|
5041
5041
|
let g = d[v], y = d[m];
|
|
5042
5042
|
if (a) {
|
|
5043
5043
|
const h = v === "y" ? "top" : "left", b = v === "y" ? "bottom" : "right", w = g + p[h], N = g - p[b];
|
|
@@ -5082,7 +5082,7 @@ const Zc = function(e) {
|
|
|
5082
5082
|
} = ke(e, t), p = {
|
|
5083
5083
|
x: n,
|
|
5084
5084
|
y: r
|
|
5085
|
-
}, m =
|
|
5085
|
+
}, m = ze(o), v = nr(m);
|
|
5086
5086
|
let g = p[v], y = p[m];
|
|
5087
5087
|
const f = ke(c, t), h = typeof f == "number" ? {
|
|
5088
5088
|
mainAxis: f,
|
|
@@ -5122,17 +5122,17 @@ const Zc = function(e) {
|
|
|
5122
5122
|
apply: u = () => {
|
|
5123
5123
|
},
|
|
5124
5124
|
...d
|
|
5125
|
-
} = ke(e, t), p = await
|
|
5125
|
+
} = ke(e, t), p = await vt(t, d), m = Me(o), v = dt(o), g = ze(o) === "y", {
|
|
5126
5126
|
width: y,
|
|
5127
5127
|
height: f
|
|
5128
5128
|
} = a.floating;
|
|
5129
5129
|
let h, b;
|
|
5130
5130
|
m === "top" || m === "bottom" ? (h = m, b = v === (await (s.isRTL == null ? void 0 : s.isRTL(c.floating)) ? "start" : "end") ? "left" : "right") : (b = m, h = v === "end" ? "top" : "bottom");
|
|
5131
|
-
const w = f - p.top - p.bottom, N = y - p.left - p.right, C =
|
|
5131
|
+
const w = f - p.top - p.bottom, N = y - p.left - p.right, C = Fe(f - p[h], w), S = Fe(y - p[b], N), E = !t.middlewareData.shift;
|
|
5132
5132
|
let T = C, F = S;
|
|
5133
5133
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (F = N), (r = t.middlewareData.shift) != null && r.enabled.y && (T = w), E && !v) {
|
|
5134
|
-
const B =
|
|
5135
|
-
g ? F = y - 2 * (B !== 0 || H !== 0 ? B + H :
|
|
5134
|
+
const B = me(p.left, 0), H = me(p.right, 0), j = me(p.top, 0), I = me(p.bottom, 0);
|
|
5135
|
+
g ? F = y - 2 * (B !== 0 || H !== 0 ? B + H : me(p.left, p.right)) : T = f - 2 * (j !== 0 || I !== 0 ? j + I : me(p.top, p.bottom));
|
|
5136
5136
|
}
|
|
5137
5137
|
await u({
|
|
5138
5138
|
...t,
|
|
@@ -5151,30 +5151,30 @@ const Zc = function(e) {
|
|
|
5151
5151
|
function tn() {
|
|
5152
5152
|
return typeof window < "u";
|
|
5153
5153
|
}
|
|
5154
|
-
function
|
|
5155
|
-
return
|
|
5154
|
+
function ut(e) {
|
|
5155
|
+
return aa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5156
5156
|
}
|
|
5157
|
-
function
|
|
5157
|
+
function he(e) {
|
|
5158
5158
|
var t;
|
|
5159
5159
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
5160
5160
|
}
|
|
5161
|
-
function
|
|
5161
|
+
function Pe(e) {
|
|
5162
5162
|
var t;
|
|
5163
|
-
return (t = (
|
|
5163
|
+
return (t = (aa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5164
5164
|
}
|
|
5165
|
-
function
|
|
5166
|
-
return tn() ? e instanceof Node || e instanceof
|
|
5165
|
+
function aa(e) {
|
|
5166
|
+
return tn() ? e instanceof Node || e instanceof he(e).Node : !1;
|
|
5167
5167
|
}
|
|
5168
5168
|
function xe(e) {
|
|
5169
|
-
return tn() ? e instanceof Element || e instanceof
|
|
5169
|
+
return tn() ? e instanceof Element || e instanceof he(e).Element : !1;
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5172
|
-
return tn() ? e instanceof HTMLElement || e instanceof
|
|
5171
|
+
function Re(e) {
|
|
5172
|
+
return tn() ? e instanceof HTMLElement || e instanceof he(e).HTMLElement : !1;
|
|
5173
5173
|
}
|
|
5174
|
-
function
|
|
5175
|
-
return !tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
5174
|
+
function Kr(e) {
|
|
5175
|
+
return !tn() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof he(e).ShadowRoot;
|
|
5176
5176
|
}
|
|
5177
|
-
function
|
|
5177
|
+
function xt(e) {
|
|
5178
5178
|
const {
|
|
5179
5179
|
overflow: t,
|
|
5180
5180
|
overflowX: n,
|
|
@@ -5184,7 +5184,7 @@ function wt(e) {
|
|
|
5184
5184
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5185
5185
|
}
|
|
5186
5186
|
function nd(e) {
|
|
5187
|
-
return ["table", "td", "th"].includes(
|
|
5187
|
+
return ["table", "td", "th"].includes(ut(e));
|
|
5188
5188
|
}
|
|
5189
5189
|
function nn(e) {
|
|
5190
5190
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -5200,24 +5200,24 @@ function ar(e) {
|
|
|
5200
5200
|
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));
|
|
5201
5201
|
}
|
|
5202
5202
|
function rd(e) {
|
|
5203
|
-
let t =
|
|
5204
|
-
for (;
|
|
5203
|
+
let t = We(e);
|
|
5204
|
+
for (; Re(t) && !st(t); ) {
|
|
5205
5205
|
if (ar(t))
|
|
5206
5206
|
return t;
|
|
5207
5207
|
if (nn(t))
|
|
5208
5208
|
return null;
|
|
5209
|
-
t =
|
|
5209
|
+
t = We(t);
|
|
5210
5210
|
}
|
|
5211
5211
|
return null;
|
|
5212
5212
|
}
|
|
5213
5213
|
function sr() {
|
|
5214
5214
|
return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
|
|
5215
5215
|
}
|
|
5216
|
-
function
|
|
5217
|
-
return ["html", "body", "#document"].includes(
|
|
5216
|
+
function st(e) {
|
|
5217
|
+
return ["html", "body", "#document"].includes(ut(e));
|
|
5218
5218
|
}
|
|
5219
5219
|
function Ne(e) {
|
|
5220
|
-
return
|
|
5220
|
+
return he(e).getComputedStyle(e);
|
|
5221
5221
|
}
|
|
5222
5222
|
function rn(e) {
|
|
5223
5223
|
return xe(e) ? {
|
|
@@ -5228,39 +5228,39 @@ function rn(e) {
|
|
|
5228
5228
|
scrollTop: e.scrollY
|
|
5229
5229
|
};
|
|
5230
5230
|
}
|
|
5231
|
-
function
|
|
5232
|
-
if (
|
|
5231
|
+
function We(e) {
|
|
5232
|
+
if (ut(e) === "html")
|
|
5233
5233
|
return e;
|
|
5234
5234
|
const t = (
|
|
5235
5235
|
// Step into the shadow DOM of the parent of a slotted node.
|
|
5236
5236
|
e.assignedSlot || // DOM Element detected.
|
|
5237
5237
|
e.parentNode || // ShadowRoot detected.
|
|
5238
|
-
|
|
5239
|
-
|
|
5238
|
+
Kr(e) && e.host || // Fallback.
|
|
5239
|
+
Pe(e)
|
|
5240
5240
|
);
|
|
5241
|
-
return
|
|
5241
|
+
return Kr(t) ? t.host : t;
|
|
5242
5242
|
}
|
|
5243
|
-
function
|
|
5244
|
-
const t =
|
|
5245
|
-
return
|
|
5243
|
+
function sa(e) {
|
|
5244
|
+
const t = We(e);
|
|
5245
|
+
return st(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Re(t) && xt(t) ? t : sa(t);
|
|
5246
5246
|
}
|
|
5247
|
-
function
|
|
5247
|
+
function bt(e, t, n) {
|
|
5248
5248
|
var r;
|
|
5249
5249
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
5250
|
-
const o =
|
|
5250
|
+
const o = sa(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = he(o);
|
|
5251
5251
|
if (a) {
|
|
5252
5252
|
const c = Ln(s);
|
|
5253
|
-
return t.concat(s, s.visualViewport || [],
|
|
5253
|
+
return t.concat(s, s.visualViewport || [], xt(o) ? o : [], c && n ? bt(c) : []);
|
|
5254
5254
|
}
|
|
5255
|
-
return t.concat(o,
|
|
5255
|
+
return t.concat(o, bt(o, [], n));
|
|
5256
5256
|
}
|
|
5257
5257
|
function Ln(e) {
|
|
5258
5258
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5259
5259
|
}
|
|
5260
|
-
function
|
|
5260
|
+
function ia(e) {
|
|
5261
5261
|
const t = Ne(e);
|
|
5262
5262
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5263
|
-
const o =
|
|
5263
|
+
const o = Re(e), a = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Wt(n) !== a || Wt(r) !== s;
|
|
5264
5264
|
return c && (n = a, r = s), {
|
|
5265
5265
|
width: n,
|
|
5266
5266
|
height: r,
|
|
@@ -5270,45 +5270,45 @@ function sa(e) {
|
|
|
5270
5270
|
function ir(e) {
|
|
5271
5271
|
return xe(e) ? e : e.contextElement;
|
|
5272
5272
|
}
|
|
5273
|
-
function
|
|
5273
|
+
function ot(e) {
|
|
5274
5274
|
const t = ir(e);
|
|
5275
|
-
if (!
|
|
5276
|
-
return
|
|
5275
|
+
if (!Re(t))
|
|
5276
|
+
return Te(1);
|
|
5277
5277
|
const n = t.getBoundingClientRect(), {
|
|
5278
5278
|
width: r,
|
|
5279
5279
|
height: o,
|
|
5280
5280
|
$: a
|
|
5281
|
-
} =
|
|
5281
|
+
} = ia(t);
|
|
5282
5282
|
let s = (a ? Wt(n.width) : n.width) / r, c = (a ? Wt(n.height) : n.height) / o;
|
|
5283
5283
|
return (!s || !Number.isFinite(s)) && (s = 1), (!c || !Number.isFinite(c)) && (c = 1), {
|
|
5284
5284
|
x: s,
|
|
5285
5285
|
y: c
|
|
5286
5286
|
};
|
|
5287
5287
|
}
|
|
5288
|
-
const od = /* @__PURE__ */
|
|
5289
|
-
function
|
|
5290
|
-
const t =
|
|
5288
|
+
const od = /* @__PURE__ */ Te(0);
|
|
5289
|
+
function la(e) {
|
|
5290
|
+
const t = he(e);
|
|
5291
5291
|
return !sr() || !t.visualViewport ? od : {
|
|
5292
5292
|
x: t.visualViewport.offsetLeft,
|
|
5293
5293
|
y: t.visualViewport.offsetTop
|
|
5294
5294
|
};
|
|
5295
5295
|
}
|
|
5296
5296
|
function ad(e, t, n) {
|
|
5297
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
5297
|
+
return t === void 0 && (t = !1), !n || t && n !== he(e) ? !1 : t;
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function Xe(e, t, n, r) {
|
|
5300
5300
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5301
5301
|
const o = e.getBoundingClientRect(), a = ir(e);
|
|
5302
|
-
let s =
|
|
5303
|
-
t && (r ? xe(r) && (s =
|
|
5304
|
-
const c = ad(a, n, r) ?
|
|
5302
|
+
let s = Te(1);
|
|
5303
|
+
t && (r ? xe(r) && (s = ot(r)) : s = ot(e));
|
|
5304
|
+
const c = ad(a, n, r) ? la(a) : Te(0);
|
|
5305
5305
|
let u = (o.left + c.x) / s.x, d = (o.top + c.y) / s.y, p = o.width / s.x, m = o.height / s.y;
|
|
5306
5306
|
if (a) {
|
|
5307
|
-
const v =
|
|
5307
|
+
const v = he(a), g = r && xe(r) ? he(r) : r;
|
|
5308
5308
|
let y = v, f = Ln(y);
|
|
5309
5309
|
for (; f && r && g !== y; ) {
|
|
5310
|
-
const h =
|
|
5311
|
-
u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y =
|
|
5310
|
+
const h = ot(f), b = f.getBoundingClientRect(), w = Ne(f), N = b.left + (f.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = b.top + (f.clientTop + parseFloat(w.paddingTop)) * h.y;
|
|
5311
|
+
u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y = he(f), f = Ln(y);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
5314
5314
|
return jt({
|
|
@@ -5320,9 +5320,9 @@ function qe(e, t, n, r) {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
function lr(e, t) {
|
|
5322
5322
|
const n = rn(e).scrollLeft;
|
|
5323
|
-
return t ? t.left + n :
|
|
5323
|
+
return t ? t.left + n : Xe(Pe(e)).left + n;
|
|
5324
5324
|
}
|
|
5325
|
-
function
|
|
5325
|
+
function ca(e, t, n) {
|
|
5326
5326
|
n === void 0 && (n = !1);
|
|
5327
5327
|
const r = e.getBoundingClientRect(), o = r.left + t.scrollLeft - (n ? 0 : (
|
|
5328
5328
|
// RTL <body> scrollbar.
|
|
@@ -5340,19 +5340,19 @@ function sd(e) {
|
|
|
5340
5340
|
offsetParent: r,
|
|
5341
5341
|
strategy: o
|
|
5342
5342
|
} = e;
|
|
5343
|
-
const a = o === "fixed", s =
|
|
5343
|
+
const a = o === "fixed", s = Pe(r), c = t ? nn(t.floating) : !1;
|
|
5344
5344
|
if (r === s || c && a)
|
|
5345
5345
|
return n;
|
|
5346
5346
|
let u = {
|
|
5347
5347
|
scrollLeft: 0,
|
|
5348
5348
|
scrollTop: 0
|
|
5349
|
-
}, d =
|
|
5350
|
-
const p =
|
|
5351
|
-
if ((m || !m && !a) && ((
|
|
5352
|
-
const g =
|
|
5353
|
-
d =
|
|
5349
|
+
}, d = Te(1);
|
|
5350
|
+
const p = Te(0), m = Re(r);
|
|
5351
|
+
if ((m || !m && !a) && ((ut(r) !== "body" || xt(s)) && (u = rn(r)), Re(r))) {
|
|
5352
|
+
const g = Xe(r);
|
|
5353
|
+
d = ot(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
|
|
5354
5354
|
}
|
|
5355
|
-
const v = s && !m && !a ?
|
|
5355
|
+
const v = s && !m && !a ? ca(s, u, !0) : Te(0);
|
|
5356
5356
|
return {
|
|
5357
5357
|
width: n.width * d.x,
|
|
5358
5358
|
height: n.height * d.y,
|
|
@@ -5364,10 +5364,10 @@ function id(e) {
|
|
|
5364
5364
|
return Array.from(e.getClientRects());
|
|
5365
5365
|
}
|
|
5366
5366
|
function ld(e) {
|
|
5367
|
-
const t =
|
|
5367
|
+
const t = Pe(e), n = rn(e), r = e.ownerDocument.body, o = me(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = me(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5368
5368
|
let s = -n.scrollLeft + lr(e);
|
|
5369
5369
|
const c = -n.scrollTop;
|
|
5370
|
-
return Ne(r).direction === "rtl" && (s +=
|
|
5370
|
+
return Ne(r).direction === "rtl" && (s += me(t.clientWidth, r.clientWidth) - o), {
|
|
5371
5371
|
width: o,
|
|
5372
5372
|
height: a,
|
|
5373
5373
|
x: s,
|
|
@@ -5375,7 +5375,7 @@ function ld(e) {
|
|
|
5375
5375
|
};
|
|
5376
5376
|
}
|
|
5377
5377
|
function cd(e, t) {
|
|
5378
|
-
const n =
|
|
5378
|
+
const n = he(e), r = Pe(e), o = n.visualViewport;
|
|
5379
5379
|
let a = r.clientWidth, s = r.clientHeight, c = 0, u = 0;
|
|
5380
5380
|
if (o) {
|
|
5381
5381
|
a = o.width, s = o.height;
|
|
@@ -5390,7 +5390,7 @@ function cd(e, t) {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
}
|
|
5392
5392
|
function dd(e, t) {
|
|
5393
|
-
const n =
|
|
5393
|
+
const n = Xe(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Re(e) ? ot(e) : Te(1), s = e.clientWidth * a.x, c = e.clientHeight * a.y, u = o * a.x, d = r * a.y;
|
|
5394
5394
|
return {
|
|
5395
5395
|
width: s,
|
|
5396
5396
|
height: c,
|
|
@@ -5398,16 +5398,16 @@ function dd(e, t) {
|
|
|
5398
5398
|
y: d
|
|
5399
5399
|
};
|
|
5400
5400
|
}
|
|
5401
|
-
function
|
|
5401
|
+
function Yr(e, t, n) {
|
|
5402
5402
|
let r;
|
|
5403
5403
|
if (t === "viewport")
|
|
5404
5404
|
r = cd(e, n);
|
|
5405
5405
|
else if (t === "document")
|
|
5406
|
-
r = ld(
|
|
5406
|
+
r = ld(Pe(e));
|
|
5407
5407
|
else if (xe(t))
|
|
5408
5408
|
r = dd(t, n);
|
|
5409
5409
|
else {
|
|
5410
|
-
const o =
|
|
5410
|
+
const o = la(e);
|
|
5411
5411
|
r = {
|
|
5412
5412
|
x: t.x - o.x,
|
|
5413
5413
|
y: t.y - o.y,
|
|
@@ -5417,20 +5417,20 @@ function Kr(e, t, n) {
|
|
|
5417
5417
|
}
|
|
5418
5418
|
return jt(r);
|
|
5419
5419
|
}
|
|
5420
|
-
function
|
|
5421
|
-
const n =
|
|
5422
|
-
return n === t || !xe(n) ||
|
|
5420
|
+
function da(e, t) {
|
|
5421
|
+
const n = We(e);
|
|
5422
|
+
return n === t || !xe(n) || st(n) ? !1 : Ne(n).position === "fixed" || da(n, t);
|
|
5423
5423
|
}
|
|
5424
5424
|
function ud(e, t) {
|
|
5425
5425
|
const n = t.get(e);
|
|
5426
5426
|
if (n)
|
|
5427
5427
|
return n;
|
|
5428
|
-
let r =
|
|
5428
|
+
let r = bt(e, [], !1).filter((c) => xe(c) && ut(c) !== "body"), o = null;
|
|
5429
5429
|
const a = Ne(e).position === "fixed";
|
|
5430
|
-
let s = a ?
|
|
5431
|
-
for (; xe(s) && !
|
|
5430
|
+
let s = a ? We(e) : e;
|
|
5431
|
+
for (; xe(s) && !st(s); ) {
|
|
5432
5432
|
const c = Ne(s), u = ar(s);
|
|
5433
|
-
!u && c.position === "fixed" && (o = null), (a ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) ||
|
|
5433
|
+
!u && c.position === "fixed" && (o = null), (a ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || xt(s) && !u && da(e, s)) ? r = r.filter((p) => p !== s) : o = c, s = We(s);
|
|
5434
5434
|
}
|
|
5435
5435
|
return t.set(e, r), r;
|
|
5436
5436
|
}
|
|
@@ -5442,9 +5442,9 @@ function fd(e) {
|
|
|
5442
5442
|
strategy: o
|
|
5443
5443
|
} = e;
|
|
5444
5444
|
const s = [...n === "clippingAncestors" ? nn(t) ? [] : ud(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((d, p) => {
|
|
5445
|
-
const m =
|
|
5446
|
-
return d.top =
|
|
5447
|
-
},
|
|
5445
|
+
const m = Yr(t, p, o);
|
|
5446
|
+
return d.top = me(m.top, d.top), d.right = Fe(m.right, d.right), d.bottom = Fe(m.bottom, d.bottom), d.left = me(m.left, d.left), d;
|
|
5447
|
+
}, Yr(t, c, o));
|
|
5448
5448
|
return {
|
|
5449
5449
|
width: u.right - u.left,
|
|
5450
5450
|
height: u.bottom - u.top,
|
|
@@ -5456,25 +5456,25 @@ function pd(e) {
|
|
|
5456
5456
|
const {
|
|
5457
5457
|
width: t,
|
|
5458
5458
|
height: n
|
|
5459
|
-
} =
|
|
5459
|
+
} = ia(e);
|
|
5460
5460
|
return {
|
|
5461
5461
|
width: t,
|
|
5462
5462
|
height: n
|
|
5463
5463
|
};
|
|
5464
5464
|
}
|
|
5465
5465
|
function md(e, t, n) {
|
|
5466
|
-
const r =
|
|
5466
|
+
const r = Re(t), o = Pe(t), a = n === "fixed", s = Xe(e, !0, a, t);
|
|
5467
5467
|
let c = {
|
|
5468
5468
|
scrollLeft: 0,
|
|
5469
5469
|
scrollTop: 0
|
|
5470
5470
|
};
|
|
5471
|
-
const u =
|
|
5471
|
+
const u = Te(0);
|
|
5472
5472
|
if (r || !r && !a)
|
|
5473
|
-
if ((
|
|
5474
|
-
const v =
|
|
5473
|
+
if ((ut(t) !== "body" || xt(o)) && (c = rn(t)), r) {
|
|
5474
|
+
const v = Xe(t, !0, a, t);
|
|
5475
5475
|
u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
|
|
5476
5476
|
} else o && (u.x = lr(o));
|
|
5477
|
-
const d = o && !r && !a ?
|
|
5477
|
+
const d = o && !r && !a ? ca(o, c) : Te(0), p = s.left + c.scrollLeft - u.x - d.x, m = s.top + c.scrollTop - u.y - d.y;
|
|
5478
5478
|
return {
|
|
5479
5479
|
x: p,
|
|
5480
5480
|
y: m,
|
|
@@ -5485,34 +5485,34 @@ function md(e, t, n) {
|
|
|
5485
5485
|
function xn(e) {
|
|
5486
5486
|
return Ne(e).position === "static";
|
|
5487
5487
|
}
|
|
5488
|
-
function
|
|
5489
|
-
if (!
|
|
5488
|
+
function qr(e, t) {
|
|
5489
|
+
if (!Re(e) || Ne(e).position === "fixed")
|
|
5490
5490
|
return null;
|
|
5491
5491
|
if (t)
|
|
5492
5492
|
return t(e);
|
|
5493
5493
|
let n = e.offsetParent;
|
|
5494
|
-
return
|
|
5494
|
+
return Pe(e) === n && (n = n.ownerDocument.body), n;
|
|
5495
5495
|
}
|
|
5496
|
-
function
|
|
5497
|
-
const n =
|
|
5496
|
+
function ua(e, t) {
|
|
5497
|
+
const n = he(e);
|
|
5498
5498
|
if (nn(e))
|
|
5499
5499
|
return n;
|
|
5500
|
-
if (!
|
|
5501
|
-
let o =
|
|
5502
|
-
for (; o && !
|
|
5500
|
+
if (!Re(e)) {
|
|
5501
|
+
let o = We(e);
|
|
5502
|
+
for (; o && !st(o); ) {
|
|
5503
5503
|
if (xe(o) && !xn(o))
|
|
5504
5504
|
return o;
|
|
5505
|
-
o =
|
|
5505
|
+
o = We(o);
|
|
5506
5506
|
}
|
|
5507
5507
|
return n;
|
|
5508
5508
|
}
|
|
5509
|
-
let r =
|
|
5509
|
+
let r = qr(e, t);
|
|
5510
5510
|
for (; r && nd(r) && xn(r); )
|
|
5511
|
-
r =
|
|
5512
|
-
return r &&
|
|
5511
|
+
r = qr(r, t);
|
|
5512
|
+
return r && st(r) && xn(r) && !ar(r) ? n : r || rd(e) || n;
|
|
5513
5513
|
}
|
|
5514
5514
|
const hd = async function(e) {
|
|
5515
|
-
const t = this.getOffsetParent ||
|
|
5515
|
+
const t = this.getOffsetParent || ua, n = this.getDimensions, r = await n(e.floating);
|
|
5516
5516
|
return {
|
|
5517
5517
|
reference: md(e.reference, await t(e.floating), e.strategy),
|
|
5518
5518
|
floating: {
|
|
@@ -5528,22 +5528,22 @@ function gd(e) {
|
|
|
5528
5528
|
}
|
|
5529
5529
|
const vd = {
|
|
5530
5530
|
convertOffsetParentRelativeRectToViewportRelativeRect: sd,
|
|
5531
|
-
getDocumentElement:
|
|
5531
|
+
getDocumentElement: Pe,
|
|
5532
5532
|
getClippingRect: fd,
|
|
5533
|
-
getOffsetParent:
|
|
5533
|
+
getOffsetParent: ua,
|
|
5534
5534
|
getElementRects: hd,
|
|
5535
5535
|
getClientRects: id,
|
|
5536
5536
|
getDimensions: pd,
|
|
5537
|
-
getScale:
|
|
5537
|
+
getScale: ot,
|
|
5538
5538
|
isElement: xe,
|
|
5539
5539
|
isRTL: gd
|
|
5540
5540
|
};
|
|
5541
|
-
function
|
|
5541
|
+
function fa(e, t) {
|
|
5542
5542
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5543
5543
|
}
|
|
5544
5544
|
function bd(e, t) {
|
|
5545
5545
|
let n = null, r;
|
|
5546
|
-
const o =
|
|
5546
|
+
const o = Pe(e);
|
|
5547
5547
|
function a() {
|
|
5548
5548
|
var c;
|
|
5549
5549
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -5560,7 +5560,7 @@ function bd(e, t) {
|
|
|
5560
5560
|
return;
|
|
5561
5561
|
const y = kt(m), f = kt(o.clientWidth - (p + v)), h = kt(o.clientHeight - (m + g)), b = kt(p), N = {
|
|
5562
5562
|
rootMargin: -y + "px " + -f + "px " + -h + "px " + -b + "px",
|
|
5563
|
-
threshold:
|
|
5563
|
+
threshold: me(0, Fe(1, u)) || 1
|
|
5564
5564
|
};
|
|
5565
5565
|
let C = !0;
|
|
5566
5566
|
function S(E) {
|
|
@@ -5572,7 +5572,7 @@ function bd(e, t) {
|
|
|
5572
5572
|
s(!1, 1e-7);
|
|
5573
5573
|
}, 1e3);
|
|
5574
5574
|
}
|
|
5575
|
-
T === 1 && !
|
|
5575
|
+
T === 1 && !fa(d, e.getBoundingClientRect()) && s(), C = !1;
|
|
5576
5576
|
}
|
|
5577
5577
|
try {
|
|
5578
5578
|
n = new IntersectionObserver(S, {
|
|
@@ -5595,7 +5595,7 @@ function yd(e, t, n, r) {
|
|
|
5595
5595
|
elementResize: s = typeof ResizeObserver == "function",
|
|
5596
5596
|
layoutShift: c = typeof IntersectionObserver == "function",
|
|
5597
5597
|
animationFrame: u = !1
|
|
5598
|
-
} = r, d = ir(e), p = o || a ? [...d ?
|
|
5598
|
+
} = r, d = ir(e), p = o || a ? [...d ? bt(d) : [], ...bt(t)] : [];
|
|
5599
5599
|
p.forEach((b) => {
|
|
5600
5600
|
o && b.addEventListener("scroll", n, {
|
|
5601
5601
|
passive: !0
|
|
@@ -5610,11 +5610,11 @@ function yd(e, t, n, r) {
|
|
|
5610
5610
|
(N = g) == null || N.observe(t);
|
|
5611
5611
|
})), n();
|
|
5612
5612
|
}), d && !u && g.observe(d), g.observe(t));
|
|
5613
|
-
let y, f = u ?
|
|
5613
|
+
let y, f = u ? Xe(e) : null;
|
|
5614
5614
|
u && h();
|
|
5615
5615
|
function h() {
|
|
5616
|
-
const b =
|
|
5617
|
-
f && !
|
|
5616
|
+
const b = Xe(e);
|
|
5617
|
+
f && !fa(f, b) && n(), f = b, y = requestAnimationFrame(h);
|
|
5618
5618
|
}
|
|
5619
5619
|
return n(), () => {
|
|
5620
5620
|
var b;
|
|
@@ -5623,7 +5623,7 @@ function yd(e, t, n, r) {
|
|
|
5623
5623
|
}), m == null || m(), (b = g) == null || b.disconnect(), g = null, u && cancelAnimationFrame(y);
|
|
5624
5624
|
};
|
|
5625
5625
|
}
|
|
5626
|
-
const wd = Zc, xd = Jc, Nd = qc, Cd = td, Ed =
|
|
5626
|
+
const wd = Zc, xd = Jc, Nd = qc, Cd = td, Ed = Qc, Qr = Yc, Sd = ed, Td = (e, t, n) => {
|
|
5627
5627
|
const r = /* @__PURE__ */ new Map(), o = {
|
|
5628
5628
|
platform: vd,
|
|
5629
5629
|
...n
|
|
@@ -5636,7 +5636,7 @@ const wd = Zc, xd = Jc, Nd = qc, Cd = td, Ed = Xc, qr = Yc, Sd = ed, Td = (e, t,
|
|
|
5636
5636
|
platform: a
|
|
5637
5637
|
});
|
|
5638
5638
|
};
|
|
5639
|
-
var _t = typeof document < "u" ?
|
|
5639
|
+
var _t = typeof document < "u" ? Ts : qe;
|
|
5640
5640
|
function Vt(e, t) {
|
|
5641
5641
|
if (e === t)
|
|
5642
5642
|
return !0;
|
|
@@ -5667,11 +5667,11 @@ function Vt(e, t) {
|
|
|
5667
5667
|
}
|
|
5668
5668
|
return e !== e && t !== t;
|
|
5669
5669
|
}
|
|
5670
|
-
function
|
|
5670
|
+
function pa(e) {
|
|
5671
5671
|
return typeof window > "u" ? 1 : (e.ownerDocument.defaultView || window).devicePixelRatio || 1;
|
|
5672
5672
|
}
|
|
5673
5673
|
function Xr(e, t) {
|
|
5674
|
-
const n =
|
|
5674
|
+
const n = pa(e);
|
|
5675
5675
|
return Math.round(t * n) / n;
|
|
5676
5676
|
}
|
|
5677
5677
|
function Nn(e) {
|
|
@@ -5765,7 +5765,7 @@ function Rd(e) {
|
|
|
5765
5765
|
return c ? {
|
|
5766
5766
|
...O,
|
|
5767
5767
|
transform: "translate(" + L + "px, " + q + "px)",
|
|
5768
|
-
...
|
|
5768
|
+
...pa(k.floating) >= 1.5 && {
|
|
5769
5769
|
willChange: "transform"
|
|
5770
5770
|
}
|
|
5771
5771
|
} : {
|
|
@@ -5794,10 +5794,10 @@ const Pd = (e) => {
|
|
|
5794
5794
|
element: r,
|
|
5795
5795
|
padding: o
|
|
5796
5796
|
} = typeof e == "function" ? e(n) : e;
|
|
5797
|
-
return r && t(r) ? r.current != null ?
|
|
5797
|
+
return r && t(r) ? r.current != null ? Qr({
|
|
5798
5798
|
element: r.current,
|
|
5799
5799
|
padding: o
|
|
5800
|
-
}).fn(n) : {} : r ?
|
|
5800
|
+
}).fn(n) : {} : r ? Qr({
|
|
5801
5801
|
element: r,
|
|
5802
5802
|
padding: o
|
|
5803
5803
|
}).fn(n) : {};
|
|
@@ -5825,10 +5825,10 @@ const Pd = (e) => {
|
|
|
5825
5825
|
...Pd(e),
|
|
5826
5826
|
options: [e, t]
|
|
5827
5827
|
});
|
|
5828
|
-
var Ld = "Arrow",
|
|
5828
|
+
var Ld = "Arrow", ma = l.forwardRef((e, t) => {
|
|
5829
5829
|
const { children: n, width: r = 10, height: o = 5, ...a } = e;
|
|
5830
5830
|
return /* @__PURE__ */ i(
|
|
5831
|
-
|
|
5831
|
+
X.svg,
|
|
5832
5832
|
{
|
|
5833
5833
|
...a,
|
|
5834
5834
|
ref: t,
|
|
@@ -5840,11 +5840,11 @@ var Ld = "Arrow", pa = l.forwardRef((e, t) => {
|
|
|
5840
5840
|
}
|
|
5841
5841
|
);
|
|
5842
5842
|
});
|
|
5843
|
-
|
|
5844
|
-
var $d =
|
|
5843
|
+
ma.displayName = Ld;
|
|
5844
|
+
var $d = ma;
|
|
5845
5845
|
function Fd(e) {
|
|
5846
5846
|
const [t, n] = l.useState(void 0);
|
|
5847
|
-
return
|
|
5847
|
+
return $e(() => {
|
|
5848
5848
|
if (e) {
|
|
5849
5849
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
5850
5850
|
const r = new ResizeObserver((o) => {
|
|
@@ -5864,23 +5864,23 @@ function Fd(e) {
|
|
|
5864
5864
|
n(void 0);
|
|
5865
5865
|
}, [e]), t;
|
|
5866
5866
|
}
|
|
5867
|
-
var cr = "Popper", [
|
|
5867
|
+
var cr = "Popper", [ha, ga] = yt(cr), [zd, va] = ha(cr), ba = (e) => {
|
|
5868
5868
|
const { __scopePopper: t, children: n } = e, [r, o] = l.useState(null);
|
|
5869
5869
|
return /* @__PURE__ */ i(zd, { scope: t, anchor: r, onAnchorChange: o, children: n });
|
|
5870
5870
|
};
|
|
5871
|
-
|
|
5872
|
-
var
|
|
5871
|
+
ba.displayName = cr;
|
|
5872
|
+
var ya = "PopperAnchor", wa = l.forwardRef(
|
|
5873
5873
|
(e, t) => {
|
|
5874
|
-
const { __scopePopper: n, virtualRef: r, ...o } = e, a =
|
|
5874
|
+
const { __scopePopper: n, virtualRef: r, ...o } = e, a = va(ya, n), s = l.useRef(null), c = le(t, s);
|
|
5875
5875
|
return l.useEffect(() => {
|
|
5876
5876
|
a.onAnchorChange((r == null ? void 0 : r.current) || s.current);
|
|
5877
|
-
}), r ? null : /* @__PURE__ */ i(
|
|
5877
|
+
}), r ? null : /* @__PURE__ */ i(X.div, { ...o, ref: c });
|
|
5878
5878
|
}
|
|
5879
5879
|
);
|
|
5880
|
-
|
|
5881
|
-
var dr = "PopperContent", [Wd, Bd] =
|
|
5880
|
+
wa.displayName = ya;
|
|
5881
|
+
var dr = "PopperContent", [Wd, Bd] = ha(dr), xa = l.forwardRef(
|
|
5882
5882
|
(e, t) => {
|
|
5883
|
-
var ue,
|
|
5883
|
+
var ue, Oe, Be, $, K, fe;
|
|
5884
5884
|
const {
|
|
5885
5885
|
__scopePopper: n,
|
|
5886
5886
|
side: r = "bottom",
|
|
@@ -5896,7 +5896,7 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5896
5896
|
updatePositionStrategy: g = "optimized",
|
|
5897
5897
|
onPlaced: y,
|
|
5898
5898
|
...f
|
|
5899
|
-
} = e, h =
|
|
5899
|
+
} = e, h = va(dr, n), [b, w] = l.useState(null), N = le(t, (je) => w(je)), [C, S] = l.useState(null), E = Fd(C), T = (E == null ? void 0 : E.width) ?? 0, F = (E == null ? void 0 : E.height) ?? 0, D = r + (a !== "center" ? "-" + a : ""), B = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, H = Array.isArray(d) ? d : [d], j = H.length > 0, I = {
|
|
5900
5900
|
padding: B,
|
|
5901
5901
|
boundary: H.filter(Vd),
|
|
5902
5902
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5905,7 +5905,7 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5905
5905
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
5906
5906
|
strategy: "fixed",
|
|
5907
5907
|
placement: D,
|
|
5908
|
-
whileElementsMounted: (...
|
|
5908
|
+
whileElementsMounted: (...je) => yd(...je, {
|
|
5909
5909
|
animationFrame: g === "always"
|
|
5910
5910
|
}),
|
|
5911
5911
|
elements: {
|
|
@@ -5922,8 +5922,8 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5922
5922
|
u && Od({ ...I }),
|
|
5923
5923
|
Dd({
|
|
5924
5924
|
...I,
|
|
5925
|
-
apply: ({ elements:
|
|
5926
|
-
const { width: ce, height: de } = _.reference, G =
|
|
5925
|
+
apply: ({ elements: je, rects: _, availableWidth: W, availableHeight: ae }) => {
|
|
5926
|
+
const { width: ce, height: de } = _.reference, G = je.floating.style;
|
|
5927
5927
|
G.setProperty("--radix-popper-available-width", `${W}px`), G.setProperty("--radix-popper-available-height", `${ae}px`), G.setProperty("--radix-popper-anchor-width", `${ce}px`), G.setProperty("--radix-popper-anchor-height", `${de}px`);
|
|
5928
5928
|
}
|
|
5929
5929
|
}),
|
|
@@ -5931,12 +5931,12 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5931
5931
|
Hd({ arrowWidth: T, arrowHeight: F }),
|
|
5932
5932
|
v && Id({ strategy: "referenceHidden", ...I })
|
|
5933
5933
|
]
|
|
5934
|
-
}), [L, q] =
|
|
5935
|
-
|
|
5934
|
+
}), [L, q] = Ea(k), Z = ge(y);
|
|
5935
|
+
$e(() => {
|
|
5936
5936
|
U && (Z == null || Z());
|
|
5937
5937
|
}, [U, Z]);
|
|
5938
|
-
const oe = (ue = O.arrow) == null ? void 0 : ue.x, te = (
|
|
5939
|
-
return
|
|
5938
|
+
const oe = (ue = O.arrow) == null ? void 0 : ue.x, te = (Oe = O.arrow) == null ? void 0 : Oe.y, ne = ((Be = O.arrow) == null ? void 0 : Be.centerOffset) !== 0, [se, ve] = l.useState();
|
|
5939
|
+
return $e(() => {
|
|
5940
5940
|
b && ve(window.getComputedStyle(b).zIndex);
|
|
5941
5941
|
}, [b]), /* @__PURE__ */ i(
|
|
5942
5942
|
"div",
|
|
@@ -5950,13 +5950,13 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5950
5950
|
minWidth: "max-content",
|
|
5951
5951
|
zIndex: se,
|
|
5952
5952
|
"--radix-popper-transform-origin": [
|
|
5953
|
-
(
|
|
5954
|
-
(
|
|
5953
|
+
($ = O.transformOrigin) == null ? void 0 : $.x,
|
|
5954
|
+
(K = O.transformOrigin) == null ? void 0 : K.y
|
|
5955
5955
|
].join(" "),
|
|
5956
5956
|
// hide the content if using the hide middleware and should be hidden
|
|
5957
5957
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
5958
5958
|
// as if the PopperContent isn't there at all
|
|
5959
|
-
...((
|
|
5959
|
+
...((fe = O.hide) == null ? void 0 : fe.referenceHidden) && {
|
|
5960
5960
|
visibility: "hidden",
|
|
5961
5961
|
pointerEvents: "none"
|
|
5962
5962
|
}
|
|
@@ -5972,7 +5972,7 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5972
5972
|
arrowY: te,
|
|
5973
5973
|
shouldHideArrow: ne,
|
|
5974
5974
|
children: /* @__PURE__ */ i(
|
|
5975
|
-
|
|
5975
|
+
X.div,
|
|
5976
5976
|
{
|
|
5977
5977
|
"data-side": L,
|
|
5978
5978
|
"data-align": q,
|
|
@@ -5992,14 +5992,14 @@ var dr = "PopperContent", [Wd, Bd] = ma(dr), wa = l.forwardRef(
|
|
|
5992
5992
|
);
|
|
5993
5993
|
}
|
|
5994
5994
|
);
|
|
5995
|
-
|
|
5996
|
-
var
|
|
5995
|
+
xa.displayName = dr;
|
|
5996
|
+
var Na = "PopperArrow", jd = {
|
|
5997
5997
|
top: "bottom",
|
|
5998
5998
|
right: "left",
|
|
5999
5999
|
bottom: "top",
|
|
6000
6000
|
left: "right"
|
|
6001
|
-
},
|
|
6002
|
-
const { __scopePopper: r, ...o } = t, a = Bd(
|
|
6001
|
+
}, Ca = l.forwardRef(function(t, n) {
|
|
6002
|
+
const { __scopePopper: r, ...o } = t, a = Bd(Na, r), s = jd[a.placedSide];
|
|
6003
6003
|
return (
|
|
6004
6004
|
// we have to use an extra wrapper because `ResizeObserver` (used by `useSize`)
|
|
6005
6005
|
// doesn't report size as we'd expect on SVG elements.
|
|
@@ -6043,7 +6043,7 @@ var xa = "PopperArrow", jd = {
|
|
|
6043
6043
|
)
|
|
6044
6044
|
);
|
|
6045
6045
|
});
|
|
6046
|
-
|
|
6046
|
+
Ca.displayName = Na;
|
|
6047
6047
|
function Vd(e) {
|
|
6048
6048
|
return e !== null;
|
|
6049
6049
|
}
|
|
@@ -6052,18 +6052,18 @@ var Hd = (e) => ({
|
|
|
6052
6052
|
options: e,
|
|
6053
6053
|
fn(t) {
|
|
6054
6054
|
var h, b, w;
|
|
6055
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = ((h = o.arrow) == null ? void 0 : h.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [d, p] =
|
|
6055
|
+
const { placement: n, rects: r, middlewareData: o } = t, s = ((h = o.arrow) == null ? void 0 : h.centerOffset) !== 0, c = s ? 0 : e.arrowWidth, u = s ? 0 : e.arrowHeight, [d, p] = Ea(n), m = { start: "0%", center: "50%", end: "100%" }[p], v = (((b = o.arrow) == null ? void 0 : b.x) ?? 0) + c / 2, g = (((w = o.arrow) == null ? void 0 : w.y) ?? 0) + u / 2;
|
|
6056
6056
|
let y = "", f = "";
|
|
6057
6057
|
return d === "bottom" ? (y = s ? m : `${v}px`, f = `${-u}px`) : d === "top" ? (y = s ? m : `${v}px`, f = `${r.floating.height + u}px`) : d === "right" ? (y = `${-u}px`, f = s ? m : `${g}px`) : d === "left" && (y = `${r.floating.width + u}px`, f = s ? m : `${g}px`), { data: { x: y, y: f } };
|
|
6058
6058
|
}
|
|
6059
6059
|
});
|
|
6060
|
-
function
|
|
6060
|
+
function Ea(e) {
|
|
6061
6061
|
const [t, n = "center"] = e.split("-");
|
|
6062
6062
|
return [t, n];
|
|
6063
6063
|
}
|
|
6064
|
-
var Ud =
|
|
6064
|
+
var Ud = ba, Gd = wa, Kd = xa, Yd = Ca, qd = "VisuallyHidden", on = l.forwardRef(
|
|
6065
6065
|
(e, t) => /* @__PURE__ */ i(
|
|
6066
|
-
|
|
6066
|
+
X.span,
|
|
6067
6067
|
{
|
|
6068
6068
|
...e,
|
|
6069
6069
|
ref: t,
|
|
@@ -6085,12 +6085,12 @@ var Ud = va, Gd = ya, Kd = wa, Yd = Na, qd = "VisuallyHidden", on = l.forwardRef
|
|
|
6085
6085
|
)
|
|
6086
6086
|
);
|
|
6087
6087
|
on.displayName = qd;
|
|
6088
|
-
var
|
|
6089
|
-
|
|
6090
|
-
]), sn =
|
|
6088
|
+
var Qd = on, [an, Gf] = yt("Tooltip", [
|
|
6089
|
+
ga
|
|
6090
|
+
]), sn = ga(), Sa = "TooltipProvider", Xd = 700, $n = "tooltip.open", [Zd, ur] = an(Sa), Ta = (e) => {
|
|
6091
6091
|
const {
|
|
6092
6092
|
__scopeTooltip: t,
|
|
6093
|
-
delayDuration: n =
|
|
6093
|
+
delayDuration: n = Xd,
|
|
6094
6094
|
skipDelayDuration: r = 300,
|
|
6095
6095
|
disableHoverableContent: o = !1,
|
|
6096
6096
|
children: a
|
|
@@ -6122,8 +6122,8 @@ var Xd = on, [an, Gf] = bt("Tooltip", [
|
|
|
6122
6122
|
}
|
|
6123
6123
|
);
|
|
6124
6124
|
};
|
|
6125
|
-
|
|
6126
|
-
var ln = "Tooltip", [Jd,
|
|
6125
|
+
Ta.displayName = Sa;
|
|
6126
|
+
var ln = "Tooltip", [Jd, Nt] = an(ln), Ra = (e) => {
|
|
6127
6127
|
const {
|
|
6128
6128
|
__scopeTooltip: t,
|
|
6129
6129
|
children: n,
|
|
@@ -6171,50 +6171,50 @@ var ln = "Tooltip", [Jd, xt] = an(ln), Ta = (e) => {
|
|
|
6171
6171
|
}
|
|
6172
6172
|
) });
|
|
6173
6173
|
};
|
|
6174
|
-
|
|
6175
|
-
var Fn = "TooltipTrigger",
|
|
6174
|
+
Ra.displayName = ln;
|
|
6175
|
+
var Fn = "TooltipTrigger", Pa = l.forwardRef(
|
|
6176
6176
|
(e, t) => {
|
|
6177
|
-
const { __scopeTooltip: n, ...r } = e, o =
|
|
6177
|
+
const { __scopeTooltip: n, ...r } = e, o = Nt(Fn, n), a = ur(Fn, n), s = sn(n), c = l.useRef(null), u = le(t, c, o.onTriggerChange), d = l.useRef(!1), p = l.useRef(!1), m = l.useCallback(() => d.current = !1, []);
|
|
6178
6178
|
return l.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ i(Gd, { asChild: !0, ...s, children: /* @__PURE__ */ i(
|
|
6179
|
-
|
|
6179
|
+
X.button,
|
|
6180
6180
|
{
|
|
6181
6181
|
"aria-describedby": o.open ? o.contentId : void 0,
|
|
6182
6182
|
"data-state": o.stateAttribute,
|
|
6183
6183
|
...r,
|
|
6184
6184
|
ref: u,
|
|
6185
|
-
onPointerMove:
|
|
6185
|
+
onPointerMove: Q(e.onPointerMove, (v) => {
|
|
6186
6186
|
v.pointerType !== "touch" && !p.current && !a.isPointerInTransitRef.current && (o.onTriggerEnter(), p.current = !0);
|
|
6187
6187
|
}),
|
|
6188
|
-
onPointerLeave:
|
|
6188
|
+
onPointerLeave: Q(e.onPointerLeave, () => {
|
|
6189
6189
|
o.onTriggerLeave(), p.current = !1;
|
|
6190
6190
|
}),
|
|
6191
|
-
onPointerDown:
|
|
6191
|
+
onPointerDown: Q(e.onPointerDown, () => {
|
|
6192
6192
|
d.current = !0, document.addEventListener("pointerup", m, { once: !0 });
|
|
6193
6193
|
}),
|
|
6194
|
-
onFocus:
|
|
6194
|
+
onFocus: Q(e.onFocus, () => {
|
|
6195
6195
|
d.current || o.onOpen();
|
|
6196
6196
|
}),
|
|
6197
|
-
onBlur:
|
|
6198
|
-
onClick:
|
|
6197
|
+
onBlur: Q(e.onBlur, o.onClose),
|
|
6198
|
+
onClick: Q(e.onClick, o.onClose)
|
|
6199
6199
|
}
|
|
6200
6200
|
) });
|
|
6201
6201
|
}
|
|
6202
6202
|
);
|
|
6203
|
-
|
|
6203
|
+
Pa.displayName = Fn;
|
|
6204
6204
|
var fr = "TooltipPortal", [eu, tu] = an(fr, {
|
|
6205
6205
|
forceMount: void 0
|
|
6206
|
-
}),
|
|
6207
|
-
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a =
|
|
6208
|
-
return /* @__PURE__ */ i(eu, { scope: t, forceMount: n, children: /* @__PURE__ */ i(
|
|
6206
|
+
}), Aa = (e) => {
|
|
6207
|
+
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = Nt(fr, t);
|
|
6208
|
+
return /* @__PURE__ */ i(eu, { scope: t, forceMount: n, children: /* @__PURE__ */ i(Ze, { present: n || a.open, children: /* @__PURE__ */ i(Gt, { asChild: !0, container: o, children: r }) }) });
|
|
6209
6209
|
};
|
|
6210
|
-
|
|
6211
|
-
var
|
|
6210
|
+
Aa.displayName = fr;
|
|
6211
|
+
var it = "TooltipContent", ka = l.forwardRef(
|
|
6212
6212
|
(e, t) => {
|
|
6213
|
-
const n = tu(
|
|
6214
|
-
return /* @__PURE__ */ i(
|
|
6213
|
+
const n = tu(it, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = Nt(it, e.__scopeTooltip);
|
|
6214
|
+
return /* @__PURE__ */ i(Ze, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ i(Ma, { side: o, ...a, ref: t }) : /* @__PURE__ */ i(nu, { side: o, ...a, ref: t }) });
|
|
6215
6215
|
}
|
|
6216
6216
|
), nu = l.forwardRef((e, t) => {
|
|
6217
|
-
const n =
|
|
6217
|
+
const n = Nt(it, e.__scopeTooltip), r = ur(it, e.__scopeTooltip), o = l.useRef(null), a = le(t, o), [s, c] = l.useState(null), { trigger: u, onClose: d } = n, p = o.current, { onPointerInTransitChange: m } = r, v = l.useCallback(() => {
|
|
6218
6218
|
c(null), m(!1);
|
|
6219
6219
|
}, [m]), g = l.useCallback(
|
|
6220
6220
|
(y, f) => {
|
|
@@ -6238,8 +6238,8 @@ var st = "TooltipContent", Aa = l.forwardRef(
|
|
|
6238
6238
|
};
|
|
6239
6239
|
return document.addEventListener("pointermove", y), () => document.removeEventListener("pointermove", y);
|
|
6240
6240
|
}
|
|
6241
|
-
}, [u, p, s, d, v]), /* @__PURE__ */ i(
|
|
6242
|
-
}), [ru, ou] = an(ln, { isInside: !1 }),
|
|
6241
|
+
}, [u, p, s, d, v]), /* @__PURE__ */ i(Ma, { ...e, ref: a });
|
|
6242
|
+
}), [ru, ou] = an(ln, { isInside: !1 }), Ma = l.forwardRef(
|
|
6243
6243
|
(e, t) => {
|
|
6244
6244
|
const {
|
|
6245
6245
|
__scopeTooltip: n,
|
|
@@ -6248,7 +6248,7 @@ var st = "TooltipContent", Aa = l.forwardRef(
|
|
|
6248
6248
|
onEscapeKeyDown: a,
|
|
6249
6249
|
onPointerDownOutside: s,
|
|
6250
6250
|
...c
|
|
6251
|
-
} = e, u =
|
|
6251
|
+
} = e, u = Nt(it, n), d = sn(n), { onClose: p } = u;
|
|
6252
6252
|
return l.useEffect(() => (document.addEventListener($n, p), () => document.removeEventListener($n, p)), [p]), l.useEffect(() => {
|
|
6253
6253
|
if (u.trigger) {
|
|
6254
6254
|
const m = (v) => {
|
|
@@ -6282,8 +6282,8 @@ var st = "TooltipContent", Aa = l.forwardRef(
|
|
|
6282
6282
|
"--radix-tooltip-trigger-height": "var(--radix-popper-anchor-height)"
|
|
6283
6283
|
},
|
|
6284
6284
|
children: [
|
|
6285
|
-
/* @__PURE__ */ i(
|
|
6286
|
-
/* @__PURE__ */ i(ru, { scope: n, isInside: !0, children: /* @__PURE__ */ i(
|
|
6285
|
+
/* @__PURE__ */ i(wo, { children: r }),
|
|
6286
|
+
/* @__PURE__ */ i(ru, { scope: n, isInside: !0, children: /* @__PURE__ */ i(Qd, { id: u.contentId, role: "tooltip", children: o || r }) })
|
|
6287
6287
|
]
|
|
6288
6288
|
}
|
|
6289
6289
|
)
|
|
@@ -6291,17 +6291,17 @@ var st = "TooltipContent", Aa = l.forwardRef(
|
|
|
6291
6291
|
);
|
|
6292
6292
|
}
|
|
6293
6293
|
);
|
|
6294
|
-
|
|
6295
|
-
var
|
|
6294
|
+
ka.displayName = it;
|
|
6295
|
+
var Oa = "TooltipArrow", au = l.forwardRef(
|
|
6296
6296
|
(e, t) => {
|
|
6297
6297
|
const { __scopeTooltip: n, ...r } = e, o = sn(n);
|
|
6298
6298
|
return ou(
|
|
6299
|
-
|
|
6299
|
+
Oa,
|
|
6300
6300
|
n
|
|
6301
6301
|
).isInside ? null : /* @__PURE__ */ i(Yd, { ...o, ...r, ref: t });
|
|
6302
6302
|
}
|
|
6303
6303
|
);
|
|
6304
|
-
au.displayName =
|
|
6304
|
+
au.displayName = Oa;
|
|
6305
6305
|
function su(e, t) {
|
|
6306
6306
|
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);
|
|
6307
6307
|
switch (Math.min(n, r, o, a)) {
|
|
@@ -6394,9 +6394,9 @@ function uu(e) {
|
|
|
6394
6394
|
}
|
|
6395
6395
|
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);
|
|
6396
6396
|
}
|
|
6397
|
-
var fu =
|
|
6398
|
-
const
|
|
6399
|
-
|
|
6397
|
+
var fu = Ta, pu = Ra, mu = Pa, hu = Aa, Da = ka;
|
|
6398
|
+
const pt = fu, mt = pu, ht = mu, at = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i(hu, { children: /* @__PURE__ */ i(
|
|
6399
|
+
Da,
|
|
6400
6400
|
{
|
|
6401
6401
|
ref: r,
|
|
6402
6402
|
sideOffset: t,
|
|
@@ -6407,7 +6407,7 @@ const ft = fu, pt = pu, mt = mu, ot = l.forwardRef(({ className: e, sideOffset:
|
|
|
6407
6407
|
...n
|
|
6408
6408
|
}
|
|
6409
6409
|
) }));
|
|
6410
|
-
|
|
6410
|
+
at.displayName = Da.displayName;
|
|
6411
6411
|
const pr = l.forwardRef(
|
|
6412
6412
|
({ className: e, type: t, mask: n, onChange: r, placeholder: o, ...a }, s) => {
|
|
6413
6413
|
const [c, u] = l.useState(!1), d = l.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 = () => {
|
|
@@ -6445,8 +6445,8 @@ const pr = l.forwardRef(
|
|
|
6445
6445
|
}
|
|
6446
6446
|
r == null || r(f);
|
|
6447
6447
|
};
|
|
6448
|
-
return /* @__PURE__ */ i(
|
|
6449
|
-
/* @__PURE__ */ i(
|
|
6448
|
+
return /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ x(mt, { open: c && !!n, children: [
|
|
6449
|
+
/* @__PURE__ */ i(ht, { asChild: !0, children: /* @__PURE__ */ i(
|
|
6450
6450
|
"input",
|
|
6451
6451
|
{
|
|
6452
6452
|
type: t,
|
|
@@ -6460,15 +6460,15 @@ const pr = l.forwardRef(
|
|
|
6460
6460
|
...a
|
|
6461
6461
|
}
|
|
6462
6462
|
) }),
|
|
6463
|
-
/* @__PURE__ */ i(
|
|
6463
|
+
/* @__PURE__ */ i(at, { side: "top", className: "bg-sidebar text-sidebar-foreground", children: v() })
|
|
6464
6464
|
] }) });
|
|
6465
6465
|
}
|
|
6466
6466
|
);
|
|
6467
6467
|
pr.displayName = "Input";
|
|
6468
|
-
var gu = "Separator",
|
|
6469
|
-
const { decorative: n, orientation: r =
|
|
6468
|
+
var gu = "Separator", Zr = "horizontal", vu = ["horizontal", "vertical"], Ia = l.forwardRef((e, t) => {
|
|
6469
|
+
const { decorative: n, orientation: r = Zr, ...o } = e, a = bu(r) ? r : Zr, c = n ? { role: "none" } : { "aria-orientation": a === "vertical" ? a : void 0, role: "separator" };
|
|
6470
6470
|
return /* @__PURE__ */ i(
|
|
6471
|
-
|
|
6471
|
+
X.div,
|
|
6472
6472
|
{
|
|
6473
6473
|
"data-orientation": a,
|
|
6474
6474
|
...c,
|
|
@@ -6477,14 +6477,14 @@ var gu = "Separator", Qr = "horizontal", vu = ["horizontal", "vertical"], Da = l
|
|
|
6477
6477
|
}
|
|
6478
6478
|
);
|
|
6479
6479
|
});
|
|
6480
|
-
|
|
6480
|
+
Ia.displayName = gu;
|
|
6481
6481
|
function bu(e) {
|
|
6482
6482
|
return vu.includes(e);
|
|
6483
6483
|
}
|
|
6484
|
-
var
|
|
6485
|
-
const
|
|
6484
|
+
var _a = Ia;
|
|
6485
|
+
const La = l.forwardRef(
|
|
6486
6486
|
({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ i(
|
|
6487
|
-
|
|
6487
|
+
_a,
|
|
6488
6488
|
{
|
|
6489
6489
|
ref: o,
|
|
6490
6490
|
decorative: n,
|
|
@@ -6498,8 +6498,8 @@ const _a = l.forwardRef(
|
|
|
6498
6498
|
}
|
|
6499
6499
|
)
|
|
6500
6500
|
);
|
|
6501
|
-
|
|
6502
|
-
const yu = Jn, Kf =
|
|
6501
|
+
La.displayName = _a.displayName;
|
|
6502
|
+
const yu = Jn, Kf = Zo, Yf = Zt, wu = Jo, $a = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6503
6503
|
Yt,
|
|
6504
6504
|
{
|
|
6505
6505
|
className: M(
|
|
@@ -6510,8 +6510,8 @@ const yu = Jn, Kf = Qo, Yf = Zt, wu = Zo, La = l.forwardRef(({ className: e, ...
|
|
|
6510
6510
|
ref: n
|
|
6511
6511
|
}
|
|
6512
6512
|
));
|
|
6513
|
-
|
|
6514
|
-
const xu =
|
|
6513
|
+
$a.displayName = Yt.displayName;
|
|
6514
|
+
const xu = wt(
|
|
6515
6515
|
"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",
|
|
6516
6516
|
{
|
|
6517
6517
|
variants: {
|
|
@@ -6526,8 +6526,8 @@ const xu = yt(
|
|
|
6526
6526
|
side: "right"
|
|
6527
6527
|
}
|
|
6528
6528
|
}
|
|
6529
|
-
),
|
|
6530
|
-
/* @__PURE__ */ i(
|
|
6529
|
+
), Fa = l.forwardRef(({ side: e = "right", className: t, children: n, ...r }, o) => /* @__PURE__ */ x(wu, { children: [
|
|
6530
|
+
/* @__PURE__ */ i($a, {}),
|
|
6531
6531
|
/* @__PURE__ */ x(
|
|
6532
6532
|
qt,
|
|
6533
6533
|
{
|
|
@@ -6544,7 +6544,7 @@ const xu = yt(
|
|
|
6544
6544
|
}
|
|
6545
6545
|
)
|
|
6546
6546
|
] }));
|
|
6547
|
-
|
|
6547
|
+
Fa.displayName = qt.displayName;
|
|
6548
6548
|
const Nu = ({
|
|
6549
6549
|
className: e,
|
|
6550
6550
|
...t
|
|
@@ -6574,23 +6574,23 @@ const Cu = ({
|
|
|
6574
6574
|
);
|
|
6575
6575
|
Cu.displayName = "SheetFooter";
|
|
6576
6576
|
const Eu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6577
|
-
|
|
6577
|
+
Qt,
|
|
6578
6578
|
{
|
|
6579
6579
|
ref: n,
|
|
6580
6580
|
className: M("text-lg font-semibold text-foreground", e),
|
|
6581
6581
|
...t
|
|
6582
6582
|
}
|
|
6583
6583
|
));
|
|
6584
|
-
Eu.displayName =
|
|
6584
|
+
Eu.displayName = Qt.displayName;
|
|
6585
6585
|
const Su = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6586
|
-
|
|
6586
|
+
Xt,
|
|
6587
6587
|
{
|
|
6588
6588
|
ref: n,
|
|
6589
6589
|
className: M("text-sm text-muted-foreground", e),
|
|
6590
6590
|
...t
|
|
6591
6591
|
}
|
|
6592
6592
|
));
|
|
6593
|
-
Su.displayName =
|
|
6593
|
+
Su.displayName = Xt.displayName;
|
|
6594
6594
|
function qf({ onClick: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
6595
6595
|
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] = ye(!1), c = () => {
|
|
6596
6596
|
s(!0);
|
|
@@ -6611,8 +6611,8 @@ function qf({ onClick: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
|
6611
6611
|
] })
|
|
6612
6612
|
] });
|
|
6613
6613
|
}
|
|
6614
|
-
var Tu = "Label",
|
|
6615
|
-
|
|
6614
|
+
var Tu = "Label", za = l.forwardRef((e, t) => /* @__PURE__ */ i(
|
|
6615
|
+
X.label,
|
|
6616
6616
|
{
|
|
6617
6617
|
...e,
|
|
6618
6618
|
ref: t,
|
|
@@ -6622,9 +6622,9 @@ var Tu = "Label", Fa = l.forwardRef((e, t) => /* @__PURE__ */ i(
|
|
|
6622
6622
|
}
|
|
6623
6623
|
}
|
|
6624
6624
|
));
|
|
6625
|
-
|
|
6626
|
-
var Ru =
|
|
6627
|
-
function
|
|
6625
|
+
za.displayName = Tu;
|
|
6626
|
+
var Ru = za;
|
|
6627
|
+
function Qf({
|
|
6628
6628
|
className: e,
|
|
6629
6629
|
...t
|
|
6630
6630
|
}) {
|
|
@@ -6662,14 +6662,14 @@ function Y({
|
|
|
6662
6662
|
}
|
|
6663
6663
|
);
|
|
6664
6664
|
}
|
|
6665
|
-
const Au = "sidebar:state", ku = 60 * 60 * 24 * 7, Mu = "16rem", Ou = "18rem", Du = "3rem", Iu = "b",
|
|
6665
|
+
const Au = "sidebar:state", ku = 60 * 60 * 24 * 7, Mu = "16rem", Ou = "18rem", Du = "3rem", Iu = "b", Wa = l.createContext(null);
|
|
6666
6666
|
function cn() {
|
|
6667
|
-
const e = l.useContext(
|
|
6667
|
+
const e = l.useContext(Wa);
|
|
6668
6668
|
if (!e)
|
|
6669
6669
|
throw new Error("useSidebar must be used within a SidebarProvider.");
|
|
6670
6670
|
return e;
|
|
6671
6671
|
}
|
|
6672
|
-
const
|
|
6672
|
+
const Ba = l.forwardRef(
|
|
6673
6673
|
({
|
|
6674
6674
|
defaultOpen: e = !0,
|
|
6675
6675
|
open: t,
|
|
@@ -6704,7 +6704,7 @@ const Wa = l.forwardRef(
|
|
|
6704
6704
|
}),
|
|
6705
6705
|
[h, g, y, u, d, p, f]
|
|
6706
6706
|
);
|
|
6707
|
-
return /* @__PURE__ */ i(
|
|
6707
|
+
return /* @__PURE__ */ i(Wa.Provider, { value: b, children: /* @__PURE__ */ i(pt, { delayDuration: 0, children: /* @__PURE__ */ i(
|
|
6708
6708
|
"div",
|
|
6709
6709
|
{
|
|
6710
6710
|
style: {
|
|
@@ -6723,8 +6723,8 @@ const Wa = l.forwardRef(
|
|
|
6723
6723
|
) }) });
|
|
6724
6724
|
}
|
|
6725
6725
|
);
|
|
6726
|
-
|
|
6727
|
-
const
|
|
6726
|
+
Ba.displayName = "SidebarProvider";
|
|
6727
|
+
const ja = l.forwardRef(
|
|
6728
6728
|
({
|
|
6729
6729
|
side: e = "left",
|
|
6730
6730
|
variant: t = "sidebar",
|
|
@@ -6746,7 +6746,7 @@ const Ba = l.forwardRef(
|
|
|
6746
6746
|
children: o
|
|
6747
6747
|
}
|
|
6748
6748
|
) : c ? /* @__PURE__ */ i(yu, { open: d, onOpenChange: p, ...a, children: /* @__PURE__ */ i(
|
|
6749
|
-
|
|
6749
|
+
Fa,
|
|
6750
6750
|
{
|
|
6751
6751
|
"data-sidebar": "sidebar",
|
|
6752
6752
|
"data-mobile": "true",
|
|
@@ -6804,8 +6804,8 @@ const Ba = l.forwardRef(
|
|
|
6804
6804
|
);
|
|
6805
6805
|
}
|
|
6806
6806
|
);
|
|
6807
|
-
|
|
6808
|
-
const
|
|
6807
|
+
ja.displayName = "Sidebar";
|
|
6808
|
+
const Va = l.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
6809
6809
|
const { toggleSidebar: o } = cn();
|
|
6810
6810
|
return /* @__PURE__ */ x(
|
|
6811
6811
|
ie,
|
|
@@ -6820,13 +6820,13 @@ const ja = l.forwardRef(({ className: e, onClick: t, ...n }, r) => {
|
|
|
6820
6820
|
},
|
|
6821
6821
|
...n,
|
|
6822
6822
|
children: [
|
|
6823
|
-
/* @__PURE__ */ i(
|
|
6823
|
+
/* @__PURE__ */ i(di, {}),
|
|
6824
6824
|
/* @__PURE__ */ i("span", { className: "sr-only", children: "Toggle Sidebar" })
|
|
6825
6825
|
]
|
|
6826
6826
|
}
|
|
6827
6827
|
);
|
|
6828
6828
|
});
|
|
6829
|
-
|
|
6829
|
+
Va.displayName = "SidebarTrigger";
|
|
6830
6830
|
const _u = l.forwardRef(({ className: e, ...t }, n) => {
|
|
6831
6831
|
const { toggleSidebar: r } = cn();
|
|
6832
6832
|
return /* @__PURE__ */ i(
|
|
@@ -6878,7 +6878,7 @@ const $u = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6878
6878
|
}
|
|
6879
6879
|
));
|
|
6880
6880
|
$u.displayName = "SidebarInput";
|
|
6881
|
-
const
|
|
6881
|
+
const Ha = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6882
6882
|
"div",
|
|
6883
6883
|
{
|
|
6884
6884
|
ref: n,
|
|
@@ -6887,8 +6887,8 @@ const Va = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6887
6887
|
...t
|
|
6888
6888
|
}
|
|
6889
6889
|
));
|
|
6890
|
-
|
|
6891
|
-
const
|
|
6890
|
+
Ha.displayName = "SidebarHeader";
|
|
6891
|
+
const Ua = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6892
6892
|
"div",
|
|
6893
6893
|
{
|
|
6894
6894
|
ref: n,
|
|
@@ -6897,9 +6897,9 @@ const Ha = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6897
6897
|
...t
|
|
6898
6898
|
}
|
|
6899
6899
|
));
|
|
6900
|
-
|
|
6900
|
+
Ua.displayName = "SidebarFooter";
|
|
6901
6901
|
const Fu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6902
|
-
|
|
6902
|
+
La,
|
|
6903
6903
|
{
|
|
6904
6904
|
ref: n,
|
|
6905
6905
|
"data-sidebar": "separator",
|
|
@@ -6908,7 +6908,7 @@ const Fu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6908
6908
|
}
|
|
6909
6909
|
));
|
|
6910
6910
|
Fu.displayName = "SidebarSeparator";
|
|
6911
|
-
const
|
|
6911
|
+
const Ga = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6912
6912
|
"div",
|
|
6913
6913
|
{
|
|
6914
6914
|
ref: n,
|
|
@@ -6920,7 +6920,7 @@ const Ua = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6920
6920
|
...t
|
|
6921
6921
|
}
|
|
6922
6922
|
));
|
|
6923
|
-
|
|
6923
|
+
Ga.displayName = "SidebarContent";
|
|
6924
6924
|
const zu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6925
6925
|
"div",
|
|
6926
6926
|
{
|
|
@@ -6971,7 +6971,7 @@ const ju = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6971
6971
|
}
|
|
6972
6972
|
));
|
|
6973
6973
|
ju.displayName = "SidebarGroupContent";
|
|
6974
|
-
const
|
|
6974
|
+
const Ka = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6975
6975
|
"ul",
|
|
6976
6976
|
{
|
|
6977
6977
|
ref: n,
|
|
@@ -6980,8 +6980,8 @@ const Ga = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6980
6980
|
...t
|
|
6981
6981
|
}
|
|
6982
6982
|
));
|
|
6983
|
-
|
|
6984
|
-
const
|
|
6983
|
+
Ka.displayName = "SidebarMenu";
|
|
6984
|
+
const Ya = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6985
6985
|
"li",
|
|
6986
6986
|
{
|
|
6987
6987
|
ref: n,
|
|
@@ -6990,8 +6990,8 @@ const Ka = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6990
6990
|
...t
|
|
6991
6991
|
}
|
|
6992
6992
|
));
|
|
6993
|
-
|
|
6994
|
-
const Vu =
|
|
6993
|
+
Ya.displayName = "SidebarMenuItem";
|
|
6994
|
+
const Vu = wt(
|
|
6995
6995
|
"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",
|
|
6996
6996
|
{
|
|
6997
6997
|
variants: {
|
|
@@ -7010,7 +7010,7 @@ const Vu = yt(
|
|
|
7010
7010
|
size: "default"
|
|
7011
7011
|
}
|
|
7012
7012
|
}
|
|
7013
|
-
),
|
|
7013
|
+
), qa = l.forwardRef(
|
|
7014
7014
|
({
|
|
7015
7015
|
asChild: e = !1,
|
|
7016
7016
|
isActive: t = !1,
|
|
@@ -7033,10 +7033,10 @@ const Vu = yt(
|
|
|
7033
7033
|
);
|
|
7034
7034
|
return o ? (typeof o == "string" && (o = {
|
|
7035
7035
|
children: o
|
|
7036
|
-
}), /* @__PURE__ */ x(
|
|
7037
|
-
/* @__PURE__ */ i(
|
|
7036
|
+
}), /* @__PURE__ */ x(mt, { children: [
|
|
7037
|
+
/* @__PURE__ */ i(ht, { asChild: !0, children: m }),
|
|
7038
7038
|
/* @__PURE__ */ i(
|
|
7039
|
-
|
|
7039
|
+
at,
|
|
7040
7040
|
{
|
|
7041
7041
|
side: "right",
|
|
7042
7042
|
align: "center",
|
|
@@ -7047,7 +7047,7 @@ const Vu = yt(
|
|
|
7047
7047
|
] })) : m;
|
|
7048
7048
|
}
|
|
7049
7049
|
);
|
|
7050
|
-
|
|
7050
|
+
qa.displayName = "SidebarMenuButton";
|
|
7051
7051
|
const Hu = l.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ i(
|
|
7052
7052
|
t ? we : "button",
|
|
7053
7053
|
{
|
|
@@ -7153,32 +7153,32 @@ const qu = l.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, classNa
|
|
|
7153
7153
|
}
|
|
7154
7154
|
));
|
|
7155
7155
|
qu.displayName = "SidebarMenuSubButton";
|
|
7156
|
-
function
|
|
7157
|
-
const t = e + "CollectionProvider", [n, r] =
|
|
7156
|
+
function Qu(e) {
|
|
7157
|
+
const t = e + "CollectionProvider", [n, r] = yt(t), [o, a] = n(
|
|
7158
7158
|
t,
|
|
7159
7159
|
{ collectionRef: { current: null }, itemMap: /* @__PURE__ */ new Map() }
|
|
7160
7160
|
), s = (g) => {
|
|
7161
|
-
const { scope: y, children: f } = g, h =
|
|
7161
|
+
const { scope: y, children: f } = g, h = Ge.useRef(null), b = Ge.useRef(/* @__PURE__ */ new Map()).current;
|
|
7162
7162
|
return /* @__PURE__ */ i(o, { scope: y, itemMap: b, collectionRef: h, children: f });
|
|
7163
7163
|
};
|
|
7164
7164
|
s.displayName = t;
|
|
7165
|
-
const c = e + "CollectionSlot", u =
|
|
7165
|
+
const c = e + "CollectionSlot", u = Ge.forwardRef(
|
|
7166
7166
|
(g, y) => {
|
|
7167
7167
|
const { scope: f, children: h } = g, b = a(c, f), w = le(y, b.collectionRef);
|
|
7168
7168
|
return /* @__PURE__ */ i(we, { ref: w, children: h });
|
|
7169
7169
|
}
|
|
7170
7170
|
);
|
|
7171
7171
|
u.displayName = c;
|
|
7172
|
-
const d = e + "CollectionItemSlot", p = "data-radix-collection-item", m =
|
|
7172
|
+
const d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = Ge.forwardRef(
|
|
7173
7173
|
(g, y) => {
|
|
7174
|
-
const { scope: f, children: h, ...b } = g, w =
|
|
7175
|
-
return
|
|
7174
|
+
const { scope: f, children: h, ...b } = g, w = Ge.useRef(null), N = le(y, w), C = a(d, f);
|
|
7175
|
+
return Ge.useEffect(() => (C.itemMap.set(w, { ref: w, ...b }), () => void C.itemMap.delete(w))), /* @__PURE__ */ i(we, { [p]: "", ref: N, children: h });
|
|
7176
7176
|
}
|
|
7177
7177
|
);
|
|
7178
7178
|
m.displayName = d;
|
|
7179
7179
|
function v(g) {
|
|
7180
7180
|
const y = a(e + "CollectionConsumer", g);
|
|
7181
|
-
return
|
|
7181
|
+
return Ge.useCallback(() => {
|
|
7182
7182
|
const h = y.collectionRef.current;
|
|
7183
7183
|
if (!h) return [];
|
|
7184
7184
|
const b = Array.from(h.querySelectorAll(`[${p}]`));
|
|
@@ -7193,7 +7193,7 @@ function Xu(e) {
|
|
|
7193
7193
|
r
|
|
7194
7194
|
];
|
|
7195
7195
|
}
|
|
7196
|
-
var mr = "ToastProvider", [hr,
|
|
7196
|
+
var mr = "ToastProvider", [hr, Xu, Zu] = Qu("Toast"), [Qa, Xf] = yt("Toast", [Zu]), [Ju, dn] = Qa(mr), Xa = (e) => {
|
|
7197
7197
|
const {
|
|
7198
7198
|
__scopeToast: t,
|
|
7199
7199
|
label: n = "Notification",
|
|
@@ -7224,14 +7224,14 @@ var mr = "ToastProvider", [hr, Qu, Zu] = Xu("Toast"), [qa, Qf] = bt("Toast", [Zu
|
|
|
7224
7224
|
) });
|
|
7225
7225
|
};
|
|
7226
7226
|
Xa.displayName = mr;
|
|
7227
|
-
var
|
|
7227
|
+
var Za = "ToastViewport", ef = ["F8"], zn = "toast.viewportPause", Wn = "toast.viewportResume", Ja = l.forwardRef(
|
|
7228
7228
|
(e, t) => {
|
|
7229
7229
|
const {
|
|
7230
7230
|
__scopeToast: n,
|
|
7231
7231
|
hotkey: r = ef,
|
|
7232
7232
|
label: o = "Notifications ({hotkey})",
|
|
7233
7233
|
...a
|
|
7234
|
-
} = e, s = dn(
|
|
7234
|
+
} = e, s = dn(Za, n), c = Xu(n), u = l.useRef(null), d = l.useRef(null), p = l.useRef(null), m = l.useRef(null), v = le(t, m, s.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = s.toastCount > 0;
|
|
7235
7235
|
l.useEffect(() => {
|
|
7236
7236
|
const h = (b) => {
|
|
7237
7237
|
var N;
|
|
@@ -7310,7 +7310,7 @@ var Qa = "ToastViewport", ef = ["F8"], zn = "toast.viewportPause", Wn = "toast.v
|
|
|
7310
7310
|
}
|
|
7311
7311
|
}
|
|
7312
7312
|
),
|
|
7313
|
-
/* @__PURE__ */ i(hr.Slot, { scope: n, children: /* @__PURE__ */ i(
|
|
7313
|
+
/* @__PURE__ */ i(hr.Slot, { scope: n, children: /* @__PURE__ */ i(X.ol, { tabIndex: -1, ...a, ref: v }) }),
|
|
7314
7314
|
y && /* @__PURE__ */ i(
|
|
7315
7315
|
Bn,
|
|
7316
7316
|
{
|
|
@@ -7328,10 +7328,10 @@ var Qa = "ToastViewport", ef = ["F8"], zn = "toast.viewportPause", Wn = "toast.v
|
|
|
7328
7328
|
);
|
|
7329
7329
|
}
|
|
7330
7330
|
);
|
|
7331
|
-
|
|
7332
|
-
var
|
|
7331
|
+
Ja.displayName = Za;
|
|
7332
|
+
var es = "ToastFocusProxy", Bn = l.forwardRef(
|
|
7333
7333
|
(e, t) => {
|
|
7334
|
-
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = dn(
|
|
7334
|
+
const { __scopeToast: n, onFocusFromOutsideViewport: r, ...o } = e, a = dn(es, n);
|
|
7335
7335
|
return /* @__PURE__ */ i(
|
|
7336
7336
|
on,
|
|
7337
7337
|
{
|
|
@@ -7349,15 +7349,15 @@ var Ja = "ToastFocusProxy", Bn = l.forwardRef(
|
|
|
7349
7349
|
);
|
|
7350
7350
|
}
|
|
7351
7351
|
);
|
|
7352
|
-
Bn.displayName =
|
|
7353
|
-
var un = "Toast", tf = "toast.swipeStart", nf = "toast.swipeMove", rf = "toast.swipeCancel", of = "toast.swipeEnd",
|
|
7352
|
+
Bn.displayName = es;
|
|
7353
|
+
var un = "Toast", tf = "toast.swipeStart", nf = "toast.swipeMove", rf = "toast.swipeCancel", of = "toast.swipeEnd", ts = l.forwardRef(
|
|
7354
7354
|
(e, t) => {
|
|
7355
7355
|
const { forceMount: n, open: r, defaultOpen: o, onOpenChange: a, ...s } = e, [c = !0, u] = Yn({
|
|
7356
7356
|
prop: r,
|
|
7357
7357
|
defaultProp: o,
|
|
7358
7358
|
onChange: a
|
|
7359
7359
|
});
|
|
7360
|
-
return /* @__PURE__ */ i(
|
|
7360
|
+
return /* @__PURE__ */ i(Ze, { present: n || c, children: /* @__PURE__ */ i(
|
|
7361
7361
|
lf,
|
|
7362
7362
|
{
|
|
7363
7363
|
open: c,
|
|
@@ -7366,17 +7366,17 @@ var un = "Toast", tf = "toast.swipeStart", nf = "toast.swipeMove", rf = "toast.s
|
|
|
7366
7366
|
onClose: () => u(!1),
|
|
7367
7367
|
onPause: ge(e.onPause),
|
|
7368
7368
|
onResume: ge(e.onResume),
|
|
7369
|
-
onSwipeStart:
|
|
7369
|
+
onSwipeStart: Q(e.onSwipeStart, (d) => {
|
|
7370
7370
|
d.currentTarget.setAttribute("data-swipe", "start");
|
|
7371
7371
|
}),
|
|
7372
|
-
onSwipeMove:
|
|
7372
|
+
onSwipeMove: Q(e.onSwipeMove, (d) => {
|
|
7373
7373
|
const { x: p, y: m } = d.detail.delta;
|
|
7374
7374
|
d.currentTarget.setAttribute("data-swipe", "move"), d.currentTarget.style.setProperty("--radix-toast-swipe-move-x", `${p}px`), d.currentTarget.style.setProperty("--radix-toast-swipe-move-y", `${m}px`);
|
|
7375
7375
|
}),
|
|
7376
|
-
onSwipeCancel:
|
|
7376
|
+
onSwipeCancel: Q(e.onSwipeCancel, (d) => {
|
|
7377
7377
|
d.currentTarget.setAttribute("data-swipe", "cancel"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), d.currentTarget.style.removeProperty("--radix-toast-swipe-end-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-end-y");
|
|
7378
7378
|
}),
|
|
7379
|
-
onSwipeEnd:
|
|
7379
|
+
onSwipeEnd: Q(e.onSwipeEnd, (d) => {
|
|
7380
7380
|
const { x: p, y: m } = d.detail.delta;
|
|
7381
7381
|
d.currentTarget.setAttribute("data-swipe", "end"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-x"), d.currentTarget.style.removeProperty("--radix-toast-swipe-move-y"), d.currentTarget.style.setProperty("--radix-toast-swipe-end-x", `${p}px`), d.currentTarget.style.setProperty("--radix-toast-swipe-end-y", `${m}px`), u(!1);
|
|
7382
7382
|
})
|
|
@@ -7384,8 +7384,8 @@ var un = "Toast", tf = "toast.swipeStart", nf = "toast.swipeMove", rf = "toast.s
|
|
|
7384
7384
|
) });
|
|
7385
7385
|
}
|
|
7386
7386
|
);
|
|
7387
|
-
|
|
7388
|
-
var [af, sf] =
|
|
7387
|
+
ts.displayName = un;
|
|
7388
|
+
var [af, sf] = Qa(un, {
|
|
7389
7389
|
onClose() {
|
|
7390
7390
|
}
|
|
7391
7391
|
}), lf = l.forwardRef(
|
|
@@ -7429,7 +7429,7 @@ var [af, sf] = qa(un, {
|
|
|
7429
7429
|
}, [f.viewport, S, u, d, j]), l.useEffect(() => {
|
|
7430
7430
|
a && !f.isClosePausedRef.current && j(S);
|
|
7431
7431
|
}, [a, S, f.isClosePausedRef, j]), l.useEffect(() => (D(), () => B()), [D, B]);
|
|
7432
|
-
const I = l.useMemo(() => h ?
|
|
7432
|
+
const I = l.useMemo(() => h ? ls(h) : null, [h]);
|
|
7433
7433
|
return f.viewport ? /* @__PURE__ */ x(J, { children: [
|
|
7434
7434
|
I && /* @__PURE__ */ i(
|
|
7435
7435
|
cf,
|
|
@@ -7446,11 +7446,11 @@ var [af, sf] = qa(un, {
|
|
|
7446
7446
|
kl,
|
|
7447
7447
|
{
|
|
7448
7448
|
asChild: !0,
|
|
7449
|
-
onEscapeKeyDown:
|
|
7449
|
+
onEscapeKeyDown: Q(c, () => {
|
|
7450
7450
|
f.isFocusedToastEscapeKeyDownRef.current || H(), f.isFocusedToastEscapeKeyDownRef.current = !1;
|
|
7451
7451
|
}),
|
|
7452
7452
|
children: /* @__PURE__ */ i(
|
|
7453
|
-
|
|
7453
|
+
X.li,
|
|
7454
7454
|
{
|
|
7455
7455
|
role: "status",
|
|
7456
7456
|
"aria-live": "off",
|
|
@@ -7461,26 +7461,26 @@ var [af, sf] = qa(un, {
|
|
|
7461
7461
|
...y,
|
|
7462
7462
|
ref: w,
|
|
7463
7463
|
style: { userSelect: "none", touchAction: "none", ...e.style },
|
|
7464
|
-
onKeyDown:
|
|
7464
|
+
onKeyDown: Q(e.onKeyDown, (R) => {
|
|
7465
7465
|
R.key === "Escape" && (c == null || c(R.nativeEvent), R.nativeEvent.defaultPrevented || (f.isFocusedToastEscapeKeyDownRef.current = !0, H()));
|
|
7466
7466
|
}),
|
|
7467
|
-
onPointerDown:
|
|
7467
|
+
onPointerDown: Q(e.onPointerDown, (R) => {
|
|
7468
7468
|
R.button === 0 && (N.current = { x: R.clientX, y: R.clientY });
|
|
7469
7469
|
}),
|
|
7470
|
-
onPointerMove:
|
|
7470
|
+
onPointerMove: Q(e.onPointerMove, (R) => {
|
|
7471
7471
|
if (!N.current) return;
|
|
7472
7472
|
const z = R.clientX - N.current.x, k = R.clientY - N.current.y, U = !!C.current, O = ["left", "right"].includes(f.swipeDirection), L = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, q = O ? L(0, z) : 0, Z = O ? 0 : L(0, k), oe = R.pointerType === "touch" ? 10 : 2, te = { x: q, y: Z }, ne = { originalEvent: R, delta: te };
|
|
7473
7473
|
U ? (C.current = te, Mt(nf, m, ne, {
|
|
7474
7474
|
discrete: !1
|
|
7475
|
-
})) :
|
|
7475
|
+
})) : Jr(te, f.swipeDirection, oe) ? (C.current = te, Mt(tf, p, ne, {
|
|
7476
7476
|
discrete: !1
|
|
7477
7477
|
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(z) > oe || Math.abs(k) > oe) && (N.current = null);
|
|
7478
7478
|
}),
|
|
7479
|
-
onPointerUp:
|
|
7479
|
+
onPointerUp: Q(e.onPointerUp, (R) => {
|
|
7480
7480
|
const z = C.current, k = R.target;
|
|
7481
7481
|
if (k.hasPointerCapture(R.pointerId) && k.releasePointerCapture(R.pointerId), C.current = null, N.current = null, z) {
|
|
7482
7482
|
const U = R.currentTarget, O = { originalEvent: R, delta: z };
|
|
7483
|
-
|
|
7483
|
+
Jr(z, f.swipeDirection, f.swipeThreshold) ? Mt(of, g, O, {
|
|
7484
7484
|
discrete: !0
|
|
7485
7485
|
}) : Mt(
|
|
7486
7486
|
rf,
|
|
@@ -7512,48 +7512,48 @@ var [af, sf] = qa(un, {
|
|
|
7512
7512
|
" ",
|
|
7513
7513
|
n
|
|
7514
7514
|
] }) }) });
|
|
7515
|
-
}, df = "ToastTitle",
|
|
7515
|
+
}, df = "ToastTitle", ns = l.forwardRef(
|
|
7516
7516
|
(e, t) => {
|
|
7517
7517
|
const { __scopeToast: n, ...r } = e;
|
|
7518
|
-
return /* @__PURE__ */ i(
|
|
7518
|
+
return /* @__PURE__ */ i(X.div, { ...r, ref: t });
|
|
7519
7519
|
}
|
|
7520
7520
|
);
|
|
7521
|
-
|
|
7522
|
-
var uf = "ToastDescription",
|
|
7521
|
+
ns.displayName = df;
|
|
7522
|
+
var uf = "ToastDescription", rs = l.forwardRef(
|
|
7523
7523
|
(e, t) => {
|
|
7524
7524
|
const { __scopeToast: n, ...r } = e;
|
|
7525
|
-
return /* @__PURE__ */ i(
|
|
7525
|
+
return /* @__PURE__ */ i(X.div, { ...r, ref: t });
|
|
7526
7526
|
}
|
|
7527
7527
|
);
|
|
7528
|
-
|
|
7529
|
-
var
|
|
7528
|
+
rs.displayName = uf;
|
|
7529
|
+
var os = "ToastAction", as = l.forwardRef(
|
|
7530
7530
|
(e, t) => {
|
|
7531
7531
|
const { altText: n, ...r } = e;
|
|
7532
|
-
return n.trim() ? /* @__PURE__ */ i(
|
|
7533
|
-
`Invalid prop \`altText\` supplied to \`${
|
|
7532
|
+
return n.trim() ? /* @__PURE__ */ i(is, { altText: n, asChild: !0, children: /* @__PURE__ */ i(gr, { ...r, ref: t }) }) : (console.error(
|
|
7533
|
+
`Invalid prop \`altText\` supplied to \`${os}\`. Expected non-empty \`string\`.`
|
|
7534
7534
|
), null);
|
|
7535
7535
|
}
|
|
7536
7536
|
);
|
|
7537
|
-
|
|
7538
|
-
var
|
|
7537
|
+
as.displayName = os;
|
|
7538
|
+
var ss = "ToastClose", gr = l.forwardRef(
|
|
7539
7539
|
(e, t) => {
|
|
7540
|
-
const { __scopeToast: n, ...r } = e, o = sf(
|
|
7541
|
-
return /* @__PURE__ */ i(
|
|
7542
|
-
|
|
7540
|
+
const { __scopeToast: n, ...r } = e, o = sf(ss, n);
|
|
7541
|
+
return /* @__PURE__ */ i(is, { asChild: !0, children: /* @__PURE__ */ i(
|
|
7542
|
+
X.button,
|
|
7543
7543
|
{
|
|
7544
7544
|
type: "button",
|
|
7545
7545
|
...r,
|
|
7546
7546
|
ref: t,
|
|
7547
|
-
onClick:
|
|
7547
|
+
onClick: Q(e.onClick, o.onClose)
|
|
7548
7548
|
}
|
|
7549
7549
|
) });
|
|
7550
7550
|
}
|
|
7551
7551
|
);
|
|
7552
|
-
gr.displayName =
|
|
7553
|
-
var
|
|
7552
|
+
gr.displayName = ss;
|
|
7553
|
+
var is = l.forwardRef((e, t) => {
|
|
7554
7554
|
const { __scopeToast: n, altText: r, ...o } = e;
|
|
7555
7555
|
return /* @__PURE__ */ i(
|
|
7556
|
-
|
|
7556
|
+
X.div,
|
|
7557
7557
|
{
|
|
7558
7558
|
"data-radix-toast-announce-exclude": "",
|
|
7559
7559
|
"data-radix-toast-announce-alt": r || void 0,
|
|
@@ -7562,7 +7562,7 @@ var ss = l.forwardRef((e, t) => {
|
|
|
7562
7562
|
}
|
|
7563
7563
|
);
|
|
7564
7564
|
});
|
|
7565
|
-
function
|
|
7565
|
+
function ls(e) {
|
|
7566
7566
|
const t = [];
|
|
7567
7567
|
return Array.from(e.childNodes).forEach((r) => {
|
|
7568
7568
|
if (r.nodeType === r.TEXT_NODE && r.textContent && t.push(r.textContent), pf(r)) {
|
|
@@ -7572,22 +7572,22 @@ function is(e) {
|
|
|
7572
7572
|
const s = r.dataset.radixToastAnnounceAlt;
|
|
7573
7573
|
s && t.push(s);
|
|
7574
7574
|
} else
|
|
7575
|
-
t.push(...
|
|
7575
|
+
t.push(...ls(r));
|
|
7576
7576
|
}
|
|
7577
7577
|
}), t;
|
|
7578
7578
|
}
|
|
7579
7579
|
function Mt(e, t, n, { discrete: r }) {
|
|
7580
7580
|
const o = n.originalEvent.currentTarget, a = new CustomEvent(e, { bubbles: !0, cancelable: !0, detail: n });
|
|
7581
|
-
t && o.addEventListener(e, t, { once: !0 }), r ?
|
|
7581
|
+
t && o.addEventListener(e, t, { once: !0 }), r ? xo(o, a) : o.dispatchEvent(a);
|
|
7582
7582
|
}
|
|
7583
|
-
var
|
|
7583
|
+
var Jr = (e, t, n = 0) => {
|
|
7584
7584
|
const r = Math.abs(e.x), o = Math.abs(e.y), a = r > o;
|
|
7585
7585
|
return t === "left" || t === "right" ? a && r > n : !a && o > n;
|
|
7586
7586
|
};
|
|
7587
7587
|
function ff(e = () => {
|
|
7588
7588
|
}) {
|
|
7589
7589
|
const t = ge(e);
|
|
7590
|
-
|
|
7590
|
+
$e(() => {
|
|
7591
7591
|
let n = 0, r = 0;
|
|
7592
7592
|
return n = window.requestAnimationFrame(() => r = window.requestAnimationFrame(t)), () => {
|
|
7593
7593
|
window.cancelAnimationFrame(n), window.cancelAnimationFrame(r);
|
|
@@ -7611,9 +7611,9 @@ function En(e) {
|
|
|
7611
7611
|
const t = document.activeElement;
|
|
7612
7612
|
return e.some((n) => n === t ? !0 : (n.focus(), document.activeElement !== t));
|
|
7613
7613
|
}
|
|
7614
|
-
var hf = Xa,
|
|
7615
|
-
const gf = hf,
|
|
7616
|
-
|
|
7614
|
+
var hf = Xa, cs = Ja, ds = ts, us = ns, fs = rs, ps = as, ms = gr;
|
|
7615
|
+
const gf = hf, hs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7616
|
+
cs,
|
|
7617
7617
|
{
|
|
7618
7618
|
ref: n,
|
|
7619
7619
|
className: M(
|
|
@@ -7623,8 +7623,8 @@ const gf = hf, ms = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
7623
7623
|
...t
|
|
7624
7624
|
}
|
|
7625
7625
|
));
|
|
7626
|
-
|
|
7627
|
-
const vf =
|
|
7626
|
+
hs.displayName = cs.displayName;
|
|
7627
|
+
const vf = wt(
|
|
7628
7628
|
"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",
|
|
7629
7629
|
{
|
|
7630
7630
|
variants: {
|
|
@@ -7642,10 +7642,10 @@ const vf = yt(
|
|
|
7642
7642
|
variant: "default"
|
|
7643
7643
|
}
|
|
7644
7644
|
}
|
|
7645
|
-
),
|
|
7646
|
-
|
|
7645
|
+
), gs = l.forwardRef(({ className: e, variant: t, ...n }, r) => /* @__PURE__ */ i(ds, { ref: r, className: M(vf({ variant: t }), e), ...n }));
|
|
7646
|
+
gs.displayName = ds.displayName;
|
|
7647
7647
|
const bf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7648
|
-
|
|
7648
|
+
ps,
|
|
7649
7649
|
{
|
|
7650
7650
|
ref: n,
|
|
7651
7651
|
className: M(
|
|
@@ -7655,9 +7655,9 @@ const bf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
7655
7655
|
...t
|
|
7656
7656
|
}
|
|
7657
7657
|
));
|
|
7658
|
-
bf.displayName =
|
|
7659
|
-
const
|
|
7660
|
-
|
|
7658
|
+
bf.displayName = ps.displayName;
|
|
7659
|
+
const vs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7660
|
+
ms,
|
|
7661
7661
|
{
|
|
7662
7662
|
ref: n,
|
|
7663
7663
|
className: M(
|
|
@@ -7669,20 +7669,20 @@ const gs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
7669
7669
|
children: /* @__PURE__ */ i(Un, { className: "h-4 w-4" })
|
|
7670
7670
|
}
|
|
7671
7671
|
));
|
|
7672
|
-
|
|
7673
|
-
const
|
|
7674
|
-
vs.displayName = ds.displayName;
|
|
7675
|
-
const bs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(us, { ref: n, className: M("text-sm opacity-90", e), ...t }));
|
|
7672
|
+
vs.displayName = ms.displayName;
|
|
7673
|
+
const bs = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(us, { ref: n, className: M("text-sm font-semibold [&+div]:text-xs", e), ...t }));
|
|
7676
7674
|
bs.displayName = us.displayName;
|
|
7675
|
+
const ys = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(fs, { ref: n, className: M("text-sm opacity-90", e), ...t }));
|
|
7676
|
+
ys.displayName = fs.displayName;
|
|
7677
7677
|
const yf = 1, wf = 1e6;
|
|
7678
7678
|
let Sn = 0;
|
|
7679
7679
|
function xf() {
|
|
7680
7680
|
return Sn = (Sn + 1) % Number.MAX_SAFE_INTEGER, Sn.toString();
|
|
7681
7681
|
}
|
|
7682
|
-
const Tn = /* @__PURE__ */ new Map(),
|
|
7682
|
+
const Tn = /* @__PURE__ */ new Map(), eo = (e) => {
|
|
7683
7683
|
if (Tn.has(e)) return;
|
|
7684
7684
|
const t = setTimeout(() => {
|
|
7685
|
-
Tn.delete(e),
|
|
7685
|
+
Tn.delete(e), gt({ type: "REMOVE_TOAST", toastId: e });
|
|
7686
7686
|
}, wf);
|
|
7687
7687
|
Tn.set(e, t);
|
|
7688
7688
|
}, Nf = (e, t) => {
|
|
@@ -7701,7 +7701,7 @@ const Tn = /* @__PURE__ */ new Map(), Jr = (e) => {
|
|
|
7701
7701
|
};
|
|
7702
7702
|
case "DISMISS_TOAST": {
|
|
7703
7703
|
const { toastId: n } = t;
|
|
7704
|
-
return n ?
|
|
7704
|
+
return n ? eo(n) : e.toasts.forEach((r) => eo(r.id)), {
|
|
7705
7705
|
...e,
|
|
7706
7706
|
toasts: e.toasts.map(
|
|
7707
7707
|
(r) => r.id === n || n === void 0 ? { ...r, open: !1 } : r
|
|
@@ -7716,15 +7716,15 @@ const Tn = /* @__PURE__ */ new Map(), Jr = (e) => {
|
|
|
7716
7716
|
}
|
|
7717
7717
|
}, Lt = [];
|
|
7718
7718
|
let $t = { toasts: [] };
|
|
7719
|
-
function
|
|
7719
|
+
function gt(e) {
|
|
7720
7720
|
$t = Nf($t, e), Lt.forEach((t) => t($t));
|
|
7721
7721
|
}
|
|
7722
7722
|
function Cf({ ...e }) {
|
|
7723
|
-
const t = xf(), n = (o) =>
|
|
7723
|
+
const t = xf(), n = (o) => gt({
|
|
7724
7724
|
type: "UPDATE_TOAST",
|
|
7725
7725
|
toast: { ...o, id: t }
|
|
7726
|
-
}), r = () =>
|
|
7727
|
-
return
|
|
7726
|
+
}), r = () => gt({ type: "DISMISS_TOAST", toastId: t });
|
|
7727
|
+
return gt({
|
|
7728
7728
|
type: "ADD_TOAST",
|
|
7729
7729
|
toast: {
|
|
7730
7730
|
...e,
|
|
@@ -7736,7 +7736,7 @@ function Cf({ ...e }) {
|
|
|
7736
7736
|
}
|
|
7737
7737
|
}), { id: t, dismiss: r, update: n };
|
|
7738
7738
|
}
|
|
7739
|
-
function
|
|
7739
|
+
function ws() {
|
|
7740
7740
|
const [e, t] = l.useState($t);
|
|
7741
7741
|
return l.useEffect(() => (Lt.push(t), () => {
|
|
7742
7742
|
const n = Lt.indexOf(t);
|
|
@@ -7744,29 +7744,29 @@ function ys() {
|
|
|
7744
7744
|
}), []), {
|
|
7745
7745
|
...e,
|
|
7746
7746
|
toast: Cf,
|
|
7747
|
-
dismiss: (n) =>
|
|
7747
|
+
dismiss: (n) => gt({ type: "DISMISS_TOAST", toastId: n })
|
|
7748
7748
|
};
|
|
7749
7749
|
}
|
|
7750
7750
|
function Ef() {
|
|
7751
|
-
const { toasts: e } =
|
|
7751
|
+
const { toasts: e } = ws();
|
|
7752
7752
|
return /* @__PURE__ */ x(gf, { children: [
|
|
7753
7753
|
e.map(function({ id: t, title: n, description: r, action: o, ...a }) {
|
|
7754
|
-
return /* @__PURE__ */ x(
|
|
7754
|
+
return /* @__PURE__ */ x(gs, { ...a, children: [
|
|
7755
7755
|
/* @__PURE__ */ x("div", { className: "grid gap-1", children: [
|
|
7756
|
-
n && /* @__PURE__ */ i(
|
|
7757
|
-
r && /* @__PURE__ */ i(
|
|
7756
|
+
n && /* @__PURE__ */ i(bs, { children: n }),
|
|
7757
|
+
r && /* @__PURE__ */ i(ys, { children: r })
|
|
7758
7758
|
] }),
|
|
7759
7759
|
o,
|
|
7760
|
-
/* @__PURE__ */ i(
|
|
7760
|
+
/* @__PURE__ */ i(vs, {})
|
|
7761
7761
|
] }, t);
|
|
7762
7762
|
}),
|
|
7763
|
-
/* @__PURE__ */ i(
|
|
7763
|
+
/* @__PURE__ */ i(hs, {})
|
|
7764
7764
|
] });
|
|
7765
7765
|
}
|
|
7766
|
-
const
|
|
7766
|
+
const xs = Ht(
|
|
7767
7767
|
({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: r }, o) => {
|
|
7768
|
-
const [a, s] = ye(""), c =
|
|
7769
|
-
|
|
7768
|
+
const [a, s] = ye(""), c = Ps(), { toast: u } = ws();
|
|
7769
|
+
qe(() => {
|
|
7770
7770
|
const v = new URLSearchParams(c.search).get("q");
|
|
7771
7771
|
v && s(v);
|
|
7772
7772
|
}, [c.search]);
|
|
@@ -7784,7 +7784,7 @@ const ws = Ht(
|
|
|
7784
7784
|
t(m);
|
|
7785
7785
|
};
|
|
7786
7786
|
return /* @__PURE__ */ x("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: [
|
|
7787
|
-
/* @__PURE__ */ i(
|
|
7787
|
+
/* @__PURE__ */ i(Va, { className: "lg:hidden", children: /* @__PURE__ */ i(si, { className: "h-6 w-6" }) }),
|
|
7788
7788
|
/* @__PURE__ */ i("div", { className: "flex flex-1 items-center gap-4", children: /* @__PURE__ */ i("div", { className: "relative w-full max-w-sm", children: /* @__PURE__ */ x("div", { children: [
|
|
7789
7789
|
/* @__PURE__ */ i(
|
|
7790
7790
|
"button",
|
|
@@ -7793,7 +7793,7 @@ const ws = Ht(
|
|
|
7793
7793
|
className: "absolute left-2 top-1/2 -translate-y-1/2",
|
|
7794
7794
|
onClick: d,
|
|
7795
7795
|
"aria-label": "Search",
|
|
7796
|
-
children: /* @__PURE__ */ i(
|
|
7796
|
+
children: /* @__PURE__ */ i(bi, { className: "h-4 w-4 text-muted-foreground" })
|
|
7797
7797
|
}
|
|
7798
7798
|
),
|
|
7799
7799
|
/* @__PURE__ */ i(
|
|
@@ -7813,14 +7813,14 @@ const ws = Ht(
|
|
|
7813
7813
|
] }) }) }),
|
|
7814
7814
|
n || /* @__PURE__ */ i(J, {}),
|
|
7815
7815
|
e && /* @__PURE__ */ i("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ x(ie, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
|
|
7816
|
-
/* @__PURE__ */ i(
|
|
7816
|
+
/* @__PURE__ */ i(oi, { className: "h-4 w-4 text-sidebar-foreground" }),
|
|
7817
7817
|
/* @__PURE__ */ i("span", { className: "sr-only", children: "Sign out" })
|
|
7818
7818
|
] }) })
|
|
7819
7819
|
] });
|
|
7820
7820
|
}
|
|
7821
7821
|
);
|
|
7822
|
-
|
|
7823
|
-
const Sf =
|
|
7822
|
+
xs.displayName = "Topbar";
|
|
7823
|
+
const Sf = wt(
|
|
7824
7824
|
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
7825
7825
|
{
|
|
7826
7826
|
variants: {
|
|
@@ -7852,13 +7852,13 @@ const Sf = yt(
|
|
|
7852
7852
|
size: "default"
|
|
7853
7853
|
}
|
|
7854
7854
|
}
|
|
7855
|
-
),
|
|
7855
|
+
), Ee = l.forwardRef(
|
|
7856
7856
|
({ className: e, variant: t, size: n, icon: r, children: o, ...a }, s) => /* @__PURE__ */ x("div", { ref: s, className: M(Sf({ variant: t, size: n }), e), ...a, children: [
|
|
7857
7857
|
r && /* @__PURE__ */ i("span", { className: "mr-1", children: r }),
|
|
7858
7858
|
o
|
|
7859
7859
|
] })
|
|
7860
7860
|
);
|
|
7861
|
-
|
|
7861
|
+
Ee.displayName = "Badge";
|
|
7862
7862
|
const jn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7863
7863
|
"div",
|
|
7864
7864
|
{
|
|
@@ -7911,7 +7911,7 @@ const Af = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
7911
7911
|
Af.displayName = "CardFooter";
|
|
7912
7912
|
const kf = ({ countryCode: e, className: t = "" }) => {
|
|
7913
7913
|
const [n, r] = ye(null), [o, a] = ye(!1);
|
|
7914
|
-
return
|
|
7914
|
+
return qe(() => {
|
|
7915
7915
|
if (!e) return;
|
|
7916
7916
|
const c = `https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;
|
|
7917
7917
|
fetch(c, { method: "HEAD" }).then((u) => {
|
|
@@ -7930,9 +7930,9 @@ const kf = ({ countryCode: e, className: t = "" }) => {
|
|
|
7930
7930
|
);
|
|
7931
7931
|
};
|
|
7932
7932
|
function Mf({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7933
|
-
const { appID: r } =
|
|
7934
|
-
return /* @__PURE__ */ x(
|
|
7935
|
-
/* @__PURE__ */ i(
|
|
7933
|
+
const { appID: r } = As(), o = e.filter((a) => a.showInNav);
|
|
7934
|
+
return /* @__PURE__ */ x(ja, { className: "border-r border-sidebar-border", children: [
|
|
7935
|
+
/* @__PURE__ */ i(Ha, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
|
|
7936
7936
|
/* @__PURE__ */ i("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ i(
|
|
7937
7937
|
"img",
|
|
7938
7938
|
{
|
|
@@ -7943,14 +7943,14 @@ function Mf({ routes: e, footer: t, dashboardTitle: n }) {
|
|
|
7943
7943
|
) }),
|
|
7944
7944
|
/* @__PURE__ */ i("span", { className: "font-semibold text-lg", children: n })
|
|
7945
7945
|
] }) }),
|
|
7946
|
-
/* @__PURE__ */ i(
|
|
7946
|
+
/* @__PURE__ */ i(Ga, { className: "py-4 bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ i(Ka, { children: o.map((a) => {
|
|
7947
7947
|
const s = a.icon, c = `/${a.path.replace(":appID", r)}`;
|
|
7948
|
-
return /* @__PURE__ */ i(
|
|
7948
|
+
return /* @__PURE__ */ i(Ya, { children: /* @__PURE__ */ i(qa, { asChild: !0, children: /* @__PURE__ */ x(ks, { to: c, className: "transition-colors hover:bg-muted px-6", children: [
|
|
7949
7949
|
s && /* @__PURE__ */ i(s, { className: "h-4 w-4" }),
|
|
7950
7950
|
/* @__PURE__ */ i("span", { children: a.label })
|
|
7951
7951
|
] }) }) }, a.key);
|
|
7952
7952
|
}) }) }),
|
|
7953
|
-
/* @__PURE__ */ i(
|
|
7953
|
+
/* @__PURE__ */ i(Ua, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: t })
|
|
7954
7954
|
] });
|
|
7955
7955
|
}
|
|
7956
7956
|
const Of = Ht(({
|
|
@@ -7962,7 +7962,7 @@ const Of = Ht(({
|
|
|
7962
7962
|
dashboardTitle: a,
|
|
7963
7963
|
onSignOut: s,
|
|
7964
7964
|
searchPlaceholder: c
|
|
7965
|
-
}, u) => /* @__PURE__ */ i(J, { children: /* @__PURE__ */ i(
|
|
7965
|
+
}, u) => /* @__PURE__ */ i(J, { children: /* @__PURE__ */ i(Ba, { children: /* @__PURE__ */ x("div", { className: "flex grow", children: [
|
|
7966
7966
|
/* @__PURE__ */ i(
|
|
7967
7967
|
Mf,
|
|
7968
7968
|
{
|
|
@@ -7973,7 +7973,7 @@ const Of = Ht(({
|
|
|
7973
7973
|
),
|
|
7974
7974
|
/* @__PURE__ */ x("div", { className: "flex flex-1 flex-col overflow-hidden", children: [
|
|
7975
7975
|
/* @__PURE__ */ i(
|
|
7976
|
-
|
|
7976
|
+
xs,
|
|
7977
7977
|
{
|
|
7978
7978
|
ref: u,
|
|
7979
7979
|
onSignOut: s,
|
|
@@ -8050,30 +8050,30 @@ function If({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
8050
8050
|
"Your browser does not support the video tag."
|
|
8051
8051
|
] }),
|
|
8052
8052
|
/* @__PURE__ */ x("div", { className: "absolute top-2 right-12 flex gap-1", children: [
|
|
8053
|
-
/* @__PURE__ */ i(
|
|
8054
|
-
/* @__PURE__ */ i(
|
|
8053
|
+
/* @__PURE__ */ i(pt, { children: /* @__PURE__ */ x(mt, { children: [
|
|
8054
|
+
/* @__PURE__ */ i(ht, { asChild: !0, children: /* @__PURE__ */ i(
|
|
8055
8055
|
ie,
|
|
8056
8056
|
{
|
|
8057
8057
|
variant: "secondary",
|
|
8058
8058
|
size: "icon",
|
|
8059
8059
|
onClick: y,
|
|
8060
|
-
children: u ? /* @__PURE__ */ i(
|
|
8060
|
+
children: u ? /* @__PURE__ */ i(io, { className: "h-4 w-4" }) : /* @__PURE__ */ i(Xs, { className: "h-4 w-4" })
|
|
8061
8061
|
}
|
|
8062
8062
|
) }),
|
|
8063
|
-
/* @__PURE__ */ i(
|
|
8063
|
+
/* @__PURE__ */ i(at, { children: /* @__PURE__ */ i("p", { children: "Copy video link" }) })
|
|
8064
8064
|
] }) }),
|
|
8065
|
-
/* @__PURE__ */ i(
|
|
8066
|
-
/* @__PURE__ */ i(
|
|
8065
|
+
/* @__PURE__ */ i(pt, { children: /* @__PURE__ */ x(mt, { children: [
|
|
8066
|
+
/* @__PURE__ */ i(ht, { asChild: !0, children: /* @__PURE__ */ i(
|
|
8067
8067
|
ie,
|
|
8068
8068
|
{
|
|
8069
8069
|
variant: "secondary",
|
|
8070
8070
|
size: "icon",
|
|
8071
8071
|
onClick: g,
|
|
8072
8072
|
disabled: p,
|
|
8073
|
-
children: /* @__PURE__ */ i(
|
|
8073
|
+
children: /* @__PURE__ */ i(Js, { className: "h-4 w-4" })
|
|
8074
8074
|
}
|
|
8075
8075
|
) }),
|
|
8076
|
-
/* @__PURE__ */ i(
|
|
8076
|
+
/* @__PURE__ */ i(at, { children: /* @__PURE__ */ i("p", { children: "Download video" }) })
|
|
8077
8077
|
] }) })
|
|
8078
8078
|
] })
|
|
8079
8079
|
] }) }) }),
|
|
@@ -8089,18 +8089,18 @@ function If({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
8089
8089
|
height: h
|
|
8090
8090
|
}
|
|
8091
8091
|
),
|
|
8092
|
-
s && /* @__PURE__ */ i(
|
|
8093
|
-
/* @__PURE__ */ i(
|
|
8092
|
+
s && /* @__PURE__ */ i(pt, { children: /* @__PURE__ */ x(mt, { children: [
|
|
8093
|
+
/* @__PURE__ */ i(ht, { asChild: !0, children: /* @__PURE__ */ i(
|
|
8094
8094
|
ie,
|
|
8095
8095
|
{
|
|
8096
8096
|
variant: "secondary",
|
|
8097
8097
|
size: "icon",
|
|
8098
8098
|
className: "absolute top-2 right-2",
|
|
8099
8099
|
onClick: f,
|
|
8100
|
-
children: /* @__PURE__ */ i(
|
|
8100
|
+
children: /* @__PURE__ */ i(fi, { className: "h-4 w-4" })
|
|
8101
8101
|
}
|
|
8102
8102
|
) }),
|
|
8103
|
-
/* @__PURE__ */ i(
|
|
8103
|
+
/* @__PURE__ */ i(at, { children: /* @__PURE__ */ i("p", { children: "Play video" }) })
|
|
8104
8104
|
] }) })
|
|
8105
8105
|
] })
|
|
8106
8106
|
] });
|
|
@@ -8206,9 +8206,9 @@ function Zf({
|
|
|
8206
8206
|
syncToShopifyAction: c,
|
|
8207
8207
|
isSyncToShopifyActionLoading: u = !1
|
|
8208
8208
|
}) {
|
|
8209
|
-
var O, L, q, Z, oe, te, ne, se, ve, ue;
|
|
8209
|
+
var O, L, q, Z, oe, te, ne, se, ve, ue, Oe, Be;
|
|
8210
8210
|
const [d, p] = ye(1), [m, v] = ye(null), [g, y] = ye(0), [f, h] = ye(!1), b = ((O = e == null ? void 0 : e.Distribution) == null ? void 0 : O.Cost) || 0, w = ((L = e == null ? void 0 : e.Distribution) == null ? void 0 : L.RegularPrice) || 0, N = ((q = e == null ? void 0 : e.Distribution) == null ? void 0 : q.Price) || 0, [C, S] = ye(null), [E, T] = ye(!1);
|
|
8211
|
-
|
|
8211
|
+
qe(() => {
|
|
8212
8212
|
const $ = async () => {
|
|
8213
8213
|
if (e != null && e.ManufacturerId) {
|
|
8214
8214
|
T(!0);
|
|
@@ -8217,8 +8217,8 @@ function Zf({
|
|
|
8217
8217
|
`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
8218
8218
|
);
|
|
8219
8219
|
if (K.ok) {
|
|
8220
|
-
const
|
|
8221
|
-
S(URL.createObjectURL(
|
|
8220
|
+
const fe = await K.blob();
|
|
8221
|
+
S(URL.createObjectURL(fe));
|
|
8222
8222
|
}
|
|
8223
8223
|
} catch (K) {
|
|
8224
8224
|
console.error("Failed to load logo:", K);
|
|
@@ -8228,17 +8228,17 @@ function Zf({
|
|
|
8228
8228
|
}
|
|
8229
8229
|
};
|
|
8230
8230
|
e != null && e.ManufacturerId && $();
|
|
8231
|
-
}, [e == null ? void 0 : e.ManufacturerId]),
|
|
8231
|
+
}, [e == null ? void 0 : e.ManufacturerId]), qe(() => {
|
|
8232
8232
|
var $;
|
|
8233
8233
|
if (e && r) {
|
|
8234
|
-
const K = ($ = e.Opportunities) == null ? void 0 : $.find((
|
|
8234
|
+
const K = ($ = e.Opportunities) == null ? void 0 : $.find((fe) => fe.BidNumber == r);
|
|
8235
8235
|
K && v(K);
|
|
8236
8236
|
}
|
|
8237
|
-
}, [e, r]),
|
|
8237
|
+
}, [e, r]), qe(() => {
|
|
8238
8238
|
if (!e) return;
|
|
8239
8239
|
const $ = m != null && m.Price ? m.Price : N;
|
|
8240
8240
|
y(w > 0 ? Math.round((w - $) / w * 100) : 0);
|
|
8241
|
-
}, [e, m, N, w]),
|
|
8241
|
+
}, [e, m, N, w]), qe(() => {
|
|
8242
8242
|
s || p(1);
|
|
8243
8243
|
}, [s]);
|
|
8244
8244
|
const F = ($) => {
|
|
@@ -8345,59 +8345,70 @@ function Zf({
|
|
|
8345
8345
|
/* @__PURE__ */ x("div", { className: "flex-1", children: [
|
|
8346
8346
|
/* @__PURE__ */ x("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
8347
8347
|
e.State && /* @__PURE__ */ x(
|
|
8348
|
-
|
|
8348
|
+
Ee,
|
|
8349
8349
|
{
|
|
8350
8350
|
variant: "outline",
|
|
8351
8351
|
className: `rounded-full px-3 ${e.State === "Active" ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
8352
8352
|
children: [
|
|
8353
|
-
/* @__PURE__ */ i(
|
|
8353
|
+
/* @__PURE__ */ i(io, { size: "12", className: "mr-1.5" }),
|
|
8354
8354
|
" ",
|
|
8355
8355
|
e.State
|
|
8356
8356
|
]
|
|
8357
8357
|
}
|
|
8358
8358
|
),
|
|
8359
8359
|
/* @__PURE__ */ x(
|
|
8360
|
-
|
|
8360
|
+
Ee,
|
|
8361
8361
|
{
|
|
8362
8362
|
variant: "outline",
|
|
8363
8363
|
className: `rounded-full px-3 ${e.SerialNumber ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-yellow-50 text-yellow-700 hover:bg-yellow-50"}`,
|
|
8364
8364
|
children: [
|
|
8365
|
-
/* @__PURE__ */ i(
|
|
8365
|
+
/* @__PURE__ */ i(mi, { size: "12", className: "mr-1.5" }),
|
|
8366
8366
|
" ",
|
|
8367
8367
|
e.SerialNumber ? "Serialized" : "Unserialized"
|
|
8368
8368
|
]
|
|
8369
8369
|
}
|
|
8370
8370
|
),
|
|
8371
|
-
e.TransparencyCode && /* @__PURE__ */ x(
|
|
8372
|
-
/* @__PURE__ */ i(
|
|
8371
|
+
e.TransparencyCode && /* @__PURE__ */ x(Ee, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
|
|
8372
|
+
/* @__PURE__ */ i(qs, { size: "12", className: "mr-1.5" }),
|
|
8373
8373
|
" Transparency Code"
|
|
8374
8374
|
] }),
|
|
8375
|
-
/* @__PURE__ */ x(
|
|
8376
|
-
|
|
8375
|
+
e.AvailableToBuy === void 0 ? /* @__PURE__ */ x(
|
|
8376
|
+
Ee,
|
|
8377
|
+
{
|
|
8378
|
+
variant: "outline",
|
|
8379
|
+
className: `rounded-full px-3 ${(te = e.ManufacturerCategory) != null && te.QualificationRequired ? "bg-blue-50 text-blue-700 hover:bg-blue-50" : "bg-neutral-50 text-neutral-700 hover:bg-neutral-50"}`,
|
|
8380
|
+
children: [
|
|
8381
|
+
/* @__PURE__ */ i(xr, { size: "12", className: "mr-1.5" }),
|
|
8382
|
+
" ",
|
|
8383
|
+
(ne = e.ManufacturerCategory) != null && ne.QualificationRequired ? "Qualification Enforced" : "No Qualification Needed"
|
|
8384
|
+
]
|
|
8385
|
+
}
|
|
8386
|
+
) : /* @__PURE__ */ x(
|
|
8387
|
+
Ee,
|
|
8377
8388
|
{
|
|
8378
8389
|
variant: "outline",
|
|
8379
8390
|
className: `rounded-full px-3 ${e.AvailableToBuy ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
8380
8391
|
children: [
|
|
8381
|
-
/* @__PURE__ */ i(
|
|
8392
|
+
/* @__PURE__ */ i(xr, { size: "12", className: "mr-1.5" }),
|
|
8382
8393
|
" ",
|
|
8383
|
-
(
|
|
8394
|
+
(se = e.ManufacturerCategory) != null && se.QualificationRequired ? e.AvailableToBuy ? "Qualified" : "Not Qualified" : "No Qualification Required"
|
|
8384
8395
|
]
|
|
8385
8396
|
}
|
|
8386
8397
|
),
|
|
8387
8398
|
e.ManufacturerId && /* @__PURE__ */ x(
|
|
8388
|
-
|
|
8399
|
+
Ee,
|
|
8389
8400
|
{
|
|
8390
8401
|
variant: "outline",
|
|
8391
8402
|
className: `rounded-full px-3 ${e.AutoUpdate ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
8392
8403
|
children: [
|
|
8393
|
-
/* @__PURE__ */ i(
|
|
8404
|
+
/* @__PURE__ */ i(gi, { size: "12", className: "mr-1.5" }),
|
|
8394
8405
|
" ",
|
|
8395
8406
|
e.AutoUpdate ? `Automatic Reorder (${e.MasterCarton})` : "Manually Reorders"
|
|
8396
8407
|
]
|
|
8397
8408
|
}
|
|
8398
8409
|
),
|
|
8399
8410
|
/* @__PURE__ */ x(
|
|
8400
|
-
|
|
8411
|
+
Ee,
|
|
8401
8412
|
{
|
|
8402
8413
|
variant: "outline",
|
|
8403
8414
|
className: `rounded-full px-3 ${e.BodyHTML && e.Title && e.MAP ? "bg-green-50 text-green-700 hover:bg-green-50" : "bg-red-50 text-red-700 hover:bg-red-50"}`,
|
|
@@ -8447,7 +8458,7 @@ function Zf({
|
|
|
8447
8458
|
/* @__PURE__ */ i("div", { className: "flex flex-1", children: B && e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
|
|
8448
8459
|
/* @__PURE__ */ i("div", { className: "flex items-center", children: "You have " + D.length + (D.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
8449
8460
|
/* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: D.map(($, K) => {
|
|
8450
|
-
var
|
|
8461
|
+
var fe;
|
|
8451
8462
|
return /* @__PURE__ */ x(
|
|
8452
8463
|
"div",
|
|
8453
8464
|
{
|
|
@@ -8465,13 +8476,13 @@ function Zf({
|
|
|
8465
8476
|
/* @__PURE__ */ x("span", { className: "text-xs text-neutral-900", children: [
|
|
8466
8477
|
$.BidNumber,
|
|
8467
8478
|
" ",
|
|
8468
|
-
!F($) && /* @__PURE__ */ i(
|
|
8479
|
+
!F($) && /* @__PURE__ */ i(Ee, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
8469
8480
|
] })
|
|
8470
8481
|
] }) }),
|
|
8471
8482
|
/* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
|
|
8472
8483
|
/* @__PURE__ */ x("span", { className: "font-semibold", children: [
|
|
8473
8484
|
"$",
|
|
8474
|
-
(
|
|
8485
|
+
(fe = $.Price) == null ? void 0 : fe.toFixed(2)
|
|
8475
8486
|
] }),
|
|
8476
8487
|
$.Rebate && $.Rebate > 0 && /* @__PURE__ */ x("span", { className: "text-xs text-green-600", children: [
|
|
8477
8488
|
"Rebate: $",
|
|
@@ -8490,17 +8501,17 @@ function Zf({
|
|
|
8490
8501
|
] }) }),
|
|
8491
8502
|
/* @__PURE__ */ x("div", { className: "flex flex-col items-center", children: [
|
|
8492
8503
|
o && /* @__PURE__ */ x(ie, { variant: "secondary", onClick: o, children: [
|
|
8493
|
-
/* @__PURE__ */ i(
|
|
8504
|
+
/* @__PURE__ */ i(ti, { className: "mr-2" }),
|
|
8494
8505
|
"View Product"
|
|
8495
8506
|
] }),
|
|
8496
|
-
((
|
|
8497
|
-
/* @__PURE__ */ i(
|
|
8507
|
+
((ve = e.Distribution) == null ? void 0 : ve.Inventory) && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ x(Jt, { open: f, onOpenChange: h, children: [
|
|
8508
|
+
/* @__PURE__ */ i(ea, { asChild: !0, children: /* @__PURE__ */ x(
|
|
8498
8509
|
ie,
|
|
8499
8510
|
{
|
|
8500
8511
|
variant: "ghost",
|
|
8501
8512
|
className: `flex items-center text-sm ${z > 0 ? "text-green-700" : "text-red-700"}`,
|
|
8502
8513
|
children: [
|
|
8503
|
-
/* @__PURE__ */ i(
|
|
8514
|
+
/* @__PURE__ */ i(Cr, { size: "16", className: "mr-2" }),
|
|
8504
8515
|
z > 0 ? /* @__PURE__ */ x(J, { children: [
|
|
8505
8516
|
z,
|
|
8506
8517
|
" in stock"
|
|
@@ -8510,7 +8521,7 @@ function Zf({
|
|
|
8510
8521
|
) }),
|
|
8511
8522
|
/* @__PURE__ */ x(en, { className: "max-w-4xl", children: [
|
|
8512
8523
|
/* @__PURE__ */ i(er, { children: /* @__PURE__ */ x(tr, { className: "flex items-center", children: [
|
|
8513
|
-
/* @__PURE__ */ i(
|
|
8524
|
+
/* @__PURE__ */ i(Cr, { className: "mr-2", size: 18 }),
|
|
8514
8525
|
"Inventory Information"
|
|
8515
8526
|
] }) }),
|
|
8516
8527
|
/* @__PURE__ */ i(_f, { inventory: e.Distribution.Inventory })
|
|
@@ -8527,7 +8538,7 @@ function Zf({
|
|
|
8527
8538
|
/* @__PURE__ */ x("div", { className: "flex items-center flex-wrap", children: [
|
|
8528
8539
|
/* @__PURE__ */ x("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
8529
8540
|
/* @__PURE__ */ i("span", { children: "$" }),
|
|
8530
|
-
m ? (
|
|
8541
|
+
m ? (Oe = (ue = e.Opportunities) == null ? void 0 : ue.find(($) => $.BidNumber == m.BidNumber)) == null ? void 0 : Oe.Price : N.toFixed(2),
|
|
8531
8542
|
/* @__PURE__ */ i("span", { children: " CAD" })
|
|
8532
8543
|
] }),
|
|
8533
8544
|
g > 0 && /* @__PURE__ */ x("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
@@ -8535,12 +8546,12 @@ function Zf({
|
|
|
8535
8546
|
w.toFixed(2)
|
|
8536
8547
|
] })
|
|
8537
8548
|
] }),
|
|
8538
|
-
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(
|
|
8549
|
+
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(Ee, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
8539
8550
|
/* @__PURE__ */ x("span", { children: [
|
|
8540
8551
|
g,
|
|
8541
8552
|
"% OFF"
|
|
8542
8553
|
] }),
|
|
8543
|
-
((
|
|
8554
|
+
((Be = e.InstantRebate) == null ? void 0 : Be.EndDate) && /* @__PURE__ */ x(J, { children: [
|
|
8544
8555
|
/* @__PURE__ */ i("span", { className: "mx-1.5", children: "●" }),
|
|
8545
8556
|
" Ends ",
|
|
8546
8557
|
e.InstantRebate.EndDate.split("T")[0]
|
|
@@ -8598,7 +8609,7 @@ function Zf({
|
|
|
8598
8609
|
/* @__PURE__ */ i(wr, { className: "h-4 w-4 animate-spin" }),
|
|
8599
8610
|
"Adding..."
|
|
8600
8611
|
] }) : /* @__PURE__ */ x(J, { children: [
|
|
8601
|
-
/* @__PURE__ */ i(
|
|
8612
|
+
/* @__PURE__ */ i(Nr, { className: "mr-2" }),
|
|
8602
8613
|
"Add to Cart"
|
|
8603
8614
|
] })
|
|
8604
8615
|
}
|
|
@@ -8613,7 +8624,7 @@ function Zf({
|
|
|
8613
8624
|
/* @__PURE__ */ i(wr, { className: "h-4 w-4 animate-spin" }),
|
|
8614
8625
|
"Syncing..."
|
|
8615
8626
|
] }) : /* @__PURE__ */ x(J, { children: [
|
|
8616
|
-
/* @__PURE__ */ i(
|
|
8627
|
+
/* @__PURE__ */ i(Nr, { className: "mr-2" }),
|
|
8617
8628
|
"Sync to Shopify"
|
|
8618
8629
|
] })
|
|
8619
8630
|
}
|
|
@@ -8624,7 +8635,7 @@ function Zf({
|
|
|
8624
8635
|
}
|
|
8625
8636
|
export {
|
|
8626
8637
|
qf as AvatarFooter,
|
|
8627
|
-
|
|
8638
|
+
Ee as Badge,
|
|
8628
8639
|
ie as Button,
|
|
8629
8640
|
jn as Card,
|
|
8630
8641
|
Vn as CardContent,
|
|
@@ -8634,77 +8645,77 @@ export {
|
|
|
8634
8645
|
Rf as CardTitle,
|
|
8635
8646
|
kf as CountryFlag,
|
|
8636
8647
|
Jt as Dialog,
|
|
8637
|
-
|
|
8648
|
+
Wr as DialogClose,
|
|
8638
8649
|
en as DialogContent,
|
|
8639
|
-
|
|
8640
|
-
|
|
8650
|
+
ra as DialogDescription,
|
|
8651
|
+
na as DialogFooter,
|
|
8641
8652
|
er as DialogHeader,
|
|
8642
|
-
|
|
8653
|
+
ta as DialogOverlay,
|
|
8643
8654
|
Fc as DialogPortal,
|
|
8644
8655
|
tr as DialogTitle,
|
|
8645
|
-
|
|
8656
|
+
ea as DialogTrigger,
|
|
8646
8657
|
pr as Input,
|
|
8647
8658
|
Wf as InputOTP,
|
|
8648
8659
|
Bf as InputOTPGroup,
|
|
8649
8660
|
Vf as InputOTPSeparator,
|
|
8650
8661
|
jf as InputOTPSlot,
|
|
8651
|
-
|
|
8662
|
+
Qf as Label,
|
|
8652
8663
|
Of as Layout,
|
|
8653
8664
|
Mf as Navbar,
|
|
8654
8665
|
Zf as ProductCard,
|
|
8655
8666
|
If as ProductImage,
|
|
8656
|
-
|
|
8667
|
+
La as Separator,
|
|
8657
8668
|
yu as Sheet,
|
|
8658
8669
|
Yf as SheetClose,
|
|
8659
|
-
|
|
8670
|
+
Fa as SheetContent,
|
|
8660
8671
|
Su as SheetDescription,
|
|
8661
8672
|
Cu as SheetFooter,
|
|
8662
8673
|
Nu as SheetHeader,
|
|
8663
|
-
|
|
8674
|
+
$a as SheetOverlay,
|
|
8664
8675
|
wu as SheetPortal,
|
|
8665
8676
|
Eu as SheetTitle,
|
|
8666
8677
|
Kf as SheetTrigger,
|
|
8667
|
-
|
|
8668
|
-
|
|
8669
|
-
|
|
8678
|
+
ja as Sidebar,
|
|
8679
|
+
Ga as SidebarContent,
|
|
8680
|
+
Ua as SidebarFooter,
|
|
8670
8681
|
zu as SidebarGroup,
|
|
8671
8682
|
Bu as SidebarGroupAction,
|
|
8672
8683
|
ju as SidebarGroupContent,
|
|
8673
8684
|
Wu as SidebarGroupLabel,
|
|
8674
|
-
|
|
8685
|
+
Ha as SidebarHeader,
|
|
8675
8686
|
$u as SidebarInput,
|
|
8676
8687
|
Lu as SidebarInset,
|
|
8677
|
-
|
|
8688
|
+
Ka as SidebarMenu,
|
|
8678
8689
|
Hu as SidebarMenuAction,
|
|
8679
8690
|
Uu as SidebarMenuBadge,
|
|
8680
|
-
|
|
8681
|
-
|
|
8691
|
+
qa as SidebarMenuButton,
|
|
8692
|
+
Ya as SidebarMenuItem,
|
|
8682
8693
|
Gu as SidebarMenuSkeleton,
|
|
8683
8694
|
Ku as SidebarMenuSub,
|
|
8684
8695
|
qu as SidebarMenuSubButton,
|
|
8685
8696
|
Yu as SidebarMenuSubItem,
|
|
8686
|
-
|
|
8697
|
+
Ba as SidebarProvider,
|
|
8687
8698
|
_u as SidebarRail,
|
|
8688
8699
|
Fu as SidebarSeparator,
|
|
8689
|
-
|
|
8700
|
+
Va as SidebarTrigger,
|
|
8690
8701
|
Y as Skeleton,
|
|
8691
|
-
|
|
8702
|
+
gs as Toast,
|
|
8692
8703
|
bf as ToastAction,
|
|
8693
|
-
|
|
8694
|
-
|
|
8704
|
+
vs as ToastClose,
|
|
8705
|
+
ys as ToastDescription,
|
|
8695
8706
|
gf as ToastProvider,
|
|
8696
|
-
|
|
8697
|
-
|
|
8707
|
+
bs as ToastTitle,
|
|
8708
|
+
hs as ToastViewport,
|
|
8698
8709
|
Ef as Toaster,
|
|
8699
|
-
|
|
8700
|
-
|
|
8701
|
-
|
|
8702
|
-
|
|
8703
|
-
|
|
8710
|
+
mt as Tooltip,
|
|
8711
|
+
at as TooltipContent,
|
|
8712
|
+
pt as TooltipProvider,
|
|
8713
|
+
ht as TooltipTrigger,
|
|
8714
|
+
xs as Topbar,
|
|
8704
8715
|
Sf as badgeVariants,
|
|
8705
|
-
|
|
8716
|
+
Vr as buttonVariants,
|
|
8706
8717
|
Cf as toast,
|
|
8707
8718
|
Pu as useIsMobile,
|
|
8708
8719
|
cn as useSidebar,
|
|
8709
|
-
|
|
8720
|
+
ws as useToast
|
|
8710
8721
|
};
|