randmarcomps 1.162.0 → 1.164.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.
@@ -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?: React.ReactNode;
276
+ actions?: default_2.ReactNode;
277
+ mainAction?: default_2.ReactNode;
276
278
  loading?: boolean;
277
279
  }
278
280
 
@@ -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 d = Object.keys(e[0])[0], f = Object.keys(e[0]).filter((m) => m !== d);
27586
- if (!f.length)
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 p = (m) => n === "left" ? `${t || ""}${m}` : `${m}${t || ""}`;
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: { top: 10, right: 30, left: 0, bottom: 0 }, children: [
27590
- /* @__PURE__ */ jsx("defs", { children: f.map((m) => /* @__PURE__ */ jsxs("linearGradient", { id: `gradient-${m}`, x1: "0", y1: "0", x2: "0", y2: "1", 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
- ] }, m)) }),
27594
- /* @__PURE__ */ jsx(CartesianGrid, { strokeDasharray: "3 3", className: "stroke-border/50" }),
27595
- /* @__PURE__ */ jsx(
27596
- XAxis,
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: p
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
- f.map((m) => /* @__PURE__ */ jsx(
27629
+ p.map((_) => /* @__PURE__ */ jsx(
27621
27630
  Area,
27622
27631
  {
27623
27632
  type: "monotone",
27624
- dataKey: m,
27633
+ dataKey: _,
27625
27634
  stroke: "var(--primary, #8884d8)",
27626
27635
  fillOpacity: 0.6,
27627
- fill: `url(#gradient-${m})`,
27628
- strokeWidth: 2
27636
+ fill: `url(#gradient-${_})`,
27637
+ strokeWidth: b ? 1 : 2
27629
27638
  },
27630
- m
27639
+ _
27631
27640
  ))
27632
27641
  ] }) }) });
27633
27642
  }
@@ -52604,10 +52613,10 @@ 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(Badge, { variant: "success", children: [
52608
- /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 mr-1" }),
52616
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(Badge, { variant: "info", className: "pr-1", children: [
52617
+ /* @__PURE__ */ jsx(BadgeCheck, { className: "h-3 w-3 mr-1" }),
52609
52618
  e.QualificationId,
52610
- e.DefaultOpportunityNumber && ` | ${e.DefaultOpportunityNumber}`
52619
+ e.DefaultOpportunityNumber && /* @__PURE__ */ jsx(Badge, { variant: "secondary", size: "sm", className: "ml-1", children: e.DefaultOpportunityNumber })
52611
52620
  ] }) }),
52612
52621
  /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "Qualification" }) })
52613
52622
  ] }) });
@@ -52617,20 +52626,24 @@ function ManufacturerCard({
52617
52626
  link: t,
52618
52627
  linkNewTab: n = !0,
52619
52628
  actions: o,
52620
- loading: l = !1
52629
+ mainAction: l,
52630
+ loading: u = !1
52621
52631
  }) {
52622
- var b, _, S;
52623
- if (l || !e)
52632
+ var T, E, C;
52633
+ if (u || !e)
52624
52634
  return /* @__PURE__ */ jsxs(Card, { children: [
52625
- /* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
52626
- /* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
52627
- /* @__PURE__ */ jsxs("div", { children: [
52628
- /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24 mb-2" }),
52629
- /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-40 mb-1" }),
52630
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32 mb-1" }),
52631
- /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
52632
- ] })
52633
- ] }) }),
52635
+ /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
52636
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
52637
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
52638
+ /* @__PURE__ */ jsxs("div", { children: [
52639
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-3 w-24 mb-2" }),
52640
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-40 mb-1" }),
52641
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-32 mb-1" }),
52642
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
52643
+ ] })
52644
+ ] }),
52645
+ /* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-24" })
52646
+ ] }),
52634
52647
  /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-2", children: [
52635
52648
  /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
52636
52649
  /* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
@@ -52657,20 +52670,23 @@ function ManufacturerCard({
52657
52670
  /* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
52658
52671
  ] })
52659
52672
  ] });
52660
- const u = e.ManufacturerId || "N/A", d = e.PublicName || "N/A", f = [e.City, e.Province, e.Country].filter(Boolean), p = f.length > 0 ? f.join(", ") : "", m = ((b = e.Tags) == null ? void 0 : b.split(",").map((T) => T.trim()).filter(Boolean)) || [], g = (T) => T === void 0 ? "n/a" : new Intl.NumberFormat("en-CA", {
52673
+ 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
52674
  style: "currency",
52662
52675
  currency: "CAD",
52663
52676
  minimumFractionDigits: 0,
52664
52677
  maximumFractionDigits: 0
52665
- }).format(T);
52666
- return /* @__PURE__ */ jsxs(Card, { className: "manufacturer-theme", children: [
52667
- /* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
52678
+ }).format(R), S = ((R) => !R || R.length === 0 ? [] : [...R].sort((N, O) => (N.Day || 0) - (O.Day || 0)).map((N) => ({
52679
+ date: N.Day || 0,
52680
+ amount: N.ExtendedPrice || 0
52681
+ })))(e.SalesStatistics);
52682
+ return /* @__PURE__ */ jsxs(Card, { className: "manufacturer-theme flex flex-col h-full", children: [
52683
+ /* @__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
52684
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
52669
52685
  /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
52670
52686
  "img",
52671
52687
  {
52672
- src: `https://api.randmar.io/V4/Partner/${u}/Account/Logo?width=64&height=64`,
52673
- alt: `${d}'s logo`,
52688
+ src: `https://api.randmar.io/V4/Partner/${d}/Account/Logo?width=64&height=64`,
52689
+ alt: `${f}'s logo`,
52674
52690
  className: "max-h-10 w-auto object-contain"
52675
52691
  }
52676
52692
  ) }),
@@ -52678,43 +52694,63 @@ function ManufacturerCard({
52678
52694
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52679
52695
  /* @__PURE__ */ jsx("span", { className: "text-xs text-primary", children: "Manufacturer" }),
52680
52696
  /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "|" }),
52681
- /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: u })
52697
+ /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: d })
52682
52698
  ] }),
