randmarcomps 1.70.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.
@@ -57,19 +57,19 @@ function Ws({ containerRef: e, inputRef: t, pushPasswordManagerStrategy: n, isFo
57
57
  }
58
58
  var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
59
59
  var n = e, { value: r, onChange: o, maxLength: a, textAlign: s = "left", pattern: c, placeholder: u, inputMode: d = "numeric", onComplete: p, pushPasswordManagerStrategy: m = "increase-width", pasteTransformer: v, containerClassName: g, noScriptCSSFallback: y = Bs, render: f, children: h } = n, b = Is(n, ["value", "onChange", "maxLength", "textAlign", "pattern", "placeholder", "inputMode", "onComplete", "pushPasswordManagerStrategy", "pasteTransformer", "containerClassName", "noScriptCSSFallback", "render", "children"]), w, N, C, S, E;
60
- let [T, z] = l.useState(typeof b.defaultValue == "string" ? b.defaultValue : ""), I = r ?? T, W = Ls(I), U = l.useCallback((_) => {
61
- o == null || o(_), z(_);
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
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 _ = D.current, F = R.current;
65
- if (!_ || !F) return;
66
- j.current.value !== _.value && j.current.onChange(_.value), P.current.prev = [_.selectionStart, _.selectionEnd, _.selectionDirection];
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
67
  function se() {
68
- if (document.activeElement !== _) {
68
+ if (document.activeElement !== L) {
69
69
  oe(null), ne(null);
70
70
  return;
71
71
  }
72
- let G = _.selectionStart, ue = _.selectionEnd, Ct = _.selectionDirection, he = _.maxLength, Fe = _.value, Se = P.current.prev, Ae = -1, ke = -1, ze;
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
73
  if (Fe.length !== 0 && G !== null && ue !== null) {
74
74
  let xs = G === ue, Ns = G === Fe.length && Fe.length < he;
75
75
  if (xs && !Ns) {
@@ -91,7 +91,7 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
91
91
  let gr = Ae !== -1 ? Ae : G, vr = ke !== -1 ? ke : ue, ws = ze ?? Ct;
92
92
  oe(gr), ne(vr), P.current.prev = [gr, vr, ws];
93
93
  }
94
- if (document.addEventListener("selectionchange", se, { capture: !0 }), se(), document.activeElement === _ && q(!0), !document.getElementById("input-otp-style")) {
94
+ if (document.addEventListener("selectionchange", se, { capture: !0 }), se(), document.activeElement === L && q(!0), !document.getElementById("input-otp-style")) {
95
95
  let G = document.createElement("style");
96
96
  if (G.id = "input-otp-style", document.head.appendChild(G), G.sheet) {
97
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;";
@@ -99,66 +99,66 @@ var ro = l.createContext({}), oo = l.forwardRef((e, t) => {
99
99
  }
100
100
  }
101
101
  let ce = () => {
102
- F && F.style.setProperty("--root-height", `${_.clientHeight}px`);
102
+ F && F.style.setProperty("--root-height", `${L.clientHeight}px`);
103
103
  };
104
104
  ce();
105
105
  let de = new ResizeObserver(ce);
106
- return de.observe(_), () => {
106
+ return de.observe(L), () => {
107
107
  document.removeEventListener("selectionchange", se, { capture: !0 }), de.disconnect();
108
108
  };
109
109
  }, []);
110
110
  let [H, O] = l.useState(!1), [$, q] = l.useState(!1), [Z, oe] = l.useState(null), [ee, ne] = l.useState(null);
111
111
  l.useEffect(() => {
112
112
  _s(() => {
113
- var _, F, se, ce;
114
- (_ = D.current) == null || _.dispatchEvent(new Event("input"));
113
+ var L, F, se, ce;
114
+ (L = D.current) == null || L.dispatchEvent(new Event("input"));
115
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
116
  de !== null && G !== null && (oe(de), ne(G), P.current.prev = [de, G, ue]);
117
117
  });
118
118
  }, [I, $]), l.useEffect(() => {
119
119
  W !== void 0 && I !== W && W.length < a && I.length === a && (p == null || p(I));
120
120
  }, [a, p, W, I]);
121
- let L = Ws({ containerRef: R, inputRef: D, pushPasswordManagerStrategy: m, isFocused: $ }), K = l.useCallback((_) => {
122
- let F = _.currentTarget.value.slice(0, a);
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
- _.preventDefault();
124
+ L.preventDefault();
125
125
  return;
126
126
  }
127
127
  typeof W == "string" && F.length < W.length && document.dispatchEvent(new Event("selectionchange")), U(F);
128
128
  }, [a, U, W, B]), ae = l.useCallback(() => {
129
- var _;
129
+ var L;
130
130
  if (D.current) {
131
131
  let F = Math.min(D.current.value.length, a - 1), se = D.current.value.length;
132
- (_ = D.current) == null || _.setSelectionRange(F, se), oe(F), ne(se);
132
+ (L = D.current) == null || L.setSelectionRange(F, se), oe(F), ne(se);
133
133
  }
134
134
  q(!0);
135
- }, [a]), lt = l.useCallback((_) => {
135
+ }, [a]), lt = l.useCallback((L) => {
136
136
  var F, se;
137
137
  let ce = D.current;
138
- if (!v && (!j.current.isIOS || !_.clipboardData || !ce)) return;
139
- let de = _.clipboardData.getData("text/plain"), G = v ? v(de) : de;
140
- _.preventDefault();
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
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
142
  if (he.length > 0 && B && !B.test(he)) return;
143
143
  ce.value = he, U(he);
144
144
  let Fe = Math.min(he.length, a - 1), Se = he.length;
145
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: L.willPushPWMBadge ? `calc(100% + ${L.PWM_BADGE_SPACE_WIDTH})` : "100%", clipPath: L.willPushPWMBadge ? `inset(0 ${L.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" }), [L.PWM_BADGE_SPACE_WIDTH, L.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: (_) => {
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(_), (F = b.onPaste) == null || F.call(b, _);
149
- }, onChange: K, onMouseOver: (_) => {
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, _);
152
- }, onMouseLeave: (_) => {
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, _);
155
- }, onFocus: (_) => {
154
+ O(!1), (F = b.onMouseLeave) == null || F.call(b, L);
155
+ }, onFocus: (L) => {
156
156
  var F;
157
- ae(), (F = b.onFocus) == null || F.call(b, _);
158
- }, onBlur: (_) => {
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, _);
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((_, 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
162
  var se;
163
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
164
  return { char: de, placeholderChar: G, isActive: ce, hasFakeCaret: ce && de === null };
@@ -804,7 +804,7 @@ const re = (e) => {
804
804
  g,
805
805
  k,
806
806
  A
807
- ], ee = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", k, A], ne = () => ["none", V, k, A], L = () => ["none", V, k, A], K = () => [V, k, A], ae = () => [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: {
@@ -2552,28 +2552,28 @@ const re = (e) => {
2552
2552
  * @see https://tailwindcss.com/docs/scale
2553
2553
  */
2554
2554
  scale: [{
2555
- scale: L()
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": L()
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": L()
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": L()
2576
+ "scale-z": _()
2577
2577
  }],
2578
2578
  /**
2579
2579
  * Scale 3D
@@ -5922,8 +5922,8 @@ 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: _, availableWidth: F, availableHeight: se }) => {
5926
- const { width: ce, height: de } = _.reference, G = $e.floating.style;
5925
+ apply: ({ elements: $e, rects: L, availableWidth: F, availableHeight: se }) => {
5926
+ const { width: ce, height: de } = L.reference, G = $e.floating.style;
5927
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
  }),
@@ -5935,7 +5935,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5935
5935
  De(() => {
5936
5936
  H && (Z == null || Z());
5937
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, [L, K] = l.useState();
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
5940
  b && K(window.getComputedStyle(b).zIndex);
5941
5941
  }, [b]), /* @__PURE__ */ i(
@@ -5948,7 +5948,7 @@ var cr = "PopperContent", [zd, Wd] = ma(cr), wa = l.forwardRef(
5948
5948
  transform: H ? j.transform : "translate(0, -200%)",
5949
5949
  // keep off the page when measuring
5950
5950
  minWidth: "max-content",
5951
- zIndex: L,
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
@@ -8205,7 +8205,7 @@ function Zf({
8205
8205
  var P, H, O, $, q, Z, oe, ee, ne;
8206
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 L = async () => {
8208
+ const _ = async () => {
8209
8209
  if (e != null && e.ManufacturerId) {
8210
8210
  E(!0);
8211
8211
  try {
@@ -8223,17 +8223,17 @@ function Zf({
8223
8223
  }
8224
8224
  }
8225
8225
  };
8226
- e != null && e.ManufacturerId && L();
8226
+ e != null && e.ManufacturerId && _();
8227
8227
  }, [e == null ? void 0 : e.ManufacturerId]), He(() => {
8228
- var L;
8228
+ var _;
8229
8229
  if (e && r) {
8230
- const K = (L = e.Opportunities) == null ? void 0 : L.find((ae) => ae.BidNumber == r);
8230
+ const K = (_ = e.Opportunities) == null ? void 0 : _.find((ae) => ae.BidNumber == r);
8231
8231
  K && v(K);
8232
8232
  }
8233
8233
  }, [e, r]), He(() => {
8234
8234
  if (!e) return;
8235
- const L = m != null && m.Price ? m.Price : w;
8236
- y(b > 0 ? Math.round((b - L) / 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)
@@ -8301,8 +8301,8 @@ function Zf({
8301
8301
  return;
8302
8302
  }
8303
8303
  p(d + 1);
8304
- }, U = (L) => {
8305
- const K = parseInt(L.target.value, 10);
8304
+ }, U = (_) => {
8305
+ const K = parseInt(_.target.value, 10);
8306
8306
  if (!isNaN(K) && K > 0) {
8307
8307
  p(K);
8308
8308
  return;
@@ -8310,11 +8310,11 @@ function Zf({
8310
8310
  p(void 0);
8311
8311
  }, B = () => {
8312
8312
  (d == null || d < 1) && p(1);
8313
- }, D = (($ = (O = e.Distribution) == null ? void 0 : O.Inventory) == null ? void 0 : $.reduce((L, K) => L + (K.AvailableQuantity || 0), 0)) || 0, R = (L) => {
8313
+ }, D = (($ = (O = e.Distribution) == null ? void 0 : O.Inventory) == null ? void 0 : $.reduce((_, K) => _ + (K.AvailableQuantity || 0), 0)) || 0, R = (_) => {
8314
8314
  try {
8315
- return new Date(L).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
8315
+ return new Date(_).toLocaleDateString("en-US", { year: "numeric", month: "short", day: "numeric" });
8316
8316
  } catch (K) {
8317
- return console.error(K), L.split("T")[0] || "N/A";
8317
+ return console.error(K), _.split("T")[0] || "N/A";
8318
8318
  }
8319
8319
  }, j = () => {
8320
8320
  a && a({ quantity: d ?? 1, bidNumber: (m == null ? void 0 : m.BidNumber) ?? null });
@@ -8435,37 +8435,39 @@ function Zf({
8435
8435
  ] }),
8436
8436
  /* @__PURE__ */ x("div", { className: "flex gap-6 mt-4", children: [
8437
8437
  /* @__PURE__ */ i("div", { className: "flex flex-1", children: z && e.Distribution && /* @__PURE__ */ x("div", { className: "w-full", children: [
8438
- /* @__PURE__ */ i("div", { className: "text-sm text-muted-foreground flex items-center", children: "Opportunities" }),
8439
- /* @__PURE__ */ i("div", { className: "space-y-2 max-h-[200px] overflow-y-auto pr-1 mt-1", children: T.map((L, K) => {
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
8440
  var ae;
8441
8441
  return /* @__PURE__ */ x(
8442
8442
  "div",
8443
8443
  {
8444
- className: `flex justify-between items-center border border-gray-100 rounded transition-colors py-2 px-4
8445
- ${L.BidNumber == (m == null ? void 0 : m.BidNumber) ? "bg-primary/10 cursor-pointer" : L.Active ? "hover:bg-primary/5 cursor-pointer" : ""}
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
8446
  `,
8447
- onClick: () => v(
8448
- L.BidNumber != (m == null ? void 0 : m.BidNumber) ? L : null
8449
- ),
8447
+ onClick: () => {
8448
+ _.Active === !0 && v(
8449
+ _.BidNumber != (m == null ? void 0 : m.BidNumber) ? _ : null
8450
+ );
8451
+ },
8450
8452
  children: [
8451
8453
  /* @__PURE__ */ i("div", { className: "flex items-center", children: /* @__PURE__ */ x("div", { className: "flex flex-col", children: [
8452
- /* @__PURE__ */ i("span", { className: "font-medium text-sm", children: L.Opportunity }),
8453
- /* @__PURE__ */ i("span", { className: "text-xs text-gray-500", children: L.BidNumber })
8454
+ /* @__PURE__ */ i("span", { className: "font-medium text-sm", children: _.Opportunity }),
8455
+ /* @__PURE__ */ i("span", { className: "text-xs text-neutral-900", children: _.BidNumber })
8454
8456
  ] }) }),
8455
8457
  /* @__PURE__ */ x("div", { className: "flex flex-col items-end", children: [
8456
8458
  /* @__PURE__ */ x("span", { className: "font-semibold", children: [
8457
8459
  "$",
8458
- (ae = L.Price) == null ? void 0 : ae.toFixed(2)
8460
+ (ae = _.Price) == null ? void 0 : ae.toFixed(2)
8459
8461
  ] }),
8460
- L.Rebate && L.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: [
8461
8463
  "Rebate: $",
8462
- L.Rebate.toFixed(2)
8464
+ _.Rebate.toFixed(2)
8463
8465
  ] }),
8464
- L.EndDate && /* @__PURE__ */ x("span", { className: "text-xs text-gray-500", children: [
8466
+ _.EndDate && /* @__PURE__ */ x("span", { className: "text-xs text-neutral-600", children: [
8465
8467
  "Ends: ",
8466
- R(L.EndDate)
8468
+ R(_.EndDate)
8467
8469
  ] }),
8468
- !L.Active && /* @__PURE__ */ i(Te, { 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" })
8469
8471
  ] })
8470
8472
  ]
8471
8473
  },
@@ -8508,7 +8510,7 @@ function Zf({
8508
8510
  /* @__PURE__ */ x("div", { className: "flex items-center flex-wrap", children: [
8509
8511
  /* @__PURE__ */ x("span", { className: "text-2xl font-bold whitespace-nowrap", children: [
8510
8512
  /* @__PURE__ */ i("span", { children: "$" }),
8511
- m ? (ee = (oe = e.Opportunities) == null ? void 0 : oe.find((L) => L.BidNumber == m.BidNumber)) == null ? void 0 : ee.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),
8512
8514
  /* @__PURE__ */ i("span", { children: " CAD" })
8513
8515
  ] }),
8514
8516
  g > 0 && /* @__PURE__ */ x("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: [
@@ -8552,7 +8554,7 @@ function Zf({
8552
8554
  value: d,
8553
8555
  onChange: U,
8554
8556
  onBlur: B,
8555
- onClick: (L) => L.currentTarget.select(),
8557
+ onClick: (_) => _.currentTarget.select(),
8556
8558
  className: `w-12 text-center border-0 focus:ring-0 focus:outline-none ${!e.AvailableToBuy || s || !a ? "text-gray-400" : ""}`,
8557
8559
  disabled: !e.AvailableToBuy || s || !a
8558
8560
  }