randmarcomps 1.65.0 → 1.66.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 Te, useLayoutEffect as Es, useEffect as dt } from "react";
3
+ import Be, { forwardRef as Jr, createElement as Tn, useState as Se, useLayoutEffect as Es, useEffect as Ze } from "react";
4
4
  import * as Vn from "react-dom";
5
5
  import Ss from "react-dom";
6
6
  import { useLocation as Ts, useParams as Rs, Link as Ps } from "react-router-dom";
@@ -69,7 +69,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
69
69
  re(null), G(null);
70
70
  return;
71
71
  }
72
- let K = I.selectionStart, ce = I.selectionEnd, Ct = I.selectionDirection, pe = I.maxLength, Fe = I.value, Ee = P.current.prev, Ae = -1, ke = -1, ze;
72
+ let K = I.selectionStart, ce = I.selectionEnd, Ct = I.selectionDirection, pe = I.maxLength, Fe = I.value, Ce = P.current.prev, Ae = -1, ke = -1, ze;
73
73
  if (Fe.length !== 0 && K !== null && ce !== null) {
74
74
  let xs = K === ce, Ns = K === Fe.length && Fe.length < pe;
75
75
  if (xs && !Ns) {
@@ -78,9 +78,9 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
78
78
  else if (We === pe) Ae = We - 1, ke = We, ze = "backward";
79
79
  else if (pe > 1 && Fe.length > 1) {
80
80
  let un = 0;
81
- if (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 (Ce[0] !== null && Ce[1] !== null) {
82
+ ze = We < Ce[1] ? "backward" : "forward";
83
+ let Cs = Ce[0] === Ce[1] && Ce[0] < pe;
84
84
  ze === "backward" && !Cs && (un = -1);
85
85
  }
86
86
  Ae = un + We, ke = un + We + 1;
@@ -95,7 +95,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
95
95
  let K = document.createElement("style");
96
96
  if (K.id = "input-otp-style", document.head.appendChild(K), K.sheet) {
97
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
- ct(K.sheet, "[data-input-otp]::selection { background: transparent !important; color: transparent !important; }"), ct(K.sheet, `[data-input-otp]:autofill { ${ce} }`), ct(K.sheet, `[data-input-otp]:-webkit-autofill { ${ce} }`), ct(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; } }"), ct(K.sheet, "[data-input-otp] + * { pointer-events: all !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; }");
99
99
  }
100
100
  }
101
101
  let ie = () => {
@@ -107,7 +107,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
107
107
  document.removeEventListener("selectionchange", oe, { capture: !0 }), le.disconnect();
108
108
  };
109
109
  }, []);
