randmarcomps 1.458.0 → 1.460.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.
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -706,6 +706,7 @@ export declare interface PartnerActionsProps {
|
|
|
706
706
|
className?: string;
|
|
707
707
|
userId: string;
|
|
708
708
|
partnerId: string;
|
|
709
|
+
isAdmin: boolean;
|
|
709
710
|
}
|
|
710
711
|
|
|
711
712
|
export declare function PartnerCard({ account, action, loading, className, withAbout, withVoice }: PartnerCardProps): JSX.Element;
|
package/dist/randmarcomps.js
CHANGED
|
@@ -16677,7 +16677,7 @@ function PartnerActions(t) {
|
|
|
16677
16677
|
] })
|
|
16678
16678
|
] }),
|
|
16679
16679
|
/* @__PURE__ */ jsx(SalesReportDialog, { open: d, onOpenChange: f, manufacturerId: t.userId, resellerId: t.partnerId }),
|
|
16680
|
-
/* @__PURE__ */ jsx(ChangeQualificationDialog, { open: g, onOpenChange: b, manufacturerId: t.userId, resellerId: t.partnerId }),
|
|
16680
|
+
/* @__PURE__ */ jsx(ChangeQualificationDialog, { isAdmin: t.isAdmin, open: g, onOpenChange: b, manufacturerId: t.userId, resellerId: t.partnerId }),
|
|
16681
16681
|
/* @__PURE__ */ jsx(AddToOpportunityDialog, { open: S, onOpenChange: _, manufacturerId: t.userId, resellerId: t.partnerId })
|
|
16682
16682
|
] });
|
|
16683
16683
|
}
|
|
@@ -16771,7 +16771,7 @@ function ChangeQualificationDialog(t) {
|
|
|
16771
16771
|
g("do-not-sell");
|
|
16772
16772
|
break;
|
|
16773
16773
|
case "Suspended":
|
|
16774
|
-
g("suspended");
|
|
16774
|
+
t.isAdmin ? g("do-not-sell") : g("suspended");
|
|
16775
16775
|
break;
|
|
16776
16776
|
case void 0:
|
|
16777
16777
|
case null:
|
|
@@ -16844,7 +16844,7 @@ function ChangeQualificationDialog(t) {
|
|
|
16844
16844
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "do-not-sell", id: "r3" }),
|
|
16845
16845
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "r3", children: "Do Not Sell" })
|
|
16846
16846
|
] }),
|
|
16847
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
16847
|
+
t.isAdmin && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
16848
16848
|
/* @__PURE__ */ jsx(RadioGroupItem, { value: "suspended", id: "r4" }),
|
|
16849
16849
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "r4", children: "Suspended" })
|
|
16850
16850
|
] })
|
|
@@ -60732,7 +60732,7 @@ function ChatRightSidebar({
|
|
|
60732
60732
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
60733
60733
|
"Analyzing..."
|
|
60734
60734
|
] }) : "Analyze Partnership" }),
|
|
60735
|
-
/* @__PURE__ */ jsx(PartnerActions, { userId: e, partnerId: (d == null ? void 0 : d[0]) === e ? d[1] : (d == null ? void 0 : d[0]) || "" }),
|
|
60735
|
+
/* @__PURE__ */ jsx(PartnerActions, { userId: e, partnerId: (d == null ? void 0 : d[0]) === e ? d[1] : (d == null ? void 0 : d[0]) || "", isAdmin: !1 }),
|
|
60736
60736
|
/* @__PURE__ */ jsx("p", { className: "font-medium pt-2 border-t", children: "People" }),
|
|
60737
60737
|
/* @__PURE__ */ jsx("p", { className: "font-light", children: "Members of this conversation will show up here." }),
|
|
60738
60738
|
/* @__PURE__ */ jsx(LinkSection, { appID: e, activeChatObj: t })
|
|
@@ -76297,7 +76297,7 @@ function ProductCard({
|
|
|
76297
76297
|
formatMoney(z)
|
|
76298
76298
|
] }) }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
76299
76299
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center flex-wrap", children: [
|
|
76300
|
-
/* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((E ? (et = (Qe = e.Opportunities) == null ? void 0 : Qe.find((Ze) => Ze.BidNumber == E.BidNumber)) == null ? void 0 : et.Price : V) ?? 0) }),
|
|
76300
|
+
Q > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((E ? (et = (Qe = e.Opportunities) == null ? void 0 : Qe.find((Ze) => Ze.BidNumber == E.BidNumber)) == null ? void 0 : et.Price : V) ?? 0) }) }),
|
|
76301
76301
|
A > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Q) })
|
|
76302
76302
|
] }),
|
|
76303
76303
|
A > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "outline", className: "bg-red-50 text-red-700 rounded-full px-3 whitespace-nowrap", children: [
|