randmarcomps 1.68.0 → 1.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/randmarcomps.d.ts +12 -3
- package/dist/randmarcomps.js +316 -281
- package/dist/randmarcomps.umd.cjs +27 -27
- 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 Be, { forwardRef as Jr, createElement as Tn, useState as
|
|
3
|
+
import Be, { forwardRef as Jr, createElement as Tn, useState as me, useLayoutEffect as Es, useEffect as He } 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";
|
|
@@ -69,7 +69,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
69
69
|
re(null), G(null);
|
|
70
70
|
return;
|
|
71
71
|
}
|
|
72
|
-
let K = I.selectionStart, ce = I.selectionEnd, Ct = I.selectionDirection, pe = I.maxLength, Fe = I.value,
|
|
72
|
+
let K = I.selectionStart, ce = I.selectionEnd, Ct = I.selectionDirection, pe = I.maxLength, Fe = I.value, Ee = P.current.prev, Ae = -1, ke = -1, ze;
|
|
73
73
|
if (Fe.length !== 0 && K !== null && ce !== null) {
|
|
74
74
|
let xs = K === ce, Ns = K === Fe.length && Fe.length < pe;
|
|
75
75
|
if (xs && !Ns) {
|
|
@@ -78,9 +78,9 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
78
78
|
else if (We === pe) Ae = We - 1, ke = We, ze = "backward";
|
|
79
79
|
else if (pe > 1 && Fe.length > 1) {
|
|
80
80
|
let un = 0;
|
|
81
|
-
if (
|
|
82
|
-
ze = We <
|
|
83
|
-
let Cs =
|
|
81
|
+
if (Ee[0] !== null && Ee[1] !== null) {
|
|
82
|
+
ze = We < Ee[1] ? "backward" : "forward";
|
|
83
|
+
let Cs = Ee[0] === Ee[1] && Ee[0] < pe;
|
|
84
84
|
ze === "backward" && !Cs && (un = -1);
|
|
85
85
|
}
|
|
86
86
|
Ae = un + We, ke = un + We + 1;
|
|
@@ -125,7 +125,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
127
127
|
typeof W == "string" && F.length < W.length && document.dispatchEvent(new Event("selectionchange")), H(F);
|
|
128
|
-
}, [a, H, W, B]),
|
|
128
|
+
}, [a, H, W, B]), ye = l.useCallback(() => {
|
|
129
129
|
var I;
|
|
130
130
|
if (D.current) {
|
|
131
131
|
let F = Math.min(D.current.value.length, a - 1), oe = D.current.value.length;
|
|
@@ -141,8 +141,8 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
141
141
|
let ce = (F = D.current) == null ? void 0 : F.selectionStart, Ct = (oe = D.current) == null ? void 0 : oe.selectionEnd, pe = (ce !== Ct ? _.slice(0, ce) + K + _.slice(Ct) : _.slice(0, ce) + K + _.slice(ce)).slice(0, a);
|
|
142
142
|
if (pe.length > 0 && B && !B.test(pe)) return;
|
|
143
143
|
ie.value = pe, H(pe);
|
|
144
|
-
let Fe = Math.min(pe.length, a - 1),
|
|
145
|
-
ie.setSelectionRange(Fe,
|
|
144
|
+
let Fe = Math.min(pe.length, a - 1), Ee = pe.length;
|
|
145
|
+
ie.setSelectionRange(Fe, Ee), re(Fe), G(Ee);
|
|
146
146
|
}, [a, H, B, _]), 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: J.willPushPWMBadge ? `calc(100% + ${J.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: J.willPushPWMBadge ? `inset(0 ${J.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" }), [J.PWM_BADGE_SPACE_WIDTH, J.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": _.length === 0 || void 0, "data-input-otp-mss": Z, "data-input-otp-mse": $, inputMode: d, pattern: B == null ? void 0 : B.source, "aria-placeholder": u, style: ct, maxLength: a, value: _, ref: D, onPaste: (I) => {
|
|
147
147
|
var F;
|
|
148
148
|
lt(I), (F = b.onPaste) == null || F.call(b, I);
|
|
@@ -154,15 +154,15 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
|
|
|
154
154
|
O(!1), (F = b.onMouseLeave) == null || F.call(b, I);
|
|
155
155
|
}, onFocus: (I) => {
|
|
156
156
|
var F;
|
|
157
|
-
|
|
157
|
+
ye(), (F = b.onFocus) == null || F.call(b, I);
|
|
158
158
|
}, onBlur: (I) => {
|
|
159
159
|
var F;
|
|
160
160
|
q(!1), (F = b.onBlur) == null || F.call(b, I);
|
|
161
|
-
} })), [Pe,
|
|
161
|
+
} })), [Pe, ye, lt, d, ct, a, $, Z, b, B == null ? void 0 : B.source, _]), Ye = l.useMemo(() => ({ slots: Array.from({ length: a }).map((I, F) => {
|
|
162
162
|
var oe;
|
|
163
163
|
let ie = L && Z !== null && $ !== null && (Z === $ && F === Z || F >= Z && F < $), le = _[F] !== void 0 ? _[F] : null, K = _[0] !== void 0 ? null : (oe = u == null ? void 0 : u[F]) != null ? oe : null;
|
|
164
164
|
return { char: le, placeholderChar: K, isActive: ie, hasFakeCaret: ie && le === null };
|
|
165
|
-
}), isFocused: L, isHovering: !b.disabled && U }), [L, U, a, $, Z, b.disabled, _]), $e = l.useMemo(() => f ? f(
|
|
165
|
+
}), isFocused: L, isHovering: !b.disabled && U }), [L, U, a, $, Z, b.disabled, _]), $e = l.useMemo(() => f ? f(Ye) : l.createElement(ro.Provider, { value: Ye }, h), [h, Ye, f]);
|
|
166
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 }, $e, l.createElement("div", { style: { position: "absolute", inset: 0, pointerEvents: "none" } }, Nt)));
|
|
167
167
|
});
|
|
168
168
|
oo.displayName = "Input";
|
|
@@ -775,7 +775,7 @@ function zi(e, ...t) {
|
|
|
775
775
|
const ne = (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)\(.+\)$/, qe = (e) => Wi.test(e), V = (e) => !!e && !Number.isNaN(Number(e)), je = (e) => !!e && Number.isInteger(Number(e)), Er = (e) => e.endsWith("%") && V(e.slice(0, -1)), Me = (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.
|
|
@@ -787,9 +787,9 @@ const ne = (e) => {
|
|
|
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 = ne("color"), t = ne("font"), n = ne("text"), r = ne("font-weight"), o = ne("tracking"), a = ne("leading"), s = ne("breakpoint"), c = ne("container"), u = ne("spacing"), d = ne("radius"), p = ne("shadow"), m = ne("inset-shadow"), v = ne("drop-shadow"), g = ne("blur"), y = ne("perspective"), f = ne("aspect"), h = ne("ease"), b = ne("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 = () => [k, A, u], T = () => [
|
|
790
|
+
const e = ne("color"), t = ne("font"), n = ne("text"), r = ne("font-weight"), o = ne("tracking"), a = ne("leading"), s = ne("breakpoint"), c = ne("container"), u = ne("spacing"), d = ne("radius"), p = ne("shadow"), m = ne("inset-shadow"), v = ne("drop-shadow"), g = ne("blur"), y = ne("perspective"), f = ne("aspect"), h = ne("ease"), b = ne("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 = () => [k, A, u], T = () => [qe, "full", "auto", ...E()], z = () => [je, "none", "subgrid", k, A], _ = () => ["auto", {
|
|
791
791
|
span: ["full", je, k, A]
|
|
792
|
-
}, k, A], W = () => [je, "auto", k, A], H = () => ["auto", "min", "max", "fr", k, A], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], D = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], j = () => [
|
|
792
|
+
}, k, A], W = () => [je, "auto", k, A], H = () => ["auto", "min", "max", "fr", k, A], B = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], D = () => ["start", "end", "center", "stretch"], R = () => ["auto", ...E()], j = () => [qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], P = () => [e, k, A], U = () => [Er, Ve], O = () => [
|
|
793
793
|
// Deprecated since Tailwind CSS v4.0.0
|
|
794
794
|
"",
|
|
795
795
|
"none",
|
|
@@ -804,7 +804,7 @@ const ne = (e) => {
|
|
|
804
804
|
g,
|
|
805
805
|
k,
|
|
806
806
|
A
|
|
807
|
-
], $ = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], G = () => ["none", V, k, A], J = () => ["none", V, k, A], Pe = () => [V, k, A],
|
|
807
|
+
], $ = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], G = () => ["none", V, k, A], J = () => ["none", V, k, A], Pe = () => [V, k, A], ye = () => [qe, "full", ...E()];
|
|
808
808
|
return {
|
|
809
809
|
cacheSize: 500,
|
|
810
810
|
theme: {
|
|
@@ -836,7 +836,7 @@ const ne = (e) => {
|
|
|
836
836
|
* @see https://tailwindcss.com/docs/aspect-ratio
|
|
837
837
|
*/
|
|
838
838
|
aspect: [{
|
|
839
|
-
aspect: ["auto", "square",
|
|
839
|
+
aspect: ["auto", "square", qe, A, k, f]
|
|
840
840
|
}],
|
|
841
841
|
/**
|
|
842
842
|
* Container
|
|
@@ -1059,7 +1059,7 @@ const ne = (e) => {
|
|
|
1059
1059
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1060
1060
|
*/
|
|
1061
1061
|
basis: [{
|
|
1062
|
-
basis: [
|
|
1062
|
+
basis: [qe, "full", "auto", c, ...E()]
|
|
1063
1063
|
}],
|
|
1064
1064
|
/**
|
|
1065
1065
|
* Flex Direction
|
|
@@ -1080,7 +1080,7 @@ const ne = (e) => {
|
|
|
1080
1080
|
* @see https://tailwindcss.com/docs/flex
|
|
1081
1081
|
*/
|
|
1082
1082
|
flex: [{
|
|
1083
|
-
flex: [V,
|
|
1083
|
+
flex: [V, qe, "auto", "initial", "none", A]
|
|
1084
1084
|
}],
|
|
1085
1085
|
/**
|
|
1086
1086
|
* Flex Grow
|
|
@@ -2627,28 +2627,28 @@ const ne = (e) => {
|
|
|
2627
2627
|
* @see https://tailwindcss.com/docs/translate
|
|
2628
2628
|
*/
|
|
2629
2629
|
translate: [{
|
|
2630
|
-
translate:
|
|
2630
|
+
translate: ye()
|
|
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": ye()
|
|
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": ye()
|
|
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": ye()
|
|
2652
2652
|
}],
|
|
2653
2653
|
/**
|
|
2654
2654
|
* Translate None
|
|
@@ -3009,7 +3009,7 @@ const ne = (e) => {
|
|
|
3009
3009
|
function M(...e) {
|
|
3010
3010
|
return fl(lo(e));
|
|
3011
3011
|
}
|
|
3012
|
-
function
|
|
3012
|
+
function zf({
|
|
3013
3013
|
className: e,
|
|
3014
3014
|
containerClassName: t,
|
|
3015
3015
|
...n
|
|
@@ -3027,7 +3027,7 @@ function Ff({
|
|
|
3027
3027
|
}
|
|
3028
3028
|
);
|
|
3029
3029
|
}
|
|
3030
|
-
function
|
|
3030
|
+
function Wf({ className: e, ...t }) {
|
|
3031
3031
|
return /* @__PURE__ */ i(
|
|
3032
3032
|
"div",
|
|
3033
3033
|
{
|
|
@@ -3037,7 +3037,7 @@ function zf({ className: e, ...t }) {
|
|
|
3037
3037
|
}
|
|
3038
3038
|
);
|
|
3039
3039
|
}
|
|
3040
|
-
function
|
|
3040
|
+
function Bf({
|
|
3041
3041
|
index: e,
|
|
3042
3042
|
className: t,
|
|
3043
3043
|
...n
|
|
@@ -3060,7 +3060,7 @@ function Wf({
|
|
|
3060
3060
|
}
|
|
3061
3061
|
);
|
|
3062
3062
|
}
|
|
3063
|
-
function
|
|
3063
|
+
function jf({ ...e }) {
|
|
3064
3064
|
return /* @__PURE__ */ i("div", { "data-slot": "input-otp-separator", role: "separator", ...e, children: /* @__PURE__ */ i(si, {}) });
|
|
3065
3065
|
}
|
|
3066
3066
|
function X(e, t, { checkForDefaultPrevented: n = !0 } = {}) {
|
|
@@ -3202,7 +3202,7 @@ function vl({
|
|
|
3202
3202
|
o.current !== r && (a(r), o.current = r);
|
|
3203
3203
|
}, [r, o, a]), n;
|
|
3204
3204
|
}
|
|
3205
|
-
var
|
|
3205
|
+
var he = 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 me = l.forwardRef((e, t) => {
|
|
|
3210
3210
|
}
|
|
3211
3211
|
return /* @__PURE__ */ i(kn, { ...r, ref: t, children: n });
|
|
3212
3212
|
});
|
|
3213
|
-
|
|
3213
|
+
he.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 ? he : 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 };
|
|
@@ -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 Ke = (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 = se(r.ref, Bl(o));
|
|
3536
3536
|
return typeof n == "function" || r.isPresent ? l.cloneElement(o, { ref: a }) : null;
|
|
3537
3537
|
};
|
|
3538
|
-
|
|
3538
|
+
Ke.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: {
|
|
@@ -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 we = function() {
|
|
3610
|
+
return we = 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
|
+
}, we.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 = me(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 = we({ 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, we({}, 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 = we(we({}, 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), we(we({}, E), { ref: S })) : l.createElement(b, we({}, E, { className: u, ref: S }), c)
|
|
3764
3764
|
);
|
|
3765
3765
|
});
|
|
3766
3766
|
Gt.defaultProps = {
|
|
@@ -3909,7 +3909,7 @@ if (typeof window < "u")
|
|
|
3909
3909
|
} catch {
|
|
3910
3910
|
On = !1;
|
|
3911
3911
|
}
|
|
3912
|
-
var
|
|
3912
|
+
var Xe = 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 qe = 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, Qe = [];
|
|
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() {
|
|
@@ -4016,7 +4016,7 @@ function Nc(e) {
|
|
|
4016
4016
|
return bc(_, h, f, _ === "h" ? N : C);
|
|
4017
4017
|
}, []), u = l.useCallback(function(f) {
|
|
4018
4018
|
var h = f;
|
|
4019
|
-
if (!(!
|
|
4019
|
+
if (!(!Qe.length || Qe[Qe.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 Qe.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, Xe), document.addEventListener("touchmove", u, Xe), document.addEventListener("touchstart", p, Xe), function() {
|
|
4054
|
+
Qe = Qe.filter(function(f) {
|
|
4055
4055
|
return f !== a;
|
|
4056
|
-
}), document.removeEventListener("wheel", u,
|
|
4056
|
+
}), document.removeEventListener("wheel", u, Xe), document.removeEventListener("touchmove", u, Xe), document.removeEventListener("touchstart", p, Xe);
|
|
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, we({}, 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
|
+
}, Ze = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {}, yn = 0, _o = function(e) {
|
|
4083
4083
|
return e && (e.host || _o(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 = (Ze.get(v) || 0) + 1, h = (a.get(v) || 0) + 1;
|
|
4107
|
+
Ze.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 = Ze.get(m) - 1, g = a.get(m) - 1;
|
|
4116
|
+
Ze.set(m, v), a.set(m, g), v || (Pt.has(m) || m.removeAttribute(r), Pt.delete(m)), g || m.removeAttribute(n);
|
|
4117
|
+
}), yn--, yn || (Ze = /* @__PURE__ */ new WeakMap(), Ze = /* @__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", [Io,
|
|
4125
|
+
}, Yn = "Dialog", [Io, Vf] = vt(Yn), [Ac, be] = Io(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 = be($o, n), a = se(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] = Io(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 = be(qn, t);
|
|
4179
|
+
return /* @__PURE__ */ i(kc, { scope: t, forceMount: n, children: l.Children.map(r, (s) => /* @__PURE__ */ i(Ke, { 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 = be(zt, e.__scopeDialog);
|
|
4185
|
+
return a.modal ? /* @__PURE__ */ i(Ke, { 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 = be(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: he, 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
|
+
), Ue = "DialogContent", jo = l.forwardRef(
|
|
4207
4207
|
(e, t) => {
|
|
4208
|
-
const n = zo(
|
|
4209
|
-
return /* @__PURE__ */ i(
|
|
4208
|
+
const n = zo(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = be(Ue, e.__scopeDialog);
|
|
4209
|
+
return /* @__PURE__ */ i(Ke, { 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 = Ue;
|
|
4213
4213
|
var Oc = l.forwardRef(
|
|
4214
4214
|
(e, t) => {
|
|
4215
|
-
const n =
|
|
4215
|
+
const n = be(Ue, e.__scopeDialog), r = l.useRef(null), o = se(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 = be(Ue, 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 = be(Ue, n), u = l.useRef(null), d = se(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 = be(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 = be(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 = be(Ko, n);
|
|
4314
4314
|
return /* @__PURE__ */ i(
|
|
4315
4315
|
Q.button,
|
|
4316
4316
|
{
|
|
@@ -4326,8 +4326,8 @@ Yo.displayName = Ko;
|
|
|
4326
4326
|
function Qn(e) {
|
|
4327
4327
|
return e ? "open" : "closed";
|
|
4328
4328
|
}
|
|
4329
|
-
var qo = "DialogTitleWarning", [
|
|
4330
|
-
contentName:
|
|
4329
|
+
var qo = "DialogTitleWarning", [Hf, Xo] = pl(qo, {
|
|
4330
|
+
contentName: Ue,
|
|
4331
4331
|
titleName: Xn,
|
|
4332
4332
|
docsSlug: "dialog"
|
|
4333
4333
|
}), _c = ({ titleId: e }) => {
|
|
@@ -4491,7 +4491,7 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
|
|
|
4491
4491
|
}
|
|
4492
4492
|
), ae = 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 ? he : "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
|
ae.displayName = "Button";
|
|
4534
|
-
const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt = Math.round, kt = Math.floor,
|
|
4534
|
+
const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt = Math.round, kt = Math.floor, xe = (e) => ({
|
|
4535
4535
|
x: e,
|
|
4536
4536
|
y: e
|
|
4537
4537
|
}), zc = {
|
|
@@ -5158,17 +5158,17 @@ function ue(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 Ce(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 ue(e).Node : !1;
|
|
5167
5167
|
}
|
|
5168
|
-
function
|
|
5168
|
+
function ge(e) {
|
|
5169
5169
|
return en() ? e instanceof Element || e instanceof ue(e).Element : !1;
|
|
5170
5170
|
}
|
|
5171
|
-
function
|
|
5171
|
+
function Ne(e) {
|
|
5172
5172
|
return en() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
|
|
5173
5173
|
}
|
|
5174
5174
|
function Ur(e) {
|
|
@@ -5180,7 +5180,7 @@ function yt(e) {
|
|
|
5180
5180
|
overflowX: n,
|
|
5181
5181
|
overflowY: r,
|
|
5182
5182
|
display: o
|
|
5183
|
-
} =
|
|
5183
|
+
} = ve(e);
|
|
5184
5184
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
|
|
5185
5185
|
}
|
|
5186
5186
|
function td(e) {
|
|
@@ -5196,12 +5196,12 @@ function tn(e) {
|
|
|
5196
5196
|
});
|
|
5197
5197
|
}
|
|
5198
5198
|
function or(e) {
|
|
5199
|
-
const t = ar(), n =
|
|
5199
|
+
const t = ar(), n = ge(e) ? ve(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
5203
|
let t = Le(e);
|
|
5204
|
-
for (;
|
|
5204
|
+
for (; Ne(t) && !nt(t); ) {
|
|
5205
5205
|
if (or(t))
|
|
5206
5206
|
return t;
|
|
5207
5207
|
if (tn(t))
|
|
@@ -5216,11 +5216,11 @@ function ar() {
|
|
|
5216
5216
|
function nt(e) {
|
|
5217
5217
|
return ["html", "body", "#document"].includes(it(e));
|
|
5218
5218
|
}
|
|
5219
|
-
function
|
|
5219
|
+
function ve(e) {
|
|
5220
5220
|
return ue(e).getComputedStyle(e);
|
|
5221
5221
|
}
|
|
5222
5222
|
function nn(e) {
|
|
5223
|
-
return
|
|
5223
|
+
return ge(e) ? {
|
|
5224
5224
|
scrollLeft: e.scrollLeft,
|
|
5225
5225
|
scrollTop: e.scrollTop
|
|
5226
5226
|
} : {
|
|
@@ -5236,13 +5236,13 @@ function Le(e) {
|
|
|
5236
5236
|
e.assignedSlot || // DOM Element detected.
|
|
5237
5237
|
e.parentNode || // ShadowRoot detected.
|
|
5238
5238
|
Ur(e) && e.host || // Fallback.
|
|
5239
|
-
|
|
5239
|
+
Ce(e)
|
|
5240
5240
|
);
|
|
5241
5241
|
return Ur(t) ? t.host : t;
|
|
5242
5242
|
}
|
|
5243
5243
|
function aa(e) {
|
|
5244
5244
|
const t = Le(e);
|
|
5245
|
-
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body :
|
|
5245
|
+
return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ne(t) && yt(t) ? t : aa(t);
|
|
5246
5246
|
}
|
|
5247
5247
|
function gt(e, t, n) {
|
|
5248
5248
|
var r;
|
|
@@ -5258,9 +5258,9 @@ function In(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 = ve(e);
|
|
5262
5262
|
let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
|
|
5263
|
-
const o =
|
|
5263
|
+
const o = Ne(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 ge(e) ? e : e.contextElement;
|
|
5272
5272
|
}
|
|
5273
5273
|
function et(e) {
|
|
5274
5274
|
const t = sr(e);
|
|
5275
|
-
if (!
|
|
5276
|
-
return
|
|
5275
|
+
if (!Ne(t))
|
|
5276
|
+
return xe(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__ */ xe(0);
|
|
5289
5289
|
function ia(e) {
|
|
5290
5290
|
const t = ue(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 !== ue(e) ? !1 : t;
|
|
5298
5298
|
}
|
|
5299
|
-
function
|
|
5299
|
+
function Ge(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 = xe(1);
|
|
5303
|
+
t && (r ? ge(r) && (s = et(r)) : s = et(e));
|
|
5304
|
+
const c = od(a, n, r) ? ia(a) : xe(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 = ue(a), g = r &&
|
|
5307
|
+
const v = ue(a), g = r && ge(r) ? ue(r) : r;
|
|
5308
5308
|
let y = v, f = In(y);
|
|
5309
5309
|
for (; f && r && g !== y; ) {
|
|
5310
|
-
const h = et(f), b = f.getBoundingClientRect(), w =
|
|
5310
|
+
const h = et(f), b = f.getBoundingClientRect(), w = ve(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 = ue(f), f = In(y);
|
|
5312
5312
|
}
|
|
5313
5313
|
}
|
|
@@ -5320,7 +5320,7 @@ function Ue(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 : Ge(Ce(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 = Ce(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) && ((it(r) !== "body" || yt(s)) && (u = nn(r)),
|
|
5352
|
-
const g =
|
|
5349
|
+
}, d = xe(1);
|
|
5350
|
+
const p = xe(0), m = Ne(r);
|
|
5351
|
+
if ((m || !m && !a) && ((it(r) !== "body" || yt(s)) && (u = nn(r)), Ne(r))) {
|
|
5352
|
+
const g = Ge(r);
|
|
5353
5353
|
d = et(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) : xe(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 = Ce(e), n = nn(e), r = e.ownerDocument.body, o = de(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = de(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 ve(r).direction === "rtl" && (s += de(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 = ue(e), r =
|
|
5378
|
+
const n = ue(e), r = Ce(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 = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ne(e) ? et(e) : xe(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(Ce(e));
|
|
5407
|
+
else if (ge(t))
|
|
5408
5408
|
r = cd(t, n);
|
|
5409
5409
|
else {
|
|
5410
5410
|
const o = ia(e);
|
|
@@ -5419,17 +5419,17 @@ function Gr(e, t, n) {
|
|
|
5419
5419
|
}
|
|
5420
5420
|
function ca(e, t) {
|
|
5421
5421
|
const n = Le(e);
|
|
5422
|
-
return n === t || !
|
|
5422
|
+
return n === t || !ge(n) || nt(n) ? !1 : ve(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 =
|
|
5428
|
+
let r = gt(e, [], !1).filter((c) => ge(c) && it(c) !== "body"), o = null;
|
|
5429
|
+
const a = ve(e).position === "fixed";
|
|
5430
5430
|
let s = a ? Le(e) : e;
|
|
5431
|
-
for (;
|
|
5432
|
-
const c =
|
|
5431
|
+
for (; ge(s) && !nt(s); ) {
|
|
5432
|
+
const c = ve(s), u = or(s);
|
|
5433
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 = Le(s);
|
|
5434
5434
|
}
|
|
5435
5435
|
return t.set(e, r), r;
|
|
@@ -5463,18 +5463,18 @@ function fd(e) {
|
|
|
5463
5463
|
};
|
|
5464
5464
|
}
|
|
5465
5465
|
function pd(e, t, n) {
|
|
5466
|
-
const r =
|
|
5466
|
+
const r = Ne(t), o = Ce(t), a = n === "fixed", s = Ge(e, !0, a, t);
|
|
5467
5467
|
let c = {
|
|
5468
5468
|
scrollLeft: 0,
|
|
5469
5469
|
scrollTop: 0
|
|
5470
5470
|
};
|
|
5471
|
-
const u =
|
|
5471
|
+
const u = xe(0);
|
|
5472
5472
|
if (r || !r && !a)
|
|
5473
5473
|
if ((it(t) !== "body" || yt(o)) && (c = nn(t)), r) {
|
|
5474
|
-
const v =
|
|
5474
|
+
const v = Ge(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) : xe(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,24 +5483,24 @@ function pd(e, t, n) {
|
|
|
5483
5483
|
};
|
|
5484
5484
|
}
|
|
5485
5485
|
function wn(e) {
|
|
5486
|
-
return
|
|
5486
|
+
return ve(e).position === "static";
|
|
5487
5487
|
}
|
|
5488
5488
|
function Kr(e, t) {
|
|
5489
|
-
if (!
|
|
5489
|
+
if (!Ne(e) || ve(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 Ce(e) === n && (n = n.ownerDocument.body), n;
|
|
5495
5495
|
}
|
|
5496
5496
|
function da(e, t) {
|
|
5497
5497
|
const n = ue(e);
|
|
5498
5498
|
if (tn(e))
|
|
5499
5499
|
return n;
|
|
5500
|
-
if (!
|
|
5500
|
+
if (!Ne(e)) {
|
|
5501
5501
|
let o = Le(e);
|
|
5502
5502
|
for (; o && !nt(o); ) {
|
|
5503
|
-
if (
|
|
5503
|
+
if (ge(o) && !wn(o))
|
|
5504
5504
|
return o;
|
|
5505
5505
|
o = Le(o);
|
|
5506
5506
|
}
|
|
@@ -5524,18 +5524,18 @@ const md = async function(e) {
|
|
|
5524
5524
|
};
|
|
5525
5525
|
};
|
|
5526
5526
|
function hd(e) {
|
|
5527
|
-
return
|
|
5527
|
+
return ve(e).direction === "rtl";
|
|
5528
5528
|
}
|
|
5529
5529
|
const gd = {
|
|
5530
5530
|
convertOffsetParentRelativeRectToViewportRelativeRect: ad,
|
|
5531
|
-
getDocumentElement:
|
|
5531
|
+
getDocumentElement: Ce,
|
|
5532
5532
|
getClippingRect: ud,
|
|
5533
5533
|
getOffsetParent: da,
|
|
5534
5534
|
getElementRects: md,
|
|
5535
5535
|
getClientRects: sd,
|
|
5536
5536
|
getDimensions: fd,
|
|
5537
5537
|
getScale: et,
|
|
5538
|
-
isElement:
|
|
5538
|
+
isElement: ge,
|
|
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 = Ce(e);
|
|
5547
5547
|
function a() {
|
|
5548
5548
|
var c;
|
|
5549
5549
|
clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
|
|
@@ -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 ? Ge(e) : null;
|
|
5614
5614
|
u && h();
|
|
5615
5615
|
function h() {
|
|
5616
|
-
const b =
|
|
5616
|
+
const b = Ge(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 It = typeof document < "u" ? Es :
|
|
5639
|
+
var It = typeof document < "u" ? Es : He;
|
|
5640
5640
|
function Vt(e, t) {
|
|
5641
5641
|
if (e === t)
|
|
5642
5642
|
return !0;
|
|
@@ -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 ye, lt, xt, ct, Nt, Ye;
|
|
5884
5884
|
const {
|
|
5885
5885
|
__scopePopper: n,
|
|
5886
5886
|
side: r = "bottom",
|
|
@@ -5935,7 +5935,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
|
|
|
5935
5935
|
De(() => {
|
|
5936
5936
|
U && (Z == null || Z());
|
|
5937
5937
|
}, [U, Z]);
|
|
5938
|
-
const re = (
|
|
5938
|
+
const re = (ye = O.arrow) == null ? void 0 : ye.x, $ = (lt = O.arrow) == null ? void 0 : lt.y, G = ((xt = O.arrow) == null ? void 0 : xt.centerOffset) !== 0, [J, Pe] = l.useState();
|
|
5939
5939
|
return De(() => {
|
|
5940
5940
|
b && Pe(window.getComputedStyle(b).zIndex);
|
|
5941
5941
|
}, [b]), /* @__PURE__ */ i(
|
|
@@ -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
|
+
...((Ye = O.hide) == null ? void 0 : Ye.referenceHidden) && {
|
|
5960
5960
|
visibility: "hidden",
|
|
5961
5961
|
pointerEvents: "none"
|
|
5962
5962
|
}
|
|
@@ -6085,7 +6085,7 @@ var Hd = va, Ud = ya, Gd = wa, Kd = Na, Yd = "VisuallyHidden", rn = l.forwardRef
|
|
|
6085
6085
|
)
|
|
6086
6086
|
);
|
|
6087
6087
|
rn.displayName = Yd;
|
|
6088
|
-
var qd = rn, [on,
|
|
6088
|
+
var qd = rn, [on, Uf] = vt("Tooltip", [
|
|
6089
6089
|
ha
|
|
6090
6090
|
]), an = ha(), Ea = "TooltipProvider", Xd = 700, Ln = "tooltip.open", [Qd, dr] = on(Ea), Sa = (e) => {
|
|
6091
6091
|
const {
|
|
@@ -6205,13 +6205,13 @@ 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(Ke, { present: n || a.open, children: /* @__PURE__ */ i(Ut, { asChild: !0, container: o, children: r }) }) });
|
|
6209
6209
|
};
|
|
6210
6210
|
Pa.displayName = ur;
|
|
6211
6211
|
var rt = "TooltipContent", Aa = l.forwardRef(
|
|
6212
6212
|
(e, t) => {
|
|
6213
6213
|
const n = eu(rt, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = wt(rt, e.__scopeTooltip);
|
|
6214
|
-
return /* @__PURE__ */ i(
|
|
6214
|
+
return /* @__PURE__ */ i(Ke, { 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
6217
|
const n = wt(rt, e.__scopeTooltip), r = dr(rt, e.__scopeTooltip), o = l.useRef(null), a = se(t, o), [s, c] = l.useState(null), { trigger: u, onClose: d } = n, p = o.current, { onPointerInTransitChange: m } = r, v = l.useCallback(() => {
|
|
@@ -6499,7 +6499,7 @@ const Ia = l.forwardRef(
|
|
|
6499
6499
|
)
|
|
6500
6500
|
);
|
|
6501
6501
|
Ia.displayName = _a.displayName;
|
|
6502
|
-
const bu = Zn,
|
|
6502
|
+
const bu = Zn, Gf = Qo, Kf = Qt, yu = Zo, La = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
6503
6503
|
Kt,
|
|
6504
6504
|
{
|
|
6505
6505
|
className: M(
|
|
@@ -6591,8 +6591,8 @@ const Eu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
|
6591
6591
|
}
|
|
6592
6592
|
));
|
|
6593
6593
|
Eu.displayName = Xt.displayName;
|
|
6594
|
-
function
|
|
6595
|
-
const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] =
|
|
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] = me(!1), c = () => {
|
|
6596
6596
|
s(!0);
|
|
6597
6597
|
};
|
|
6598
6598
|
return /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
|
|
@@ -6624,7 +6624,7 @@ var Su = "Label", Fa = l.forwardRef((e, t) => /* @__PURE__ */ i(
|
|
|
6624
6624
|
));
|
|
6625
6625
|
Fa.displayName = Su;
|
|
6626
6626
|
var Tu = Fa;
|
|
6627
|
-
function
|
|
6627
|
+
function qf({
|
|
6628
6628
|
className: e,
|
|
6629
6629
|
...t
|
|
6630
6630
|
}) {
|
|
@@ -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 ? he : "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 ? he : "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 ? he : "button", { isMobile: d, state: p } = ln(), m = /* @__PURE__ */ i(
|
|
7024
7024
|
u,
|
|
7025
7025
|
{
|
|
7026
7026
|
ref: c,
|
|
@@ -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 ? he : "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 ? he : "a",
|
|
7139
7139
|
{
|
|
7140
7140
|
ref: a,
|
|
7141
7141
|
"data-sidebar": "menu-sub-button",
|
|
@@ -7165,14 +7165,14 @@ function qu(e) {
|
|
|
7165
7165
|
const c = e + "CollectionSlot", u = Be.forwardRef(
|
|
7166
7166
|
(g, y) => {
|
|
7167
7167
|
const { scope: f, children: h } = g, b = a(c, f), w = se(y, b.collectionRef);
|
|
7168
|
-
return /* @__PURE__ */ i(
|
|
7168
|
+
return /* @__PURE__ */ i(he, { ref: w, children: h });
|
|
7169
7169
|
}
|
|
7170
7170
|
);
|
|
7171
7171
|
u.displayName = c;
|
|
7172
7172
|
const d = e + "CollectionItemSlot", p = "data-radix-collection-item", m = Be.forwardRef(
|
|
7173
7173
|
(g, y) => {
|
|
7174
7174
|
const { scope: f, children: h, ...b } = g, w = Be.useRef(null), N = se(y, w), C = a(d, f);
|
|
7175
|
-
return Be.useEffect(() => (C.itemMap.set(w, { ref: w, ...b }), () => void C.itemMap.delete(w))), /* @__PURE__ */ i(
|
|
7175
|
+
return Be.useEffect(() => (C.itemMap.set(w, { ref: w, ...b }), () => void C.itemMap.delete(w))), /* @__PURE__ */ i(he, { [p]: "", ref: N, children: h });
|
|
7176
7176
|
}
|
|
7177
7177
|
);
|
|
7178
7178
|
m.displayName = d;
|
|
@@ -7193,7 +7193,7 @@ function qu(e) {
|
|
|
7193
7193
|
r
|
|
7194
7194
|
];
|
|
7195
7195
|
}
|
|
7196
|
-
var pr = "ToastProvider", [mr, Xu, Qu] = qu("Toast"), [qa,
|
|
7196
|
+
var pr = "ToastProvider", [mr, Xu, Qu] = qu("Toast"), [qa, Xf] = vt("Toast", [Qu]), [Zu, cn] = qa(pr), Xa = (e) => {
|
|
7197
7197
|
const {
|
|
7198
7198
|
__scopeToast: t,
|
|
7199
7199
|
label: n = "Notification",
|
|
@@ -7357,7 +7357,7 @@ 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(Ke, { present: n || c, children: /* @__PURE__ */ i(
|
|
7361
7361
|
sf,
|
|
7362
7362
|
{
|
|
7363
7363
|
open: c,
|
|
@@ -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] = me(""), s = Ts(), { toast: c } = ys();
|
|
7768
|
+
He(() => {
|
|
7769
7769
|
const m = new URLSearchParams(s.search).get("q");
|
|
7770
7770
|
m && a(m);
|
|
7771
7771
|
}, [s.search]);
|
|
@@ -7816,7 +7816,116 @@ function Ef({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholde
|
|
|
7816
7816
|
] }) })
|
|
7817
7817
|
] });
|
|
7818
7818
|
}
|
|
7819
|
-
|
|
7819
|
+
const Sf = bt(
|
|
7820
|
+
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
7821
|
+
{
|
|
7822
|
+
variants: {
|
|
7823
|
+
variant: {
|
|
7824
|
+
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
7825
|
+
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
7826
|
+
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
7827
|
+
outline: "text-foreground border border-input hover:bg-accent hover:text-accent-foreground",
|
|
7828
|
+
success: "bg-green-600 text-white hover:bg-green-700",
|
|
7829
|
+
warning: "bg-yellow-500 text-white hover:bg-yellow-600",
|
|
7830
|
+
info: "bg-blue-500 text-white hover:bg-blue-600",
|
|
7831
|
+
ghost: "bg-background hover:bg-accent hover:text-accent-foreground",
|
|
7832
|
+
// Randmar color variants
|
|
7833
|
+
randmarRed: "bg-randmar-red text-white hover:bg-randmar-red/80",
|
|
7834
|
+
randmarBlue: "bg-randmar-blue text-white hover:bg-randmar-blue/80",
|
|
7835
|
+
randmarPurple: "bg-randmar-purple text-white hover:bg-randmar-purple/80",
|
|
7836
|
+
randmarGreen: "bg-randmar-green text-black hover:bg-randmar-green/80",
|
|
7837
|
+
randmarBlack: "bg-randmar-black text-white hover:bg-randmar-black/80",
|
|
7838
|
+
randmarYellow: "bg-randmar-yellow text-black hover:bg-randmar-yellow/80"
|
|
7839
|
+
},
|
|
7840
|
+
size: {
|
|
7841
|
+
default: "h-6",
|
|
7842
|
+
sm: "h-5 text-[10px]",
|
|
7843
|
+
lg: "h-7 px-3"
|
|
7844
|
+
}
|
|
7845
|
+
},
|
|
7846
|
+
defaultVariants: {
|
|
7847
|
+
variant: "default",
|
|
7848
|
+
size: "default"
|
|
7849
|
+
}
|
|
7850
|
+
}
|
|
7851
|
+
), Se = l.forwardRef(
|
|
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
|
+
r && /* @__PURE__ */ i("span", { className: "mr-1", children: r }),
|
|
7854
|
+
o
|
|
7855
|
+
] })
|
|
7856
|
+
);
|
|
7857
|
+
Se.displayName = "Badge";
|
|
7858
|
+
const Bn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7859
|
+
"div",
|
|
7860
|
+
{
|
|
7861
|
+
ref: n,
|
|
7862
|
+
className: M(
|
|
7863
|
+
"rounded-md border bg-card text-card-foreground shadow-sm",
|
|
7864
|
+
e
|
|
7865
|
+
),
|
|
7866
|
+
...t
|
|
7867
|
+
}
|
|
7868
|
+
));
|
|
7869
|
+
Bn.displayName = "Card";
|
|
7870
|
+
const Tf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7871
|
+
"div",
|
|
7872
|
+
{
|
|
7873
|
+
ref: n,
|
|
7874
|
+
className: M("flex flex-col space-y-1.5 p-6", e),
|
|
7875
|
+
...t
|
|
7876
|
+
}
|
|
7877
|
+
));
|
|
7878
|
+
Tf.displayName = "CardHeader";
|
|
7879
|
+
const Rf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7880
|
+
"div",
|
|
7881
|
+
{
|
|
7882
|
+
ref: n,
|
|
7883
|
+
className: M("font-semibold leading-none tracking-tight", e),
|
|
7884
|
+
...t
|
|
7885
|
+
}
|
|
7886
|
+
));
|
|
7887
|
+
Rf.displayName = "CardTitle";
|
|
7888
|
+
const Pf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7889
|
+
"div",
|
|
7890
|
+
{
|
|
7891
|
+
ref: n,
|
|
7892
|
+
className: M("text-sm text-muted-foreground", e),
|
|
7893
|
+
...t
|
|
7894
|
+
}
|
|
7895
|
+
));
|
|
7896
|
+
Pf.displayName = "CardDescription";
|
|
7897
|
+
const jn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i("div", { ref: n, className: M("p-6 pt-0", e), ...t }));
|
|
7898
|
+
jn.displayName = "CardContent";
|
|
7899
|
+
const Af = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
7900
|
+
"div",
|
|
7901
|
+
{
|
|
7902
|
+
ref: n,
|
|
7903
|
+
className: M("flex items-center p-6 pt-0", e),
|
|
7904
|
+
...t
|
|
7905
|
+
}
|
|
7906
|
+
));
|
|
7907
|
+
Af.displayName = "CardFooter";
|
|
7908
|
+
const kf = ({ countryCode: e, className: t = "" }) => {
|
|
7909
|
+
const [n, r] = me(null), [o, a] = me(!1);
|
|
7910
|
+
return He(() => {
|
|
7911
|
+
if (!e) return;
|
|
7912
|
+
const c = `https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;
|
|
7913
|
+
fetch(c, { method: "HEAD" }).then((u) => {
|
|
7914
|
+
u.ok ? (r(c), a(!1)) : a(!0);
|
|
7915
|
+
}).catch(() => {
|
|
7916
|
+
a(!0);
|
|
7917
|
+
});
|
|
7918
|
+
}, [e]), o || !n ? /* @__PURE__ */ i("span", { className: t, children: e }) : /* @__PURE__ */ i(
|
|
7919
|
+
"img",
|
|
7920
|
+
{
|
|
7921
|
+
src: n,
|
|
7922
|
+
alt: `${e} flag`,
|
|
7923
|
+
className: `inline-block ${t}`,
|
|
7924
|
+
style: { width: "24px", height: "auto" }
|
|
7925
|
+
}
|
|
7926
|
+
);
|
|
7927
|
+
};
|
|
7928
|
+
function Mf({ routes: e, footer: t, dashboardTitle: n }) {
|
|
7820
7929
|
const { appID: r } = Rs(), o = e.filter((a) => a.showInNav);
|
|
7821
7930
|
return /* @__PURE__ */ x(Ba, { className: "border-r border-sidebar-border", children: [
|
|
7822
7931
|
/* @__PURE__ */ i(Va, { className: "border-b border-sidebar-border px-6 h-16 justify-center bg-sidebar text-sidebar-foreground", children: /* @__PURE__ */ x("div", { className: "flex items-center gap-2", children: [
|
|
@@ -7840,7 +7949,7 @@ function Sf({ routes: e, footer: t, dashboardTitle: n }) {
|
|
|
7840
7949
|
/* @__PURE__ */ i(Ha, { className: "border-t border-sidebar-border p-4 bg-sidebar-background text-sidebar-foreground", children: t })
|
|
7841
7950
|
] });
|
|
7842
7951
|
}
|
|
7843
|
-
function
|
|
7952
|
+
function Qf({
|
|
7844
7953
|
children: e,
|
|
7845
7954
|
rightMenu: t,
|
|
7846
7955
|
routes: n,
|
|
@@ -7852,7 +7961,7 @@ function Xf({
|
|
|
7852
7961
|
}) {
|
|
7853
7962
|
return /* @__PURE__ */ i(te, { children: /* @__PURE__ */ i(Wa, { children: /* @__PURE__ */ x("div", { className: "flex grow", children: [
|
|
7854
7963
|
/* @__PURE__ */ i(
|
|
7855
|
-
|
|
7964
|
+
Mf,
|
|
7856
7965
|
{
|
|
7857
7966
|
routes: n,
|
|
7858
7967
|
footer: r,
|
|
@@ -7874,13 +7983,13 @@ function Xf({
|
|
|
7874
7983
|
] })
|
|
7875
7984
|
] }) }) });
|
|
7876
7985
|
}
|
|
7877
|
-
const
|
|
7986
|
+
const Of = {
|
|
7878
7987
|
sm: 100,
|
|
7879
7988
|
md: 200,
|
|
7880
7989
|
lg: 300,
|
|
7881
7990
|
xl: 400
|
|
7882
7991
|
};
|
|
7883
|
-
function
|
|
7992
|
+
function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
7884
7993
|
const [o, a] = l.useState(!1), [s, c] = l.useState(!1), [u, d] = l.useState(!1), [p, m] = l.useState(!1), v = `https://api.randmar.io/Product/${e}/Video`;
|
|
7885
7994
|
l.useEffect(() => {
|
|
7886
7995
|
(async () => {
|
|
@@ -7913,7 +8022,7 @@ function Rf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7913
8022
|
function f() {
|
|
7914
8023
|
a(!0);
|
|
7915
8024
|
}
|
|
7916
|
-
const h =
|
|
8025
|
+
const h = Of[t || "xl"];
|
|
7917
8026
|
return /* @__PURE__ */ x(te, { children: [
|
|
7918
8027
|
/* @__PURE__ */ i(Zt, { open: o, onOpenChange: a, children: /* @__PURE__ */ i(Jt, { className: "max-w-4xl p-0 overflow-hidden", children: r ? /* @__PURE__ */ x("div", { className: "flex flex-row", children: [
|
|
7919
8028
|
/* @__PURE__ */ x(
|
|
@@ -7992,96 +8101,7 @@ function Rf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
|
|
|
7992
8101
|
] })
|
|
7993
8102
|
] });
|
|
7994
8103
|
}
|
|
7995
|
-
|
|
7996
|
-
"div",
|
|
7997
|
-
{
|
|
7998
|
-
ref: n,
|
|
7999
|
-
className: M(
|
|
8000
|
-
"rounded-md border bg-card text-card-foreground shadow-sm",
|
|
8001
|
-
e
|
|
8002
|
-
),
|
|
8003
|
-
...t
|
|
8004
|
-
}
|
|
8005
|
-
));
|
|
8006
|
-
Bn.displayName = "Card";
|
|
8007
|
-
const Pf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
8008
|
-
"div",
|
|
8009
|
-
{
|
|
8010
|
-
ref: n,
|
|
8011
|
-
className: M("flex flex-col space-y-1.5 p-6", e),
|
|
8012
|
-
...t
|
|
8013
|
-
}
|
|
8014
|
-
));
|
|
8015
|
-
Pf.displayName = "CardHeader";
|
|
8016
|
-
const Af = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
8017
|
-
"div",
|
|
8018
|
-
{
|
|
8019
|
-
ref: n,
|
|
8020
|
-
className: M("font-semibold leading-none tracking-tight", e),
|
|
8021
|
-
...t
|
|
8022
|
-
}
|
|
8023
|
-
));
|
|
8024
|
-
Af.displayName = "CardTitle";
|
|
8025
|
-
const kf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
8026
|
-
"div",
|
|
8027
|
-
{
|
|
8028
|
-
ref: n,
|
|
8029
|
-
className: M("text-sm text-muted-foreground", e),
|
|
8030
|
-
...t
|
|
8031
|
-
}
|
|
8032
|
-
));
|
|
8033
|
-
kf.displayName = "CardDescription";
|
|
8034
|
-
const jn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i("div", { ref: n, className: M("p-6 pt-0", e), ...t }));
|
|
8035
|
-
jn.displayName = "CardContent";
|
|
8036
|
-
const Mf = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
|
|
8037
|
-
"div",
|
|
8038
|
-
{
|
|
8039
|
-
ref: n,
|
|
8040
|
-
className: M("flex items-center p-6 pt-0", e),
|
|
8041
|
-
...t
|
|
8042
|
-
}
|
|
8043
|
-
));
|
|
8044
|
-
Mf.displayName = "CardFooter";
|
|
8045
|
-
const Of = bt(
|
|
8046
|
-
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
8047
|
-
{
|
|
8048
|
-
variants: {
|
|
8049
|
-
variant: {
|
|
8050
|
-
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
8051
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
8052
|
-
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
8053
|
-
outline: "text-foreground border border-input hover:bg-accent hover:text-accent-foreground",
|
|
8054
|
-
success: "bg-green-600 text-white hover:bg-green-700",
|
|
8055
|
-
warning: "bg-yellow-500 text-white hover:bg-yellow-600",
|
|
8056
|
-
info: "bg-blue-500 text-white hover:bg-blue-600",
|
|
8057
|
-
ghost: "bg-background hover:bg-accent hover:text-accent-foreground",
|
|
8058
|
-
// Randmar color variants
|
|
8059
|
-
randmarRed: "bg-randmar-red text-white hover:bg-randmar-red/80",
|
|
8060
|
-
randmarBlue: "bg-randmar-blue text-white hover:bg-randmar-blue/80",
|
|
8061
|
-
randmarPurple: "bg-randmar-purple text-white hover:bg-randmar-purple/80",
|
|
8062
|
-
randmarGreen: "bg-randmar-green text-black hover:bg-randmar-green/80",
|
|
8063
|
-
randmarBlack: "bg-randmar-black text-white hover:bg-randmar-black/80",
|
|
8064
|
-
randmarYellow: "bg-randmar-yellow text-black hover:bg-randmar-yellow/80"
|
|
8065
|
-
},
|
|
8066
|
-
size: {
|
|
8067
|
-
default: "h-6",
|
|
8068
|
-
sm: "h-5 text-[10px]",
|
|
8069
|
-
lg: "h-7 px-3"
|
|
8070
|
-
}
|
|
8071
|
-
},
|
|
8072
|
-
defaultVariants: {
|
|
8073
|
-
variant: "default",
|
|
8074
|
-
size: "default"
|
|
8075
|
-
}
|
|
8076
|
-
}
|
|
8077
|
-
), Ee = l.forwardRef(
|
|
8078
|
-
({ className: e, variant: t, size: n, icon: r, children: o, ...a }, s) => /* @__PURE__ */ x("div", { ref: s, className: M(Of({ variant: t, size: n }), e), ...a, children: [
|
|
8079
|
-
r && /* @__PURE__ */ i("span", { className: "mr-1", children: r }),
|
|
8080
|
-
o
|
|
8081
|
-
] })
|
|
8082
|
-
);
|
|
8083
|
-
Ee.displayName = "Badge";
|
|
8084
|
-
function Df({ inventory: e }) {
|
|
8104
|
+
function _f({ inventory: e }) {
|
|
8085
8105
|
const t = ["MTL", "TOR"], n = ["VAN", "EDM"], r = [...e].sort((f, h) => (f.Name || "").localeCompare(h.Name || "")), o = r.filter((f) => f.Country === "US"), a = r.filter((f) => f.Country === "CA"), s = r.filter((f) => n.includes(f.WarehouseId || "")), c = r.filter((f) => t.includes(f.WarehouseId || "")), u = a.filter(
|
|
8086
8106
|
(f) => !t.includes(f.WarehouseId || "") && !n.includes(f.WarehouseId || "")
|
|
8087
8107
|
), d = (f) => f.reduce((h, b) => h + (b.AvailableQuantity || 0), 0), p = d(a), m = d(c), v = d(s), g = d(o), y = p + g;
|
|
@@ -8171,7 +8191,7 @@ function Df({ inventory: e }) {
|
|
|
8171
8191
|
e.length === 0 && /* @__PURE__ */ i("div", { className: "p-6 text-center text-gray-500", children: "No inventory information available" })
|
|
8172
8192
|
] });
|
|
8173
8193
|
}
|
|
8174
|
-
function
|
|
8194
|
+
function Zf({
|
|
8175
8195
|
item: e,
|
|
8176
8196
|
addToCart: t = !1,
|
|
8177
8197
|
syncToShopify: n = !1,
|
|
@@ -8183,8 +8203,8 @@ function Qf({
|
|
|
8183
8203
|
isSyncToShopifyActionLoading: u = !1
|
|
8184
8204
|
}) {
|
|
8185
8205
|
var R, j, P, U, O, L, q, Z, re;
|
|
8186
|
-
const [d, p] =
|
|
8187
|
-
if (
|
|
8206
|
+
const [d, p] = me(1), [m, v] = me(null), [g, y] = me(0), [f, h] = me(!1), b = ((R = e == null ? void 0 : e.Distribution) == null ? void 0 : R.RegularPrice) || 0, w = ((j = e == null ? void 0 : e.Distribution) == null ? void 0 : j.Price) || 0, [N, C] = me(null), [S, E] = me(!1);
|
|
8207
|
+
if (He(() => {
|
|
8188
8208
|
const $ = async () => {
|
|
8189
8209
|
if (e != null && e.ManufacturerId) {
|
|
8190
8210
|
E(!0);
|
|
@@ -8204,17 +8224,17 @@ function Qf({
|
|
|
8204
8224
|
}
|
|
8205
8225
|
};
|
|
8206
8226
|
e != null && e.ManufacturerId && $();
|
|
8207
|
-
}, [e == null ? void 0 : e.ManufacturerId]),
|
|
8227
|
+
}, [e == null ? void 0 : e.ManufacturerId]), He(() => {
|
|
8208
8228
|
var $;
|
|
8209
8229
|
if (e && r) {
|
|
8210
8230
|
const G = ($ = e.Opportunities) == null ? void 0 : $.find((J) => J.BidNumber == r);
|
|
8211
8231
|
G && v(G);
|
|
8212
8232
|
}
|
|
8213
|
-
}, [e, r]),
|
|
8233
|
+
}, [e, r]), He(() => {
|
|
8214
8234
|
if (!e) return;
|
|
8215
8235
|
const $ = m != null && m.Price ? m.Price : w;
|
|
8216
8236
|
y(b > 0 ? Math.round((b - $) / b * 100) : 0);
|
|
8217
|
-
}, [e, m, w, b]),
|
|
8237
|
+
}, [e, m, w, b]), He(() => {
|
|
8218
8238
|
s || p(1);
|
|
8219
8239
|
}, [s]), !e)
|
|
8220
8240
|
return /* @__PURE__ */ i(Bn, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ x(jn, { className: "p-6", children: [
|
|
@@ -8298,7 +8318,7 @@ function Qf({
|
|
|
8298
8318
|
/* @__PURE__ */ x("div", { className: "flex-1", children: [
|
|
8299
8319
|
/* @__PURE__ */ x("div", { className: "flex flex-wrap gap-2 mb-4", children: [
|
|
8300
8320
|
e.State && /* @__PURE__ */ x(
|
|
8301
|
-
|
|
8321
|
+
Se,
|
|
8302
8322
|
{
|
|
8303
8323
|
variant: "outline",
|
|
8304
8324
|
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"}`,
|
|
@@ -8310,7 +8330,7 @@ function Qf({
|
|
|
8310
8330
|
}
|
|
8311
8331
|
),
|
|
8312
8332
|
/* @__PURE__ */ x(
|
|
8313
|
-
|
|
8333
|
+
Se,
|
|
8314
8334
|
{
|
|
8315
8335
|
variant: "outline",
|
|
8316
8336
|
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"}`,
|
|
@@ -8321,12 +8341,12 @@ function Qf({
|
|
|
8321
8341
|
]
|
|
8322
8342
|
}
|
|
8323
8343
|
),
|
|
8324
|
-
e.TransparencyCode && /* @__PURE__ */ x(
|
|
8344
|
+
e.TransparencyCode && /* @__PURE__ */ x(Se, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
|
|
8325
8345
|
/* @__PURE__ */ i(Ks, { size: "12", className: "mr-1.5" }),
|
|
8326
8346
|
" Transparency Code"
|
|
8327
8347
|
] }),
|
|
8328
8348
|
/* @__PURE__ */ x(
|
|
8329
|
-
|
|
8349
|
+
Se,
|
|
8330
8350
|
{
|
|
8331
8351
|
variant: "outline",
|
|
8332
8352
|
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"}`,
|
|
@@ -8338,7 +8358,7 @@ function Qf({
|
|
|
8338
8358
|
}
|
|
8339
8359
|
),
|
|
8340
8360
|
e.ManufacturerId && /* @__PURE__ */ x(
|
|
8341
|
-
|
|
8361
|
+
Se,
|
|
8342
8362
|
{
|
|
8343
8363
|
variant: "outline",
|
|
8344
8364
|
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"}`,
|
|
@@ -8350,7 +8370,7 @@ function Qf({
|
|
|
8350
8370
|
}
|
|
8351
8371
|
),
|
|
8352
8372
|
/* @__PURE__ */ x(
|
|
8353
|
-
|
|
8373
|
+
Se,
|
|
8354
8374
|
{
|
|
8355
8375
|
variant: "outline",
|
|
8356
8376
|
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"}`,
|
|
@@ -8378,10 +8398,23 @@ function Qf({
|
|
|
8378
8398
|
/* @__PURE__ */ x("div", { children: [
|
|
8379
8399
|
/* @__PURE__ */ i("div", { className: "text-sm text-muted-foreground", children: "MAP" }),
|
|
8380
8400
|
/* @__PURE__ */ i("div", { className: "font-medium", children: e.MAP ? "$" + e.MAP.toFixed(2) : "N/A" })
|
|
8401
|
+
] }),
|
|
8402
|
+
e.CountryCodeOfOrigin && /* @__PURE__ */ x("div", { children: [
|
|
8403
|
+
/* @__PURE__ */ i("div", { className: "text-sm text-muted-foreground", children: "Origin" }),
|
|
8404
|
+
/* @__PURE__ */ x("div", { className: "font-medium flex items-center", children: [
|
|
8405
|
+
/* @__PURE__ */ i(
|
|
8406
|
+
kf,
|
|
8407
|
+
{
|
|
8408
|
+
countryCode: e.CountryCodeOfOrigin,
|
|
8409
|
+
className: "mr-2"
|
|
8410
|
+
}
|
|
8411
|
+
),
|
|
8412
|
+
e.CountryCodeOfOrigin
|
|
8413
|
+
] })
|
|
8381
8414
|
] })
|
|
8382
8415
|
] })
|
|
8383
8416
|
] }),
|
|
8384
|
-
/* @__PURE__ */ i("div", { className: "flex flex-col", children: /* @__PURE__ */ i(
|
|
8417
|
+
/* @__PURE__ */ i("div", { className: "flex flex-col", children: /* @__PURE__ */ i(Df, { randmarSKU: e.RandmarSKU || "", alt: e.RandmarTitle || "" }) })
|
|
8385
8418
|
] }),
|
|
8386
8419
|
/* @__PURE__ */ x("div", { className: "flex gap-6 mt-4", children: [
|
|
8387
8420
|
/* @__PURE__ */ i("div", { className: "flex flex-1", children: e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
|
|
@@ -8415,7 +8448,7 @@ function Qf({
|
|
|
8415
8448
|
"Ends: ",
|
|
8416
8449
|
B($.EndDate)
|
|
8417
8450
|
] }),
|
|
8418
|
-
!$.Active && /* @__PURE__ */ i(
|
|
8451
|
+
!$.Active && /* @__PURE__ */ i(Se, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
|
|
8419
8452
|
] })
|
|
8420
8453
|
]
|
|
8421
8454
|
},
|
|
@@ -8448,7 +8481,7 @@ function Qf({
|
|
|
8448
8481
|
/* @__PURE__ */ i(xr, { className: "mr-2", size: 18 }),
|
|
8449
8482
|
"Inventory Information"
|
|
8450
8483
|
] }) }),
|
|
8451
|
-
/* @__PURE__ */ i(
|
|
8484
|
+
/* @__PURE__ */ i(_f, { inventory: e.Distribution.Inventory })
|
|
8452
8485
|
] })
|
|
8453
8486
|
] }) })
|
|
8454
8487
|
] })
|
|
@@ -8466,7 +8499,7 @@ function Qf({
|
|
|
8466
8499
|
b.toFixed(2)
|
|
8467
8500
|
] })
|
|
8468
8501
|
] }),
|
|
8469
|
-
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(
|
|
8502
|
+
g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(Se, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|
|
8470
8503
|
/* @__PURE__ */ x("span", { children: [
|
|
8471
8504
|
g,
|
|
8472
8505
|
"% OFF"
|
|
@@ -8550,15 +8583,16 @@ function Qf({
|
|
|
8550
8583
|
] }) });
|
|
8551
8584
|
}
|
|
8552
8585
|
export {
|
|
8553
|
-
|
|
8554
|
-
|
|
8586
|
+
Yf as AvatarFooter,
|
|
8587
|
+
Se as Badge,
|
|
8555
8588
|
ae as Button,
|
|
8556
8589
|
Bn as Card,
|
|
8557
8590
|
jn as CardContent,
|
|
8558
|
-
|
|
8559
|
-
|
|
8560
|
-
|
|
8561
|
-
|
|
8591
|
+
Pf as CardDescription,
|
|
8592
|
+
Af as CardFooter,
|
|
8593
|
+
Tf as CardHeader,
|
|
8594
|
+
Rf as CardTitle,
|
|
8595
|
+
kf as CountryFlag,
|
|
8562
8596
|
Zt as Dialog,
|
|
8563
8597
|
Fr as DialogClose,
|
|
8564
8598
|
Jt as DialogContent,
|
|
@@ -8570,18 +8604,18 @@ export {
|
|
|
8570
8604
|
er as DialogTitle,
|
|
8571
8605
|
Jo as DialogTrigger,
|
|
8572
8606
|
fr as Input,
|
|
8573
|
-
|
|
8574
|
-
|
|
8575
|
-
|
|
8576
|
-
|
|
8577
|
-
|
|
8578
|
-
|
|
8579
|
-
|
|
8580
|
-
|
|
8581
|
-
|
|
8607
|
+
zf as InputOTP,
|
|
8608
|
+
Wf as InputOTPGroup,
|
|
8609
|
+
jf as InputOTPSeparator,
|
|
8610
|
+
Bf as InputOTPSlot,
|
|
8611
|
+
qf as Label,
|
|
8612
|
+
Qf as Layout,
|
|
8613
|
+
Mf as Navbar,
|
|
8614
|
+
Zf as ProductCard,
|
|
8615
|
+
Df as ProductImage,
|
|
8582
8616
|
Ia as Separator,
|
|
8583
8617
|
bu as Sheet,
|
|
8584
|
-
|
|
8618
|
+
Kf as SheetClose,
|
|
8585
8619
|
$a as SheetContent,
|
|
8586
8620
|
Eu as SheetDescription,
|
|
8587
8621
|
Nu as SheetFooter,
|
|
@@ -8589,7 +8623,7 @@ export {
|
|
|
8589
8623
|
La as SheetOverlay,
|
|
8590
8624
|
yu as SheetPortal,
|
|
8591
8625
|
Cu as SheetTitle,
|
|
8592
|
-
|
|
8626
|
+
Gf as SheetTrigger,
|
|
8593
8627
|
Ba as Sidebar,
|
|
8594
8628
|
Ua as SidebarContent,
|
|
8595
8629
|
Ha as SidebarFooter,
|
|
@@ -8627,6 +8661,7 @@ export {
|
|
|
8627
8661
|
ut as TooltipProvider,
|
|
8628
8662
|
pt as TooltipTrigger,
|
|
8629
8663
|
Ef as Topbar,
|
|
8664
|
+
Sf as badgeVariants,
|
|
8630
8665
|
Br as buttonVariants,
|
|
8631
8666
|
Nf as toast,
|
|
8632
8667
|
Ru as useIsMobile,
|