110
- let [U, O] = l.useState(!1), [$, q] = l.useState(!1), [J, re] = l.useState(null), [F, G] = l.useState(null);
110
+ let [U, O] = l.useState(!1), [$, q] = l.useState(!1), [Z, re] = l.useState(null), [F, G] = l.useState(null);
111
111
  l.useEffect(() => {
112
112
  Is(() => {
113
113
  var I, z, oe, ie;
@@ -118,21 +118,21 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
118
118
  }, [_, $]), l.useEffect(() => {
119
119
  B !== void 0 && _ !== B && B.length < a && _.length === a && (p == null || p(_));
120
120
  }, [a, p, B, _]);
121
- let Z = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: $ }), be = l.useCallback((I) => {
121
+ let J = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: $ }), Pe = l.useCallback((I) => {
122
122
  let z = I.currentTarget.value.slice(0, a);
123
123
  if (z.length > 0 && j && !j.test(z)) {
124
124
  I.preventDefault();
125
125
  return;
126
126
  }
127
127
  typeof B == "string" && z.length < B.length && document.dispatchEvent(new Event("selectionchange")), L(z);
128
- }, [a, L, B, j]), ye = l.useCallback(() => {
128
+ }, [a, L, B, j]), be = l.useCallback(() => {
129
129
  var I;
130
130
  if (D.current) {
131
131
  let z = Math.min(D.current.value.length, a - 1), oe = D.current.value.length;
132
132
  (I = D.current) == null || I.setSelectionRange(z, oe), re(z), G(oe);
133
133
  }
134
134
  q(!0);
135
- }, [a]), it = l.useCallback((I) => {
135
+ }, [a]), lt = l.useCallback((I) => {
136
136
  var z, oe;
137
137
  let ie = D.current;
138
138
  if (!v && (!V.current.isIOS || !I.clipboardData || !ie)) return;
@@ -141,12 +141,12 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
141
141
  let ce = (z = D.current) == null ? void 0 : z.selectionStart, Ct = (oe = D.current) == null ? void 0 : oe.selectionEnd, pe = (ce !== Ct ? _.slice(0, ce) + K + _.slice(Ct) : _.slice(0, ce) + K + _.slice(ce)).slice(0, a);
142
142
  if (pe.length > 0 && j && !j.test(pe)) return;
143
143
  ie.value = pe, L(pe);
144
- let Fe = Math.min(pe.length, a - 1), Ee = pe.length;
145
- ie.setSelectionRange(Fe, Ee), re(Fe), G(Ee);
146
- }, [a, L, j, _]), xt = l.useMemo(() => ({ position: "relative", cursor: b.disabled ? "default" : "text", userSelect: "none", WebkitUserSelect: "none", pointerEvents: "none" }), [b.disabled]), lt = l.useMemo(() => ({ position: "absolute", inset: 0, width: Z.willPushPWMBadge ? `calc(100% + ${Z.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: Z.willPushPWMBadge ? `inset(0 ${Z.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" }), [Z.PWM_BADGE_SPACE_WIDTH, Z.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": J, "data-input-otp-mse": F, inputMode: d, pattern: j == null ? void 0 : j.source, "aria-placeholder": u, style: lt, maxLength: a, value: _, ref: D, onPaste: (I) => {
144
+ let Fe = Math.min(pe.length, a - 1), Ce = pe.length;
145
+ ie.setSelectionRange(Fe, Ce), re(Fe), G(Ce);
146
+ }, [a, L, j, _]), 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": F, inputMode: d, pattern: j == null ? void 0 : j.source, "aria-placeholder": u, style: ct, maxLength: a, value: _, ref: D, onPaste: (I) => {
147
147
  var z;
148
- it(I), (z = b.onPaste) == null || z.call(b, I);
149
- }, onChange: be, onMouseOver: (I) => {
148
+ lt(I), (z = b.onPaste) == null || z.call(b, I);
149
+ }, onChange: Pe, onMouseOver: (I) => {
150
150
  var z;
151
151
  O(!0), (z = b.onMouseOver) == null || z.call(b, I);
152
152
  }, onMouseLeave: (I) => {
@@ -154,19 +154,19 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
154
154
  O(!1), (z = b.onMouseLeave) == null || z.call(b, I);
155
155
  }, onFocus: (I) => {
156
156
  var z;
157
- ye(), (z = b.onFocus) == null || z.call(b, I);
157
+ be(), (z = b.onFocus) == null || z.call(b, I);
158
158
  }, onBlur: (I) => {
159
159
  var z;
160
160
  q(!1), (z = b.onBlur) == null || z.call(b, I);
161
- } })), [be, ye, it, d, lt, a, F, J, b, j == null ? void 0 : j.source, _]), Ke = l.useMemo(() => ({ slots: Array.from({ length: a }).map((I, z) => {
161
+ } })), [Pe, be, lt, d, ct, a, F, Z, b, j == null ? void 0 : j.source, _]), Ke = l.useMemo(() => ({ slots: Array.from({ length: a }).map((I, z) => {
162
162
  var oe;
163
- let ie = $ && J !== null && F !== null && (J === F && z === J || z >= J && z < F), le = _[z] !== void 0 ? _[z] : null, K = _[0] !== void 0 ? null : (oe = u == null ? void 0 : u[z]) != null ? oe : null;
163
+ let ie = $ && Z !== null && F !== null && (Z === F && z === Z || z >= Z && z < F), le = _[z] !== void 0 ? _[z] : null, K = _[0] !== void 0 ? null : (oe = u == null ? void 0 : u[z]) != null ? oe : null;
164
164
  return { char: le, placeholderChar: K, isActive: ie, hasFakeCaret: ie && le === null };
165
- }), isFocused: $, isHovering: !b.disabled && U }), [$, U, a, F, J, b.disabled, _]), $e = l.useMemo(() => f ? f(Ke) : l.createElement(ro.Provider, { value: Ke }, h), [h, Ke, f]);
165
+ }), isFocused: $, isHovering: !b.disabled && U }), [$, U, a, F, Z, b.disabled, _]), $e = l.useMemo(() => f ? f(Ke) : l.createElement(ro.Provider, { value: Ke }, h), [h, Ke, 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";
169
- function ct(e, t) {
169
+ function dt(e, t) {
170
170
  try {
171
171
  e.insertRule(t);
172
172
  } catch {
@@ -780,10 +780,10 @@ const ne = (e) => {
780
780
  // For example, `hsl(0 0% 0%)` would be classified as a length without this check.
781
781
  // I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
782
782
  ji.test(e) && !Vi.test(e)
783
- ), Gn = () => !1, Yi = (e) => Hi.test(e), qi = (e) => Ui.test(e), Xi = (e) => !A(e) && !k(e), Qi = (e) => rt(e, go, Gn), A = (e) => fo.test(e), Ve = (e) => rt(e, vo, Ki), fn = (e) => rt(e, ll, H), Zi = (e) => rt(e, mo, Gn), Ji = (e) => rt(e, ho, qi), el = (e) => rt(e, Gn, Yi), k = (e) => po.test(e), Et = (e) => ot(e, vo), tl = (e) => ot(e, cl), nl = (e) => ot(e, mo), rl = (e) => ot(e, go), ol = (e) => ot(e, ho), al = (e) => ot(e, dl, !0), rt = (e, t, n) => {
783
+ ), Gn = () => !1, Yi = (e) => Hi.test(e), qi = (e) => Ui.test(e), Xi = (e) => !A(e) && !k(e), Qi = (e) => ot(e, go, Gn), A = (e) => fo.test(e), Ve = (e) => ot(e, vo, Ki), fn = (e) => ot(e, ll, H), Zi = (e) => ot(e, mo, Gn), Ji = (e) => ot(e, ho, qi), el = (e) => ot(e, Gn, Yi), k = (e) => po.test(e), Et = (e) => at(e, vo), tl = (e) => at(e, cl), nl = (e) => at(e, mo), rl = (e) => at(e, go), ol = (e) => at(e, ho), al = (e) => at(e, dl, !0), ot = (e, t, n) => {
784
784
  const r = fo.exec(e);
785
785
  return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
786
- }, ot = (e, t, n = !1) => {
786
+ }, at = (e, t, n = !1) => {
787
787
  const r = po.exec(e);
788
788
  return r ? r[1] ? t(r[1]) : n : !1;
789
789
  }, mo = (e) => e === "position", sl = /* @__PURE__ */ new Set(["image", "url"]), ho = (e) => sl.has(e), il = /* @__PURE__ */ new Set(["length", "size", "percentage"]), go = (e) => il.has(e), vo = (e) => e === "length", ll = (e) => e === "number", cl = (e) => e === "family-name", dl = (e) => e === "shadow", ul = () => {
@@ -797,14 +797,14 @@ const ne = (e) => {
797
797
  d,
798
798
  k,
799
799
  A
800
- ], $ = () => ["", H, Et, Ve], q = () => ["solid", "dashed", "dotted", "double"], J = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], re = () => [
800
+ ], $ = () => ["", H, 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 = () => [
801
801
  // Deprecated since Tailwind CSS v4.0.0
802
802
  "",
803
803
  "none",
804
804
  g,
805
805
  k,
806
806
  A
807
- ], F = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], G = () => ["none", H, k, A], Z = () => ["none", H, k, A], be = () => [H, k, A], ye = () => [Ye, "full", ...E()];
807
+ ], F = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], G = () => ["none", H, k, A], J = () => ["none", H, k, A], Pe = () => [H, k, A], be = () => [Ye, "full", ...E()];
808
808
  return {
809
809
  cacheSize: 500,
810
810
  theme: {
@@ -2234,14 +2234,14 @@ const ne = (e) => {
2234
2234
  * @see https://tailwindcss.com/docs/mix-blend-mode
2235
2235
  */
2236
2236
  "mix-blend": [{
2237
- "mix-blend": [...J(), "plus-darker", "plus-lighter"]
2237
+ "mix-blend": [...Z(), "plus-darker", "plus-lighter"]
2238
2238
  }],
2239
2239
  /**
2240
2240
  * Background Blend Mode
2241
2241
  * @see https://tailwindcss.com/docs/background-blend-mode
2242
2242
  */
2243
2243
  "bg-blend": [{
2244
- "bg-blend": J()
2244
+ "bg-blend": Z()
2245
2245
  }],
2246
2246
  // ---------------
2247
2247
  // --- Filters ---
@@ -2552,28 +2552,28 @@ const ne = (e) => {
2552
2552
  * @see https://tailwindcss.com/docs/scale
2553
2553
  */
2554
2554
  scale: [{
2555
- scale: Z()
2555
+ scale: J()
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": Z()
2562
+ "scale-x": J()
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": Z()
2569
+ "scale-y": J()
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": Z()
2576
+ "scale-z": J()
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: be()
2588
+ skew: Pe()
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": be()
2595
+ "skew-x": Pe()
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": be()
2602
+ "skew-y": Pe()
2603
2603
  }],
2604
2604
  /**
2605
2605
  * Transform
@@ -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: be()
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": be()
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": be()
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": be()
2652
2652
  }],
2653
2653
  /**
2654
2654
  * Translate None
@@ -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 ye = function() {
3610
+ return ye = 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
+ }, ye.apply(this, arguments);
3617
3617
  };
3618
3618
  function To(e, t) {
3619
3619
  var n = {};
@@ -3633,7 +3633,7 @@ function gn(e, t) {
3633
3633
  return typeof e == "function" ? e(t) : e && (e.current = t), e;
3634
3634
  }
3635
3635
  function Gl(e, t) {
3636
- var n = Te(function() {
3636
+ var n = Se(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 = ye({ 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, ye({}, 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 = ye(ye({}, 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), ye(ye({}, E), { ref: S })) : l.createElement(b, ye({}, E, { className: u, ref: S }), c)
3764
3764
  );
3765
3765
  });
3766
3766
  Gt.defaultProps = {
@@ -3836,14 +3836,14 @@ var rc = function() {
3836
3836
  right: t[2],
3837
3837
  gap: Math.max(0, r - n + t[2] - t[0])
3838
3838
  };
3839
- }, lc = Ao(), Ze = "data-scroll-locked", cc = function(e, t, n, r) {
3839
+ }, lc = Ao(), Je = "data-scroll-locked", cc = function(e, t, n, r) {
3840
3840
  var o = e.left, a = e.top, s = e.right, c = e.gap;
3841
3841
  return n === void 0 && (n = "margin"), `
3842
3842
  .`.concat(Hl, ` {
3843
3843
  overflow: hidden `).concat(r, `;
3844
3844
  padding-right: `).concat(c, "px ").concat(r, `;
3845
3845
  }
3846
- body[`).concat(Ze, `] {
3846
+ body[`).concat(Je, `] {
3847
3847
  overflow: hidden `).concat(r, `;
3848
3848
  overscroll-behavior: contain;
3849
3849
  `).concat([
@@ -3876,18 +3876,18 @@ var rc = function() {
3876
3876
  margin-right: 0 `).concat(r, `;
3877
3877
  }
3878
3878
 
3879
- body[`).concat(Ze, `] {
3879
+ body[`).concat(Je, `] {
3880
3880
  `).concat(Ul, ": ").concat(c, `px;
3881
3881
  }
3882
3882
  `);
3883
3883
  }, _r = function() {
3884
- var e = parseInt(document.body.getAttribute(Ze) || "0", 10);
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(Ze, (_r() + 1).toString()), function() {
3888
+ return document.body.setAttribute(Je, (_r() + 1).toString()), function() {
3889
3889
  var e = _r() - 1;
3890
- e <= 0 ? document.body.removeAttribute(Ze) : document.body.setAttribute(Ze, e.toString());
3890
+ e <= 0 ? document.body.removeAttribute(Je) : document.body.setAttribute(Je, e.toString());
3891
3891
  };
3892
3892
  }, []);
3893
3893
  }, uc = function(e) {
@@ -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, ye({}, e, { ref: t, sideCar: Ec }));
4075
4075
  });
4076
4076
  Do.classNames = Gt.classNames;
4077
4077
  var Sc = function(e) {
@@ -4531,7 +4531,7 @@ const zr = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e, Wr = lo, b
4531
4531
  }
4532
4532
  );
4533
4533
  ae.displayName = "Button";
4534
- const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt = Math.round, kt = Math.floor, xe = (e) => ({
4534
+ const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt = Math.round, kt = Math.floor, we = (e) => ({
4535
4535
  x: e,
4536
4536
  y: e
4537
4537
  }), zc = {
@@ -4546,13 +4546,13 @@ const Fc = ["top", "right", "bottom", "left"], _e = Math.min, de = Math.max, Wt
4546
4546
  function Dn(e, t, n) {
4547
4547
  return de(e, _e(t, n));
4548
4548
  }
4549
- function Re(e, t) {
4549
+ function Te(e, t) {
4550
4550
  return typeof e == "function" ? e(t) : e;
4551
4551
  }
4552
- function Pe(e) {
4552
+ function Re(e) {
4553
4553
  return e.split("-")[0];
4554
4554
  }
4555
- function at(e) {
4555
+ function st(e) {
4556
4556
  return e.split("-")[1];
4557
4557
  }
4558
4558
  function tr(e) {
@@ -4562,14 +4562,14 @@ function nr(e) {
4562
4562
  return e === "y" ? "height" : "width";
4563
4563
  }
4564
4564
  function Ie(e) {
4565
- return ["top", "bottom"].includes(Pe(e)) ? "y" : "x";
4565
+ return ["top", "bottom"].includes(Re(e)) ? "y" : "x";
4566
4566
  }
4567
4567
  function rr(e) {
4568
4568
  return tr(Ie(e));
4569
4569
  }
4570
4570
  function Bc(e, t, n) {
4571
4571
  n === void 0 && (n = !1);
4572
- const r = at(e), o = rr(e), a = nr(o);
4572
+ const r = st(e), o = rr(e), a = nr(o);
4573
4573
  let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
4574
4574
  return t.reference[a] > t.floating[a] && (s = Bt(s)), [s, Bt(s)];
4575
4575
  }
@@ -4594,8 +4594,8 @@ function Vc(e, t, n) {
4594
4594
  }
4595
4595
  }
4596
4596
  function Hc(e, t, n, r) {
4597
- const o = at(e);
4598
- let a = Vc(Pe(e), n === "start", r);
4597
+ const o = st(e);
4598
+ let a = Vc(Re(e), n === "start", r);
4599
4599
  return o && (a = a.map((s) => s + "-" + o), t && (a = a.concat(a.map(_n)))), a;
4600
4600
  }
4601
4601
  function Bt(e) {
@@ -4641,7 +4641,7 @@ function jr(e, t, n) {
4641
4641
  reference: r,
4642
4642
  floating: o
4643
4643
  } = e;
4644
- const a = Ie(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;
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;
4645
4645
  let g;
4646
4646
  switch (u) {
4647
4647
  case "top":
@@ -4674,7 +4674,7 @@ function jr(e, t, n) {
4674
4674
  y: r.y
4675
4675
  };
4676
4676
  }
4677
- switch (at(t)) {
4677
+ switch (st(t)) {
4678
4678
  case "start":
4679
4679
  g[s] -= v * (n && d ? -1 : 1);
4680
4680
  break;
@@ -4761,7 +4761,7 @@ async function ht(e, t) {
4761
4761
  elementContext: m = "floating",
4762
4762
  altBoundary: v = !1,
4763
4763
  padding: g = 0
4764
- } = Re(t, e), y = ra(g), h = c[v ? m === "floating" ? "reference" : "floating" : m], b = jt(await a.getClippingRect({
4764
+ } = Te(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
- } = Re(e, t) || {};
4808
+ } = Te(e, t) || {};
4809
4809
  if (d == null)
4810
4810
  return {};
4811
4811
  const m = ra(p), v = {
@@ -4814,7 +4814,7 @@ 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 W = C / 2 - S / 2, _ = T / 2 - f[y] / 2 - 1, B = _e(m[b], _), L = _e(m[w], _), j = B, D = T - f[y] - L, R = T / 2 - f[y] / 2 + W, V = Dn(j, R, D), P = !u.arrow && at(o) != null && R !== V && a.reference[y] / 2 - (R < j ? B : L) - f[y] / 2 < 0, U = P ? R < j ? R - j : R - D : 0;
4817
+ const W = C / 2 - S / 2, _ = T / 2 - f[y] / 2 - 1, B = _e(m[b], _), L = _e(m[w], _), j = B, D = T - f[y] - L, R = T / 2 - f[y] / 2 + W, V = Dn(j, R, D), P = !u.arrow && st(o) != null && R !== V && a.reference[y] / 2 - (R < j ? B : L) - f[y] / 2 < 0, U = P ? R < j ? R - j : R - D : 0;
4818
4818
  return {
4819
4819
  [g]: v[g] + U,
4820
4820
  data: {
@@ -4848,10 +4848,10 @@ const Kc = (e) => ({
4848
4848
  fallbackAxisSideDirection: y = "none",
4849
4849
  flipAlignment: f = !0,
4850
4850
  ...h
4851
- } = Re(e, t);
4851
+ } = Te(e, t);
4852
4852
  if ((n = a.arrow) != null && n.alignmentOffset)
4853
4853
  return {};
4854
- const b = Pe(o), w = Ie(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";
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";
4855
4855
  !v && E && S.push(...Hc(c, f, y, C));
4856
4856
  const T = [c, ...S], W = await ht(t, h), _ = [];
4857
4857
  let B = ((r = a.flip) == null ? void 0 : r.overflows) || [];
@@ -4928,7 +4928,7 @@ const qc = function(e) {
4928
4928
  } = t, {
4929
4929
  strategy: r = "referenceHidden",
4930
4930
  ...o
4931
- } = Re(e, t);
4931
+ } = Te(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 = Pe(n), c = at(n), u = Ie(n) === "y", d = ["left", "top"].includes(s) ? -1 : 1, p = a && u ? -1 : 1, m = Re(t, e);
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);
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
- } = Re(e, t), d = {
5037
+ } = Te(e, t), d = {
5038
5038
  x: n,
5039
5039
  y: r
5040
- }, p = await ht(t, u), m = Ie(Pe(o)), v = tr(m);
5040
+ }, p = await ht(t, u), m = Ie(Re(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
- } = Re(e, t), p = {
5082
+ } = Te(e, t), p = {
5083
5083
  x: n,
5084
5084
  y: r
5085
5085
  }, m = Ie(o), v = tr(m);
5086
5086
  let g = p[v], y = p[m];
5087
- const f = Re(c, t), h = typeof f == "number" ? {
5087
+ const f = Te(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(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);
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);
5102
5102
  y < S ? y = S : y > E && (y = E);
5103
5103
  }
5104
5104
  return {
@@ -5122,7 +5122,7 @@ const Qc = function(e) {
5122
5122
  apply: u = () => {
5123
5123
  },
5124
5124
  ...d
5125
- } = Re(e, t), p = await ht(t, d), m = Pe(o), v = at(o), g = Ie(o) === "y", {
5125
+ } = Te(e, t), p = await ht(t, d), m = Re(o), v = st(o), g = Ie(o) === "y", {
5126
5126
  width: y,
5127
5127
  height: f
5128
5128
  } = a.floating;
@@ -5151,14 +5151,14 @@ const Qc = function(e) {
5151
5151
  function en() {
5152
5152
  return typeof window < "u";
5153
5153
  }
5154
- function st(e) {
5154
+ function it(e) {
5155
5155
  return oa(e) ? (e.nodeName || "").toLowerCase() : "#document";
5156
5156
  }
5157
5157
  function ue(e) {
5158
5158
  var t;
5159
5159
  return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
5160
5160
  }
5161
- function Ce(e) {
5161
+ function Ne(e) {
5162
5162
  var t;
5163
5163
  return (t = (oa(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
5164
5164
  }
@@ -5168,7 +5168,7 @@ function oa(e) {
5168
5168
  function he(e) {
5169
5169
  return en() ? e instanceof Element || e instanceof ue(e).Element : !1;
5170
5170
  }
5171
- function Ne(e) {
5171
+ function xe(e) {
5172
5172
  return en() ? e instanceof HTMLElement || e instanceof ue(e).HTMLElement : !1;
5173
5173
  }
5174
5174
  function Ur(e) {
@@ -5184,7 +5184,7 @@ function yt(e) {
5184
5184
  return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && !["inline", "contents"].includes(o);
5185
5185
  }
5186
5186
  function td(e) {
5187
- return ["table", "td", "th"].includes(st(e));
5187
+ return ["table", "td", "th"].includes(it(e));
5188
5188
  }
5189
5189
  function tn(e) {
5190
5190
  return [":popover-open", ":modal"].some((t) => {
@@ -5201,7 +5201,7 @@ function or(e) {
5201
5201
  }
5202
5202
  function nd(e) {
5203
5203
  let t = Le(e);
5204
- for (; Ne(t) && !tt(t); ) {
5204
+ for (; xe(t) && !nt(t); ) {
5205
5205
  if (or(t))
5206
5206
  return t;
5207
5207
  if (tn(t))
@@ -5213,8 +5213,8 @@ function nd(e) {
5213
5213
  function ar() {
5214
5214
  return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
5215
5215
  }
5216
- function tt(e) {
5217
- return ["html", "body", "#document"].includes(st(e));
5216
+ function nt(e) {
5217
+ return ["html", "body", "#document"].includes(it(e));
5218
5218
  }
5219
5219
  function ge(e) {
5220
5220
  return ue(e).getComputedStyle(e);
@@ -5229,20 +5229,20 @@ function nn(e) {
5229
5229
  };
5230
5230
  }
5231
5231
  function Le(e) {
5232
- if (st(e) === "html")
5232
+ if (it(e) === "html")
5233
5233
  return e;
5234
5234
  const t = (
5235
5235
  // Step into the shadow DOM of the parent of a slotted node.
5236
5236
  e.assignedSlot || // DOM Element detected.
5237
5237
  e.parentNode || // ShadowRoot detected.
5238
5238
  Ur(e) && e.host || // Fallback.
5239
- Ce(e)
5239
+ Ne(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 tt(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 : xe(t) && yt(t) ? t : aa(t);
5246
5246
  }
5247
5247
  function gt(e, t, n) {
5248
5248
  var r;
@@ -5260,7 +5260,7 @@ function In(e) {
5260
5260
  function sa(e) {
5261
5261
  const t = ge(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 = xe(e), a = o ? e.offsetWidth : n, s = o ? e.offsetHeight : r, c = Wt(n) !== a || Wt(r) !== s;
5264
5264
  return c && (n = a, r = s), {
5265
5265
  width: n,
5266
5266
  height: r,
@@ -5270,10 +5270,10 @@ function sa(e) {
5270
5270
  function sr(e) {
5271
5271
  return he(e) ? e : e.contextElement;
5272
5272
  }
5273
- function Je(e) {
5273
+ function et(e) {
5274
5274
  const t = sr(e);
5275
- if (!Ne(t))
5276
- return xe(1);
5275
+ if (!xe(t))
5276
+ return we(1);
5277
5277
  const n = t.getBoundingClientRect(), {
5278
5278
  width: r,
5279
5279
  height: o,
@@ -5285,7 +5285,7 @@ function Je(e) {
5285
5285
  y: c
5286
5286
  };
5287
5287
  }
5288
- const rd = /* @__PURE__ */ xe(0);
5288
+ const rd = /* @__PURE__ */ we(0);
5289
5289
  function ia(e) {
5290
5290
  const t = ue(e);
5291
5291
  return !ar() || !t.visualViewport ? rd : {
@@ -5299,15 +5299,15 @@ function od(e, t, n) {
5299
5299
  function Ue(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 ? he(r) && (s = Je(r)) : s = Je(e));
5304
- const c = od(a, n, r) ? ia(a) : xe(0);
5302
+ let s = we(1);
5303
+ t && (r ? he(r) && (s = et(r)) : s = et(e));
5304
+ const c = od(a, n, r) ? ia(a) : we(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
5307
  const v = ue(a), g = r && he(r) ? ue(r) : r;
5308
5308
  let y = v, f = In(y);
5309
5309
  for (; f && r && g !== y; ) {
5310
- const h = Je(f), b = f.getBoundingClientRect(), w = ge(f), N = b.left + (f.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = b.top + (f.clientTop + parseFloat(w.paddingTop)) * h.y;
5310
+ const h = et(f), b = f.getBoundingClientRect(), w = ge(f), N = b.left + (f.clientLeft + parseFloat(w.paddingLeft)) * h.x, C = b.top + (f.clientTop + parseFloat(w.paddingTop)) * h.y;
5311
5311
  u *= h.x, d *= h.y, p *= h.x, m *= h.y, u += N, d += C, y = ue(f), f = In(y);
5312
5312
  }
5313
5313
  }
@@ -5320,7 +5320,7 @@ function Ue(e, t, n, r) {
5320
5320
  }
5321
5321
  function ir(e, t) {
5322
5322
  const n = nn(e).scrollLeft;
5323
- return t ? t.left + n : Ue(Ce(e)).left + n;
5323
+ return t ? t.left + n : Ue(Ne(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 = Ne(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) && ((st(r) !== "body" || yt(s)) && (u = nn(r)), Ne(r))) {
5349
+ }, d = we(1);
5350
+ const p = we(0), m = xe(r);
5351
+ if ((m || !m && !a) && ((it(r) !== "body" || yt(s)) && (u = nn(r)), xe(r))) {
5352
5352
  const g = Ue(r);
5353
- d = Je(r), p.x = g.x + r.clientLeft, p.y = g.y + r.clientTop;
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) : we(0);
5356
5356
  return {
5357
5357
  width: n.width * d.x,
5358
5358
  height: n.height * d.y,
@@ -5364,7 +5364,7 @@ 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 = Ne(e), n = nn(e), r = e.ownerDocument.body, o = de(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), a = de(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
5368
5368
  let s = -n.scrollLeft + ir(e);
5369
5369
  const c = -n.scrollTop;
5370
5370
  return ge(r).direction === "rtl" && (s += de(t.clientWidth, r.clientWidth) - o), {
@@ -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 = ue(e), r = Ne(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 = Ue(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = Ne(e) ? Je(e) : xe(1), s = e.clientWidth * a.x, c = e.clientHeight * a.y, u = o * a.x, d = r * a.y;
5393
+ const n = Ue(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, a = xe(e) ? et(e) : we(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,7 +5403,7 @@ 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));
5406
+ r = id(Ne(e));
5407
5407
  else if (he(t))
5408
5408
  r = cd(t, n);
5409
5409
  else {
@@ -5419,16 +5419,16 @@ function Gr(e, t, n) {
5419
5419
  }
5420
5420
  function ca(e, t) {
5421
5421
  const n = Le(e);
5422
- return n === t || !he(n) || tt(n) ? !1 : ge(n).position === "fixed" || ca(n, t);
5422
+ return n === t || !he(n) || nt(n) ? !1 : ge(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) => he(c) && st(c) !== "body"), o = null;
5428
+ let r = gt(e, [], !1).filter((c) => he(c) && it(c) !== "body"), o = null;
5429
5429
  const a = ge(e).position === "fixed";
5430
5430
  let s = a ? Le(e) : e;
5431
- for (; he(s) && !tt(s); ) {
5431
+ for (; he(s) && !nt(s); ) {
5432
5432
  const c = ge(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
  }
@@ -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 = Ue(e, !0, a, t);
5466
+ const r = xe(t), o = Ne(t), a = n === "fixed", s = Ue(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 = we(0);
5472
5472
  if (r || !r && !a)
5473
- if ((st(t) !== "body" || yt(o)) && (c = nn(t)), r) {
5473
+ if ((it(t) !== "body" || yt(o)) && (c = nn(t)), r) {
5474
5474
  const v = Ue(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) : we(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,
@@ -5486,20 +5486,20 @@ function wn(e) {
5486
5486
  return ge(e).position === "static";
5487
5487
  }
5488
5488
  function Kr(e, t) {
5489
- if (!Ne(e) || ge(e).position === "fixed")
5489
+ if (!xe(e) || ge(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 Ne(e) === n && (n = n.ownerDocument.body), n;
5495
5495
  }
5496
5496
  function da(e, t) {
5497
5497
  const n = ue(e);
5498
5498
  if (tn(e))
5499
5499
  return n;
5500
- if (!Ne(e)) {
5500
+ if (!xe(e)) {
5501
5501
  let o = Le(e);
5502
- for (; o && !tt(o); ) {
5502
+ for (; o && !nt(o); ) {
5503
5503
  if (he(o) && !wn(o))
5504
5504
  return o;
5505
5505
  o = Le(o);
@@ -5509,7 +5509,7 @@ function da(e, t) {
5509
5509
  let r = Kr(e, t);
5510
5510
  for (; r && td(r) && wn(r); )
5511
5511
  r = Kr(r, t);
5512
- return r && tt(r) && wn(r) && !or(r) ? n : r || nd(e) || n;
5512
+ return r && nt(r) && wn(r) && !or(r) ? n : r || nd(e) || n;
5513
5513
  }
5514
5514
  const md = async function(e) {
5515
5515
  const t = this.getOffsetParent || da, n = this.getDimensions, r = await n(e.floating);
@@ -5528,13 +5528,13 @@ function hd(e) {
5528
5528
  }
5529
5529
  const gd = {
5530
5530
  convertOffsetParentRelativeRectToViewportRelativeRect: ad,
5531
- getDocumentElement: Ce,
5531
+ getDocumentElement: Ne,
5532
5532
  getClippingRect: ud,
5533
5533
  getOffsetParent: da,
5534
5534
  getElementRects: md,
5535
5535
  getClientRects: sd,
5536
5536
  getDimensions: fd,
5537
- getScale: Je,
5537
+ getScale: et,
5538
5538
  isElement: he,
5539
5539
  isRTL: hd
5540
5540
  };
@@ -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 = Ne(e);
5547
5547
  function a() {
5548
5548
  var c;
5549
5549
  clearTimeout(r), (c = n) == null || c.disconnect(), n = null;
@@ -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 : dt;
5639
+ var It = typeof document < "u" ? Es : Ze;
5640
5640
  function Vt(e, t) {
5641
5641
  if (e === t)
5642
5642
  return !0;
@@ -5880,7 +5880,7 @@ var ba = "PopperAnchor", ya = l.forwardRef(
5880
5880
  ya.displayName = ba;
5881
5881
  var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5882
5882
  (e, t) => {
5883
- var ye, it, xt, lt, Nt, Ke;
5883
+ var be, lt, xt, ct, Nt, Ke;
5884
5884
  const {
5885
5885
  __scopePopper: n,
5886
5886
  side: r = "bottom",
@@ -5931,13 +5931,13 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5931
5931
  Vd({ arrowWidth: T, arrowHeight: W }),
5932
5932
  v && Dd({ strategy: "referenceHidden", ...D })
5933
5933
  ]
5934
- }), [$, q] = Ca(P), J = fe(y);
5934
+ }), [$, q] = Ca(P), Z = fe(y);
5935
5935
  De(() => {
5936
- U && (J == null || J());
5937
- }, [U, J]);
5938
- const re = (ye = O.arrow) == null ? void 0 : ye.x, F = (it = O.arrow) == null ? void 0 : it.y, G = ((xt = O.arrow) == null ? void 0 : xt.centerOffset) !== 0, [Z, be] = l.useState();
5936
+ U && (Z == null || Z());
5937
+ }, [U, Z]);
5938
+ const re = (be = O.arrow) == null ? void 0 : be.x, F = (lt = O.arrow) == null ? void 0 : lt.y, G = ((xt = O.arrow) == null ? void 0 : xt.centerOffset) !== 0, [J, Pe] = l.useState();
5939
5939
  return De(() => {
5940
- b && be(window.getComputedStyle(b).zIndex);
5940
+ b && Pe(window.getComputedStyle(b).zIndex);
5941
5941
  }, [b]), /* @__PURE__ */ i(
5942
5942
  "div",
5943
5943
  {
@@ -5948,9 +5948,9 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5948
5948
  transform: U ? V.transform : "translate(0, -200%)",
5949
5949
  // keep off the page when measuring
5950
5950
  minWidth: "max-content",
5951
- zIndex: Z,
5951
+ zIndex: J,
5952
5952
  "--radix-popper-transform-origin": [
5953
- (lt = O.transformOrigin) == null ? void 0 : lt.x,
5953
+ (ct = O.transformOrigin) == null ? void 0 : ct.x,
5954
5954
  (Nt = O.transformOrigin) == null ? void 0 : Nt.y
5955
5955
  ].join(" "),
5956
5956
  // hide the content if using the hide middleware and should be hidden
@@ -6208,13 +6208,13 @@ var ur = "TooltipPortal", [Jd, eu] = on(ur, {
6208
6208
  return /* @__PURE__ */ i(Jd, { scope: t, forceMount: n, children: /* @__PURE__ */ i(Ge, { present: n || a.open, children: /* @__PURE__ */ i(Ut, { asChild: !0, container: o, children: r }) }) });
6209
6209
  };
6210
6210
  Pa.displayName = ur;
6211
- var nt = "TooltipContent", Aa = l.forwardRef(
6211
+ var rt = "TooltipContent", Aa = l.forwardRef(
6212
6212
  (e, t) => {
6213
- const n = eu(nt, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = wt(nt, e.__scopeTooltip);
6213
+ const n = eu(rt, e.__scopeTooltip), { forceMount: r = n.forceMount, side: o = "top", ...a } = e, s = wt(rt, e.__scopeTooltip);
6214
6214
  return /* @__PURE__ */ i(Ge, { 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(nt, e.__scopeTooltip), r = dr(nt, 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 = se(t, o), [s, c] = l.useState(null), { trigger: u, onClose: d } = n, p = o.current, { onPointerInTransitChange: m } = r, v = l.useCallback(() => {
6218
6218
  c(null), m(!1);
6219
6219
  }, [m]), g = l.useCallback(
6220
6220
  (y, f) => {
@@ -6248,7 +6248,7 @@ var nt = "TooltipContent", Aa = l.forwardRef(
6248
6248
  onEscapeKeyDown: a,
6249
6249
  onPointerDownOutside: s,
6250
6250
  ...c
6251
- } = e, u = wt(nt, n), d = an(n), { onClose: p } = u;
6251
+ } = e, u = wt(rt, n), d = an(n), { onClose: p } = u;
6252
6252
  return l.useEffect(() => (document.addEventListener(Ln, p), () => document.removeEventListener(Ln, p)), [p]), l.useEffect(() => {
6253
6253
  if (u.trigger) {
6254
6254
  const m = (v) => {
@@ -6291,7 +6291,7 @@ var nt = "TooltipContent", Aa = l.forwardRef(
6291
6291
  );
6292
6292
  }
6293
6293
  );
6294
- Aa.displayName = nt;
6294
+ Aa.displayName = rt;
6295
6295
  var Ma = "TooltipArrow", ou = l.forwardRef(
6296
6296
  (e, t) => {
6297
6297
  const { __scopeTooltip: n, ...r } = e, o = an(n);
@@ -6395,7 +6395,7 @@ function du(e) {
6395
6395
  return n.pop(), t.length === 1 && n.length === 1 && t[0].x === n[0].x && t[0].y === n[0].y ? t : t.concat(n);
6396
6396
  }
6397
6397
  var uu = Sa, fu = Ta, pu = Ra, mu = Pa, Oa = Aa;
6398
- const ut = uu, ft = fu, pt = pu, et = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i(mu, { children: /* @__PURE__ */ i(
6398
+ const ut = uu, ft = fu, pt = pu, tt = l.forwardRef(({ className: e, sideOffset: t = 4, ...n }, r) => /* @__PURE__ */ i(mu, { children: /* @__PURE__ */ i(
6399
6399
  Oa,
6400
6400
  {
6401
6401
  ref: r,
@@ -6407,7 +6407,7 @@ const ut = uu, ft = fu, pt = pu, et = l.forwardRef(({ className: e, sideOffset:
6407
6407
  ...n
6408
6408
  }
6409
6409
  ) }));
6410
- et.displayName = Oa.displayName;
6410
+ tt.displayName = Oa.displayName;
6411
6411
  const fr = l.forwardRef(
6412
6412
  ({ className: e, type: t, mask: n, onChange: r, placeholder: o, ...a }, s) => {
6413
6413
  const [c, u] = l.useState(!1), d = l.useRef(null), m = o || (n === "phone" ? "(999) 999-9999" : n === "postal-code-ca" ? "A9A 9A9" : n === "zip-code-us" ? "99999" : ""), v = () => n === "phone" ? "Only enter numbers. Formatting will be added automatically." : n === "postal-code-ca" ? "Enter letters and numbers only. Spacing will be applied automatically." : n === "zip-code-us" ? "Only enter numbers. Formatting will be added automatically." : "", g = () => {
@@ -6460,7 +6460,7 @@ const fr = l.forwardRef(
6460
6460
  ...a
6461
6461
  }
6462
6462
  ) }),
6463
- /* @__PURE__ */ i(et, { side: "top", className: "bg-sidebar text-sidebar-foreground", children: v() })
6463
+ /* @__PURE__ */ i(tt, { side: "top", className: "bg-sidebar text-sidebar-foreground", children: v() })
6464
6464
  ] }) });
6465
6465
  }
6466
6466
  );
@@ -6592,7 +6592,7 @@ const Eu = l.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ i(
6592
6592
  ));
6593
6593
  Eu.displayName = Xt.displayName;
6594
6594
  function Kf({ 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] = Te(!1), c = () => {
6595
+ const o = `https://api.randmar.io/v4/Partner/${r}/Account/Logo?height=72&width=72`, [a, s] = Se(!1), c = () => {
6596
6596
  s(!0);
6597
6597
  };
6598
6598
  return /* @__PURE__ */ x("div", { className: "flex items-center gap-3", children: [
@@ -7036,7 +7036,7 @@ const ju = bt(
7036
7036
  }), /* @__PURE__ */ x(ft, { children: [
7037
7037
  /* @__PURE__ */ i(pt, { asChild: !0, children: m }),
7038
7038
  /* @__PURE__ */ i(
7039
- et,
7039
+ tt,
7040
7040
  {
7041
7041
  side: "right",
7042
7042
  align: "center",
@@ -7469,7 +7469,7 @@ var [of, af] = qa(dn, {
7469
7469
  }),
7470
7470
  onPointerMove: X(e.onPointerMove, (R) => {
7471
7471
  if (!N.current) return;
7472
- const V = R.clientX - N.current.x, P = R.clientY - N.current.y, U = !!C.current, O = ["left", "right"].includes(f.swipeDirection), $ = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, q = O ? $(0, V) : 0, J = O ? 0 : $(0, P), re = R.pointerType === "touch" ? 10 : 2, F = { x: q, y: J }, G = { originalEvent: R, delta: F };
7472
+ const V = R.clientX - N.current.x, P = R.clientY - N.current.y, U = !!C.current, O = ["left", "right"].includes(f.swipeDirection), $ = ["left", "up"].includes(f.swipeDirection) ? Math.min : Math.max, q = O ? $(0, V) : 0, Z = O ? 0 : $(0, P), re = R.pointerType === "touch" ? 10 : 2, F = { x: q, y: Z }, G = { originalEvent: R, delta: F };
7473
7473
  U ? (C.current = F, Mt(tf, m, G, {
7474
7474
  discrete: !1
7475
7475
  })) : Qr(F, f.swipeDirection, re) ? (C.current = F, Mt(ef, p, G, {
@@ -7764,8 +7764,8 @@ function Cf() {
7764
7764
  ] });
7765
7765
  }
7766
7766
  function Ef({ onSignOut: e, handleValidSearch: t, rightMenu: n, searchPlaceholder: r }) {
7767
- const [o, a] = Te(""), s = Ts(), { toast: c } = ys();
7768
- dt(() => {
7767
+ const [o, a] = Se(""), s = Ts(), { toast: c } = ys();
7768
+ Ze(() => {
7769
7769
  const m = new URLSearchParams(s.search).get("q");
7770
7770
  m && a(m);
7771
7771
  }, [s.search]);
@@ -7947,7 +7947,7 @@ function Rf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
7947
7947
  children: u ? /* @__PURE__ */ i(so, { className: "h-4 w-4" }) : /* @__PURE__ */ i(qs, { className: "h-4 w-4" })
7948
7948
  }
7949
7949
  ) }),
7950
- /* @__PURE__ */ i(et, { children: /* @__PURE__ */ i("p", { children: "Copy video link" }) })
7950
+ /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i("p", { children: "Copy video link" }) })
7951
7951
  ] }) }),
7952
7952
  /* @__PURE__ */ i(ut, { children: /* @__PURE__ */ x(ft, { children: [
7953
7953
  /* @__PURE__ */ i(pt, { asChild: !0, children: /* @__PURE__ */ i(
@@ -7960,7 +7960,7 @@ function Rf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
7960
7960
  children: /* @__PURE__ */ i(Qs, { className: "h-4 w-4" })
7961
7961
  }
7962
7962
  ) }),
7963
- /* @__PURE__ */ i(et, { children: /* @__PURE__ */ i("p", { children: "Download video" }) })
7963
+ /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i("p", { children: "Download video" }) })
7964
7964
  ] }) })
7965
7965
  ] })
7966
7966
  ] }) }) }),
@@ -7987,7 +7987,7 @@ function Rf({ randmarSKU: e, size: t = "md", alt: n, secondaryContent: r }) {
7987
7987
  children: /* @__PURE__ */ i(di, { className: "h-4 w-4" })
7988
7988
  }
7989
7989
  ) }),
7990
- /* @__PURE__ */ i(et, { children: /* @__PURE__ */ i("p", { children: "Play video" }) })
7990
+ /* @__PURE__ */ i(tt, { children: /* @__PURE__ */ i("p", { children: "Play video" }) })
7991
7991
  ] }) })
7992
7992
  ] })
7993
7993
  ] });
@@ -8074,13 +8074,13 @@ const Of = bt(
8074
8074
  size: "default"
8075
8075
  }
8076
8076
  }
8077
- ), Se = l.forwardRef(
8077
+ ), Ee = l.forwardRef(
8078
8078
  ({ className: e, variant: t, size: n, icon: r, children: o, ...a }, s) => /* @__PURE__ */ x("div", { ref: s, className: M(Of({ variant: t, size: n }), e), ...a, children: [
8079
8079
  r && /* @__PURE__ */ i("span", { className: "mr-1", children: r }),
8080
8080
  o
8081
8081
  ] })
8082
8082
  );
8083
- Se.displayName = "Badge";
8083
+ Ee.displayName = "Badge";
8084
8084
  function Df({ inventory: e }) {
8085
8085
  const t = ["MTL", "TOR"], n = ["VAN", "EDM"], r = [...e].sort((f, h) => (f.Name || "").localeCompare(h.Name || "")), o = r.filter((f) => f.Country === "US"), a = r.filter((f) => f.Country === "CA"), s = r.filter((f) => n.includes(f.WarehouseId || "")), c = r.filter((f) => t.includes(f.WarehouseId || "")), u = a.filter(
8086
8086
  (f) => !t.includes(f.WarehouseId || "") && !n.includes(f.WarehouseId || "")
@@ -8182,9 +8182,9 @@ function Qf({
8182
8182
  syncToShopifyAction: c,
8183
8183
  isSyncToShopifyActionLoading: u = !1
8184
8184
  }) {
8185
- var R, V, P, U, O, $, q, J, re;
8186
- const [d, p] = Te(1), [m, v] = Te(null), [g, y] = Te(0), [f, h] = Te(!1), b = ((R = e == null ? void 0 : e.Distribution) == null ? void 0 : R.RegularPrice) || 0, w = ((V = e == null ? void 0 : e.Distribution) == null ? void 0 : V.Price) || 0, [N, C] = Te(null), [S, E] = Te(!1);
8187
- if (dt(() => {
8185
+ var R, V, P, U, O, $, q, Z, re;
8186
+ const [d, p] = Se(1), [m, v] = Se(null), [g, y] = Se(0), [f, h] = Se(!1), b = ((R = e == null ? void 0 : e.Distribution) == null ? void 0 : R.RegularPrice) || 0, w = ((V = e == null ? void 0 : e.Distribution) == null ? void 0 : V.Price) || 0, [N, C] = Se(null), [S, E] = Se(!1);
8187
+ if (Ze(() => {
8188
8188
  const F = async () => {
8189
8189
  if (e != null && e.ManufacturerId) {
8190
8190
  E(!0);
@@ -8193,8 +8193,8 @@ function Qf({
8193
8193
  `https://api.randmar.io/V4/Partner/${e.ManufacturerId}/Account/Logo?width=60&height=40`
8194
8194
  );
8195
8195
  if (G.ok) {
8196
- const Z = await G.blob();
8197
- C(URL.createObjectURL(Z));
8196
+ const J = await G.blob();
8197
+ C(URL.createObjectURL(J));
8198
8198
  }
8199
8199
  } catch (G) {
8200
8200
  console.error("Failed to load logo:", G);
@@ -8204,16 +8204,17 @@ function Qf({
8204
8204
  }
8205
8205
  };
8206
8206
  e != null && e.ManufacturerId && F();
8207
- }, [e == null ? void 0 : e.ManufacturerId]), dt(() => {
8208
- var G;
8209
- if (!e) return;
8210
- if (!m && r) {
8211
- const Z = (G = e.Opportunities) == null ? void 0 : G.find((be) => be.BidNumber == r);
8212
- Z && v(Z);
8207
+ }, [e == null ? void 0 : e.ManufacturerId]), Ze(() => {
8208
+ var F;
8209
+ if (e && r) {
8210
+ const G = (F = e.Opportunities) == null ? void 0 : F.find((J) => J.BidNumber == r);
8211
+ G && v(G);
8213
8212
  }
8213
+ }, [e, r]), Ze(() => {
8214
+ if (!e) return;
8214
8215
  const F = m != null && m.Price ? m.Price : w;
8215
8216
  y(b > 0 ? Math.round((b - F) / b * 100) : 0);
8216
- }, [e, m, w, b]), dt(() => {
8217
+ }, [e, m, w, b]), Ze(() => {
8217
8218
  s || p(1);
8218
8219
  }, [s]), !e)
8219
8220
  return /* @__PURE__ */ i(Bn, { className: "hover:shadow-lg transition-shadow", children: /* @__PURE__ */ x(jn, { className: "p-6", children: [
@@ -8297,7 +8298,7 @@ function Qf({
8297
8298
  /* @__PURE__ */ x("div", { className: "flex-1", children: [
8298
8299
  /* @__PURE__ */ x("div", { className: "flex flex-wrap gap-2 mb-4", children: [
8299
8300
  e.State && /* @__PURE__ */ x(
8300
- Se,
8301
+ Ee,
8301
8302
  {
8302
8303
  variant: "outline",
8303
8304
  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"}`,
@@ -8309,7 +8310,7 @@ function Qf({
8309
8310
  }
8310
8311
  ),
8311
8312
  /* @__PURE__ */ x(
8312
- Se,
8313
+ Ee,
8313
8314
  {
8314
8315
  variant: "outline",
8315
8316
  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"}`,
@@ -8320,12 +8321,12 @@ function Qf({
8320
8321
  ]
8321
8322
  }
8322
8323
  ),
8323
- e.TransparencyCode && /* @__PURE__ */ x(Se, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
8324
+ e.TransparencyCode && /* @__PURE__ */ x(Ee, { variant: "outline", className: "rounded-full px-3 bg-green-50 text-green-700 hover:bg-green-50", children: [
8324
8325
  /* @__PURE__ */ i(Ks, { size: "12", className: "mr-1.5" }),
8325
8326
  " Transparency Code"
8326
8327
  ] }),
8327
8328
  /* @__PURE__ */ x(
8328
- Se,
8329
+ Ee,
8329
8330
  {
8330
8331
  variant: "outline",
8331
8332
  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"}`,
@@ -8337,7 +8338,7 @@ function Qf({
8337
8338
  }
8338
8339
  ),
8339
8340
  e.ManufacturerId && /* @__PURE__ */ x(
8340
- Se,
8341
+ Ee,
8341
8342
  {
8342
8343
  variant: "outline",
8343
8344
  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"}`,
@@ -8349,7 +8350,7 @@ function Qf({
8349
8350
  }
8350
8351
  ),
8351
8352
  /* @__PURE__ */ x(
8352
- Se,
8353
+ Ee,
8353
8354
  {
8354
8355
  variant: "outline",
8355
8356
  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"}`,
@@ -8386,7 +8387,7 @@ function Qf({
8386
8387
  /* @__PURE__ */ i("div", { className: "flex flex-1", children: e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
8387
8388
  /* @__PURE__ */ i("div", { className: "text-sm text-muted-foreground flex items-center", children: "Opportunities" }),
8388
8389
  W ? /* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto pr-1 mt-1", children: T.map((F, G) => {
8389
- var Z;
8390
+ var J;
8390
8391
  return /* @__PURE__ */ x(
8391
8392
  "div",
8392
8393
  {
@@ -8404,7 +8405,7 @@ function Qf({
8404
8405
  /* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
8405
8406
  /* @__PURE__ */ x("span", { className: "font-semibold", children: [
8406
8407
  "$",
8407
- (Z = F.Price) == null ? void 0 : Z.toFixed(2)
8408
+ (J = F.Price) == null ? void 0 : J.toFixed(2)
8408
8409
  ] }),
8409
8410
  F.Rebate && F.Rebate > 0 && /* @__PURE__ */ x("span", { className: "text-xs text-green-600", children: [
8410
8411
  "Rebate: $",
@@ -8414,7 +8415,7 @@ function Qf({
8414
8415
  "Ends: ",
8415
8416
  j(F.EndDate)
8416
8417
  ] }),
8417
- !F.Active && /* @__PURE__ */ i(Se, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
8418
+ !F.Active && /* @__PURE__ */ i(Ee, { variant: "outline", className: "text-xs px-2 py-0 h-5 mt-1 bg-gray-100", children: "Inactive" })
8418
8419
  ] })
8419
8420
  ]
8420
8421
  },
@@ -8457,7 +8458,7 @@ function Qf({
8457
8458
  /* @__PURE__ */ x("div", { className: "flex items-center flex-wrap", children: [
8458
8459
  /* @__PURE__ */ x("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
8459
8460
  /* @__PURE__ */ i("span", { children: "$" }),
8460
- m ? (J = (q = e.Opportunities) == null ? void 0 : q.find((F) => F.BidNumber == m.BidNumber)) == null ? void 0 : J.Price : w.toFixed(2),
8461
+ m ? (Z = (q = e.Opportunities) == null ? void 0 : q.find((F) => F.BidNumber == m.BidNumber)) == null ? void 0 : Z.Price : w.toFixed(2),
8461
8462
  /* @__PURE__ */ i("span", { children: " CAD" })
8462
8463
  ] }),
8463
8464
  g > 0 && /* @__PURE__ */ x("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
@@ -8465,7 +8466,7 @@ function Qf({
8465
8466
  b.toFixed(2)
8466
8467
  ] })
8467
8468
  ] }),
8468
- 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: [
8469
+ g > 0 && /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x(Ee, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
8469
8470
  /* @__PURE__ */ x("span", { children: [
8470
8471
  g,
8471
8472
  "% OFF"
@@ -8550,7 +8551,7 @@ function Qf({
8550
8551
  }
8551
8552
  export {
8552
8553
  Kf as AvatarFooter,
8553
- Se as Badge,
8554
+ Ee as Badge,
8554
8555
  ae as Button,
8555
8556
  Bn as Card,
8556
8557
  jn as CardContent,
@@ -8622,7 +8623,7 @@ export {
8622
8623
  ms as ToastViewport,
8623
8624
  Cf as Toaster,
8624
8625
  ft as Tooltip,
8625
- et as TooltipContent,
8626
+ tt as TooltipContent,
8626
8627
  ut as TooltipProvider,
8627
8628
  pt as TooltipTrigger,
8628
8629
  Ef as Topbar,