randmarcomps 1.275.0 → 1.277.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.
@@ -60124,7 +60124,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60124
60124
  /* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Ve.findIndex((ct) => ct.partner1 === "2" || ct.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: R, onClick: () => dt(), children: "Chat with Randmar" }, "b1") : /* @__PURE__ */ jsx("a", { target: "_blank", href: `https://dashboard.randmar.io/${t}/ExploreManufacturers`, children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore manufacturers" }, "b2") }) }),
60125
60125
  /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Ve.length && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ct.filter((ct) => ct.partner1 != ASSISTANT_ID && ct.partner2 != ASSISTANT_ID), activeChat: ut ?? null, onSelectChat: ge, assistantChat: Ve.find((ct) => ct.partner1 == ASSISTANT_ID || ct.partner2 == ASSISTANT_ID) }) }) })
60126
60126
  ] }),
60127
- /* @__PURE__ */ jsx("div", { className: "flex-3 flex flex-col", children: ae ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60127
+ /* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col", children: ae ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60128
60128
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: ae[0] == ASSISTANT_ID || ae[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60129
60129
  /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
60130
60130
  /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
@@ -60157,7 +60157,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60157
60157
  ),
60158
60158
  /* @__PURE__ */ jsx("div", { ref: tt })
60159
60159
  ] }),
60160
- /* @__PURE__ */ jsxs("div", { className: "p-4 border-t flex", children: [
60160
+ /* @__PURE__ */ jsxs("div", { className: "p-4 border-t border-r flex", children: [
60161
60161
  (ut == null ? void 0 : ut.pending) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
60162
60162
  /* @__PURE__ */ jsxs(Button, { disabled: _, onClick: () => ft(), children: [
60163
60163
  /* @__PURE__ */ jsx(Handshake, {}),
@@ -60231,7 +60231,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60231
60231
  ] })
60232
60232
  ] })
60233
60233
  ] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center text-muted-foreground", children: "Select a chat to start messaging" }) }),
60234
- /* @__PURE__ */ jsx("div", { className: "w-[480px] flex flex-2 flex-col border-l", children: isAssistantChat(ae) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60234
+ /* @__PURE__ */ jsx("div", { className: "w-[480px] flex flex-4 flex-col border-l", children: isAssistantChat(ae) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
60235
60235
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Sources and System Info" }) }),
60236
60236
  /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
60237
60237
  et ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
@@ -60249,7 +60249,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60249
60249
  /* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsx(DebugMessageDisplay, { debugMessages: Q }) }) })
60250
60250
  ] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60251
60251
  /* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Partner Overview" }) }),
60252
- /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx(PartnerRelationshipPage, { applicationId: t, partnerId: ((ae == null ? void 0 : ae[0]) === t ? ae[1] : ae == null ? void 0 : ae[0]) ?? t, userEmail: e, shopifyHostName: void 0, isSuperAdmin: !1 }) })
60252
+ /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "mt-1", children: /* @__PURE__ */ jsx(PartnerRelationshipPage, { applicationId: t, partnerId: ((ae == null ? void 0 : ae[0]) === t ? ae[1] : ae == null ? void 0 : ae[0]) ?? t, userEmail: e, shopifyHostName: void 0, isSuperAdmin: !1 }) }) })
60253
60253
  ] }) })
60254
60254
  ] });
60255
60255
  }
@@ -71963,7 +71963,7 @@ function LongMonthName(t) {
71963
71963
  }
71964
71964
  function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
71965
71965
  const o = (e == null ? void 0 : e.SalesLast30Days) ?? 0, l = (e == null ? void 0 : e.SalesLast3Months) ?? 0, d = (e == null ? void 0 : e.SalesYearToDay) ?? 0, f = LongMonthName(t);
71966
- return n ? /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @sm:grid-cols-2 @lg:grid-cols-3 mb-4", children: [
71966
+ return n ? /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
71967
71967
  /* @__PURE__ */ jsxs(Card, { children: [
71968
71968
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
71969
71969
  /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
@@ -71984,7 +71984,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
71984
71984
  /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
71985
71985
  ] })
