randmarcomps 1.69.0 → 1.71.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.
@@ -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 me, useLayoutEffect as Es, useEffect as He } from "react";
3
+ import Be, { forwardRef as Jr, createElement as Tn, useState as ge, 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";
@@ -8,13 +8,13 @@ var As = Object.defineProperty, ks = Object.defineProperties, Ms = Object.getOwn
8
8
  for (var n in t || (t = {})) eo.call(t, n) && br(e, n, t[n]);
9
9
  if (Ft) for (var n of Ft(t)) to.call(t, n) && br(e, n, t[n]);
10
10
  return e;
11
- }, Ds = (e, t) => ks(e, Ms(t)), _s = (e, t) => {
11
+ }, Ds = (e, t) => ks(e, Ms(t)), Is = (e, t) => {
12
12
  var n = {};
13
13
  for (var r in e) eo.call(e, r) && t.indexOf(r) < 0 && (n[r] = e[r]);
14
14
  if (e != null && Ft) for (var r of Ft(e)) t.indexOf(r) < 0 && to.call(e, r) && (n[r] = e[r]);
15
15
  return n;
16
16
  };
17
- function Is(e) {
17
+ function _s(e) {
18
18
  let t = setTimeout(e, 0), n = setTimeout(e, 10), r = setTimeout(e, 50);
19
19
  return [t, n, r];
20
20
  }
@@ -56,31 +56,31 @@ function Ws({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
56
56
  }, [t, r, n, m]), { hasPWMBadge: o, willPushPWMBadge: p, PWM_BADGE_SPACE_WIDTH: Fs };
57
57
  }
58
58
  var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