52683
52699
  /* @__PURE__ */ jsx("h3", { className: "font-semibold", children: e.PublicName || "N/A" }),
52684
52700
  e.Name && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: e.Name }),
52685
- p && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: p })
52701
+ m && /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: m })
52686
52702
  ] })
52687
52703
  ] }),
52688
- !!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" })
52689
- ] }),
52690
- /* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
52704
+ /* @__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" }) }) })
52705
+ ] }) }),
52706
+ /* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
52691
52707
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
52692
- (!!((_ = e.Qualification) != null && _.QualificationId) && ((S = e.Qualification) == null ? void 0 : S.QualificationId) !== "Suspended" || !!e.OpenToWork || m.length > 0) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
52693
- /* @__PURE__ */ jsx(
52694
- QualificationBadge,
52695
- {
52696
- qualification: e.Qualification ?? {}
52697
- }
52698
- ),
52708
+ (!!((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: [
52709
+ /* @__PURE__ */ jsx(QualificationBadge, { qualification: e.Qualification ?? {} }),
52699
52710
  !!e.OpenToWork && /* @__PURE__ */ jsxs(Badge, { variant: "success", children: [
52700
52711
  /* @__PURE__ */ jsx(HardHat, { className: "h-3 w-3 mr-1" }),
52701
52712
  "Open To Work"
52702
52713
  ] }),
52703
- m.map((T, E) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: T }, E))
52714
+ !!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" }),
52715
+ g.map((R, N) => /* @__PURE__ */ jsx(Badge, { variant: "outline", children: R }, N))
52704
52716
  ] }),
52705
52717
  /* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
52706
- e.Phone && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52707
- /* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
52708
- /* @__PURE__ */ jsx("span", { children: e.Phone })
52709
- ] }),
52710
- e.PublicEmail && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52711
- /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
52712
- /* @__PURE__ */ jsx("span", { children: e.PublicEmail })
52713
- ] }),
52714
- e.Website && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52715
- /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
52716
- /* @__PURE__ */ jsx("span", { children: e.Website })
52717
- ] }),
52718
+ e.Phone && /* @__PURE__ */ jsxs(
52719
+ Link,
52720
+ {
52721
+ to: `tel:${e.Phone}`,
52722
+ target: "_blank",
52723
+ className: "flex items-center gap-2 text-sm text-muted-foreground",
52724
+ children: [
52725
+ /* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
52726
+ /* @__PURE__ */ jsx("span", { children: e.Phone })
52727
+ ]
52728
+ }
52729
+ ),
52730
+ e.PublicEmail && /* @__PURE__ */ jsxs(
52731
+ Link,
52732
+ {
52733
+ to: `mailto:${e.PublicEmail}`,
52734
+ target: "_blank",
52735
+ className: "flex items-center gap-2 text-sm text-muted-foreground",
52736
+ children: [
52737
+ /* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
52738
+ /* @__PURE__ */ jsx("span", { children: e.PublicEmail })
52739
+ ]
52740
+ }
52741
+ ),
52742
+ e.Website && /* @__PURE__ */ jsxs(
52743
+ Link,
52744
+ {
52745
+ to: e.Website,
52746
+ target: "_blank",
52747
+ className: "flex items-center gap-2 text-sm text-muted-foreground",
52748
+ children: [
52749
+ /* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
52750
+ /* @__PURE__ */ jsx("span", { children: e.Website })
52751
+ ]
52752
+ }
52753
+ ),
52718
52754
  e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
