randmarcomps 1.642.0 → 1.643.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.
@@ -776,24 +776,27 @@ function Wc(t) {
776
776
  function Ts({ inventory: t, showBinLocation: r, className: n }) {
777
777
  const s = (y, C, S = !1, A = !0) => {
778
778
  const k = y.WarehouseType === "Fulfillment Center", D = k ? "bg-background" : "bg-background/70 text-muted-foreground", L = A && C > 0 ? "border-t" : "", M = S ? "border-r" : "", I = y.Status ?? "Unknown", $ = I === "Active";
779
- let Q = "bg-secondary text-secondary-foreground ring-1 ring-border";
779
+ let q = "bg-secondary text-secondary-foreground ring-1 ring-border";
780
780
  switch (y.WarehouseType) {
781
781
  case "Fulfillment Center":
782
- Q = "bg-randmar-black text-primary-foreground ring-1 ring-randmar-black/40";
782
+ q = "bg-randmar-black text-primary-foreground ring-1 ring-randmar-black/40";
783
783
  break;
784
784
  case "Last Mile":
785
- Q = "bg-randmar-blue text-primary-foreground ring-1 ring-randmar-blue/40";
785
+ q = "bg-randmar-blue text-primary-foreground ring-1 ring-randmar-blue/40";
786
786
  break;
787
787
  case "First Mile":
788
- Q = "bg-randmar-purple text-primary-foreground ring-1 ring-randmar-purple/40";
788
+ q = "bg-randmar-purple text-primary-foreground ring-1 ring-randmar-purple/40";
789
789
  break;
790
790
  }
791
791
  switch (I) {
792
+ case "Opening":
793
+ q = "bg-success text-success-foreground ring-1 ring-success/40";
794
+ break;
792
795
  case "Closing":
793
- Q = "bg-warning text-warning-foreground ring-1 ring-warning/40";
796
+ q = "bg-warning text-warning-foreground ring-1 ring-warning/40";
794
797
  break;
795
798
  case "Closed":
796
- Q = "bg-destructive text-destructive-foreground ring-1 ring-destructive/40";
799
+ q = "bg-destructive text-destructive-foreground ring-1 ring-destructive/40";
797
800
  break;
798
801
  }
799
802
  return /* @__PURE__ */ a(
@@ -808,7 +811,7 @@ function Ts({ inventory: t, showBinLocation: r, className: n }) {
808
811
  /* @__PURE__ */ a(
809
812
  "span",
810
813
  {
811
- className: `inline-flex items-center gap-2 rounded-full px-2 py-0.5 text-xs font-semibold ${Q}`,
814
+ className: `inline-flex items-center gap-2 rounded-full px-2 py-0.5 text-xs font-semibold ${q}`,
812
815
  "aria-hidden": "false",
813
816
  title: $ ? k ? "Fulfillment Center" : "Satellite Warehouse" : `Status: ${I}`,
814
817
  children: [
@@ -1815,8 +1818,8 @@ function Pf({ appID: t, manufPath: r, withBot: n }) {
1815
1818
  const M = /* @__PURE__ */ new Map();
1816
1819
  for (const I of h)
1817
1820
  for (const $ of Br(I.Tags)) {
1818
- const Q = Js($);
1819
- M.has(Q) || M.set(Q, $);
1821
+ const q = Js($);
1822
+ M.has(q) || M.set(q, $);
1820
1823
  }
1821
1824
  return Array.from(M.entries()).map(([I, $]) => ({ key: I, label: $ })).sort((I, $) => I.label.localeCompare($.label, void 0, { sensitivity: "base" }));
1822
1825
  }, [h]), S = d.trim().length > 0 || m.length > 0 || g !== "az" || w || b, A = ae(() => {
@@ -1828,7 +1831,7 @@ function Pf({ appID: t, manufPath: r, withBot: n }) {
1828
1831
  },
1829
1832
  [k]
1830
1833
  ), L = ye(() => {
1831
- const M = d.trim().toLocaleLowerCase(), I = new Set(m), Q = h.filter((z) => {
1834
+ const M = d.trim().toLocaleLowerCase(), I = new Set(m), q = h.filter((z) => {
1832
1835
  if (w && !z.OpenToWork || b && !Od(z)) return !1;
1833
1836
  const _ = Td(z);
1834
1837
  if (I.size > 0 && !_.some((O) => I.has(O))) return !1;
@@ -1838,10 +1841,10 @@ function Pf({ appID: t, manufPath: r, withBot: n }) {
1838
1841
  }
1839
1842
  return !0;
1840
1843
  }).slice();
1841
- return Q.sort((z, _) => g === "az" ? Va(z).localeCompare(Va(_), void 0, { sensitivity: "base" }) : g === "recent" ? (_.CreationDate ?? 0) - (z.CreationDate ?? 0) : g === "sales30Desc" ? (_.SalesData?.SalesLast30Days ?? 0) - (z.SalesData?.SalesLast30Days ?? 0) : (z.SalesData?.SalesLast30Days ?? 0) - (_.SalesData?.SalesLast30Days ?? 0)), Q;
1844
+ return q.sort((z, _) => g === "az" ? Va(z).localeCompare(Va(_), void 0, { sensitivity: "base" }) : g === "recent" ? (_.CreationDate ?? 0) - (z.CreationDate ?? 0) : g === "sales30Desc" ? (_.SalesData?.SalesLast30Days ?? 0) - (z.SalesData?.SalesLast30Days ?? 0) : (z.SalesData?.SalesLast30Days ?? 0) - (_.SalesData?.SalesLast30Days ?? 0)), q;
1842
1845
  }, [h, b, w, d, m, g]);
1843
1846
  return /* @__PURE__ */ a("div", { className: "w-full space-y-6 p-4 sm:p-6", children: [
1844
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ a(G, { className: "p-4 space-y-4", children: [
1847
+ /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ a(G, { className: "p-4 space-y-4", children: [
1845
1848
  /* @__PURE__ */ a("div", { className: "grid gap-4 lg:grid-cols-3", children: [
1846
1849
  /* @__PURE__ */ a("div", { className: "space-y-2", children: [
1847
1850
  /* @__PURE__ */ e(X, { htmlFor: "manufacturer-search", children: "Search manufacturers" }),
@@ -1878,7 +1881,7 @@ function Pf({ appID: t, manufPath: r, withBot: n }) {
1878
1881
  "aria-pressed": $,
1879
1882
  onClick: () => {
1880
1883
  p(
1881
- (Q) => Q.includes(M) ? Q.filter((z) => z !== M) : [...Q, M]
1884
+ (q) => q.includes(M) ? q.filter((z) => z !== M) : [...q, M]
1882
1885
  );
1883
1886
  },
1884
1887
  children: I
@@ -1969,7 +1972,7 @@ function Pf({ appID: t, manufPath: r, withBot: n }) {
1969
1972
  },
1970
1973
  M.ManufacturerId ?? `${$}-${I}`
1971
1974
  );
1972
- }) }) : /* @__PURE__ */ e(q, { children: /* @__PURE__ */ a(G, { className: "p-8 text-center space-y-3", children: [
1975
+ }) }) : /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ a(G, { className: "p-8 text-center space-y-3", children: [
1973
1976
  /* @__PURE__ */ e("p", { className: "text-muted-foreground", children: "No manufacturers match your current filters." }),
1974
1977
  /* @__PURE__ */ e(E, { type: "button", variant: "outline", onClick: A, disabled: !S, children: "Reset filters" })
1975
1978
  ] }) })
@@ -2450,7 +2453,7 @@ function yu({
2450
2453
  g && g !== A && g.trim() !== "" && D({ fieldName: "Name", newValue: g }).unwrap().then(() => {
2451
2454
  y({ title: "Success", description: "Name updated successfully" });
2452
2455
  });
2453
- }, Q = () => {
2456
+ }, q = () => {
2454
2457
  w && w !== k && w.trim() !== "" && D({ fieldName: "Role", newValue: w }).unwrap().then(() => {
2455
2458
  y({ title: "Success", description: "Role updated successfully" });
2456
2459
  });
@@ -2539,7 +2542,7 @@ function yu({
2539
2542
  {
2540
2543
  value: w ?? "",
2541
2544
  onChange: (z) => x(z.target.value),
2542
- onBlur: Q,
2545
+ onBlur: q,
2543
2546
  className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
2544
2547
  }
2545
2548
  )
@@ -2962,7 +2965,7 @@ const wu = Xa(function({
2962
2965
  }, [r]), S = l ?? (i ? "assistant" : "dashboard"), A = S === "assistant" ? Su : wu, k = S === "assistant" ? vu : Nu;
2963
2966
  return /* @__PURE__ */ a("div", { className: S === "dashboard" ? "py-3" : "", children: [
2964
2967
  r.map((D) => {
2965
- const L = D.fromPartnerID === n, M = !!(u && i && L && m && g && p), I = !!(u && i && L && N), $ = !!(i && !L && (D.content ?? "").trim().length > 0), Q = h === D.id;
2968
+ const L = D.fromPartnerID === n, M = !!(u && i && L && m && g && p), I = !!(u && i && L && N), $ = !!(i && !L && (D.content ?? "").trim().length > 0), q = h === D.id;
2966
2969
  return /* @__PURE__ */ e(
2967
2970
  A,
2968
2971
  {
@@ -2973,8 +2976,8 @@ const wu = Xa(function({
2973
2976
  canRetry: I,
2974
2977
  canCopy: $,
2975
2978
  isCopied: w === D.id,
2976
- isEditing: Q,
2977
- editValue: Q ? d : "",
2979
+ isEditing: q,
2980
+ editValue: q ? d : "",
2978
2981
  onEditValueChange: c,
2979
2982
  onStartEdit: () => m?.(D),
2980
2983
  onCancelEdit: () => p?.(),
@@ -3224,7 +3227,7 @@ function Df({ appID: t, inputRef: r, className: n }) {
3224
3227
  return oe.sort(ha), oe;
3225
3228
  }), h(!0), setTimeout(() => Xe.current?.focus(), 50));
3226
3229
  }, [l, t]);
3227
- const [I, $] = T(void 0), [Q, z] = T(""), [_, O] = T(null), [V, se] = T([]), [me, Ve] = T(null), Re = ce(null), Qe = ce(null), [Ue, We] = T([]), Xe = r || Qe, ie = ce(null), { toast: pe } = Ee(), H = () => V.find((W) => W.partner1 === I?.[0] && W.partner2 === I?.[1]), Y = ae(async () => {
3230
+ const [I, $] = T(void 0), [q, z] = T(""), [_, O] = T(null), [V, se] = T([]), [me, Ve] = T(null), Re = ce(null), Qe = ce(null), [Ue, We] = T([]), Xe = r || Qe, ie = ce(null), { toast: pe } = Ee(), H = () => V.find((W) => W.partner1 === I?.[0] && W.partner2 === I?.[1]), Y = ae(async () => {
3228
3231
  if (d) return;
3229
3232
  c(!0);
3230
3233
  const W = I;
@@ -3395,7 +3398,7 @@ function Df({ appID: t, inputRef: r, className: n }) {
3395
3398
  };
3396
3399
  Ne(ee), me.invoke("NewMessage", ee).catch((be) => console.error("Error sending message:", be)), z(""), ie.current && (ie.current.value = "");
3397
3400
  }, ge = () => {
3398
- const W = Q.trim();
3401
+ const W = q.trim();
3399
3402
  !ht || !W || !I || !me || (ht.unread > 0 && (te(), se((oe) => oe.map((ee) => ee.partner1 === I[0] && ee.partner2 === I[1] ? { ...ee, unread: 0 } : ee))), j(ht, W));
3400
3403
  }, Ae = (W, oe) => O([W, oe]);
3401
3404
  K(() => {
@@ -3476,7 +3479,7 @@ function Df({ appID: t, inputRef: r, className: n }) {
3476
3479
  appID: t,
3477
3480
  messagesEndRef: Re,
3478
3481
  inputRef: Xe,
3479
- content: Q,
3482
+ content: q,
3480
3483
  setContent: z,
3481
3484
  handleSendMessage: ge,
3482
3485
  isPostBizDevConvoLoading: N,
@@ -3615,7 +3618,7 @@ function Du({ manufacturer: t, readonly: r = !1, isLoading: n, onUnsavedChanges:
3615
3618
  s && s(x());
3616
3619
  }, [x, s]), K(() => {
3617
3620
  t && (m(h), u(h));
3618
- }, [t, m, h]), /* @__PURE__ */ a(q, { children: [
3621
+ }, [t, m, h]), /* @__PURE__ */ a(Q, { children: [
3619
3622
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Billing, Credit, & Rebates" }) }),
3620
3623
  /* @__PURE__ */ e(G, { children: n ? (
3621
3624
  // Skeleton loading state
@@ -3765,7 +3768,7 @@ function Mu({ manufacturer: t, readonly: r = !1, isLoading: n }) {
3765
3768
  console.error("Error updating", c);
3766
3769
  }
3767
3770
  };
3768
- return /* @__PURE__ */ a(q, { children: [
3771
+ return /* @__PURE__ */ a(Q, { children: [
3769
3772
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Open to Work with Resellers" }) }),
3770
3773
  /* @__PURE__ */ e(G, { children: n ? (
3771
3774
  // Skeleton loading state
@@ -3835,7 +3838,7 @@ function Ou({ manufacturer: t, readonly: r = !1, isLoading: n, onUnsavedChanges:
3835
3838
  { key: "publicResources", apiKey: "PublicResourcesLink", value: k.publicResources }
3836
3839
  ];
3837
3840
  for (const I of M) {
3838
- const $ = I.value, Q = t?.[I.apiKey], z = typeof Q == "boolean" ? String(Q) : Q;
3841
+ const $ = I.value, q = t?.[I.apiKey], z = typeof q == "boolean" ? String(q) : q;
3839
3842
  if ($ !== z && $ !== void 0) {
3840
3843
  L = !0;
3841
3844
  try {
@@ -3861,7 +3864,7 @@ function Ou({ manufacturer: t, readonly: r = !1, isLoading: n, onUnsavedChanges:
3861
3864
  }, S = (k) => !k || k.trim() === "", A = (k) => {
3862
3865
  u(k);
3863
3866
  };
3864
- return /* @__PURE__ */ a(q, { children: [
3867
+ return /* @__PURE__ */ a(Q, { children: [
3865
3868
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Public Information" }) }),
3866
3869
  /* @__PURE__ */ e(G, { children: n ? (
3867
3870
  // Skeleton loading state
@@ -4042,7 +4045,7 @@ function Eu({ manufacturer: t, readonly: r = !1, isLoading: n, onUnsavedChanges:
4042
4045
  variant: "destructive"
4043
4046
  });
4044
4047
  }, y = /^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})([/\w .-]*)*\/?(\?[^\s#]*)??(#[^\s]*)?$/i;
4045
- return /* @__PURE__ */ a(q, { children: [
4048
+ return /* @__PURE__ */ a(Q, { children: [
4046
4049
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Qualifications" }) }),
4047
4050
  /* @__PURE__ */ e(G, { children: n ? (
4048
4051
  // Skeleton loading state
@@ -4154,7 +4157,7 @@ function Lu({ manufacturerId: t, userEmail: r, isLoading: n }) {
4154
4157
  }
4155
4158
  ]
4156
4159
  }
4157
- ], [w, { isLoading: x }] = So(), [b, { isLoading: y }] = Co(), [C, { isLoading: S }] = ko(), [A, { isLoading: k }] = Ro(), [D, { isLoading: L }] = Po(), [M, { isLoading: I }] = Ao(), $ = x || y || S || k || L || I, Q = (V) => {
4160
+ ], [w, { isLoading: x }] = So(), [b, { isLoading: y }] = Co(), [C, { isLoading: S }] = ko(), [A, { isLoading: k }] = Ro(), [D, { isLoading: L }] = Po(), [M, { isLoading: I }] = Ao(), $ = x || y || S || k || L || I, q = (V) => {
4158
4161
  l(V), d(!0);
4159
4162
  }, z = (V) => {
4160
4163
  d(V), V || (m(void 0), g(void 0));
@@ -4226,7 +4229,7 @@ function Lu({ manufacturerId: t, userEmail: r, isLoading: n }) {
4226
4229
  return "Enter the email address where you would like to receive the report.";
4227
4230
  }
4228
4231
  };
4229
- return /* @__PURE__ */ a(q, { children: [
4232
+ return /* @__PURE__ */ a(Q, { children: [
4230
4233
  /* @__PURE__ */ a(Z, { children: [
4231
4234
  /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Reports" }),
4232
4235
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Download essential business reports, from your Open Orders & Sales Report, to your Inventory Reports." })
@@ -4259,7 +4262,7 @@ function Lu({ manufacturerId: t, userEmail: r, isLoading: n }) {
4259
4262
  variant: "outline",
4260
4263
  size: "sm",
4261
4264
  className: "flex items-center gap-1",
4262
- onClick: () => Q(se),
4265
+ onClick: () => q(se),
4263
4266
  children: [
4264
4267
  /* @__PURE__ */ e(Ca, { className: "h-4 w-4" }),
4265
4268
  "Request"
@@ -4400,27 +4403,27 @@ function Fu(t) {
4400
4403
  amount: o.delayed.amount
4401
4404
  }
4402
4405
  ];
4403
- return n || t.isLoading ? /* @__PURE__ */ a(q, { className: "w-full", children: [
4406
+ return n || t.isLoading ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
4404
4407
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
4405
4408
  /* @__PURE__ */ a(G, { children: [
4406
4409
  /* @__PURE__ */ e(f, { className: "h-4 w-40 mb-4" }),
4407
4410
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: [1, 2, 3, 4].map((h) => /* @__PURE__ */ e(f, { className: "h-32 w-full" }, h)) })
4408
4411
  ] })
4409
- ] }) : s ? /* @__PURE__ */ a(q, { className: "w-full", children: [
4412
+ ] }) : s ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
4410
4413
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
4411
4414
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ a(Tt, { variant: "destructive", children: [
4412
4415
  /* @__PURE__ */ e(Nt, { className: "h-4 w-4" }),
4413
4416
  /* @__PURE__ */ e(Ot, { children: "Error" }),
4414
4417
  /* @__PURE__ */ e(Et, { children: "Failed to load reseller orders. Please try again later." })
4415
4418
  ] }) })
4416
- ] }) : /* @__PURE__ */ a(q, { className: "w-full", children: [
4419
+ ] }) : /* @__PURE__ */ a(Q, { className: "w-full", children: [
4417
4420
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
4418
4421
  /* @__PURE__ */ a(G, { children: [
4419
4422
  /* @__PURE__ */ a("div", { className: "flex items-center mb-4", children: [
4420
4423
  /* @__PURE__ */ e("span", { className: "text-sm font-medium", children: "Active Orders:" }),
4421
4424
  /* @__PURE__ */ e("span", { className: "ml-2 font-bold", children: o.all.orders })
4422
4425
  ] }),
4423
- /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: u.map((h) => /* @__PURE__ */ e(q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
4426
+ /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: u.map((h) => /* @__PURE__ */ e(Q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
4424
4427
  /* @__PURE__ */ e("div", { className: `${h.stripeClass} h-[3px]` }),
4425
4428
  /* @__PURE__ */ a("div", { className: "p-6 border border-t-0", children: [
4426
4429
  /* @__PURE__ */ a("div", { className: "flex justify-between items-center mb-4", children: [
@@ -4473,7 +4476,7 @@ function $u(t) {
4473
4476
  function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4474
4477
  const s = r?.SalesLast30Days ?? 0, i = r?.SalesLast3Months ?? 0, l = r?.SalesYearToDay ?? 0, o = $u(t);
4475
4478
  return n ? /* @__PURE__ */ a("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
4476
- /* @__PURE__ */ a(q, { children: [
4479
+ /* @__PURE__ */ a(Q, { children: [
4477
4480
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4478
4481
  /* @__PURE__ */ e(f, { className: "h-5 w-24" }),
4479
4482
  /* @__PURE__ */ e(f, { className: "h-8 w-8 rounded-full" })
@@ -4483,7 +4486,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4483
4486
  /* @__PURE__ */ e(f, { className: "h-4 w-24" })
4484
4487
  ] })
4485
4488
  ] }),
4486
- /* @__PURE__ */ a(q, { children: [
4489
+ /* @__PURE__ */ a(Q, { children: [
4487
4490
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4488
4491
  /* @__PURE__ */ e(f, { className: "h-5 w-28" }),
4489
4492
  /* @__PURE__ */ e(f, { className: "h-8 w-8 rounded-full" })
@@ -4493,7 +4496,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4493
4496
  /* @__PURE__ */ e(f, { className: "h-4 w-24" })
4494
4497
  ] })
4495
4498
  ] }),
4496
- /* @__PURE__ */ a(q, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
4499
+ /* @__PURE__ */ a(Q, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
4497
4500
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4498
4501
  /* @__PURE__ */ e(f, { className: "h-5 w-36" }),
4499
4502
  /* @__PURE__ */ e(f, { className: "h-8 w-8 rounded-full" })
@@ -4504,7 +4507,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4504
4507
  ] })
4505
4508
  ] })
4506
4509
  ] }) : /* @__PURE__ */ a("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
4507
- /* @__PURE__ */ a(q, { children: [
4510
+ /* @__PURE__ */ a(Q, { children: [
4508
4511
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4509
4512
  /* @__PURE__ */ e(fe, { className: "text-sm font-medium", children: "Last 30 Days" }),
4510
4513
  /* @__PURE__ */ e("div", { className: "p-2 rounded-full bg-muted", children: /* @__PURE__ */ e(il, { className: "size-4 shrink-0 text-muted-foreground" }) })
@@ -4514,7 +4517,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4514
4517
  /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground" })
4515
4518
  ] })
4516
4519
  ] }),
4517
- /* @__PURE__ */ a(q, { children: [
4520
+ /* @__PURE__ */ a(Q, { children: [
4518
4521
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4519
4522
  /* @__PURE__ */ e(fe, { className: "text-sm font-medium", children: "Last 3 Months" }),
4520
4523
  /* @__PURE__ */ e("div", { className: "p-2 rounded-full bg-muted", children: /* @__PURE__ */ e(wt, { className: "size-4 shrink-0 text-muted-foreground" }) })
@@ -4524,7 +4527,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4524
4527
  /* @__PURE__ */ e("p", { className: "text-xs text-muted-foreground" })
4525
4528
  ] })
4526
4529
  ] }),
4527
- o && /* @__PURE__ */ a(q, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
4530
+ o && /* @__PURE__ */ a(Q, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
4528
4531
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
4529
4532
  /* @__PURE__ */ a(fe, { className: "text-sm font-medium", children: [
4530
4533
  "Year to Date (",
@@ -4540,7 +4543,7 @@ function li({ fiscalYearMonthStart: t, salesData: r, isLoading: n }) {
4540
4543
  ] })
4541
4544
  ] });
4542
4545
  }
4543
- const q = P.forwardRef(({ className: t, ...r }, n) => /* @__PURE__ */ e(
4546
+ const Q = P.forwardRef(({ className: t, ...r }, n) => /* @__PURE__ */ e(
4544
4547
  "div",
4545
4548
  {
4546
4549
  ref: n,
@@ -4551,7 +4554,7 @@ const q = P.forwardRef(({ className: t, ...r }, n) => /* @__PURE__ */ e(
4551
4554
  ...r
4552
4555
  }
4553
4556
  ));
4554
- q.displayName = "Card";
4557
+ Q.displayName = "Card";
4555
4558
  const Z = P.forwardRef(({ className: t, ...r }, n) => /* @__PURE__ */ e(
4556
4559
  "div",
4557
4560
  {
@@ -4622,7 +4625,7 @@ function Bu({
4622
4625
  }, {
4623
4626
  skip: !t?.ManufacturerId
4624
4627
  }), l = t?.DefaultMaxInventoryValue ?? 0, o = n.reduce((d, c) => d + (c.InventoryValue || 0), 0), u = l - o, h = l > 0 ? Math.round(o / l * 100) : 0;
4625
- return r || s || i ? /* @__PURE__ */ a(q, { children: [
4628
+ return r || s || i ? /* @__PURE__ */ a(Q, { children: [
4626
4629
  /* @__PURE__ */ a(Z, { children: [
4627
4630
  /* @__PURE__ */ e(f, { className: "h-7 w-3/4" }),
4628
4631
  /* @__PURE__ */ e(f, { className: "h-5 w-1/2 mt-2" })
@@ -4650,7 +4653,7 @@ function Bu({
4650
4653
  /* @__PURE__ */ e(f, { className: "h-2 w-full" })
4651
4654
  ] })
4652
4655
  ] })
4653
- ] }) : /* @__PURE__ */ a(q, { children: [
4656
+ ] }) : /* @__PURE__ */ a(Q, { children: [
4654
4657
  /* @__PURE__ */ a(Z, { children: [
4655
4658
  /* @__PURE__ */ a(fe, { className: "flex items-center gap-2", children: [
4656
4659
  /* @__PURE__ */ e(ka, { className: "h-5 w-5 text-muted-foreground" }),
@@ -4703,7 +4706,7 @@ function zu({
4703
4706
  isLoading: r
4704
4707
  }) {
4705
4708
  const n = t?.CreditLimit ?? 0, s = t?.OutstandingBalance ?? 0, i = n - s, l = Math.round(s / n * 100);
4706
- return r ? /* @__PURE__ */ a(q, { children: [
4709
+ return r ? /* @__PURE__ */ a(Q, { children: [
4707
4710
  /* @__PURE__ */ a(Z, { children: [
4708
4711
  /* @__PURE__ */ e(f, { className: "h-7 w-3/4" }),
4709
4712
  /* @__PURE__ */ e(f, { className: "h-5 w-1/2 mt-2" })
@@ -4731,7 +4734,7 @@ function zu({
4731
4734
  /* @__PURE__ */ e(f, { className: "h-2 w-full" })
4732
4735
  ] })
4733
4736
  ] })
4734
- ] }) : /* @__PURE__ */ a(q, { children: [
4737
+ ] }) : /* @__PURE__ */ a(Q, { children: [
4735
4738
  /* @__PURE__ */ a(Z, { children: [
4736
4739
  /* @__PURE__ */ a(fe, { className: "flex items-center gap-2", children: [
4737
4740
  /* @__PURE__ */ e(Wa, { className: "h-5 w-5 text-muted-foreground" }),
@@ -4790,7 +4793,7 @@ function on({
4790
4793
  return r ? (
4791
4794
  // --- Loading Skeleton ---
4792
4795
  // A simple skeleton representing the chart area and controls.
4793
- /* @__PURE__ */ a(q, { className: v("w-full", i), children: [
4796
+ /* @__PURE__ */ a(Q, { className: v("w-full", i), children: [
4794
4797
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(f, { className: "h-7 w-48 rounded-md" }) }),
4795
4798
  /* @__PURE__ */ a(G, { children: [
4796
4799
  /* @__PURE__ */ e("div", { style: { height: s }, children: /* @__PURE__ */ e(f, { className: "h-full w-full rounded-md" }) }),
@@ -4803,7 +4806,7 @@ function on({
4803
4806
  ) : (
4804
4807
  // --- Loaded Chart ---
4805
4808
  // Renders the imported SalesChart component with all the necessary props.
4806
- /* @__PURE__ */ a(q, { className: v("w-full", i), children: [
4809
+ /* @__PURE__ */ a(Q, { className: v("w-full", i), children: [
4807
4810
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: n === "week" ? "Weekly Sales Performance" : "Monthly Sales Performance" }) }),
4808
4811
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
4809
4812
  la,
@@ -4849,7 +4852,7 @@ function Vu({
4849
4852
  }) : x);
4850
4853
  }, []), { NavigationGuardDialog: p } = ii(c), g = s ?? l;
4851
4854
  return /* @__PURE__ */ a("div", { className: "@container", children: [
4852
- u ? /* @__PURE__ */ e(q, { className: "p-6", children: /* @__PURE__ */ a(Tt, { variant: "destructive", children: [
4855
+ u ? /* @__PURE__ */ e(Q, { className: "p-6", children: /* @__PURE__ */ a(Tt, { variant: "destructive", children: [
4853
4856
  /* @__PURE__ */ e(Nt, { className: "h-4 w-4" }),
4854
4857
  /* @__PURE__ */ e(Ot, { children: "Error" }),
4855
4858
  /* @__PURE__ */ e(Et, { children: "There was an error loading your manufacturer information. Please try again later." })
@@ -4973,7 +4976,7 @@ function Uu(t) {
4973
4976
  const { data: r, isLoading: n, isFetching: s } = Ss(
4974
4977
  { routeResellerId: t.appID, manufacturerId: t.manufID, categoryCode: t.categoryCode }
4975
4978
  );
4976
- return /* @__PURE__ */ e(q, { className: "w-full", children: /* @__PURE__ */ e(G, { className: "p-4 space-y-1", children: /* @__PURE__ */ a(U, { children: [
4979
+ return /* @__PURE__ */ e(Q, { className: "w-full", children: /* @__PURE__ */ e(G, { className: "p-4 space-y-1", children: /* @__PURE__ */ a(U, { children: [
4977
4980
  /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground mb-2", children: t.categoryName }),
4978
4981
  /* @__PURE__ */ e(
4979
4982
  la,
@@ -5045,7 +5048,7 @@ function qu({
5045
5048
  isLoading: l = !1,
5046
5049
  children: o
5047
5050
  }) {
5048
- return l ? /* @__PURE__ */ a(q, { children: [
5051
+ return l ? /* @__PURE__ */ a(Q, { children: [
5049
5052
  /* @__PURE__ */ e(Z, { className: "pb-4", children: /* @__PURE__ */ a("div", { className: "flex items-start justify-between", children: [
5050
5053
  /* @__PURE__ */ e("div", { className: "space-y-1 flex-1", children: /* @__PURE__ */ a("div", { className: "space-y-1", children: [
5051
5054
  /* @__PURE__ */ e("div", { className: "h-3 w-28 bg-muted rounded-md animate-pulse" }),
@@ -5078,7 +5081,7 @@ function qu({
5078
5081
  ] })
5079
5082
  ] })
5080
5083
  ] })
5081
- ] }) : /* @__PURE__ */ e(q, { children: /* @__PURE__ */ a(G, { className: "grid grid-cols-[1fr_auto] items-start gap-4 pt-6", children: [
5084
+ ] }) : /* @__PURE__ */ e(Q, { children: /* @__PURE__ */ a(G, { className: "grid grid-cols-[1fr_auto] items-start gap-4 pt-6", children: [
5082
5085
  /* @__PURE__ */ a("div", { className: "flex flex-col items-start gap-4", children: [
5083
5086
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
5084
5087
  /* @__PURE__ */ e("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Category Name" }),
@@ -5623,7 +5626,7 @@ const Gu = ({ reseller: t, appID: r, isLoading: n, readonly: s, onUnsavedChanges
5623
5626
  variant: "destructive"
5624
5627
  });
5625
5628
  }, C = (S) => !S || S.trim() === "";
5626
- return n ? /* @__PURE__ */ a(q, { children: [
5629
+ return n ? /* @__PURE__ */ a(Q, { children: [
5627
5630
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: "Public Information" }) }),
5628
5631
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ a("div", { className: "space-y-4", children: [
5629
5632
  /* @__PURE__ */ a("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: [
@@ -5646,7 +5649,7 @@ const Gu = ({ reseller: t, appID: r, isLoading: n, readonly: s, onUnsavedChanges
5646
5649
  ] }),
5647
5650
  /* @__PURE__ */ e("div", { className: "flex justify-end", children: /* @__PURE__ */ e(f, { className: "h-10 w-20" }) })
5648
5651
  ] }) })
5649
- ] }) : /* @__PURE__ */ a(q, { children: [
5652
+ ] }) : /* @__PURE__ */ a(Q, { children: [
5650
5653
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ a(fe, { className: "text-1xl font-bold", children: [
5651
5654
  "Public Information ",
5652
5655
  s ? "(read only)" : ""
@@ -5802,7 +5805,7 @@ function Ku({ appID: t, reseller: r, isLoading: n, withoutReports: s, userEmail:
5802
5805
  } finally {
5803
5806
  O ? c(!1) : p(!1);
5804
5807
  }
5805
- }, [Q] = ks(), z = async () => {
5808
+ }, [q] = ks(), z = async () => {
5806
5809
  if (!b || !/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(b)) {
5807
5810
  o({
5808
5811
  title: "Invalid Email",
@@ -5813,7 +5816,7 @@ function Ku({ appID: t, reseller: r, isLoading: n, withoutReports: s, userEmail:
5813
5816
  }
5814
5817
  N(!0);
5815
5818
  try {
5816
- await Q({
5819
+ await q({
5817
5820
  routeResellerId: t,
5818
5821
  emailAddress: b
5819
5822
  }).unwrap(), o({
@@ -5832,7 +5835,7 @@ function Ku({ appID: t, reseller: r, isLoading: n, withoutReports: s, userEmail:
5832
5835
  }
5833
5836
  };
5834
5837
  if (n)
5835
- return /* @__PURE__ */ a(q, { className: "w-full", children: [
5838
+ return /* @__PURE__ */ a(Q, { className: "w-full", children: [
5836
5839
  /* @__PURE__ */ e(Z, { className: "border-b p-6 md:p-5", children: /* @__PURE__ */ e(f, { className: "h-6 w-36" }) }),
5837
5840
  /* @__PURE__ */ a(G, { className: "p-6 md:p-5", children: [
5838
5841
  /* @__PURE__ */ a("div", { className: "grid sm:grid-cols-2 sm:divide-x divide-border", children: [
@@ -5859,7 +5862,7 @@ function Ku({ appID: t, reseller: r, isLoading: n, withoutReports: s, userEmail:
5859
5862
  ] });
5860
5863
  const _ = !s;
5861
5864
  return /* @__PURE__ */ a(U, { children: [
5862
- /* @__PURE__ */ a(q, { className: "w-full", children: [
5865
+ /* @__PURE__ */ a(Q, { className: "w-full", children: [
5863
5866
  /* @__PURE__ */ e(Z, { className: "border-b p-6 md:p-5", children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Billing Overview" }) }),
5864
5867
  /* @__PURE__ */ a(G, { className: "p-6 md:p-5", children: [
5865
5868
  /* @__PURE__ */ a("div", { className: "grid sm:grid-cols-2 sm:divide-x divide-border", children: [
@@ -6077,7 +6080,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
6077
6080
  S(O);
6078
6081
  const V = D(O);
6079
6082
  L("PriceProfile", V, `Pricing profile updated to ${V}`, "Failed to update pricing profile");
6080
- }, Q = async () => {
6083
+ }, q = async () => {
6081
6084
  try {
6082
6085
  const O = await c({ applicationId: s, fieldName: "Tier", newValue: h });
6083
6086
  O.error ? l({ title: "Error", description: "Failed to update reseller", variant: "destructive" }) : O.data ? l({ title: "Success", description: `Pricing Tier changed to ${h}`, variant: "success" }) : l({ title: "Considered", description: "Request being considered", variant: "success" });
@@ -6094,7 +6097,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
6094
6097
  ], _ = (O) => {
6095
6098
  d(O), u(!0);
6096
6099
  };
6097
- return i ? /* @__PURE__ */ a(q, { className: "w-full", children: [
6100
+ return i ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
6098
6101
  /* @__PURE__ */ e(Z, { className: "pb-2", children: /* @__PURE__ */ a("div", { className: "flex items-center justify-between", children: [
6099
6102
  /* @__PURE__ */ e(f, { className: "h-6 w-28" }),
6100
6103
  /* @__PURE__ */ e(f, { className: "h-6 w-16 rounded-full" })
@@ -6117,7 +6120,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
6117
6120
  ] })
6118
6121
  ] })
6119
6122
  ] }) : /* @__PURE__ */ a(U, { children: [
6120
- /* @__PURE__ */ a(q, { className: "w-full", children: [
6123
+ /* @__PURE__ */ a(Q, { className: "w-full", children: [
6121
6124
  /* @__PURE__ */ a(Z, { className: "pb-2 pt-4 px-4 flex flex-row items-center justify-between", children: [
6122
6125
  /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Account Tier" }),
6123
6126
  /* @__PURE__ */ e(xe, { variant: "success", className: "text-xs", children: "Active" })
@@ -6185,8 +6188,8 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
6185
6188
  ] })
6186
6189
  ] })
6187
6190
  ] }),
6188
- /* @__PURE__ */ e(Yu, { isLoading: m, open: o, setOpen: u, tier: h, onTierChange: Q }),
6189
- t && !r && /* @__PURE__ */ a(q, { className: "mt-4", children: [
6191
+ /* @__PURE__ */ e(Yu, { isLoading: m, open: o, setOpen: u, tier: h, onTierChange: q }),
6192
+ t && !r && /* @__PURE__ */ a(Q, { className: "mt-4", children: [
6190
6193
  /* @__PURE__ */ e(Z, { className: "pb-2 pt-3 px-4", children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Admin Configuration" }) }),
6191
6194
  /* @__PURE__ */ e(G, { className: "pt-2 px-4 pb-4", children: /* @__PURE__ */ a("div", { className: "space-y-3", children: [
6192
6195
  /* @__PURE__ */ a("div", { className: "bg-muted/30 p-2 rounded-lg", children: [
@@ -6253,9 +6256,9 @@ function tm({ openOrders: t = [], isLoading: r = !1 }) {
6253
6256
  amount: d
6254
6257
  }
6255
6258
  ];
6256
- return r ? /* @__PURE__ */ a(q, { className: "w-full", children: [
6259
+ return r ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
6257
6260
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(f, { className: "h-7 w-40" }) }),
6258
- /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: [1, 2, 3, 4].map((w) => /* @__PURE__ */ e(q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
6261
+ /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: [1, 2, 3, 4].map((w) => /* @__PURE__ */ e(Q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
6259
6262
  /* @__PURE__ */ e("div", { className: "bg-border h-[3px]" }),
6260
6263
  /* @__PURE__ */ a("div", { className: "p-6 border border-t-0", children: [
6261
6264
  /* @__PURE__ */ a("div", { className: "flex justify-between items-center mb-4", children: [
@@ -6274,9 +6277,9 @@ function tm({ openOrders: t = [], isLoading: r = !1 }) {
6274
6277
  ] })
6275
6278
  ] })
6276
6279
  ] }) }, w)) }) })
6277
- ] }) : /* @__PURE__ */ a(q, { className: "w-full", children: [
6280
+ ] }) : /* @__PURE__ */ a(Q, { className: "w-full", children: [
6278
6281
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Order Categories" }) }),
6279
- /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: N.map((w) => /* @__PURE__ */ e(q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
6282
+ /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: N.map((w) => /* @__PURE__ */ e(Q, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ a(G, { className: "p-0", children: [
6280
6283
  /* @__PURE__ */ e("div", { className: `${w.stripeClass} h-[3px]` }),
6281
6284
  /* @__PURE__ */ a("div", { className: "p-6 border border-t-0", children: [
6282
6285
  /* @__PURE__ */ a("div", { className: "flex justify-between items-center mb-4", children: [
@@ -6365,7 +6368,7 @@ function am({ isLoading: t, userEmail: r, appID: n }) {
6365
6368
  }
6366
6369
  ], $ = async (_) => {
6367
6370
  b(_), _.id === "Products" && D("all"), A(!0);
6368
- }, Q = async () => {
6371
+ }, q = async () => {
6369
6372
  if (!(!x || !n))
6370
6373
  try {
6371
6374
  switch (x.id) {
@@ -6423,7 +6426,7 @@ function am({ isLoading: t, userEmail: r, appID: n }) {
6423
6426
  });
6424
6427
  }
6425
6428
  }, z = d || m || u || l || w || g;
6426
- return /* @__PURE__ */ a(q, { children: [
6429
+ return /* @__PURE__ */ a(Q, { children: [
6427
6430
  /* @__PURE__ */ a(Z, { children: [
6428
6431
  /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Reports" }),
6429
6432
  /* @__PURE__ */ e("p", { className: "text-sm text-muted-foreground", children: "Download essential business reports, from your Product List to your Order Details." })
@@ -6513,7 +6516,7 @@ function am({ isLoading: t, userEmail: r, appID: n }) {
6513
6516
  /* @__PURE__ */ e(Ge, { children: "The report will take around 5 minutes to generate." }),
6514
6517
  /* @__PURE__ */ a(Ke, { children: [
6515
6518
  /* @__PURE__ */ e(E, { variant: "outline", onClick: () => A(!1), children: "Cancel" }),
6516
- /* @__PURE__ */ e(E, { onClick: Q, disabled: !y || z, children: z ? /* @__PURE__ */ a(U, { children: [
6519
+ /* @__PURE__ */ e(E, { onClick: q, disabled: !y || z, children: z ? /* @__PURE__ */ a(U, { children: [
6517
6520
  /* @__PURE__ */ e(he, { className: "mr-2 h-4 w-4 animate-spin" }),
6518
6521
  "Sending..."
6519
6522
  ] }) : "Send Report" })
@@ -6681,7 +6684,7 @@ function va({
6681
6684
  { skip: !o }
6682
6685
  ), w = N?.IsReseller;
6683
6686
  if (l || !t)
6684
- return /* @__PURE__ */ a(q, { className: "flex flex-col h-full", children: [
6687
+ return /* @__PURE__ */ a(Q, { className: "flex flex-col h-full", children: [
6685
6688
  /* @__PURE__ */ a(Z, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
6686
6689
  /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
6687
6690
  /* @__PURE__ */ e(f, { className: "h-12 w-12 rounded-md" }),
@@ -6740,7 +6743,7 @@ function va({
6740
6743
  });
6741
6744
  }
6742
6745
  };
6743
- return /* @__PURE__ */ a(q, { className: "flex flex-col h-full", children: [
6746
+ return /* @__PURE__ */ a(Q, { className: "flex flex-col h-full", children: [
6744
6747
  /* @__PURE__ */ e(
6745
6748
  cn,
6746
6749
  {
@@ -6903,8 +6906,8 @@ function ui({
6903
6906
  const { inventoryQuantity: k, totalIncomingQuantity: D } = ye(() => {
6904
6907
  if (!A || A.length === 0)
6905
6908
  return { inventoryQuantity: 0, totalIncomingQuantity: 0 };
6906
- const $ = A.reduce((z, _) => z + (_.AvailableQuantity || 0), 0), Q = A.reduce((z, _) => z + (_.PurchaseOrderQuantity || 0), 0);
6907
- return { inventoryQuantity: $, totalIncomingQuantity: Q };
6909
+ const $ = A.reduce((z, _) => z + (_.AvailableQuantity || 0), 0), q = A.reduce((z, _) => z + (_.PurchaseOrderQuantity || 0), 0);
6910
+ return { inventoryQuantity: $, totalIncomingQuantity: q };
6908
6911
  }, [A]);
6909
6912
  if (w || x || y || C)
6910
6913
  return /* @__PURE__ */ e("div", { ref: l, children: /* @__PURE__ */ e(f, { className: v("h-10 w-36 rounded-md", i) }) });
@@ -7113,7 +7116,7 @@ function Za({
7113
7116
  }
7114
7117
  return u;
7115
7118
  }, [r]), o = r || [];
7116
- return n ? /* @__PURE__ */ a(q, { className: "w-full", children: [
7119
+ return n ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
7117
7120
  /* @__PURE__ */ a(Z, { children: [
7118
7121
  " ",
7119
7122
  /* @__PURE__ */ e(f, { className: "h-7 w-48" }),
@@ -7134,7 +7137,7 @@ function Za({
7134
7137
  ] })
7135
7138
  ] })
7136
7139
  ] })
7137
- ] }) : /* @__PURE__ */ a(q, { className: "w-full", children: [
7140
+ ] }) : /* @__PURE__ */ a(Q, { className: "w-full", children: [
7138
7141
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: s }) }),
7139
7142
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(Qt, { columns: i, data: o, uniqueValues: l }) })
7140
7143
  ] });
@@ -7167,13 +7170,13 @@ function rm({
7167
7170
  }, { skip: !t || !m }), [w, x] = T({
7168
7171
  publicInfo: { hasUnsavedChanges: !1 }
7169
7172
  }), b = ae(() => n ? !1 : w.publicInfo.hasUnsavedChanges, [n, w]), y = ae((I, $) => {
7170
- x((Q) => Q[I]?.hasUnsavedChanges !== $.hasUnsavedChanges ? {
7171
- ...Q,
7173
+ x((q) => q[I]?.hasUnsavedChanges !== $.hasUnsavedChanges ? {
7174
+ ...q,
7172
7175
  [I]: $
7173
- } : Q);
7176
+ } : q);
7174
7177
  }, []), { NavigationGuardDialog: C } = ii(b), S = p ?? r, A = g && !S, k = N && !S, D = !n || !!S?.Statement && (S.Statement.Total ?? 0) !== 0, L = S?.QualifiedManufacturers ?? [], M = S?.Qualifications ?? [];
7175
7178
  return /* @__PURE__ */ a("div", { className: "@container", children: [
7176
- k ? /* @__PURE__ */ e(q, { className: "p-6", children: /* @__PURE__ */ a(Tt, { variant: "destructive", children: [
7179
+ k ? /* @__PURE__ */ e(Q, { className: "p-6", children: /* @__PURE__ */ a(Tt, { variant: "destructive", children: [
7177
7180
  /* @__PURE__ */ e(Nt, { className: "h-4 w-4" }),
7178
7181
  /* @__PURE__ */ e(Ot, { children: "Error" }),
7179
7182
  /* @__PURE__ */ e(Et, { children: "There was an error loading your reseller information. Please try again later." })
@@ -7226,7 +7229,7 @@ function rm({
7226
7229
  isLoading: A
7227
7230
  }
7228
7231
  ),
7229
- A || L.length > 0 ? /* @__PURE__ */ a(q, { className: "w-full", children: [
7232
+ A || L.length > 0 ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
7230
7233
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: "Manufacturers you are qualified for" }) }),
7231
7234
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e("div", { className: "grid @lg:grid-cols-2 gap-4", children: A ? Array.from({ length: 2 }).map((I, $) => /* @__PURE__ */ e(va, { loading: !0 }, $)) : L.map((I) => /* @__PURE__ */ e(
7232
7235
  va,
@@ -7545,7 +7548,7 @@ function sm({
7545
7548
  className: s,
7546
7549
  withAbout: i = !1
7547
7550
  }) {
7548
- return n || !t ? /* @__PURE__ */ a(q, { className: `flex flex-col h-full ${s}`, children: [
7551
+ return n || !t ? /* @__PURE__ */ a(Q, { className: `flex flex-col h-full ${s}`, children: [
7549
7552
  /* @__PURE__ */ e(Z, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
7550
7553
  /* @__PURE__ */ e(f, { className: "h-12 w-12 rounded-md" }),
7551
7554
  /* @__PURE__ */ a("div", { children: [
@@ -7572,7 +7575,7 @@ function sm({
7572
7575
  /* @__PURE__ */ e(f, { className: "h-9 w-32" }),
7573
7576
  /* @__PURE__ */ e(f, { className: "h-9 w-48" })
7574
7577
  ] })
7575
- ] }) : /* @__PURE__ */ a(q, { className: `flex flex-col h-full ${s}`, children: [
7578
+ ] }) : /* @__PURE__ */ a(Q, { className: `flex flex-col h-full ${s}`, children: [
7576
7579
  /* @__PURE__ */ e(
7577
7580
  cn,
7578
7581
  {
@@ -7612,7 +7615,7 @@ function im({
7612
7615
  loading: l = !1
7613
7616
  }) {
7614
7617
  if (l || !t)
7615
- return /* @__PURE__ */ a(q, { className: "flex flex-col h-full", children: [
7618
+ return /* @__PURE__ */ a(Q, { className: "flex flex-col h-full", children: [
7616
7619
  /* @__PURE__ */ e(Z, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ a("div", { className: "flex items-center gap-3", children: [
7617
7620
  /* @__PURE__ */ e(f, { className: "h-12 w-12 rounded-md" }),
7618
7621
  /* @__PURE__ */ a("div", { children: [
@@ -7652,7 +7655,7 @@ function im({
7652
7655
  const N = g.toLowerCase();
7653
7656
  return N.includes("starter") || N.includes("basic") ? "secondary" : N.includes("exclusive") || N.includes("jean coutu") || N.includes("novexco") || N.includes("coopsco") ? "success" : "info";
7654
7657
  };
7655
- return /* @__PURE__ */ a(q, { className: "flex flex-col h-full", children: [
7658
+ return /* @__PURE__ */ a(Q, { className: "flex flex-col h-full", children: [
7656
7659
  /* @__PURE__ */ e(
7657
7660
  cn,
7658
7661
  {
@@ -7939,7 +7942,7 @@ function um({ orders: t, loading: r = !1 }) {
7939
7942
  amount: n.delayed.amount
7940
7943
  }
7941
7944
  ];
7942
- return r ? /* @__PURE__ */ a(q, { className: "@container", children: [
7945
+ return r ? /* @__PURE__ */ a(Q, { className: "@container", children: [
7943
7946
  /* @__PURE__ */ e(Z, { className: "pb-0", children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Active Orders" }) }),
7944
7947
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-4 p-4", children: [1, 2, 3, 4].map((i) => /* @__PURE__ */ a("div", { className: "overflow-hidden rounded-md border", children: [
7945
7948
  /* @__PURE__ */ e("div", { className: "bg-border h-[3px]" }),
@@ -7960,7 +7963,7 @@ function um({ orders: t, loading: r = !1 }) {
7960
7963
  ] })
7961
7964
  ] })
7962
7965
  ] }, i)) })
7963
- ] }) : /* @__PURE__ */ a(q, { className: "@container", children: [
7966
+ ] }) : /* @__PURE__ */ a(Q, { className: "@container", children: [
7964
7967
  /* @__PURE__ */ e(Z, { className: "pb-0", children: /* @__PURE__ */ e(fe, { className: "text-base font-medium text-foreground", children: "Active Orders" }) }),
7965
7968
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-4 p-4", children: s.map((i) => /* @__PURE__ */ a("div", { className: "overflow-hidden rounded-md border", children: [
7966
7969
  /* @__PURE__ */ e("div", { className: `${i.stripeClass} h-[3px]` }),
@@ -8282,7 +8285,7 @@ async function Sm(t) {
8282
8285
  if ((c === "post" || c === "put") && m.requestBody) {
8283
8286
  const M = wm(m.requestBody), I = m.requestBody.description || bm;
8284
8287
  if (M && Nm(M) && M.$ref.startsWith("#/components/schemas/")) {
8285
- const $ = M.$ref.substring(21), Q = l.components.schemas[$], z = vm(Q) ? Q.properties : void 0, _ = z ? JSON.stringify(z) : "Refer to API schema for details.";
8288
+ const $ = M.$ref.substring(21), q = l.components.schemas[$], z = vm(q) ? q.properties : void 0, _ = z ? JSON.stringify(z) : "Refer to API schema for details.";
8286
8289
  x[_a] = {
8287
8290
  type: "string",
8288
8291
  description: `${I}. Must be a JSON string with these properties: ${_}`
@@ -8311,10 +8314,10 @@ ${m.description}` : m.summary || `${c.toUpperCase()} ${p[p.length - 1]}`,
8311
8314
  const Qe = `{${Re}}`, We = M[Re];
8312
8315
  We != null && (I = I.replace(Qe, encodeURIComponent(String(We))));
8313
8316
  });
8314
- const $ = At(I, n), Q = localStorage.getItem("access_token"), z = {
8317
+ const $ = At(I, n), q = localStorage.getItem("access_token"), z = {
8315
8318
  method: c.toUpperCase(),
8316
8319
  headers: {
8317
- Authorization: Q ? `Bearer ${Q}` : "",
8320
+ Authorization: q ? `Bearer ${q}` : "",
8318
8321
  "Content-Type": "application/json"
8319
8322
  }
8320
8323
  }, _ = new URLSearchParams();
@@ -8396,7 +8399,7 @@ function Cm({ userId: t, apiConfig: r, onGeneratedImageUploaded: n }) {
8396
8399
  }, [s, d]), K(() => {
8397
8400
  D.current = w;
8398
8401
  }, [w]);
8399
- const Q = (H) => {
8402
+ const q = (H) => {
8400
8403
  if (!H) return !1;
8401
8404
  const Y = H, J = typeof Y.name == "string" ? Y.name : "", te = typeof Y.message == "string" ? Y.message : "", Ne = typeof Y.error == "string" ? Y.error : "";
8402
8405
  return J === "AbortError" || Ne === "AbortError" || te.toLowerCase().includes("abort") || te.toLowerCase().includes("canceled");
@@ -8523,7 +8526,7 @@ function Cm({ userId: t, apiConfig: r, onGeneratedImageUploaded: n }) {
8523
8526
  }
8524
8527
  i("");
8525
8528
  } catch (J) {
8526
- if (S.current = null, console.error("Error during AI interaction:", J), C.current || Q(J)) {
8529
+ if (S.current = null, console.error("Error during AI interaction:", J), C.current || q(J)) {
8527
8530
  i("");
8528
8531
  return;
8529
8532
  }
@@ -8571,7 +8574,7 @@ function Cm({ userId: t, apiConfig: r, onGeneratedImageUploaded: n }) {
8571
8574
  const Me = { Role: "user", Parts: te }, Pe = [...D.current, Me];
8572
8575
  x(Pe), D.current = Pe, J && L.current.set(J, Pe.length - 1), await me(Pe, 100);
8573
8576
  } catch (te) {
8574
- if (A.current = null, console.error("Error processing user request:", te), C.current || Q(te)) {
8577
+ if (A.current = null, console.error("Error processing user request:", te), C.current || q(te)) {
8575
8578
  i("");
8576
8579
  return;
8577
8580
  }
@@ -8689,7 +8692,7 @@ ${B}`;
8689
8692
  botMessages: M,
8690
8693
  clearBotMessages: I,
8691
8694
  botReady: $,
8692
- debugMessages: Q,
8695
+ debugMessages: q,
8693
8696
  botStatus: z,
8694
8697
  reset: _,
8695
8698
  stop: O,
@@ -9113,7 +9116,7 @@ ${de}`
9113
9116
  }, Ui = () => {
9114
9117
  const F = {
9115
9118
  messages: ua(),
9116
- debug: Q
9119
+ debug: q
9117
9120
  };
9118
9121
  h(!0), m({
9119
9122
  applicationId: t,
@@ -9190,7 +9193,7 @@ ${de}`
9190
9193
  const Tn = ce(null);
9191
9194
  K(() => {
9192
9195
  Tn.current?.scrollIntoView({ behavior: "smooth" });
9193
- }, [Q]);
9196
+ }, [q]);
9194
9197
  const Fa = (() => {
9195
9198
  if (!kt) return "Attach files";
9196
9199
  const R = ee.slice(0, 5).map((B) => B.name).join(", "), F = $t > 5 ? ` +${$t - 5} more` : "";
@@ -9506,7 +9509,7 @@ ${de}`
9506
9509
  "Developer Log"
9507
9510
  ] }),
9508
9511
  /* @__PURE__ */ e(Pt, { className: "flex-1 px-4", children: /* @__PURE__ */ a("div", { className: "py-2 text-xs font-mono", children: [
9509
- /* @__PURE__ */ e(km, { debugMessages: Q }),
9512
+ /* @__PURE__ */ e(km, { debugMessages: q }),
9510
9513
  /* @__PURE__ */ e("div", { ref: Tn })
9511
9514
  ] }) })
9512
9515
  ] }) : /* @__PURE__ */ a("div", { className: "flex-1 flex flex-col min-h-0", children: [
@@ -9802,10 +9805,10 @@ const Xn = [
9802
9805
  { id: "other-market", label: "Other (please specify)" }
9803
9806
  ];
9804
9807
  function yi({ applicationId: t, manufacturer: r }) {
9805
- const { toast: n } = Ee(), [s, i] = T(!1), [l, o] = T(!1), [u, h] = T(!1), [d, c] = T(""), [m, p] = T(""), [g, N] = T(!1), [w, x] = T(""), [b, y] = T(""), [C, S] = T([]), [A, k] = T(""), [D, L] = T(""), [M, I] = T([]), [$, Q] = T(""), [z, _] = T(""), [O] = Ka(), V = () => {
9808
+ const { toast: n } = Ee(), [s, i] = T(!1), [l, o] = T(!1), [u, h] = T(!1), [d, c] = T(""), [m, p] = T(""), [g, N] = T(!1), [w, x] = T(""), [b, y] = T(""), [C, S] = T([]), [A, k] = T(""), [D, L] = T(""), [M, I] = T([]), [$, q] = T(""), [z, _] = T(""), [O] = Ka(), V = () => {
9806
9809
  c(""), p("");
9807
9810
  }, se = () => {
9808
- x(""), y(""), S([]), k(""), L(""), I([]), Q(""), _("");
9811
+ x(""), y(""), S([]), k(""), L(""), I([]), q(""), _("");
9809
9812
  }, me = () => {
9810
9813
  r.PartnerRegistrationLink ? i(!0) : r.OpenToWork && o(!0);
9811
9814
  }, Ve = (ie) => {
@@ -9832,9 +9835,9 @@ function yi({ applicationId: t, manufacturer: r }) {
9832
9835
  }
9833
9836
  }, Re = (ie) => {
9834
9837
  if (ie.preventDefault(), g) return;
9835
- y(""), k(""), Q("");
9838
+ y(""), k(""), q("");
9836
9839
  let pe = !1;
9837
- if (w.trim().length < 10 && (y("Please provide a brief description of your business (minimum 10 characters)"), pe = !0), C.length === 0 && (k("Please select at least one sales channel"), pe = !0), M.length === 0 && (Q("Please select at least one market"), pe = !0), pe) return;
9840
+ if (w.trim().length < 10 && (y("Please provide a brief description of your business (minimum 10 characters)"), pe = !0), C.length === 0 && (k("Please select at least one sales channel"), pe = !0), M.length === 0 && (q("Please select at least one market"), pe = !0), pe) return;
9838
9841
  const H = Xn.filter((te) => C.includes(te.id)).map((te) => te.label);
9839
9842
  D && H.push(`Other: ${D}`);
9840
9843
  const Y = es.filter((te) => M.includes(te.id)).map((te) => te.label);
@@ -9865,7 +9868,7 @@ function yi({ applicationId: t, manufacturer: r }) {
9865
9868
  }, Qe = (ie, pe) => {
9866
9869
  S((H) => pe ? [...H, ie] : H.filter((Y) => Y !== ie)), k("");
9867
9870
  }, Ue = (ie, pe) => {
9868
- I((H) => pe ? [...H, ie] : H.filter((Y) => Y !== ie)), Q("");
9871
+ I((H) => pe ? [...H, ie] : H.filter((Y) => Y !== ie)), q("");
9869
9872
  }, We = C.includes("other-channel"), Xe = M.includes("other-market");
9870
9873
  return /* @__PURE__ */ a(U, { children: [
9871
9874
  !r.Qualification && /* @__PURE__ */ a(E, { onClick: me, disabled: !r.PartnerRegistrationLink && !r.OpenToWork, children: [
@@ -10042,7 +10045,7 @@ function Lm({
10042
10045
  Object.keys(b).length > 0 && r(b);
10043
10046
  }
10044
10047
  }, N = (b) => b === -1 ? "ASAP" : b === void 0 || b < 0 || b > 6 ? "Sunday" : Cr[b], w = (b) => b === "ASAP" ? -1 : Cr.indexOf(b), x = Object.keys(p()).length > 0;
10045
- return /* @__PURE__ */ a(q, { children: [
10048
+ return /* @__PURE__ */ a(Q, { children: [
10046
10049
  /* @__PURE__ */ a(Z, { children: [
10047
10050
  n ? /* @__PURE__ */ e(f, { className: "h-8 w-32" }) : /* @__PURE__ */ e(fe, { className: "text-lg font-bold", children: "Reordering" }),
10048
10051
  n ? /* @__PURE__ */ e(f, { className: "h-4 w-full mt-2" }) : /* @__PURE__ */ e(Ia, { className: "text-sm", children: "Adjust your reordering settings to control lead times, stocking weeks, minimum orders, and reorder dates, enhancing efficiency in restocking processes." })
@@ -10425,7 +10428,7 @@ function Vm({
10425
10428
  N(V);
10426
10429
  },
10427
10430
  [A]
10428
- ), $ = P.useCallback(() => I(g - 1), [g, I]), Q = P.useCallback(() => I(g + 1), [g, I]), z = P.useCallback(
10431
+ ), $ = P.useCallback(() => I(g - 1), [g, I]), q = P.useCallback(() => I(g + 1), [g, I]), z = P.useCallback(
10429
10432
  (O) => {
10430
10433
  if (!(A <= 1))
10431
10434
  switch (O.key) {
@@ -10433,7 +10436,7 @@ function Vm({
10433
10436
  O.preventDefault(), $();
10434
10437
  break;
10435
10438
  case "ArrowRight":
10436
- O.preventDefault(), Q();
10439
+ O.preventDefault(), q();
10437
10440
  break;
10438
10441
  case "Home":
10439
10442
  O.preventDefault(), I(0);
@@ -10443,7 +10446,7 @@ function Vm({
10443
10446
  break;
10444
10447
  }
10445
10448
  },
10446
- [Q, $, I, A]
10449
+ [q, $, I, A]
10447
10450
  );
10448
10451
  if (P.useEffect(() => {
10449
10452
  if (!C?.length || A <= 1) return;
@@ -10538,7 +10541,7 @@ function Vm({
10538
10541
  variant: "secondary",
10539
10542
  size: "icon",
10540
10543
  className: "absolute right-2 top-1/2 -translate-y-1/2 bg-background/80 text-foreground shadow-sm ring-1 ring-border/50 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",
10541
- onClick: Q,
10544
+ onClick: q,
10542
10545
  "aria-label": "Next image",
10543
10546
  children: /* @__PURE__ */ e(tr, { className: "h-4 w-4" })
10544
10547
  }
@@ -10581,7 +10584,7 @@ function Wr({
10581
10584
  customAction: u = /* @__PURE__ */ e(U, {}),
10582
10585
  showUsdLabelOnCost: h = !1
10583
10586
  }) {
10584
- const d = vc(), { toast: c } = Ee(), [m, p] = T(1), [g, N] = T(null), [w, x] = T(0), [b, y] = T(!1), [C] = Ko(), [S, A] = T(!1), [k, D] = T(null), [L, M] = T("idle"), [I, $] = T(null), [Q] = Yo(), z = r?.Distribution?.Cost || 0, _ = r?.Distribution?.RegularPrice || 0, O = r?.Distribution?.Price || 0, V = !!(t && r?.RandmarSKU);
10587
+ const d = vc(), { toast: c } = Ee(), [m, p] = T(1), [g, N] = T(null), [w, x] = T(0), [b, y] = T(!1), [C] = Ko(), [S, A] = T(!1), [k, D] = T(null), [L, M] = T("idle"), [I, $] = T(null), [q] = Yo(), z = r?.Distribution?.Cost || 0, _ = r?.Distribution?.RegularPrice || 0, O = r?.Distribution?.Price || 0, V = !!(t && r?.RandmarSKU);
10585
10588
  K(() => {
10586
10589
  p(1), N(null), x(0);
10587
10590
  }, [r?.RandmarSKU]), K(() => {
@@ -10609,7 +10612,7 @@ function Wr({
10609
10612
  return (async () => {
10610
10613
  M("summary"), $(null);
10611
10614
  try {
10612
- const Ie = await Q({
10615
+ const Ie = await q({
10613
10616
  routeApplicationId: t,
10614
10617
  randmarSku: ge,
10615
10618
  withSpecification: !1
@@ -10618,7 +10621,7 @@ function Wr({
10618
10621
  if ("error" in Ie && Ie.error)
10619
10622
  throw Ie.error;
10620
10623
  D(Ie.data ?? null), M("detailed");
10621
- const _e = await Q({
10624
+ const _e = await q({
10622
10625
  routeApplicationId: t,
10623
10626
  randmarSku: ge,
10624
10627
  withSpecification: !0
@@ -10634,10 +10637,10 @@ function Wr({
10634
10637
  })(), () => {
10635
10638
  j = !0;
10636
10639
  };
10637
- }, [t, Q, S, r?.RandmarSKU]);
10640
+ }, [t, q, S, r?.RandmarSKU]);
10638
10641
  const se = (j) => j >= 90 ? { label: "Top 10% Bestseller", color: "text-primary", bgColor: "bg-primary/10" } : j >= 75 ? { label: "Bestseller", color: "text-info", bgColor: "bg-info/10" } : j >= 33 ? { label: "Popular", color: "text-success", bgColor: "bg-success/10" } : { label: "Rising", color: "text-muted-foreground", bgColor: "bg-muted/30" }, me = L !== "complete" && L !== "error", Ve = L === "summary" ? 40 : L === "detailed" ? 80 : 10, Re = k?.SalesStatistics ?? [], Qe = me ? [] : Re, Ue = k?.RandmarTitle ?? r?.RandmarTitle ?? r?.RandmarSKU ?? "this product", We = k?.RandmarSKU ?? r?.RandmarSKU, Xe = t && r?.ManufacturerId ? `/${encodeURIComponent(t)}/Partner/${encodeURIComponent(r.ManufacturerId)}?tab=manufacturer-overview` : null;
10639
10642
  if (!r)
10640
- return /* @__PURE__ */ e(q, { className: "flex h-full w-full flex-col", children: /* @__PURE__ */ a(G, { className: "flex h-full flex-col p-6", children: [
10643
+ return /* @__PURE__ */ e(Q, { className: "flex h-full w-full flex-col", children: /* @__PURE__ */ a(G, { className: "flex h-full flex-col p-6", children: [
10641
10644
  /* @__PURE__ */ a("div", { className: "flex justify-between items-start mb-3", children: [
10642
10645
  /* @__PURE__ */ e(f, { className: "h-7 w-3/4" }),
10643
10646
  /* @__PURE__ */ e("div", { className: "h-10 w-24 flex items-center justify-end ml-4", children: /* @__PURE__ */ e(f, { className: "h-10 w-24 rounded-md" }) })
@@ -10755,7 +10758,7 @@ function Wr({
10755
10758
  }));
10756
10759
  };
10757
10760
  return /* @__PURE__ */ a(U, { children: [
10758
- /* @__PURE__ */ e(q, { className: "flex h-full w-full flex-col hover:shadow-lg transition-shadow @container", children: /* @__PURE__ */ a(G, { className: "flex h-full flex-col p-6", children: [
10761
+ /* @__PURE__ */ e(Q, { className: "flex h-full w-full flex-col hover:shadow-lg transition-shadow @container", children: /* @__PURE__ */ a(G, { className: "flex h-full flex-col p-6", children: [
10759
10762
  /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-4", children: [
10760
10763
  /* @__PURE__ */ a("div", { className: "flex justify-between items-start mb-3", children: [
10761
10764
  /* @__PURE__ */ e("h3", { className: "font-semibold text-xl", children: r.Title || r.RandmarTitle }),
@@ -11355,7 +11358,7 @@ function Ff({ reseller: t, actions: r, loading: n = !1 }) {
11355
11358
  return n || !t ? /* @__PURE__ */ e(Qm, {}) : /* @__PURE__ */ e(Hm, { reseller: t, actions: r });
11356
11359
  }
11357
11360
  function Qm() {
11358
- return /* @__PURE__ */ a(q, { children: [
11361
+ return /* @__PURE__ */ a(Q, { children: [
11359
11362
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: /* @__PURE__ */ e(f, { className: "h-6 w-40" }) }) }),
11360
11363
  /* @__PURE__ */ a(G, { children: [
11361
11364
  /* @__PURE__ */ a("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: [
@@ -11418,7 +11421,7 @@ function Hm({ reseller: t, actions: r }) {
11418
11421
  color: "bg-info"
11419
11422
  }
11420
11423
  ];
11421
- return /* @__PURE__ */ a(q, { children: [
11424
+ return /* @__PURE__ */ a(Q, { children: [
11422
11425
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: "Billing Overview" }) }),
11423
11426
  /* @__PURE__ */ a(G, { children: [
11424
11427
  /* @__PURE__ */ a("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: [
@@ -11442,13 +11445,13 @@ function Hm({ reseller: t, actions: r }) {
11442
11445
  ] });
11443
11446
  }
11444
11447
  function Wm({ qualifications: t = [], loading: r = !1 }) {
11445
- return r ? /* @__PURE__ */ a(q, { children: [
11448
+ return r ? /* @__PURE__ */ a(Q, { children: [
11446
11449
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: "Qualifications" }) }),
11447
11450
  /* @__PURE__ */ e(G, { className: "p-6", children: /* @__PURE__ */ e("div", { className: "grid grid-cols-2 @sm:grid-cols-3 @md:grid-cols-4 @lg:grid-cols-5 gap-4 gap-y-8", children: Array.from({ length: 10 }).map((n, s) => /* @__PURE__ */ a("div", { className: "flex flex-col items-center", children: [
11448
11451
  /* @__PURE__ */ e(f, { className: "h-12 w-24 rounded-md mb-2" }),
11449
11452
  /* @__PURE__ */ e(f, { className: "h-5 w-16 rounded-full" })
11450
11453
  ] }, s)) }) })
11451
- ] }) : /* @__PURE__ */ a(q, { children: [
11454
+ ] }) : /* @__PURE__ */ a(Q, { children: [
11452
11455
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { children: "Qualifications" }) }),
11453
11456
  /* @__PURE__ */ e(G, { children: t && t.length > 0 ? /* @__PURE__ */ e("div", { className: "p-6", children: /* @__PURE__ */ e("div", { className: "flex grid grid-cols-2 @sm:grid-cols-3 @md:grid-cols-4 @lg:grid-cols-5 gap-4 gap-y-8", children: t.map((n, s) => /* @__PURE__ */ e(
11454
11457
  Gm,
@@ -11470,7 +11473,7 @@ function $f({ salesData: t, salesStatistics: r = [], loading: n = !1 }) {
11470
11473
  return n || !t ? /* @__PURE__ */ e(Km, {}) : /* @__PURE__ */ e(Ym, { salesData: t, salesStatistics: r });
11471
11474
  }
11472
11475
  function Km() {
11473
- return /* @__PURE__ */ a(q, { children: [
11476
+ return /* @__PURE__ */ a(Q, { children: [
11474
11477
  /* @__PURE__ */ e(Z, { className: "pb-0", children: /* @__PURE__ */ e(fe, { className: "text-lg @sm:text-xl", children: /* @__PURE__ */ e(f, { className: "h-7 w-40" }) }) }),
11475
11478
  /* @__PURE__ */ a(G, { className: "pt-4 px-3 @sm:px-6", children: [
11476
11479
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3 gap-4", children: Array(3).fill(0).map((t, r) => /* @__PURE__ */ a("div", { className: "border rounded-lg p-4", children: [
@@ -11514,7 +11517,7 @@ function Ym({
11514
11517
  color: "bg-success"
11515
11518
  }
11516
11519
  ];
11517
- return /* @__PURE__ */ a(q, { children: [
11520
+ return /* @__PURE__ */ a(Q, { children: [
11518
11521
  /* @__PURE__ */ e(Z, { className: "pb-0", children: /* @__PURE__ */ e(fe, { className: "text-lg @sm:text-xl", children: "Sales Overview" }) }),
11519
11522
  /* @__PURE__ */ a(G, { className: "pt-4 px-3 @sm:px-6", children: [
11520
11523
  /* @__PURE__ */ e("div", { className: "grid grid-cols-1 @sm:grid-cols-2 @lg:grid-cols-3 gap-4", children: n.map((s, i) => /* @__PURE__ */ a("div", { className: "border rounded-lg p-4", children: [
@@ -11553,7 +11556,7 @@ function Bf({
11553
11556
  ...h
11554
11557
  }) {
11555
11558
  const d = P.Children.toArray(l).filter(Boolean);
11556
- return /* @__PURE__ */ a(q, { className: v("flex flex-col h-full overflow-hidden", u), ...h, children: [
11559
+ return /* @__PURE__ */ a(Q, { className: v("flex flex-col h-full overflow-hidden", u), ...h, children: [
11557
11560
  /* @__PURE__ */ e(
11558
11561
  "header",
11559
11562
  {
@@ -12348,7 +12351,7 @@ function ki({
12348
12351
  }
12349
12352
  return o;
12350
12353
  }, [r]), l = ye(() => r ? [...r].sort((u, h) => (h.ReturnNumber1 || h.ReturnNumber || "").localeCompare(u.ReturnNumber1 || u.ReturnNumber || "")) : [], [r]);
12351
- return n ? /* @__PURE__ */ a(q, { className: "w-full", children: [
12354
+ return n ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
12352
12355
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(f, { className: "h-7 w-48" }) }),
12353
12356
  /* @__PURE__ */ a(G, { className: "space-y-4", children: [
12354
12357
  /* @__PURE__ */ e(f, { className: "h-12 w-full rounded-md border" }),
@@ -12363,7 +12366,7 @@ function ki({
12363
12366
  ] })
12364
12367
  ] })
12365
12368
  ] })
12366
- ] }) : /* @__PURE__ */ a(q, { className: "w-full", children: [
12369
+ ] }) : /* @__PURE__ */ a(Q, { className: "w-full", children: [
12367
12370
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-xl font-semibold text-foreground", children: "Returns" }) }),
12368
12371
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(Qt, { columns: s, data: l, uniqueValues: i }) })
12369
12372
  ] });
@@ -12874,10 +12877,10 @@ function qf({
12874
12877
  O && x(O);
12875
12878
  }
12876
12879
  }, [m, p, n, w, g?.IsManufacturer]);
12877
- const C = !n && (d || m), S = p?.Title || p?.RandmarTitle || p?.RandmarSKU || "Product", A = p?.VoiceoverCaption || "", k = typeof p?.MAP == "number" && p.MAP > 0 ? p.MAP : typeof p?.Distribution?.MAP == "number" && p.Distribution.MAP > 0 ? p.Distribution.MAP : null, D = typeof p?.MSRP == "number" && p.MSRP > 0 ? p.MSRP : typeof p?.Distribution?.MSRP == "number" && p.Distribution.MSRP > 0 ? p.Distribution.MSRP : null, L = s ? p?.Opportunities?.find((z) => z.BidNumber === s)?.Price : null, M = typeof L == "number" && L > 0 ? L : typeof p?.Distribution?.Price == "number" && p.Distribution.Price > 0 ? p.Distribution.Price : null, I = C || typeof M == "number", $ = typeof k == "number" && typeof M == "number" ? k - M : null, Q = typeof $ == "number" && typeof k == "number" && k > 0 ? Math.round($ / k * 100) : null;
12880
+ const C = !n && (d || m), S = p?.Title || p?.RandmarTitle || p?.RandmarSKU || "Product", A = p?.VoiceoverCaption || "", k = typeof p?.MAP == "number" && p.MAP > 0 ? p.MAP : typeof p?.Distribution?.MAP == "number" && p.Distribution.MAP > 0 ? p.Distribution.MAP : null, D = typeof p?.MSRP == "number" && p.MSRP > 0 ? p.MSRP : typeof p?.Distribution?.MSRP == "number" && p.Distribution.MSRP > 0 ? p.Distribution.MSRP : null, L = s ? p?.Opportunities?.find((z) => z.BidNumber === s)?.Price : null, M = typeof L == "number" && L > 0 ? L : typeof p?.Distribution?.Price == "number" && p.Distribution.Price > 0 ? p.Distribution.Price : null, I = C || typeof M == "number", $ = typeof k == "number" && typeof M == "number" ? k - M : null, q = typeof $ == "number" && typeof k == "number" && k > 0 ? Math.round($ / k * 100) : null;
12878
12881
  return /* @__PURE__ */ a("div", { className: "@container", children: [
12879
12882
  /* @__PURE__ */ a("div", { className: "grid gap-4 grid-cols-1 @md:grid-cols-3", children: [
12880
- /* @__PURE__ */ a(q, { className: "@md:col-span-2", children: [
12883
+ /* @__PURE__ */ a(Q, { className: "@md:col-span-2", children: [
12881
12884
  /* @__PURE__ */ a(Z, { className: "space-y-2", children: [
12882
12885
  /* @__PURE__ */ e(fe, { className: "text-2xl font-semibold leading-tight", children: C && !p ? /* @__PURE__ */ e(f, { className: "h-7 w-2/3" }) : S }),
12883
12886
  A ? /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: A }) : C && !p ? /* @__PURE__ */ e(f, { className: "h-4 w-4/5" }) : null
@@ -12889,7 +12892,7 @@ function qf({
12889
12892
  /* @__PURE__ */ e("div", { className: "text-sm text-muted-foreground", children: "Your Price" }),
12890
12893
  /* @__PURE__ */ e("div", { className: "mt-1 text-3xl font-semibold tracking-tight", children: typeof M == "number" ? ue(M) : C ? /* @__PURE__ */ e(f, { className: "h-9 w-40" }) : null })
12891
12894
  ] }),
12892
- typeof $ == "number" && typeof Q == "number" ? /* @__PURE__ */ a("div", { className: "flex flex-col items-start @sm:items-end", children: [
12895
+ typeof $ == "number" && typeof q == "number" ? /* @__PURE__ */ a("div", { className: "flex flex-col items-start @sm:items-end", children: [
12893
12896
  /* @__PURE__ */ a(
12894
12897
  xe,
12895
12898
  {
@@ -12902,7 +12905,7 @@ function qf({
12902
12905
  ]
12903
12906
  }
12904
12907
  ),
12905
- /* @__PURE__ */ e("div", { className: "mt-1 text-xs text-muted-foreground", children: $ >= 0 ? `${Q}% margin vs MAP` : `${Math.abs(Q)}% under MAP` })
12908
+ /* @__PURE__ */ e("div", { className: "mt-1 text-xs text-muted-foreground", children: $ >= 0 ? `${q}% margin vs MAP` : `${Math.abs(q)}% under MAP` })
12906
12909
  ] }) : null
12907
12910
  ] }) : null,
12908
12911
  /* @__PURE__ */ e(ke, { children: /* @__PURE__ */ a("div", { className: `${I ? "mt-5" : "mt-0"} grid grid-cols-1 gap-4 @sm:grid-cols-2`, children: [
@@ -13107,7 +13110,7 @@ function qf({
13107
13110
  }
13108
13111
  ) }) }),
13109
13112
  /* @__PURE__ */ a(lt, { value: "purchase-orders-tab", children: [
13110
- (p?.PurchaseOrders?.length ?? 0) > 0 && /* @__PURE__ */ a(q, { className: "mt-4 w-full", children: [
13113
+ (p?.PurchaseOrders?.length ?? 0) > 0 && /* @__PURE__ */ a(Q, { className: "mt-4 w-full", children: [
13111
13114
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Purchase Orders" }) }),
13112
13115
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
13113
13116
  hh,
@@ -13118,7 +13121,7 @@ function qf({
13118
13121
  }
13119
13122
  ) })
13120
13123
  ] }),
13121
- (p?.Requisitions?.length ?? 0) > 0 && /* @__PURE__ */ a(q, { className: "mt-4 w-full", children: [
13124
+ (p?.Requisitions?.length ?? 0) > 0 && /* @__PURE__ */ a(Q, { className: "mt-4 w-full", children: [
13122
13125
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Draft Purchases" }) }),
13123
13126
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
13124
13127
  fh,
@@ -13130,7 +13133,7 @@ function qf({
13130
13133
  ) })
13131
13134
  ] })
13132
13135
  ] }),
13133
- /* @__PURE__ */ e(lt, { value: "warehouse-tab", children: (p?.Receipts?.length ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ a(q, { className: "mt-4 w-full", children: [
13136
+ /* @__PURE__ */ e(lt, { value: "warehouse-tab", children: (p?.Receipts?.length ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ a(Q, { className: "mt-4 w-full", children: [
13134
13137
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Receipts" }) }),
13135
13138
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(
13136
13139
  uh,
@@ -13141,7 +13144,7 @@ function qf({
13141
13144
  }
13142
13145
  ) })
13143
13146
  ] }) }) }),
13144
- /* @__PURE__ */ e(lt, { value: "logs-tab", children: (p?.Logs?.length ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ a(q, { className: "w-full", children: [
13147
+ /* @__PURE__ */ e(lt, { value: "logs-tab", children: (p?.Logs?.length ?? 0) > 0 && /* @__PURE__ */ e("div", { className: "mt-4", children: /* @__PURE__ */ a(Q, { className: "w-full", children: [
13145
13148
  /* @__PURE__ */ e(Z, { children: /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Logs" }) }),
13146
13149
  /* @__PURE__ */ e(G, { children: /* @__PURE__ */ e(bh, { logs: p?.Logs, loading: m }) })
13147
13150
  ] }) }) })
@@ -13198,7 +13201,7 @@ function Nh({
13198
13201
  className: h
13199
13202
  }) {
13200
13203
  const c = `No Results "${t.trim()}"`, m = n.length > 0;
13201
- return /* @__PURE__ */ a(q, { className: v("w-full border-border bg-card", h), children: [
13204
+ return /* @__PURE__ */ a(Q, { className: v("w-full border-border bg-card", h), children: [
13202
13205
  /* @__PURE__ */ a(Z, { className: "space-y-3", children: [
13203
13206
  /* @__PURE__ */ e("div", { className: "inline-flex h-10 w-10 items-center justify-center rounded-full border border-border bg-muted text-muted-foreground", children: u ?? /* @__PURE__ */ e(Kl, { className: "h-5 w-5", "aria-hidden": "true" }) }),
13204
13207
  /* @__PURE__ */ a("div", { className: "space-y-1", children: [
@@ -13230,7 +13233,7 @@ function Hf({
13230
13233
  contentClassName: o
13231
13234
  }) {
13232
13235
  const u = s ?? i;
13233
- return /* @__PURE__ */ e("header", { className: v("w-full", l), children: /* @__PURE__ */ e(q, { className: "rounded-2xl border-border shadow-sm", children: /* @__PURE__ */ a(
13236
+ return /* @__PURE__ */ e("header", { className: v("w-full", l), children: /* @__PURE__ */ e(Q, { className: "rounded-2xl border-border shadow-sm", children: /* @__PURE__ */ a(
13234
13237
  "div",
13235
13238
  {
13236
13239
  className: v(
@@ -13248,7 +13251,7 @@ function Hf({
13248
13251
  ) }) });
13249
13252
  }
13250
13253
  function wh() {
13251
- return /* @__PURE__ */ a(q, { className: "h-full border-border bg-card", children: [
13254
+ return /* @__PURE__ */ a(Q, { className: "h-full border-border bg-card", children: [
13252
13255
  /* @__PURE__ */ a("div", { className: "space-y-4 p-6", children: [
13253
13256
  /* @__PURE__ */ e(f, { className: "h-5 w-3/5 bg-muted" }),
13254
13257
  /* @__PURE__ */ e(f, { className: "h-4 w-full bg-muted" }),
@@ -13266,7 +13269,7 @@ function ss({ cardCount: t }) {
13266
13269
  function is({ tableRows: t }) {
13267
13270
  return /* @__PURE__ */ a("section", { className: "space-y-4", children: [
13268
13271
  /* @__PURE__ */ e(f, { className: "h-6 w-56 bg-muted" }),
13269
- /* @__PURE__ */ e(q, { className: "border-border bg-card p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "overflow-hidden rounded-md border border-border", children: [
13272
+ /* @__PURE__ */ e(Q, { className: "border-border bg-card p-4 sm:p-6", children: /* @__PURE__ */ a("div", { className: "overflow-hidden rounded-md border border-border", children: [
13270
13273
  /* @__PURE__ */ a("div", { className: "grid grid-cols-12 gap-4 border-b border-border bg-muted/40 px-4 py-3", children: [
13271
13274
  /* @__PURE__ */ e(f, { className: "col-span-4 h-4 w-3/4 bg-muted" }),
13272
13275
  /* @__PURE__ */ e(f, { className: "col-span-3 h-4 w-2/3 bg-muted" }),
@@ -13521,7 +13524,7 @@ function Ah({
13521
13524
  );
13522
13525
  }
13523
13526
  function Kf(t) {
13524
- return /* @__PURE__ */ e(q, { className: "max-w-6xl", children: /* @__PURE__ */ e(un, { className: "h-[40em]", userId: t.userId, userName: t.userName, initialPrompt: t.initialPrompt }) });
13527
+ return /* @__PURE__ */ e(Q, { className: "max-w-6xl", children: /* @__PURE__ */ e(un, { className: "h-[40em]", userId: t.userId, userName: t.userName, initialPrompt: t.initialPrompt }) });
13525
13528
  }
13526
13529
  function Rr(t) {
13527
13530
  if (!t || !Kr(t))
@@ -13609,7 +13612,7 @@ function Yf({
13609
13612
  product: t,
13610
13613
  viewProductLink: r
13611
13614
  }) {
13612
- return t ? /* @__PURE__ */ e(q, { className: "@container border-dashed border-2 hover:shadow-md transition-shadow h-full", children: /* @__PURE__ */ a(G, { className: "p-6 flex flex-col h-full", children: [
13615
+ return t ? /* @__PURE__ */ e(Q, { className: "@container border-dashed border-2 hover:shadow-md transition-shadow h-full", children: /* @__PURE__ */ a(G, { className: "p-6 flex flex-col h-full", children: [
13613
13616
  /* @__PURE__ */ a("div", { className: "flex justify-between items-start mb-4 @[36rem]:hidden", children: [
13614
13617
  /* @__PURE__ */ e("h3", { className: "font-semibold text-lg pr-4 text-center w-full", children: t.Title || t.RandmarTitle }),
13615
13618
  /* @__PURE__ */ e("div", { className: "w-24 h-10 flex-shrink-0", children: /* @__PURE__ */ e(
@@ -13690,7 +13693,7 @@ function Yf({
13690
13693
  ] }) }) })
13691
13694
  ] })
13692
13695
  ] })
13693
- ] }) }) : /* @__PURE__ */ e(q, { className: "@container border-dashed border-2 h-full", children: /* @__PURE__ */ e(G, { className: "p-6 flex flex-col h-full", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-6 flex-grow @[36rem]:flex-row", children: [
13696
+ ] }) }) : /* @__PURE__ */ e(Q, { className: "@container border-dashed border-2 h-full", children: /* @__PURE__ */ e(G, { className: "p-6 flex flex-col h-full", children: /* @__PURE__ */ a("div", { className: "flex flex-col gap-6 flex-grow @[36rem]:flex-row", children: [
13694
13697
  /* @__PURE__ */ e("div", { className: "flex-shrink-0 @[36rem]:w-48", children: /* @__PURE__ */ e(f, { className: "aspect-square w-full h-auto" }) }),
13695
13698
  /* @__PURE__ */ a("div", { className: "flex flex-1 flex-col gap-4", children: [
13696
13699
  /* @__PURE__ */ a("div", { className: "flex justify-between items-start", children: [
@@ -13847,10 +13850,10 @@ function Ri({
13847
13850
  id: "statusInfo",
13848
13851
  header: "Status",
13849
13852
  cell: ({ row: D }) => {
13850
- const L = D.original, M = L.Active === !0, I = Ih(L.EndDate), $ = M ? "success" : "secondary", Q = I.variant === "destructive" ? "destructive" : I.variant === "warning" ? "warning" : "secondary";
13853
+ const L = D.original, M = L.Active === !0, I = Ih(L.EndDate), $ = M ? "success" : "secondary", q = I.variant === "destructive" ? "destructive" : I.variant === "warning" ? "warning" : "secondary";
13851
13854
  return /* @__PURE__ */ a("div", { className: "flex items-center space-x-2 min-w-[200px]", children: [
13852
13855
  /* @__PURE__ */ e(xe, { variant: $, className: "font-medium", children: M ? "Active" : "Inactive" }),
13853
- L.EndDate && /* @__PURE__ */ e(xe, { variant: Q, className: "font-medium", children: I.text }),
13856
+ L.EndDate && /* @__PURE__ */ e(xe, { variant: q, className: "font-medium", children: I.text }),
13854
13857
  /* @__PURE__ */ e(ke, { delayDuration: 100, children: /* @__PURE__ */ a(we, { children: [
13855
13858
  /* @__PURE__ */ e(Se, { asChild: !0, children: /* @__PURE__ */ e(E, { variant: "ghost", size: "icon", className: "h-6 w-6 p-0 data-[state=delayed-open]:bg-accent data-[state=instant-open]:bg-accent", children: /* @__PURE__ */ e(ys, { className: "h-4 w-4 text-muted-foreground" }) }) }),
13856
13859
  /* @__PURE__ */ e(ve, { side: "top", align: "center", className: "bg-popover text-popover-foreground p-2 rounded shadow-lg", children: /* @__PURE__ */ a("div", { className: "text-sm space-y-1", children: [
@@ -13882,18 +13885,18 @@ function Ri({
13882
13885
  const L = D.original;
13883
13886
  if (!L.BidNumber)
13884
13887
  return /* @__PURE__ */ e("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
13885
- const M = L.BidNumber, I = i[M]?.isSettingDefault, $ = c?.BidNumber === M && i[M]?.isSendingReport, Q = I || $, z = L.CanBeSetAsDefault === !0, _ = p?.IsManufacturer ? `/${t}/Opportunity/${L.BidNumber}` : `/${t}/Opportunity/${L.ManufacturerId}/${L.BidNumber}`;
13888
+ const M = L.BidNumber, I = i[M]?.isSettingDefault, $ = c?.BidNumber === M && i[M]?.isSendingReport, q = I || $, z = L.CanBeSetAsDefault === !0, _ = p?.IsManufacturer ? `/${t}/Opportunity/${L.BidNumber}` : `/${t}/Opportunity/${L.ManufacturerId}/${L.BidNumber}`;
13886
13889
  return /* @__PURE__ */ a("div", { className: "flex space-x-2", children: [
13887
13890
  /* @__PURE__ */ e(Te, { to: _, children: /* @__PURE__ */ a(E, { variant: "outline", size: "sm", className: "flex items-center", children: [
13888
13891
  /* @__PURE__ */ e(Ga, { className: "mr-2 h-4 w-4" }),
13889
13892
  " View"
13890
13893
  ] }) }),
13891
13894
  p?.IsReseller && /* @__PURE__ */ a(U, { children: [
13892
- /* @__PURE__ */ a(E, { variant: "outline", size: "sm", onClick: () => w(L), disabled: Q || !z, title: z ? "Set as default" : "This opportunity cannot be set as default", className: "flex items-center", children: [
13895
+ /* @__PURE__ */ a(E, { variant: "outline", size: "sm", onClick: () => w(L), disabled: q || !z, title: z ? "Set as default" : "This opportunity cannot be set as default", className: "flex items-center", children: [
13893
13896
  I ? /* @__PURE__ */ e(he, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Ga, { className: "mr-2 h-4 w-4" }),
13894
13897
  " Set Default"
13895
13898
  ] }),
13896
- /* @__PURE__ */ a(E, { variant: "outline", size: "sm", onClick: () => b(L), disabled: Q, title: "Send report by email", className: "flex items-center", children: [
13899
+ /* @__PURE__ */ a(E, { variant: "outline", size: "sm", onClick: () => b(L), disabled: q, title: "Send report by email", className: "flex items-center", children: [
13897
13900
  $ ? /* @__PURE__ */ e(he, { className: "mr-2 h-4 w-4 animate-spin" }) : /* @__PURE__ */ e(Xt, { className: "mr-2 h-4 w-4" }),
13898
13901
  " Send Report"
13899
13902
  ] })
@@ -13924,7 +13927,7 @@ function Ri({
13924
13927
  }
13925
13928
  return D;
13926
13929
  }, [r]), A = r || [], k = c?.BidNumber ? i[c.BidNumber]?.isSendingReport : !1;
13927
- return n ? /* @__PURE__ */ a(q, { className: "w-full", children: [
13930
+ return n ? /* @__PURE__ */ a(Q, { className: "w-full", children: [
13928
13931
  /* @__PURE__ */ a(Z, { children: [
13929
13932
  " ",
13930
13933
  /* @__PURE__ */ e(f, { className: "h-7 w-48" }),
@@ -13947,7 +13950,7 @@ function Ri({
13947
13950
  ] })
13948
13951
  ] })
13949
13952
  ] }) : /* @__PURE__ */ a(U, { children: [
13950
- /* @__PURE__ */ a(q, { className: "w-full", children: [
13953
+ /* @__PURE__ */ a(Q, { className: "w-full", children: [
13951
13954
  /* @__PURE__ */ a(Z, { children: [
13952
13955
  " ",
13953
13956
  /* @__PURE__ */ e(fe, { className: "text-1xl font-bold", children: "Opportunities" }),
@@ -14304,7 +14307,7 @@ export {
14304
14307
  xe as Badge,
14305
14308
  E as Button,
14306
14309
  Ph as Calendar,
14307
- q as Card,
14310
+ Q as Card,
14308
14311
  G as CardContent,
14309
14312
  Ia as CardDescription,
14310
14313
  St as CardFooter,