59
- var n = e, { value: r, onChange: o, maxLength: a, textAlign: s = "left", pattern: c, placeholder: u, inputMode: d = "numeric", onComplete: p, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y = Bs, render: f, children: h } = n, b = _s(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, N, C, S, E;
60
- let [T, z] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), _ = r ?? T, W = Ls(_), H = l.useCallback((I) => {
61
- o == null || o(I), z(I);
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: _, onChange: H, isIOS: typeof window < "u" && ((N = (w = window == null ? void 0 : window.CSS) == null ? void 0 : w.supports) == null ? void 0 : N.call(w, "-webkit-touch-callout", "none")) }), P = 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] });
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, z] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), I = r ?? T, W = Ls(I), U = l.useCallback((L) => {
61
+ o == null || o(L), z(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")) }), P = 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 I = D.current, F = R.current;
65
- if (!I || !F) return;
66
- j.current.value !== I.value && j.current.onChange(I.value), P.current.prev = [I.selectionStart, I.selectionEnd, I.selectionDirection];
67
- function oe() {
68
- if (document.activeElement !== I) {
69
- re(null), G(null);
64
+ let L = D.current, F = R.current;
65
+ if (!L || !F) return;
66
+ j.current.value !== L.value && j.current.onChange(L.value), P.current.prev = [L.selectionStart, L.selectionEnd, L.selectionDirection];
67
+ function se() {
68
+ if (document.activeElement !== L) {
69
+ oe(null), ne(null);
70
70
  return;
71
71
  }
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
- if (Fe.length !== 0 && K !== null && ce !== null) {
74
- let xs = K === ce, Ns = K === Fe.length && Fe.length < pe;
72
+ let G = L.selectionStart, ue = L.selectionEnd, Ct = L.selectionDirection, he = L.maxLength, Fe = L.value, Se = P.current.prev, Ae = -1, ke = -1, ze;
73
+ if (Fe.length !== 0 && G !== null && ue !== null) {
74
+ let xs = G === ue, Ns = G === Fe.length && Fe.length < he;
75
75
  if (xs && !Ns) {
76
- let We = K;
76
+ let We = G;
77
77
  if (We === 0) Ae = 0, ke = 1, ze = "forward";
78
- else if (We === pe) Ae = We - 1, ke = We, ze = "backward";
79
- else if (pe > 1 && Fe.length > 1) {
78
+ else if (We === he) Ae = We - 1, ke = We, ze = "backward";
79
+ else if (he > 1 && Fe.length > 1) {
80
80
  let un = 0;
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;
81
+ if (Se[0] !== null && Se[1] !== null) {
82
+ ze = We < Se[1] ? "backward" : "forward";
83
+ let Cs = Se[0] === Se[1] && Se[0] < he;
84
84
  ze === "backward" && !Cs && (un = -1);
85
85
  }
86
86
  Ae = un + We, ke = un + We + 1;
@@ -88,81 +88,81 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
88
88
  }
89
89
  Ae !== -1 && ke !== -1 && Ae !== ke && D.current.setSelectionRange(Ae, ke, ze);
90
90
  }
91
- let gr = Ae !== -1 ? Ae : K, vr = ke !== -1 ? ke : ce, ws = ze ?? Ct;
92
- re(gr), G(vr), P.current.prev = [gr, vr, ws];
91
+ let gr = Ae !== -1 ? Ae : G, vr = ke !== -1 ? ke : ue, ws = ze ?? Ct;
92
+ oe(gr), ne(vr), P.current.prev = [gr, vr, ws];
93
93
  }
94
- if (document.addEventListener("selectionchange", oe, { capture: !0 }), oe(), document.activeElement === I && 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
- let ce = "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(K.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), dt(K.sheet, `[data-input-otp]:autofill { ${ce} }`), dt(K.sheet, `[data-input-otp]:-webkit-autofill { ${ce} }`), 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; }");
94
+ if (document.addEventListener("selectionchange", se, { capture: !0 }), se(), document.activeElement === L && q(!0), !document.getElementById("input-otp-style")) {
95
+ let G = document.createElement("style");
96
+ if (G.id = "input-otp-style", document.head.appendChild(G), G.sheet) {
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(G.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), dt(G.sheet, `[data-input-otp]:autofill { ${ue} }`), dt(G.sheet, `[data-input-otp]:-webkit-autofill { ${ue} }`), dt(G.sheet, "@supports (-webkit-touch-callout: none) { [data-input-otp] { letter-spacing: -.6em !important; font-weight: 100 !important; font-stretch: ultra-condensed; font-optical-sizing: none !important; left: -1px !important; right: 1px !important; } }"), dt(G.sheet, "[data-input-otp] + * { pointer-events: all !important; }");
99
99
  }
100
100
  }
101
- let ie = () => {
102
- F && F.style.setProperty("--root-height", `${I.clientHeight}px`);
101
+ let ce = () => {
102
+ F && F.style.setProperty("--root-height", `${L.clientHeight}px`);
103
103
  };
104
- ie();
105
- let le = new ResizeObserver(ie);
106
- return le.observe(I), () => {
107
- document.removeEventListener("selectionchange", oe, { capture: !0 }), le.disconnect();
104
+ ce();
105
+ let de = new ResizeObserver(ce);
106
+ return de.observe(L), () => {
107
+ document.removeEventListener("selectionchange", se, { capture: !0 }), de.disconnect();
108
108
  };
109
109
  }, []);
110
- let [U, O] = l.useState(!1), [L, q] = l.useState(!1), [Z, re] = l.useState(null), [$, G] = l.useState(null);
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
- Is(() => {
113
- var I, F, oe, ie;
114
- (I = D.current) == null || I.dispatchEvent(new Event("input"));
115
- let le = (F = D.current) == null ? void 0 : F.selectionStart, K = (oe = D.current) == null ? void 0 : oe.selectionEnd, ce = (ie = D.current) == null ? void 0 : ie.selectionDirection;
116
- le !== null && K !== null && (re(le), G(K), P.current.prev = [le, K, ce]);
112
+ _s(() => {
113
+ var L, F, se, ce;
114
+ (L = D.current) == null || L.dispatchEvent(new Event("input"));
115
+ let de = (F = D.current) == null ? void 0 : F.selectionStart, G = (se = D.current) == null ? void 0 : se.selectionEnd, ue = (ce = D.current) == null ? void 0 : ce.selectionDirection;
116
+ de !== null && G !== null && (oe(de), ne(G), P.current.prev = [de, G, ue]);
117
117
  });
118
- }, [_, L]), l.useEffect(() => {
119
- W !== void 0 && _ !== W && W.length < a && _.length === a && (p == null || p(_));
120
- }, [a, p, W, _]);
121
- let J = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: L }), Pe = l.useCallback((I) => {
122
- let F = I.currentTarget.value.slice(0, a);
118
+ }, [I, $]), l.useEffect(() => {
119
+ W !== void 0 && I !== W && W.length < a && I.length === a && (p == null || p(I));
120
+ }, [a, p, W, I]);
121
+ let _ = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: $ }), K = l.useCallback((L) => {
122
+ let F = L.currentTarget.value.slice(0, a);
123
123
  if (F.length > 0 && B && !B.test(F)) {
124
- I.preventDefault();
124
+ L.preventDefault();
125
125
  return;
126
126
  }
127
- typeof W == "string" && F.length < W.length && document.dispatchEvent(new Event("selectionchange")), H(F);
128
- }, [a, H, W, B]), ye = l.useCallback(() => {
129
- var I;
127
+ typeof W == "string" && F.length < W.length && document.dispatchEvent(new Event("selectionchange")), U(F);
128
+ }, [a, U, W, B]), ae = l.useCallback(() => {
129
+ var L;
130
130
  if (D.current) {
131
- let F = Math.min(D.current.value.length, a - 1), oe = D.current.value.length;
132
- (I = D.current) == null || I.setSelectionRange(F, oe), re(F), G(oe);
131
+ let F = Math.min(D.current.value.length, a - 1), se = D.current.value.length;
132
+ (L = D.current) == null || L.setSelectionRange(F, se), oe(F), ne(se);
133
133
  }
134
134
  q(!0);
135
- }, [a]), lt = l.useCallback((I) => {
136
- var F, oe;
137
- let ie = D.current;
138
- if (!v && (!j.current.isIOS || !I.clipboardData || !ie)) return;
139
- let le = I.clipboardData.getData("text/plain"), K = v ? v(le) : le;
140
- I.preventDefault();
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
- if (pe.length > 0 && B && !B.test(pe)) return;
143
- ie.value = pe, H(pe);
144
- let Fe = Math.min(pe.length, a - 1), Ee = pe.length;
145
- ie.setSelectionRange(Fe, Ee), re(Fe), G(Ee);
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) => {
135
+ }, [a]), lt = l.useCallback((L) => {
136
+ var F, se;
137
+ let ce = D.current;
138
+ if (!v && (!j.current.isIOS || !L.clipboardData || !ce)) return;
139
+ let de = L.clipboardData.getData("text/plain"), G = v ? v(de) : de;
140
+ L.preventDefault();
141
+ let ue = (F = D.current) == null ? void 0 : F.selectionStart, Ct = (se = D.current) == null ? void 0 : se.selectionEnd, he = (ue !== Ct ? I.slice(0, ue) + G + I.slice(Ct) : I.slice(0, ue) + G + I.slice(ue)).slice(0, a);
142
+ if (he.length > 0 && B && !B.test(he)) return;
143
+ ce.value = he, U(he);
144
+ let Fe = Math.min(he.length, a - 1), Se = he.length;
145
+ ce.setSelectionRange(Fe, Se), oe(Fe), ne(Se);
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: _.willPushPWMBadge ? `calc(100% + ${_.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: _.willPushPWMBadge ? `inset(0 ${_.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" }), [_.PWM_BADGE_SPACE_WIDTH, _.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
147
  var F;
148
- lt(I), (F = b.onPaste) == null || F.call(b, I);
149
- }, onChange: Pe, onMouseOver: (I) => {
148
+ lt(L), (F = b.onPaste) == null || F.call(b, L);
149
+ }, onChange: K, onMouseOver: (L) => {
150
150
  var F;
151
- O(!0), (F = b.onMouseOver) == null || F.call(b, I);
152
- }, onMouseLeave: (I) => {
151
+ O(!0), (F = b.onMouseOver) == null || F.call(b, L);
152
+ }, onMouseLeave: (L) => {
153
153
  var F;
154
- O(!1), (F = b.onMouseLeave) == null || F.call(b, I);
155
- }, onFocus: (I) => {
154
+ O(!1), (F = b.onMouseLeave) == null || F.call(b, L);
155
+ }, onFocus: (L) => {
156
156
  var F;
157
- ye(), (F = b.onFocus) == null || F.call(b, I);
158
- }, onBlur: (I) => {
157
+ ae(), (F = b.onFocus) == null || F.call(b, L);
158
+ }, onBlur: (L) => {
159
159
  var F;
160
- q(!1), (F = b.onBlur) == null || F.call(b, I);
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
- var oe;
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
- 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(Ye) : l.createElement(ro.Provider, { value: Ye }, h), [h, Ye, f]);
160
+ q(!1), (F = b.onBlur) == null || F.call(b, L);
161
+ } })), [K, ae, lt, d, ct, a, ee, Z, b, B == null ? void 0 : B.source, I]), Ye = l.useMemo(() => ({ slots: Array.from({ length: a }).map((L, F) => {
162
+ var se;
163
+ let ce = $ && Z !== null && ee !== null && (Z === ee && F === Z || F >= Z && F < ee), de = I[F] !== void 0 ? I[F] : null, G = I[0] !== void 0 ? null : (se = u == null ? void 0 : u[F]) != null ? se : null;
164
+ return { char: de, placeholderChar: G, isActive: ce, hasFakeCaret: ce && de === null };
165
+ }), isFocused: $, isHovering: !b.disabled && H }), [$, H, a, ee, Z, b.disabled, I]), $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";
@@ -257,7 +257,7 @@ const Hs = Jr(
257
257
  * This source code is licensed under the ISC license.
258
258
  * See the LICENSE file in the root directory of this source tree.
259
259
  */
260
- const ee = (e, t) => {
260
+ const J = (e, t) => {
261
261
  const n = Jr(
262
262
  ({ className: r, ...o }, a) => Tn(Hs, {
263
263
  ref: a,
@@ -274,7 +274,7 @@ const ee = (e, t) => {
274
274
  * This source code is licensed under the ISC license.
275
275
  * See the LICENSE file in the root directory of this source tree.
276
276
  */
277
- const Us = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], so = ee("Check", Us);
277
+ const Us = [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]], so = J("Check", Us);
278
278
  /**
279
279
  * @license lucide-react v0.479.0 - ISC
280
280
  *
@@ -290,7 +290,7 @@ const Gs = [
290
290
  ["path", { d: "M21.818 10.1a10 10 0 0 1 0 3.8", key: "qkgqxc" }],
291
291
  ["path", { d: "M3.721 6.391a10 10 0 0 1 2.7-2.69", key: "1mcia2" }],
292
292
  ["path", { d: "M6.391 20.279a10 10 0 0 1-2.69-2.7", key: "1fvljs" }]
293
- ], Ks = ee("CircleDashed", Gs);
293
+ ], Ks = J("CircleDashed", Gs);
294
294
  /**
295
295
  * @license lucide-react v0.479.0 - ISC
296
296
  *
@@ -300,7 +300,7 @@ const Gs = [
300
300
  const Ys = [
301
301
  ["rect", { width: "14", height: "14", x: "8", y: "8", rx: "2", ry: "2", key: "17jyea" }],
302
302
  ["path", { d: "M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2", key: "zix9uf" }]
303
- ], qs = ee("Copy", Ys);
303
+ ], qs = J("Copy", Ys);
304
304
  /**
305
305
  * @license lucide-react v0.479.0 - ISC
306
306
  *
@@ -311,7 +311,7 @@ const Xs = [
311
311
  ["path", { d: "M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4", key: "ih7n3h" }],
312
312
  ["polyline", { points: "7 10 12 15 17 10", key: "2ggqvy" }],
313
313
  ["line", { x1: "12", x2: "12", y1: "15", y2: "3", key: "1vk2je" }]
314
- ], Qs = ee("Download", Xs);
314
+ ], Qs = J("Download", Xs);
315
315
  /**
316
316
  * @license lucide-react v0.479.0 - ISC
317
317
  *
@@ -327,14 +327,14 @@ const Zs = [
327
327
  }
328
328
  ],
329
329
  ["circle", { cx: "12", cy: "12", r: "3", key: "1v7zrd" }]
330
- ], Js = ee("Eye", Zs);
330
+ ], Js = J("Eye", Zs);
331
331
  /**
332
332
  * @license lucide-react v0.479.0 - ISC
333
333
  *
334
334
  * This source code is licensed under the ISC license.
335
335
  * See the LICENSE file in the root directory of this source tree.
336
336
  */
337
- const ei = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], yr = ee("LoaderCircle", ei);
337
+ const ei = [["path", { d: "M21 12a9 9 0 1 1-6.219-8.56", key: "13zald" }]], yr = J("LoaderCircle", ei);
338
338
  /**
339
339
  * @license lucide-react v0.479.0 - ISC
340
340
  *
@@ -345,7 +345,7 @@ const ti = [
345
345
  ["path", { d: "M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4", key: "1uf3rs" }],
346
346
  ["polyline", { points: "16 17 21 12 16 7", key: "1gabdz" }],
347
347
  ["line", { x1: "21", x2: "9", y1: "12", y2: "12", key: "1uyos4" }]
348
- ], ni = ee("LogOut", ti);
348
+ ], ni = J("LogOut", ti);
349
349
  /**
350
350
  * @license lucide-react v0.479.0 - ISC
351
351
  *
@@ -356,14 +356,14 @@ const ri = [
356
356
  ["line", { x1: "4", x2: "20", y1: "12", y2: "12", key: "1e0a9i" }],
357
357
  ["line", { x1: "4", x2: "20", y1: "6", y2: "6", key: "1owob3" }],
358
358
  ["line", { x1: "4", x2: "20", y1: "18", y2: "18", key: "yk5zj1" }]
359
- ], oi = ee("Menu", ri);
359
+ ], oi = J("Menu", ri);
360
360
  /**
361
361
  * @license lucide-react v0.479.0 - ISC
362
362
  *
363
363
  * This source code is licensed under the ISC license.
364
364
  * See the LICENSE file in the root directory of this source tree.
365
365
  */
366
- const ai = [["path", { d: "M5 12h14", key: "1ays0h" }]], si = ee("Minus", ai);
366
+ const ai = [["path", { d: "M5 12h14", key: "1ays0h" }]], si = J("Minus", ai);
367
367
  /**
368
368
  * @license lucide-react v0.479.0 - ISC
369
369
  *
@@ -373,14 +373,14 @@ const ai = [["path", { d: "M5 12h14", key: "1ays0h" }]], si = ee("Minus", ai);
373
373
  const ii = [
374
374
  ["rect", { width: "18", height: "18", x: "3", y: "3", rx: "2", key: "afitv7" }],
375
375
  ["path", { d: "M9 3v18", key: "fh3hqa" }]
376
- ], li = ee("PanelLeft", ii);
376
+ ], li = J("PanelLeft", ii);
377
377
  /**
378
378
  * @license lucide-react v0.479.0 - ISC
379
379
  *
380
380
  * This source code is licensed under the ISC license.
381
381
  * See the LICENSE file in the root directory of this source tree.
382
382
  */
383
- const ci = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], di = ee("Play", ci);
383
+ const ci = [["polygon", { points: "6 3 20 12 6 21 6 3", key: "1oa8hb" }]], di = J("Play", ci);
384
384
  /**
385
385
  * @license lucide-react v0.479.0 - ISC
386
386
  *
@@ -400,7 +400,7 @@ const ui = [
400
400
  ["path", { d: "M16 12h1", key: "1slzba" }],
401
401
  ["path", { d: "M21 12v.01", key: "1lwtk9" }],
402
402
  ["path", { d: "M12 21v-1", key: "1880an" }]
403
- ], fi = ee("QrCode", ui);
403
+ ], fi = J("QrCode", ui);
404
404
  /**
405
405
  * @license lucide-react v0.479.0 - ISC
406
406
  *
@@ -412,7 +412,7 @@ const pi = [
412
412
  ["path", { d: "M21 3v5h-5", key: "1q7to0" }],
413
413
  ["path", { d: "M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16", key: "3uifl3" }],
414
414
  ["path", { d: "M8 16H3v5", key: "1cv678" }]
415
- ], mi = ee("RefreshCw", pi);
415
+ ], mi = J("RefreshCw", pi);
416
416
  /**
417
417
  * @license lucide-react v0.479.0 - ISC
418
418
  *
@@ -422,7 +422,7 @@ const pi = [
422
422
  const hi = [
423
423
  ["circle", { cx: "11", cy: "11", r: "8", key: "4ej97u" }],
424
424
  ["path", { d: "m21 21-4.3-4.3", key: "1qie3q" }]
425
- ], gi = ee("Search", hi);
425
+ ], gi = J("Search", hi);
426
426
  /**
427
427
  * @license lucide-react v0.479.0 - ISC
428
428
  *
@@ -438,7 +438,7 @@ const vi = [
438
438
  }
439
439
  ],
440
440
  ["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
441
- ], bi = ee("ShieldCheck", vi);
441
+ ], bi = J("ShieldCheck", vi);
442
442
  /**
443
443
  * @license lucide-react v0.479.0 - ISC
444
444
  *
@@ -455,7 +455,7 @@ const yi = [
455
455
  key: "9zh506"
456
456
  }
457
457
  ]
458
- ], wr = ee("ShoppingCart", yi);
458
+ ], wr = J("ShoppingCart", yi);
459
459
  /**
460
460
  * @license lucide-react v0.479.0 - ISC
461
461
  *
@@ -474,7 +474,7 @@ const wi = [
474
474
  key: "6c3vgh"
475
475
  }
476
476
  ]
477
- ], xi = ee("Store", wi);
477
+ ], xi = J("Store", wi);
478
478
  /**
479
479
  * @license lucide-react v0.479.0 - ISC
480
480
  *
@@ -491,7 +491,7 @@ const Ni = [
491
491
  ],
492
492
  ["path", { d: "M12 9v4", key: "juzpu7" }],
493
493
  ["path", { d: "M12 17h.01", key: "p32p05" }]
494
- ], Ci = ee("TriangleAlert", Ni);
494
+ ], Ci = J("TriangleAlert", Ni);
495
495
  /**
496
496
  * @license lucide-react v0.479.0 - ISC
497
497
  *
@@ -509,7 +509,7 @@ const Ei = [
509
509
  ["path", { d: "M6 18h12", key: "9pbo8z" }],
510
510
  ["path", { d: "M6 14h12", key: "4cwo0f" }],
511
511
  ["rect", { width: "12", height: "12", x: "6", y: "10", key: "apd30q" }]
512
- ], xr = ee("Warehouse", Ei);
512
+ ], xr = J("Warehouse", Ei);
513
513
  /**
514
514
  * @license lucide-react v0.479.0 - ISC
515
515
  *
@@ -519,7 +519,7 @@ const Ei = [
519
519
  const Si = [
520
520
  ["path", { d: "M18 6 6 18", key: "1bl5f8" }],
521
521
  ["path", { d: "m6 6 12 12", key: "d8bk6v" }]
522
- ], Hn = ee("X", Si);
522
+ ], Hn = J("X", Si);
523
523
  function io(e) {
524
524
  var t, n, r = "";
525
525
  if (typeof e == "string" || typeof e == "number") r += e;
@@ -680,7 +680,7 @@ const Un = "-", Ti = (e) => {
680
680
  });
681
681
  }
682
682
  return r;
683
- }, Di = (e) => e.endsWith(Pn) ? e.substring(0, e.length - 1) : e.startsWith(Pn) ? e.substring(1) : e, _i = (e) => {
683
+ }, Di = (e) => e.endsWith(Pn) ? e.substring(0, e.length - 1) : e.startsWith(Pn) ? e.substring(1) : e, Ii = (e) => {
684
684
  const t = Object.fromEntries(e.orderSensitiveModifiers.map((r) => [r, !0]));
685
685
  return (r) => {
686
686
  if (r.length <= 1)
@@ -691,10 +691,10 @@ const Un = "-", Ti = (e) => {
691
691
  s[0] === "[" || t[s] ? (o.push(...a.sort(), s), a = []) : a.push(s);
692
692
  }), o.push(...a.sort()), o;
693
693
  };
694
- }, Ii = (e) => ({
694
+ }, _i = (e) => ({
695
695
  cache: ki(e.cacheSize),
696
696
  parseClassName: Oi(e),
697
- sortModifiers: _i(e),
697
+ sortModifiers: Ii(e),
698
698
  ...Ti(e)
699
699
  }), Li = /\s+/, $i = (e, t) => {
700
700
  const {
@@ -759,7 +759,7 @@ function zi(e, ...t) {
759
759
  let n, r, o, a = s;
760
760
  function s(u) {
761
761
  const d = t.reduce((p, m) => m(p), e());
762
- return n = Ii(d), r = n.cache.get, o = n.cache.set, a = c, c(u);
762
+ return n = _i(d), r = n.cache.get, o = n.cache.set, a = c, c(u);
763
763
  }
764
764
  function c(u) {
765
765
  const d = r(u);
@@ -772,7 +772,7 @@ function zi(e, ...t) {
772
772
  return a(Fi.apply(null, arguments));
773
773
  };
774
774
  }
775
- const ne = (e) => {
775
+ const re = (e) => {
776
776
  const t = (n) => n[e] || [];
777
777
  return t.isThemeGetter = !0, t;
778
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) => (
@@ -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 = () => [qe, "full", "auto", ...E()], z = () => [je, "none", "subgrid", k, A], _ = () => ["auto", {
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 = () => [k, A, u], T = () => [qe, "full", "auto", ...E()], z = () => [je, "none", "subgrid", k, A], I = () => ["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 = () => [qe, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], P = () => [e, k, A], U = () => [Er, Ve], O = () => [
792
+ }, k, A], W = () => [je, "auto", k, A], U = () => ["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], H = () => [Er, Ve], O = () => [
793
793
  // Deprecated since Tailwind CSS v4.0.0
794
794
  "",
795
795
  "none",
@@ -797,14 +797,14 @@ const ne = (e) => {
797
797
  d,
798
798
  k,
799
799
  A
800
- ], L = () => ["", V, Et, Ve], 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"], re = () => [
800
+ ], $ = () => ["", V, Et, Ve], q = () => ["solid", "dashed", "dotted", "double"], Z = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], oe = () => [
801
801
  // Deprecated since Tailwind CSS v4.0.0
802
802
  "",
803
803
  "none",
804
804
  g,
805
805
  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], ye = () => [qe, "full", ...E()];
807
+ ], ee = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], ne = () => ["none", V, k, A], _ = () => ["none", V, k, A], K = () => [V, k, A], ae = () => [qe, "full", ...E()];
808
808
  return {
809
809
  cacheSize: 500,
810
810
  theme: {
@@ -1115,7 +1115,7 @@ const ne = (e) => {
1115
1115
  * @see https://tailwindcss.com/docs/grid-column
1116
1116
  */
1117
1117
  "col-start-end": [{
1118
- col: _()
1118
+ col: I()
1119
1119
  }],
1120
1120
  /**
1121
1121
  * Grid Column Start
@@ -1143,7 +1143,7 @@ const ne = (e) => {
1143
1143
  * @see https://tailwindcss.com/docs/grid-row
1144
1144
  */
1145
1145
  "row-start-end": [{
1146
- row: _()
1146
+ row: I()
1147
1147
  }],
1148
1148
  /**
1149
1149
  * Grid Row Start
@@ -1171,14 +1171,14 @@ const ne = (e) => {
1171
1171
  * @see https://tailwindcss.com/docs/grid-auto-columns
1172
1172
  */
1173
1173
  "auto-cols": [{
1174
- "auto-cols": H()
1174
+ "auto-cols": U()
1175
1175
  }],
1176
1176
  /**
1177
1177
  * Grid Auto Rows
1178
1178
  * @see https://tailwindcss.com/docs/grid-auto-rows
1179
1179
  */
1180
1180
  "auto-rows": [{
1181
- "auto-rows": H()
1181
+ "auto-rows": U()
1182
1182
  }],
1183
1183
  /**
1184
1184
  * Gap
@@ -1787,21 +1787,21 @@ const ne = (e) => {
1787
1787
  * @see https://tailwindcss.com/docs/gradient-color-stops
1788
1788
  */
1789
1789
  "gradient-from-pos": [{
1790
- from: U()
1790
+ from: H()
1791
1791
  }],
1792
1792
  /**
1793
1793
  * Gradient Color Stops Via Position
1794
1794
  * @see https://tailwindcss.com/docs/gradient-color-stops
1795
1795
  */
1796
1796
  "gradient-via-pos": [{
1797
- via: U()
1797
+ via: H()
1798
1798
  }],
1799
1799
  /**
1800
1800
  * Gradient Color Stops To Position
1801
1801
  * @see https://tailwindcss.com/docs/gradient-color-stops
1802
1802
  */
1803
1803
  "gradient-to-pos": [{
1804
- to: U()
1804
+ to: H()
1805
1805
  }],
1806
1806
  /**
1807
1807
  * Gradient Color Stops From
@@ -1937,70 +1937,70 @@ const ne = (e) => {
1937
1937
  * @see https://tailwindcss.com/docs/border-width
1938
1938
  */
1939
1939
  "border-w": [{
1940
- border: L()
1940
+ border: $()
1941
1941
  }],
1942
1942
  /**
1943
1943
  * Border Width X
1944
1944
  * @see https://tailwindcss.com/docs/border-width
1945
1945
  */
1946
1946
  "border-w-x": [{
1947
- "border-x": L()
1947
+ "border-x": $()
1948
1948
  }],
1949
1949
  /**
1950
1950
  * Border Width Y
1951
1951
  * @see https://tailwindcss.com/docs/border-width
1952
1952
  */
1953
1953
  "border-w-y": [{
1954
- "border-y": L()
1954
+ "border-y": $()
1955
1955
  }],
1956
1956
  /**
1957
1957
  * Border Width Start
1958
1958
  * @see https://tailwindcss.com/docs/border-width
1959
1959
  */
1960
1960
  "border-w-s": [{
1961
- "border-s": L()
1961
+ "border-s": $()
1962
1962
  }],
1963
1963
  /**
1964
1964
  * Border Width End
1965
1965
  * @see https://tailwindcss.com/docs/border-width
1966
1966
  */
1967
1967
  "border-w-e": [{
1968
- "border-e": L()
1968
+ "border-e": $()
1969
1969
  }],
1970
1970
  /**
1971
1971
  * Border Width Top
1972
1972
  * @see https://tailwindcss.com/docs/border-width
1973
1973
  */
1974
1974
  "border-w-t": [{
1975
- "border-t": L()
1975
+ "border-t": $()
1976
1976
  }],
1977
1977
  /**
1978
1978
  * Border Width Right
1979
1979
  * @see https://tailwindcss.com/docs/border-width
1980
1980
  */
1981
1981
  "border-w-r": [{
1982
- "border-r": L()
1982
+ "border-r": $()
1983
1983
  }],
1984
1984
  /**
1985
1985
  * Border Width Bottom
1986
1986
  * @see https://tailwindcss.com/docs/border-width
1987
1987
  */
1988
1988
  "border-w-b": [{
1989
- "border-b": L()
1989
+ "border-b": $()
1990
1990
  }],
1991
1991
  /**
1992
1992
  * Border Width Left
1993
1993
  * @see https://tailwindcss.com/docs/border-width
1994
1994
  */
1995
1995
  "border-w-l": [{
1996
- "border-l": L()
1996
+ "border-l": $()
1997
1997
  }],
1998
1998
  /**
1999
1999
  * Divide Width X
2000
2000
  * @see https://tailwindcss.com/docs/border-width#between-children
2001
2001
  */
2002
2002
  "divide-x": [{
2003
- "divide-x": L()
2003
+ "divide-x": $()
2004
2004
  }],
2005
2005
  /**
2006
2006
  * Divide Width X Reverse
@@ -2012,7 +2012,7 @@ const ne = (e) => {
2012
2012
  * @see https://tailwindcss.com/docs/border-width#between-children
2013
2013
  */
2014
2014
  "divide-y": [{
2015
- "divide-y": L()
2015
+ "divide-y": $()
2016
2016
  }],
2017
2017
  /**
2018
2018
  * Divide Width Y Reverse
@@ -2174,7 +2174,7 @@ const ne = (e) => {
2174
2174
  * @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
2175
2175
  */
2176
2176
  "ring-w": [{
2177
- ring: L()
2177
+ ring: $()
2178
2178
  }],
2179
2179
  /**
2180
2180
  * Ring Width Inset
@@ -2213,7 +2213,7 @@ const ne = (e) => {
2213
2213
  * @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
2214
2214
  */
2215
2215
  "inset-ring-w": [{
2216
- "inset-ring": L()
2216
+ "inset-ring": $()
2217
2217
  }],
2218
2218
  /**
2219
2219
  * Inset Ring Color
@@ -2264,7 +2264,7 @@ const ne = (e) => {
2264
2264
  * @see https://tailwindcss.com/docs/blur
2265
2265
  */
2266
2266
  blur: [{
2267
- blur: re()
2267
+ blur: oe()
2268
2268
  }],
2269
2269
  /**
2270
2270
  * Brightness
@@ -2347,7 +2347,7 @@ const ne = (e) => {
2347
2347
  * @see https://tailwindcss.com/docs/backdrop-blur
2348
2348
  */
2349
2349
  "backdrop-blur": [{
2350
- "backdrop-blur": re()
2350
+ "backdrop-blur": oe()
2351
2351
  }],
2352
2352
  /**
2353
2353
  * Backdrop Brightness
@@ -2517,63 +2517,63 @@ const ne = (e) => {
2517
2517
  * @see https://tailwindcss.com/docs/perspective-origin
2518
2518
  */
2519
2519
  "perspective-origin": [{
2520
- "perspective-origin": $()
2520
+ "perspective-origin": ee()
2521
2521
  }],
2522
2522
  /**
2523
2523
  * Rotate
2524
2524
  * @see https://tailwindcss.com/docs/rotate
2525
2525
  */
2526
2526
  rotate: [{
2527
- rotate: G()
2527
+ rotate: ne()
2528
2528
  }],
2529
2529
  /**
2530
2530
  * Rotate X
2531
2531
  * @see https://tailwindcss.com/docs/rotate
2532
2532
  */
2533
2533
  "rotate-x": [{
2534
- "rotate-x": G()
2534
+ "rotate-x": ne()
2535
2535
  }],
2536
2536
  /**
2537
2537
  * Rotate Y
2538
2538
  * @see https://tailwindcss.com/docs/rotate
2539
2539
  */
2540
2540
  "rotate-y": [{
2541
- "rotate-y": G()
2541
+ "rotate-y": ne()
2542
2542
  }],
2543
2543
  /**
2544
2544
  * Rotate Z
2545
2545
  * @see https://tailwindcss.com/docs/rotate
2546
2546
  */
2547
2547
  "rotate-z": [{
2548
- "rotate-z": G()
2548
+ "rotate-z": ne()
2549
2549
  }],
2550
2550
  /**
2551
2551
  * Scale
2552
2552
  * @see https://tailwindcss.com/docs/scale
2553
2553
  */
2554
2554
  scale: [{
2555
- scale: J()
2555
+ scale: _()
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": J()
2562
+ "scale-x": _()
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": J()
2569
+ "scale-y": _()
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": J()
2576
+ "scale-z": _()
2577
2577
  }],
2578
2578
  /**
2579
2579
  * Scale 3D
@@ -2585,21 +2585,21 @@ const ne = (e) => {
2585
2585
  * @see https://tailwindcss.com/docs/skew
2586
2586
  */
2587
2587
  skew: [{
2588
- skew: Pe()
2588
+ skew: K()
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": Pe()
2595
+ "skew-x": K()
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": Pe()
2602
+ "skew-y": K()
2603
2603
  }],
2604
2604
  /**
2605
2605
  * Transform
@@ -2613,7 +2613,7 @@ const ne = (e) => {
2613
2613
  * @see https://tailwindcss.com/docs/transform-origin
2614
2614
  */
2615
2615
  "transform-origin": [{
2616
- origin: $()
2616
+ origin: ee()
2617
2617
  }],
2618
2618
  /**
2619
2619
  * Transform Style
@@ -2627,28 +2627,28 @@ const ne = (e) => {
2627
2627
  * @see https://tailwindcss.com/docs/translate
2628
2628
  */
2629
2629
  translate: [{
2630
- translate: ye()
2630
+ translate: ae()
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": ye()
2637
+ "translate-x": ae()
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": ye()
2644
+ "translate-y": ae()
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": ye()
2651
+ "translate-z": ae()
2652
2652
  }],
2653
2653
  /**
2654
2654
  * Translate None
@@ -3090,7 +3090,7 @@ function bo(...e) {
3090
3090
  };
3091
3091
  };
3092
3092
  }
3093
- function se(...e) {
3093
+ function le(...e) {
3094
3094
  return l.useCallback(bo(...e), e);
3095
3095
  }
3096
3096
  function pl(e, t) {
@@ -3166,7 +3166,7 @@ function Ot(e) {
3166
3166
  n((r) => r ?? String(gl++));
3167
3167
  }, [e]), e || (t ? `radix-${t}` : "");
3168
3168
  }
3169
- function fe(e) {
3169
+ function me(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 = fe(n), u = l.useCallback(
3184
+ const [r, o] = vl({ defaultProp: t, onChange: n }), a = e !== void 0, s = a ? e : r, c = me(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 = fe(t);
3200
+ const n = l.useState(e), [r] = n, o = l.useRef(r), a = me(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 he = l.forwardRef((e, t) => {
3205
+ var ve = 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 he = l.forwardRef((e, t) => {
3210
3210
  }
3211
3211
  return /* @__PURE__ */ i(kn, { ...r, ref: t, children: n });
3212
3212
  });
3213
- he.displayName = "Slot";
3213
+ ve.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 ? he : t;
3261
+ const { asChild: a, ...s } = r, c = a ? ve : 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 = fe(e);
3270
+ const n = me(e);
3271
3271
  l.useEffect(() => {
3272
3272
  const r = (o) => {
3273
3273
  o.key === "Escape" && n(o);
@@ -3289,9 +3289,9 @@ var Cl = "DismissableLayer", Mn = "dismissableLayer.update", El = "dismissableLa
3289
3289
  onInteractOutside: s,
3290
3290
  onDismiss: c,
3291
3291
  ...u
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 = se(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 z = T.target, _ = [...d.branches].some((W) => W.contains(z));
3294
- !C || _ || (o == null || o(T), s == null || s(T), T.defaultPrevented || c == null || c());
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 z = T.target, I = [...d.branches].some((W) => W.contains(z));
3294
+ !C || I || (o == null || o(T), s == null || s(T), T.defaultPrevented || c == null || c());
3295
3295
  }, v), E = Pl((T) => {
3296
3296
  const z = T.target;
3297
3297
  [...d.branches].some((W) => W.contains(z)) || (a == null || a(T), s == null || s(T), T.defaultPrevented || c == null || c());
@@ -3329,7 +3329,7 @@ var Cl = "DismissableLayer", Mn = "dismissableLayer.update", El = "dismissableLa
3329
3329
  );
3330
3330
  Ht.displayName = Cl;
3331
3331
  var Tl = "DismissableLayerBranch", No = l.forwardRef((e, t) => {
3332
- const n = l.useContext(xo), r = l.useRef(null), o = se(t, r);
3332
+ const n = l.useContext(xo), r = l.useRef(null), o = le(t, r);
3333
3333
  return l.useEffect(() => {
3334
3334
  const a = r.current;
3335
3335
  if (a)
@@ -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 = fe(e), r = l.useRef(!1), o = l.useRef(() => {
3343
+ const n = me(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 = fe(e), r = l.useRef(!1);
3373
+ const n = me(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 = fe(o), p = fe(a), m = l.useRef(null), v = se(t, (f) => u(f)), g = l.useRef({
3401
+ } = e, [c, u] = l.useState(null), d = me(o), p = me(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;
@@ -3479,9 +3479,9 @@ function So(e) {
3479
3479
  }
3480
3480
  function Ar(e, t) {
3481
3481
  for (const n of e)
3482
- if (!_l(n, { upTo: t })) return n;
3482
+ if (!Il(n, { upTo: t })) return n;
3483
3483
  }
3484
- function _l(e, { upTo: t }) {
3484
+ function Il(e, { upTo: t }) {
3485
3485
  if (getComputedStyle(e).visibility === "hidden") return !0;
3486
3486
  for (; e; ) {
3487
3487
  if (t !== void 0 && e === t) return !1;
@@ -3490,13 +3490,13 @@ function _l(e, { upTo: t }) {
3490
3490
  }
3491
3491
  return !1;
3492
3492
  }
3493
- function Il(e) {
3493
+ function _l(e) {
3494
3494
  return e instanceof HTMLInputElement && "select" in e;
3495
3495
  }
3496
3496
  function Oe(e, { select: t = !1 } = {}) {
3497
3497
  if (e && e.focus) {
3498
3498
  const n = document.activeElement;
3499
- e.focus({ preventScroll: !0 }), e !== n && Il(e) && t && e.select();
3499
+ e.focus({ preventScroll: !0 }), e !== n && _l(e) && t && e.select();
3500
3500
  }
3501
3501
  }
3502
3502
  var kr = Ll();
@@ -3532,7 +3532,7 @@ function zl(e, t) {
3532
3532
  return l.useReducer((n, r) => t[n][r] ?? n, e);
3533
3533
  }
3534
3534
  var Ke = (e) => {
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));
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
  Ke.displayName = "Presence";
@@ -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 we = function() {
3610
- return we = Object.assign || function(t) {
3609
+ var xe = function() {
3610
+ return xe = 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
- }, we.apply(this, arguments);
3616
+ }, xe.apply(this, arguments);
3617
3617
  };
3618
3618
  function To(e, t) {
3619
3619
  var n = {};
@@ -3628,12 +3628,12 @@ function Vl(e, t, n) {
3628
3628
  (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
3629
3629
  return e.concat(a || Array.prototype.slice.call(t));
3630
3630
  }
3631
- var Dt = "right-scroll-bar-position", _t = "width-before-scroll-bar", Hl = "with-scroll-bars-hidden", Ul = "--removed-body-scroll-bar-size";
3631
+ var Dt = "right-scroll-bar-position", It = "width-before-scroll-bar", Hl = "with-scroll-bars-hidden", Ul = "--removed-body-scroll-bar-size";
3632
3632
  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 = me(function() {
3636
+ var n = ge(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 = we({ async: !0, ssr: !1 }, e), t;
3737
+ return t.options = xe({ 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, we({}, n));
3746
+ return l.createElement(r, xe({}, 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 = we(we({}, N), o);
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 = xe(xe({}, 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), we(we({}, E), { ref: S })) : l.createElement(b, we({}, E, { className: u, ref: S }), c)
3763
+ s ? l.cloneElement(l.Children.only(c), xe(xe({}, E), { ref: S })) : l.createElement(b, xe({}, E, { className: u, ref: S }), c)
3764
3764
  );
3765
3765
  });
3766
3766
  Gt.defaultProps = {
@@ -3769,7 +3769,7 @@ Gt.defaultProps = {
3769
3769
  inert: !1
3770
3770
  };
3771
3771
  Gt.classNames = {
3772
- fullWidth: _t,
3772
+ fullWidth: It,
3773
3773
  zeroRight: Dt
3774
3774
  };
3775
3775
  var Jl = function() {
@@ -3864,7 +3864,7 @@ var rc = function() {
3864
3864
  right: `).concat(c, "px ").concat(r, `;
3865
3865
  }
3866
3866
 
3867
- .`).concat(_t, ` {
3867
+ .`).concat(It, ` {
3868
3868
  margin-right: `).concat(c, "px ").concat(r, `;
3869
3869
  }
3870
3870
 
@@ -3872,7 +3872,7 @@ var rc = function() {
3872
3872
  right: 0 `).concat(r, `;
3873
3873
  }
3874
3874
 
3875
- .`).concat(_t, " .").concat(_t, ` {
3875
+ .`).concat(It, " .").concat(It, ` {
3876
3876
  margin-right: 0 `).concat(r, `;
3877
3877
  }
3878
3878
 
@@ -3880,13 +3880,13 @@ var rc = function() {
3880
3880
  `).concat(Ul, ": ").concat(c, `px;
3881
3881
  }
3882
3882
  `);
3883
- }, _r = function() {
3883
+ }, Ir = function() {
3884
3884
  var e = parseInt(document.body.getAttribute(Je) || "0", 10);
3885
3885
  return isFinite(e) ? e : 0;
3886
3886
  }, dc = function() {
3887
3887
  l.useEffect(function() {
3888
- return document.body.setAttribute(Je, (_r() + 1).toString()), function() {
3889
- var e = _r() - 1;
3888
+ return document.body.setAttribute(Je, (Ir() + 1).toString()), function() {
3889
+ var e = Ir() - 1;
3890
3890
  e <= 0 ? document.body.removeAttribute(Je) : document.body.setAttribute(Je, e.toString());
3891
3891
  };
3892
3892
  }, []);
@@ -3924,7 +3924,7 @@ var Xe = On ? { passive: !1 } : !1, fc = function(e) {
3924
3924
  return ko(e, "overflowY");
3925
3925
  }, mc = function(e) {
3926
3926
  return ko(e, "overflowX");
3927
- }, Ir = function(e, t) {
3927
+ }, _r = function(e, t) {
3928
3928
  var n = t.ownerDocument, r = t;
3929
3929
  do {
3930
3930
  typeof ShadowRoot < "u" && r instanceof ShadowRoot && (r = r.host);
@@ -4005,15 +4005,15 @@ 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 z = Ir(T, E);
4008
+ var z = _r(T, E);
4009
4009
  if (!z)
4010
4010
  return !0;
4011
- if (z ? S = T : (S = T === "v" ? "h" : "v", z = Ir(T, E)), !z)
4011
+ if (z ? S = T : (S = T === "v" ? "h" : "v", z = _r(T, E)), !z)
4012
4012
  return !1;
4013
4013
  if (!r.current && "changedTouches" in f && (N || C) && (r.current = S), !S)
4014
4014
  return !0;
4015
- var _ = r.current || S;
4016
- return bc(_, h, f, _ === "h" ? N : C);
4015
+ var I = r.current || S;
4016
+ return bc(I, h, f, I === "h" ? N : C);
4017
4017
  }, []), u = l.useCallback(function(f) {
4018
4018
  var h = f;
4019
4019
  if (!(!Qe.length || Qe[Qe.length - 1] !== a)) {
@@ -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, we({}, e, { ref: t, sideCar: Ec }));
4074
+ return l.createElement(Gt, xe({}, e, { ref: t, sideCar: Ec }));
4075
4075
  });
4076
4076
  Do.classNames = Gt.classNames;
4077
4077
  var Sc = function(e) {
@@ -4079,13 +4079,13 @@ 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
- }, Ze = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {}, yn = 0, _o = function(e) {
4083
- return e && (e.host || _o(e.parentNode));
4082
+ }, Ze = /* @__PURE__ */ new WeakMap(), Pt = /* @__PURE__ */ new WeakMap(), At = {}, yn = 0, Io = function(e) {
4083
+ return e && (e.host || Io(e.parentNode));
4084
4084
  }, Tc = function(e, t) {
4085
4085
  return t.map(function(n) {
4086
4086
  if (e.contains(n))
4087
4087
  return n;
4088
- var r = _o(n);
4088
+ var r = Io(n);
4089
4089
  return r && e.contains(r) ? r : (console.error("aria-hidden", n, "in not contained inside", e, ". Doing nothing"), null);
4090
4090
  }).filter(function(n) {
4091
4091
  return !!n;
@@ -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, Vf] = vt(Yn), [Ac, be] = Io(Yn), Lo = (e) => {
4125
+ }, Yn = "Dialog", [_o, Vf] = vt(Yn), [Ac, we] = _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 = be($o, n), a = se(t, o.triggerRef);
4158
+ const { __scopeDialog: n, ...r } = e, o = we($o, n), a = le(t, o.triggerRef);
4159
4159
  return /* @__PURE__ */ i(
4160
4160
  Q.button,
4161
4161
  {
@@ -4172,27 +4172,27 @@ var $o = "DialogTrigger", Fo = l.forwardRef(
4172
4172
  }
4173
4173
  );
4174
4174
  Fo.displayName = $o;
4175
- var qn = "DialogPortal", [kc, zo] = Io(qn, {
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 = be(qn, t);
4178
+ const { __scopeDialog: t, forceMount: n, children: r, container: o } = e, a = we(qn, t);
4179
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 = be(zt, e.__scopeDialog);
4184
+ const n = zo(zt, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = we(zt, e.__scopeDialog);
4185
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 = be(zt, n);
4191
+ const { __scopeDialog: n, ...r } = e, o = we(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: he, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
4195
+ /* @__PURE__ */ i(Do, { as: ve, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ i(
4196
4196
  Q.div,
4197
4197
  {
4198
4198
  "data-state": Qn(o.open),
@@ -4205,14 +4205,14 @@ var Mc = l.forwardRef(
4205
4205
  }
4206
4206
  ), Ue = "DialogContent", jo = l.forwardRef(
4207
4207
  (e, t) => {
4208
- const n = zo(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = be(Ue, e.__scopeDialog);
4208
+ const n = zo(Ue, e.__scopeDialog), { forceMount: r = n.forceMount, ...o } = e, a = we(Ue, e.__scopeDialog);
4209
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
4212
  jo.displayName = Ue;
4213
4213
  var Oc = l.forwardRef(
4214
4214
  (e, t) => {
4215
- const n = be(Ue, e.__scopeDialog), r = l.useRef(null), o = se(t, n.contentRef, r);
4215
+ const n = we(Ue, 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 = be(Ue, e.__scopeDialog), r = l.useRef(!1), o = l.useRef(!1);
4243
+ const n = we(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 = be(Ue, n), u = l.useRef(null), d = se(t, u);
4266
+ const { __scopeDialog: n, trapFocus: r, onOpenAutoFocus: o, onCloseAutoFocus: a, ...s } = e, c = we(Ue, n), u = l.useRef(null), d = le(t, u);
4267
4267
  return jl(), /* @__PURE__ */ x(te, { children: [
4268
4268
  /* @__PURE__ */ i(
4269
4269
  Eo,
@@ -4289,28 +4289,28 @@ var Oc = l.forwardRef(
4289
4289
  }
4290
4290
  ),
4291
4291
  /* @__PURE__ */ x(te, { children: [
4292
- /* @__PURE__ */ i(_c, { titleId: c.titleId }),
4292
+ /* @__PURE__ */ i(Ic, { titleId: c.titleId }),
4293
4293
  /* @__PURE__ */ i(Lc, { contentRef: u, descriptionId: c.descriptionId })
4294
4294
  ] })
4295
4295
  ] });
4296
4296
  }
4297
4297
  ), Xn = "DialogTitle", Ho = l.forwardRef(
4298
4298
  (e, t) => {
4299
- const { __scopeDialog: n, ...r } = e, o = be(Xn, n);
4299
+ const { __scopeDialog: n, ...r } = e, o = we(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 = be(Uo, n);
4306
+ const { __scopeDialog: n, ...r } = e, o = we(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 = be(Ko, n);
4313
+ const { __scopeDialog: n, ...r } = e, o = we(Ko, n);
4314
4314
  return /* @__PURE__ */ i(
4315
4315
  Q.button,
4316
4316
  {
@@ -4330,7 +4330,7 @@ var qo = "DialogTitleWarning", [Hf, Xo] = pl(qo, {
4330
4330
  contentName: Ue,
4331
4331
  titleName: Xn,
4332
4332
  docsSlug: "dialog"
4333
- }), _c = ({ titleId: e }) => {
4333
+ }), Ic = ({ titleId: e }) => {
4334
4334
  const t = Xo(qo), n = `\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
4335
4335
 
4336
4336
  If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
@@ -4339,8 +4339,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
4339
4339
  return l.useEffect(() => {
4340
4340
  e && (document.getElementById(e) || console.error(n));
4341
4341
  }, [n, e]), null;
4342
- }, Ic = "DialogDescriptionWarning", Lc = ({ contentRef: e, descriptionId: t }) => {
4343
- const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xo(Ic).contentName}}.`;
4342
+ }, _c = "DialogDescriptionWarning", Lc = ({ contentRef: e, descriptionId: t }) => {
4343
+ const r = `Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Xo(_c).contentName}}.`;
4344
4344
  return l.useEffect(() => {
4345
4345
  var a;
4346
4346
  const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
@@ -4489,9 +4489,9 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
4489
4489
  size: "default"
4490
4490
  }
4491
4491
  }
4492
- ), ae = l.forwardRef(
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 ? he : "button";
4494
+ const u = r ? ve : "button";
4495
4495
  if (!o)
4496
4496
  return /* @__PURE__ */ i(
4497
4497
  u,
@@ -4523,15 +4523,15 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
4523
4523
  /* @__PURE__ */ i(na, { children: p })
4524
4524
  ] }),
4525
4525
  /* @__PURE__ */ x(ta, { className: "flex justify-end gap-2 pt-4", children: [
4526
- /* @__PURE__ */ i(Fr, { asChild: !0, children: /* @__PURE__ */ i(ae, { variant: "outline", children: g }) }),
4527
- /* @__PURE__ */ i(Fr, { asChild: !0, children: /* @__PURE__ */ i(ae, { onClick: y, children: v }) })
4526
+ /* @__PURE__ */ i(Fr, { asChild: !0, children: /* @__PURE__ */ i(ie, { variant: "outline", children: g }) }),
4527
+ /* @__PURE__ */ i(Fr, { asChild: !0, children: /* @__PURE__ */ i(ie, { onClick: y, children: v }) })
4528
4528
  ] })
4529
4529
  ] })
4530
4530
  ] });
4531
4531
  }
4532
4532
  );
4533
- ae.displayName = "Button";
4534
- const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt = Math.round, kt = Math.floor, xe = (e) => ({
4533
+ ie.displayName = "Button";
4534
+ const Fc = ["top", "right", "bottom", "left"], Ie = Math.min, fe = Math.max, Wt = Math.round, kt = Math.floor, Ne = (e) => ({
4535
4535
  x: e,
4536
4536
  y: e
4537
4537
  }), zc = {
@@ -4544,12 +4544,12 @@ const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt
4544
4544
  end: "start"
4545
4545
  };
4546
4546
  function Dn(e, t, n) {
4547
- return de(e, _e(t, n));
4547
+ return fe(e, Ie(t, n));
4548
4548
  }
4549
- function Te(e, t) {
4549
+ function Re(e, t) {
4550
4550
  return typeof e == "function" ? e(t) : e;
4551
4551
  }
4552
- function Re(e) {
4552
+ function Pe(e) {
4553
4553
  return e.split("-")[0];
4554
4554
  }
4555
4555
  function st(e) {
@@ -4561,11 +4561,11 @@ function tr(e) {
4561
4561
  function nr(e) {
4562
4562
  return e === "y" ? "height" : "width";
4563
4563
  }
4564
- function Ie(e) {
4565
- return ["top", "bottom"].includes(Re(e)) ? "y" : "x";
4564
+ function _e(e) {
4565
+ return ["top", "bottom"].includes(Pe(e)) ? "y" : "x";
4566
4566
  }
4567
4567
  function rr(e) {
4568
- return tr(Ie(e));
4568
+ return tr(_e(e));
4569
4569
  }
4570
4570
  function Bc(e, t, n) {
4571
4571
  n === void 0 && (n = !1);
@@ -4575,9 +4575,9 @@ function Bc(e, t, n) {
4575
4575
  }
4576
4576
  function jc(e) {
4577
4577
  const t = Bt(e);
4578
- return [_n(e), t, _n(t)];
4578
+ return [In(e), t, In(t)];
4579
4579
  }
4580
- function _n(e) {
4580
+ function In(e) {
4581
4581
  return e.replace(/start|end/g, (t) => Wc[t]);
4582
4582
  }
4583
4583
  function Vc(e, t, n) {
@@ -4595,8 +4595,8 @@ function Vc(e, t, n) {
4595
4595
  }
4596
4596
  function Hc(e, t, n, r) {
4597
4597
  const o = st(e);
4598
- let a = Vc(Re(e), n === "start", r);
4599
- return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(_n)))), a;
4598
+ let a = Vc(Pe(e), n === "start", r);
4599
+ return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(In)))), a;
4600
4600
  }
4601
4601
  function Bt(e) {
4602
4602
  return e.replace(/left|right|bottom|top/g, (t) => zc[t]);
@@ -4641,7 +4641,7 @@ function jr(e, t, n) {
4641
4641
  reference: r,
4642
4642
  floating: o
4643
4643
  } = e;
4644
- const a = Ie(t), s = rr(t), c = nr(s), u = Re(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;
4644
+ const a = _e(t), s = rr(t), c = nr(s), u = Pe(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":
@@ -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
- } = Te(t, e), y = ra(g), h = c[v ? m === "floating" ? "reference" : "floating" : m], b = jt(await a.getClippingRect({
4764
+ } = Re(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
- } = Te(e, t) || {};
4808
+ } = Re(e, t) || {};
4809
4809
  if (d == null)
4810
4810
  return {};
4811
4811
  const m = ra(p), v = {
@@ -4814,14 +4814,14 @@ 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 z = C / 2 - S / 2, _ = T / 2 - f[y] / 2 - 1, W = _e(m[b], _), H = _e(m[w], _), B = W, D = T - f[y] - H, R = T / 2 - f[y] / 2 + z, j = Dn(B, R, D), P = !u.arrow && st(o) != null && R !== j && a.reference[y] / 2 - (R < B ? W : H) - f[y] / 2 < 0, U = P ? R < B ? R - B : R - D : 0;
4817
+ const z = C / 2 - S / 2, I = T / 2 - f[y] / 2 - 1, W = Ie(m[b], I), U = Ie(m[w], I), B = W, D = T - f[y] - U, R = T / 2 - f[y] / 2 + z, j = Dn(B, R, D), P = !u.arrow && st(o) != null && R !== j && a.reference[y] / 2 - (R < B ? W : U) - f[y] / 2 < 0, H = P ? R < B ? R - B : R - D : 0;
4818
4818
  return {
4819
- [g]: v[g] + U,
4819
+ [g]: v[g] + H,
4820
4820
  data: {
4821
4821
  [g]: j,
4822
- centerOffset: R - j - U,
4822
+ centerOffset: R - j - H,
4823
4823
  ...P && {
4824
- alignmentOffset: U
4824
+ alignmentOffset: H
4825
4825
  }
4826
4826
  },
4827
4827
  reset: P
@@ -4848,23 +4848,23 @@ const Kc = (e) => ({
4848
4848
  fallbackAxisSideDirection: y = "none",
4849
4849
  flipAlignment: f = !0,
4850
4850
  ...h
4851
- } = Te(e, t);
4851
+ } = Re(e, t);
4852
4852
  if ((n = a.arrow) != null && n.alignmentOffset)
4853
4853
  return {};
4854
- const b = Re(o), w = Ie(c), N = Re(c) === c, C = await (u.isRTL == null ? void 0 : u.isRTL(d.floating)), S = v || (N || !f ? [Bt(c)] : jc(c)), E = y !== "none";
4854
+ const b = Pe(o), w = _e(c), N = Pe(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], z = await ht(t, h), _ = [];
4856
+ const T = [c, ...S], z = await ht(t, h), I = [];
4857
4857
  let W = ((r = a.flip) == null ? void 0 : r.overflows) || [];
4858
- if (p && _.push(z[b]), m) {
4858
+ if (p && I.push(z[b]), m) {
4859
4859
  const R = Bc(o, s, C);
4860
- _.push(z[R[0]], z[R[1]]);
4860
+ I.push(z[R[0]], z[R[1]]);
4861
4861
  }
4862
4862
  if (W = [...W, {
4863
4863
  placement: o,
4864
- overflows: _
4865
- }], !_.every((R) => R <= 0)) {
4866
- var H, B;
4867
- const R = (((H = a.flip) == null ? void 0 : H.index) || 0) + 1, j = T[R];
4864
+ overflows: I
4865
+ }], !I.every((R) => R <= 0)) {
4866
+ var U, B;
4867
+ const R = (((U = a.flip) == null ? void 0 : U.index) || 0) + 1, j = T[R];
4868
4868
  if (j)
4869
4869
  return {
4870
4870
  data: {
@@ -4875,21 +4875,21 @@ const Kc = (e) => ({
4875
4875
  placement: j
4876
4876
  }
4877
4877
  };
4878
- let P = (B = W.filter((U) => U.overflows[0] <= 0).sort((U, O) => U.overflows[1] - O.overflows[1])[0]) == null ? void 0 : B.placement;
4878
+ let P = (B = W.filter((H) => H.overflows[0] <= 0).sort((H, O) => H.overflows[1] - O.overflows[1])[0]) == null ? void 0 : B.placement;
4879
4879
  if (!P)
4880
4880
  switch (g) {
4881
4881
  case "bestFit": {
4882
4882
  var D;
4883
- const U = (D = W.filter((O) => {
4883
+ const H = (D = W.filter((O) => {
4884
4884
  if (E) {
4885
- const L = Ie(O.placement);
4886
- return L === w || // Create a bias to the `y` side axis due to horizontal
4885
+ const $ = _e(O.placement);
4886
+ return $ === w || // Create a bias to the `y` side axis due to horizontal
4887
4887
  // reading directions favoring greater width.
4888
- L === "y";
4888
+ $ === "y";
4889
4889
  }
4890
4890
  return !0;
4891
- }).map((O) => [O.placement, O.overflows.filter((L) => L > 0).reduce((L, q) => L + q, 0)]).sort((O, L) => O[1] - L[1])[0]) == null ? void 0 : D[0];
4892
- U && (P = U);
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 && (P = H);
4893
4893
  break;
4894
4894
  }
4895
4895
  case "initialPlacement":
@@ -4928,7 +4928,7 @@ const qc = function(e) {
4928
4928
  } = t, {
4929
4929
  strategy: r = "referenceHidden",
4930
4930
  ...o
4931
- } = Te(e, t);
4931
+ } = Re(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 = Re(n), c = st(n), u = Ie(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, m = Te(t, e);
4968
+ } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Pe(n), c = st(n), u = _e(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, m = Re(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
- } = Te(e, t), d = {
5037
+ } = Re(e, t), d = {
5038
5038
  x: n,
5039
5039
  y: r
5040
- }, p = await ht(t, u), m = Ie(Re(o)), v = tr(m);
5040
+ }, p = await ht(t, u), m = _e(Pe(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
- } = Te(e, t), p = {
5082
+ } = Re(e, t), p = {
5083
5083
  x: n,
5084
5084
  y: r
5085
- }, m = Ie(o), v = tr(m);
5085
+ }, m = _e(o), v = tr(m);
5086
5086
  let g = p[v], y = p[m];
5087
- const f = Te(c, t), h = typeof f == "number" ? {
5087
+ const f = Re(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(Re(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);
5101
+ const N = v === "y" ? "width" : "height", C = ["top", "left"].includes(Pe(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,25 +5122,25 @@ const Qc = function(e) {
5122
5122
  apply: u = () => {
5123
5123
  },
5124
5124
  ...d
5125
- } = Te(e, t), p = await ht(t, d), m = Re(o), v = st(o), g = Ie(o) === "y", {
5125
+ } = Re(e, t), p = await ht(t, d), m = Pe(o), v = st(o), g = _e(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 = _e(f - p[h], w), S = _e(y - p[b], N), E = !t.middlewareData.shift;
5131
+ const w = f - p.top - p.bottom, N = y - p.left - p.right, C = Ie(f - p[h], w), S = Ie(y - p[b], N), E = !t.middlewareData.shift;
5132
5132
  let T = C, z = S;
5133
5133
  if ((n = t.middlewareData.shift) != null && n.enabled.x && (z = N), (r = t.middlewareData.shift) != null && r.enabled.y && (T = w), E && !v) {
5134
- const W = de(p.left, 0), H = de(p.right, 0), B = de(p.top, 0), D = de(p.bottom, 0);
5135
- g ? z = y - 2 * (W !== 0 || H !== 0 ? W + H : de(p.left, p.right)) : T = f - 2 * (B !== 0 || D !== 0 ? B + D : de(p.top, p.bottom));
5134
+ const W = fe(p.left, 0), U = fe(p.right, 0), B = fe(p.top, 0), D = fe(p.bottom, 0);
5135
+ g ? z = 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
5139
  availableWidth: z,
5140
5140
  availableHeight: T
5141
5141
  });
5142
- const _ = await s.getDimensions(c.floating);
5143
- return y !== _.width || f !== _.height ? {
5142
+ const I = await s.getDimensions(c.floating);
5143
+ return y !== I.width || f !== I.height ? {
5144
5144
  reset: {
5145
5145
  rects: !0
5146
5146
  }
@@ -5154,25 +5154,25 @@ function en() {
5154
5154
  function it(e) {
5155
5155
  return oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
5156
5156
  }
5157
- function ue(e) {
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 Ce(e) {
5161
+ function Ee(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
- return en() ? e instanceof Node || e instanceof ue(e).Node : !1;
5166
+ return en() ? e instanceof Node || e instanceof pe(e).Node : !1;
5167
5167
  }
5168
- function ge(e) {
5169
- return en() ? e instanceof Element || e instanceof ue(e).Element : !1;
5168
+ function be(e) {
5169
+ return en() ? e instanceof Element || e instanceof pe(e).Element : !1;
5170
5170
  }
5171
- function Ne(e) {
5172
- return en() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
5171
+ function Ce(e) {
5172
+ return en() ? e instanceof HTMLElement || e instanceof pe(e).HTMLElement : !1;
5173
5173
  }
5174
5174
  function Ur(e) {
5175
- return !en() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof ue(e).ShadowRoot;
5175
+ return !en() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof pe(e).ShadowRoot;
5176
5176
  }
5177
5177
  function yt(e) {
5178
5178
  const {
@@ -5180,7 +5180,7 @@ function yt(e) {
5180
5180
  overflowX: n,
5181
5181
  overflowY: r,
5182
5182
  display: o
5183
- } = ve(e);
5183
+ } = ye(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 = ge(e) ? ve(e) : e;
5199
+ const t = ar(), n = be(e) ? ye(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 (; Ne(t) && !nt(t); ) {
5204
+ for (; Ce(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 ve(e) {
5220
- return ue(e).getComputedStyle(e);
5219
+ function ye(e) {
5220
+ return pe(e).getComputedStyle(e);
5221
5221
  }
5222
5222
  function nn(e) {
5223
- return ge(e) ? {
5223
+ return be(e) ? {
5224
5224
  scrollLeft: e.scrollLeft,
5225
5225
  scrollTop: e.scrollTop
5226
5226
  } : {
@@ -5236,31 +5236,31 @@ function Le(e) {
5236
5236
  e.assignedSlot || // DOM Element detected.
5237
5237
  e.parentNode || // ShadowRoot detected.
5238
5238
  Ur(e) && e.host || // Fallback.
5239
- Ce(e)
5239
+ Ee(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 : Ne(t) && yt(t) ? t : aa(t);
5245
+ return nt(t) ? e.ownerDocument ? e.ownerDocument.body : e.body : Ce(t) && yt(t) ? t : aa(t);
5246
5246
  }
5247
5247
  function gt(e, t, n) {
5248
5248
  var r;
5249
5249
  t === void 0 && (t = []), n === void 0 && (n = !0);
5250
- const o = aa(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = ue(o);
5250
+ const o = aa(e), a = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = pe(o);
5251
5251
  if (a) {
5252
- const c = In(s);
5252
+ const c = _n(s);
5253
5253
  return t.concat(s, s.visualViewport || [], yt(o) ? o : [], c && n ? gt(c) : []);
5254
5254
  }
5255
5255
  return t.concat(o, gt(o, [], n));
5256
5256
  }
5257
- function In(e) {
5257
+ 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 = ve(e);
5261
+ const t = ye(e);
5262
5262
  let n = parseFloat(t.width) || 0, r = parseFloat(t.height) || 0;
5263
- const o = Ne(e), a = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Wt(n) !== a || Wt(r) !== s;
5263
+ const o = Ce(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 ge(e) ? e : e.contextElement;
5271
+ return be(e) ? e : e.contextElement;
5272
5272
  }
5273
5273
  function et(e) {
5274
5274
  const t = sr(e);
5275
- if (!Ne(t))
5276
- return xe(1);
5275
+ if (!Ce(t))
5276
+ return Ne(1);
5277
5277
  const n = t.getBoundingClientRect(), {
5278
5278
  width: r,
5279
5279
  height: o,
@@ -5285,30 +5285,30 @@ function et(e) {
5285
5285
  y: c
5286
5286
  };
5287
5287
  }
5288
- const rd = /* @__PURE__ */ xe(0);
5288
+ const rd = /* @__PURE__ */ Ne(0);
5289
5289
  function ia(e) {
5290
- const t = ue(e);
5290
+ const t = pe(e);
5291
5291
  return !ar() || !t.visualViewport ? rd : {
5292
5292
  x: t.visualViewport.offsetLeft,
5293
5293
  y: t.visualViewport.offsetTop
5294
5294
  };
5295
5295
  }
5296
5296
  function od(e, t, n) {
5297
- return t === void 0 && (t = !1), !n || t && n !== ue(e) ? !1 : t;
5297
+ return t === void 0 && (t = !1), !n || t && n !== pe(e) ? !1 : t;
5298
5298
  }
5299
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 = xe(1);
5303
- t && (r ? ge(r) && (s = et(r)) : s = et(e));
5304
- const c = od(a, n, r) ? ia(a) : xe(0);
5302
+ let s = Ne(1);
5303
+ t && (r ? be(r) && (s = et(r)) : s = et(e));
5304
+ const c = od(a, n, r) ? ia(a) : Ne(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 && ge(r) ? ue(r) : r;
5308
- let y = v, f = In(y);
5307
+ const v = pe(a), g = r && be(r) ? pe(r) : r;
5308
+ let y = v, f = _n(y);
5309
5309
  for (; f && r && g !== y; ) {
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
- u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y = ue(f), f = In(y);
5310
+ const h = et(f), b = f.getBoundingClientRect(), w = ye(f), N = b.left + (f.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = b.top + (f.clientTop + parseFloat(w.paddingTop)) * h.y;
5311
+ u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y = pe(f), f = _n(y);
5312
5312
  }
5313
5313
  }
5314
5314
  return jt({
@@ -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 : Ge(Ce(e)).left + n;
5323
+ return t ? t.left + n : Ge(Ee(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 = Ce(r), c = t ? tn(t.floating) : !1;
5343
+ const a = o === "fixed", s = Ee(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 = 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))) {
5349
+ }, d = Ne(1);
5350
+ const p = Ne(0), m = Ce(r);
5351
+ if ((m || !m && !a) && ((it(r) !== "body" || yt(s)) && (u = nn(r)), Ce(r))) {
5352
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) : xe(0);
5355
+ const v = s && !m && !a ? la(s, u, !0) : Ne(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 = 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);
5367
+ const t = Ee(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 ve(r).direction === "rtl" && (s += de(t.clientWidth, r.clientWidth) - o), {
5370
+ return ye(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 = ue(e), r = Ce(e), o = n.visualViewport;
5378
+ const n = pe(e), r = Ee(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 = 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;
5393
+ const n = Ge(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ce(e) ? et(e) : Ne(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(Ce(e));
5407
- else if (ge(t))
5406
+ r = id(Ee(e));
5407
+ else if (be(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 || !ge(n) || nt(n) ? !1 : ve(n).position === "fixed" || ca(n, t);
5422
+ return n === t || !be(n) || nt(n) ? !1 : ye(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) => ge(c) && it(c) !== "body"), o = null;
5429
- const a = ve(e).position === "fixed";
5428
+ let r = gt(e, [], !1).filter((c) => be(c) && it(c) !== "body"), o = null;
5429
+ const a = ye(e).position === "fixed";
5430
5430
  let s = a ? Le(e) : e;
5431
- for (; ge(s) && !nt(s); ) {
5432
- const c = ve(s), u = or(s);
5431
+ for (; be(s) && !nt(s); ) {
5432
+ const c = ye(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;
@@ -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 = de(m.top, d.top), d.right = _e(m.right, d.right), d.bottom = _e(m.bottom, d.bottom), d.left = de(m.left, d.left), d;
5446
+ return d.top = fe(m.top, d.top), d.right = Ie(m.right, d.right), d.bottom = Ie(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 = Ne(t), o = Ce(t), a = n === "fixed", s = Ge(e, !0, a, t);
5466
+ const r = Ce(t), o = Ee(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 = xe(0);
5471
+ const u = Ne(0);
5472
5472
  if (r || !r && !a)
5473
5473
  if ((it(t) !== "body" || yt(o)) && (c = nn(t)), r) {
5474
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) : xe(0), p = s.left + c.scrollLeft - u.x - d.x, m = s.top + c.scrollTop - u.y - d.y;
5477
+ const d = o && !r && !a ? la(o, c) : Ne(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 ve(e).position === "static";
5486
+ return ye(e).position === "static";
5487
5487
  }
5488
5488
  function Kr(e, t) {
5489
- if (!Ne(e) || ve(e).position === "fixed")
5489
+ if (!Ce(e) || ye(e).position === "fixed")
5490
5490
  return null;
5491
5491
  if (t)
5492
5492
  return t(e);
5493
5493
  let n = e.offsetParent;
5494
- return Ce(e) === n && (n = n.ownerDocument.body), n;
5494
+ return Ee(e) === n && (n = n.ownerDocument.body), n;
5495
5495
  }
5496
5496
  function da(e, t) {
5497
- const n = ue(e);
5497
+ const n = pe(e);
5498
5498
  if (tn(e))
5499
5499
  return n;
5500
- if (!Ne(e)) {
5500
+ if (!Ce(e)) {
5501
5501
  let o = Le(e);
5502
5502
  for (; o && !nt(o); ) {
5503
- if (ge(o) && !wn(o))
5503
+ if (be(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 ve(e).direction === "rtl";
5527
+ return ye(e).direction === "rtl";
5528
5528
  }
5529
5529
  const gd = {
5530
5530
  convertOffsetParentRelativeRectToViewportRelativeRect: ad,
5531
- getDocumentElement: Ce,
5531
+ getDocumentElement: Ee,
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: ge,
5538
+ isElement: be,
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 = Ce(e);
5546
+ const o = Ee(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: de(0, _e(1, u)) || 1
5563
+ threshold: fe(0, Ie(1, u)) || 1
5564
5564
  };
5565
5565
  let C = !0;
5566
5566
  function S(E) {
@@ -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 : He;
5639
+ var _t = typeof document < "u" ? Es : He;
5640
5640
  function Vt(e, t) {
5641
5641
  if (e === t)
5642
5642
  return !0;
@@ -5676,7 +5676,7 @@ function qr(e, t) {
5676
5676
  }
5677
5677
  function xn(e) {
5678
5678
  const t = l.useRef(e);
5679
- return It(() => {
5679
+ return _t(() => {
5680
5680
  t.current = e;
5681
5681
  }), t;
5682
5682
  }
@@ -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), z = l.useRef(p), _ = u != null, W = xn(u), H = xn(o), B = xn(d), D = l.useCallback(() => {
5710
+ }, []), C = a || y, S = s || h, E = l.useRef(null), T = l.useRef(null), z = 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 = {
@@ -5715,9 +5715,9 @@ function Td(e) {
5715
5715
  strategy: n,
5716
5716
  middleware: v
5717
5717
  };
5718
- H.current && (O.platform = H.current), Sd(E.current, T.current, O).then((L) => {
5718
+ U.current && (O.platform = U.current), Sd(E.current, T.current, O).then(($) => {
5719
5719
  const q = {
5720
- ...L,
5720
+ ...$,
5721
5721
  // The floating element's position may be recomputed while it's closed
5722
5722
  // but still mounted (such as when transitioning out). To ensure
5723
5723
  // `isPositioned` will be `false` initially on the next open, avoid
@@ -5728,23 +5728,23 @@ function Td(e) {
5728
5728
  m(q);
5729
5729
  }));
5730
5730
  });
5731
- }, [v, t, n, H, B]);
5732
- It(() => {
5731
+ }, [v, t, n, U, B]);
5732
+ _t(() => {
5733
5733
  d === !1 && z.current.isPositioned && (z.current.isPositioned = !1, m((O) => ({
5734
5734
  ...O,
5735
5735
  isPositioned: !1
5736
5736
  })));
5737
5737
  }, [d]);
5738
5738
  const R = l.useRef(!1);
5739
- It(() => (R.current = !0, () => {
5739
+ _t(() => (R.current = !0, () => {
5740
5740
  R.current = !1;
5741
- }), []), It(() => {
5741
+ }), []), _t(() => {
5742
5742
  if (C && (E.current = C), S && (T.current = S), C && S) {
5743
5743
  if (W.current)
5744
5744
  return W.current(C, S, D);
5745
5745
  D();
5746
5746
  }
5747
- }, [C, S, D, W, _]);
5747
+ }, [C, S, D, W, I]);
5748
5748
  const j = l.useMemo(() => ({
5749
5749
  reference: E,
5750
5750
  floating: T,
@@ -5753,7 +5753,7 @@ function Td(e) {
5753
5753
  }), [w, N]), P = l.useMemo(() => ({
5754
5754
  reference: C,
5755
5755
  floating: S
5756
- }), [C, S]), U = l.useMemo(() => {
5756
+ }), [C, S]), H = l.useMemo(() => {
5757
5757
  const O = {
5758
5758
  position: n,
5759
5759
  left: 0,
@@ -5761,16 +5761,16 @@ function Td(e) {
5761
5761
  };
5762
5762
  if (!P.floating)
5763
5763
  return O;
5764
- const L = qr(P.floating, p.x), q = qr(P.floating, p.y);
5764
+ const $ = qr(P.floating, p.x), q = qr(P.floating, p.y);
5765
5765
  return c ? {
5766
5766
  ...O,
5767
- transform: "translate(" + L + "px, " + q + "px)",
5767
+ transform: "translate(" + $ + "px, " + q + "px)",
5768
5768
  ...fa(P.floating) >= 1.5 && {
5769
5769
  willChange: "transform"
5770
5770
  }
5771
5771
  } : {
5772
5772
  position: n,
5773
- left: L,
5773
+ left: $,
5774
5774
  top: q
5775
5775
  };
5776
5776
  }, [n, c, P.floating, p.x, p.y]);
@@ -5779,8 +5779,8 @@ function Td(e) {
5779
5779
  update: D,
5780
5780
  refs: j,
5781
5781
  elements: P,
5782
- floatingStyles: U
5783
- }), [p, D, j, P, U]);
5782
+ floatingStyles: H
5783
+ }), [p, D, j, P, H]);
5784
5784
  }
5785
5785
  const Rd = (e) => {
5786
5786
  function t(n) {
@@ -5821,11 +5821,11 @@ const Rd = (e) => {
5821
5821
  }), Dd = (e, t) => ({
5822
5822
  ...Cd(e),
5823
5823
  options: [e, t]
5824
- }), _d = (e, t) => ({
5824
+ }), Id = (e, t) => ({
5825
5825
  ...Rd(e),
5826
5826
  options: [e, t]
5827
5827
  });
5828
- var Id = "Arrow", pa = l.forwardRef((e, t) => {
5828
+ var _d = "Arrow", pa = l.forwardRef((e, t) => {
5829
5829
  const { children: n, width: r = 10, height: o = 5, ...a } = e;
5830
5830
  return /* @__PURE__ */ i(
5831
5831
  Q.svg,
@@ -5840,7 +5840,7 @@ var Id = "Arrow", pa = l.forwardRef((e, t) => {
5840
5840
  }
5841
5841
  );
5842
5842
  });
5843
- pa.displayName = Id;
5843
+ pa.displayName = _d;
5844
5844
  var Ld = pa;
5845
5845
  function $d(e) {
5846
5846
  const [t, n] = l.useState(void 0);
@@ -5871,7 +5871,7 @@ var lr = "Popper", [ma, ha] = vt(lr), [Fd, ga] = ma(lr), va = (e) => {
5871
5871
  va.displayName = lr;
5872
5872
  var ba = "PopperAnchor", ya = l.forwardRef(
5873
5873
  (e, t) => {
5874
- const { __scopePopper: n, virtualRef: r, ...o } = e, a = ga(ba, n), s = l.useRef(null), c = se(t, s);
5874
+ const { __scopePopper: n, virtualRef: r, ...o } = e, a = ga(ba, n), s = l.useRef(null), c = le(t, s);
5875
5875
  return l.useEffect(() => {
5876
5876
  a.onAnchorChange((r == null ? void 0 : r.current) || s.current);
5877
5877
  }), r ? null : /* @__PURE__ */ i(Q.div, { ...o, ref: c });
@@ -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 ye, lt, xt, ct, Nt, Ye;
5883
+ var ae, lt, xt, ct, Nt, Ye;
5884
5884
  const {
5885
5885
  __scopePopper: n,
5886
5886
  side: r = "bottom",
@@ -5896,15 +5896,15 @@ 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 = se(t, ($e) => w($e)), [C, S] = l.useState(null), E = $d(C), T = (E == null ? void 0 : E.width) ?? 0, z = (E == null ? void 0 : E.height) ?? 0, _ = r + (a !== "center" ? "-" + a : ""), W = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, H = Array.isArray(d) ? d : [d], B = H.length > 0, D = {
5899
+ } = e, h = ga(cr, n), [b, w] = l.useState(null), N = le(t, ($e) => w($e)), [C, S] = l.useState(null), E = $d(C), T = (E == null ? void 0 : E.width) ?? 0, z = (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
- boundary: H.filter(jd),
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: P, isPositioned: U, middlewareData: O } = Td({
5904
+ }, { refs: R, floatingStyles: j, placement: P, 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
- placement: _,
5907
+ placement: I,
5908
5908
  whileElementsMounted: (...$e) => bd(...$e, {
5909
5909
  animationFrame: g === "always"
5910
5910
  }),
@@ -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: $e, rects: I, availableWidth: F, availableHeight: oe }) => {
5926
- const { width: ie, height: le } = I.reference, K = $e.floating.style;
5927
- K.setProperty("--radix-popper-available-width", `${F}px`), K.setProperty("--radix-popper-available-height", `${oe}px`), K.setProperty("--radix-popper-anchor-width", `${ie}px`), K.setProperty("--radix-popper-anchor-height", `${le}px`);
5925
+ apply: ({ elements: $e, rects: L, availableWidth: F, availableHeight: se }) => {
5926
+ const { width: ce, height: de } = L.reference, G = $e.floating.style;
5927
+ G.setProperty("--radix-popper-available-width", `${F}px`), G.setProperty("--radix-popper-available-height", `${se}px`), G.setProperty("--radix-popper-anchor-width", `${ce}px`), G.setProperty("--radix-popper-anchor-height", `${de}px`);
5928
5928
  }
5929
5929
  }),
5930
- C && _d({ element: C, padding: c }),
5930
+ C && Id({ element: C, padding: c }),
5931
5931
  Vd({ arrowWidth: T, arrowHeight: z }),
5932
5932
  v && Dd({ strategy: "referenceHidden", ...D })
5933
5933
  ]
5934
- }), [L, q] = Ca(P), Z = fe(y);
5934
+ }), [$, q] = Ca(P), Z = me(y);
5935
5935
  De(() => {
5936
- U && (Z == null || Z());
5937
- }, [U, Z]);
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();
5936
+ H && (Z == null || Z());
5937
+ }, [H, Z]);
5938
+ const oe = (ae = O.arrow) == null ? void 0 : ae.x, ee = (lt = O.arrow) == null ? void 0 : lt.y, ne = ((xt = O.arrow) == null ? void 0 : xt.centerOffset) !== 0, [_, K] = l.useState();
5939
5939
  return De(() => {
5940
- b && Pe(window.getComputedStyle(b).zIndex);
5940
+ b && K(window.getComputedStyle(b).zIndex);
5941
5941
  }, [b]), /* @__PURE__ */ i(
5942
5942
  "div",
5943
5943
  {
@@ -5945,10 +5945,10 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5945
5945
  "data-radix-popper-content-wrapper": "",
5946
5946
  style: {
5947
5947
  ...j,
5948
- transform: U ? j.transform : "translate(0, -200%)",
5948
+ transform: H ? j.transform : "translate(0, -200%)",
5949
5949
  // keep off the page when measuring
5950
5950
  minWidth: "max-content",
5951
- zIndex: J,
5951
+ zIndex: _,
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
@@ -5966,15 +5966,15 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5966
5966
  zd,
5967
5967
  {
5968
5968
  scope: n,
5969
- placedSide: L,
5969
+ placedSide: $,
5970
5970
  onArrowChange: S,
5971
- arrowX: re,
5972
- arrowY: $,
5973
- shouldHideArrow: G,
5971
+ arrowX: oe,
5972
+ arrowY: ee,
5973
+ shouldHideArrow: ne,
5974
5974
  children: /* @__PURE__ */ i(
5975
5975
  Q.div,
5976
5976
  {
5977
- "data-side": L,
5977
+ "data-side": $,
5978
5978
  "data-align": q,
5979
5979
  ...f,
5980
5980
  ref: N,
@@ -5982,7 +5982,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5982
5982
  ...f.style,
5983
5983
  // if the PopperContent hasn't been placed yet (not all measurements done)
5984
5984
  // we prevent animations so that users's animation don't kick in too early referring wrong sides
5985
- animation: U ? void 0 : "none"
5985
+ animation: H ? void 0 : "none"
5986
5986
  }
5987
5987
  }
5988
5988
  )
@@ -6174,7 +6174,7 @@ var sn = "Tooltip", [Zd, wt] = on(sn), Ta = (e) => {
6174
6174
  Ta.displayName = sn;
6175
6175
  var $n = "TooltipTrigger", Ra = l.forwardRef(
6176
6176
  (e, t) => {
6177
- const { __scopeTooltip: n, ...r } = e, o = wt($n, n), a = dr($n, n), s = an(n), c = l.useRef(null), u = se(t, c, o.onTriggerChange), d = l.useRef(!1), p = l.useRef(!1), m = l.useCallback(() => d.current = !1, []);
6177
+ const { __scopeTooltip: n, ...r } = e, o = wt($n, n), a = dr($n, n), s = an(n), c = l.useRef(null), u = le(t, c, o.onTriggerChange), d = l.useRef(!1), p = l.useRef(!1), m = l.useCallback(() => d.current = !1, []);
6178
6178
  return l.useEffect(() => () => document.removeEventListener("pointerup", m), [m]), /* @__PURE__ */ i(Ud, { asChild: !0, ...s, children: /* @__PURE__ */ i(
6179
6179
  Q.button,
6180
6180
  {
@@ -6214,7 +6214,7 @@ var rt = "TooltipContent", Aa = l.forwardRef(
6214
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
- 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(() => {
6217
+ const n = wt(rt, e.__scopeTooltip), r = dr(rt, 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) => {
@@ -6481,10 +6481,10 @@ Da.displayName = hu;
6481
6481
  function vu(e) {
6482
6482
  return gu.includes(e);
6483
6483
  }
6484
- var _a = Da;
6485
- const Ia = l.forwardRef(
6484
+ var Ia = Da;
6485
+ const _a = l.forwardRef(
6486
6486
  ({ className: e, orientation: t = "horizontal", decorative: n = !0, ...r }, o) => /* @__PURE__ */ i(
6487
- _a,
6487
+ Ia,
6488
6488
  {
6489
6489
  ref: o,
6490
6490
  decorative: n,
@@ -6498,7 +6498,7 @@ const Ia = l.forwardRef(
6498
6498
  }
6499
6499
  )
6500
6500
  );
6501
- Ia.displayName = _a.displayName;
6501
+ _a.displayName = Ia.displayName;
6502
6502
  const bu = Zn, Gf = Qo, Kf = Qt, yu = Zo, La = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6503
6503
  Kt,
6504
6504
  {
@@ -6592,11 +6592,11 @@ 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] = me(!1), c = () => {
6595
+ const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] = ge(!1), c = () => {
6596
6596
  s(!0);
6597
6597
  };
6598
6598
  return /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
6599
- /* @__PURE__ */ i("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted " + (e !== void 0 ? "cursor-pointer" : ""), children: a ? /* @__PURE__ */ i(ae, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ i(Ci, { className: "h-5 w-5 text-muted-foreground !bg-sidebar" }) }) : /* @__PURE__ */ i(ae, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ i(
6599
+ /* @__PURE__ */ i("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted " + (e !== void 0 ? "cursor-pointer" : ""), children: a ? /* @__PURE__ */ i(ie, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ i(Ci, { className: "h-5 w-5 text-muted-foreground !bg-sidebar" }) }) : /* @__PURE__ */ i(ie, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ i(
6600
6600
  "img",
6601
6601
  {
6602
6602
  src: o,
@@ -6808,7 +6808,7 @@ Ba.displayName = "Sidebar";
6808
6808
  const ja = l.forwardRef(({ className: e, onClick: t, ...n }, r) => {
6809
6809
  const { toggleSidebar: o } = ln();
6810
6810
  return /* @__PURE__ */ x(
6811
- ae,
6811
+ ie,
6812
6812
  {
6813
6813
  ref: r,
6814
6814
  "data-sidebar": "trigger",
@@ -6827,7 +6827,7 @@ const ja = l.forwardRef(({ className: e, onClick: t, ...n }, r) => {
6827
6827
  );
6828
6828
  });
6829
6829
  ja.displayName = "SidebarTrigger";
6830
- const _u = l.forwardRef(({ className: e, ...t }, n) => {
6830
+ const Iu = l.forwardRef(({ className: e, ...t }, n) => {
6831
6831
  const { toggleSidebar: r } = ln();
6832
6832
  return /* @__PURE__ */ i(
6833
6833
  "button",
@@ -6851,8 +6851,8 @@ const _u = l.forwardRef(({ className: e, ...t }, n) => {
6851
6851
  }
6852
6852
  );
6853
6853
  });
6854
- _u.displayName = "SidebarRail";
6855
- const Iu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6854
+ Iu.displayName = "SidebarRail";
6855
+ const _u = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6856
6856
  "main",
6857
6857
  {
6858
6858
  ref: n,
@@ -6864,7 +6864,7 @@ const Iu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6864
6864
  ...t
6865
6865
  }
6866
6866
  ));
6867
- Iu.displayName = "SidebarInset";
6867
+ _u.displayName = "SidebarInset";
6868
6868
  const Lu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6869
6869
  fr,
6870
6870
  {
@@ -6899,7 +6899,7 @@ const Ha = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6899
6899
  ));
6900
6900
  Ha.displayName = "SidebarFooter";
6901
6901
  const $u = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6902
- Ia,
6902
+ _a,
6903
6903
  {
6904
6904
  ref: n,
6905
6905
  "data-sidebar": "separator",
@@ -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 ? he : "div",
6935
+ t ? ve : "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 ? he : "button",
6949
+ t ? ve : "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 ? he : "button", { isMobile: d, state: p } = ln(), m = /* @__PURE__ */ i(
7023
+ const u = e ? ve : "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 ? he : "button",
7052
+ t ? ve : "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 ? he : "a",
7138
+ e ? ve : "a",
7139
7139
  {
7140
7140
  ref: a,
7141
7141
  "data-sidebar": "menu-sub-button",
@@ -7164,15 +7164,15 @@ function qu(e) {
7164
7164
  s.displayName = t;
7165
7165
  const c = e + "CollectionSlot", u = Be.forwardRef(
7166
7166
  (g, y) => {
7167
- const { scope: f, children: h } = g, b = a(c, f), w = se(y, b.collectionRef);
7168
- return /* @__PURE__ */ i(he, { ref: w, children: h });
7167
+ const { scope: f, children: h } = g, b = a(c, f), w = le(y, b.collectionRef);
7168
+ return /* @__PURE__ */ i(ve, { 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
- 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(he, { [p]: "", ref: N, children: h });
7174
+ const { scope: f, children: h, ...b } = g, w = Be.useRef(null), N = le(y, w), C = a(d, f);
7175
+ return Be.useEffect(() => (C.itemMap.set(w, { ref: w, ...b }), () => void C.itemMap.delete(w))), /* @__PURE__ */ i(ve, { [p]: "", ref: N, children: h });
7176
7176
  }
7177
7177
  );
7178
7178
  m.displayName = d;
@@ -7231,7 +7231,7 @@ var Qa = "ToastViewport", Ju = ["F8"], Fn = "toast.viewportPause", zn = "toast.v
7231
7231
  hotkey: r = Ju,
7232
7232
  label: o = "Notifications ({hotkey})",
7233
7233
  ...a
7234
- } = e, s = cn(Qa, n), c = Xu(n), u = l.useRef(null), d = l.useRef(null), p = l.useRef(null), m = l.useRef(null), v = se(t, m, s.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = s.toastCount > 0;
7234
+ } = e, s = cn(Qa, n), c = Xu(n), u = l.useRef(null), d = l.useRef(null), p = l.useRef(null), m = l.useRef(null), v = le(t, m, s.onViewportChange), g = r.join("+").replace(/Key/g, "").replace(/Digit/g, ""), y = s.toastCount > 0;
7235
7235
  l.useEffect(() => {
7236
7236
  const h = (b) => {
7237
7237
  var N;
@@ -7278,13 +7278,13 @@ 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 z = document.activeElement, _ = w.shiftKey;
7282
- if (w.target === h && _) {
7281
+ const z = document.activeElement, I = w.shiftKey;
7282
+ if (w.target === h && I) {
7283
7283
  (S = d.current) == null || S.focus();
7284
7284
  return;
7285
7285
  }
7286
- const B = f({ tabbingDirection: _ ? "backwards" : "forwards" }), D = B.findIndex((R) => R === z);
7287
- Cn(B.slice(D + 1)) ? w.preventDefault() : _ ? (E = d.current) == null || E.focus() : (T = p.current) == null || T.focus();
7286
+ const B = f({ tabbingDirection: I ? "backwards" : "forwards" }), D = B.findIndex((R) => R === z);
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
  };
7290
7290
  return h.addEventListener("keydown", b), () => h.removeEventListener("keydown", b);
@@ -7364,8 +7364,8 @@ var dn = "Toast", ef = "toast.swipeStart", tf = "toast.swipeMove", nf = "toast.s
7364
7364
  ...s,
7365
7365
  ref: t,
7366
7366
  onClose: () => u(!1),
7367
- onPause: fe(e.onPause),
7368
- onResume: fe(e.onResume),
7367
+ onPause: me(e.onPause),
7368
+ onResume: me(e.onResume),
7369
7369
  onSwipeStart: X(e.onSwipeStart, (d) => {
7370
7370
  d.currentTarget.setAttribute("data-swipe", "start");
7371
7371
  }),
@@ -7404,14 +7404,14 @@ 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 = se(t, (R) => b(R)), N = l.useRef(null), C = l.useRef(null), S = o || f.duration, E = l.useRef(0), T = l.useRef(S), z = l.useRef(0), { onToastAdd: _, onToastRemove: W } = f, H = fe(() => {
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), z = l.useRef(0), { onToastAdd: I, onToastRemove: W } = f, U = me(() => {
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(z.current), E.current = (/* @__PURE__ */ new Date()).getTime(), z.current = window.setTimeout(H, R));
7412
+ !R || R === 1 / 0 || (window.clearTimeout(z.current), E.current = (/* @__PURE__ */ new Date()).getTime(), z.current = window.setTimeout(U, R));
7413
7413
  },
7414
- [H]
7414
+ [U]
7415
7415
  );
7416
7416
  l.useEffect(() => {
7417
7417
  const R = f.viewport;
@@ -7419,8 +7419,8 @@ var [of, af] = qa(dn, {
7419
7419
  const j = () => {
7420
7420
  B(T.current), d == null || d();
7421
7421
  }, P = () => {
7422
- const U = (/* @__PURE__ */ new Date()).getTime() - E.current;
7423
- T.current = T.current - U, window.clearTimeout(z.current), u == null || u();
7422
+ const H = (/* @__PURE__ */ new Date()).getTime() - E.current;
7423
+ T.current = T.current - H, window.clearTimeout(z.current), u == null || u();
7424
7424
  };
7425
7425
  return R.addEventListener(Fn, P), R.addEventListener(zn, j), () => {
7426
7426
  R.removeEventListener(Fn, P), R.removeEventListener(zn, j);
@@ -7428,7 +7428,7 @@ var [of, af] = qa(dn, {
7428
7428
  }
7429
7429
  }, [f.viewport, S, u, d, B]), l.useEffect(() => {
7430
7430
  a && !f.isClosePausedRef.current && B(S);
7431
- }, [a, S, f.isClosePausedRef, B]), l.useEffect(() => (_(), () => W()), [_, W]);
7431
+ }, [a, S, f.isClosePausedRef, B]), l.useEffect(() => (I(), () => W()), [I, W]);
7432
7432
  const D = l.useMemo(() => h ? is(h) : null, [h]);
7433
7433
  return f.viewport ? /* @__PURE__ */ x(te, { children: [
7434
7434
  D && /* @__PURE__ */ i(
@@ -7441,13 +7441,13 @@ var [of, af] = qa(dn, {
7441
7441
  children: D
7442
7442
  }
7443
7443
  ),
7444
- /* @__PURE__ */ i(of, { scope: n, onClose: H, children: Vn.createPortal(
7444
+ /* @__PURE__ */ i(of, { scope: n, onClose: U, children: Vn.createPortal(
7445
7445
  /* @__PURE__ */ i(mr.ItemSlot, { scope: n, children: /* @__PURE__ */ i(
7446
7446
  Al,
7447
7447
  {
7448
7448
  asChild: !0,
7449
7449
  onEscapeKeyDown: X(c, () => {
7450
- f.isFocusedToastEscapeKeyDownRef.current || H(), f.isFocusedToastEscapeKeyDownRef.current = !1;
7450
+ f.isFocusedToastEscapeKeyDownRef.current || U(), f.isFocusedToastEscapeKeyDownRef.current = !1;
7451
7451
  }),
7452
7452
  children: /* @__PURE__ */ i(
7453
7453
  Q.li,
@@ -7462,24 +7462,24 @@ var [of, af] = qa(dn, {
7462
7462
  ref: w,
7463
7463
  style: { userSelect: "none", touchAction: "none", ...e.style },
7464
7464
  onKeyDown: X(e.onKeyDown, (R) => {
7465
- R.key === "Escape" && (c == null || c(R.nativeEvent), R.nativeEvent.defaultPrevented || (f.isFocusedToastEscapeKeyDownRef.current = !0, H()));
7465
+ R.key === "Escape" && (c == null || c(R.nativeEvent), R.nativeEvent.defaultPrevented || (f.isFocusedToastEscapeKeyDownRef.current = !0, U()));
7466
7466
  }),
7467
7467
  onPointerDown: X(e.onPointerDown, (R) => {
7468
7468
  R.button === 0 && (N.current = { x: R.clientX, y: R.clientY });
7469
7469
  }),
7470
7470
  onPointerMove: X(e.onPointerMove, (R) => {
7471
7471
  if (!N.current) return;
7472
- const j = R.clientX - N.current.x, P = R.clientY - N.current.y, U = !!C.current, O = ["left", "right"].includes(f.swipeDirection), L = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, q = O ? L(0, j) : 0, Z = O ? 0 : L(0, P), re = R.pointerType === "touch" ? 10 : 2, $ = { x: q, y: Z }, G = { originalEvent: R, delta: $ };
7473
- U ? (C.current = $, Mt(tf, m, G, {
7472
+ const j = R.clientX - N.current.x, P = 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, P), oe = R.pointerType === "touch" ? 10 : 2, ee = { x: q, y: Z }, ne = { originalEvent: R, delta: ee };
7473
+ H ? (C.current = ee, Mt(tf, m, ne, {
7474
7474
  discrete: !1
7475
- })) : Qr($, f.swipeDirection, re) ? (C.current = $, Mt(ef, p, G, {
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) > re || Math.abs(P) > re) && (N.current = null);
7477
+ }), R.target.setPointerCapture(R.pointerId)) : (Math.abs(j) > oe || Math.abs(P) > oe) && (N.current = null);
7478
7478
  }),
7479
7479
  onPointerUp: X(e.onPointerUp, (R) => {
7480
7480
  const j = C.current, P = R.target;
7481
7481
  if (P.hasPointerCapture(R.pointerId) && P.releasePointerCapture(R.pointerId), C.current = null, N.current = null, j) {
7482
- const U = R.currentTarget, O = { originalEvent: R, delta: j };
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
7485
7485
  }) : Mt(
@@ -7489,7 +7489,7 @@ var [of, af] = qa(dn, {
7489
7489
  {
7490
7490
  discrete: !0
7491
7491
  }
7492
- ), U.addEventListener("click", (L) => L.preventDefault(), {
7492
+ ), H.addEventListener("click", ($) => $.preventDefault(), {
7493
7493
  once: !0
7494
7494
  });
7495
7495
  }
@@ -7586,7 +7586,7 @@ var Qr = (e, t, n = 0) => {
7586
7586
  };
7587
7587
  function uf(e = () => {
7588
7588
  }) {
7589
- const t = fe(e);
7589
+ const t = me(e);
7590
7590
  De(() => {
7591
7591
  let n = 0, r = 0;
7592
7592
  return n = window.requestAnimationFrame(() => r = window.requestAnimationFrame(t)), () => {
@@ -7764,7 +7764,7 @@ function Cf() {
7764
7764
  ] });
7765
7765
  }
7766
7766
  function Ef({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: r }) {
7767
- const [o, a] = me(""), s = Ts(), { toast: c } = ys();
7767
+ const [o, a] = ge(""), s = Ts(), { toast: c } = ys();
7768
7768
  He(() => {
7769
7769
  const m = new URLSearchParams(s.search).get("q");
7770
7770
  m && a(m);
@@ -7810,7 +7810,7 @@ function Ef({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholde
7810
7810
  )
7811
7811
  ] }) }) }),
7812
7812
  n || /* @__PURE__ */ i(te, {}),
7813
- e && /* @__PURE__ */ i("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ x(ae, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
7813
+ e && /* @__PURE__ */ i("div", { className: "flex items-center gap-4", children: /* @__PURE__ */ x(ie, { variant: "ghost", size: "icon", className: "h-9 w-9", onClick: e, children: [
7814
7814
  /* @__PURE__ */ i(ni, { className: "h-4 w-4 text-sidebar-foreground" }),
7815
7815
  /* @__PURE__ */ i("span", { className: "sr-only", children: "Sign out" })
7816
7816
  ] }) })
@@ -7848,13 +7848,13 @@ const Sf = bt(
7848
7848
  size: "default"
7849
7849
  }
7850
7850
  }
7851
- ), Se = l.forwardRef(
7851
+ ), Te = 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
- Se.displayName = "Badge";
7857
+ Te.displayName = "Badge";
7858
7858
  const Bn = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
7859
7859
  "div",
7860
7860
  {
@@ -7906,7 +7906,7 @@ 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] = me(null), [o, a] = me(!1);
7909
+ const [n, r] = ge(null), [o, a] = ge(!1);
7910
7910
  return He(() => {
7911
7911
  if (!e) return;
7912
7912
  const c = `https://purecatamphetamine.github.io/country-flag-icons/3x2/${e.toUpperCase()}.svg`;
@@ -8048,7 +8048,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
8048
8048
  /* @__PURE__ */ x("div", { className: "absolute top-2 right-12 flex gap-1", children: [
8049
8049
  /* @__PURE__ */ i(ut, { children: /* @__PURE__ */ x(ft, { children: [
8050
8050
  /* @__PURE__ */ i(pt, { asChild: !0, children: /* @__PURE__ */ i(
8051
- ae,
8051
+ ie,
8052
8052
  {
8053
8053
  variant: "secondary",
8054
8054
  size: "icon",
@@ -8060,7 +8060,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
8060
8060
  ] }) }),
8061
8061
  /* @__PURE__ */ i(ut, { children: /* @__PURE__ */ x(ft, { children: [
8062
8062
  /* @__PURE__ */ i(pt, { asChild: !0, children: /* @__PURE__ */ i(
8063
- ae,
8063
+ ie,
8064
8064
  {
8065
8065
  variant: "secondary",
8066
8066
  size: "icon",
@@ -8087,7 +8087,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
8087
8087
  ),
8088
8088
  s && /* @__PURE__ */ i(ut, { children: /* @__PURE__ */ x(ft, { children: [
8089
8089
  /* @__PURE__ */ i(pt, { asChild: !0, children: /* @__PURE__ */ i(
8090
- ae,
8090
+ ie,
8091
8091
  {
8092
8092
  variant: "secondary",
8093
8093
  size: "icon",
@@ -8101,7 +8101,7 @@ function Df({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
8101
8101
  ] })
8102
8102
  ] });
8103
8103
  }
8104
- function _f({ inventory: e }) {
8104
+ function If({ inventory: e }) {
8105
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(
8106
8106
  (f) => !t.includes(f.WarehouseId || "") && !n.includes(f.WarehouseId || "")
8107
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;
@@ -8202,38 +8202,38 @@ function Zf({
8202
8202
  syncToShopifyAction: c,
8203
8203
  isSyncToShopifyActionLoading: u = !1
8204
8204
  }) {
8205
- var R, j, P, U, O, L, q, Z, re;
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);
8205
+ var P, H, O, $, q, Z, oe, ee, ne;
8206
+ const [d, p] = ge(1), [m, v] = ge(null), [g, y] = ge(0), [f, h] = ge(!1), b = ((P = e == null ? void 0 : e.Distribution) == null ? void 0 : P.RegularPrice) || 0, w = ((H = e == null ? void 0 : e.Distribution) == null ? void 0 : H.Price) || 0, [N, C] = ge(null), [S, E] = ge(!1);
8207
8207
  if (He(() => {
8208
- const $ = async () => {
8208
+ const _ = async () => {
8209
8209
  if (e != null && e.ManufacturerId) {
8210
8210
  E(!0);
8211
8211
  try {
8212
- const G = await fetch(
8212
+ const K = await fetch(
8213
8213
  `https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
8214
8214
  );
8215
- if (G.ok) {
8216
- const J = await G.blob();
8217
- C(URL.createObjectURL(J));
8215
+ if (K.ok) {
8216
+ const ae = await K.blob();
8217
+ C(URL.createObjectURL(ae));
8218
8218
  }
8219
- } catch (G) {
8220
- console.error("Failed to load logo:", G);
8219
+ } catch (K) {
8220
+ console.error("Failed to load logo:", K);
8221
8221
  } finally {
8222
8222
  E(!1);
8223
8223
  }
8224
8224
  }
8225
8225
  };
8226
- e != null && e.ManufacturerId && $();
8226
+ e != null && e.ManufacturerId && _();
8227
8227
  }, [e == null ? void 0 : e.ManufacturerId]), He(() => {
8228
- var $;
8228
+ var _;
8229
8229
  if (e && r) {
8230
- const G = ($ = e.Opportunities) == null ? void 0 : $.find((J) => J.BidNumber == r);
8231
- G && v(G);
8230
+ const K = (_ = e.Opportunities) == null ? void 0 : _.find((ae) => ae.BidNumber == r);
8231
+ K && v(K);
8232
8232
  }
8233
8233
  }, [e, r]), He(() => {
8234
8234
  if (!e) return;
8235
- const $ = m != null && m.Price ? m.Price : w;
8236
- y(b > 0 ? Math.round((b - $) / b * 100) : 0);
8235
+ const _ = m != null && m.Price ? m.Price : w;
8236
+ y(b > 0 ? Math.round((b - _) / b * 100) : 0);
8237
8237
  }, [e, m, w, b]), He(() => {
8238
8238
  s || p(1);
8239
8239
  }, [s]), !e)
@@ -8289,18 +8289,35 @@ function Zf({
8289
8289
  ] })
8290
8290
  ] })
8291
8291
  ] }) });
8292
- const T = (e == null ? void 0 : e.Opportunities) || [], z = T.length > 0, _ = () => {
8292
+ const T = (e == null ? void 0 : e.Opportunities) || [], z = T.length > 0, I = () => {
8293
+ if (d == null) {
8294
+ p(1);
8295
+ return;
8296
+ }
8293
8297
  d > 1 && p(d - 1);
8294
8298
  }, W = () => {
8299
+ if (d == null) {
8300
+ p(1);
8301
+ return;
8302
+ }
8295
8303
  p(d + 1);
8296
- }, H = ((U = (P = e.Distribution) == null ? void 0 : P.Inventory) == null ? void 0 : U.reduce(($, G) => $ + (G.AvailableQuantity || 0), 0)) || 0, B = ($) => {
8304
+ }, U = (_) => {
8305
+ const K = parseInt(_.target.value, 10);
8306
+ if (!isNaN(K) && K > 0) {
8307
+ p(K);
8308
+ return;
8309
+ }
8310
+ p(void 0);
8311
+ }, B = () => {
8312
+ (d == null || d < 1) && p(1);
8313
+ }, D = (($ = (O = e.Distribution) == null ? void 0 : O.Inventory) == null ? void 0 : $.reduce((_, K) => _ + (K.AvailableQuantity || 0), 0)) || 0, R = (_) => {
8297
8314
  try {
8298
- return new Date($).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
8299
- } catch (G) {
8300
- return console.error(G), $.split("T")[0] || "N/A";
8315
+ return new Date(_).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
8316
+ } catch (K) {
8317
+ return console.error(K), _.split("T")[0] || "N/A";
8301
8318
  }
8302
- }, D = () => {
8303
- a && a({ quantity: d, bidNumber: (m == null ? void 0 : m.BidNumber) ?? null });
8319
+ }, j = () => {
8320
+ a && a({ quantity: d ?? 1, bidNumber: (m == null ? void 0 : m.BidNumber) ?? null });
8304
8321
  };
8305
8322
  return /* @__PURE__ */ i(Bn, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ x(jn, { className: "p-6", children: [
8306
8323
  /* @__PURE__ */ x("div", { className: "flex justify-between items-start mb-3", children: [
@@ -8318,7 +8335,7 @@ function Zf({
8318
8335
  /* @__PURE__ */ x("div", { className: "flex-1", children: [
8319
8336
  /* @__PURE__ */ x("div", { className: "flex flex-wrap gap-2 mb-4", children: [
8320
8337
  e.State && /* @__PURE__ */ x(
8321
- Se,
8338
+ Te,
8322
8339
  {
8323
8340
  variant: "outline",
8324
8341
  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"}`,
@@ -8330,7 +8347,7 @@ function Zf({
8330
8347
  }
8331
8348
  ),
8332
8349
  /* @__PURE__ */ x(
8333
- Se,
8350
+ Te,
8334
8351
  {
8335
8352
  variant: "outline",
8336
8353
  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"}`,
@@ -8341,24 +8358,24 @@ function Zf({
8341
8358
  ]
8342
8359
  }
8343
8360
  ),
8344
- e.TransparencyCode && /* @__PURE__ */ x(Se, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
8361
+ e.TransparencyCode && /* @__PURE__ */ x(Te, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
8345
8362
  /* @__PURE__ */ i(Ks, { size: "12", className: "mr-1.5" }),
8346
8363
  " Transparency Code"
8347
8364
  ] }),
8348
8365
  /* @__PURE__ */ x(
8349
- Se,
8366
+ Te,
8350
8367
  {
8351
8368
  variant: "outline",
8352
8369
  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"}`,
8353
8370
  children: [
8354
8371
  /* @__PURE__ */ i(bi, { size: "12", className: "mr-1.5" }),
8355
8372
  " ",
8356
- (O = e.ManufacturerCategory) != null && O.QualificationRequired ? e.AvailableToBuy ? "Qualified" : "Not Qualified" : "No Qualification Required"
8373
+ (q = e.ManufacturerCategory) != null && q.QualificationRequired ? e.AvailableToBuy ? "Qualified" : "Not Qualified" : "No Qualification Required"
8357
8374
  ]
8358
8375
  }
8359
8376
  ),
8360
8377
  e.ManufacturerId && /* @__PURE__ */ x(
8361
- Se,
8378
+ Te,
8362
8379
  {
8363
8380
  variant: "outline",
8364
8381
  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"}`,
@@ -8370,7 +8387,7 @@ function Zf({
8370
8387
  }
8371
8388
  ),
8372
8389
  /* @__PURE__ */ x(
8373
- Se,
8390
+ Te,
8374
8391
  {
8375
8392
  variant: "outline",
8376
8393
  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"}`,
@@ -8417,60 +8434,62 @@ function Zf({
8417
8434
  /* @__PURE__ */ i("div", { className: "flex flex-col", children: /* @__PURE__ */ i(Df, { randmarSKU: e.RandmarSKU || "", alt: e.RandmarTitle || "" }) })
8418
8435
  ] }),
8419
8436
  /* @__PURE__ */ x("div", { className: "flex gap-6 mt-4", children: [
8420
- /* @__PURE__ */ i("div", { className: "flex flex-1", children: e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
8421
- /* @__PURE__ */ i("div", { className: "text-sm text-muted-foreground flex items-center", children: "Opportunities" }),
8422
- z ? /* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto pr-1 mt-1", children: T.map(($, G) => {
8423
- var J;
8437
+ /* @__PURE__ */ i("div", { className: "flex flex-1", children: z && e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
8438
+ /* @__PURE__ */ i("div", { className: "flex items-center", children: "You have " + T.length + (T.length > 1 ? " opportunities" : " opportunity") + " for this product:" }),
8439
+ /* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto p-2 mt-1", children: T.map((_, K) => {
8440
+ var ae;
8424
8441
  return /* @__PURE__ */ x(
8425
8442
  "div",
8426
8443
  {
8427
- className: `flex justify-between items-center border border-gray-100 rounded transition-colors py-2 px-4
8428
- ${$.BidNumber == (m == null ? void 0 : m.BidNumber) ? "bg-primary/10 cursor-pointer" : $.Active ? "hover:bg-primary/5 cursor-pointer" : ""}
8429
- `,
8430
- onClick: () => v(
8431
- $.BidNumber != (m == null ? void 0 : m.BidNumber) ? $ : null
8432
- ),
8444
+ 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" : _.Active ? "hover:bg-purple-200 cursor-pointer" : "!bg-neutral-50"}
8446
+ `,
8447
+ onClick: () => {
8448
+ _.Active === !0 && v(
8449
+ _.BidNumber != (m == null ? void 0 : m.BidNumber) ? _ : null
8450
+ );
8451
+ },
8433
8452
  children: [
8434
8453
  /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
8435
- /* @__PURE__ */ i("span", { className: "font-medium text-sm", children: $.Opportunity }),
8436
- /* @__PURE__ */ i("span", { className: "text-xs text-gray-500", children: $.BidNumber })
8454
+ /* @__PURE__ */ i("span", { className: "font-medium text-sm", children: _.Opportunity }),
8455
+ /* @__PURE__ */ i("span", { className: "text-xs text-neutral-900", children: _.BidNumber })
8437
8456
  ] }) }),
8438
8457
  /* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
8439
8458
  /* @__PURE__ */ x("span", { className: "font-semibold", children: [
8440
8459
  "$",
8441
- (J = $.Price) == null ? void 0 : J.toFixed(2)
8460
+ (ae = _.Price) == null ? void 0 : ae.toFixed(2)
8442
8461
  ] }),
8443
- $.Rebate && $.Rebate > 0 && /* @__PURE__ */ x("span", { className: "text-xs text-green-600", children: [
8462
+ _.Rebate && _.Rebate > 0 && /* @__PURE__ */ x("span", { className: "text-xs text-green-600", children: [
8444
8463
  "Rebate: $",
8445
- $.Rebate.toFixed(2)
8464
+ _.Rebate.toFixed(2)
8446
8465
  ] }),
8447
- $.EndDate && /* @__PURE__ */ x("span", { className: "text-xs text-gray-500", children: [
8466
+ _.EndDate && /* @__PURE__ */ x("span", { className: "text-xs text-neutral-600", children: [
8448
8467
  "Ends: ",
8449
- B($.EndDate)
8468
+ R(_.EndDate)
8450
8469
  ] }),
8451
- !$.Active && /* @__PURE__ */ i(Se, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
8470
+ !_.Active && /* @__PURE__ */ i(Te, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
8452
8471
  ] })
8453
8472
  ]
8454
8473
  },
8455
- G
8474
+ K
8456
8475
  );
8457
- }) }) : /* @__PURE__ */ i("div", { className: "w-full flex flex-col items-start justify-center py-2", children: /* @__PURE__ */ i("p", { className: "font-medium", children: "No opportunities available" }) })
8476
+ }) })
8458
8477
  ] }) }),
8459
8478
  /* @__PURE__ */ x("div", { className: "flex flex-col items-center", children: [
8460
- o && /* @__PURE__ */ x(ae, { variant: "secondary", onClick: o, children: [
8479
+ o && /* @__PURE__ */ x(ie, { variant: "secondary", onClick: o, children: [
8461
8480
  /* @__PURE__ */ i(Js, { className: "mr-2" }),
8462
8481
  "View Product"
8463
8482
  ] }),
8464
- ((L = e.Distribution) == null ? void 0 : L.Inventory) && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ x(Zt, { open: f, onOpenChange: h, children: [
8483
+ ((Z = e.Distribution) == null ? void 0 : Z.Inventory) && /* @__PURE__ */ i("div", { className: "mt-4", children: /* @__PURE__ */ x(Zt, { open: f, onOpenChange: h, children: [
8465
8484
  /* @__PURE__ */ i(Jo, { asChild: !0, children: /* @__PURE__ */ x(
8466
- ae,
8485
+ ie,
8467
8486
  {
8468
8487
  variant: "ghost",
8469
- className: `flex items-center text-sm ${H > 0 ? "text-green-700" : "text-red-700"}`,
8488
+ className: `flex items-center text-sm ${D > 0 ? "text-green-700" : "text-red-700"}`,
8470
8489
  children: [
8471
8490
  /* @__PURE__ */ i(xr, { size: "16", className: "mr-2" }),
8472
- H > 0 ? /* @__PURE__ */ x(te, { children: [
8473
- H,
8491
+ D > 0 ? /* @__PURE__ */ x(te, { children: [
8492
+ D,
8474
8493
  " in stock"
8475
8494
  ] }) : /* @__PURE__ */ i(te, { children: "Out of stock" })
8476
8495
  ]
@@ -8481,7 +8500,7 @@ function Zf({
8481
8500
  /* @__PURE__ */ i(xr, { className: "mr-2", size: 18 }),
8482
8501
  "Inventory Information"
8483
8502
  ] }) }),
8484
- /* @__PURE__ */ i(_f, { inventory: e.Distribution.Inventory })
8503
+ /* @__PURE__ */ i(If, { inventory: e.Distribution.Inventory })
8485
8504
  ] })
8486
8505
  ] }) })
8487
8506
  ] })
@@ -8491,7 +8510,7 @@ function Zf({
8491
8510
  /* @__PURE__ */ x("div", { className: "flex items-center flex-wrap", children: [
8492
8511
  /* @__PURE__ */ x("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
8493
8512
  /* @__PURE__ */ i("span", { children: "$" }),
8494
- m ? (Z = (q = e.Opportunities) == null ? void 0 : q.find(($) => $.BidNumber == m.BidNumber)) == null ? void 0 : Z.Price : w.toFixed(2),
8513
+ m ? (ee = (oe = e.Opportunities) == null ? void 0 : oe.find((_) => _.BidNumber == m.BidNumber)) == null ? void 0 : ee.Price : w.toFixed(2),
8495
8514
  /* @__PURE__ */ i("span", { children: " CAD" })
8496
8515
  ] }),
8497
8516
  g > 0 && /* @__PURE__ */ x("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
@@ -8499,12 +8518,12 @@ function Zf({
8499
8518
  b.toFixed(2)
8500
8519
  ] })
8501
8520
  ] }),
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: [
8521
+ g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(Te, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
8503
8522
  /* @__PURE__ */ x("span", { children: [
8504
8523
  g,
8505
8524
  "% OFF"
8506
8525
  ] }),
8507
- ((re = e.InstantRebate) == null ? void 0 : re.EndDate) && /* @__PURE__ */ x(te, { children: [
8526
+ ((ne = e.InstantRebate) == null ? void 0 : ne.EndDate) && /* @__PURE__ */ x(te, { children: [
8508
8527
  /* @__PURE__ */ i("span", { className: "mx-1.5", children: "●" }),
8509
8528
  " Ends ",
8510
8529
  e.InstantRebate.EndDate.split("T")[0]
@@ -8519,25 +8538,29 @@ function Zf({
8519
8538
  /* @__PURE__ */ x("div", { className: "flex flex-shrink-0 gap-2 ml-4", children: [
8520
8539
  typeof t < "u" && t && /* @__PURE__ */ x("div", { className: "flex items-center border rounded-md", children: [
8521
8540
  /* @__PURE__ */ i(
8522
- ae,
8541
+ ie,
8523
8542
  {
8524
8543
  variant: "ghost",
8525
8544
  size: "icon",
8526
8545
  className: "rounded-r-none",
8527
- onClick: _,
8546
+ onClick: I,
8528
8547
  disabled: typeof d < "u" && (d <= 1 || !e.AvailableToBuy || s || !a),
8529
8548
  children: "-"
8530
8549
  }
8531
8550
  ),
8532
8551
  /* @__PURE__ */ i(
8533
- "div",
8552
+ "input",
8534
8553
  {
8535
- className: `px-4 ${!e.AvailableToBuy || s || !a ? "text-gray-400" : ""}`,
8536
- children: d
8554
+ value: d,
8555
+ onChange: U,
8556
+ onBlur: B,
8557
+ onClick: (_) => _.currentTarget.select(),
8558
+ className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || s || !a ? "text-gray-400" : ""}`,
8559
+ disabled: !e.AvailableToBuy || s || !a
8537
8560
  }
8538
8561
  ),
8539
8562
  /* @__PURE__ */ i(
8540
- ae,
8563
+ ie,
8541
8564
  {
8542
8565
  variant: "ghost",
8543
8566
  size: "icon",
@@ -8549,10 +8572,10 @@ function Zf({
8549
8572
  )
8550
8573
  ] }),
8551
8574
  typeof t < "u" && t && /* @__PURE__ */ i(
8552
- ae,
8575
+ ie,
8553
8576
  {
8554
8577
  className: "gap-2 whitespace-nowrap",
8555
- onClick: D,
8578
+ onClick: j,
8556
8579
  disabled: !e.AvailableToBuy || s || !a,
8557
8580
  children: s ? /* @__PURE__ */ x(te, { children: [
8558
8581
  /* @__PURE__ */ i(yr, { className: "h-4 w-4 animate-spin" }),
@@ -8564,7 +8587,7 @@ function Zf({
8564
8587
  }
8565
8588
  ),
8566
8589
  n && /* @__PURE__ */ i(
8567
- ae,
8590
+ ie,
8568
8591
  {
8569
8592
  className: "gap-2 whitespace-nowrap bg-green-600 hover:bg-green-700",
8570
8593
  onClick: c,
@@ -8584,8 +8607,8 @@ function Zf({
8584
8607
  }
8585
8608
  export {
8586
8609
  Yf as AvatarFooter,
8587
- Se as Badge,
8588
- ae as Button,
8610
+ Te as Badge,
8611
+ ie as Button,
8589
8612
  Bn as Card,
8590
8613
  jn as CardContent,
8591
8614
  Pf as CardDescription,
@@ -8613,7 +8636,7 @@ export {
8613
8636
  Mf as Navbar,
8614
8637
  Zf as ProductCard,
8615
8638
  Df as ProductImage,
8616
- Ia as Separator,
8639
+ _a as Separator,
8617
8640
  bu as Sheet,
8618
8641
  Kf as SheetClose,
8619
8642
  $a as SheetContent,
@@ -8633,7 +8656,7 @@ export {
8633
8656
  zu as SidebarGroupLabel,
8634
8657
  Va as SidebarHeader,
8635
8658
  Lu as SidebarInput,
8636
- Iu as SidebarInset,
8659
+ _u as SidebarInset,
8637
8660
  Ga as SidebarMenu,
8638
8661
  Vu as SidebarMenuAction,
8639
8662
  Hu as SidebarMenuBadge,
@@ -8644,7 +8667,7 @@ export {
8644
8667
  Yu as SidebarMenuSubButton,
8645
8668
  Ku as SidebarMenuSubItem,
8646
8669
  Wa as SidebarProvider,
8647
- _u as SidebarRail,
8670
+ Iu as SidebarRail,
8648
8671
  $u as SidebarSeparator,
8649
8672
  ja as SidebarTrigger,
8650
8673
  Y as Skeleton,