52719
52755
  /* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
52720
52756
  /* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
@@ -52723,19 +52759,25 @@ function ManufacturerCard({
52723
52759
  ] }),
52724
52760
  e.SalesData && /* @__PURE__ */ jsxs("div", { className: "border-l pl-2 ml-2 flex flex-col text-sm", children: [
52725
52761
  /* @__PURE__ */ jsx("strong", { className: "", children: "YTD" }),
52726
- /* @__PURE__ */ jsx("p", { children: g(e.SalesData.SalesYearToDay) }),
52762
+ /* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesYearToDay) }),
52727
52763
  /* @__PURE__ */ jsx("strong", { className: "mt-2", children: "3 mo." }),
52728
- /* @__PURE__ */ jsx("p", { children: g(e.SalesData.SalesLast3Months) }),
52764
+ /* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesLast3Months) }),
52729
52765
  /* @__PURE__ */ jsx("strong", { className: "mt-2", children: "30 days" }),
52730
- /* @__PURE__ */ jsx("p", { children: g(e.SalesData.SalesLast30Days) })
52766
+ /* @__PURE__ */ jsx("p", { children: b(e.SalesData.SalesLast30Days) })
52731
52767
  ] })
52732
52768
  ] }) }),
52733
- (o || t) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 ${o ? "justify-between" : "justify-end"}`, children: [
52734
- o && o,
52735
- t && /* @__PURE__ */ jsx(Button, { className: "flex items-center gap-1", asChild: !0, children: n ? /* @__PURE__ */ jsxs(Link, { to: t, target: "_blank", children: [
52736
- /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
52737
- "Go to Manufacturer"
52738
- ] }) : /* @__PURE__ */ jsx(Link, { to: t, children: "Go to Manufacturer" }) })
52769
+ (o || t || l) && /* @__PURE__ */ jsxs(CardFooter, { className: "flex pt-2 gap-2 justify-between mt-auto", children: [
52770
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
52771
+ t && /* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
52772
+ /* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button, { size: "icon", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: n ? "_blank" : "_self", children: [
52773
+ /* @__PURE__ */ jsx(Eye, { className: "h-4 w-4" }),
52774
+ /* @__PURE__ */ jsx("span", { className: "sr-only", children: "View Manufacturer" })
52775
+ ] }) }) }),
52776
+ /* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: "View Manufacturer" }) })
52777
+ ] }) }),
52778
+ o && o
52779
+ ] }),
52780
+ l && /* @__PURE__ */ jsx("div", { children: l })
52739
52781
  ] })
52740
52782
  ] });
52741
52783
  }
@@ -59605,7 +59647,7 @@ const complexComponents = [
59605
59647
  "<ScrollArea>...</ScrollArea>",
59606
59648
  "<ScrollArea orientation='horizontal'>...</ScrollArea>"
59607
59649
  ], GetJSXFromAI = async (e, t, n, o, l = 3) => {
59608
- const u = "In addition to basic html tags, You have access to these beautiful Handmade Components:", d = "You also have access to these few Shadcn UI components:", f = 'Here is the data to display to the user (If a Handmade Component is a good fit for the data, use it. Otherwise, use regular html tags) (You have access to this data object in React via the data variable. Do not use JSON.parse, it is already parsed. For example, if data is an array, you can use {data.map(item, idx => <>...</>)} directly. CAUTION: when using map, you must use implicit return rather than a block body, as shown before. AGAIN: never use JSON.parse - data is already parsed and never a block body with arrow functions such as: (item => { return "EXAMPLE - DO NOT DO THIS" }):', p = "Only output a single JSX code snippet. Start with <> and end with </>. All other code will be ignored, so make sure to place all CSS styles inline. Use CSS flex layouts when there is a lot of stuff to display.", m = JSON.stringify(n), g = [t, u, ...complexComponents, d, ...basicComponents, p, f, m, p].join(`\r
59650
+ const u = "In addition to basic html tags, You have access to these beautiful Handmade Components. Try to use them even when you get an array of search results. For example, use ProductCard when ContentType is Product:", d = "You also have access to these few Shadcn UI components:", f = 'Here is the data to display to the user (If a Handmade Component is a good fit for the data, use it. Otherwise, use regular html tags) (You have access to this data object in React via the data variable. Do not use JSON.parse, it is already parsed. For example, if data is an array, you can use {data.map(item, idx => <>...</>)} directly. CAUTION: when using map, you must use implicit return rather than a block body, as shown before. AGAIN: never use JSON.parse - data is already parsed and never a block body with arrow functions such as: (item => { return "EXAMPLE - DO NOT DO THIS" }):', p = "Only output a single JSX code snippet. Start with <> and end with </>. All other code will be ignored, so make sure to place all CSS styles inline. Use CSS flex layouts when there is a lot of stuff to display.", m = JSON.stringify(n), g = [t, u, ...complexComponents, d, ...basicComponents, p, f, m, p].join(`\r
59609
59651
  `), S = await new GoogleGenAI({ apiKey: e }).chats.create({
59610
59652
  model: o ? "gemini-2.5-pro-preview-03-25" : "gemini-2.0-flash-lite"
59611
59653
  }).sendMessage({ message: g }), T = trimJSXString(S.text ?? "");