randmarcomps 1.163.0 → 1.165.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 +5 -3
- package/dist/randmarcomps.js +131 -82
- package/dist/randmarcomps.umd.cjs +7 -2
- package/package.json +1 -1
package/dist/randmarcomps.d.ts
CHANGED
|
@@ -58,7 +58,7 @@ export declare const ApiKeyProvider: ({ apiKey, children, }: {
|
|
|
58
58
|
children: ReactNode;
|
|
59
59
|
}) => JSX.Element;
|
|
60
60
|
|
|
61
|
-
export declare function AreaChart({ data, units, unitsPosition, width, height, className }: AreaChartProps): JSX.Element;
|
|
61
|
+
export declare function AreaChart({ data, units, unitsPosition, width, height, className, size, }: AreaChartProps): JSX.Element;
|
|
62
62
|
|
|
63
63
|
export declare interface AreaChartProps {
|
|
64
64
|
data: DataPoint[];
|
|
@@ -67,6 +67,7 @@ export declare interface AreaChartProps {
|
|
|
67
67
|
width?: string | number;
|
|
68
68
|
height?: string | number;
|
|
69
69
|
className?: string;
|
|
70
|
+
size?: "default" | "mini";
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
export declare const Avatar: React_2.ForwardRefExoticComponent<Omit<AvatarPrimitive.AvatarProps & React_2.RefAttributes<HTMLSpanElement>, "ref"> & React_2.RefAttributes<HTMLSpanElement>>;
|
|
@@ -266,13 +267,14 @@ declare interface LayoutProps {
|
|
|
266
267
|
chatRef?: React.Ref<ChatLayoutHandle>;
|
|
267
268
|
}
|
|
268
269
|
|
|
269
|
-
export declare function ManufacturerCard({ manufacturer, link, linkNewTab, actions, loading, }: ManufacturerCardProps): JSX.Element;
|
|
270
|
+
export declare function ManufacturerCard({ manufacturer, link, linkNewTab, actions, mainAction, loading, }: ManufacturerCardProps): JSX.Element;
|
|
270
271
|
|
|
271
272
|
export declare interface ManufacturerCardProps {
|
|
272
273
|
manufacturer?: Manufacturer;
|
|
273
274
|
link?: string;
|
|
274
275
|
linkNewTab?: boolean;
|
|
275
|
-
actions?:
|
|
276
|
+
actions?: default_2.ReactNode;
|
|
277
|
+
mainAction?: default_2.ReactNode;
|
|
276
278
|
loading?: boolean;
|
|
277
279
|
}
|
|
278
280
|
|
package/dist/randmarcomps.js
CHANGED
|
@@ -275,6 +275,22 @@ const createLucideIcon = (e, t) => {
|
|
|
275
275
|
);
|
|
276
276
|
return n.displayName = `${e}`, n;
|
|
277
277
|
};
|
|
278
|
+
/**
|
|
279
|
+
* @license lucide-react v0.479.0 - ISC
|
|
280
|
+
*
|
|
281
|
+
* This source code is licensed under the ISC license.
|
|
282
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
283
|
+
*/
|
|
284
|
+
const __iconNode$I = [
|
|
285
|
+
[
|
|
286
|
+
"path",
|
|
287
|
+
{
|
|
288
|
+
d: "M3.85 8.62a4 4 0 0 1 4.78-4.77 4 4 0 0 1 6.74 0 4 4 0 0 1 4.78 4.78 4 4 0 0 1 0 6.74 4 4 0 0 1-4.77 4.78 4 4 0 0 1-6.75 0 4 4 0 0 1-4.78-4.77 4 4 0 0 1 0-6.76Z",
|
|
289
|
+
key: "3c2336"
|
|
290
|
+
}
|
|
291
|
+
],
|
|
292
|
+
["path", { d: "m9 12 2 2 4-4", key: "dzmm74" }]
|
|
293
|
+
], BadgeCheck = createLucideIcon("BadgeCheck", __iconNode$I);
|
|
278
294
|
/**
|
|
279
295
|
* @license lucide-react v0.479.0 - ISC
|
|
280
296
|
*
|
|
@@ -27578,56 +27594,49 @@ function AreaChart({
|
|
|
27578
27594
|
unitsPosition: n = "right",
|
|
27579
27595
|
width: o = "100%",
|
|
27580
27596
|
height: l = 300,
|
|
27581
|
-
className: u
|
|
27597
|
+
className: u,
|
|
27598
|
+
size: d = "default"
|
|
27582
27599
|
}) {
|
|
27583
27600
|
if (!(e != null && e.length))
|
|
27584
27601
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-40 text-muted-foreground", children: "No data available" });
|
|
27585
|
-
const
|
|
27586
|
-
if (!
|
|
27602
|
+
const f = Object.keys(e[0])[0], p = Object.keys(e[0]).filter((_) => _ !== f);
|
|
27603
|
+
if (!p.length)
|
|
27587
27604
|
return /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center h-40 text-muted-foreground", children: "Invalid data format" });
|
|
27588
|
-
const
|
|
27589
|
-
return /* @__PURE__ */ jsx("div", { className: cn("w-full", u), children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: o, height: l, children: /* @__PURE__ */ jsxs(AreaChart$1, { data: e, margin:
|
|
27590
|
-
/* @__PURE__ */ jsx("defs", { children:
|
|
27605
|
+
const m = (_) => n === "left" ? `${t || ""}${_}` : `${_}${t || ""}`, g = d === "mini" ? { top: 0, right: 0, left: 0, bottom: 0 } : { top: 10, right: 30, left: 0, bottom: 0 }, b = d === "mini";
|
|
27606
|
+
return /* @__PURE__ */ jsx("div", { className: cn("w-full", u), children: /* @__PURE__ */ jsx(ResponsiveContainer, { width: o, height: b ? l || 100 : l, children: /* @__PURE__ */ jsxs(AreaChart$1, { data: e, margin: g, children: [
|
|
27607
|
+
/* @__PURE__ */ jsx("defs", { children: p.map((_) => /* @__PURE__ */ jsxs("linearGradient", { id: `gradient-${_}`, x1: "0", y1: "0", x2: "0", y2: "1", children: [
|
|
27591
27608
|
/* @__PURE__ */ jsx("stop", { offset: "5%", stopColor: "var(--primary, #8884d8)", stopOpacity: 0.8 }),
|
|
27592
27609
|
/* @__PURE__ */ jsx("stop", { offset: "95%", stopColor: "var(--primary, #8884d8)", stopOpacity: 0.1 })
|
|
27593
|
-
] },
|
|
27594
|
-
/* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", className: "stroke-border/50" }),
|
|
27595
|
-
/* @__PURE__ */ jsx(
|
|
27596
|
-
|
|
27597
|
-
{
|
|
27598
|
-
dataKey: d,
|
|
27599
|
-
className: "text-xs text-muted-foreground",
|
|
27600
|
-
tickLine: !1,
|
|
27601
|
-
axisLine: !1
|
|
27602
|
-
}
|
|
27603
|
-
),
|
|
27604
|
-
/* @__PURE__ */ jsx(
|
|
27610
|
+
] }, _)) }),
|
|
27611
|
+
!b && /* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", className: "stroke-border/50" }),
|
|
27612
|
+
!b && /* @__PURE__ */ jsx(XAxis, { dataKey: f, className: "text-xs text-muted-foreground", tickLine: !1, axisLine: !1 }),
|
|
27613
|
+
!b && /* @__PURE__ */ jsx(
|
|
27605
27614
|
YAxis,
|
|
27606
27615
|
{
|
|
27607
27616
|
className: "text-xs text-muted-foreground",
|
|
27608
27617
|
tickLine: !1,
|
|
27609
27618
|
axisLine: !1,
|
|
27610
|
-
tickFormatter:
|
|
27619
|
+
tickFormatter: m
|
|
27611
27620
|
}
|
|
27612
27621
|
),
|
|
27613
|
-
/* @__PURE__ */ jsx(
|
|
27622
|
+
!b && /* @__PURE__ */ jsx(
|
|
27614
27623
|
Tooltip,
|
|
27615
27624
|
{
|
|
27616
27625
|
content: /* @__PURE__ */ jsx(ChartTooltipContent, { units: t, unitsPosition: n }),
|
|
27617
27626
|
cursor: { stroke: "var(--muted)", strokeWidth: 1 }
|
|
27618
27627
|
}
|
|
27619
27628
|
),
|
|
27620
|
-
|
|
27629
|
+
p.map((_) => /* @__PURE__ */ jsx(
|
|
27621
27630
|
Area,
|
|
27622
27631
|
{
|
|
27623
27632
|
type: "monotone",
|
|
27624
|
-
dataKey:
|
|
27633
|
+
dataKey: _,
|
|
27625
27634
|
stroke: "var(--primary, #8884d8)",
|
|
27626
27635
|
fillOpacity: 0.6,
|
|
27627
|
-
fill: `url(#gradient-${
|
|
27628
|
-
strokeWidth: 2
|
|
27636
|
+
fill: `url(#gradient-${_})`,
|
|
27637
|
+
strokeWidth: b ? 1 : 2
|
|
27629
27638
|
},
|
|
27630
|
-
|
|
27639
|
+
_
|
|
27631
27640
|
))
|
|
27632
27641
|
] }) }) });
|
|
27633
27642
|
}
|
|
@@ -52604,11 +52613,18 @@ function QualificationBadge({ qualification: e }) {
|
|
|
52604
52613
|
] }) }),
|
|
52605
52614
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
|
|
52606
52615
|
] }) }) : /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
52607
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
52608
|
-
|
|
52609
|
-
|
|
52610
|
-
|
|
52611
|
-
|
|
52616
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
52617
|
+
Badge,
|
|
52618
|
+
{
|
|
52619
|
+
variant: "info",
|
|
52620
|
+
className: e.DefaultOpportunityNumber ? "pr-1" : "",
|
|
52621
|
+
children: [
|
|
52622
|
+
/* @__PURE__ */ jsx(BadgeCheck, { className: "h-3 w-3 mr-1" }),
|
|
52623
|
+
e.QualificationId,
|
|
52624
|
+
e.DefaultOpportunityNumber && /* @__PURE__ */ jsx(Badge, { variant: "secondary", size: "sm", className: "ml-1", children: e.DefaultOpportunityNumber })
|
|
52625
|
+
]
|
|
52626
|
+
}
|
|
52627
|
+
) }),
|
|
52612
52628
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
|
|
52613
52629
|
] }) });
|
|
52614
52630
|
}
|
|
@@ -52617,20 +52633,24 @@ function ManufacturerCard({
|
|
|
52617
52633
|
link: t,
|
|
52618
52634
|
linkNewTab: n = !0,
|
|
52619
52635
|
actions: o,
|
|
52620
|
-
|
|
52636
|
+
mainAction: l,
|
|
52637
|
+
loading: u = !1
|
|
52621
52638
|
}) {
|
|
52622
|
-
var
|
|
52623
|
-
if (
|
|
52639
|
+
var T, E, C;
|
|
52640
|
+
if (u || !e)
|
|
52624
52641
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
52625
|
-
/* @__PURE__ */
|
|
52626
|
-
/* @__PURE__ */
|
|
52627
|
-
|
|
52628
|
-
/* @__PURE__ */
|
|
52629
|
-
|
|
52630
|
-
|
|
52631
|
-
|
|
52632
|
-
|
|
52633
|
-
|
|
52642
|
+
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
52643
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
52644
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
|
|
52645
|
+
/* @__PURE__ */ jsxs("div", { children: [
|
|
52646
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24 mb-2" }),
|
|
52647
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-40 mb-1" }),
|
|
52648
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32 mb-1" }),
|
|
52649
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
52650
|
+
] })
|
|
52651
|
+
] }),
|
|
52652
|
+
/* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-24" })
|
|
52653
|
+
] }),
|
|
52634
52654
|
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
52635
52655
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
52636
52656
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
@@ -52657,20 +52677,23 @@ function ManufacturerCard({
|
|
|
52657
52677
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
52658
52678
|
] })
|
|
52659
52679
|
] });
|
|
52660
|
-
const
|
|
52680
|
+
const d = e.ManufacturerId || "N/A", f = e.PublicName || "N/A", p = [e.City, e.Province, e.Country].filter(Boolean), m = p.length > 0 ? p.join(", ") : "", g = ((T = e.Tags) == null ? void 0 : T.split(",").map((R) => R.trim()).filter(Boolean)) || [], b = (R) => R === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
|
|
52661
52681
|
style: "currency",
|
|
52662
52682
|
currency: "CAD",
|
|
52663
52683
|
minimumFractionDigits: 0,
|
|
52664
52684
|
maximumFractionDigits: 0
|
|
52665
|
-
}).format(
|
|
52666
|
-
|
|
52667
|
-
|
|
52685
|
+
}).format(R), S = ((R) => !R || R.length === 0 ? [] : [...R].sort((N, O) => (N.Day || 0) - (O.Day || 0)).map((N) => ({
|
|
52686
|
+
date: N.Day || 0,
|
|
52687
|
+
amount: N.ExtendedPrice || 0
|
|
52688
|
+
})))(e.SalesStatistics);
|
|
52689
|
+
return /* @__PURE__ */ jsxs(Card, { className: "manufacturer-theme flex flex-col h-full", children: [
|
|
52690
|
+
/* @__PURE__ */ jsx(Link, { to: t ?? "#", target: t && n ? "_blank" : "_self", children: /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
52668
52691
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
52669
52692
|
/* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
|
|
52670
52693
|
"img",
|
|
52671
52694
|
{
|
|
52672
|
-
src: `https://api.randmar.io/V4/Partner/${
|
|
52673
|
-
alt: `${
|
|
52695
|
+
src: `https://api.randmar.io/V4/Partner/${d}/Account/Logo?width=64&height=64`,
|
|
52696
|
+
alt: `${f}'s logo`,
|
|
52674
52697
|
className: "max-h-10 w-auto object-contain"
|
|
52675
52698
|
}
|
|
52676
52699
|
) }),
|
|
@@ -52678,43 +52701,63 @@ function ManufacturerCard({
|
|
|
52678
52701
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52679
52702
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-primary", children: "Manufacturer" }),
|
|
52680
52703
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "|" }),
|
|
52681
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children:
|
|
52704
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: d })
|
|
52682
52705
|
] }),
|
|
52683
52706
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: e.PublicName || "N/A" }),
|
|
52684
52707
|
e.Name && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: e.Name }),
|
|
52685
|
-
|
|
52708
|
+
m && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: m })
|
|
52686
52709
|
] })
|
|
52687
52710
|
] }),
|
|
52688
|
-
|
|
52689
|
-
] }),
|
|
52690
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
52711
|
+
/* @__PURE__ */ jsx("div", { className: "flex flex-col items-end gap-2", children: S.length > 0 && /* @__PURE__ */ jsx("div", { className: "h-16 w-24", children: /* @__PURE__ */ jsx(AreaChart, { data: S, height: 60, size: "mini" }) }) })
|
|
52712
|
+
] }) }),
|
|
52713
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
52691
52714
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
52692
|
-
(!!((
|
|
52693
|
-
/* @__PURE__ */ jsx(
|
|
52694
|
-
QualificationBadge,
|
|
52695
|
-
{
|
|
52696
|
-
qualification: e.Qualification ?? {}
|
|
52697
|
-
}
|
|
52698
|
-
),
|
|
52715
|
+
(!!((E = e.Qualification) != null && E.QualificationId) && ((C = e.Qualification) == null ? void 0 : C.QualificationId) !== "Suspended" || !!e.OpenToWork || g.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
52716
|
+
/* @__PURE__ */ jsx(QualificationBadge, { qualification: e.Qualification ?? {} }),
|
|
52699
52717
|
!!e.OpenToWork && /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
|
|
52700
52718
|
/* @__PURE__ */ jsx(HardHat, { className: "h-3 w-3 mr-1" }),
|
|
52701
52719
|
"Open To Work"
|
|
52702
52720
|
] }),
|
|
52703
|
-
|
|
52721
|
+
!!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" }),
|
|
52722
|
+
g.map((R, N) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: R }, N))
|
|
52704
52723
|
] }),
|
|
52705
52724
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
52706
|
-
e.Phone && /* @__PURE__ */ jsxs(
|
|
52707
|
-
|
|
52708
|
-
|
|
52709
|
-
|
|
52710
|
-
|
|
52711
|
-
|
|
52712
|
-
|
|
52713
|
-
|
|
52714
|
-
|
|
52715
|
-
|
|
52716
|
-
|
|
52717
|
-
|
|
52725
|
+
e.Phone && /* @__PURE__ */ jsxs(
|
|
52726
|
+
Link,
|
|
52727
|
+
{
|
|
52728
|
+
to: `tel:${e.Phone}`,
|
|
52729
|
+
target: "_blank",
|
|
52730
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
52731
|
+
children: [
|
|
52732
|
+
/* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
|
|
52733
|
+
/* @__PURE__ */ jsx("span", { children: e.Phone })
|
|
52734
|
+
]
|
|
52735
|
+
}
|
|
52736
|
+
),
|
|
52737
|
+
e.PublicEmail && /* @__PURE__ */ jsxs(
|
|
52738
|
+
Link,
|
|
52739
|
+
{
|
|
52740
|
+
to: `mailto:${e.PublicEmail}`,
|
|
52741
|
+
target: "_blank",
|
|
52742
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
52743
|
+
children: [
|
|
52744
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
|
|
52745
|
+
/* @__PURE__ */ jsx("span", { children: e.PublicEmail })
|
|
52746
|
+
]
|
|
52747
|
+
}
|
|
52748
|
+
),
|
|
52749
|
+
e.Website && /* @__PURE__ */ jsxs(
|
|
52750
|
+
Link,
|
|
52751
|
+
{
|
|
52752
|
+
to: e.Website,
|
|
52753
|
+
target: "_blank",
|
|
52754
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
52755
|
+
children: [
|
|
52756
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
|
|
52757
|
+
/* @__PURE__ */ jsx("span", { children: e.Website })
|
|
52758
|
+
]
|
|
52759
|
+
}
|
|
52760
|
+
),
|
|
52718
52761
|
e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
52719
52762
|
/* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
|
|
52720
52763
|
/* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
|
|
@@ -52723,19 +52766,25 @@ function ManufacturerCard({
|
|
|
52723
52766
|
] }),
|
|
52724
52767
|
e.SalesData && /* @__PURE__ */ jsxs("div", { className: "border-l pl-2 ml-2 flex flex-col text-sm", children: [
|
|
52725
52768
|
/* @__PURE__ */ jsx("strong", { className: "", children: "YTD" }),
|
|
52726
|
-
/* @__PURE__ */ jsx("p", { children:
|
|
52769
|
+
/* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesYearToDay) }),
|
|
52727
52770
|
/* @__PURE__ */ jsx("strong", { className: "mt-2", children: "3 mo." }),
|
|
52728
|
-
/* @__PURE__ */ jsx("p", { children:
|
|
52771
|
+
/* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesLast3Months) }),
|
|
52729
52772
|
/* @__PURE__ */ jsx("strong", { className: "mt-2", children: "30 days" }),
|
|
52730
|
-
/* @__PURE__ */ jsx("p", { children:
|
|
52773
|
+
/* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesLast30Days) })
|
|
52731
52774
|
] })
|
|
52732
52775
|
] }) }),
|
|
52733
|
-
(o || t) && /* @__PURE__ */ jsxs(CardFooter, { className:
|
|
52734
|
-
|
|
52735
|
-
|
|
52736
|
-
|
|
52737
|
-
|
|
52738
|
-
|
|
52776
|
+
(o || t || l) && /* @__PURE__ */ jsxs(CardFooter, { className: "flex pt-2 gap-2 justify-between mt-auto", children: [
|
|
52777
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
52778
|
+
t && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
52779
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button, { size: "icon", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: n ? "_blank" : "_self", children: [
|
|
52780
|
+
/* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }),
|
|
52781
|
+
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "View Manufacturer" })
|
|
52782
|
+
] }) }) }),
|
|
52783
|
+
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "View Manufacturer" }) })
|
|
52784
|
+
] }) }),
|
|
52785
|
+
o && o
|
|
52786
|
+
] }),
|
|
52787
|
+
l && /* @__PURE__ */ jsx("div", { children: l })
|
|
52739
52788
|
] })
|
|
52740
52789
|
] });
|
|
52741
52790
|
}
|