randmarcomps 1.447.0 → 1.449.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.
@@ -8608,7 +8608,16 @@ const DropdownMenuShortcut = ({
8608
8608
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
8609
8609
  function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }) {
8610
8610
  const o = (F, z, Q = !1, V = !0) => {
8611
- const j = F.WarehouseType === "Fulfillment Center", te = j ? "bg-white" : "bg-white/70 text-gray-600", ne = V && z > 0 ? "border-t" : "", ae = Q ? "border-r" : "", Oe = F.Status ?? "Unknown", se = !(Oe === "Active");
8611
+ const j = F.WarehouseType === "Fulfillment Center", te = j ? "bg-white" : "bg-white/70 text-gray-600", ne = V && z > 0 ? "border-t" : "", ae = Q ? "border-r" : "", Oe = F.Status ?? "Unknown", ge = Oe === "Active";
8612
+ let se = j ? "bg-emerald-100 text-emerald-800 ring-1 ring-emerald-200" : "bg-gray-100 text-gray-700";
8613
+ switch (Oe) {
8614
+ case "Closing":
8615
+ se = "bg-yellow-100 text-yellow-800 ring-1 ring-yellow-200";
8616
+ break;
8617
+ case "Closed":
8618
+ se = "bg-red-100 text-red-800 ring-1 ring-red-200";
8619
+ break;
8620
+ }
8612
8621
  return /* @__PURE__ */ jsxs(
8613
8622
  "article",
8614
8623
  {
@@ -8621,13 +8630,13 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
8621
8630
  /* @__PURE__ */ jsxs(
8622
8631
  "span",
8623
8632
  {
8624
- className: `inline-flex items-center gap-2 rounded-full px-2 py-0.5 text-xs font-semibold ${se ? "bg-yellow-100 text-yellow-800 ring-1 ring-yellow-200" : j ? "bg-emerald-100 text-emerald-800 ring-1 ring-emerald-200" : "bg-gray-100 text-gray-700"}`,
8633
+ className: `inline-flex items-center gap-2 rounded-full px-2 py-0.5 text-xs font-semibold ${se}`,
8625
8634
  "aria-hidden": "false",
8626
- title: se ? `Status: ${Oe}` : j ? "Fulfillment Center" : "Satellite Warehouse",
8635
+ title: ge ? j ? "Fulfillment Center" : "Satellite Warehouse" : `Status: ${Oe}`,
8627
8636
  children: [
8628
- j ? /* @__PURE__ */ jsx(Warehouse, { className: "h-3 w-3", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Truck, { className: `h-3 w-3 ${se ? "opacity-95" : "opacity-80"}`, "aria-hidden": "true" }),
8629
- /* @__PURE__ */ jsx("span", { className: "sr-only", children: se ? `Status: ${Oe}` : F.WarehouseType ? `${F.WarehouseType} warehouse` : "Warehouse" }),
8630
- /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: se ? Oe : F.WarehouseType || (j ? "Fulfillment Center" : "Satellite") })
8637
+ j ? /* @__PURE__ */ jsx(Warehouse, { className: "h-3 w-3", "aria-hidden": "true" }) : /* @__PURE__ */ jsx(Truck, { className: `h-3 w-3 ${ge ? "opacity-80" : "opacity-95"}`, "aria-hidden": "true" }),
8638
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: ge ? F.WarehouseType ? `${F.WarehouseType} warehouse` : "Warehouse" : `Status: ${Oe}` }),
8639
+ /* @__PURE__ */ jsx("span", { "aria-hidden": "true", children: ge ? F.WarehouseType || (j ? "Fulfillment Center" : "Satellite") : Oe })
8631
8640
  ]
8632
8641
  }
8633
8642
  )
@@ -18085,7 +18094,7 @@ function ExploreManufacturers({ appID: e, manufPath: t, withBot: n }) {
18085
18094
  }
18086
18095
  )) || [];
18087
18096
  }, [d, g]), [S, _] = useState([]), C = useMemo(() => {
18088
- const V = ["19009", "12014", "25150"];
18097
+ const V = ["19009", "211962"];
18089
18098
  return b.filter((j) => V.includes(j.ManufacturerId ?? ""));
18090
18099
  }, [b]), E = useMemo(() => S.length === 0 ? b : b.filter((V) => {
18091
18100
  var j;