randmarcomps 1.72.0 → 1.73.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.d.ts +1 -0
- package/dist/randmarcomps.js +530 -521
- package/dist/randmarcomps.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as i, jsxs as x, Fragment as te } from "react/jsx-runtime";
|
|
2
2
|
import * as l from "react";
|
|
3
|
-
import
|
|
3
|
+
import je, { forwardRef as Jr, createElement as Tn, useState as ve, useLayoutEffect as Es, useEffect as Ue } from "react";
|
|
4
4
|
import * as Vn from "react-dom";
|
|
5
5
|
import Ss from "react-dom";
|
|
6
6
|
import { useLocation as Ts, useParams as Rs, Link as Ps } from "react-router-dom";
|
|
@@ -57,113 +57,113 @@ function Ws({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
|
|
|
57
57
|
}
|
|
58
58
|
var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
59
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 = Bs, render: f, children: h } = n, b = Is(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, N, C, S, E;
|
|
60
|
-
let [T,
|
|
61
|
-
o == null || o(L),
|
|
62
|
-
}, [o]), B = l.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), D = l.useRef(null), R = l.useRef(null), j = l.useRef({ value: I, onChange: U, 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")) }),
|
|
60
|
+
let [T, F] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), I = r ?? T, W = Ls(I), U = l.useCallback((L) => {
|
|
61
|
+
o == null || o(L), F(L);
|
|
62
|
+
}, [o]), B = l.useMemo(() => c ? typeof c == "string" ? new RegExp(c) : c : null, [c]), D = l.useRef(null), R = l.useRef(null), j = l.useRef({ value: I, onChange: U, 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 = D.current) == null ? void 0 : C.selectionStart, (S = D.current) == null ? void 0 : S.selectionEnd, (E = D.current) == null ? void 0 : E.selectionDirection] });
|
|
63
63
|
l.useImperativeHandle(t, () => D.current, []), l.useEffect(() => {
|
|
64
|
-
let L = D.current,
|
|
65
|
-
if (!L || !
|
|
66
|
-
j.current.value !== L.value && j.current.onChange(L.value),
|
|
67
|
-
function
|
|
64
|
+
let L = D.current, z = R.current;
|
|
65
|
+
if (!L || !z) return;
|
|
66
|
+
j.current.value !== L.value && j.current.onChange(L.value), k.current.prev = [L.selectionStart, L.selectionEnd, L.selectionDirection];
|
|
67
|
+
function ae() {
|
|
68
68
|
if (document.activeElement !== L) {
|
|
69
69
|
oe(null), ne(null);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
let
|
|
73
|
-
if (
|
|
74
|
-
let xs =
|
|
72
|
+
let K = L.selectionStart, ue = L.selectionEnd, Ct = L.selectionDirection, ge = L.maxLength, ze = L.value, Te = k.current.prev, ke = -1, Me = -1, We;
|
|
73
|
+
if (ze.length !== 0 && K !== null && ue !== null) {
|
|
74
|
+
let xs = K === ue, Ns = K === ze.length && ze.length < ge;
|
|
75
75
|
if (xs && !Ns) {
|
|
76
|
-
let
|
|
77
|
-
if (
|
|
78
|
-
else if (
|
|
79
|
-
else if (
|
|
76
|
+
let Be = K;
|
|
77
|
+
if (Be === 0) ke = 0, Me = 1, We = "forward";
|
|
78
|
+
else if (Be === ge) ke = Be - 1, Me = Be, We = "backward";
|
|
79
|
+
else if (ge > 1 && ze.length > 1) {
|
|
80
80
|
let un = 0;
|
|
81
|
-
if (
|
|
82
|
-
|
|
83
|
-
let Cs =
|
|
84
|
-
|
|
81
|
+
if (Te[0] !== null && Te[1] !== null) {
|
|
82
|
+
We = Be < Te[1] ? "backward" : "forward";
|
|
83
|
+
let Cs = Te[0] === Te[1] && Te[0] < ge;
|
|
84
|
+
We === "backward" && !Cs && (un = -1);
|
|
85
85
|
}
|
|
86
|
-
|
|
86
|
+
ke = un + Be, Me = un + Be + 1;
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
|
-
|
|
89
|
+
ke !== -1 && Me !== -1 && ke !== Me && D.current.setSelectionRange(ke, Me, We);
|
|
90
90
|
}
|
|
91
|
-
let gr =
|
|
92
|
-
oe(gr), ne(vr),
|
|
91
|
+
let gr = ke !== -1 ? ke : K, vr = Me !== -1 ? Me : ue, ws = We ?? Ct;
|
|
92
|
+
oe(gr), ne(vr), k.current.prev = [gr, vr, ws];
|
|
93
93
|
}
|
|
94
|
-
if (document.addEventListener("selectionchange",
|
|
95
|
-
let
|
|
96
|
-
if (
|
|
94
|
+
if (document.addEventListener("selectionchange", ae, { capture: !0 }), ae(), document.activeElement === L && q(!0), !document.getElementById("input-otp-style")) {
|
|
95
|
+
let K = document.createElement("style");
|
|
96
|
+
if (K.id = "input-otp-style", document.head.appendChild(K), K.sheet) {
|
|
97
97
|
let ue = "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
|
-
dt(
|
|
98
|
+
dt(K.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), dt(K.sheet, `[data-input-otp]:autofill { ${ue} }`), dt(K.sheet, `[data-input-otp]:-webkit-autofill { ${ue} }`), dt(K.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; } }"), dt(K.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
let ce = () => {
|
|
102
|
-
|
|
102
|
+
z && z.style.setProperty("--root-height", `${L.clientHeight}px`);
|
|
103
103
|
};
|
|
104
104
|
ce();
|
|
105
105
|
let de = new ResizeObserver(ce);
|
|
106
106
|
return de.observe(L), () => {
|
|
107
|
-
document.removeEventListener("selectionchange",
|
|
107
|
+
document.removeEventListener("selectionchange", ae, { capture: !0 }), de.disconnect();
|
|
108
108
|
};
|
|
109
109
|
}, []);
|
|
110
110
|
let [H, O] = l.useState(!1), [$, q] = l.useState(!1), [Z, oe] = l.useState(null), [ee, ne] = l.useState(null);
|
|
111
111
|
l.useEffect(() => {
|
|
112
112
|
_s(() => {
|
|
113
|
-
var L,
|
|
113
|
+
var L, z, ae, ce;
|
|
114
114
|
(L = D.current) == null || L.dispatchEvent(new Event("input"));
|
|
115
|
-
let de = (
|
|
116
|
-
de !== null &&
|
|
115
|
+
let de = (z = D.current) == null ? void 0 : z.selectionStart, K = (ae = D.current) == null ? void 0 : ae.selectionEnd, ue = (ce = D.current) == null ? void 0 : ce.selectionDirection;
|
|
116
|
+
de !== null && K !== null && (oe(de), ne(K), k.current.prev = [de, K, ue]);
|
|
117
117
|
});
|
|
118
118
|
}, [I, $]), l.useEffect(() => {
|
|
119
119
|
W !== void 0 && I !== W && W.length < a && I.length === a && (p == null || p(I));
|
|
120
120
|
}, [a, p, W, I]);
|
|
121
|
-
let
|
|
122
|
-
let
|
|
123
|
-
if (
|
|
121
|
+
let se = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: $ }), _ = l.useCallback((L) => {
|
|
122
|
+
let z = L.currentTarget.value.slice(0, a);
|
|
123
|
+
if (z.length > 0 && B && !B.test(z)) {
|
|
124
124
|
L.preventDefault();
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
|
-
typeof W == "string" &&
|
|
128
|
-
}, [a, U, W, B]),
|
|
127
|
+
typeof W == "string" && z.length < W.length && document.dispatchEvent(new Event("selectionchange")), U(z);
|
|
128
|
+
}, [a, U, W, B]), G = l.useCallback(() => {
|
|
129
129
|
var L;
|
|
130
130
|
if (D.current) {
|
|
131
|
-
let
|
|
132
|
-
(L = D.current) == null || L.setSelectionRange(
|
|
131
|
+
let z = Math.min(D.current.value.length, a - 1), ae = D.current.value.length;
|
|
132
|
+
(L = D.current) == null || L.setSelectionRange(z, ae), oe(z), ne(ae);
|
|
133
133
|
}
|
|
134
134
|
q(!0);
|
|
135
|
-
}, [a]),
|
|
136
|
-
var
|
|
135
|
+
}, [a]), me = l.useCallback((L) => {
|
|
136
|
+
var z, ae;
|
|
137
137
|
let ce = D.current;
|
|
138
138
|
if (!v && (!j.current.isIOS || !L.clipboardData || !ce)) return;
|
|
139
|
-
let de = L.clipboardData.getData("text/plain"),
|
|
139
|
+
let de = L.clipboardData.getData("text/plain"), K = v ? v(de) : de;
|
|
140
140
|
L.preventDefault();
|
|
141
|
-
let ue = (
|
|
142
|
-
if (
|
|
143
|
-
ce.value =
|
|
144
|
-
let
|
|
145
|
-
ce.setSelectionRange(
|
|
146
|
-
}, [a, U, B, I]), xt = l.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), ct = l.useMemo(() => ({ position: "absolute", inset: 0, width:
|
|
147
|
-
var
|
|
148
|
-
|
|
149
|
-
}, onChange:
|
|
150
|
-
var
|
|
151
|
-
O(!0), (
|
|
141
|
+
let ue = (z = D.current) == null ? void 0 : z.selectionStart, Ct = (ae = D.current) == null ? void 0 : ae.selectionEnd, ge = (ue !== Ct ? I.slice(0, ue) + K + I.slice(Ct) : I.slice(0, ue) + K + I.slice(ue)).slice(0, a);
|
|
142
|
+
if (ge.length > 0 && B && !B.test(ge)) return;
|
|
143
|
+
ce.value = ge, U(ge);
|
|
144
|
+
let ze = Math.min(ge.length, a - 1), Te = ge.length;
|
|
145
|
+
ce.setSelectionRange(ze, Te), oe(ze), ne(Te);
|
|
146
|
+
}, [a, U, B, I]), xt = l.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), ct = 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]), Nt = l.useMemo(() => l.createElement("input", Ds(Os({ autoComplete: b.autoComplete || "one-time-code" }, b), { "data-input-otp": !0, "data-input-otp-placeholder-shown": I.length === 0 || void 0, "data-input-otp-mss": Z, "data-input-otp-mse": ee, inputMode: d, pattern: B == null ? void 0 : B.source, "aria-placeholder": u, style: ct, maxLength: a, value: I, ref: D, onPaste: (L) => {
|
|
147
|
+
var z;
|
|
148
|
+
me(L), (z = b.onPaste) == null || z.call(b, L);
|
|
149
|
+
}, onChange: _, onMouseOver: (L) => {
|
|
150
|
+
var z;
|
|
151
|
+
O(!0), (z = b.onMouseOver) == null || z.call(b, L);
|
|
152
152
|
}, onMouseLeave: (L) => {
|
|
153
|
-
var
|
|
154
|
-
O(!1), (
|
|
153
|
+
var z;
|
|
154
|
+
O(!1), (z = b.onMouseLeave) == null || z.call(b, L);
|
|
155
155
|
}, onFocus: (L) => {
|
|
156
|
-
var
|
|
157
|
-
|
|
156
|
+
var z;
|
|
157
|
+
G(), (z = b.onFocus) == null || z.call(b, L);
|
|
158
158
|
}, onBlur: (L) => {
|
|
159
|
-
var
|
|
160
|
-
q(!1), (
|
|
161
|
-
} })), [
|
|
162
|
-
var
|
|
163
|
-
let ce = $ && Z !== null && ee !== null && (Z === ee &&
|
|
164
|
-
return { char: de, placeholderChar:
|
|
165
|
-
}), isFocused: $, isHovering: !b.disabled && H }), [$, H, a, ee, Z, b.disabled, I]),
|
|
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: xt, className: g },
|
|
159
|
+
var z;
|
|
160
|
+
q(!1), (z = b.onBlur) == null || z.call(b, L);
|
|
161
|
+
} })), [_, G, me, d, ct, a, ee, Z, b, B == null ? void 0 : B.source, I]), qe = l.useMemo(() => ({ slots: Array.from({ length: a }).map((L, z) => {
|
|
162
|
+
var ae;
|
|
163
|
+
let ce = $ && Z !== null && ee !== null && (Z === ee && z === Z || z >= Z && z < ee), de = I[z] !== void 0 ? I[z] : null, K = I[0] !== void 0 ? null : (ae = u == null ? void 0 : u[z]) != null ? ae : null;
|
|
164
|
+
return { char: de, placeholderChar: K, isActive: ce, hasFakeCaret: ce && de === null };
|
|
165
|
+
}), isFocused: $, isHovering: !b.disabled && H }), [$, H, a, ee, Z, b.disabled, I]), Fe = l.useMemo(() => f ? f(qe) : l.createElement(ro.Provider, { value: qe }, h), [h, qe, 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: xt, className: g }, Fe, l.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, Nt)));
|
|
167
167
|
});
|
|
168
168
|
oo.displayName = "Input";
|
|
169
169
|
function dt(e, t) {
|
|
@@ -775,56 +775,56 @@ function zi(e, ...t) {
|
|
|
775
775
|
const re = (e) => {
|
|
776
776
|
const t = (n) => n[e] || [];
|
|
777
777
|
return t.isThemeGetter = !0, t;
|
|
778
|
-
}, fo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, po = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wi = /^\d+\/\d+$/, Bi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ji = /\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$/, Vi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ui = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,
|
|
778
|
+
}, fo = /^\[(?:(\w[\w-]*):)?(.+)\]$/i, po = /^\((?:(\w[\w-]*):)?(.+)\)$/i, Wi = /^\d+\/\d+$/, Bi = /^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/, ji = /\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$/, Vi = /^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/, Hi = /^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/, Ui = /^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/, Xe = (e) => Wi.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), Ve = (e) => !!e && Number.isInteger(Number(e)), Er = (e) => e.endsWith("%") && V(e.slice(0, -1)), Oe = (e) => Bi.test(e), Gi = () => !0, Ki = (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
|
ji.test(e) && !Vi.test(e)
|
|
783
|
-
), Gn = () => !1, Yi = (e) => Hi.test(e), qi = (e) => Ui.test(e), Xi = (e) => !
|
|
783
|
+
), Gn = () => !1, Yi = (e) => Hi.test(e), qi = (e) => Ui.test(e), Xi = (e) => !P(e) && !A(e), Qi = (e) => at(e, go, Gn), P = (e) => fo.test(e), He = (e) => at(e, vo, Ki), fn = (e) => at(e, ll, V), Zi = (e) => at(e, mo, Gn), Ji = (e) => at(e, ho, qi), el = (e) => at(e, Gn, Yi), A = (e) => po.test(e), Et = (e) => st(e, vo), tl = (e) => st(e, cl), nl = (e) => st(e, mo), rl = (e) => st(e, go), ol = (e) => st(e, ho), al = (e) => st(e, dl, !0), at = (e, t, n) => {
|
|
784
784
|
const r = fo.exec(e);
|
|
785
785
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
786
|
-
},
|
|
786
|
+
}, st = (e, t, n = !1) => {
|
|
787
787
|
const r = po.exec(e);
|
|
788
788
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
789
789
|
}, mo = (e) => e === "position", sl = /* @__PURE__ */ new Set(["image", "url"]), ho = (e) => sl.has(e), il = /* @__PURE__ */ new Set(["length", "size", "percentage"]), go = (e) => il.has(e), vo = (e) => e === "length", ll = (e) => e === "number", cl = (e) => e === "family-name", dl = (e) => e === "shadow", ul = () => {
|
|
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 = () => [
|
|
791
|
-
span: ["full",
|
|
792
|
-
},
|
|
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 = () => [Xe, "full", "auto", ...E()], F = () => [Ve, "none", "subgrid", A, P], I = () => ["auto", {
|
|
791
|
+
span: ["full", Ve, A, P]
|
|
792
|
+
}, A, P], W = () => [Ve, "auto", A, P], U = () => ["auto", "min", "max", "fr", A, P], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], D = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], j = () => [Xe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], k = () => [e, A, P], H = () => [Er, He], O = () => [
|
|
793
793
|
// Deprecated since Tailwind CSS v4.0.0
|
|
794
794
|
"",
|
|
795
795
|
"none",
|
|
796
796
|
"full",
|
|
797
797
|
d,
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
], $ = () => ["", V, Et,
|
|
798
|
+
A,
|
|
799
|
+
P
|
|
800
|
+
], $ = () => ["", V, Et, He], 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
|
-
|
|
806
|
-
|
|
807
|
-
], ee = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left",
|
|
805
|
+
A,
|
|
806
|
+
P
|
|
807
|
+
], ee = () => ["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], _ = () => [V, A, P], G = () => [Xe, "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: [Oe],
|
|
814
|
+
breakpoint: [Oe],
|
|
815
815
|
color: [Gi],
|
|
816
|
-
container: [
|
|
817
|
-
"drop-shadow": [
|
|
816
|
+
container: [Oe],
|
|
817
|
+
"drop-shadow": [Oe],
|
|
818
818
|
ease: ["in", "out", "in-out"],
|
|
819
819
|
font: [Xi],
|
|
820
820
|
"font-weight": ["thin", "extralight", "light", "normal", "medium", "semibold", "bold", "extrabold", "black"],
|
|
821
|
-
"inset-shadow": [
|
|
821
|
+
"inset-shadow": [Oe],
|
|
822
822
|
leading: ["none", "tight", "snug", "normal", "relaxed", "loose"],
|
|
823
823
|
perspective: ["dramatic", "near", "normal", "midrange", "distant", "none"],
|
|
824
|
-
radius: [
|
|
825
|
-
shadow: [
|
|
824
|
+
radius: [Oe],
|
|
825
|
+
shadow: [Oe],
|
|
826
826
|
spacing: ["px", V],
|
|
827
|
-
text: [
|
|
827
|
+
text: [Oe],
|
|
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", Xe, P, A, f]
|
|
840
840
|
}],
|
|
841
841
|
/**
|
|
842
842
|
* Container
|
|
@@ -849,7 +849,7 @@ const re = (e) => {
|
|
|
849
849
|
* @see https://tailwindcss.com/docs/columns
|
|
850
850
|
*/
|
|
851
851
|
columns: [{
|
|
852
|
-
columns: [V,
|
|
852
|
+
columns: [V, P, A, c]
|
|
853
853
|
}],
|
|
854
854
|
/**
|
|
855
855
|
* Break After
|
|
@@ -927,7 +927,7 @@ const re = (e) => {
|
|
|
927
927
|
* @see https://tailwindcss.com/docs/object-position
|
|
928
928
|
*/
|
|
929
929
|
"object-position": [{
|
|
930
|
-
object: [...N(),
|
|
930
|
+
object: [...N(), P, A]
|
|
931
931
|
}],
|
|
932
932
|
/**
|
|
933
933
|
* Overflow
|
|
@@ -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: [Ve, "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: [Xe, "full", "auto", c, ...E()]
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Flex Direction
|
|
@@ -1080,35 +1080,35 @@ const re = (e) => {
|
|
|
1080
1080
|
* @see https://tailwindcss.com/docs/flex
|
|
1081
1081
|
*/
|
|
1082
1082
|
flex: [{
|
|
1083
|
-
flex: [V,
|
|
1083
|
+
flex: [V, Xe, "auto", "initial", "none", P]
|
|
1084
1084
|
}],
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Flex Grow
|
|
1087
1087
|
* @see https://tailwindcss.com/docs/flex-grow
|
|
1088
1088
|
*/
|
|
1089
1089
|
grow: [{
|
|
1090
|
-
grow: ["", V,
|
|
1090
|
+
grow: ["", V, A, P]
|
|
1091
1091
|
}],
|
|
1092
1092
|
/**
|
|
1093
1093
|
* Flex Shrink
|
|
1094
1094
|
* @see https://tailwindcss.com/docs/flex-shrink
|
|
1095
1095
|
*/
|
|
1096
1096
|
shrink: [{
|
|
1097
|
-
shrink: ["", V,
|
|
1097
|
+
shrink: ["", V, A, P]
|
|
1098
1098
|
}],
|
|
1099
1099
|
/**
|
|
1100
1100
|
* Order
|
|
1101
1101
|
* @see https://tailwindcss.com/docs/order
|
|
1102
1102
|
*/
|
|
1103
1103
|
order: [{
|
|
1104
|
-
order: [
|
|
1104
|
+
order: [Ve, "first", "last", "none", A, P]
|
|
1105
1105
|
}],
|
|
1106
1106
|
/**
|
|
1107
1107
|
* Grid Template Columns
|
|
1108
1108
|
* @see https://tailwindcss.com/docs/grid-template-columns
|
|
1109
1109
|
*/
|
|
1110
1110
|
"grid-cols": [{
|
|
1111
|
-
"grid-cols":
|
|
1111
|
+
"grid-cols": F()
|
|
1112
1112
|
}],
|
|
1113
1113
|
/**
|
|
1114
1114
|
* Grid Column Start / End
|
|
@@ -1136,7 +1136,7 @@ const re = (e) => {
|
|
|
1136
1136
|
* @see https://tailwindcss.com/docs/grid-template-rows
|
|
1137
1137
|
*/
|
|
1138
1138
|
"grid-rows": [{
|
|
1139
|
-
"grid-rows":
|
|
1139
|
+
"grid-rows": F()
|
|
1140
1140
|
}],
|
|
1141
1141
|
/**
|
|
1142
1142
|
* Grid Row Start / End
|
|
@@ -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, He]
|
|
1496
1496
|
}],
|
|
1497
1497
|
/**
|
|
1498
1498
|
* Font Smoothing
|
|
@@ -1509,21 +1509,21 @@ const re = (e) => {
|
|
|
1509
1509
|
* @see https://tailwindcss.com/docs/font-weight
|
|
1510
1510
|
*/
|
|
1511
1511
|
"font-weight": [{
|
|
1512
|
-
font: [r,
|
|
1512
|
+
font: [r, A, fn]
|
|
1513
1513
|
}],
|
|
1514
1514
|
/**
|
|
1515
1515
|
* Font Stretch
|
|
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", Er,
|
|
1519
|
+
"font-stretch": ["ultra-condensed", "extra-condensed", "condensed", "semi-condensed", "normal", "semi-expanded", "expanded", "extra-expanded", "ultra-expanded", Er, P]
|
|
1520
1520
|
}],
|
|
1521
1521
|
/**
|
|
1522
1522
|
* Font Family
|
|
1523
1523
|
* @see https://tailwindcss.com/docs/font-family
|
|
1524
1524
|
*/
|
|
1525
1525
|
"font-family": [{
|
|
1526
|
-
font: [tl,
|
|
1526
|
+
font: [tl, P, t]
|
|
1527
1527
|
}],
|
|
1528
1528
|
/**
|
|
1529
1529
|
* Font Variant Numeric
|
|
@@ -1560,14 +1560,14 @@ const re = (e) => {
|
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/letter-spacing
|
|
1561
1561
|
*/
|
|
1562
1562
|
tracking: [{
|
|
1563
|
-
tracking: [o,
|
|
1563
|
+
tracking: [o, A, P]
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Line Clamp
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/line-clamp
|
|
1568
1568
|
*/
|
|
1569
1569
|
"line-clamp": [{
|
|
1570
|
-
"line-clamp": [V, "none",
|
|
1570
|
+
"line-clamp": [V, "none", A, fn]
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Line Height
|
|
@@ -1585,7 +1585,7 @@ const re = (e) => {
|
|
|
1585
1585
|
* @see https://tailwindcss.com/docs/list-style-image
|
|
1586
1586
|
*/
|
|
1587
1587
|
"list-image": [{
|
|
1588
|
-
"list-image": ["none",
|
|
1588
|
+
"list-image": ["none", A, P]
|
|
1589
1589
|
}],
|
|
1590
1590
|
/**
|
|
1591
1591
|
* List Style Position
|
|
@@ -1599,7 +1599,7 @@ const re = (e) => {
|
|
|
1599
1599
|
* @see https://tailwindcss.com/docs/list-style-type
|
|
1600
1600
|
*/
|
|
1601
1601
|
"list-style-type": [{
|
|
1602
|
-
list: ["disc", "decimal", "none",
|
|
1602
|
+
list: ["disc", "decimal", "none", A, P]
|
|
1603
1603
|
}],
|
|
1604
1604
|
/**
|
|
1605
1605
|
* Text Alignment
|
|
@@ -1614,14 +1614,14 @@ const re = (e) => {
|
|
|
1614
1614
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1615
1615
|
*/
|
|
1616
1616
|
"placeholder-color": [{
|
|
1617
|
-
placeholder:
|
|
1617
|
+
placeholder: k()
|
|
1618
1618
|
}],
|
|
1619
1619
|
/**
|
|
1620
1620
|
* Text Color
|
|
1621
1621
|
* @see https://tailwindcss.com/docs/text-color
|
|
1622
1622
|
*/
|
|
1623
1623
|
"text-color": [{
|
|
1624
|
-
text:
|
|
1624
|
+
text: k()
|
|
1625
1625
|
}],
|
|
1626
1626
|
/**
|
|
1627
1627
|
* Text Decoration
|
|
@@ -1640,21 +1640,21 @@ 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",
|
|
1643
|
+
decoration: [V, "from-font", "auto", A, He]
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Text Decoration Color
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1648
1648
|
*/
|
|
1649
1649
|
"text-decoration-color": [{
|
|
1650
|
-
decoration:
|
|
1650
|
+
decoration: k()
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Text Underline Offset
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/text-underline-offset
|
|
1655
1655
|
*/
|
|
1656
1656
|
"underline-offset": [{
|
|
1657
|
-
"underline-offset": [V, "auto",
|
|
1657
|
+
"underline-offset": [V, "auto", A, P]
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Text Transform
|
|
@@ -1685,7 +1685,7 @@ const re = (e) => {
|
|
|
1685
1685
|
* @see https://tailwindcss.com/docs/vertical-align
|
|
1686
1686
|
*/
|
|
1687
1687
|
"vertical-align": [{
|
|
1688
|
-
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super",
|
|
1688
|
+
align: ["baseline", "top", "middle", "bottom", "text-top", "text-bottom", "sub", "super", A, P]
|
|
1689
1689
|
}],
|
|
1690
1690
|
/**
|
|
1691
1691
|
* Whitespace
|
|
@@ -1713,7 +1713,7 @@ const re = (e) => {
|
|
|
1713
1713
|
* @see https://tailwindcss.com/docs/content
|
|
1714
1714
|
*/
|
|
1715
1715
|
content: [{
|
|
1716
|
-
content: ["none",
|
|
1716
|
+
content: ["none", A, P]
|
|
1717
1717
|
}],
|
|
1718
1718
|
// -------------------
|
|
1719
1719
|
// --- Backgrounds ---
|
|
@@ -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
|
-
},
|
|
1774
|
-
radial: ["",
|
|
1775
|
-
conic: [
|
|
1773
|
+
}, Ve, A, P],
|
|
1774
|
+
radial: ["", A, P],
|
|
1775
|
+
conic: [Ve, A, P]
|
|
1776
1776
|
}, ol, Ji]
|
|
1777
1777
|
}],
|
|
1778
1778
|
/**
|
|
@@ -1780,7 +1780,7 @@ const re = (e) => {
|
|
|
1780
1780
|
* @see https://tailwindcss.com/docs/background-color
|
|
1781
1781
|
*/
|
|
1782
1782
|
"bg-color": [{
|
|
1783
|
-
bg:
|
|
1783
|
+
bg: k()
|
|
1784
1784
|
}],
|
|
1785
1785
|
/**
|
|
1786
1786
|
* Gradient Color Stops From Position
|
|
@@ -1808,21 +1808,21 @@ const re = (e) => {
|
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1809
1809
|
*/
|
|
1810
1810
|
"gradient-from": [{
|
|
1811
|
-
from:
|
|
1811
|
+
from: k()
|
|
1812
1812
|
}],
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Gradient Color Stops Via
|
|
1815
1815
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1816
1816
|
*/
|
|
1817
1817
|
"gradient-via": [{
|
|
1818
|
-
via:
|
|
1818
|
+
via: k()
|
|
1819
1819
|
}],
|
|
1820
1820
|
/**
|
|
1821
1821
|
* Gradient Color Stops To
|
|
1822
1822
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1823
1823
|
*/
|
|
1824
1824
|
"gradient-to": [{
|
|
1825
|
-
to:
|
|
1825
|
+
to: k()
|
|
1826
1826
|
}],
|
|
1827
1827
|
// ---------------
|
|
1828
1828
|
// --- Borders ---
|
|
@@ -2038,70 +2038,70 @@ const re = (e) => {
|
|
|
2038
2038
|
* @see https://tailwindcss.com/docs/border-color
|
|
2039
2039
|
*/
|
|
2040
2040
|
"border-color": [{
|
|
2041
|
-
border:
|
|
2041
|
+
border: k()
|
|
2042
2042
|
}],
|
|
2043
2043
|
/**
|
|
2044
2044
|
* Border Color X
|
|
2045
2045
|
* @see https://tailwindcss.com/docs/border-color
|
|
2046
2046
|
*/
|
|
2047
2047
|
"border-color-x": [{
|
|
2048
|
-
"border-x":
|
|
2048
|
+
"border-x": k()
|
|
2049
2049
|
}],
|
|
2050
2050
|
/**
|
|
2051
2051
|
* Border Color Y
|
|
2052
2052
|
* @see https://tailwindcss.com/docs/border-color
|
|
2053
2053
|
*/
|
|
2054
2054
|
"border-color-y": [{
|
|
2055
|
-
"border-y":
|
|
2055
|
+
"border-y": k()
|
|
2056
2056
|
}],
|
|
2057
2057
|
/**
|
|
2058
2058
|
* Border Color S
|
|
2059
2059
|
* @see https://tailwindcss.com/docs/border-color
|
|
2060
2060
|
*/
|
|
2061
2061
|
"border-color-s": [{
|
|
2062
|
-
"border-s":
|
|
2062
|
+
"border-s": k()
|
|
2063
2063
|
}],
|
|
2064
2064
|
/**
|
|
2065
2065
|
* Border Color E
|
|
2066
2066
|
* @see https://tailwindcss.com/docs/border-color
|
|
2067
2067
|
*/
|
|
2068
2068
|
"border-color-e": [{
|
|
2069
|
-
"border-e":
|
|
2069
|
+
"border-e": k()
|
|
2070
2070
|
}],
|
|
2071
2071
|
/**
|
|
2072
2072
|
* Border Color Top
|
|
2073
2073
|
* @see https://tailwindcss.com/docs/border-color
|
|
2074
2074
|
*/
|
|
2075
2075
|
"border-color-t": [{
|
|
2076
|
-
"border-t":
|
|
2076
|
+
"border-t": k()
|
|
2077
2077
|
}],
|
|
2078
2078
|
/**
|
|
2079
2079
|
* Border Color Right
|
|
2080
2080
|
* @see https://tailwindcss.com/docs/border-color
|
|
2081
2081
|
*/
|
|
2082
2082
|
"border-color-r": [{
|
|
2083
|
-
"border-r":
|
|
2083
|
+
"border-r": k()
|
|
2084
2084
|
}],
|
|
2085
2085
|
/**
|
|
2086
2086
|
* Border Color Bottom
|
|
2087
2087
|
* @see https://tailwindcss.com/docs/border-color
|
|
2088
2088
|
*/
|
|
2089
2089
|
"border-color-b": [{
|
|
2090
|
-
"border-b":
|
|
2090
|
+
"border-b": k()
|
|
2091
2091
|
}],
|
|
2092
2092
|
/**
|
|
2093
2093
|
* Border Color Left
|
|
2094
2094
|
* @see https://tailwindcss.com/docs/border-color
|
|
2095
2095
|
*/
|
|
2096
2096
|
"border-color-l": [{
|
|
2097
|
-
"border-l":
|
|
2097
|
+
"border-l": k()
|
|
2098
2098
|
}],
|
|
2099
2099
|
/**
|
|
2100
2100
|
* Divide Color
|
|
2101
2101
|
* @see https://tailwindcss.com/docs/divide-color
|
|
2102
2102
|
*/
|
|
2103
2103
|
"divide-color": [{
|
|
2104
|
-
divide:
|
|
2104
|
+
divide: k()
|
|
2105
2105
|
}],
|
|
2106
2106
|
/**
|
|
2107
2107
|
* Outline Style
|
|
@@ -2115,14 +2115,14 @@ const re = (e) => {
|
|
|
2115
2115
|
* @see https://tailwindcss.com/docs/outline-offset
|
|
2116
2116
|
*/
|
|
2117
2117
|
"outline-offset": [{
|
|
2118
|
-
"outline-offset": [V,
|
|
2118
|
+
"outline-offset": [V, A, P]
|
|
2119
2119
|
}],
|
|
2120
2120
|
/**
|
|
2121
2121
|
* Outline Width
|
|
2122
2122
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2123
2123
|
*/
|
|
2124
2124
|
"outline-w": [{
|
|
2125
|
-
outline: ["", V, Et,
|
|
2125
|
+
outline: ["", V, Et, He]
|
|
2126
2126
|
}],
|
|
2127
2127
|
/**
|
|
2128
2128
|
* Outline Color
|
|
@@ -2153,21 +2153,21 @@ const re = (e) => {
|
|
|
2153
2153
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
2154
2154
|
*/
|
|
2155
2155
|
"shadow-color": [{
|
|
2156
|
-
shadow:
|
|
2156
|
+
shadow: k()
|
|
2157
2157
|
}],
|
|
2158
2158
|
/**
|
|
2159
2159
|
* Inset Box Shadow
|
|
2160
2160
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-shadow
|
|
2161
2161
|
*/
|
|
2162
2162
|
"inset-shadow": [{
|
|
2163
|
-
"inset-shadow": ["none",
|
|
2163
|
+
"inset-shadow": ["none", A, P, m]
|
|
2164
2164
|
}],
|
|
2165
2165
|
/**
|
|
2166
2166
|
* Inset Box Shadow Color
|
|
2167
2167
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
2168
2168
|
*/
|
|
2169
2169
|
"inset-shadow-color": [{
|
|
2170
|
-
"inset-shadow":
|
|
2170
|
+
"inset-shadow": k()
|
|
2171
2171
|
}],
|
|
2172
2172
|
/**
|
|
2173
2173
|
* Ring Width
|
|
@@ -2188,7 +2188,7 @@ const re = (e) => {
|
|
|
2188
2188
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
2189
2189
|
*/
|
|
2190
2190
|
"ring-color": [{
|
|
2191
|
-
ring:
|
|
2191
|
+
ring: k()
|
|
2192
2192
|
}],
|
|
2193
2193
|
/**
|
|
2194
2194
|
* Ring Offset Width
|
|
@@ -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, He]
|
|
2201
2201
|
}],
|
|
2202
2202
|
/**
|
|
2203
2203
|
* Ring Offset Color
|
|
@@ -2206,7 +2206,7 @@ const re = (e) => {
|
|
|
2206
2206
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2207
2207
|
*/
|
|
2208
2208
|
"ring-offset-color": [{
|
|
2209
|
-
"ring-offset":
|
|
2209
|
+
"ring-offset": k()
|
|
2210
2210
|
}],
|
|
2211
2211
|
/**
|
|
2212
2212
|
* Inset Ring Width
|
|
@@ -2220,14 +2220,14 @@ const re = (e) => {
|
|
|
2220
2220
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
2221
2221
|
*/
|
|
2222
2222
|
"inset-ring-color": [{
|
|
2223
|
-
"inset-ring":
|
|
2223
|
+
"inset-ring": k()
|
|
2224
2224
|
}],
|
|
2225
2225
|
/**
|
|
2226
2226
|
* Opacity
|
|
2227
2227
|
* @see https://tailwindcss.com/docs/opacity
|
|
2228
2228
|
*/
|
|
2229
2229
|
opacity: [{
|
|
2230
|
-
opacity: [V,
|
|
2230
|
+
opacity: [V, A, P]
|
|
2231
2231
|
}],
|
|
2232
2232
|
/**
|
|
2233
2233
|
* Mix Blend Mode
|
|
@@ -2255,8 +2255,8 @@ const re = (e) => {
|
|
|
2255
2255
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2256
2256
|
"",
|
|
2257
2257
|
"none",
|
|
2258
|
-
|
|
2259
|
-
|
|
2258
|
+
A,
|
|
2259
|
+
P
|
|
2260
2260
|
]
|
|
2261
2261
|
}],
|
|
2262
2262
|
/**
|
|
@@ -2271,14 +2271,14 @@ const re = (e) => {
|
|
|
2271
2271
|
* @see https://tailwindcss.com/docs/brightness
|
|
2272
2272
|
*/
|
|
2273
2273
|
brightness: [{
|
|
2274
|
-
brightness: [V,
|
|
2274
|
+
brightness: [V, A, P]
|
|
2275
2275
|
}],
|
|
2276
2276
|
/**
|
|
2277
2277
|
* Contrast
|
|
2278
2278
|
* @see https://tailwindcss.com/docs/contrast
|
|
2279
2279
|
*/
|
|
2280
2280
|
contrast: [{
|
|
2281
|
-
contrast: [V,
|
|
2281
|
+
contrast: [V, A, P]
|
|
2282
2282
|
}],
|
|
2283
2283
|
/**
|
|
2284
2284
|
* Drop Shadow
|
|
@@ -2290,8 +2290,8 @@ const re = (e) => {
|
|
|
2290
2290
|
"",
|
|
2291
2291
|
"none",
|
|
2292
2292
|
v,
|
|
2293
|
-
|
|
2294
|
-
|
|
2293
|
+
A,
|
|
2294
|
+
P
|
|
2295
2295
|
]
|
|
2296
2296
|
}],
|
|
2297
2297
|
/**
|
|
@@ -2299,35 +2299,35 @@ const re = (e) => {
|
|
|
2299
2299
|
* @see https://tailwindcss.com/docs/grayscale
|
|
2300
2300
|
*/
|
|
2301
2301
|
grayscale: [{
|
|
2302
|
-
grayscale: ["", V,
|
|
2302
|
+
grayscale: ["", V, A, P]
|
|
2303
2303
|
}],
|
|
2304
2304
|
/**
|
|
2305
2305
|
* Hue Rotate
|
|
2306
2306
|
* @see https://tailwindcss.com/docs/hue-rotate
|
|
2307
2307
|
*/
|
|
2308
2308
|
"hue-rotate": [{
|
|
2309
|
-
"hue-rotate": [V,
|
|
2309
|
+
"hue-rotate": [V, A, P]
|
|
2310
2310
|
}],
|
|
2311
2311
|
/**
|
|
2312
2312
|
* Invert
|
|
2313
2313
|
* @see https://tailwindcss.com/docs/invert
|
|
2314
2314
|
*/
|
|
2315
2315
|
invert: [{
|
|
2316
|
-
invert: ["", V,
|
|
2316
|
+
invert: ["", V, A, P]
|
|
2317
2317
|
}],
|
|
2318
2318
|
/**
|
|
2319
2319
|
* Saturate
|
|
2320
2320
|
* @see https://tailwindcss.com/docs/saturate
|
|
2321
2321
|
*/
|
|
2322
2322
|
saturate: [{
|
|
2323
|
-
saturate: [V,
|
|
2323
|
+
saturate: [V, A, P]
|
|
2324
2324
|
}],
|
|
2325
2325
|
/**
|
|
2326
2326
|
* Sepia
|
|
2327
2327
|
* @see https://tailwindcss.com/docs/sepia
|
|
2328
2328
|
*/
|
|
2329
2329
|
sepia: [{
|
|
2330
|
-
sepia: ["", V,
|
|
2330
|
+
sepia: ["", V, A, P]
|
|
2331
2331
|
}],
|
|
2332
2332
|
/**
|
|
2333
2333
|
* Backdrop Filter
|
|
@@ -2338,8 +2338,8 @@ const re = (e) => {
|
|
|
2338
2338
|
// Deprecated since Tailwind CSS v3.0.0
|
|
2339
2339
|
"",
|
|
2340
2340
|
"none",
|
|
2341
|
-
|
|
2342
|
-
|
|
2341
|
+
A,
|
|
2342
|
+
P
|
|
2343
2343
|
]
|
|
2344
2344
|
}],
|
|
2345
2345
|
/**
|
|
@@ -2354,56 +2354,56 @@ const re = (e) => {
|
|
|
2354
2354
|
* @see https://tailwindcss.com/docs/backdrop-brightness
|
|
2355
2355
|
*/
|
|
2356
2356
|
"backdrop-brightness": [{
|
|
2357
|
-
"backdrop-brightness": [V,
|
|
2357
|
+
"backdrop-brightness": [V, A, P]
|
|
2358
2358
|
}],
|
|
2359
2359
|
/**
|
|
2360
2360
|
* Backdrop Contrast
|
|
2361
2361
|
* @see https://tailwindcss.com/docs/backdrop-contrast
|
|
2362
2362
|
*/
|
|
2363
2363
|
"backdrop-contrast": [{
|
|
2364
|
-
"backdrop-contrast": [V,
|
|
2364
|
+
"backdrop-contrast": [V, A, P]
|
|
2365
2365
|
}],
|
|
2366
2366
|
/**
|
|
2367
2367
|
* Backdrop Grayscale
|
|
2368
2368
|
* @see https://tailwindcss.com/docs/backdrop-grayscale
|
|
2369
2369
|
*/
|
|
2370
2370
|
"backdrop-grayscale": [{
|
|
2371
|
-
"backdrop-grayscale": ["", V,
|
|
2371
|
+
"backdrop-grayscale": ["", V, A, P]
|
|
2372
2372
|
}],
|
|
2373
2373
|
/**
|
|
2374
2374
|
* Backdrop Hue Rotate
|
|
2375
2375
|
* @see https://tailwindcss.com/docs/backdrop-hue-rotate
|
|
2376
2376
|
*/
|
|
2377
2377
|
"backdrop-hue-rotate": [{
|
|
2378
|
-
"backdrop-hue-rotate": [V,
|
|
2378
|
+
"backdrop-hue-rotate": [V, A, P]
|
|
2379
2379
|
}],
|
|
2380
2380
|
/**
|
|
2381
2381
|
* Backdrop Invert
|
|
2382
2382
|
* @see https://tailwindcss.com/docs/backdrop-invert
|
|
2383
2383
|
*/
|
|
2384
2384
|
"backdrop-invert": [{
|
|
2385
|
-
"backdrop-invert": ["", V,
|
|
2385
|
+
"backdrop-invert": ["", V, A, P]
|
|
2386
2386
|
}],
|
|
2387
2387
|
/**
|
|
2388
2388
|
* Backdrop Opacity
|
|
2389
2389
|
* @see https://tailwindcss.com/docs/backdrop-opacity
|
|
2390
2390
|
*/
|
|
2391
2391
|
"backdrop-opacity": [{
|
|
2392
|
-
"backdrop-opacity": [V,
|
|
2392
|
+
"backdrop-opacity": [V, A, P]
|
|
2393
2393
|
}],
|
|
2394
2394
|
/**
|
|
2395
2395
|
* Backdrop Saturate
|
|
2396
2396
|
* @see https://tailwindcss.com/docs/backdrop-saturate
|
|
2397
2397
|
*/
|
|
2398
2398
|
"backdrop-saturate": [{
|
|
2399
|
-
"backdrop-saturate": [V,
|
|
2399
|
+
"backdrop-saturate": [V, A, P]
|
|
2400
2400
|
}],
|
|
2401
2401
|
/**
|
|
2402
2402
|
* Backdrop Sepia
|
|
2403
2403
|
* @see https://tailwindcss.com/docs/backdrop-sepia
|
|
2404
2404
|
*/
|
|
2405
2405
|
"backdrop-sepia": [{
|
|
2406
|
-
"backdrop-sepia": ["", V,
|
|
2406
|
+
"backdrop-sepia": ["", V, A, P]
|
|
2407
2407
|
}],
|
|
2408
2408
|
// --------------
|
|
2409
2409
|
// --- Tables ---
|
|
@@ -2458,7 +2458,7 @@ const re = (e) => {
|
|
|
2458
2458
|
* @see https://tailwindcss.com/docs/transition-property
|
|
2459
2459
|
*/
|
|
2460
2460
|
transition: [{
|
|
2461
|
-
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none",
|
|
2461
|
+
transition: ["", "all", "colors", "opacity", "shadow", "transform", "none", A, P]
|
|
2462
2462
|
}],
|
|
2463
2463
|
/**
|
|
2464
2464
|
* Transition Behavior
|
|
@@ -2472,28 +2472,28 @@ const re = (e) => {
|
|
|
2472
2472
|
* @see https://tailwindcss.com/docs/transition-duration
|
|
2473
2473
|
*/
|
|
2474
2474
|
duration: [{
|
|
2475
|
-
duration: [V, "initial",
|
|
2475
|
+
duration: [V, "initial", A, P]
|
|
2476
2476
|
}],
|
|
2477
2477
|
/**
|
|
2478
2478
|
* Transition Timing Function
|
|
2479
2479
|
* @see https://tailwindcss.com/docs/transition-timing-function
|
|
2480
2480
|
*/
|
|
2481
2481
|
ease: [{
|
|
2482
|
-
ease: ["linear", "initial", h,
|
|
2482
|
+
ease: ["linear", "initial", h, A, P]
|
|
2483
2483
|
}],
|
|
2484
2484
|
/**
|
|
2485
2485
|
* Transition Delay
|
|
2486
2486
|
* @see https://tailwindcss.com/docs/transition-delay
|
|
2487
2487
|
*/
|
|
2488
2488
|
delay: [{
|
|
2489
|
-
delay: [V,
|
|
2489
|
+
delay: [V, A, P]
|
|
2490
2490
|
}],
|
|
2491
2491
|
/**
|
|
2492
2492
|
* Animation
|
|
2493
2493
|
* @see https://tailwindcss.com/docs/animation
|
|
2494
2494
|
*/
|
|
2495
2495
|
animate: [{
|
|
2496
|
-
animate: ["none", b,
|
|
2496
|
+
animate: ["none", b, A, P]
|
|
2497
2497
|
}],
|
|
2498
2498
|
// ------------------
|
|
2499
2499
|
// --- Transforms ---
|
|
@@ -2510,7 +2510,7 @@ const re = (e) => {
|
|
|
2510
2510
|
* @see https://tailwindcss.com/docs/perspective
|
|
2511
2511
|
*/
|
|
2512
2512
|
perspective: [{
|
|
2513
|
-
perspective: [y,
|
|
2513
|
+
perspective: [y, A, P]
|
|
2514
2514
|
}],
|
|
2515
2515
|
/**
|
|
2516
2516
|
* Perspective Origin
|
|
@@ -2552,28 +2552,28 @@ const re = (e) => {
|
|
|
2552
2552
|
* @see https://tailwindcss.com/docs/scale
|
|
2553
2553
|
*/
|
|
2554
2554
|
scale: [{
|
|
2555
|
-
scale:
|
|
2555
|
+
scale: se()
|
|
2556
2556
|
}],
|
|
2557
2557
|
/**
|
|
2558
2558
|
* Scale X
|
|
2559
2559
|
* @see https://tailwindcss.com/docs/scale
|
|
2560
2560
|
*/
|
|
2561
2561
|
"scale-x": [{
|
|
2562
|
-
"scale-x":
|
|
2562
|
+
"scale-x": se()
|
|
2563
2563
|
}],
|
|
2564
2564
|
/**
|
|
2565
2565
|
* Scale Y
|
|
2566
2566
|
* @see https://tailwindcss.com/docs/scale
|
|
2567
2567
|
*/
|
|
2568
2568
|
"scale-y": [{
|
|
2569
|
-
"scale-y":
|
|
2569
|
+
"scale-y": se()
|
|
2570
2570
|
}],
|
|
2571
2571
|
/**
|
|
2572
2572
|
* Scale Z
|
|
2573
2573
|
* @see https://tailwindcss.com/docs/scale
|
|
2574
2574
|
*/
|
|
2575
2575
|
"scale-z": [{
|
|
2576
|
-
"scale-z":
|
|
2576
|
+
"scale-z": se()
|
|
2577
2577
|
}],
|
|
2578
2578
|
/**
|
|
2579
2579
|
* Scale 3D
|
|
@@ -2585,28 +2585,28 @@ const re = (e) => {
|
|
|
2585
2585
|
* @see https://tailwindcss.com/docs/skew
|
|
2586
2586
|
*/
|
|
2587
2587
|
skew: [{
|
|
2588
|
-
skew:
|
|
2588
|
+
skew: _()
|
|
2589
2589
|
}],
|
|
2590
2590
|
/**
|
|
2591
2591
|
* Skew X
|
|
2592
2592
|
* @see https://tailwindcss.com/docs/skew
|
|
2593
2593
|
*/
|
|
2594
2594
|
"skew-x": [{
|
|
2595
|
-
"skew-x":
|
|
2595
|
+
"skew-x": _()
|
|
2596
2596
|
}],
|
|
2597
2597
|
/**
|
|
2598
2598
|
* Skew Y
|
|
2599
2599
|
* @see https://tailwindcss.com/docs/skew
|
|
2600
2600
|
*/
|
|
2601
2601
|
"skew-y": [{
|
|
2602
|
-
"skew-y":
|
|
2602
|
+
"skew-y": _()
|
|
2603
2603
|
}],
|
|
2604
2604
|
/**
|
|
2605
2605
|
* Transform
|
|
2606
2606
|
* @see https://tailwindcss.com/docs/transform
|
|
2607
2607
|
*/
|
|
2608
2608
|
transform: [{
|
|
2609
|
-
transform: [
|
|
2609
|
+
transform: [A, P, "", "none", "gpu", "cpu"]
|
|
2610
2610
|
}],
|
|
2611
2611
|
/**
|
|
2612
2612
|
* Transform Origin
|
|
@@ -2627,28 +2627,28 @@ const re = (e) => {
|
|
|
2627
2627
|
* @see https://tailwindcss.com/docs/translate
|
|
2628
2628
|
*/
|
|
2629
2629
|
translate: [{
|
|
2630
|
-
translate:
|
|
2630
|
+
translate: G()
|
|
2631
2631
|
}],
|
|
2632
2632
|
/**
|
|
2633
2633
|
* Translate X
|
|
2634
2634
|
* @see https://tailwindcss.com/docs/translate
|
|
2635
2635
|
*/
|
|
2636
2636
|
"translate-x": [{
|
|
2637
|
-
"translate-x":
|
|
2637
|
+
"translate-x": G()
|
|
2638
2638
|
}],
|
|
2639
2639
|
/**
|
|
2640
2640
|
* Translate Y
|
|
2641
2641
|
* @see https://tailwindcss.com/docs/translate
|
|
2642
2642
|
*/
|
|
2643
2643
|
"translate-y": [{
|
|
2644
|
-
"translate-y":
|
|
2644
|
+
"translate-y": G()
|
|
2645
2645
|
}],
|
|
2646
2646
|
/**
|
|
2647
2647
|
* Translate Z
|
|
2648
2648
|
* @see https://tailwindcss.com/docs/translate
|
|
2649
2649
|
*/
|
|
2650
2650
|
"translate-z": [{
|
|
2651
|
-
"translate-z":
|
|
2651
|
+
"translate-z": G()
|
|
2652
2652
|
}],
|
|
2653
2653
|
/**
|
|
2654
2654
|
* Translate None
|
|
@@ -2663,7 +2663,7 @@ const re = (e) => {
|
|
|
2663
2663
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2664
2664
|
*/
|
|
2665
2665
|
accent: [{
|
|
2666
|
-
accent:
|
|
2666
|
+
accent: k()
|
|
2667
2667
|
}],
|
|
2668
2668
|
/**
|
|
2669
2669
|
* Appearance
|
|
@@ -2677,7 +2677,7 @@ const re = (e) => {
|
|
|
2677
2677
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2678
2678
|
*/
|
|
2679
2679
|
"caret-color": [{
|
|
2680
|
-
caret:
|
|
2680
|
+
caret: k()
|
|
2681
2681
|
}],
|
|
2682
2682
|
/**
|
|
2683
2683
|
* Color Scheme
|
|
@@ -2691,7 +2691,7 @@ const re = (e) => {
|
|
|
2691
2691
|
* @see https://tailwindcss.com/docs/cursor
|
|
2692
2692
|
*/
|
|
2693
2693
|
cursor: [{
|
|
2694
|
-
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out",
|
|
2694
|
+
cursor: ["auto", "default", "pointer", "wait", "text", "move", "help", "not-allowed", "none", "context-menu", "progress", "cell", "crosshair", "vertical-text", "alias", "copy", "no-drop", "grab", "grabbing", "all-scroll", "col-resize", "row-resize", "n-resize", "e-resize", "s-resize", "w-resize", "ne-resize", "nw-resize", "se-resize", "sw-resize", "ew-resize", "ns-resize", "nesw-resize", "nwse-resize", "zoom-in", "zoom-out", A, P]
|
|
2695
2695
|
}],
|
|
2696
2696
|
/**
|
|
2697
2697
|
* Field Sizing
|
|
@@ -2913,7 +2913,7 @@ const re = (e) => {
|
|
|
2913
2913
|
* @see https://tailwindcss.com/docs/will-change
|
|
2914
2914
|
*/
|
|
2915
2915
|
"will-change": [{
|
|
2916
|
-
"will-change": ["auto", "scroll", "contents", "transform",
|
|
2916
|
+
"will-change": ["auto", "scroll", "contents", "transform", A, P]
|
|
2917
2917
|
}],
|
|
2918
2918
|
// -----------
|
|
2919
2919
|
// --- SVG ---
|
|
@@ -2923,21 +2923,21 @@ const re = (e) => {
|
|
|
2923
2923
|
* @see https://tailwindcss.com/docs/fill
|
|
2924
2924
|
*/
|
|
2925
2925
|
fill: [{
|
|
2926
|
-
fill: ["none", ...
|
|
2926
|
+
fill: ["none", ...k()]
|
|
2927
2927
|
}],
|
|
2928
2928
|
/**
|
|
2929
2929
|
* Stroke Width
|
|
2930
2930
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
2931
2931
|
*/
|
|
2932
2932
|
"stroke-w": [{
|
|
2933
|
-
stroke: [V, Et,
|
|
2933
|
+
stroke: [V, Et, He, fn]
|
|
2934
2934
|
}],
|
|
2935
2935
|
/**
|
|
2936
2936
|
* Stroke
|
|
2937
2937
|
* @see https://tailwindcss.com/docs/stroke
|
|
2938
2938
|
*/
|
|
2939
2939
|
stroke: [{
|
|
2940
|
-
stroke: ["none", ...
|
|
2940
|
+
stroke: ["none", ...k()]
|
|
2941
2941
|
}],
|
|
2942
2942
|
// ---------------------
|
|
2943
2943
|
// --- Accessibility ---
|
|
@@ -3157,16 +3157,16 @@ function ml(...e) {
|
|
|
3157
3157
|
};
|
|
3158
3158
|
return n.scopeName = t.scopeName, n;
|
|
3159
3159
|
}
|
|
3160
|
-
var
|
|
3160
|
+
var Ie = globalThis != null && globalThis.document ? l.useLayoutEffect : () => {
|
|
3161
3161
|
}, hl = l.useId || (() => {
|
|
3162
3162
|
}), gl = 0;
|
|
3163
3163
|
function Ot(e) {
|
|
3164
3164
|
const [t, n] = l.useState(hl());
|
|
3165
|
-
return
|
|
3165
|
+
return Ie(() => {
|
|
3166
3166
|
n((r) => r ?? String(gl++));
|
|
3167
3167
|
}, [e]), e || (t ? `radix-${t}` : "");
|
|
3168
3168
|
}
|
|
3169
|
-
function
|
|
3169
|
+
function he(e) {
|
|
3170
3170
|
const t = l.useRef(e);
|
|
3171
3171
|
return l.useEffect(() => {
|
|
3172
3172
|
t.current = e;
|
|
@@ -3181,7 +3181,7 @@ function Kn({
|
|
|
3181
3181
|
onChange: n = () => {
|
|
3182
3182
|
}
|
|
3183
3183
|
}) {
|
|
3184
|
-
const [r, o] = vl({ defaultProp: t, onChange: n }), a = e !== void 0, s = a ? e : r, c =
|
|
3184
|
+
const [r, o] = vl({ defaultProp: t, onChange: n }), a = e !== void 0, s = a ? e : r, c = he(n), u = l.useCallback(
|
|
3185
3185
|
(d) => {
|
|
3186
3186
|
if (a) {
|
|
3187
3187
|
const m = typeof d == "function" ? d(e) : d;
|
|
@@ -3197,12 +3197,12 @@ function vl({
|
|
|
3197
3197
|
defaultProp: e,
|
|
3198
3198
|
onChange: t
|
|
3199
3199
|
}) {
|
|
3200
|
-
const n = l.useState(e), [r] = n, o = l.useRef(r), a =
|
|
3200
|
+
const n = l.useState(e), [r] = n, o = l.useRef(r), a = he(t);
|
|
3201
3201
|
return l.useEffect(() => {
|
|
3202
3202
|
o.current !== r && (a(r), o.current = r);
|
|
3203
3203
|
}, [r, o, a]), n;
|
|
3204
3204
|
}
|
|
3205
|
-
var
|
|
3205
|
+
var be = l.forwardRef((e, t) => {
|
|
3206
3206
|
const { children: n, ...r } = e, o = l.Children.toArray(n), a = o.find(bl);
|
|
3207
3207
|
if (a) {
|
|
3208
3208
|
const s = a.props.children, c = o.map((u) => u === a ? l.Children.count(s) > 1 ? l.Children.only(null) : l.isValidElement(s) ? s.props.children : null : u);
|
|
@@ -3210,7 +3210,7 @@ var ve = l.forwardRef((e, t) => {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
return /* @__PURE__ */ i(kn, { ...r, ref: t, children: n });
|
|
3212
3212
|
});
|
|
3213
|
-
|
|
3213
|
+
be.displayName = "Slot";
|
|
3214
3214
|
var kn = l.forwardRef((e, t) => {
|
|
3215
3215
|
const { children: n, ...r } = e;
|
|
3216
3216
|
if (l.isValidElement(n)) {
|
|
@@ -3258,7 +3258,7 @@ var xl = [
|
|
|
3258
3258
|
"ul"
|
|
3259
3259
|
], Q = xl.reduce((e, t) => {
|
|
3260
3260
|
const n = l.forwardRef((r, o) => {
|
|
3261
|
-
const { asChild: a, ...s } = r, c = a ?
|
|
3261
|
+
const { asChild: a, ...s } = r, c = a ? be : 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 };
|
|
@@ -3267,7 +3267,7 @@ function wo(e, t) {
|
|
|
3267
3267
|
e && Vn.flushSync(() => e.dispatchEvent(t));
|
|
3268
3268
|
}
|
|
3269
3269
|
function Nl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3270
|
-
const n =
|
|
3270
|
+
const n = he(e);
|
|
3271
3271
|
l.useEffect(() => {
|
|
3272
3272
|
const r = (o) => {
|
|
3273
3273
|
o.key === "Escape" && n(o);
|
|
@@ -3290,11 +3290,11 @@ var Cl = "DismissableLayer", Mn = "dismissableLayer.update", El = "dismissableLa
|
|
|
3290
3290
|
onDismiss: c,
|
|
3291
3291
|
...u
|
|
3292
3292
|
} = e, d = l.useContext(xo), [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 = Rl((T) => {
|
|
3293
|
-
const
|
|
3293
|
+
const F = T.target, I = [...d.branches].some((W) => W.contains(F));
|
|
3294
3294
|
!C || I || (o == null || o(T), s == null || s(T), T.defaultPrevented || c == null || c());
|
|
3295
3295
|
}, v), E = Pl((T) => {
|
|
3296
|
-
const
|
|
3297
|
-
[...d.branches].some((W) => W.contains(
|
|
3296
|
+
const F = T.target;
|
|
3297
|
+
[...d.branches].some((W) => W.contains(F)) || (a == null || a(T), s == null || s(T), T.defaultPrevented || c == null || c());
|
|
3298
3298
|
}, v);
|
|
3299
3299
|
return Nl((T) => {
|
|
3300
3300
|
w === d.layers.size - 1 && (r == null || r(T), !T.defaultPrevented && c && (T.preventDefault(), c()));
|
|
@@ -3340,7 +3340,7 @@ var Tl = "DismissableLayerBranch", No = l.forwardRef((e, t) => {
|
|
|
3340
3340
|
});
|
|
3341
3341
|
No.displayName = Tl;
|
|
3342
3342
|
function Rl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3343
|
-
const n =
|
|
3343
|
+
const n = he(e), r = l.useRef(!1), o = l.useRef(() => {
|
|
3344
3344
|
});
|
|
3345
3345
|
return l.useEffect(() => {
|
|
3346
3346
|
const a = (c) => {
|
|
@@ -3370,7 +3370,7 @@ function Rl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
3370
3370
|
};
|
|
3371
3371
|
}
|
|
3372
3372
|
function Pl(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
3373
|
-
const n =
|
|
3373
|
+
const n = he(e), r = l.useRef(!1);
|
|
3374
3374
|
return l.useEffect(() => {
|
|
3375
3375
|
const o = (a) => {
|
|
3376
3376
|
a.target && !r.current && Co(Sl, n, { originalEvent: a }, {
|
|
@@ -3398,7 +3398,7 @@ var Al = Ht, kl = No, pn = "focusScope.autoFocusOnMount", mn = "focusScope.autoF
|
|
|
3398
3398
|
onMountAutoFocus: o,
|
|
3399
3399
|
onUnmountAutoFocus: a,
|
|
3400
3400
|
...s
|
|
3401
|
-
} = e, [c, u] = l.useState(null), d =
|
|
3401
|
+
} = e, [c, u] = l.useState(null), d = he(o), p = he(a), m = l.useRef(null), v = le(t, (f) => u(f)), g = l.useRef({
|
|
3402
3402
|
paused: !1,
|
|
3403
3403
|
pause() {
|
|
3404
3404
|
this.paused = !0;
|
|
@@ -3412,15 +3412,15 @@ var Al = Ht, kl = No, pn = "focusScope.autoFocusOnMount", mn = "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 : De(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) || De(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 && De(c);
|
|
3424
3424
|
};
|
|
3425
3425
|
document.addEventListener("focusin", f), document.addEventListener("focusout", h);
|
|
3426
3426
|
const w = new MutationObserver(b);
|
|
@@ -3434,12 +3434,12 @@ var Al = Ht, kl = No, pn = "focusScope.autoFocusOnMount", mn = "focusScope.autoF
|
|
|
3434
3434
|
const f = document.activeElement;
|
|
3435
3435
|
if (!c.contains(f)) {
|
|
3436
3436
|
const b = new CustomEvent(pn, Pr);
|
|
3437
|
-
c.addEventListener(pn, d), c.dispatchEvent(b), b.defaultPrevented || (Ol($l(So(c)), { select: !0 }), document.activeElement === f &&
|
|
3437
|
+
c.addEventListener(pn, d), c.dispatchEvent(b), b.defaultPrevented || (Ol($l(So(c)), { select: !0 }), document.activeElement === f && De(c));
|
|
3438
3438
|
}
|
|
3439
3439
|
return () => {
|
|
3440
3440
|
c.removeEventListener(pn, d), setTimeout(() => {
|
|
3441
3441
|
const b = new CustomEvent(mn, Pr);
|
|
3442
|
-
c.addEventListener(mn, p), c.dispatchEvent(b), b.defaultPrevented ||
|
|
3442
|
+
c.addEventListener(mn, p), c.dispatchEvent(b), b.defaultPrevented || De(f ?? document.body, { select: !0 }), c.removeEventListener(mn, p), kr.remove(g);
|
|
3443
3443
|
}, 0);
|
|
3444
3444
|
};
|
|
3445
3445
|
}
|
|
@@ -3450,7 +3450,7 @@ var Al = Ht, kl = No, pn = "focusScope.autoFocusOnMount", mn = "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] = Dl(w);
|
|
3453
|
-
N && C ? !f.shiftKey && b === C ? (f.preventDefault(), n &&
|
|
3453
|
+
N && C ? !f.shiftKey && b === C ? (f.preventDefault(), n && De(N, { select: !0 })) : f.shiftKey && b === N && (f.preventDefault(), n && De(C, { select: !0 })) : b === w && f.preventDefault();
|
|
3454
3454
|
}
|
|
3455
3455
|
},
|
|
3456
3456
|
[n, r, g.paused]
|
|
@@ -3461,7 +3461,7 @@ Eo.displayName = Ml;
|
|
|
3461
3461
|
function Ol(e, { select: t = !1 } = {}) {
|
|
3462
3462
|
const n = document.activeElement;
|
|
3463
3463
|
for (const r of e)
|
|
3464
|
-
if (
|
|
3464
|
+
if (De(r, { select: t }), document.activeElement !== n) return;
|
|
3465
3465
|
}
|
|
3466
3466
|
function Dl(e) {
|
|
3467
3467
|
const t = So(e), n = Ar(t, e), r = Ar(t.reverse(), e);
|
|
@@ -3493,7 +3493,7 @@ function Il(e, { upTo: t }) {
|
|
|
3493
3493
|
function _l(e) {
|
|
3494
3494
|
return e instanceof HTMLInputElement && "select" in e;
|
|
3495
3495
|
}
|
|
3496
|
-
function
|
|
3496
|
+
function De(e, { select: t = !1 } = {}) {
|
|
3497
3497
|
if (e && e.focus) {
|
|
3498
3498
|
const n = document.activeElement;
|
|
3499
3499
|
e.focus({ preventScroll: !0 }), e !== n && _l(e) && t && e.select();
|
|
@@ -3523,7 +3523,7 @@ function $l(e) {
|
|
|
3523
3523
|
var Fl = "Portal", Ut = l.forwardRef((e, t) => {
|
|
3524
3524
|
var c;
|
|
3525
3525
|
const { container: n, ...r } = e, [o, a] = l.useState(!1);
|
|
3526
|
-
|
|
3526
|
+
Ie(() => a(!0), []);
|
|
3527
3527
|
const s = n || o && ((c = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : c.body);
|
|
3528
3528
|
return s ? Ss.createPortal(/* @__PURE__ */ i(Q.div, { ...r, ref: t }), s) : null;
|
|
3529
3529
|
});
|
|
@@ -3531,11 +3531,11 @@ Ut.displayName = Fl;
|
|
|
3531
3531
|
function zl(e, t) {
|
|
3532
3532
|
return l.useReducer((n, r) => t[n][r] ?? n, e);
|
|
3533
3533
|
}
|
|
3534
|
-
var
|
|
3534
|
+
var Ye = (e) => {
|
|
3535
3535
|
const { present: t, children: n } = e, r = Wl(t), o = typeof n == "function" ? n({ present: r.isPresent }) : l.Children.only(n), a = le(r.ref, Bl(o));
|
|
3536
3536
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3537
3537
|
};
|
|
3538
|
-
|
|
3538
|
+
Ye.displayName = "Presence";
|
|
3539
3539
|
function Wl(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] = zl(s, {
|
|
3541
3541
|
mounted: {
|
|
@@ -3553,13 +3553,13 @@ function Wl(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]), Ie(() => {
|
|
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]), Ie(() => {
|
|
3563
3563
|
if (t) {
|
|
3564
3564
|
let d;
|
|
3565
3565
|
const p = t.ownerDocument.defaultView ?? window, m = (g) => {
|
|
@@ -3606,14 +3606,14 @@ function Or() {
|
|
|
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 Ne = function() {
|
|
3610
|
+
return Ne = 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
|
+
}, Ne.apply(this, arguments);
|
|
3617
3617
|
};
|
|
3618
3618
|
function To(e, t) {
|
|
3619
3619
|
var n = {};
|
|
@@ -3633,7 +3633,7 @@ function gn(e, t) {
|
|
|
3633
3633
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
3634
3634
|
}
|
|
3635
3635
|
function Gl(e, t) {
|
|
3636
|
-
var n =
|
|
3636
|
+
var n = ve(function() {
|
|
3637
3637
|
return {
|
|
3638
3638
|
// value
|
|
3639
3639
|
value: e,
|
|
@@ -3734,7 +3734,7 @@ function Xl(e, t) {
|
|
|
3734
3734
|
function Ql(e) {
|
|
3735
3735
|
e === void 0 && (e = {});
|
|
3736
3736
|
var t = Xl(null);
|
|
3737
|
-
return t.options =
|
|
3737
|
+
return t.options = Ne({ async: !0, ssr: !1 }, e), t;
|
|
3738
3738
|
}
|
|
3739
3739
|
var Ro = function(e) {
|
|
3740
3740
|
var t = e.sideCar, n = To(e, ["sideCar"]);
|
|
@@ -3743,7 +3743,7 @@ var Ro = function(e) {
|
|
|
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, Ne({}, n));
|
|
3747
3747
|
};
|
|
3748
3748
|
Ro.isSideCarExport = !0;
|
|
3749
3749
|
function Zl(e, t) {
|
|
@@ -3755,12 +3755,12 @@ var Po = Ql(), vn = function() {
|
|
|
3755
3755
|
onScrollCapture: vn,
|
|
3756
3756
|
onWheelCapture: vn,
|
|
3757
3757
|
onTouchMoveCapture: vn
|
|
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 = To(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, S = Yl([n, t]), E =
|
|
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 = To(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), C = v, S = Yl([n, t]), E = Ne(Ne({}, N), o);
|
|
3759
3759
|
return l.createElement(
|
|
3760
3760
|
l.Fragment,
|
|
3761
3761
|
null,
|
|
3762
3762
|
p && l.createElement(C, { sideCar: Po, removeScrollBar: d, shards: m, noIsolation: g, inert: y, setCallbacks: a, allowPinchZoom: !!f, lockRef: n, gapMode: w }),
|
|
3763
|
-
s ? l.cloneElement(l.Children.only(c),
|
|
3763
|
+
s ? l.cloneElement(l.Children.only(c), Ne(Ne({}, E), { ref: S })) : l.createElement(b, Ne({}, E, { className: u, ref: S }), c)
|
|
3764
3764
|
);
|
|
3765
3765
|
});
|
|
3766
3766
|
Gt.defaultProps = {
|
|
@@ -3836,14 +3836,14 @@ var rc = function() {
|
|
|
3836
3836
|
right: t[2],
|
|
3837
3837
|
gap: Math.max(0, r - n + t[2] - t[0])
|
|
3838
3838
|
};
|
|
3839
|
-
}, lc = Ao(),
|
|
3839
|
+
}, lc = Ao(), et = "data-scroll-locked", cc = 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(Hl, ` {
|
|
3843
3843
|
overflow: hidden `).concat(r, `;
|
|
3844
3844
|
padding-right: `).concat(c, "px ").concat(r, `;
|
|
3845
3845
|
}
|
|
3846
|
-
body[`).concat(
|
|
3846
|
+
body[`).concat(et, `] {
|
|
3847
3847
|
overflow: hidden `).concat(r, `;
|
|
3848
3848
|
overscroll-behavior: contain;
|
|
3849
3849
|
`).concat([
|
|
@@ -3876,18 +3876,18 @@ var rc = function() {
|
|
|
3876
3876
|
margin-right: 0 `).concat(r, `;
|
|
3877
3877
|
}
|
|
3878
3878
|
|
|
3879
|
-
body[`).concat(
|
|
3879
|
+
body[`).concat(et, `] {
|
|
3880
3880
|
`).concat(Ul, ": ").concat(c, `px;
|
|
3881
3881
|
}
|
|
3882
3882
|
`);
|
|
3883
3883
|
}, Ir = function() {
|
|
3884
|
-
var e = parseInt(document.body.getAttribute(
|
|
3884
|
+
var e = parseInt(document.body.getAttribute(et) || "0", 10);
|
|
3885
3885
|
return isFinite(e) ? e : 0;
|
|
3886
3886
|
}, dc = function() {
|
|
3887
3887
|
l.useEffect(function() {
|
|
3888
|
-
return document.body.setAttribute(
|
|
3888
|
+
return document.body.setAttribute(et, (Ir() + 1).toString()), function() {
|
|
3889
3889
|
var e = Ir() - 1;
|
|
3890
|
-
e <= 0 ? document.body.removeAttribute(
|
|
3890
|
+
e <= 0 ? document.body.removeAttribute(et) : document.body.setAttribute(et, e.toString());
|
|
3891
3891
|
};
|
|
3892
3892
|
}, []);
|
|
3893
3893
|
}, uc = function(e) {
|
|
@@ -3909,7 +3909,7 @@ if (typeof window < "u")
|
|
|
3909
3909
|
} catch {
|
|
3910
3910
|
On = !1;
|
|
3911
3911
|
}
|
|
3912
|
-
var
|
|
3912
|
+
var Qe = On ? { passive: !1 } : !1, fc = function(e) {
|
|
3913
3913
|
return e.tagName === "TEXTAREA";
|
|
3914
3914
|
}, ko = function(e, t) {
|
|
3915
3915
|
if (!(e instanceof Element))
|
|
@@ -3981,7 +3981,7 @@ var Xe = On ? { passive: !1 } : !1, fc = function(e) {
|
|
|
3981
3981
|
.block-interactivity-`.concat(e, ` {pointer-events: none;}
|
|
3982
3982
|
.allow-interactivity-`).concat(e, ` {pointer-events: all;}
|
|
3983
3983
|
`);
|
|
3984
|
-
}, xc = 0,
|
|
3984
|
+
}, xc = 0, Ze = [];
|
|
3985
3985
|
function Nc(e) {
|
|
3986
3986
|
var t = l.useRef([]), n = l.useRef([0, 0]), r = l.useRef(), o = l.useState(xc++)[0], a = l.useState(Ao)[0], s = l.useRef(e);
|
|
3987
3987
|
l.useEffect(function() {
|
|
@@ -4005,10 +4005,10 @@ function Nc(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
|
|
4009
|
-
if (!
|
|
4008
|
+
var F = _r(T, E);
|
|
4009
|
+
if (!F)
|
|
4010
4010
|
return !0;
|
|
4011
|
-
if (
|
|
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,7 +4016,7 @@ function Nc(e) {
|
|
|
4016
4016
|
return bc(I, h, f, I === "h" ? N : C);
|
|
4017
4017
|
}, []), u = l.useCallback(function(f) {
|
|
4018
4018
|
var h = f;
|
|
4019
|
-
if (!(!
|
|
4019
|
+
if (!(!Ze.length || Ze[Ze.length - 1] !== a)) {
|
|
4020
4020
|
var b = "deltaY" in h ? Lr(h) : Rt(h), w = t.current.filter(function(S) {
|
|
4021
4021
|
return S.name === h.type && (S.target === h.target || h.target === S.shadowParent) && yc(S.delta, b);
|
|
4022
4022
|
})[0];
|
|
@@ -4046,14 +4046,14 @@ function Nc(e) {
|
|
|
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 Ze.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, Qe), document.addEventListener("touchmove", u, Qe), document.addEventListener("touchstart", p, Qe), function() {
|
|
4054
|
+
Ze = Ze.filter(function(f) {
|
|
4055
4055
|
return f !== a;
|
|
4056
|
-
}), document.removeEventListener("wheel", u,
|
|
4056
|
+
}), document.removeEventListener("wheel", u, Qe), document.removeEventListener("touchmove", u, Qe), document.removeEventListener("touchstart", p, Qe);
|
|
4057
4057
|
};
|
|
4058
4058
|
}, []);
|
|
4059
4059
|
var g = e.removeScrollBar, y = e.inert;
|
|
@@ -4071,7 +4071,7 @@ function Cc(e) {
|
|
|
4071
4071
|
}
|
|
4072
4072
|
const Ec = Zl(Po, Nc);
|
|
4073
4073
|
var Do = l.forwardRef(function(e, t) {
|
|
4074
|
-
return l.createElement(Gt,
|
|
4074
|
+
return l.createElement(Gt, Ne({}, e, { ref: t, sideCar: Ec }));
|
|
4075
4075
|
});
|
|
4076
4076
|
Do.classNames = Gt.classNames;
|
|
4077
4077
|
var Sc = function(e) {
|
|
@@ -4079,7 +4079,7 @@ var Sc = function(e) {
|
|
|
4079
4079
|
return null;
|
|
4080
4080
|
var t = Array.isArray(e) ? e[0] : e;
|
|
4081
4081
|
return t.ownerDocument.body;
|
|
4082
|
-
},
|
|
4082
|
+
}, Je = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {}, yn = 0, Io = function(e) {
|
|
4083
4083
|
return e && (e.host || Io(e.parentNode));
|
|
4084
4084
|
}, Tc = function(e, t) {
|
|
4085
4085
|
return t.map(function(n) {
|
|
@@ -4103,8 +4103,8 @@ var Sc = 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 = (Je.get(v) || 0) + 1, h = (a.get(v) || 0) + 1;
|
|
4107
|
+
Je.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 Sc = function(e) {
|
|
|
4112
4112
|
};
|
|
4113
4113
|
return p(t), c.clear(), yn++, function() {
|
|
4114
4114
|
s.forEach(function(m) {
|
|
4115
|
-
var v =
|
|
4116
|
-
|
|
4117
|
-
}), yn--, yn || (
|
|
4115
|
+
var v = Je.get(m) - 1, g = a.get(m) - 1;
|
|
4116
|
+
Je.set(m, v), a.set(m, g), v || (Pt.has(m) || m.removeAttribute(r), Pt.delete(m)), g || m.removeAttribute(n);
|
|
4117
|
+
}), yn--, yn || (Je = /* @__PURE__ */ new WeakMap(), Je = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {});
|
|
4118
4118
|
};
|
|
4119
4119
|
}, Pc = function(e, t, n) {
|
|
4120
4120
|
n === void 0 && (n = "data-aria-hidden");
|
|
@@ -4122,7 +4122,7 @@ var Sc = function(e) {
|
|
|
4122
4122
|
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live]"))), Rc(r, o, n, "aria-hidden")) : function() {
|
|
4123
4123
|
return null;
|
|
4124
4124
|
};
|
|
4125
|
-
}, Yn = "Dialog", [_o, Vf] = vt(Yn), [Ac,
|
|
4125
|
+
}, Yn = "Dialog", [_o, Vf] = vt(Yn), [Ac, xe] = _o(Yn), Lo = (e) => {
|
|
4126
4126
|
const {
|
|
4127
4127
|
__scopeDialog: t,
|
|
4128
4128
|
children: n,
|
|
@@ -4155,7 +4155,7 @@ var Sc = function(e) {
|
|
|
4155
4155
|
Lo.displayName = Yn;
|
|
4156
4156
|
var $o = "DialogTrigger", Fo = l.forwardRef(
|
|
4157
4157
|
(e, t) => {
|
|
4158
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
4158
|
+
const { __scopeDialog: n, ...r } = e, o = xe($o, n), a = le(t, o.triggerRef);
|
|
4159
4159
|
return /* @__PURE__ */ i(
|
|
4160
4160
|
Q.button,
|
|
4161
4161
|
{
|
|
@@ -4175,24 +4175,24 @@ Fo.displayName = $o;
|
|
|
4175
4175
|
var qn = "DialogPortal", [kc, zo] = _o(qn, {
|
|
4176
4176
|
forceMount: void 0
|
|
4177
4177
|
}), Wo = (e) => {
|
|
4178
|
-
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a =
|
|
4179
|
-
return /* @__PURE__ */ i(kc, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ i(
|
|
4178
|
+
const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = xe(qn, t);
|
|
4179
|
+
return /* @__PURE__ */ i(kc, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ i(Ye, { present: n || a.open, children: /* @__PURE__ */ i(Ut, { asChild: !0, container: o, children: s }) })) });
|
|
4180
4180
|
};
|
|
4181
4181
|
Wo.displayName = qn;
|
|
4182
4182
|
var zt = "DialogOverlay", Bo = l.forwardRef(
|
|
4183
4183
|
(e, t) => {
|
|
4184
|
-
const n = zo(zt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a =
|
|
4185
|
-
return a.modal ? /* @__PURE__ */ i(
|
|
4184
|
+
const n = zo(zt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = xe(zt, e.__scopeDialog);
|
|
4185
|
+
return a.modal ? /* @__PURE__ */ i(Ye, { present: r || a.open, children: /* @__PURE__ */ i(Mc, { ...o, ref: t }) }) : null;
|
|
4186
4186
|
}
|
|
4187
4187
|
);
|
|
4188
4188
|
Bo.displayName = zt;
|
|
4189
4189
|
var Mc = l.forwardRef(
|
|
4190
4190
|
(e, t) => {
|
|
4191
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
4191
|
+
const { __scopeDialog: n, ...r } = e, o = xe(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(Do, { as:
|
|
4195
|
+
/* @__PURE__ */ i(Do, { as: be, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
|
|
4196
4196
|
Q.div,
|
|
4197
4197
|
{
|
|
4198
4198
|
"data-state": Qn(o.open),
|
|
@@ -4203,16 +4203,16 @@ var Mc = l.forwardRef(
|
|
|
4203
4203
|
) })
|
|
4204
4204
|
);
|
|
4205
4205
|
}
|
|
4206
|
-
),
|
|
4206
|
+
), Ge = "DialogContent", jo = l.forwardRef(
|
|
4207
4207
|
(e, t) => {
|
|
4208
|
-
const n = zo(
|
|
4209
|
-
return /* @__PURE__ */ i(
|
|
4208
|
+
const n = zo(Ge, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = xe(Ge, e.__scopeDialog);
|
|
4209
|
+
return /* @__PURE__ */ i(Ye, { present: r || a.open, children: a.modal ? /* @__PURE__ */ i(Oc, { ...o, ref: t }) : /* @__PURE__ */ i(Dc, { ...o, ref: t }) });
|
|
4210
4210
|
}
|
|
4211
4211
|
);
|
|
4212
|
-
jo.displayName =
|
|
4212
|
+
jo.displayName = Ge;
|
|
4213
4213
|
var Oc = l.forwardRef(
|
|
4214
4214
|
(e, t) => {
|
|
4215
|
-
const n =
|
|
4215
|
+
const n = xe(Ge, 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 Pc(a);
|
|
@@ -4240,7 +4240,7 @@ var Oc = l.forwardRef(
|
|
|
4240
4240
|
}
|
|
4241
4241
|
), Dc = l.forwardRef(
|
|
4242
4242
|
(e, t) => {
|
|
4243
|
-
const n =
|
|
4243
|
+
const n = xe(Ge, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
|
|
4244
4244
|
return /* @__PURE__ */ i(
|
|
4245
4245
|
Vo,
|
|
4246
4246
|
{
|
|
@@ -4263,7 +4263,7 @@ var Oc = l.forwardRef(
|
|
|
4263
4263
|
}
|
|
4264
4264
|
), Vo = l.forwardRef(
|
|
4265
4265
|
(e, t) => {
|
|
4266
|
-
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, c =
|
|
4266
|
+
const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, c = xe(Ge, n), u = l.useRef(null), d = le(t, u);
|
|
4267
4267
|
return jl(), /* @__PURE__ */ x(te, { children: [
|
|
4268
4268
|
/* @__PURE__ */ i(
|
|
4269
4269
|
Eo,
|
|
@@ -4296,21 +4296,21 @@ var Oc = l.forwardRef(
|
|
|
4296
4296
|
}
|
|
4297
4297
|
), Xn = "DialogTitle", Ho = l.forwardRef(
|
|
4298
4298
|
(e, t) => {
|
|
4299
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
4299
|
+
const { __scopeDialog: n, ...r } = e, o = xe(Xn, n);
|
|
4300
4300
|
return /* @__PURE__ */ i(Q.h2, { id: o.titleId, ...r, ref: t });
|
|
4301
4301
|
}
|
|
4302
4302
|
);
|
|
4303
4303
|
Ho.displayName = Xn;
|
|
4304
4304
|
var Uo = "DialogDescription", Go = l.forwardRef(
|
|
4305
4305
|
(e, t) => {
|
|
4306
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
4306
|
+
const { __scopeDialog: n, ...r } = e, o = xe(Uo, n);
|
|
4307
4307
|
return /* @__PURE__ */ i(Q.p, { id: o.descriptionId, ...r, ref: t });
|
|
4308
4308
|
}
|
|
4309
4309
|
);
|
|
4310
4310
|
Go.displayName = Uo;
|
|
4311
4311
|
var Ko = "DialogClose", Yo = l.forwardRef(
|
|
4312
4312
|
(e, t) => {
|
|
4313
|
-
const { __scopeDialog: n, ...r } = e, o =
|
|
4313
|
+
const { __scopeDialog: n, ...r } = e, o = xe(Ko, n);
|
|
4314
4314
|
return /* @__PURE__ */ i(
|
|
4315
4315
|
Q.button,
|
|
4316
4316
|
{
|
|
@@ -4327,7 +4327,7 @@ function Qn(e) {
|
|
|
4327
4327
|
return e ? "open" : "closed";
|
|
4328
4328
|
}
|
|
4329
4329
|
var qo = "DialogTitleWarning", [Hf, Xo] = pl(qo, {
|
|
4330
|
-
contentName:
|
|
4330
|
+
contentName: Ge,
|
|
4331
4331
|
titleName: Xn,
|
|
4332
4332
|
docsSlug: "dialog"
|
|
4333
4333
|
}), Ic = ({ titleId: e }) => {
|
|
@@ -4491,7 +4491,7 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
|
|
|
4491
4491
|
}
|
|
4492
4492
|
), ie = l.forwardRef(
|
|
4493
4493
|
({ className: e, variant: t, size: n, asChild: r = !1, confirmationDialog: o, onClick: a, ...s }, c) => {
|
|
4494
|
-
const u = r ?
|
|
4494
|
+
const u = r ? be : "button";
|
|
4495
4495
|
if (!o)
|
|
4496
4496
|
return /* @__PURE__ */ i(
|
|
4497
4497
|
u,
|
|
@@ -4531,7 +4531,7 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
|
|
|
4531
4531
|
}
|
|
4532
4532
|
);
|
|
4533
4533
|
ie.displayName = "Button";
|
|
4534
|
-
const Fc = ["top", "right", "bottom", "left"],
|
|
4534
|
+
const Fc = ["top", "right", "bottom", "left"], _e = Math.min, fe = Math.max, Wt = Math.round, kt = Math.floor, Ce = (e) => ({
|
|
4535
4535
|
x: e,
|
|
4536
4536
|
y: e
|
|
4537
4537
|
}), zc = {
|
|
@@ -4544,15 +4544,15 @@ const Fc = ["top", "right", "bottom", "left"], Ie = Math.min, fe = Math.max, Wt
|
|
|
4544
4544
|
end: "start"
|
|
4545
4545
|
};
|
|
4546
4546
|
function Dn(e, t, n) {
|
|
4547
|
-
return fe(e,
|
|
4547
|
+
return fe(e, _e(t, n));
|
|
4548
4548
|
}
|
|
4549
|
-
function
|
|
4549
|
+
function Pe(e, t) {
|
|
4550
4550
|
return typeof e == "function" ? e(t) : e;
|
|
4551
4551
|
}
|
|
4552
|
-
function
|
|
4552
|
+
function Ae(e) {
|
|
4553
4553
|
return e.split("-")[0];
|
|
4554
4554
|
}
|
|
4555
|
-
function
|
|
4555
|
+
function it(e) {
|
|
4556
4556
|
return e.split("-")[1];
|
|
4557
4557
|
}
|
|
4558
4558
|
function tr(e) {
|
|
@@ -4561,15 +4561,15 @@ function tr(e) {
|
|
|
4561
4561
|
function nr(e) {
|
|
4562
4562
|
return e === "y" ? "height" : "width";
|
|
4563
4563
|
}
|
|
4564
|
-
function
|
|
4565
|
-
return ["top", "bottom"].includes(
|
|
4564
|
+
function Le(e) {
|
|
4565
|
+
return ["top", "bottom"].includes(Ae(e)) ? "y" : "x";
|
|
4566
4566
|
}
|
|
4567
4567
|
function rr(e) {
|
|
4568
|
-
return tr(
|
|
4568
|
+
return tr(Le(e));
|
|
4569
4569
|
}
|
|
4570
4570
|
function Bc(e, t, n) {
|
|
4571
4571
|
n === void 0 && (n = !1);
|
|
4572
|
-
const r =
|
|
4572
|
+
const r = it(e), o = rr(e), a = nr(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,8 +4594,8 @@ function Vc(e, t, n) {
|
|
|
4594
4594
|
}
|
|
4595
4595
|
}
|
|
4596
4596
|
function Hc(e, t, n, r) {
|
|
4597
|
-
const o =
|
|
4598
|
-
let a = Vc(
|
|
4597
|
+
const o = it(e);
|
|
4598
|
+
let a = Vc(Ae(e), n === "start", r);
|
|
4599
4599
|
return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(In)))), a;
|
|
4600
4600
|
}
|
|
4601
4601
|
function Bt(e) {
|
|
@@ -4641,7 +4641,7 @@ function jr(e, t, n) {
|
|
|
4641
4641
|
reference: r,
|
|
4642
4642
|
floating: o
|
|
4643
4643
|
} = e;
|
|
4644
|
-
const a =
|
|
4644
|
+
const a = Le(t), s = rr(t), c = nr(s), u = Ae(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 jr(e, t, n) {
|
|
|
4674
4674
|
y: r.y
|
|
4675
4675
|
};
|
|
4676
4676
|
}
|
|
4677
|
-
switch (
|
|
4677
|
+
switch (it(t)) {
|
|
4678
4678
|
case "start":
|
|
4679
4679
|
g[s] -= v * (n && d ? -1 : 1);
|
|
4680
4680
|
break;
|
|
@@ -4761,7 +4761,7 @@ async function ht(e, t) {
|
|
|
4761
4761
|
elementContext: m = "floating",
|
|
4762
4762
|
altBoundary: v = !1,
|
|
4763
4763
|
padding: g = 0
|
|
4764
|
-
} =
|
|
4764
|
+
} = Pe(t, e), y = ra(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,
|
|
@@ -4805,7 +4805,7 @@ const Kc = (e) => ({
|
|
|
4805
4805
|
} = t, {
|
|
4806
4806
|
element: d,
|
|
4807
4807
|
padding: p = 0
|
|
4808
|
-
} =
|
|
4808
|
+
} = Pe(e, t) || {};
|
|
4809
4809
|
if (d == null)
|
|
4810
4810
|
return {};
|
|
4811
4811
|
const m = ra(p), v = {
|
|
@@ -4814,17 +4814,17 @@ const Kc = (e) => ({
|
|
|
4814
4814
|
}, g = rr(o), y = nr(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
|
|
4817
|
+
const F = C / 2 - S / 2, I = T / 2 - f[y] / 2 - 1, W = _e(m[b], I), U = _e(m[w], I), B = W, D = T - f[y] - U, R = T / 2 - f[y] / 2 + F, j = Dn(B, R, D), k = !u.arrow && it(o) != null && R !== j && a.reference[y] / 2 - (R < B ? W : U) - f[y] / 2 < 0, H = k ? R < B ? R - B : R - D : 0;
|
|
4818
4818
|
return {
|
|
4819
4819
|
[g]: v[g] + H,
|
|
4820
4820
|
data: {
|
|
4821
4821
|
[g]: j,
|
|
4822
4822
|
centerOffset: R - j - H,
|
|
4823
|
-
...
|
|
4823
|
+
...k && {
|
|
4824
4824
|
alignmentOffset: H
|
|
4825
4825
|
}
|
|
4826
4826
|
},
|
|
4827
|
-
reset:
|
|
4827
|
+
reset: k
|
|
4828
4828
|
};
|
|
4829
4829
|
}
|
|
4830
4830
|
}), Yc = function(e) {
|
|
@@ -4848,16 +4848,16 @@ const Kc = (e) => ({
|
|
|
4848
4848
|
fallbackAxisSideDirection: y = "none",
|
|
4849
4849
|
flipAlignment: f = !0,
|
|
4850
4850
|
...h
|
|
4851
|
-
} =
|
|
4851
|
+
} = Pe(e, t);
|
|
4852
4852
|
if ((n = a.arrow) != null && n.alignmentOffset)
|
|
4853
4853
|
return {};
|
|
4854
|
-
const b =
|
|
4854
|
+
const b = Ae(o), w = Le(c), N = Ae(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (N || !f ? [Bt(c)] : jc(c)), E = y !== "none";
|
|
4855
4855
|
!v && E && S.push(...Hc(c, f, y, C));
|
|
4856
|
-
const T = [c, ...S],
|
|
4856
|
+
const T = [c, ...S], F = await ht(t, h), I = [];
|
|
4857
4857
|
let W = ((r = a.flip) == null ? void 0 : r.overflows) || [];
|
|
4858
|
-
if (p && I.push(
|
|
4858
|
+
if (p && I.push(F[b]), m) {
|
|
4859
4859
|
const R = Bc(o, s, C);
|
|
4860
|
-
I.push(
|
|
4860
|
+
I.push(F[R[0]], F[R[1]]);
|
|
4861
4861
|
}
|
|
4862
4862
|
if (W = [...W, {
|
|
4863
4863
|
placement: o,
|
|
@@ -4875,31 +4875,31 @@ const Kc = (e) => ({
|
|
|
4875
4875
|
placement: j
|
|
4876
4876
|
}
|
|
4877
4877
|
};
|
|
4878
|
-
let
|
|
4879
|
-
if (!
|
|
4878
|
+
let k = (B = W.filter((H) => H.overflows[0] <= 0).sort((H, O) => H.overflows[1] - O.overflows[1])[0]) == null ? void 0 : B.placement;
|
|
4879
|
+
if (!k)
|
|
4880
4880
|
switch (g) {
|
|
4881
4881
|
case "bestFit": {
|
|
4882
4882
|
var D;
|
|
4883
4883
|
const H = (D = W.filter((O) => {
|
|
4884
4884
|
if (E) {
|
|
4885
|
-
const $ =
|
|
4885
|
+
const $ = Le(O.placement);
|
|
4886
4886
|
return $ === w || // Create a bias to the `y` side axis due to horizontal
|
|
4887
4887
|
// reading directions favoring greater width.
|
|
4888
4888
|
$ === "y";
|
|
4889
4889
|
}
|
|
4890
4890
|
return !0;
|
|
4891
4891
|
}).map((O) => [O.placement, O.overflows.filter(($) => $ > 0).reduce(($, q) => $ + q, 0)]).sort((O, $) => O[1] - $[1])[0]) == null ? void 0 : D[0];
|
|
4892
|
-
H && (
|
|
4892
|
+
H && (k = H);
|
|
4893
4893
|
break;
|
|
4894
4894
|
}
|
|
4895
4895
|
case "initialPlacement":
|
|
4896
|
-
|
|
4896
|
+
k = c;
|
|
4897
4897
|
break;
|
|
4898
4898
|
}
|
|
4899
|
-
if (o !==
|
|
4899
|
+
if (o !== k)
|
|
4900
4900
|
return {
|
|
4901
4901
|
reset: {
|
|
4902
|
-
placement:
|
|
4902
|
+
placement: k
|
|
4903
4903
|
}
|
|
4904
4904
|
};
|
|
4905
4905
|
}
|
|
@@ -4928,7 +4928,7 @@ const qc = function(e) {
|
|
|
4928
4928
|
} = t, {
|
|
4929
4929
|
strategy: r = "referenceHidden",
|
|
4930
4930
|
...o
|
|
4931
|
-
} =
|
|
4931
|
+
} = Pe(e, t);
|
|
4932
4932
|
switch (r) {
|
|
4933
4933
|
case "referenceHidden": {
|
|
4934
4934
|
const a = await ht(t, {
|
|
@@ -4965,7 +4965,7 @@ async function Xc(e, t) {
|
|
|
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 =
|
|
4968
|
+
} = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Ae(n), c = it(n), u = Le(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, m = Pe(t, e);
|
|
4969
4969
|
let {
|
|
4970
4970
|
mainAxis: v,
|
|
4971
4971
|
crossAxis: g,
|
|
@@ -5034,10 +5034,10 @@ const Qc = function(e) {
|
|
|
5034
5034
|
}
|
|
5035
5035
|
},
|
|
5036
5036
|
...u
|
|
5037
|
-
} =
|
|
5037
|
+
} = Pe(e, t), d = {
|
|
5038
5038
|
x: n,
|
|
5039
5039
|
y: r
|
|
5040
|
-
}, p = await ht(t, u), m =
|
|
5040
|
+
}, p = await ht(t, u), m = Le(Ae(o)), v = tr(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];
|
|
@@ -5079,12 +5079,12 @@ const Qc = function(e) {
|
|
|
5079
5079
|
offset: c = 0,
|
|
5080
5080
|
mainAxis: u = !0,
|
|
5081
5081
|
crossAxis: d = !0
|
|
5082
|
-
} =
|
|
5082
|
+
} = Pe(e, t), p = {
|
|
5083
5083
|
x: n,
|
|
5084
5084
|
y: r
|
|
5085
|
-
}, m =
|
|
5085
|
+
}, m = Le(o), v = tr(m);
|
|
5086
5086
|
let g = p[v], y = p[m];
|
|
5087
|
-
const f =
|
|
5087
|
+
const f = Pe(c, t), h = typeof f == "number" ? {
|
|
5088
5088
|
mainAxis: f,
|
|
5089
5089
|
crossAxis: 0
|
|
5090
5090
|
} : {
|
|
@@ -5098,7 +5098,7 @@ const Qc = function(e) {
|
|
|
5098
5098
|
}
|
|
5099
5099
|
if (d) {
|
|
5100
5100
|
var b, w;
|
|
5101
|
-
const N = v === "y" ? "width" : "height", C = ["top", "left"].includes(
|
|
5101
|
+
const N = v === "y" ? "width" : "height", C = ["top", "left"].includes(Ae(o)), S = a.reference[m] - a.floating[N] + (C && ((b = s.offset) == null ? void 0 : b[m]) || 0) + (C ? 0 : h.crossAxis), E = a.reference[m] + a.reference[N] + (C ? 0 : ((w = s.offset) == null ? void 0 : w[m]) || 0) - (C ? h.crossAxis : 0);
|
|
5102
5102
|
y < S ? y = S : y > E && (y = E);
|
|
5103
5103
|
}
|
|
5104
5104
|
return {
|
|
@@ -5122,21 +5122,21 @@ const Qc = function(e) {
|
|
|
5122
5122
|
apply: u = () => {
|
|
5123
5123
|
},
|
|
5124
5124
|
...d
|
|
5125
|
-
} =
|
|
5125
|
+
} = Pe(e, t), p = await ht(t, d), m = Ae(o), v = it(o), g = Le(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 =
|
|
5132
|
-
let T = C,
|
|
5133
|
-
if ((n = t.middlewareData.shift) != null && n.enabled.x && (
|
|
5131
|
+
const w = f - p.top - p.bottom, N = y - p.left - p.right, C = _e(f - p[h], w), S = _e(y - p[b], N), E = !t.middlewareData.shift;
|
|
5132
|
+
let T = C, F = S;
|
|
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
5134
|
const W = fe(p.left, 0), U = fe(p.right, 0), B = fe(p.top, 0), D = fe(p.bottom, 0);
|
|
5135
|
-
g ?
|
|
5135
|
+
g ? F = y - 2 * (W !== 0 || U !== 0 ? W + U : fe(p.left, p.right)) : T = f - 2 * (B !== 0 || D !== 0 ? B + D : fe(p.top, p.bottom));
|
|
5136
5136
|
}
|
|
5137
5137
|
await u({
|
|
5138
5138
|
...t,
|
|
5139
|
-
availableWidth:
|
|
5139
|
+
availableWidth: F,
|
|
5140
5140
|
availableHeight: T
|
|
5141
5141
|
});
|
|
5142
5142
|
const I = await s.getDimensions(c.floating);
|
|
@@ -5151,24 +5151,24 @@ const Qc = function(e) {
|
|
|
5151
5151
|
function en() {
|
|
5152
5152
|
return typeof window < "u";
|
|
5153
5153
|
}
|
|
5154
|
-
function
|
|
5154
|
+
function lt(e) {
|
|
5155
5155
|
return oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
5156
5156
|
}
|
|
5157
5157
|
function pe(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 Se(e) {
|
|
5162
5162
|
var t;
|
|
5163
5163
|
return (t = (oa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
5164
5164
|
}
|
|
5165
5165
|
function oa(e) {
|
|
5166
5166
|
return en() ? e instanceof Node || e instanceof pe(e).Node : !1;
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function ye(e) {
|
|
5169
5169
|
return en() ? e instanceof Element || e instanceof pe(e).Element : !1;
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5171
|
+
function Ee(e) {
|
|
5172
5172
|
return en() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
|
|
5173
5173
|
}
|
|
5174
5174
|
function Ur(e) {
|
|
@@ -5180,11 +5180,11 @@ function yt(e) {
|
|
|
5180
5180
|
overflowX: n,
|
|
5181
5181
|
overflowY: r,
|
|
5182
5182
|
display: o
|
|
5183
|
-
} =
|
|
5183
|
+
} = we(e);
|
|
5184
5184
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5185
5185
|
}
|
|
5186
5186
|
function td(e) {
|
|
5187
|
-
return ["table", "td", "th"].includes(
|
|
5187
|
+
return ["table", "td", "th"].includes(lt(e));
|
|
5188
5188
|
}
|
|
5189
5189
|
function tn(e) {
|
|
5190
5190
|
return [":popover-open", ":modal"].some((t) => {
|
|
@@ -5196,31 +5196,31 @@ function tn(e) {
|
|
|
5196
5196
|
});
|
|
5197
5197
|
}
|
|
5198
5198
|
function or(e) {
|
|
5199
|
-
const t = ar(), n =
|
|
5199
|
+
const t = ar(), n = ye(e) ? we(e) : 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 nd(e) {
|
|
5203
|
-
let t =
|
|
5204
|
-
for (;
|
|
5203
|
+
let t = $e(e);
|
|
5204
|
+
for (; Ee(t) && !rt(t); ) {
|
|
5205
5205
|
if (or(t))
|
|
5206
5206
|
return t;
|
|
5207
5207
|
if (tn(t))
|
|
5208
5208
|
return null;
|
|
5209
|
-
t =
|
|
5209
|
+
t = $e(t);
|
|
5210
5210
|
}
|
|
5211
5211
|
return null;
|
|
5212
5212
|
}
|
|
5213
5213
|
function ar() {
|
|
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 rt(e) {
|
|
5217
|
+
return ["html", "body", "#document"].includes(lt(e));
|
|
5218
5218
|
}
|
|
5219
|
-
function
|
|
5219
|
+
function we(e) {
|
|
5220
5220
|
return pe(e).getComputedStyle(e);
|
|
5221
5221
|
}
|
|
5222
5222
|
function nn(e) {
|
|
5223
|
-
return
|
|
5223
|
+
return ye(e) ? {
|
|
5224
5224
|
scrollLeft: e.scrollLeft,
|
|
5225
5225
|
scrollTop: e.scrollTop
|
|
5226
5226
|
} : {
|
|
@@ -5228,21 +5228,21 @@ function nn(e) {
|
|
|
5228
5228
|
scrollTop: e.scrollY
|
|
5229
5229
|
};
|
|
5230
5230
|
}
|
|
5231
|
-
function
|
|
5232
|
-
if (
|
|
5231
|
+
function $e(e) {
|
|
5232
|
+
if (lt(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
5238
|
Ur(e) && e.host || // Fallback.
|
|
5239
|
-
|
|
5239
|
+
Se(e)
|
|
5240
5240
|
);
|
|
5241
5241
|
return Ur(t) ? t.host : t;
|
|
5242
5242
|
}
|
|
5243
5243
|
function aa(e) {
|
|
5244
|
-
const t =
|
|
5245
|
-
return
|
|
5244
|
+
const t = $e(e);
|
|
5245
|
+
return rt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ee(t) && yt(t) ? t : aa(t);
|
|
5246
5246
|
}
|
|
5247
5247
|
function gt(e, t, n) {
|
|
5248
5248
|
var r;
|
|
@@ -5258,9 +5258,9 @@ function _n(e) {
|
|
|
5258
5258
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
5259
5259
|
}
|
|
5260
5260
|
function sa(e) {
|
|
5261
|
-
const t =
|
|
5261
|
+
const t = we(e);
|
|
5262
5262
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5263
|
-
const o =
|
|
5263
|
+
const o = Ee(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,
|
|
@@ -5268,12 +5268,12 @@ function sa(e) {
|
|
|
5268
5268
|
};
|
|
5269
5269
|
}
|
|
5270
5270
|
function sr(e) {
|
|
5271
|
-
return
|
|
5271
|
+
return ye(e) ? e : e.contextElement;
|
|
5272
5272
|
}
|
|
5273
|
-
function
|
|
5273
|
+
function tt(e) {
|
|
5274
5274
|
const t = sr(e);
|
|
5275
|
-
if (!
|
|
5276
|
-
return
|
|
5275
|
+
if (!Ee(t))
|
|
5276
|
+
return Ce(1);
|
|
5277
5277
|
const n = t.getBoundingClientRect(), {
|
|
5278
5278
|
width: r,
|
|
5279
5279
|
height: o,
|
|
@@ -5285,7 +5285,7 @@ function et(e) {
|
|
|
5285
5285
|
y: c
|
|
5286
5286
|
};
|
|
5287
5287
|
}
|
|
5288
|
-
const rd = /* @__PURE__ */
|
|
5288
|
+
const rd = /* @__PURE__ */ Ce(0);
|
|
5289
5289
|
function ia(e) {
|
|
5290
5290
|
const t = pe(e);
|
|
5291
5291
|
return !ar() || !t.visualViewport ? rd : {
|
|
@@ -5296,18 +5296,18 @@ function ia(e) {
|
|
|
5296
5296
|
function od(e, t, n) {
|
|
5297
5297
|
return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function Ke(e, t, n, r) {
|
|
5300
5300
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
5301
5301
|
const o = e.getBoundingClientRect(), a = sr(e);
|
|
5302
|
-
let s =
|
|
5303
|
-
t && (r ?
|
|
5304
|
-
const c = od(a, n, r) ? ia(a) :
|
|
5302
|
+
let s = Ce(1);
|
|
5303
|
+
t && (r ? ye(r) && (s = tt(r)) : s = tt(e));
|
|
5304
|
+
const c = od(a, n, r) ? ia(a) : Ce(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 = pe(a), g = r &&
|
|
5307
|
+
const v = pe(a), g = r && ye(r) ? pe(r) : r;
|
|
5308
5308
|
let y = v, f = _n(y);
|
|
5309
5309
|
for (; f && r && g !== y; ) {
|
|
5310
|
-
const h =
|
|
5310
|
+
const h = tt(f), b = f.getBoundingClientRect(), w = we(f), N = b.left + (f.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = b.top + (f.clientTop + parseFloat(w.paddingTop)) * h.y;
|
|
5311
5311
|
u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y = pe(f), f = _n(y);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
@@ -5320,7 +5320,7 @@ function Ge(e, t, n, r) {
|
|
|
5320
5320
|
}
|
|
5321
5321
|
function ir(e, t) {
|
|
5322
5322
|
const n = nn(e).scrollLeft;
|
|
5323
|
-
return t ? t.left + n :
|
|
5323
|
+
return t ? t.left + n : Ke(Se(e)).left + n;
|
|
5324
5324
|
}
|
|
5325
5325
|
function la(e, t, n) {
|
|
5326
5326
|
n === void 0 && (n = !1);
|
|
@@ -5340,19 +5340,19 @@ function ad(e) {
|
|
|
5340
5340
|
offsetParent: r,
|
|
5341
5341
|
strategy: o
|
|
5342
5342
|
} = e;
|
|
5343
|
-
const a = o === "fixed", s =
|
|
5343
|
+
const a = o === "fixed", s = Se(r), c = t ? tn(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 = Ce(1);
|
|
5350
|
+
const p = Ce(0), m = Ee(r);
|
|
5351
|
+
if ((m || !m && !a) && ((lt(r) !== "body" || yt(s)) && (u = nn(r)), Ee(r))) {
|
|
5352
|
+
const g = Ke(r);
|
|
5353
|
+
d = tt(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
|
|
5354
5354
|
}
|
|
5355
|
-
const v = s && !m && !a ? la(s, u, !0) :
|
|
5355
|
+
const v = s && !m && !a ? la(s, u, !0) : Ce(0);
|
|
5356
5356
|
return {
|
|
5357
5357
|
width: n.width * d.x,
|
|
5358
5358
|
height: n.height * d.y,
|
|
@@ -5364,10 +5364,10 @@ function sd(e) {
|
|
|
5364
5364
|
return Array.from(e.getClientRects());
|
|
5365
5365
|
}
|
|
5366
5366
|
function id(e) {
|
|
5367
|
-
const t =
|
|
5367
|
+
const t = Se(e), n = nn(e), r = e.ownerDocument.body, o = fe(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = fe(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
5368
5368
|
let s = -n.scrollLeft + ir(e);
|
|
5369
5369
|
const c = -n.scrollTop;
|
|
5370
|
-
return
|
|
5370
|
+
return we(r).direction === "rtl" && (s += fe(t.clientWidth, r.clientWidth) - o), {
|
|
5371
5371
|
width: o,
|
|
5372
5372
|
height: a,
|
|
5373
5373
|
x: s,
|
|
@@ -5375,7 +5375,7 @@ function id(e) {
|
|
|
5375
5375
|
};
|
|
5376
5376
|
}
|
|
5377
5377
|
function ld(e, t) {
|
|
5378
|
-
const n = pe(e), r =
|
|
5378
|
+
const n = pe(e), r = Se(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 ld(e, t) {
|
|
|
5390
5390
|
};
|
|
5391
5391
|
}
|
|
5392
5392
|
function cd(e, t) {
|
|
5393
|
-
const n =
|
|
5393
|
+
const n = Ke(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ee(e) ? tt(e) : Ce(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,
|
|
@@ -5403,8 +5403,8 @@ function Gr(e, t, n) {
|
|
|
5403
5403
|
if (t === "viewport")
|
|
5404
5404
|
r = ld(e, n);
|
|
5405
5405
|
else if (t === "document")
|
|
5406
|
-
r = id(
|
|
5407
|
-
else if (
|
|
5406
|
+
r = id(Se(e));
|
|
5407
|
+
else if (ye(t))
|
|
5408
5408
|
r = cd(t, n);
|
|
5409
5409
|
else {
|
|
5410
5410
|
const o = ia(e);
|
|
@@ -5418,19 +5418,19 @@ function Gr(e, t, n) {
|
|
|
5418
5418
|
return jt(r);
|
|
5419
5419
|
}
|
|
5420
5420
|
function ca(e, t) {
|
|
5421
|
-
const n =
|
|
5422
|
-
return n === t || !
|
|
5421
|
+
const n = $e(e);
|
|
5422
|
+
return n === t || !ye(n) || rt(n) ? !1 : we(n).position === "fixed" || ca(n, t);
|
|
5423
5423
|
}
|
|
5424
5424
|
function dd(e, t) {
|
|
5425
5425
|
const n = t.get(e);
|
|
5426
5426
|
if (n)
|
|
5427
5427
|
return n;
|
|
5428
|
-
let r = gt(e, [], !1).filter((c) =>
|
|
5429
|
-
const a =
|
|
5430
|
-
let s = a ?
|
|
5431
|
-
for (;
|
|
5432
|
-
const c =
|
|
5433
|
-
!u && c.position === "fixed" && (o = null), (a ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || yt(s) && !u && ca(e, s)) ? r = r.filter((p) => p !== s) : o = c, s =
|
|
5428
|
+
let r = gt(e, [], !1).filter((c) => ye(c) && lt(c) !== "body"), o = null;
|
|
5429
|
+
const a = we(e).position === "fixed";
|
|
5430
|
+
let s = a ? $e(e) : e;
|
|
5431
|
+
for (; ye(s) && !rt(s); ) {
|
|
5432
|
+
const c = we(s), u = or(s);
|
|
5433
|
+
!u && c.position === "fixed" && (o = null), (a ? !u && !o : !u && c.position === "static" && !!o && ["absolute", "fixed"].includes(o.position) || yt(s) && !u && ca(e, s)) ? r = r.filter((p) => p !== s) : o = c, s = $e(s);
|
|
5434
5434
|
}
|
|
5435
5435
|
return t.set(e, r), r;
|
|
5436
5436
|
}
|
|
@@ -5443,7 +5443,7 @@ function ud(e) {
|
|
|
5443
5443
|
} = e;
|
|
5444
5444
|
const s = [...n === "clippingAncestors" ? tn(t) ? [] : dd(t, this._c) : [].concat(n), r], c = s[0], u = s.reduce((d, p) => {
|
|
5445
5445
|
const m = Gr(t, p, o);
|
|
5446
|
-
return d.top = fe(m.top, d.top), d.right =
|
|
5446
|
+
return d.top = fe(m.top, d.top), d.right = _e(m.right, d.right), d.bottom = _e(m.bottom, d.bottom), d.left = fe(m.left, d.left), d;
|
|
5447
5447
|
}, Gr(t, c, o));
|
|
5448
5448
|
return {
|
|
5449
5449
|
width: u.right - u.left,
|
|
@@ -5463,18 +5463,18 @@ function fd(e) {
|
|
|
5463
5463
|
};
|
|
5464
5464
|
}
|
|
5465
5465
|
function pd(e, t, n) {
|
|
5466
|
-
const r =
|
|
5466
|
+
const r = Ee(t), o = Se(t), a = n === "fixed", s = Ke(e, !0, a, t);
|
|
5467
5467
|
let c = {
|
|
5468
5468
|
scrollLeft: 0,
|
|
5469
5469
|
scrollTop: 0
|
|
5470
5470
|
};
|
|
5471
|
-
const u =
|
|
5471
|
+
const u = Ce(0);
|
|
5472
5472
|
if (r || !r && !a)
|
|
5473
|
-
if ((
|
|
5474
|
-
const v =
|
|
5473
|
+
if ((lt(t) !== "body" || yt(o)) && (c = nn(t)), r) {
|
|
5474
|
+
const v = Ke(t, !0, a, t);
|
|
5475
5475
|
u.x = v.x + t.clientLeft, u.y = v.y + t.clientTop;
|
|
5476
5476
|
} else o && (u.x = ir(o));
|
|
5477
|
-
const d = o && !r && !a ? la(o, c) :
|
|
5477
|
+
const d = o && !r && !a ? la(o, c) : Ce(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,
|
|
@@ -5483,33 +5483,33 @@ function pd(e, t, n) {
|
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
5485
|
function wn(e) {
|
|
5486
|
-
return
|
|
5486
|
+
return we(e).position === "static";
|
|
5487
5487
|
}
|
|
5488
5488
|
function Kr(e, t) {
|
|
5489
|
-
if (!
|
|
5489
|
+
if (!Ee(e) || we(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 Se(e) === n && (n = n.ownerDocument.body), n;
|
|
5495
5495
|
}
|
|
5496
5496
|
function da(e, t) {
|
|
5497
5497
|
const n = pe(e);
|
|
5498
5498
|
if (tn(e))
|
|
5499
5499
|
return n;
|
|
5500
|
-
if (!
|
|
5501
|
-
let o =
|
|
5502
|
-
for (; o && !
|
|
5503
|
-
if (
|
|
5500
|
+
if (!Ee(e)) {
|
|
5501
|
+
let o = $e(e);
|
|
5502
|
+
for (; o && !rt(o); ) {
|
|
5503
|
+
if (ye(o) && !wn(o))
|
|
5504
5504
|
return o;
|
|
5505
|
-
o =
|
|
5505
|
+
o = $e(o);
|
|
5506
5506
|
}
|
|
5507
5507
|
return n;
|
|
5508
5508
|
}
|
|
5509
5509
|
let r = Kr(e, t);
|
|
5510
5510
|
for (; r && td(r) && wn(r); )
|
|
5511
5511
|
r = Kr(r, t);
|
|
5512
|
-
return r &&
|
|
5512
|
+
return r && rt(r) && wn(r) && !or(r) ? n : r || nd(e) || n;
|
|
5513
5513
|
}
|
|
5514
5514
|
const md = async function(e) {
|
|
5515
5515
|
const t = this.getOffsetParent || da, n = this.getDimensions, r = await n(e.floating);
|
|
@@ -5524,18 +5524,18 @@ const md = async function(e) {
|
|
|
5524
5524
|
};
|
|
5525
5525
|
};
|
|
5526
5526
|
function hd(e) {
|
|
5527
|
-
return
|
|
5527
|
+
return we(e).direction === "rtl";
|
|
5528
5528
|
}
|
|
5529
5529
|
const gd = {
|
|
5530
5530
|
convertOffsetParentRelativeRectToViewportRelativeRect: ad,
|
|
5531
|
-
getDocumentElement:
|
|
5531
|
+
getDocumentElement: Se,
|
|
5532
5532
|
getClippingRect: ud,
|
|
5533
5533
|
getOffsetParent: da,
|
|
5534
5534
|
getElementRects: md,
|
|
5535
5535
|
getClientRects: sd,
|
|
5536
5536
|
getDimensions: fd,
|
|
5537
|
-
getScale:
|
|
5538
|
-
isElement:
|
|
5537
|
+
getScale: tt,
|
|
5538
|
+
isElement: ye,
|
|
5539
5539
|
isRTL: hd
|
|
5540
5540
|
};
|
|
5541
5541
|
function ua(e, t) {
|
|
@@ -5543,7 +5543,7 @@ function ua(e, t) {
|
|
|
5543
5543
|
}
|
|
5544
5544
|
function vd(e, t) {
|
|
5545
5545
|
let n = null, r;
|
|
5546
|
-
const o =
|
|
5546
|
+
const o = Se(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 vd(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: fe(0,
|
|
5563
|
+
threshold: fe(0, _e(1, u)) || 1
|
|
5564
5564
|
};
|
|
5565
5565
|
let C = !0;
|
|
5566
5566
|
function S(E) {
|
|
@@ -5610,10 +5610,10 @@ function bd(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 ? Ke(e) : null;
|
|
5614
5614
|
u && h();
|
|
5615
5615
|
function h() {
|
|
5616
|
-
const b =
|
|
5616
|
+
const b = Ke(e);
|
|
5617
5617
|
f && !ua(f, b) && n(), f = b, y = requestAnimationFrame(h);
|
|
5618
5618
|
}
|
|
5619
5619
|
return n(), () => {
|
|
@@ -5636,7 +5636,7 @@ const yd = Qc, wd = Zc, xd = Yc, Nd = ed, Cd = qc, Yr = Kc, Ed = Jc, Sd = (e, t,
|
|
|
5636
5636
|
platform: a
|
|
5637
5637
|
});
|
|
5638
5638
|
};
|
|
5639
|
-
var _t = typeof document < "u" ? Es :
|
|
5639
|
+
var _t = typeof document < "u" ? Es : Ue;
|
|
5640
5640
|
function Vt(e, t) {
|
|
5641
5641
|
if (e === t)
|
|
5642
5642
|
return !0;
|
|
@@ -5707,7 +5707,7 @@ function Td(e) {
|
|
|
5707
5707
|
O !== E.current && (E.current = O, f(O));
|
|
5708
5708
|
}, []), N = l.useCallback((O) => {
|
|
5709
5709
|
O !== T.current && (T.current = O, b(O));
|
|
5710
|
-
}, []), C = a || y, S = s || h, E = l.useRef(null), T = l.useRef(null),
|
|
5710
|
+
}, []), C = a || y, S = s || h, E = l.useRef(null), T = l.useRef(null), F = l.useRef(p), I = u != null, W = xn(u), U = xn(o), B = xn(d), D = l.useCallback(() => {
|
|
5711
5711
|
if (!E.current || !T.current)
|
|
5712
5712
|
return;
|
|
5713
5713
|
const O = {
|
|
@@ -5724,13 +5724,13 @@ function Td(e) {
|
|
|
5724
5724
|
// setting it to `true` when `open === false` (must be specified).
|
|
5725
5725
|
isPositioned: B.current !== !1
|
|
5726
5726
|
};
|
|
5727
|
-
R.current && !Vt(
|
|
5727
|
+
R.current && !Vt(F.current, q) && (F.current = q, Vn.flushSync(() => {
|
|
5728
5728
|
m(q);
|
|
5729
5729
|
}));
|
|
5730
5730
|
});
|
|
5731
5731
|
}, [v, t, n, U, B]);
|
|
5732
5732
|
_t(() => {
|
|
5733
|
-
d === !1 &&
|
|
5733
|
+
d === !1 && F.current.isPositioned && (F.current.isPositioned = !1, m((O) => ({
|
|
5734
5734
|
...O,
|
|
5735
5735
|
isPositioned: !1
|
|
5736
5736
|
})));
|
|
@@ -5750,7 +5750,7 @@ function Td(e) {
|
|
|
5750
5750
|
floating: T,
|
|
5751
5751
|
setReference: w,
|
|
5752
5752
|
setFloating: N
|
|
5753
|
-
}), [w, N]),
|
|
5753
|
+
}), [w, N]), k = l.useMemo(() => ({
|
|
5754
5754
|
reference: C,
|
|
5755
5755
|
floating: S
|
|
5756
5756
|
}), [C, S]), H = l.useMemo(() => {
|
|
@@ -5759,13 +5759,13 @@ function Td(e) {
|
|
|
5759
5759
|
left: 0,
|
|
5760
5760
|
top: 0
|
|
5761
5761
|
};
|
|
5762
|
-
if (!
|
|
5762
|
+
if (!k.floating)
|
|
5763
5763
|
return O;
|
|
5764
|
-
const $ = qr(
|
|
5764
|
+
const $ = qr(k.floating, p.x), q = qr(k.floating, p.y);
|
|
5765
5765
|
return c ? {
|
|
5766
5766
|
...O,
|
|
5767
5767
|
transform: "translate(" + $ + "px, " + q + "px)",
|
|
5768
|
-
...fa(
|
|
5768
|
+
...fa(k.floating) >= 1.5 && {
|
|
5769
5769
|
willChange: "transform"
|
|
5770
5770
|
}
|
|
5771
5771
|
} : {
|
|
@@ -5773,14 +5773,14 @@ function Td(e) {
|
|
|
5773
5773
|
left: $,
|
|
5774
5774
|
top: q
|
|
5775
5775
|
};
|
|
5776
|
-
}, [n, c,
|
|
5776
|
+
}, [n, c, k.floating, p.x, p.y]);
|
|
5777
5777
|
return l.useMemo(() => ({
|
|
5778
5778
|
...p,
|
|
5779
5779
|
update: D,
|
|
5780
5780
|
refs: j,
|
|
5781
|
-
elements:
|
|
5781
|
+
elements: k,
|
|
5782
5782
|
floatingStyles: H
|
|
5783
|
-
}), [p, D, j,
|
|
5783
|
+
}), [p, D, j, k, H]);
|
|
5784
5784
|
}
|
|
5785
5785
|
const Rd = (e) => {
|
|
5786
5786
|
function t(n) {
|
|
@@ -5844,7 +5844,7 @@ pa.displayName = _d;
|
|
|
5844
5844
|
var Ld = pa;
|
|
5845
5845
|
function $d(e) {
|
|
5846
5846
|
const [t, n] = l.useState(void 0);
|
|
5847
|
-
return
|
|
5847
|
+
return Ie(() => {
|
|
5848
5848
|
if (e) {
|
|
5849
5849
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
5850
5850
|
const r = new ResizeObserver((o) => {
|
|
@@ -5880,7 +5880,7 @@ var ba = "PopperAnchor", ya = l.forwardRef(
|
|
|
5880
5880
|
ya.displayName = ba;
|
|
5881
5881
|
var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
5882
5882
|
(e, t) => {
|
|
5883
|
-
var
|
|
5883
|
+
var G, me, xt, ct, Nt, qe;
|
|
5884
5884
|
const {
|
|
5885
5885
|
__scopePopper: n,
|
|
5886
5886
|
side: r = "bottom",
|
|
@@ -5896,23 +5896,23 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
|
5896
5896
|
updatePositionStrategy: g = "optimized",
|
|
5897
5897
|
onPlaced: y,
|
|
5898
5898
|
...f
|
|
5899
|
-
} = e, h = ga(cr, n), [b, w] = l.useState(null), N = le(t, (
|
|
5899
|
+
} = e, h = ga(cr, n), [b, w] = l.useState(null), N = le(t, (Fe) => w(Fe)), [C, S] = l.useState(null), E = $d(C), T = (E == null ? void 0 : E.width) ?? 0, F = (E == null ? void 0 : E.height) ?? 0, I = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, U = Array.isArray(d) ? d : [d], B = U.length > 0, D = {
|
|
5900
5900
|
padding: W,
|
|
5901
5901
|
boundary: U.filter(jd),
|
|
5902
5902
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
5903
5903
|
altBoundary: B
|
|
5904
|
-
}, { refs: R, floatingStyles: j, placement:
|
|
5904
|
+
}, { refs: R, floatingStyles: j, placement: k, isPositioned: H, middlewareData: O } = Td({
|
|
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: I,
|
|
5908
|
-
whileElementsMounted: (
|
|
5908
|
+
whileElementsMounted: (...Fe) => bd(...Fe, {
|
|
5909
5909
|
animationFrame: g === "always"
|
|
5910
5910
|
}),
|
|
5911
5911
|
elements: {
|
|
5912
5912
|
reference: h.anchor
|
|
5913
5913
|
},
|
|
5914
5914
|
middleware: [
|
|
5915
|
-
Pd({ mainAxis: o +
|
|
5915
|
+
Pd({ mainAxis: o + F, alignmentAxis: s }),
|
|
5916
5916
|
u && Ad({
|
|
5917
5917
|
mainAxis: !0,
|
|
5918
5918
|
crossAxis: !1,
|
|
@@ -5922,22 +5922,22 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
|
5922
5922
|
u && Md({ ...D }),
|
|
5923
5923
|
Od({
|
|
5924
5924
|
...D,
|
|
5925
|
-
apply: ({ elements:
|
|
5926
|
-
const { width: ce, height: de } = L.reference,
|
|
5927
|
-
|
|
5925
|
+
apply: ({ elements: Fe, rects: L, availableWidth: z, availableHeight: ae }) => {
|
|
5926
|
+
const { width: ce, height: de } = L.reference, K = Fe.floating.style;
|
|
5927
|
+
K.setProperty("--radix-popper-available-width", `${z}px`), K.setProperty("--radix-popper-available-height", `${ae}px`), K.setProperty("--radix-popper-anchor-width", `${ce}px`), K.setProperty("--radix-popper-anchor-height", `${de}px`);
|
|
5928
5928
|
}
|
|
5929
5929
|
}),
|
|
5930
5930
|
C && Id({ element: C, padding: c }),
|
|
5931
|
-
Vd({ arrowWidth: T, arrowHeight:
|
|
5931
|
+
Vd({ arrowWidth: T, arrowHeight: F }),
|
|
5932
5932
|
v && Dd({ strategy: "referenceHidden", ...D })
|
|
5933
5933
|
]
|
|
5934
|
-
}), [$, q] = Ca(
|
|
5935
|
-
|
|
5934
|
+
}), [$, q] = Ca(k), Z = he(y);
|
|
5935
|
+
Ie(() => {
|
|
5936
5936
|
H && (Z == null || Z());
|
|
5937
5937
|
}, [H, Z]);
|
|
5938
|
-
const oe = (
|
|
5939
|
-
return
|
|
5940
|
-
b &&
|
|
5938
|
+
const oe = (G = O.arrow) == null ? void 0 : G.x, ee = (me = O.arrow) == null ? void 0 : me.y, ne = ((xt = O.arrow) == null ? void 0 : xt.centerOffset) !== 0, [se, _] = l.useState();
|
|
5939
|
+
return Ie(() => {
|
|
5940
|
+
b && _(window.getComputedStyle(b).zIndex);
|
|
5941
5941
|
}, [b]), /* @__PURE__ */ i(
|
|
5942
5942
|
"div",
|
|
5943
5943
|
{
|
|
@@ -5948,7 +5948,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
|
5948
5948
|
transform: H ? j.transform : "translate(0, -200%)",
|
|
5949
5949
|
// keep off the page when measuring
|
|
5950
5950
|
minWidth: "max-content",
|
|
5951
|
-
zIndex:
|
|
5951
|
+
zIndex: se,
|
|
5952
5952
|
"--radix-popper-transform-origin": [
|
|
5953
5953
|
(ct = O.transformOrigin) == null ? void 0 : ct.x,
|
|
5954
5954
|
(Nt = O.transformOrigin) == null ? void 0 : Nt.y
|
|
@@ -5956,7 +5956,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
|
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
|
+
...((qe = O.hide) == null ? void 0 : qe.referenceHidden) && {
|
|
5960
5960
|
visibility: "hidden",
|
|
5961
5961
|
pointerEvents: "none"
|
|
5962
5962
|
}
|
|
@@ -6205,16 +6205,16 @@ var ur = "TooltipPortal", [Jd, eu] = on(ur, {
|
|
|
6205
6205
|
forceMount: void 0
|
|
6206
6206
|
}), Pa = (e) => {
|
|
6207
6207
|
const { __scopeTooltip: t, forceMount: n, children: r, container: o } = e, a = wt(ur, t);
|
|
6208
|
-
return /* @__PURE__ */ i(Jd, { scope: t, forceMount: n, children: /* @__PURE__ */ i(
|
|
6208
|
+
return /* @__PURE__ */ i(Jd, { scope: t, forceMount: n, children: /* @__PURE__ */ i(Ye, { present: n || a.open, children: /* @__PURE__ */ i(Ut, { asChild: !0, container: o, children: r }) }) });
|
|
6209
6209
|
};
|
|
6210
6210
|
Pa.displayName = ur;
|
|
6211
|
-
var
|
|
6211
|
+
var ot = "TooltipContent", Aa = l.forwardRef(
|
|
6212
6212
|
(e, t) => {
|
|
6213
|
-
const n = eu(
|
|
6214
|
-
return /* @__PURE__ */ i(
|
|
6213
|
+
const n = eu(ot, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = wt(ot, e.__scopeTooltip);
|
|
6214
|
+
return /* @__PURE__ */ i(Ye, { present: r || s.open, children: s.disableHoverableContent ? /* @__PURE__ */ i(ka, { side: o, ...a, ref: t }) : /* @__PURE__ */ i(tu, { side: o, ...a, ref: t }) });
|
|
6215
6215
|
}
|
|
6216
6216
|
), tu = l.forwardRef((e, t) => {
|
|
6217
|
-
const n = wt(
|
|
6217
|
+
const n = wt(ot, e.__scopeTooltip), r = dr(ot, 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) => {
|
|
@@ -6248,7 +6248,7 @@ var rt = "TooltipContent", Aa = l.forwardRef(
|
|
|
6248
6248
|
onEscapeKeyDown: a,
|
|
6249
6249
|
onPointerDownOutside: s,
|
|
6250
6250
|
...c
|
|
6251
|
-
} = e, u = wt(
|
|
6251
|
+
} = e, u = wt(ot, n), d = an(n), { onClose: p } = u;
|
|
6252
6252
|
return l.useEffect(() => (document.addEventListener(Ln, p), () => document.removeEventListener(Ln, p)), [p]), l.useEffect(() => {
|
|
6253
6253
|
if (u.trigger) {
|
|
6254
6254
|
const m = (v) => {
|
|
@@ -6291,7 +6291,7 @@ var rt = "TooltipContent", Aa = l.forwardRef(
|
|
|
6291
6291
|
);
|
|
6292
6292
|
}
|
|
6293
6293
|
);
|
|
6294
|
-
Aa.displayName =
|
|
6294
|
+
Aa.displayName = ot;
|
|
6295
6295
|
var Ma = "TooltipArrow", ou = l.forwardRef(
|
|
6296
6296
|
(e, t) => {
|
|
6297
6297
|
const { __scopeTooltip: n, ...r } = e, o = an(n);
|
|
@@ -6395,7 +6395,7 @@ function du(e) {
|
|
|
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
6397
|
var uu = Sa, fu = Ta, pu = Ra, mu = Pa, Oa = Aa;
|
|
6398
|
-
const ut = uu, ft = fu, pt = pu,
|
|
6398
|
+
const ut = uu, ft = fu, pt = pu, nt = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i(mu, { children: /* @__PURE__ */ i(
|
|
6399
6399
|
Oa,
|
|
6400
6400
|
{
|
|
6401
6401
|
ref: r,
|
|
@@ -6407,7 +6407,7 @@ const ut = uu, ft = fu, pt = pu, tt = l.forwardRef(({ className: e, sideOffset:
|
|
|
6407
6407
|
...n
|
|
6408
6408
|
}
|
|
6409
6409
|
) }));
|
|
6410
|
-
|
|
6410
|
+
nt.displayName = Oa.displayName;
|
|
6411
6411
|
const fr = 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 = () => {
|
|
@@ -6460,7 +6460,7 @@ const fr = l.forwardRef(
|
|
|
6460
6460
|
...a
|
|
6461
6461
|
}
|
|
6462
6462
|
) }),
|
|
6463
|
-
/* @__PURE__ */ i(
|
|
6463
|
+
/* @__PURE__ */ i(nt, { side: "top", className: "bg-sidebar text-sidebar-foreground", children: v() })
|
|
6464
6464
|
] }) });
|
|
6465
6465
|
}
|
|
6466
6466
|
);
|
|
@@ -6592,7 +6592,7 @@ const Eu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6592
6592
|
));
|
|
6593
6593
|
Eu.displayName = Xt.displayName;
|
|
6594
6594
|
function Yf({ onClick: e, publicName: t, applicationName: n, partnerId: r }) {
|
|
6595
|
-
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] =
|
|
6595
|
+
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] = ve(!1), c = () => {
|
|
6596
6596
|
s(!0);
|
|
6597
6597
|
};
|
|
6598
6598
|
return /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
|
|
@@ -6932,7 +6932,7 @@ const Fu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6932
6932
|
));
|
|
6933
6933
|
Fu.displayName = "SidebarGroup";
|
|
6934
6934
|
const zu = l.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ i(
|
|
6935
|
-
t ?
|
|
6935
|
+
t ? be : "div",
|
|
6936
6936
|
{
|
|
6937
6937
|
ref: r,
|
|
6938
6938
|
"data-sidebar": "group-label",
|
|
@@ -6946,7 +6946,7 @@ const zu = l.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PU
|
|
|
6946
6946
|
));
|
|
6947
6947
|
zu.displayName = "SidebarGroupLabel";
|
|
6948
6948
|
const Wu = l.forwardRef(({ className: e, asChild: t = !1, ...n }, r) => /* @__PURE__ */ i(
|
|
6949
|
-
t ?
|
|
6949
|
+
t ? be : "button",
|
|
6950
6950
|
{
|
|
6951
6951
|
ref: r,
|
|
6952
6952
|
"data-sidebar": "group-action",
|
|
@@ -7020,7 +7020,7 @@ const ju = bt(
|
|
|
7020
7020
|
className: a,
|
|
7021
7021
|
...s
|
|
7022
7022
|
}, c) => {
|
|
7023
|
-
const u = e ?
|
|
7023
|
+
const u = e ? be : "button", { isMobile: d, state: p } = ln(), m = /* @__PURE__ */ i(
|
|
7024
7024
|
u,
|
|
7025
7025
|
{
|
|
7026
7026
|
ref: c,
|
|
@@ -7036,7 +7036,7 @@ const ju = bt(
|
|
|
7036
7036
|
}), /* @__PURE__ */ x(ft, { children: [
|
|
7037
7037
|
/* @__PURE__ */ i(pt, { asChild: !0, children: m }),
|
|
7038
7038
|
/* @__PURE__ */ i(
|
|
7039
|
-
|
|
7039
|
+
nt,
|
|
7040
7040
|
{
|
|
7041
7041
|
side: "right",
|
|
7042
7042
|
align: "center",
|
|
@@ -7049,7 +7049,7 @@ const ju = bt(
|
|
|
7049
7049
|
);
|
|
7050
7050
|
Ya.displayName = "SidebarMenuButton";
|
|
7051
7051
|
const Vu = l.forwardRef(({ className: e, asChild: t = !1, showOnHover: n = !1, ...r }, o) => /* @__PURE__ */ i(
|
|
7052
|
-
t ?
|
|
7052
|
+
t ? be : "button",
|
|
7053
7053
|
{
|
|
7054
7054
|
ref: o,
|
|
7055
7055
|
"data-sidebar": "menu-action",
|
|
@@ -7135,7 +7135,7 @@ Gu.displayName = "SidebarMenuSub";
|
|
|
7135
7135
|
const Ku = l.forwardRef(({ ...e }, t) => /* @__PURE__ */ i("li", { ref: t, ...e }));
|
|
7136
7136
|
Ku.displayName = "SidebarMenuSubItem";
|
|
7137
7137
|
const Yu = l.forwardRef(({ asChild: e = !1, size: t = "md", isActive: n, className: r, ...o }, a) => /* @__PURE__ */ i(
|
|
7138
|
-
e ?
|
|
7138
|
+
e ? be : "a",
|
|
7139
7139
|
{
|
|
7140
7140
|
ref: a,
|
|
7141
7141
|
"data-sidebar": "menu-sub-button",
|
|
@@ -7158,27 +7158,27 @@ function qu(e) {
|
|
|
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 = je.useRef(null), b = je.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 = je.forwardRef(
|
|
7166
7166
|
(g, y) => {
|
|
7167
7167
|
const { scope: f, children: h } = g, b = a(c, f), w = le(y, b.collectionRef);
|
|
7168
|
-
return /* @__PURE__ */ i(
|
|
7168
|
+
return /* @__PURE__ */ i(be, { 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 = je.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 = je.useRef(null), N = le(y, w), C = a(d, f);
|
|
7175
|
+
return je.useEffect(() => (C.itemMap.set(w, { ref: w, ...b }), () => void C.itemMap.delete(w))), /* @__PURE__ */ i(be, { [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 je.useCallback(() => {
|
|
7182
7182
|
const h = y.collectionRef.current;
|
|
7183
7183
|
if (!h) return [];
|
|
7184
7184
|
const b = Array.from(h.querySelectorAll(`[${p}]`));
|
|
@@ -7278,12 +7278,12 @@ var Qa = "ToastViewport", Ju = ["F8"], Fn = "toast.viewportPause", zn = "toast.v
|
|
|
7278
7278
|
var S, E, T;
|
|
7279
7279
|
const N = w.altKey || w.ctrlKey || w.metaKey;
|
|
7280
7280
|
if (w.key === "Tab" && !N) {
|
|
7281
|
-
const
|
|
7281
|
+
const F = document.activeElement, I = w.shiftKey;
|
|
7282
7282
|
if (w.target === h && I) {
|
|
7283
7283
|
(S = d.current) == null || S.focus();
|
|
7284
7284
|
return;
|
|
7285
7285
|
}
|
|
7286
|
-
const B = f({ tabbingDirection: I ? "backwards" : "forwards" }), D = B.findIndex((R) => R ===
|
|
7286
|
+
const B = f({ tabbingDirection: I ? "backwards" : "forwards" }), D = B.findIndex((R) => R === F);
|
|
7287
7287
|
Cn(B.slice(D + 1)) ? w.preventDefault() : I ? (E = d.current) == null || E.focus() : (T = p.current) == null || T.focus();
|
|
7288
7288
|
}
|
|
7289
7289
|
};
|
|
@@ -7357,15 +7357,15 @@ var dn = "Toast", ef = "toast.swipeStart", tf = "toast.swipeMove", nf = "toast.s
|
|
|
7357
7357
|
defaultProp: o,
|
|
7358
7358
|
onChange: a
|
|
7359
7359
|
});
|
|
7360
|
-
return /* @__PURE__ */ i(
|
|
7360
|
+
return /* @__PURE__ */ i(Ye, { present: n || c, children: /* @__PURE__ */ i(
|
|
7361
7361
|
sf,
|
|
7362
7362
|
{
|
|
7363
7363
|
open: c,
|
|
7364
7364
|
...s,
|
|
7365
7365
|
ref: t,
|
|
7366
7366
|
onClose: () => u(!1),
|
|
7367
|
-
onPause:
|
|
7368
|
-
onResume:
|
|
7367
|
+
onPause: he(e.onPause),
|
|
7368
|
+
onResume: he(e.onResume),
|
|
7369
7369
|
onSwipeStart: X(e.onSwipeStart, (d) => {
|
|
7370
7370
|
d.currentTarget.setAttribute("data-swipe", "start");
|
|
7371
7371
|
}),
|
|
@@ -7404,12 +7404,12 @@ var [of, af] = qa(dn, {
|
|
|
7404
7404
|
onSwipeCancel: v,
|
|
7405
7405
|
onSwipeEnd: g,
|
|
7406
7406
|
...y
|
|
7407
|
-
} = e, f = cn(dn, n), [h, b] = l.useState(null), w = le(t, (R) => b(R)), N = l.useRef(null), C = l.useRef(null), S = o || f.duration, E = l.useRef(0), T = l.useRef(S),
|
|
7407
|
+
} = e, f = cn(dn, n), [h, b] = l.useState(null), w = le(t, (R) => b(R)), N = l.useRef(null), C = l.useRef(null), S = o || f.duration, E = l.useRef(0), T = l.useRef(S), F = l.useRef(0), { onToastAdd: I, onToastRemove: W } = f, U = he(() => {
|
|
7408
7408
|
var j;
|
|
7409
7409
|
(h == null ? void 0 : h.contains(document.activeElement)) && ((j = f.viewport) == null || j.focus()), s();
|
|
7410
7410
|
}), B = l.useCallback(
|
|
7411
7411
|
(R) => {
|
|
7412
|
-
!R || R === 1 / 0 || (window.clearTimeout(
|
|
7412
|
+
!R || R === 1 / 0 || (window.clearTimeout(F.current), E.current = (/* @__PURE__ */ new Date()).getTime(), F.current = window.setTimeout(U, R));
|
|
7413
7413
|
},
|
|
7414
7414
|
[U]
|
|
7415
7415
|
);
|
|
@@ -7418,12 +7418,12 @@ var [of, af] = qa(dn, {
|
|
|
7418
7418
|
if (R) {
|
|
7419
7419
|
const j = () => {
|
|
7420
7420
|
B(T.current), d == null || d();
|
|
7421
|
-
},
|
|
7421
|
+
}, k = () => {
|
|
7422
7422
|
const H = (/* @__PURE__ */ new Date()).getTime() - E.current;
|
|
7423
|
-
T.current = T.current - H, window.clearTimeout(
|
|
7423
|
+
T.current = T.current - H, window.clearTimeout(F.current), u == null || u();
|
|
7424
7424
|
};
|
|
7425
|
-
return R.addEventListener(Fn,
|
|
7426
|
-
R.removeEventListener(Fn,
|
|
7425
|
+
return R.addEventListener(Fn, k), R.addEventListener(zn, j), () => {
|
|
7426
|
+
R.removeEventListener(Fn, k), R.removeEventListener(zn, j);
|
|
7427
7427
|
};
|
|
7428
7428
|
}
|
|
7429
7429
|
}, [f.viewport, S, u, d, B]), l.useEffect(() => {
|
|
@@ -7469,16 +7469,16 @@ var [of, af] = qa(dn, {
|
|
|
7469
7469
|
}),
|
|
7470
7470
|
onPointerMove: X(e.onPointerMove, (R) => {
|
|
7471
7471
|
if (!N.current) return;
|
|
7472
|
-
const j = R.clientX - N.current.x,
|
|
7472
|
+
const j = R.clientX - N.current.x, k = R.clientY - N.current.y, H = !!C.current, O = ["left", "right"].includes(f.swipeDirection), $ = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, q = O ? $(0, j) : 0, Z = O ? 0 : $(0, k), oe = R.pointerType === "touch" ? 10 : 2, ee = { x: q, y: Z }, ne = { originalEvent: R, delta: ee };
|
|
7473
7473
|
H ? (C.current = ee, Mt(tf, m, ne, {
|
|
7474
7474
|
discrete: !1
|
|
7475
7475
|
})) : Qr(ee, f.swipeDirection, oe) ? (C.current = ee, Mt(ef, p, ne, {
|
|
7476
7476
|
discrete: !1
|
|
7477
|
-
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(j) > oe || Math.abs(
|
|
7477
|
+
}), R.target.setPointerCapture(R.pointerId)) : (Math.abs(j) > oe || Math.abs(k) > oe) && (N.current = null);
|
|
7478
7478
|
}),
|
|
7479
7479
|
onPointerUp: X(e.onPointerUp, (R) => {
|
|
7480
|
-
const j = C.current,
|
|
7481
|
-
if (
|
|
7480
|
+
const j = C.current, k = R.target;
|
|
7481
|
+
if (k.hasPointerCapture(R.pointerId) && k.releasePointerCapture(R.pointerId), C.current = null, N.current = null, j) {
|
|
7482
7482
|
const H = R.currentTarget, O = { originalEvent: R, delta: j };
|
|
7483
7483
|
Qr(j, f.swipeDirection, f.swipeThreshold) ? Mt(rf, g, O, {
|
|
7484
7484
|
discrete: !0
|
|
@@ -7586,8 +7586,8 @@ var Qr = (e, t, n = 0) => {
|
|
|
7586
7586
|
};
|
|
7587
7587
|
function uf(e = () => {
|
|
7588
7588
|
}) {
|
|
7589
|
-
const t =
|
|
7590
|
-
|
|
7589
|
+
const t = he(e);
|
|
7590
|
+
Ie(() => {
|
|
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);
|
|
@@ -7764,8 +7764,8 @@ function Cf() {
|
|
|
7764
7764
|
] });
|
|
7765
7765
|
}
|
|
7766
7766
|
function Ef({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: r }) {
|
|
7767
|
-
const [o, a] =
|
|
7768
|
-
|
|
7767
|
+
const [o, a] = ve(""), s = Ts(), { toast: c } = ys();
|
|
7768
|
+
Ue(() => {
|
|
7769
7769
|
const m = new URLSearchParams(s.search).get("q");
|
|
7770
7770
|
m && a(m);
|
|
7771
7771
|
}, [s.search]);
|
|
@@ -7848,13 +7848,13 @@ const Sf = bt(
|
|
|
7848
7848
|
size: "default"
|
|
7849
7849
|
}
|
|
7850
7850
|
}
|
|
7851
|
-
),
|
|
7851
|
+
), Re = l.forwardRef(
|
|
7852
7852
|
({ 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: [
|
|
7853
7853
|
r && /* @__PURE__ */ i("span", { className: "mr-1", children: r }),
|
|
7854
7854
|
o
|
|
7855
7855
|
] })
|
|
7856
7856
|
);
|
|
7857
|
-
|
|
7857
|
+
Re.displayName = "Badge";
|
|
7858
7858
|
const Bn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7859
7859
|
"div",
|
|
7860
7860
|
{
|
|
@@ -7906,8 +7906,8 @@ const Af = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
7906
7906
|
));
|
|
7907
7907
|
Af.displayName = "CardFooter";
|
|
7908
7908
|
const kf = ({ countryCode: e, className: t = "" }) => {
|
|
7909
|
-
const [n, r] =
|
|
7910
|
-
return
|
|
7909
|
+
const [n, r] = ve(null), [o, a] = ve(!1);
|
|
7910
|
+
return Ue(() => {
|
|
7911
7911
|
if (!e) return;
|
|
7912
7912
|
const c = `https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;
|
|
7913
7913
|
fetch(c, { method: "HEAD" }).then((u) => {
|
|
@@ -8056,7 +8056,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
8056
8056
|
children: u ? /* @__PURE__ */ i(so, { className: "h-4 w-4" }) : /* @__PURE__ */ i(qs, { className: "h-4 w-4" })
|
|
8057
8057
|
}
|
|
8058
8058
|
) }),
|
|
8059
|
-
/* @__PURE__ */ i(
|
|
8059
|
+
/* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i("p", { children: "Copy video link" }) })
|
|
8060
8060
|
] }) }),
|
|
8061
8061
|
/* @__PURE__ */ i(ut, { children: /* @__PURE__ */ x(ft, { children: [
|
|
8062
8062
|
/* @__PURE__ */ i(pt, { asChild: !0, children: /* @__PURE__ */ i(
|
|
@@ -8069,7 +8069,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
8069
8069
|
children: /* @__PURE__ */ i(Qs, { className: "h-4 w-4" })
|
|
8070
8070
|
}
|
|
8071
8071
|
) }),
|
|
8072
|
-
/* @__PURE__ */ i(
|
|
8072
|
+
/* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i("p", { children: "Download video" }) })
|
|
8073
8073
|
] }) })
|
|
8074
8074
|
] })
|
|
8075
8075
|
] }) }) }),
|
|
@@ -8096,7 +8096,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
8096
8096
|
children: /* @__PURE__ */ i(di, { className: "h-4 w-4" })
|
|
8097
8097
|
}
|
|
8098
8098
|
) }),
|
|
8099
|
-
/* @__PURE__ */ i(
|
|
8099
|
+
/* @__PURE__ */ i(nt, { children: /* @__PURE__ */ i("p", { children: "Play video" }) })
|
|
8100
8100
|
] }) })
|
|
8101
8101
|
] })
|
|
8102
8102
|
] });
|
|
@@ -8202,41 +8202,47 @@ function Zf({
|
|
|
8202
8202
|
syncToShopifyAction: c,
|
|
8203
8203
|
isSyncToShopifyActionLoading: u = !1
|
|
8204
8204
|
}) {
|
|
8205
|
-
var
|
|
8206
|
-
const [d, p] =
|
|
8207
|
-
|
|
8205
|
+
var H, O, $, q, Z, oe, ee, ne, se;
|
|
8206
|
+
const [d, p] = ve(1), [m, v] = ve(null), [g, y] = ve(0), [f, h] = ve(!1), b = ((H = e == null ? void 0 : e.Distribution) == null ? void 0 : H.RegularPrice) || 0, w = ((O = e == null ? void 0 : e.Distribution) == null ? void 0 : O.Price) || 0, [N, C] = ve(null), [S, E] = ve(!1);
|
|
8207
|
+
Ue(() => {
|
|
8208
8208
|
const _ = async () => {
|
|
8209
8209
|
if (e != null && e.ManufacturerId) {
|
|
8210
8210
|
E(!0);
|
|
8211
8211
|
try {
|
|
8212
|
-
const
|
|
8212
|
+
const G = await fetch(
|
|
8213
8213
|
`https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
|
|
8214
8214
|
);
|
|
8215
|
-
if (
|
|
8216
|
-
const
|
|
8217
|
-
C(URL.createObjectURL(
|
|
8215
|
+
if (G.ok) {
|
|
8216
|
+
const me = await G.blob();
|
|
8217
|
+
C(URL.createObjectURL(me));
|
|
8218
8218
|
}
|
|
8219
|
-
} catch (
|
|
8220
|
-
console.error("Failed to load logo:",
|
|
8219
|
+
} catch (G) {
|
|
8220
|
+
console.error("Failed to load logo:", G);
|
|
8221
8221
|
} finally {
|
|
8222
8222
|
E(!1);
|
|
8223
8223
|
}
|
|
8224
8224
|
}
|
|
8225
8225
|
};
|
|
8226
8226
|
e != null && e.ManufacturerId && _();
|
|
8227
|
-
}, [e == null ? void 0 : e.ManufacturerId]),
|
|
8227
|
+
}, [e == null ? void 0 : e.ManufacturerId]), Ue(() => {
|
|
8228
8228
|
var _;
|
|
8229
8229
|
if (e && r) {
|
|
8230
|
-
const
|
|
8231
|
-
|
|
8230
|
+
const G = (_ = e.Opportunities) == null ? void 0 : _.find((me) => me.BidNumber == r);
|
|
8231
|
+
G && v(G);
|
|
8232
8232
|
}
|
|
8233
|
-
}, [e, r]),
|
|
8233
|
+
}, [e, r]), Ue(() => {
|
|
8234
8234
|
if (!e) return;
|
|
8235
8235
|
const _ = m != null && m.Price ? m.Price : w;
|
|
8236
8236
|
y(b > 0 ? Math.round((b - _) / b * 100) : 0);
|
|
8237
|
-
}, [e, m, w, b]),
|
|
8237
|
+
}, [e, m, w, b]), Ue(() => {
|
|
8238
8238
|
s || p(1);
|
|
8239
|
-
}, [s])
|
|
8239
|
+
}, [s]);
|
|
8240
|
+
const T = (_) => {
|
|
8241
|
+
if (_.Active !== !0) return !1;
|
|
8242
|
+
const G = (/* @__PURE__ */ new Date()).toISOString().split("T")[0];
|
|
8243
|
+
return !(_.EndDate && _.EndDate < G || _.StartDate && _.StartDate > G);
|
|
8244
|
+
};
|
|
8245
|
+
if (!e)
|
|
8240
8246
|
return /* @__PURE__ */ i(Bn, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ x(jn, { className: "p-6", children: [
|
|
8241
8247
|
/* @__PURE__ */ x("div", { className: "flex justify-between items-start mb-3", children: [
|
|
8242
8248
|
/* @__PURE__ */ i(Y, { className: "h-7 w-3/4" }),
|
|
@@ -8289,34 +8295,34 @@ function Zf({
|
|
|
8289
8295
|
] })
|
|
8290
8296
|
] })
|
|
8291
8297
|
] }) });
|
|
8292
|
-
const
|
|
8298
|
+
const F = (e == null ? void 0 : e.Opportunities) || [], I = F.length > 0, W = () => {
|
|
8293
8299
|
if (d == null) {
|
|
8294
8300
|
p(1);
|
|
8295
8301
|
return;
|
|
8296
8302
|
}
|
|
8297
8303
|
d > 1 && p(d - 1);
|
|
8298
|
-
},
|
|
8304
|
+
}, U = () => {
|
|
8299
8305
|
if (d == null) {
|
|
8300
8306
|
p(1);
|
|
8301
8307
|
return;
|
|
8302
8308
|
}
|
|
8303
8309
|
p(d + 1);
|
|
8304
|
-
},
|
|
8305
|
-
const
|
|
8306
|
-
if (!isNaN(
|
|
8307
|
-
p(
|
|
8310
|
+
}, B = (_) => {
|
|
8311
|
+
const G = parseInt(_.target.value, 10);
|
|
8312
|
+
if (!isNaN(G) && G > 0) {
|
|
8313
|
+
p(G);
|
|
8308
8314
|
return;
|
|
8309
8315
|
}
|
|
8310
8316
|
p(void 0);
|
|
8311
|
-
},
|
|
8317
|
+
}, D = () => {
|
|
8312
8318
|
(d == null || d < 1) && p(1);
|
|
8313
|
-
},
|
|
8319
|
+
}, R = ((q = ($ = e.Distribution) == null ? void 0 : $.Inventory) == null ? void 0 : q.reduce((_, G) => _ + (G.AvailableQuantity || 0), 0)) || 0, j = (_) => {
|
|
8314
8320
|
try {
|
|
8315
8321
|
return new Date(_).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
|
|
8316
|
-
} catch (
|
|
8317
|
-
return console.error(
|
|
8322
|
+
} catch (G) {
|
|
8323
|
+
return console.error(G), _.split("T")[0] || "N/A";
|
|
8318
8324
|
}
|
|
8319
|
-
},
|
|
8325
|
+
}, k = () => {
|
|
8320
8326
|
a && a({ quantity: d ?? 1, bidNumber: (m == null ? void 0 : m.BidNumber) ?? null });
|
|
8321
8327
|
};
|
|
8322
8328
|
return /* @__PURE__ */ i(Bn, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ x(jn, { className: "p-6", children: [
|
|
@@ -8335,7 +8341,7 @@ function Zf({
|
|
|
8335
8341
|
/* @__PURE__ */ x("div", { className: "flex-1", children: [
|
|
8336
8342
|
/* @__PURE__ */ x("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
8337
8343
|
e.State && /* @__PURE__ */ x(
|
|
8338
|
-
|
|
8344
|
+
Re,
|
|
8339
8345
|
{
|
|
8340
8346
|
variant: "outline",
|
|
8341
8347
|
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"}`,
|
|
@@ -8347,7 +8353,7 @@ function Zf({
|
|
|
8347
8353
|
}
|
|
8348
8354
|
),
|
|
8349
8355
|
/* @__PURE__ */ x(
|
|
8350
|
-
|
|
8356
|
+
Re,
|
|
8351
8357
|
{
|
|
8352
8358
|
variant: "outline",
|
|
8353
8359
|
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"}`,
|
|
@@ -8358,24 +8364,24 @@ function Zf({
|
|
|
8358
8364
|
]
|
|
8359
8365
|
}
|
|
8360
8366
|
),
|
|
8361
|
-
e.TransparencyCode && /* @__PURE__ */ x(
|
|
8367
|
+
e.TransparencyCode && /* @__PURE__ */ x(Re, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
|
|
8362
8368
|
/* @__PURE__ */ i(Ks, { size: "12", className: "mr-1.5" }),
|
|
8363
8369
|
" Transparency Code"
|
|
8364
8370
|
] }),
|
|
8365
8371
|
/* @__PURE__ */ x(
|
|
8366
|
-
|
|
8372
|
+
Re,
|
|
8367
8373
|
{
|
|
8368
8374
|
variant: "outline",
|
|
8369
8375
|
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"}`,
|
|
8370
8376
|
children: [
|
|
8371
8377
|
/* @__PURE__ */ i(bi, { size: "12", className: "mr-1.5" }),
|
|
8372
8378
|
" ",
|
|
8373
|
-
(
|
|
8379
|
+
(Z = e.ManufacturerCategory) != null && Z.QualificationRequired ? e.AvailableToBuy ? "Qualified" : "Not Qualified" : "No Qualification Required"
|
|
8374
8380
|
]
|
|
8375
8381
|
}
|
|
8376
8382
|
),
|
|
8377
8383
|
e.ManufacturerId && /* @__PURE__ */ x(
|
|
8378
|
-
|
|
8384
|
+
Re,
|
|
8379
8385
|
{
|
|
8380
8386
|
variant: "outline",
|
|
8381
8387
|
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"}`,
|
|
@@ -8387,7 +8393,7 @@ function Zf({
|
|
|
8387
8393
|
}
|
|
8388
8394
|
),
|
|
8389
8395
|
/* @__PURE__ */ x(
|
|
8390
|
-
|
|
8396
|
+
Re,
|
|
8391
8397
|
{
|
|
8392
8398
|
variant: "outline",
|
|
8393
8399
|
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"}`,
|
|
@@ -8434,30 +8440,34 @@ function Zf({
|
|
|
8434
8440
|
/* @__PURE__ */ i("div", { className: "flex flex-col", children: /* @__PURE__ */ i(Df, { randmarSKU: e.RandmarSKU || "", alt: e.RandmarTitle || "" }) })
|
|
8435
8441
|
] }),
|
|
8436
8442
|
/* @__PURE__ */ x("div", { className: "flex gap-6 mt-4", children: [
|
|
8437
|
-
/* @__PURE__ */ i("div", { className: "flex flex-1", children:
|
|
8438
|
-
/* @__PURE__ */ i("div", { className: "flex items-center", children: "You have " +
|
|
8439
|
-
/* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children:
|
|
8440
|
-
var
|
|
8443
|
+
/* @__PURE__ */ i("div", { className: "flex flex-1", children: I && e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
|
|
8444
|
+
/* @__PURE__ */ i("div", { className: "flex items-center", children: "You have " + F.length + (F.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
|
|
8445
|
+
/* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: F.map((_, G) => {
|
|
8446
|
+
var me;
|
|
8441
8447
|
return /* @__PURE__ */ x(
|
|
8442
8448
|
"div",
|
|
8443
8449
|
{
|
|
8444
8450
|
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-purple-100 border border-muted
|
|
8445
|
-
${_.BidNumber == (m == null ? void 0 : m.BidNumber) ? "cursor-pointer border-2 border-purple-900" : _
|
|
8451
|
+
${_.BidNumber == (m == null ? void 0 : m.BidNumber) ? "cursor-pointer border-2 border-purple-900" : T(_) ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
|
|
8446
8452
|
`,
|
|
8447
8453
|
onClick: () => {
|
|
8448
|
-
_
|
|
8454
|
+
T(_) && v(
|
|
8449
8455
|
_.BidNumber != (m == null ? void 0 : m.BidNumber) ? _ : null
|
|
8450
8456
|
);
|
|
8451
8457
|
},
|
|
8452
8458
|
children: [
|
|
8453
8459
|
/* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
|
|
8454
8460
|
/* @__PURE__ */ i("span", { className: "font-medium text-sm", children: _.Opportunity }),
|
|
8455
|
-
/* @__PURE__ */
|
|
8461
|
+
/* @__PURE__ */ x("span", { className: "text-xs text-neutral-900", children: [
|
|
8462
|
+
_.BidNumber,
|
|
8463
|
+
" ",
|
|
8464
|
+
!T(_) && /* @__PURE__ */ i(Re, { variant: "outline", className: "text-xs mx-1 h-5 bg-gray-100", children: "Currently unavailable" })
|
|
8465
|
+
] })
|
|
8456
8466
|
] }) }),
|
|
8457
8467
|
/* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
|
|
8458
8468
|
/* @__PURE__ */ x("span", { className: "font-semibold", children: [
|
|
8459
8469
|
"$",
|
|
8460
|
-
(
|
|
8470
|
+
(me = _.Price) == null ? void 0 : me.toFixed(2)
|
|
8461
8471
|
] }),
|
|
8462
8472
|
_.Rebate && _.Rebate > 0 && /* @__PURE__ */ x("span", { className: "text-xs text-green-600", children: [
|
|
8463
8473
|
"Rebate: $",
|
|
@@ -8465,13 +8475,12 @@ function Zf({
|
|
|
8465
8475
|
] }),
|
|
8466
8476
|
_.EndDate && /* @__PURE__ */ x("span", { className: "text-xs text-neutral-600", children: [
|
|
8467
8477
|
"Ends: ",
|
|
8468
|
-
|
|
8469
|
-
] })
|
|
8470
|
-
!_.Active && /* @__PURE__ */ i(Te, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
|
|
8478
|
+
j(_.EndDate)
|
|
8479
|
+
] })
|
|
8471
8480
|
] })
|
|
8472
8481
|
]
|
|
8473
8482
|
},
|
|
8474
|
-
|
|
8483
|
+
G
|
|
8475
8484
|
);
|
|
8476
8485
|
}) })
|
|
8477
8486
|
] }) }),
|
|
@@ -8480,16 +8489,16 @@ function Zf({
|
|
|
8480
8489
|
/* @__PURE__ */ i(Js, { className: "mr-2" }),
|
|
8481
8490
|
"View Product"
|
|
8482
8491
|
] }),
|
|
8483
|
-
((
|
|
8492
|
+
((oe = e.Distribution) == null ? void 0 : oe.Inventory) && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ x(Zt, { open: f, onOpenChange: h, children: [
|
|
8484
8493
|
/* @__PURE__ */ i(Jo, { asChild: !0, children: /* @__PURE__ */ x(
|
|
8485
8494
|
ie,
|
|
8486
8495
|
{
|
|
8487
8496
|
variant: "ghost",
|
|
8488
|
-
className: `flex items-center text-sm ${
|
|
8497
|
+
className: `flex items-center text-sm ${R > 0 ? "text-green-700" : "text-red-700"}`,
|
|
8489
8498
|
children: [
|
|
8490
8499
|
/* @__PURE__ */ i(xr, { size: "16", className: "mr-2" }),
|
|
8491
|
-
|
|
8492
|
-
|
|
8500
|
+
R > 0 ? /* @__PURE__ */ x(te, { children: [
|
|
8501
|
+
R,
|
|
8493
8502
|
" in stock"
|
|
8494
8503
|
] }) : /* @__PURE__ */ i(te, { children: "Out of stock" })
|
|
8495
8504
|
]
|
|
@@ -8510,7 +8519,7 @@ function Zf({
|
|
|
8510
8519
|
/* @__PURE__ */ x("div", { className: "flex items-center flex-wrap", children: [
|
|
8511
8520
|
/* @__PURE__ */ x("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
|
|
8512
8521
|
/* @__PURE__ */ i("span", { children: "$" }),
|
|
8513
|
-
m ? (
|
|
8522
|
+
m ? (ne = (ee = e.Opportunities) == null ? void 0 : ee.find((_) => _.BidNumber == m.BidNumber)) == null ? void 0 : ne.Price : w.toFixed(2),
|
|
8514
8523
|
/* @__PURE__ */ i("span", { children: " CAD" })
|
|
8515
8524
|
] }),
|
|
8516
8525
|
g > 0 && /* @__PURE__ */ x("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
|
|
@@ -8518,12 +8527,12 @@ function Zf({
|
|
|
8518
8527
|
b.toFixed(2)
|
|
8519
8528
|
] })
|
|
8520
8529
|
] }),
|
|
8521
|
-
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(
|
|
8530
|
+
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(Re, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
8522
8531
|
/* @__PURE__ */ x("span", { children: [
|
|
8523
8532
|
g,
|
|
8524
8533
|
"% OFF"
|
|
8525
8534
|
] }),
|
|
8526
|
-
((
|
|
8535
|
+
((se = e.InstantRebate) == null ? void 0 : se.EndDate) && /* @__PURE__ */ x(te, { children: [
|
|
8527
8536
|
/* @__PURE__ */ i("span", { className: "mx-1.5", children: "●" }),
|
|
8528
8537
|
" Ends ",
|
|
8529
8538
|
e.InstantRebate.EndDate.split("T")[0]
|
|
@@ -8543,7 +8552,7 @@ function Zf({
|
|
|
8543
8552
|
variant: "ghost",
|
|
8544
8553
|
size: "icon",
|
|
8545
8554
|
className: "rounded-r-none",
|
|
8546
|
-
onClick:
|
|
8555
|
+
onClick: W,
|
|
8547
8556
|
disabled: typeof d < "u" && (d <= 1 || !e.AvailableToBuy || s || !a),
|
|
8548
8557
|
children: "-"
|
|
8549
8558
|
}
|
|
@@ -8552,8 +8561,8 @@ function Zf({
|
|
|
8552
8561
|
"input",
|
|
8553
8562
|
{
|
|
8554
8563
|
value: d,
|
|
8555
|
-
onChange:
|
|
8556
|
-
onBlur:
|
|
8564
|
+
onChange: B,
|
|
8565
|
+
onBlur: D,
|
|
8557
8566
|
onClick: (_) => _.currentTarget.select(),
|
|
8558
8567
|
className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || s || !a ? "text-gray-400" : ""}`,
|
|
8559
8568
|
disabled: !e.AvailableToBuy || s || !a
|
|
@@ -8565,7 +8574,7 @@ function Zf({
|
|
|
8565
8574
|
variant: "ghost",
|
|
8566
8575
|
size: "icon",
|
|
8567
8576
|
className: "rounded-l-none",
|
|
8568
|
-
onClick:
|
|
8577
|
+
onClick: U,
|
|
8569
8578
|
disabled: !e.AvailableToBuy || s || !a,
|
|
8570
8579
|
children: "+"
|
|
8571
8580
|
}
|
|
@@ -8575,7 +8584,7 @@ function Zf({
|
|
|
8575
8584
|
ie,
|
|
8576
8585
|
{
|
|
8577
8586
|
className: "gap-2 whitespace-nowrap",
|
|
8578
|
-
onClick:
|
|
8587
|
+
onClick: k,
|
|
8579
8588
|
disabled: !e.AvailableToBuy || s || !a,
|
|
8580
8589
|
children: s ? /* @__PURE__ */ x(te, { children: [
|
|
8581
8590
|
/* @__PURE__ */ i(yr, { className: "h-4 w-4 animate-spin" }),
|
|
@@ -8607,7 +8616,7 @@ function Zf({
|
|
|
8607
8616
|
}
|
|
8608
8617
|
export {
|
|
8609
8618
|
Yf as AvatarFooter,
|
|
8610
|
-
|
|
8619
|
+
Re as Badge,
|
|
8611
8620
|
ie as Button,
|
|
8612
8621
|
Bn as Card,
|
|
8613
8622
|
jn as CardContent,
|
|
@@ -8680,7 +8689,7 @@ export {
|
|
|
8680
8689
|
ms as ToastViewport,
|
|
8681
8690
|
Cf as Toaster,
|
|
8682
8691
|
ft as Tooltip,
|
|
8683
|
-
|
|
8692
|
+
nt as TooltipContent,
|
|
8684
8693
|
ut as TooltipProvider,
|
|
8685
8694
|
pt as TooltipTrigger,
|
|
8686
8695
|
Ef as Topbar,
|