71986
71986
  ] }),
71987
- /* @__PURE__ */ jsxs(Card, { className: "col-span-2 lg:col-span-1", children: [
71987
+ /* @__PURE__ */ jsxs(Card, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
71988
71988
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
71989
71989
  /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-36" }),
71990
71990
  /* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-full" })
@@ -71994,7 +71994,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
71994
71994
  /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
71995
71995
  ] })
71996
71996
  ] })
71997
- ] }) : /* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 @sm:grid-cols-1 @md:grid-cols-2 @lg:grid-cols-3 mb-4", children: [
71997
+ ] }) : /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
71998
71998
  /* @__PURE__ */ jsxs(Card, { children: [
71999
71999
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
72000
72000
  /* @__PURE__ */ jsx(CardTitle, { className: "text-sm font-medium", children: "Last 30 Days" }),
@@ -72015,7 +72015,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
72015
72015
  /* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground" })
72016
72016
  ] })
72017
72017
  ] }),
72018
- f && /* @__PURE__ */ jsxs(Card, { className: "@sm:col-span-1 @md:col-span-2 @lg:col-span-1", children: [
72018
+ f && /* @__PURE__ */ jsxs(Card, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
72019
72019
  /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
72020
72020
  /* @__PURE__ */ jsxs(CardTitle, { className: "text-sm font-medium", children: [
72021
72021
  "Year to Date (",
@@ -72324,7 +72324,7 @@ function ResellerOverview({
72324
72324
  isLoading: g
72325
72325
  }
72326
72326
  ),
72327
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @lg:grid-cols-2 gap-6", children: [
72327
+ /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @2xl:grid-cols-2 gap-6", children: [
72328
72328
  /* @__PURE__ */ jsx(
72329
72329
  SalesChart,
72330
72330
  {
@@ -72365,7 +72365,7 @@ function ResellerOverview({
72365
72365
  ] }),
72366
72366
  g || M.length > 0 ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
72367
72367
  /* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Manufacturers you are qualified for" }) }),
72368
- /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: g ? Array.from({ length: 2 }).map((q, z) => /* @__PURE__ */ jsx(ManufacturerCard, { loading: !0 }, z)) : M.map((q) => /* @__PURE__ */ jsx(
72368
+ /* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid @2xl:grid-cols-2 gap-4", children: g ? Array.from({ length: 2 }).map((q, z) => /* @__PURE__ */ jsx(ManufacturerCard, { loading: !0 }, z)) : M.map((q) => /* @__PURE__ */ jsx(
72369
72369
  ManufacturerCard,
72370
72370
  {
72371
72371
  manufacturer: q,
@@ -74640,7 +74640,7 @@ function PartnerRelationshipPage({
74640
74640
  }
74641
74641
  }, A = () => d != null && d.Reseller ? "reseller-overview" : d != null && d.Manufacturer ? "manufacturer-overview" : "";
74642
74642
  return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
74643
- /* @__PURE__ */ jsxs("div", { className: "grid gap-4 grid-cols-1 @md:grid-cols-1 @lg:grid-cols-2", children: [
74643
+ /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @2xl:grid-cols-2", children: [
74644
74644
  /* @__PURE__ */ jsx(
74645
74645
  PartnerCard,
74646
74646
  {
@@ -75837,7 +75837,7 @@ function ManufacturerOverviewPage({
75837
75837
  isLoading: f
75838
75838
  }
75839
75839
  ),
75840
- /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @md:grid-cols-1 @lg:grid-cols-2 gap-6", children: [
75840
+ /* @__PURE__ */ jsxs("div", { className: "grid @2xl:grid-cols-2 gap-6", children: [
75841
75841
  /* @__PURE__ */ jsx(
75842
75842
  SalesChart,
75843
75843
  {