randmarcomps 1.579.0 → 1.580.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.js +348 -308
- package/dist/randmarcomps.umd.cjs +25 -25
- package/dist/style.css +13 -1
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -3760,7 +3760,7 @@ function InputOTPSlot({
|
|
|
3760
3760
|
"data-slot": "input-otp-slot",
|
|
3761
3761
|
"data-active": l,
|
|
3762
3762
|
className: cn(
|
|
3763
|
-
"border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20
|
|
3763
|
+
"border-input data-[active=true]:border-ring data-[active=true]:ring-ring/50 data-[active=true]:aria-invalid:ring-destructive/20 aria-invalid:border-destructive data-[active=true]:aria-invalid:border-destructive relative flex h-9 w-9 items-center justify-center border-y border-r text-sm shadow-xs transition-all outline-none first:rounded-l-md first:border-l last:rounded-r-md data-[active=true]:z-10 data-[active=true]:ring-[3px]",
|
|
3764
3764
|
t
|
|
3765
3765
|
),
|
|
3766
3766
|
...n,
|
|
@@ -4575,7 +4575,7 @@ const RadioGroupItem = React.forwardRef(({ className: e, ...t }, n) => /* @__PUR
|
|
|
4575
4575
|
{
|
|
4576
4576
|
ref: n,
|
|
4577
4577
|
className: cn(
|
|
4578
|
-
"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow-sm focus:outline-hidden focus-visible:ring-
|
|
4578
|
+
"aspect-square h-4 w-4 rounded-full border border-primary text-primary shadow-sm focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",
|
|
4579
4579
|
e
|
|
4580
4580
|
),
|
|
4581
4581
|
...t,
|
|
@@ -5653,7 +5653,7 @@ const DialogTrigger = Trigger$6, DialogPortal = Portal$4, DialogClose = Close$1,
|
|
|
5653
5653
|
{
|
|
5654
5654
|
ref: n,
|
|
5655
5655
|
className: cn(
|
|
5656
|
-
"fixed inset-0 z-50 bg-
|
|
5656
|
+
"fixed inset-0 z-50 bg-foreground/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:opacity-0 data-[state=closed]:pointer-events-none",
|
|
5657
5657
|
e
|
|
5658
5658
|
),
|
|
5659
5659
|
...t
|
|
@@ -5689,7 +5689,7 @@ const DialogContent = React.forwardRef(({ className: e, children: t, animateExit
|
|
|
5689
5689
|
...c,
|
|
5690
5690
|
children: [
|
|
5691
5691
|
t,
|
|
5692
|
-
/* @__PURE__ */ jsxs(Close$1, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
5692
|
+
/* @__PURE__ */ jsxs(Close$1, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground", children: [
|
|
5693
5693
|
/* @__PURE__ */ jsx(X$2, { className: "h-4 w-4" }),
|
|
5694
5694
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
5695
5695
|
] })
|
|
@@ -8288,20 +8288,20 @@ const falsyToString = (e) => typeof e == "boolean" ? `${e}` : e === 0 ? "0" : e,
|
|
|
8288
8288
|
}, []);
|
|
8289
8289
|
return cx(e, l, d, n?.class, n?.className);
|
|
8290
8290
|
}, buttonVariants = cva(
|
|
8291
|
-
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-
|
|
8291
|
+
"inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0 cursor-pointer",
|
|
8292
8292
|
{
|
|
8293
8293
|
variants: {
|
|
8294
8294
|
variant: {
|
|
8295
8295
|
default: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
8296
8296
|
destructive: "bg-destructive text-destructive-foreground shadow-xs hover:bg-destructive/90",
|
|
8297
8297
|
outline: "border border-input text-foreground bg-background shadow-xs hover:bg-accent hover:text-accent-foreground",
|
|
8298
|
-
defaultOutline: "border border-
|
|
8298
|
+
defaultOutline: "border border-destructive/30 text-destructive bg-background shadow-xs hover:bg-destructive/5 ",
|
|
8299
8299
|
secondary: "bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",
|
|
8300
8300
|
ghost: "hover:bg-accent hover:text-accent-foreground",
|
|
8301
8301
|
link: "text-primary underline-offset-4 hover:underline",
|
|
8302
|
-
blue: "bg-
|
|
8303
|
-
red: "bg-
|
|
8304
|
-
purple: "bg-
|
|
8302
|
+
blue: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
8303
|
+
red: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
8304
|
+
purple: "bg-primary text-primary-foreground shadow-sm hover:bg-primary/90",
|
|
8305
8305
|
none: ""
|
|
8306
8306
|
},
|
|
8307
8307
|
size: {
|
|
@@ -17464,7 +17464,7 @@ const Input = React.forwardRef(
|
|
|
17464
17464
|
{
|
|
17465
17465
|
type: t,
|
|
17466
17466
|
className: cn(
|
|
17467
|
-
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-
|
|
17467
|
+
"flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-base shadow-xs transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
17468
17468
|
e
|
|
17469
17469
|
),
|
|
17470
17470
|
onChange: at,
|
|
@@ -17730,22 +17730,22 @@ function AddToOpportunityDialog(e) {
|
|
|
17730
17730
|
}
|
|
17731
17731
|
function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }) {
|
|
17732
17732
|
const a = (ft, pt, mt = !1, yt = !0) => {
|
|
17733
|
-
const dt = ft.WarehouseType === "Fulfillment Center", Ct = dt ? "bg-
|
|
17734
|
-
let Rt = "bg-
|
|
17733
|
+
const dt = ft.WarehouseType === "Fulfillment Center", Ct = dt ? "bg-background" : "bg-background/70 text-muted-foreground", Mt = yt && pt > 0 ? "border-t" : "", Dt = mt ? "border-r" : "", Ft = ft.Status ?? "Unknown", Ut = Ft === "Active";
|
|
17734
|
+
let Rt = "bg-secondary text-secondary-foreground ring-1 ring-border";
|
|
17735
17735
|
switch (ft.WarehouseType) {
|
|
17736
17736
|
case "Last Mile":
|
|
17737
|
-
Rt = "bg-
|
|
17737
|
+
Rt = "bg-info text-info-foreground ring-1 ring-info/40";
|
|
17738
17738
|
break;
|
|
17739
17739
|
case "First Mile":
|
|
17740
|
-
Rt = "bg-
|
|
17740
|
+
Rt = "bg-accent text-accent-foreground ring-1 ring-border";
|
|
17741
17741
|
break;
|
|
17742
17742
|
}
|
|
17743
17743
|
switch (Ft) {
|
|
17744
17744
|
case "Closing":
|
|
17745
|
-
Rt = "bg-
|
|
17745
|
+
Rt = "bg-warning text-warning-foreground ring-1 ring-warning/40";
|
|
17746
17746
|
break;
|
|
17747
17747
|
case "Closed":
|
|
17748
|
-
Rt = "bg-
|
|
17748
|
+
Rt = "bg-destructive text-destructive-foreground ring-1 ring-destructive/40";
|
|
17749
17749
|
break;
|
|
17750
17750
|
}
|
|
17751
17751
|
return /* @__PURE__ */ jsxs(
|
|
@@ -17756,7 +17756,7 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
17756
17756
|
children: [
|
|
17757
17757
|
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
17758
17758
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
17759
|
-
/* @__PURE__ */ jsx("h3", { id: `wh-${ft.WarehouseId}-name`, className:
|
|
17759
|
+
/* @__PURE__ */ jsx("h3", { id: `wh-${ft.WarehouseId}-name`, className: "text-sm font-medium text-foreground", children: ft.Name }),
|
|
17760
17760
|
/* @__PURE__ */ jsxs(
|
|
17761
17761
|
"span",
|
|
17762
17762
|
{
|
|
@@ -17773,11 +17773,11 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
17773
17773
|
] }),
|
|
17774
17774
|
/* @__PURE__ */ jsx("div", { className: "text-right", children: /* @__PURE__ */ jsx("div", { className: "text-sm font-medium", children: formatNumber(ft.AvailableQuantity ?? 0) }) })
|
|
17775
17775
|
] }),
|
|
17776
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-1 text-xs text-
|
|
17776
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-1 text-xs text-muted-foreground", children: [
|
|
17777
17777
|
/* @__PURE__ */ jsx("span", { children: "Expecting" }),
|
|
17778
17778
|
/* @__PURE__ */ jsx("span", { children: ft.PurchaseOrderQuantity ? formatNumber(ft.PurchaseOrderQuantity) : "—" })
|
|
17779
17779
|
] }),
|
|
17780
|
-
t && /* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-1 text-xs text-
|
|
17780
|
+
t && /* @__PURE__ */ jsxs("div", { className: "flex justify-between mt-1 text-xs text-muted-foreground", children: [
|
|
17781
17781
|
/* @__PURE__ */ jsx("span", { children: "Bin Location" }),
|
|
17782
17782
|
/* @__PURE__ */ jsx("span", { children: ft.BinLocation || "—" })
|
|
17783
17783
|
] })
|
|
@@ -17797,7 +17797,7 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
17797
17797
|
/* @__PURE__ */ jsx("div", { className: "p-3" })
|
|
17798
17798
|
] }),
|
|
17799
17799
|
d.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17800
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 border-b bg-
|
|
17800
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 border-b bg-muted/30", children: [
|
|
17801
17801
|
/* @__PURE__ */ jsxs("div", { className: "p-3 font-semibold text-sm flex justify-between", children: [
|
|
17802
17802
|
/* @__PURE__ */ jsx("span", { children: "Canada" }),
|
|
17803
17803
|
/* @__PURE__ */ jsx("span", { children: formatNumber(V) })
|
|
@@ -17828,7 +17828,7 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
17828
17828
|
] })
|
|
17829
17829
|
] }),
|
|
17830
17830
|
c.length > 0 && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
17831
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 border-t bg-
|
|
17831
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-2 border-t bg-muted/30", children: [
|
|
17832
17832
|
/* @__PURE__ */ jsxs("div", { className: "p-3 font-semibold text-sm flex justify-between", children: [
|
|
17833
17833
|
/* @__PURE__ */ jsx("span", { children: "United States" }),
|
|
17834
17834
|
/* @__PURE__ */ jsx("span", { children: formatNumber(ot) })
|
|
@@ -17839,7 +17839,7 @@ function ProductInventoryGrid({ inventory: e, showBinLocation: t, className: n }
|
|
|
17839
17839
|
(ft, pt) => a(ft, pt, pt % 2 === 0, !0)
|
|
17840
17840
|
) })
|
|
17841
17841
|
] }),
|
|
17842
|
-
e.length === 0 && /* @__PURE__ */ jsx("div", { className: "p-6 text-center text-
|
|
17842
|
+
e.length === 0 && /* @__PURE__ */ jsx("div", { className: "p-6 text-center text-muted-foreground", children: "No inventory information available" })
|
|
17843
17843
|
] });
|
|
17844
17844
|
}
|
|
17845
17845
|
var NODES$2 = [
|
|
@@ -17904,7 +17904,7 @@ const Sheet = Root$a, SheetTrigger = Trigger$6, SheetClose = Close$1, SheetPorta
|
|
|
17904
17904
|
Overlay,
|
|
17905
17905
|
{
|
|
17906
17906
|
className: cn(
|
|
17907
|
-
"fixed inset-0 z-50 bg-
|
|
17907
|
+
"fixed inset-0 z-50 bg-foreground/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
17908
17908
|
e
|
|
17909
17909
|
),
|
|
17910
17910
|
...t,
|
|
@@ -17936,7 +17936,7 @@ const sheetVariants = cva(
|
|
|
17936
17936
|
className: cn(sheetVariants({ side: e }), t),
|
|
17937
17937
|
...a,
|
|
17938
17938
|
children: [
|
|
17939
|
-
/* @__PURE__ */ jsxs(Close$1, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
17939
|
+
/* @__PURE__ */ jsxs(Close$1, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
|
|
17940
17940
|
/* @__PURE__ */ jsx(X$2, { className: "h-4 w-4" }),
|
|
17941
17941
|
/* @__PURE__ */ jsx("span", { className: "sr-only", children: "Close" })
|
|
17942
17942
|
] }),
|
|
@@ -18051,7 +18051,7 @@ const PartnerLogo = ({
|
|
|
18051
18051
|
align: s
|
|
18052
18052
|
},
|
|
18053
18053
|
{ skip: !S || d != !0 }
|
|
18054
|
-
), V = t || (e ? `Partner ID: ${e}` : "Logo not available (no ID)"), at = () => !c || f || R ? /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full rounded-sm" }) : A ? /* @__PURE__ */ jsx("img", { src: A, alt: V, className: "h-full w-full object-contain rounded-sm" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-sm bg-muted/20 p-1", title: V, children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-
|
|
18054
|
+
), V = t || (e ? `Partner ID: ${e}` : "Logo not available (no ID)"), at = () => !c || f || R ? /* @__PURE__ */ jsx(Skeleton, { className: "h-full w-full rounded-sm" }) : A ? /* @__PURE__ */ jsx("img", { src: A, alt: V, className: "h-full w-full object-contain rounded-sm" }) : /* @__PURE__ */ jsx("div", { className: "flex h-full w-full items-center justify-center rounded-sm bg-muted/20 p-1", title: V, children: /* @__PURE__ */ jsx(Handshake, { className: "text-primary fill-background min-h-full" }) });
|
|
18055
18055
|
return /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
18056
18056
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx("div", { className: cn("flex h-full w-full cursor-default", o), ref: l, children: at() }) }),
|
|
18057
18057
|
/* @__PURE__ */ jsx(TooltipContent, { side: "top", align: "center", children: V })
|
|
@@ -18062,7 +18062,7 @@ function AvatarFooter({ onClick: e, publicName: t, applicationName: n, partnerId
|
|
|
18062
18062
|
/* @__PURE__ */ jsx("div", { className: "flex h-9 w-9 items-center justify-center rounded-lg bg-muted " + (e !== void 0 ? "cursor-pointer" : ""), children: /* @__PURE__ */ jsx(Button$1, { asChild: !0, size: "icon", onClick: e, children: /* @__PURE__ */ jsx("div", { className: "h-9 w-9 object-cover !bg-sidebar", children: /* @__PURE__ */ jsx(PartnerLogo, { id: a, width: 64, height: 64 }) }) }) }),
|
|
18063
18063
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-1 flex-col", children: [
|
|
18064
18064
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: t || "Partner" }),
|
|
18065
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-
|
|
18065
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: n })
|
|
18066
18066
|
] })
|
|
18067
18067
|
] });
|
|
18068
18068
|
}
|
|
@@ -19009,9 +19009,9 @@ const toastVariants = cva(
|
|
|
19009
19009
|
variant: {
|
|
19010
19010
|
default: "border bg-background text-foreground",
|
|
19011
19011
|
destructive: "destructive group border-destructive bg-destructive text-destructive-foreground",
|
|
19012
|
-
success: "border-
|
|
19013
|
-
warning: "border-
|
|
19014
|
-
info: "border-
|
|
19012
|
+
success: "border-success bg-success text-success-foreground",
|
|
19013
|
+
warning: "border-warning bg-warning text-warning-foreground",
|
|
19014
|
+
info: "border-info bg-info text-info-foreground",
|
|
19015
19015
|
secondary: "border-secondary bg-secondary text-secondary-foreground",
|
|
19016
19016
|
outline: "border-input bg-background text-foreground hover:bg-accent hover:text-accent-foreground"
|
|
19017
19017
|
}
|
|
@@ -19027,7 +19027,7 @@ const ToastAction = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
19027
19027
|
{
|
|
19028
19028
|
ref: n,
|
|
19029
19029
|
className: cn(
|
|
19030
|
-
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus:outline-hidden focus:ring-
|
|
19030
|
+
"inline-flex h-8 shrink-0 items-center justify-center rounded-md border bg-transparent px-3 text-sm font-medium transition-colors hover:bg-secondary focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 group-[.destructive]:border-muted/40 hover:group-[.destructive]:border-destructive/30 hover:group-[.destructive]:bg-destructive hover:group-[.destructive]:text-destructive-foreground",
|
|
19031
19031
|
e
|
|
19032
19032
|
),
|
|
19033
19033
|
...t
|
|
@@ -19039,7 +19039,7 @@ const ToastClose = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__
|
|
|
19039
19039
|
{
|
|
19040
19040
|
ref: n,
|
|
19041
19041
|
className: cn(
|
|
19042
|
-
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus:opacity-100 focus:outline-hidden focus:ring-
|
|
19042
|
+
"absolute right-1 top-1 rounded-md p-1 text-foreground/50 opacity-0 transition-opacity hover:text-foreground focus-visible:opacity-100 focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 group-hover:opacity-100 group-[.destructive]:text-destructive-foreground/70 hover:group-[.destructive]:text-destructive-foreground",
|
|
19043
19043
|
e
|
|
19044
19044
|
),
|
|
19045
19045
|
"toast-close": "",
|
|
@@ -40639,7 +40639,7 @@ function Preloader({ text: e, color: t = "white", className: n }) {
|
|
|
40639
40639
|
/* @__PURE__ */ jsx(PreloaderIcon, { color: t }),
|
|
40640
40640
|
e && /* @__PURE__ */ jsx("div", { className: cn(
|
|
40641
40641
|
"text-center text-xl font-medium",
|
|
40642
|
-
t === "black" ? "text-foreground" : "text-
|
|
40642
|
+
t === "black" ? "text-foreground" : "text-primary-foreground"
|
|
40643
40643
|
), children: e })
|
|
40644
40644
|
] });
|
|
40645
40645
|
}
|
|
@@ -54218,7 +54218,7 @@ const Switch = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ j
|
|
|
54218
54218
|
Root$3,
|
|
54219
54219
|
{
|
|
54220
54220
|
className: cn(
|
|
54221
|
-
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-
|
|
54221
|
+
"peer inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent shadow-sm transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",
|
|
54222
54222
|
e
|
|
54223
54223
|
),
|
|
54224
54224
|
...t,
|
|
@@ -54292,7 +54292,7 @@ function ChatLeftSidebar({
|
|
|
54292
54292
|
children: s ? /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(RefreshCw, { className: "h-4 w-4" })
|
|
54293
54293
|
}
|
|
54294
54294
|
) }),
|
|
54295
|
-
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "bg-
|
|
54295
|
+
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "bg-popover text-popover-foreground", children: "Full refresh" })
|
|
54296
54296
|
] }),
|
|
54297
54297
|
/* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
54298
54298
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(
|
|
@@ -54307,7 +54307,7 @@ function ChatLeftSidebar({
|
|
|
54307
54307
|
children: o ? /* @__PURE__ */ jsx(LoaderCircle, { className: "h-4 w-4 animate-spin" }) : /* @__PURE__ */ jsx(CheckCheck, { className: "h-4 w-4" })
|
|
54308
54308
|
}
|
|
54309
54309
|
) }),
|
|
54310
|
-
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "bg-
|
|
54310
|
+
/* @__PURE__ */ jsx(TooltipContent, { side: "bottom", className: "bg-popover text-popover-foreground", children: "Mark all read" })
|
|
54311
54311
|
] })
|
|
54312
54312
|
] }) })
|
|
54313
54313
|
] }),
|
|
@@ -54317,7 +54317,7 @@ function ChatLeftSidebar({
|
|
|
54317
54317
|
Input,
|
|
54318
54318
|
{
|
|
54319
54319
|
placeholder: "Search chats...",
|
|
54320
|
-
className: "h-10 pl-8 rounded-xl bg-muted/40 border-transparent shadow-none focus-visible:ring-
|
|
54320
|
+
className: "h-10 pl-8 rounded-xl bg-muted/40 border-transparent shadow-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
54321
54321
|
value: A,
|
|
54322
54322
|
onChange: (Vt) => R(Vt.target.value)
|
|
54323
54323
|
}
|
|
@@ -54348,7 +54348,7 @@ function ChatLeftSidebar({
|
|
|
54348
54348
|
value: V ?? "",
|
|
54349
54349
|
onChange: (Vt) => at(Vt.target.value),
|
|
54350
54350
|
onBlur: Ut,
|
|
54351
|
-
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-
|
|
54351
|
+
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
54352
54352
|
}
|
|
54353
54353
|
)
|
|
54354
54354
|
] }),
|
|
@@ -54360,7 +54360,7 @@ function ChatLeftSidebar({
|
|
|
54360
54360
|
value: lt ?? "",
|
|
54361
54361
|
onChange: (Vt) => ot(Vt.target.value),
|
|
54362
54362
|
onBlur: Rt,
|
|
54363
|
-
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-
|
|
54363
|
+
className: "mt-1 h-8 border-0 bg-transparent px-0 text-sm font-medium shadow-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
54364
54364
|
}
|
|
54365
54365
|
)
|
|
54366
54366
|
] }),
|
|
@@ -56488,7 +56488,7 @@ ${e}</tr>
|
|
|
56488
56488
|
let s = X$1(e);
|
|
56489
56489
|
if (s === null) return O(n);
|
|
56490
56490
|
e = s;
|
|
56491
|
-
let o = `<img src="${e}" alt="${n}"`;
|
|
56491
|
+
let o = `<img src="${e}" alt="${O(n)}"`;
|
|
56492
56492
|
return t && (o += ` title="${O(t)}"`), o += ">", o;
|
|
56493
56493
|
}
|
|
56494
56494
|
text(e) {
|
|
@@ -57445,7 +57445,7 @@ const Textarea = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
57445
57445
|
"textarea",
|
|
57446
57446
|
{
|
|
57447
57447
|
className: cn(
|
|
57448
|
-
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-
|
|
57448
|
+
"flex min-h-[60px] w-full rounded-md border border-input bg-transparent px-3 py-2 text-base shadow-xs placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
|
|
57449
57449
|
e
|
|
57450
57450
|
),
|
|
57451
57451
|
ref: n,
|
|
@@ -57561,7 +57561,7 @@ function SkeletonMessageDashboard({ botStatus: e }) {
|
|
|
57561
57561
|
}
|
|
57562
57562
|
function SkeletonMessageAssistant({ botStatus: e }) {
|
|
57563
57563
|
return /* @__PURE__ */ jsx("div", { className: "flex items-start mt-2 mb-2", children: /* @__PURE__ */ jsx("div", { className: "flex flex-col max-w-[70%]", children: /* @__PURE__ */ jsxs("div", { className: "flex items-end gap-2", children: [
|
|
57564
|
-
/* @__PURE__ */ jsx("div", { className: "rounded-md p-3 break-words bg-
|
|
57564
|
+
/* @__PURE__ */ jsx("div", { className: "rounded-md p-3 break-words bg-background border border-border rounded-tl-none", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
57565
57565
|
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse" }),
|
|
57566
57566
|
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse delay-150" }),
|
|
57567
57567
|
/* @__PURE__ */ jsx("div", { className: "h-2 w-2 rounded-full bg-primary animate-pulse delay-300" }),
|
|
@@ -57731,14 +57731,14 @@ const ChatMessageRowDashboard = memo$1(function e({
|
|
|
57731
57731
|
className: cn(
|
|
57732
57732
|
"rounded-md p-3 break-words [&_li]:ml-6 [&_li]:list-disc [&_h1]:text-lg [&_h1]:font-bold [&_h1]:mt-4 [&_h2]:font-bold [&_h2]:mt-4 [&_h3]:mt-4 ",
|
|
57733
57733
|
d && "flex-1 w-full",
|
|
57734
|
-
d ? n ? "bg-
|
|
57734
|
+
d ? n ? "bg-background border border-border text-foreground rounded-tr-none" : "bg-background border border-border rounded-tl-none" : n ? "bg-primary text-primary-foreground rounded-tr-none" : "bg-background border border-border rounded-tl-none"
|
|
57735
57735
|
),
|
|
57736
57736
|
children: [
|
|
57737
57737
|
d ? /* @__PURE__ */ jsxs("div", { children: [
|
|
57738
57738
|
/* @__PURE__ */ jsx(
|
|
57739
57739
|
Textarea,
|
|
57740
57740
|
{
|
|
57741
|
-
className: "w-full min-h-14 max-h-[30em] resize-none field-sizing-content bg-
|
|
57741
|
+
className: "w-full min-h-14 max-h-[30em] resize-none field-sizing-content bg-background p-2 text-sm text-foreground",
|
|
57742
57742
|
value: f,
|
|
57743
57743
|
onChange: (pt) => S(pt.target.value)
|
|
57744
57744
|
}
|
|
@@ -57759,7 +57759,7 @@ const ChatMessageRowDashboard = memo$1(function e({
|
|
|
57759
57759
|
{
|
|
57760
57760
|
src: pt,
|
|
57761
57761
|
alt: `${t.senderName || (n ? "User" : "Assistant")} image ${mt + 1}`,
|
|
57762
|
-
className: "max-w-full h-auto rounded-md border bg-
|
|
57762
|
+
className: "max-w-full h-auto rounded-md border border-border bg-background",
|
|
57763
57763
|
loading: "lazy",
|
|
57764
57764
|
draggable: !1
|
|
57765
57765
|
},
|
|
@@ -57925,7 +57925,7 @@ function ChatMainArea({
|
|
|
57925
57925
|
onKeyDown: (S) => {
|
|
57926
57926
|
S.key !== "Enter" || S.shiftKey || (S.preventDefault(), c());
|
|
57927
57927
|
},
|
|
57928
|
-
className: t?.pending ? "collapse" : "flex-1 resize-none field-sizing-content max-h-[30em] rounded-xl border border-border/60 bg-muted/20 focus-visible:ring-
|
|
57928
|
+
className: t?.pending ? "collapse" : "flex-1 resize-none field-sizing-content max-h-[30em] rounded-xl border border-border/60 bg-muted/20 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
57929
57929
|
disabled: t?.pending
|
|
57930
57930
|
}
|
|
57931
57931
|
),
|
|
@@ -60006,7 +60006,7 @@ function ManufacturerBillingInfoSection({ manufacturer: e, readonly: t = !1, isL
|
|
|
60006
60006
|
readOnly: t
|
|
60007
60007
|
}
|
|
60008
60008
|
),
|
|
60009
|
-
V.representativeEmail && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60009
|
+
V.representativeEmail && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: V.representativeEmail.message })
|
|
60010
60010
|
] })
|
|
60011
60011
|
] }),
|
|
60012
60012
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: [
|
|
@@ -60016,7 +60016,7 @@ function ManufacturerBillingInfoSection({ manufacturer: e, readonly: t = !1, isL
|
|
|
60016
60016
|
] }),
|
|
60017
60017
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60018
60018
|
/* @__PURE__ */ jsx(Label$2, { className: "text-sm font-medium leading-none", htmlFor: "creditLimit", children: "Credit Limit" }),
|
|
60019
|
-
/* @__PURE__ */ jsx("div", { className: "p-2 border rounded-md bg-
|
|
60019
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 border rounded-md bg-muted/30", children: /* @__PURE__ */ jsx(
|
|
60020
60020
|
FormattedNumber,
|
|
60021
60021
|
{
|
|
60022
60022
|
value: e?.CreditLimit || 0,
|
|
@@ -60214,7 +60214,7 @@ function ManufacturerPublicInfoSection({ manufacturer: e, readonly: t = !1, isLo
|
|
|
60214
60214
|
readOnly: t
|
|
60215
60215
|
}
|
|
60216
60216
|
),
|
|
60217
|
-
lt.publicName && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60217
|
+
lt.publicName && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: lt.publicName.message })
|
|
60218
60218
|
] }),
|
|
60219
60219
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60220
60220
|
/* @__PURE__ */ jsx(Label$2, { className: "text-sm font-medium leading-none", htmlFor: "website", children: "Website *" }),
|
|
@@ -60234,7 +60234,7 @@ function ManufacturerPublicInfoSection({ manufacturer: e, readonly: t = !1, isLo
|
|
|
60234
60234
|
readOnly: t
|
|
60235
60235
|
}
|
|
60236
60236
|
),
|
|
60237
|
-
lt.website && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60237
|
+
lt.website && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: lt.website.message })
|
|
60238
60238
|
] }),
|
|
60239
60239
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60240
60240
|
/* @__PURE__ */ jsx(Label$2, { className: "text-sm font-medium leading-none", htmlFor: "manufacturerCategories", children: "Manufacturer Categories" }),
|
|
@@ -60267,7 +60267,7 @@ function ManufacturerPublicInfoSection({ manufacturer: e, readonly: t = !1, isLo
|
|
|
60267
60267
|
readOnly: t
|
|
60268
60268
|
}
|
|
60269
60269
|
),
|
|
60270
|
-
lt.customerServiceEmail && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60270
|
+
lt.customerServiceEmail && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: lt.customerServiceEmail.message })
|
|
60271
60271
|
] }),
|
|
60272
60272
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60273
60273
|
/* @__PURE__ */ jsx(Label$2, { className: "text-sm font-medium leading-none", htmlFor: "publicResources", children: "Public Resources" }),
|
|
@@ -60375,7 +60375,7 @@ function ManufacturerQualificationsSection({ manufacturer: e, readonly: t = !1,
|
|
|
60375
60375
|
readOnly: t
|
|
60376
60376
|
}
|
|
60377
60377
|
),
|
|
60378
|
-
V.partnerPortal && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60378
|
+
V.partnerPortal && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: V.partnerPortal.message })
|
|
60379
60379
|
] }),
|
|
60380
60380
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60381
60381
|
/* @__PURE__ */ jsx(Label$2, { className: "text-sm font-medium leading-none", htmlFor: "partnerRegistrationLink", children: "Partner Registration Link" }),
|
|
@@ -60393,7 +60393,7 @@ function ManufacturerQualificationsSection({ manufacturer: e, readonly: t = !1,
|
|
|
60393
60393
|
readOnly: t
|
|
60394
60394
|
}
|
|
60395
60395
|
),
|
|
60396
|
-
V.partnerRegistrationLink && /* @__PURE__ */ jsx("p", { className: "text-
|
|
60396
|
+
V.partnerRegistrationLink && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: V.partnerRegistrationLink.message })
|
|
60397
60397
|
] }),
|
|
60398
60398
|
!t && /* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Button$1, { type: "submit", disabled: at, className: "w-full sm:w-auto", children: at ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60399
60399
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
@@ -60547,7 +60547,7 @@ function ManufacturerReportsSection({ manufacturerId: e, userEmail: t, isLoading
|
|
|
60547
60547
|
Kt.reports.map((Jt) => /* @__PURE__ */ jsxs(
|
|
60548
60548
|
"div",
|
|
60549
60549
|
{
|
|
60550
|
-
className: "flex items-start gap-4 rounded-lg border p-4 transition-colors hover:bg-
|
|
60550
|
+
className: "flex items-start gap-4 rounded-lg border p-4 transition-colors hover:bg-muted",
|
|
60551
60551
|
children: [
|
|
60552
60552
|
/* @__PURE__ */ jsx("div", { className: "rounded-full bg-primary/10 p-2", children: /* @__PURE__ */ jsx(Jt.icon, { className: "h-5 w-5 text-primary" }) }),
|
|
60553
60553
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
@@ -60667,58 +60667,66 @@ function ManufacturerResellerOrdersSection(e) {
|
|
|
60667
60667
|
{
|
|
60668
60668
|
name: "All",
|
|
60669
60669
|
icon: Package,
|
|
60670
|
-
|
|
60670
|
+
stripeClass: "bg-info/60",
|
|
60671
|
+
iconBgClass: "bg-info/90",
|
|
60672
|
+
iconTextClass: "text-info-foreground",
|
|
60671
60673
|
orders: l.all.orders,
|
|
60672
60674
|
amount: l.all.amount
|
|
60673
60675
|
},
|
|
60674
60676
|
{
|
|
60675
60677
|
name: "Processing",
|
|
60676
60678
|
icon: RefreshCcw,
|
|
60677
|
-
|
|
60679
|
+
stripeClass: "bg-warning/60",
|
|
60680
|
+
iconBgClass: "bg-warning/90",
|
|
60681
|
+
iconTextClass: "text-warning-foreground",
|
|
60678
60682
|
orders: l.processing.orders,
|
|
60679
60683
|
amount: l.processing.amount
|
|
60680
60684
|
},
|
|
60681
60685
|
{
|
|
60682
60686
|
name: "Shipped",
|
|
60683
60687
|
icon: Truck,
|
|
60684
|
-
|
|
60688
|
+
stripeClass: "bg-success/60",
|
|
60689
|
+
iconBgClass: "bg-success/90",
|
|
60690
|
+
iconTextClass: "text-success-foreground",
|
|
60685
60691
|
orders: l.shipped.orders,
|
|
60686
60692
|
amount: l.shipped.amount
|
|
60687
60693
|
},
|
|
60688
60694
|
{
|
|
60689
60695
|
name: "Delayed",
|
|
60690
60696
|
icon: CircleAlert,
|
|
60691
|
-
|
|
60697
|
+
stripeClass: "bg-destructive/60",
|
|
60698
|
+
iconBgClass: "bg-destructive/90",
|
|
60699
|
+
iconTextClass: "text-destructive-foreground",
|
|
60692
60700
|
orders: l.delayed.orders,
|
|
60693
60701
|
amount: l.delayed.amount
|
|
60694
60702
|
}
|
|
60695
60703
|
];
|
|
60696
60704
|
return n || e.isLoading ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
60697
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
60705
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
|
|
60698
60706
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
60699
60707
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-40 mb-4" }),
|
|
60700
60708
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: [1, 2, 3, 4].map((d) => /* @__PURE__ */ jsx(Skeleton, { className: "h-32 w-full" }, d)) })
|
|
60701
60709
|
] })
|
|
60702
60710
|
] }) : a ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
60703
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
60711
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
|
|
60704
60712
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsxs(Alert, { variant: "destructive", children: [
|
|
60705
60713
|
/* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4" }),
|
|
60706
60714
|
/* @__PURE__ */ jsx(AlertTitle, { children: "Error" }),
|
|
60707
60715
|
/* @__PURE__ */ jsx(AlertDescription, { children: "Failed to load reseller orders. Please try again later." })
|
|
60708
60716
|
] }) })
|
|
60709
60717
|
] }) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
60710
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
60718
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Reseller Orders" }) }),
|
|
60711
60719
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
60712
60720
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center mb-4", children: [
|
|
60713
60721
|
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: "Active Orders:" }),
|
|
60714
60722
|
/* @__PURE__ */ jsx("span", { className: "ml-2 font-bold", children: l.all.orders })
|
|
60715
60723
|
] }),
|
|
60716
60724
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: c.map((d) => /* @__PURE__ */ jsx(Card, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-0", children: [
|
|
60717
|
-
/* @__PURE__ */ jsx("div", { className: `${d.
|
|
60725
|
+
/* @__PURE__ */ jsx("div", { className: `${d.stripeClass} h-[3px]` }),
|
|
60718
60726
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
60719
60727
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
60720
60728
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-base", children: d.name }),
|
|
60721
|
-
/* @__PURE__ */ jsx("div", { className: `${d.
|
|
60729
|
+
/* @__PURE__ */ jsx("div", { className: `${d.iconBgClass} p-2 rounded-full`, children: /* @__PURE__ */ jsx(d.icon, { className: `size-4 shrink-0 ${d.iconTextClass}` }) })
|
|
60722
60730
|
] }),
|
|
60723
60731
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
60724
60732
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -60800,7 +60808,7 @@ function SalesSummary({ fiscalYearMonthStart: e, salesData: t, isLoading: n }) {
|
|
|
60800
60808
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
60801
60809
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
60802
60810
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm font-medium", children: "Last 30 Days" }),
|
|
60803
|
-
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-
|
|
60811
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-muted", children: /* @__PURE__ */ jsx(TrendingUp, { className: "size-4 shrink-0 text-muted-foreground" }) })
|
|
60804
60812
|
] }),
|
|
60805
60813
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
60806
60814
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: /* @__PURE__ */ jsx(FormattedNumber, { value: a, style: "currency", currency: "CAD", currencyDisplay: "symbol" }) }),
|
|
@@ -60810,7 +60818,7 @@ function SalesSummary({ fiscalYearMonthStart: e, salesData: t, isLoading: n }) {
|
|
|
60810
60818
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
60811
60819
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
60812
60820
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm font-medium", children: "Last 3 Months" }),
|
|
60813
|
-
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-
|
|
60821
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-muted", children: /* @__PURE__ */ jsx(Calendar$1, { className: "size-4 shrink-0 text-muted-foreground" }) })
|
|
60814
60822
|
] }),
|
|
60815
60823
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
60816
60824
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: /* @__PURE__ */ jsx(FormattedNumber, { value: s, style: "currency", currency: "CAD", currencyDisplay: "symbol" }) }),
|
|
@@ -60824,7 +60832,7 @@ function SalesSummary({ fiscalYearMonthStart: e, salesData: t, isLoading: n }) {
|
|
|
60824
60832
|
l,
|
|
60825
60833
|
")"
|
|
60826
60834
|
] }),
|
|
60827
|
-
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-
|
|
60835
|
+
/* @__PURE__ */ jsx("div", { className: "p-2 rounded-full bg-muted", children: /* @__PURE__ */ jsx(CalendarDays, { className: "size-4 shrink-0 text-muted-foreground" }) })
|
|
60828
60836
|
] }),
|
|
60829
60837
|
/* @__PURE__ */ jsxs(CardContent, { children: [
|
|
60830
60838
|
/* @__PURE__ */ jsx("div", { className: "text-2xl font-bold", children: /* @__PURE__ */ jsx(FormattedNumber, { value: o, style: "currency", currency: "CAD", currencyDisplay: "symbol" }) }),
|
|
@@ -61114,7 +61122,7 @@ function ManufacturerInventoryFinanceCard({
|
|
|
61114
61122
|
/* @__PURE__ */ jsx(
|
|
61115
61123
|
"span",
|
|
61116
61124
|
{
|
|
61117
|
-
className: `font-bold ${c >= 0 ? "text-
|
|
61125
|
+
className: `font-bold ${c >= 0 ? "text-success" : "text-destructive"}`,
|
|
61118
61126
|
children: formatMoney(c)
|
|
61119
61127
|
}
|
|
61120
61128
|
)
|
|
@@ -61129,7 +61137,7 @@ function ManufacturerInventoryFinanceCard({
|
|
|
61129
61137
|
d,
|
|
61130
61138
|
"%"
|
|
61131
61139
|
] }),
|
|
61132
|
-
d > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-
|
|
61140
|
+
d > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-warning" })
|
|
61133
61141
|
] }) }),
|
|
61134
61142
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: d > 80 ? "High usage alert" : "Budget usage" }) })
|
|
61135
61143
|
] }) })
|
|
@@ -61195,7 +61203,7 @@ function ManufacturerCreditFinanceCard({
|
|
|
61195
61203
|
/* @__PURE__ */ jsx(
|
|
61196
61204
|
"span",
|
|
61197
61205
|
{
|
|
61198
|
-
className: `font-bold ${s >= 0 ? "text-
|
|
61206
|
+
className: `font-bold ${s >= 0 ? "text-success" : "text-destructive"}`,
|
|
61199
61207
|
children: formatMoney(s)
|
|
61200
61208
|
}
|
|
61201
61209
|
)
|
|
@@ -61210,7 +61218,7 @@ function ManufacturerCreditFinanceCard({
|
|
|
61210
61218
|
o,
|
|
61211
61219
|
"%"
|
|
61212
61220
|
] }),
|
|
61213
|
-
o > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-
|
|
61221
|
+
o > 80 && /* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4 text-warning" })
|
|
61214
61222
|
] }) }),
|
|
61215
61223
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: o > 80 ? "High credit usage alert" : "Credit usage" }) })
|
|
61216
61224
|
] }) })
|
|
@@ -61403,7 +61411,7 @@ function ManufacturerCategories({ categories: e, activeCategory: t, onSelectCate
|
|
|
61403
61411
|
className: "px-3 py-1.5 text-xs whitespace-nowrap rounded-full",
|
|
61404
61412
|
children: [
|
|
61405
61413
|
a.CategoryName ?? "Undefined",
|
|
61406
|
-
a.QualificationRequired && /* @__PURE__ */ jsx(ShieldCheck, { className: `ml-1 w-5 h-5 ${t !== a.CategoryCode ? "text-
|
|
61414
|
+
a.QualificationRequired && /* @__PURE__ */ jsx(ShieldCheck, { className: `ml-1 w-5 h-5 ${t !== a.CategoryCode ? "text-destructive" : ""}` })
|
|
61407
61415
|
]
|
|
61408
61416
|
},
|
|
61409
61417
|
a.CategoryCode
|
|
@@ -61439,25 +61447,25 @@ function ManufacturerCategoriesStats(e) {
|
|
|
61439
61447
|
));
|
|
61440
61448
|
}
|
|
61441
61449
|
const badgeVariants = cva(
|
|
61442
|
-
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus:outline-hidden focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
61450
|
+
"inline-flex items-center rounded-full px-2.5 py-0.5 text-xs font-semibold transition-colors focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
61443
61451
|
{
|
|
61444
61452
|
variants: {
|
|
61445
61453
|
variant: {
|
|
61446
61454
|
default: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
61447
61455
|
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80",
|
|
61448
61456
|
destructive: "bg-destructive text-destructive-foreground hover:bg-destructive/80",
|
|
61449
|
-
outline: "text-foreground border border-
|
|
61450
|
-
success: "bg-
|
|
61451
|
-
warning: "bg-
|
|
61452
|
-
info: "bg-
|
|
61457
|
+
outline: "text-foreground border border-border hover:bg-accent hover:text-accent-foreground",
|
|
61458
|
+
success: "bg-success text-success-foreground hover:bg-success/90",
|
|
61459
|
+
warning: "bg-warning text-warning-foreground hover:bg-warning/90",
|
|
61460
|
+
info: "bg-info text-info-foreground hover:bg-info/90",
|
|
61453
61461
|
ghost: "bg-background hover:bg-accent hover:text-accent-foreground",
|
|
61454
61462
|
// Randmar color variants
|
|
61455
|
-
randmarRed: "bg-
|
|
61456
|
-
randmarBlue: "bg-
|
|
61457
|
-
randmarPurple: "bg-
|
|
61458
|
-
randmarGreen: "bg-
|
|
61459
|
-
randmarBlack: "bg-
|
|
61460
|
-
randmarYellow: "bg-
|
|
61463
|
+
randmarRed: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
61464
|
+
randmarBlue: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
61465
|
+
randmarPurple: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
61466
|
+
randmarGreen: "bg-primary text-primary-foreground hover:bg-primary/80",
|
|
61467
|
+
randmarBlack: "bg-foreground text-background hover:bg-foreground/90",
|
|
61468
|
+
randmarYellow: "bg-primary text-primary-foreground hover:bg-primary/80"
|
|
61461
61469
|
},
|
|
61462
61470
|
size: {
|
|
61463
61471
|
default: "h-6",
|
|
@@ -61541,17 +61549,17 @@ function ManufacturerCategorySummary({
|
|
|
61541
61549
|
l,
|
|
61542
61550
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-1", children: [
|
|
61543
61551
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Starred" }),
|
|
61544
|
-
s ? /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 fill-
|
|
61552
|
+
s ? /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 fill-warning text-warning" }) : /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-muted-foreground" })
|
|
61545
61553
|
] }),
|
|
61546
61554
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 flex flex-col items-end", children: [
|
|
61547
61555
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Auto-reorder" }),
|
|
61548
61556
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
61549
|
-
a ? /* @__PURE__ */ jsx(RefreshCw, { className: "size-4 text-
|
|
61557
|
+
a ? /* @__PURE__ */ jsx(RefreshCw, { className: "size-4 text-success" }) : /* @__PURE__ */ jsx(RefreshCwOff, { className: "size-4 text-warning" }),
|
|
61550
61558
|
/* @__PURE__ */ jsx(
|
|
61551
61559
|
Badge,
|
|
61552
61560
|
{
|
|
61553
|
-
variant: a ? "
|
|
61554
|
-
className:
|
|
61561
|
+
variant: a ? "success" : "warning",
|
|
61562
|
+
className: "text-xs",
|
|
61555
61563
|
children: a ? "Enabled" : "Disabled"
|
|
61556
61564
|
}
|
|
61557
61565
|
)
|
|
@@ -62399,7 +62407,7 @@ const Select$1 = Root2$3, SelectGroup = Group, SelectValue = Value, SelectTrigge
|
|
|
62399
62407
|
{
|
|
62400
62408
|
ref: a,
|
|
62401
62409
|
className: cn(
|
|
62402
|
-
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-
|
|
62410
|
+
"flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background data-[placeholder]:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
|
|
62403
62411
|
e
|
|
62404
62412
|
),
|
|
62405
62413
|
...n,
|
|
@@ -62567,7 +62575,7 @@ function ManufacturerProducts({
|
|
|
62567
62575
|
children: n && t.Categories?.findIndex((pt) => pt.AvailableToBuy) !== -1 && /* @__PURE__ */ jsx(
|
|
62568
62576
|
Button$1,
|
|
62569
62577
|
{
|
|
62570
|
-
className: "bg-
|
|
62578
|
+
className: "bg-success text-success-foreground hover:bg-success/90",
|
|
62571
62579
|
disabled: l,
|
|
62572
62580
|
onClick: () => f(!0),
|
|
62573
62581
|
children: l ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -62650,7 +62658,7 @@ function ManufacturerProducts({
|
|
|
62650
62658
|
/* @__PURE__ */ jsx(
|
|
62651
62659
|
Button$1,
|
|
62652
62660
|
{
|
|
62653
|
-
className: "bg-
|
|
62661
|
+
className: "bg-success text-success-foreground hover:bg-success/90",
|
|
62654
62662
|
onClick: ot,
|
|
62655
62663
|
disabled: l,
|
|
62656
62664
|
children: l ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -62726,7 +62734,7 @@ function PartnerRelationshipPage({
|
|
|
62726
62734
|
}
|
|
62727
62735
|
),
|
|
62728
62736
|
a && l?.Manufacturer?.Categories?.findIndex((mt) => mt.AvailableToBuy) !== -1 && /* @__PURE__ */ jsxs(Dialog, { open: V, onOpenChange: at, children: [
|
|
62729
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button$1, { className: "bg-
|
|
62737
|
+
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button$1, { className: "ml-2 bg-success text-success-foreground hover:bg-success/90", disabled: A, children: A ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62730
62738
|
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
62731
62739
|
"Syncing..."
|
|
62732
62740
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -62747,7 +62755,7 @@ function PartnerRelationshipPage({
|
|
|
62747
62755
|
/* @__PURE__ */ jsx(
|
|
62748
62756
|
Button$1,
|
|
62749
62757
|
{
|
|
62750
|
-
className: "bg-
|
|
62758
|
+
className: "bg-success text-success-foreground hover:bg-success/90",
|
|
62751
62759
|
onClick: lt,
|
|
62752
62760
|
disabled: A,
|
|
62753
62761
|
children: A ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -62944,7 +62952,7 @@ const PublicInfo = ({ reseller: e, appID: t, isLoading: n, readonly: a, onUnsave
|
|
|
62944
62952
|
className: at.contactName || pt(V("contactName")) ? "input-error-indicator" : ""
|
|
62945
62953
|
}
|
|
62946
62954
|
),
|
|
62947
|
-
at.contactName && /* @__PURE__ */ jsx("p", { className: "text-
|
|
62955
|
+
at.contactName && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: at.contactName.message })
|
|
62948
62956
|
] }),
|
|
62949
62957
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
62950
62958
|
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium leading-none", htmlFor: "publicEmail", children: "Public Email *" }),
|
|
@@ -62964,7 +62972,7 @@ const PublicInfo = ({ reseller: e, appID: t, isLoading: n, readonly: a, onUnsave
|
|
|
62964
62972
|
className: at.publicEmail || pt(V("publicEmail")) ? "input-error-indicator" : ""
|
|
62965
62973
|
}
|
|
62966
62974
|
),
|
|
62967
|
-
at.publicEmail && /* @__PURE__ */ jsx("p", { className: "text-
|
|
62975
|
+
at.publicEmail && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: at.publicEmail.message })
|
|
62968
62976
|
] })
|
|
62969
62977
|
] }),
|
|
62970
62978
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
@@ -62985,7 +62993,7 @@ const PublicInfo = ({ reseller: e, appID: t, isLoading: n, readonly: a, onUnsave
|
|
|
62985
62993
|
className: at.website || pt(V("website")) ? "input-error-indicator" : ""
|
|
62986
62994
|
}
|
|
62987
62995
|
),
|
|
62988
|
-
at.website && /* @__PURE__ */ jsx("p", { className: "text-
|
|
62996
|
+
at.website && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: at.website.message })
|
|
62989
62997
|
] }),
|
|
62990
62998
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
62991
62999
|
/* @__PURE__ */ jsx("label", { className: "text-sm font-medium leading-none", htmlFor: "phone", children: "Phone Number *" }),
|
|
@@ -63005,7 +63013,7 @@ const PublicInfo = ({ reseller: e, appID: t, isLoading: n, readonly: a, onUnsave
|
|
|
63005
63013
|
className: at.phone || pt(V("phone")) ? "input-error-indicator" : ""
|
|
63006
63014
|
}
|
|
63007
63015
|
),
|
|
63008
|
-
at.phone && /* @__PURE__ */ jsx("p", { className: "text-
|
|
63016
|
+
at.phone && /* @__PURE__ */ jsx("p", { className: "text-destructive text-sm", children: at.phone.message })
|
|
63009
63017
|
] }),
|
|
63010
63018
|
/* @__PURE__ */ jsx("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx(Button$1, { type: "submit", disabled: lt || a, className: a ? "hidden" : "", children: lt ? "Saving..." : "Save" }) })
|
|
63011
63019
|
] })
|
|
@@ -63390,8 +63398,8 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
63390
63398
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
63391
63399
|
/* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
63392
63400
|
/* @__PURE__ */ jsxs(CardHeader, { className: "pb-2 pt-4 px-4 flex flex-row items-center justify-between", children: [
|
|
63393
|
-
/* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
63394
|
-
/* @__PURE__ */ jsx(Badge, { variant: "
|
|
63401
|
+
/* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Account Tier" }),
|
|
63402
|
+
/* @__PURE__ */ jsx(Badge, { variant: "success", className: "text-xs", children: "Active" })
|
|
63395
63403
|
] }),
|
|
63396
63404
|
/* @__PURE__ */ jsxs(CardContent, { className: "pt-2 px-4 pb-4", children: [
|
|
63397
63405
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between mb-3 bg-primary/5 p-4 rounded-lg", children: [
|
|
@@ -63402,7 +63410,7 @@ $10 with opportunities under $1,000` : e === "D" ? "$15 under $1,500" : e === "E
|
|
|
63402
63410
|
] }),
|
|
63403
63411
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Optimized for online retail" })
|
|
63404
63412
|
] }),
|
|
63405
|
-
/* @__PURE__ */ jsx(CircleCheck, { className: "h-6 w-6 text-
|
|
63413
|
+
/* @__PURE__ */ jsx(CircleCheck, { className: "h-6 w-6 text-success" })
|
|
63406
63414
|
] }),
|
|
63407
63415
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-2 mb-3", children: [
|
|
63408
63416
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 p-2 rounded-lg border bg-card hover:bg-accent/5 transition-colors", children: [
|
|
@@ -63490,28 +63498,36 @@ function OrderCategories({ openOrders: e = [], isLoading: t = !1 }) {
|
|
|
63490
63498
|
{
|
|
63491
63499
|
name: "All",
|
|
63492
63500
|
icon: Package,
|
|
63493
|
-
|
|
63501
|
+
stripeClass: "bg-info/60",
|
|
63502
|
+
iconBgClass: "bg-info/90",
|
|
63503
|
+
iconTextClass: "text-info-foreground",
|
|
63494
63504
|
orders: R,
|
|
63495
63505
|
amount: V
|
|
63496
63506
|
},
|
|
63497
63507
|
{
|
|
63498
63508
|
name: "Processing",
|
|
63499
63509
|
icon: RefreshCcw,
|
|
63500
|
-
|
|
63510
|
+
stripeClass: "bg-warning/60",
|
|
63511
|
+
iconBgClass: "bg-warning/90",
|
|
63512
|
+
iconTextClass: "text-warning-foreground",
|
|
63501
63513
|
orders: o,
|
|
63502
63514
|
amount: l
|
|
63503
63515
|
},
|
|
63504
63516
|
{
|
|
63505
63517
|
name: "Shipped",
|
|
63506
63518
|
icon: Truck,
|
|
63507
|
-
|
|
63519
|
+
stripeClass: "bg-success/60",
|
|
63520
|
+
iconBgClass: "bg-success/90",
|
|
63521
|
+
iconTextClass: "text-success-foreground",
|
|
63508
63522
|
orders: S,
|
|
63509
63523
|
amount: A
|
|
63510
63524
|
},
|
|
63511
63525
|
{
|
|
63512
63526
|
name: "Delayed",
|
|
63513
63527
|
icon: CircleAlert,
|
|
63514
|
-
|
|
63528
|
+
stripeClass: "bg-destructive/60",
|
|
63529
|
+
iconBgClass: "bg-destructive/90",
|
|
63530
|
+
iconTextClass: "text-destructive-foreground",
|
|
63515
63531
|
orders: d,
|
|
63516
63532
|
amount: f
|
|
63517
63533
|
}
|
|
@@ -63519,7 +63535,7 @@ function OrderCategories({ openOrders: e = [], isLoading: t = !1 }) {
|
|
|
63519
63535
|
return t ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
63520
63536
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(Skeleton, { className: "h-7 w-40" }) }),
|
|
63521
63537
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: [1, 2, 3, 4].map((lt) => /* @__PURE__ */ jsx(Card, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-0", children: [
|
|
63522
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
63538
|
+
/* @__PURE__ */ jsx("div", { className: "bg-border h-[3px]" }),
|
|
63523
63539
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
63524
63540
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
63525
63541
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
@@ -63538,13 +63554,13 @@ function OrderCategories({ openOrders: e = [], isLoading: t = !1 }) {
|
|
|
63538
63554
|
] })
|
|
63539
63555
|
] }) }, lt)) }) })
|
|
63540
63556
|
] }) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
63541
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
63557
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Order Categories" }) }),
|
|
63542
63558
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-3.5", children: at.map((lt) => /* @__PURE__ */ jsx(Card, { className: "overflow-hidden rounded-md rounded-b-lg border-0 shadow-md", children: /* @__PURE__ */ jsxs(CardContent, { className: "p-0", children: [
|
|
63543
|
-
/* @__PURE__ */ jsx("div", { className: `${lt.
|
|
63559
|
+
/* @__PURE__ */ jsx("div", { className: `${lt.stripeClass} h-[3px]` }),
|
|
63544
63560
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
63545
63561
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
63546
63562
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-base", children: lt.name }),
|
|
63547
|
-
/* @__PURE__ */ jsx("div", { className: `${lt.
|
|
63563
|
+
/* @__PURE__ */ jsx("div", { className: `${lt.iconBgClass} p-2 rounded-full`, children: /* @__PURE__ */ jsx(lt.icon, { className: `size-4 shrink-0 ${lt.iconTextClass}` }) })
|
|
63548
63564
|
] }),
|
|
63549
63565
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
63550
63566
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -63706,7 +63722,7 @@ function ReportsSection({ isLoading: e, userEmail: t, appID: n }) {
|
|
|
63706
63722
|
$t.reports.map((Ht) => /* @__PURE__ */ jsxs(
|
|
63707
63723
|
"div",
|
|
63708
63724
|
{
|
|
63709
|
-
className: "flex items-start gap-4 p-4 border rounded-lg hover:bg-
|
|
63725
|
+
className: "flex items-start gap-4 p-4 border rounded-lg hover:bg-muted transition-colors",
|
|
63710
63726
|
children: [
|
|
63711
63727
|
/* @__PURE__ */ jsx("div", { className: "bg-primary/10 p-2 rounded-full", children: /* @__PURE__ */ jsx(Ht.icon, { className: "h-5 w-5 text-primary" }) }),
|
|
63712
63728
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
@@ -63916,7 +63932,7 @@ function PartnerCardHeader({
|
|
|
63916
63932
|
/* @__PURE__ */ jsx(TooltipProvider, { children: /* @__PURE__ */ jsxs(Tooltip$1, { delayDuration: 300, children: [
|
|
63917
63933
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs("div", { className: "flex cursor-pointer items-center gap-1", onClick: S, children: [
|
|
63918
63934
|
/* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: t }),
|
|
63919
|
-
d ? /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 text-
|
|
63935
|
+
d ? /* @__PURE__ */ jsx(Check, { className: "h-3 w-3 text-success" }) : /* @__PURE__ */ jsx(Copy, { className: "h-3 w-3 text-muted-foreground" })
|
|
63920
63936
|
] }) }),
|
|
63921
63937
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsx("p", { children: d ? "Copied!" : "Copy ID" }) })
|
|
63922
63938
|
] }) })
|
|
@@ -64218,7 +64234,7 @@ function ProductInventoryButton({
|
|
|
64218
64234
|
size: a,
|
|
64219
64235
|
className: cn(
|
|
64220
64236
|
"text-sm",
|
|
64221
|
-
Ft ? "manufacturer-theme text-primary" : dt > 0 ? "text-
|
|
64237
|
+
Ft ? "manufacturer-theme text-primary" : dt > 0 ? "text-success" : "text-destructive",
|
|
64222
64238
|
s
|
|
64223
64239
|
),
|
|
64224
64240
|
children: [
|
|
@@ -64549,10 +64565,10 @@ const alertVariants = cva(
|
|
|
64549
64565
|
variants: {
|
|
64550
64566
|
variant: {
|
|
64551
64567
|
default: "bg-background text-foreground",
|
|
64552
|
-
destructive: "border-destructive/50
|
|
64553
|
-
success: "border-
|
|
64554
|
-
warning: "border-
|
|
64555
|
-
info: "border-
|
|
64568
|
+
destructive: "border-destructive/50 bg-destructive/10 text-foreground [&>svg]:text-destructive",
|
|
64569
|
+
success: "border-success/50 bg-success/10 text-foreground [&>svg]:text-success",
|
|
64570
|
+
warning: "border-warning/50 bg-warning/10 text-foreground [&>svg]:text-warning",
|
|
64571
|
+
info: "border-info/50 bg-info/10 text-foreground [&>svg]:text-info"
|
|
64556
64572
|
}
|
|
64557
64573
|
},
|
|
64558
64574
|
defaultVariants: {
|
|
@@ -66727,14 +66743,7 @@ function PartnerCard({
|
|
|
66727
66743
|
e.IsReseller && /* @__PURE__ */ jsx(Badge, { className: "reseller-theme", children: "Reseller" }),
|
|
66728
66744
|
e.IsSalesAgency && /* @__PURE__ */ jsx(Badge, { children: "Agency" }),
|
|
66729
66745
|
e.HasShopifyStore && /* @__PURE__ */ jsx(Badge, { className: "shopify-theme", children: "Shopify" }),
|
|
66730
|
-
e.IsVendor && /* @__PURE__ */ jsx(
|
|
66731
|
-
Badge,
|
|
66732
|
-
{
|
|
66733
|
-
variant: "outline",
|
|
66734
|
-
className: "text-[var(--randmar-black)] border-[var(--randmar-black)] hover:text-[var(--randmar-black)] hover:border-[var(--randmar-black)]",
|
|
66735
|
-
children: "Vendor"
|
|
66736
|
-
}
|
|
66737
|
-
)
|
|
66746
|
+
e.IsVendor && /* @__PURE__ */ jsx(Badge, { variant: "outline", children: "Vendor" })
|
|
66738
66747
|
] }),
|
|
66739
66748
|
s && e.About && /* @__PURE__ */ jsx(
|
|
66740
66749
|
"div",
|
|
@@ -67040,7 +67049,7 @@ const Topbar = forwardRef(
|
|
|
67040
67049
|
Input,
|
|
67041
67050
|
{
|
|
67042
67051
|
placeholder: a ?? "Search...",
|
|
67043
|
-
className: "w-full pl-8 bg-
|
|
67052
|
+
className: "w-full pl-8 bg-background text-foreground",
|
|
67044
67053
|
value: o,
|
|
67045
67054
|
onChange: (A) => l(A.target.value),
|
|
67046
67055
|
onKeyDown: (A) => {
|
|
@@ -67082,40 +67091,44 @@ function ActiveOrdersCard({ orders: e, loading: t = !1 }) {
|
|
|
67082
67091
|
{
|
|
67083
67092
|
name: "All",
|
|
67084
67093
|
icon: Package,
|
|
67085
|
-
|
|
67086
|
-
|
|
67094
|
+
stripeClass: "bg-info/60",
|
|
67095
|
+
iconBgClass: "bg-info/90",
|
|
67096
|
+
iconTextClass: "text-info-foreground",
|
|
67087
67097
|
orders: n.all.orders,
|
|
67088
67098
|
amount: n.all.amount
|
|
67089
67099
|
},
|
|
67090
67100
|
{
|
|
67091
67101
|
name: "Processing",
|
|
67092
67102
|
icon: RefreshCcw,
|
|
67093
|
-
|
|
67094
|
-
|
|
67103
|
+
stripeClass: "bg-warning/60",
|
|
67104
|
+
iconBgClass: "bg-warning/90",
|
|
67105
|
+
iconTextClass: "text-warning-foreground",
|
|
67095
67106
|
orders: n.processing.orders,
|
|
67096
67107
|
amount: n.processing.amount
|
|
67097
67108
|
},
|
|
67098
67109
|
{
|
|
67099
67110
|
name: "Shipped",
|
|
67100
67111
|
icon: Truck,
|
|
67101
|
-
|
|
67102
|
-
|
|
67112
|
+
stripeClass: "bg-success/60",
|
|
67113
|
+
iconBgClass: "bg-success/90",
|
|
67114
|
+
iconTextClass: "text-success-foreground",
|
|
67103
67115
|
orders: n.shipped.orders,
|
|
67104
67116
|
amount: n.shipped.amount
|
|
67105
67117
|
},
|
|
67106
67118
|
{
|
|
67107
67119
|
name: "Delayed",
|
|
67108
67120
|
icon: CircleAlert,
|
|
67109
|
-
|
|
67110
|
-
|
|
67121
|
+
stripeClass: "bg-destructive/60",
|
|
67122
|
+
iconBgClass: "bg-destructive/90",
|
|
67123
|
+
iconTextClass: "text-destructive-foreground",
|
|
67111
67124
|
orders: n.delayed.orders,
|
|
67112
67125
|
amount: n.delayed.amount
|
|
67113
67126
|
}
|
|
67114
67127
|
];
|
|
67115
67128
|
return t ? /* @__PURE__ */ jsxs(Card, { className: "@container", children: [
|
|
67116
|
-
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
67129
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Active Orders" }) }),
|
|
67117
67130
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-4 p-4", children: [1, 2, 3, 4].map((s) => /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border", children: [
|
|
67118
|
-
/* @__PURE__ */ jsx("div", { className: "bg-
|
|
67131
|
+
/* @__PURE__ */ jsx("div", { className: "bg-border h-[3px]" }),
|
|
67119
67132
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
67120
67133
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
67121
67134
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
@@ -67134,13 +67147,13 @@ function ActiveOrdersCard({ orders: e, loading: t = !1 }) {
|
|
|
67134
67147
|
] })
|
|
67135
67148
|
] }, s)) })
|
|
67136
67149
|
] }) : /* @__PURE__ */ jsxs(Card, { className: "@container", children: [
|
|
67137
|
-
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
67150
|
+
/* @__PURE__ */ jsx(CardHeader, { className: "pb-0", children: /* @__PURE__ */ jsx(CardTitle, { className: "text-base font-medium text-foreground", children: "Active Orders" }) }),
|
|
67138
67151
|
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @sm:grid-cols-2 gap-4 p-4", children: a.map((s) => /* @__PURE__ */ jsxs("div", { className: "overflow-hidden rounded-md border", children: [
|
|
67139
|
-
/* @__PURE__ */ jsx("div", { className: `${s.
|
|
67152
|
+
/* @__PURE__ */ jsx("div", { className: `${s.stripeClass} h-[3px]` }),
|
|
67140
67153
|
/* @__PURE__ */ jsxs("div", { className: "p-6 border border-t-0", children: [
|
|
67141
67154
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-center mb-4", children: [
|
|
67142
67155
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold text-base", children: s.name }),
|
|
67143
|
-
/* @__PURE__ */ jsx("div", { className: `${s.
|
|
67156
|
+
/* @__PURE__ */ jsx("div", { className: `${s.iconBgClass} p-2 rounded-full`, children: /* @__PURE__ */ jsx(s.icon, { className: `size-4 shrink-0 ${s.iconTextClass}` }) })
|
|
67144
67157
|
] }),
|
|
67145
67158
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start", children: [
|
|
67146
67159
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -73394,7 +73407,7 @@ function ProductImageCarousel({
|
|
|
73394
73407
|
type: "button",
|
|
73395
73408
|
variant: "secondary",
|
|
73396
73409
|
size: "icon",
|
|
73397
|
-
className: "absolute left-2 top-1/2 -translate-y-1/2 bg-
|
|
73410
|
+
className: "absolute left-2 top-1/2 -translate-y-1/2 bg-background/80 text-foreground shadow-sm ring-1 ring-border/50 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",
|
|
73398
73411
|
onClick: Rt,
|
|
73399
73412
|
"aria-label": "Previous image",
|
|
73400
73413
|
children: /* @__PURE__ */ jsx(ChevronLeft, { className: "h-4 w-4" })
|
|
@@ -73406,13 +73419,13 @@ function ProductImageCarousel({
|
|
|
73406
73419
|
type: "button",
|
|
73407
73420
|
variant: "secondary",
|
|
73408
73421
|
size: "icon",
|
|
73409
|
-
className: "absolute right-2 top-1/2 -translate-y-1/2 bg-
|
|
73422
|
+
className: "absolute right-2 top-1/2 -translate-y-1/2 bg-background/80 text-foreground shadow-sm ring-1 ring-border/50 opacity-0 transition-opacity group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100",
|
|
73410
73423
|
onClick: Vt,
|
|
73411
73424
|
"aria-label": "Next image",
|
|
73412
73425
|
children: /* @__PURE__ */ jsx(ChevronRight, { className: "h-4 w-4" })
|
|
73413
73426
|
}
|
|
73414
73427
|
),
|
|
73415
|
-
/* @__PURE__ */ jsx("div", { className: "absolute bottom-2 left-1/2 -translate-x-1/2 flex items-center gap-1 rounded-full bg-
|
|
73428
|
+
/* @__PURE__ */ jsx("div", { className: "absolute bottom-2 left-1/2 -translate-x-1/2 flex items-center gap-1 rounded-full bg-background/80 px-2 py-1", children: Array.from({ length: dt }).map((Kt, Jt) => {
|
|
73416
73429
|
const zt = Jt === at;
|
|
73417
73430
|
return /* @__PURE__ */ jsx(
|
|
73418
73431
|
"button",
|
|
@@ -73420,7 +73433,7 @@ function ProductImageCarousel({
|
|
|
73420
73433
|
type: "button",
|
|
73421
73434
|
className: [
|
|
73422
73435
|
"h-1.5 w-1.5 rounded-full transition-colors",
|
|
73423
|
-
zt ? "bg-
|
|
73436
|
+
zt ? "bg-foreground" : "bg-muted-foreground/40 hover:bg-muted-foreground/60"
|
|
73424
73437
|
].join(" "),
|
|
73425
73438
|
onClick: () => Ut(Jt),
|
|
73426
73439
|
"aria-label": `Go to image ${Jt + 1} of ${dt}`,
|
|
@@ -73503,7 +73516,7 @@ function ProductCard({
|
|
|
73503
73516
|
ir = !0;
|
|
73504
73517
|
};
|
|
73505
73518
|
}, [e, Ut, pt, t?.RandmarSKU]);
|
|
73506
|
-
const Kt = (ir) => ir >= 90 ? { label: "Top 10% Bestseller", color: "text-
|
|
73519
|
+
const Kt = (ir) => ir >= 90 ? { label: "Top 10% Bestseller", color: "text-primary", bgColor: "bg-primary/10" } : ir >= 75 ? { label: "Bestseller", color: "text-info", bgColor: "bg-info/10" } : ir >= 33 ? { label: "Popular", color: "text-success", bgColor: "bg-success/10" } : { label: "Rising", color: "text-muted-foreground", bgColor: "bg-muted/30" }, Jt = Ct !== "complete" && Ct !== "error", zt = Ct === "summary" ? 40 : Ct === "detailed" ? 80 : 10, qt = yt?.SalesStatistics ?? [], er = Jt ? [] : qt, dr = yt?.RandmarTitle ?? t?.RandmarTitle ?? t?.RandmarSKU ?? "this product", lr = yt?.RandmarSKU ?? t?.RandmarSKU, hr = e && t?.ManufacturerId ? `/${encodeURIComponent(e)}/Partner/${encodeURIComponent(t.ManufacturerId)}?tab=manufacturer-overview` : null;
|
|
73507
73520
|
if (!t)
|
|
73508
73521
|
return /* @__PURE__ */ jsx(Card, { className: "flex h-full w-full flex-col", children: /* @__PURE__ */ jsxs(CardContent, { className: "flex h-full flex-col p-6", children: [
|
|
73509
73522
|
/* @__PURE__ */ jsxs("div", { className: "flex justify-between items-start mb-3", children: [
|
|
@@ -73662,8 +73675,8 @@ function ProductCard({
|
|
|
73662
73675
|
t.State && /* @__PURE__ */ jsxs(
|
|
73663
73676
|
Badge,
|
|
73664
73677
|
{
|
|
73665
|
-
variant: "
|
|
73666
|
-
className:
|
|
73678
|
+
variant: t.State === "Active" ? "success" : "destructive",
|
|
73679
|
+
className: "rounded-full px-3",
|
|
73667
73680
|
children: [
|
|
73668
73681
|
/* @__PURE__ */ jsx(Check, { size: "12", className: "mr-1.5" }),
|
|
73669
73682
|
" ",
|
|
@@ -73674,8 +73687,8 @@ function ProductCard({
|
|
|
73674
73687
|
/* @__PURE__ */ jsxs(
|
|
73675
73688
|
Badge,
|
|
73676
73689
|
{
|
|
73677
|
-
variant: "
|
|
73678
|
-
className:
|
|
73690
|
+
variant: t.SerialNumber ? "success" : "warning",
|
|
73691
|
+
className: "rounded-full px-3",
|
|
73679
73692
|
children: [
|
|
73680
73693
|
/* @__PURE__ */ jsx(QrCode, { size: "12", className: "mr-1.5" }),
|
|
73681
73694
|
" ",
|
|
@@ -73683,15 +73696,15 @@ function ProductCard({
|
|
|
73683
73696
|
]
|
|
73684
73697
|
}
|
|
73685
73698
|
),
|
|
73686
|
-
t.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "
|
|
73699
|
+
t.TransparencyCode && /* @__PURE__ */ jsxs(Badge, { variant: "info", className: "rounded-full px-3", children: [
|
|
73687
73700
|
/* @__PURE__ */ jsx(CircleDashed, { size: "12", className: "mr-1.5" }),
|
|
73688
73701
|
" Transparency Code"
|
|
73689
73702
|
] }),
|
|
73690
73703
|
t.AvailableToBuy !== void 0 && /* @__PURE__ */ jsxs(
|
|
73691
73704
|
Badge,
|
|
73692
73705
|
{
|
|
73693
|
-
variant: "
|
|
73694
|
-
className:
|
|
73706
|
+
variant: t.AvailableToBuy ? "success" : "destructive",
|
|
73707
|
+
className: "rounded-full px-3",
|
|
73695
73708
|
children: [
|
|
73696
73709
|
/* @__PURE__ */ jsx(ShoppingCart, { size: "12", className: "mr-1.5" }),
|
|
73697
73710
|
" ",
|
|
@@ -73702,8 +73715,8 @@ function ProductCard({
|
|
|
73702
73715
|
t.ManufacturerCategory !== void 0 && /* @__PURE__ */ jsxs(
|
|
73703
73716
|
Badge,
|
|
73704
73717
|
{
|
|
73705
|
-
variant: "
|
|
73706
|
-
className:
|
|
73718
|
+
variant: t.ManufacturerCategory?.QualificationRequired ? "info" : "secondary",
|
|
73719
|
+
className: "rounded-full px-3",
|
|
73707
73720
|
children: [
|
|
73708
73721
|
/* @__PURE__ */ jsx(ShieldCheck, { size: "12", className: "mr-1.5" }),
|
|
73709
73722
|
" ",
|
|
@@ -73714,8 +73727,8 @@ function ProductCard({
|
|
|
73714
73727
|
t.ManufacturerId && /* @__PURE__ */ jsxs(
|
|
73715
73728
|
Badge,
|
|
73716
73729
|
{
|
|
73717
|
-
variant: "
|
|
73718
|
-
className:
|
|
73730
|
+
variant: t.AutoUpdate ? "info" : "secondary",
|
|
73731
|
+
className: "rounded-full px-3",
|
|
73719
73732
|
children: [
|
|
73720
73733
|
/* @__PURE__ */ jsx(RefreshCw, { size: "12", className: "mr-1.5" }),
|
|
73721
73734
|
" ",
|
|
@@ -73726,8 +73739,8 @@ function ProductCard({
|
|
|
73726
73739
|
/* @__PURE__ */ jsxs(
|
|
73727
73740
|
Badge,
|
|
73728
73741
|
{
|
|
73729
|
-
variant: "
|
|
73730
|
-
className:
|
|
73742
|
+
variant: t.BodyHTML && t.Title && t.MAP ? "success" : "warning",
|
|
73743
|
+
className: "rounded-full px-3",
|
|
73731
73744
|
children: [
|
|
73732
73745
|
/* @__PURE__ */ jsx(Store, { size: "12", className: "mr-1.5" }),
|
|
73733
73746
|
" ",
|
|
@@ -73837,26 +73850,26 @@ function ProductCard({
|
|
|
73837
73850
|
return isOpportunitySelectable(ir) ? /* @__PURE__ */ jsxs(
|
|
73838
73851
|
"div",
|
|
73839
73852
|
{
|
|
73840
|
-
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 border
|
|
73853
|
+
className: `flex justify-between items-center rounded-lg transition-colors py-2 px-4 border cursor-pointer ${ir.BidNumber == R?.BidNumber ? "bg-primary/10 border-2 border-primary" : "bg-background border-border hover:bg-muted/30"}`,
|
|
73841
73854
|
onClick: () => {
|
|
73842
73855
|
V(ir.BidNumber !== R?.BidNumber ? ir : null);
|
|
73843
73856
|
},
|
|
73844
73857
|
children: [
|
|
73845
73858
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
73846
73859
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: ir.Opportunity }),
|
|
73847
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs text-
|
|
73860
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs text-foreground", children: ir.BidNumber })
|
|
73848
73861
|
] }) }),
|
|
73849
73862
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
73850
73863
|
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(ir.Price ?? 0) }),
|
|
73851
|
-
ir.Rebate && ir.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73864
|
+
ir.Rebate && ir.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-success", children: [
|
|
73852
73865
|
"Rebate: ",
|
|
73853
73866
|
formatMoney(ir.Rebate)
|
|
73854
73867
|
] }),
|
|
73855
|
-
Er !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73868
|
+
Er !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-info", children: [
|
|
73856
73869
|
"Potential Revenue: ",
|
|
73857
73870
|
formatMoney(Er)
|
|
73858
73871
|
] }),
|
|
73859
|
-
ir.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73872
|
+
ir.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
73860
73873
|
"Ends: ",
|
|
73861
73874
|
nr(ir.EndDate)
|
|
73862
73875
|
] })
|
|
@@ -73868,30 +73881,30 @@ function ProductCard({
|
|
|
73868
73881
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsxs(
|
|
73869
73882
|
"div",
|
|
73870
73883
|
{
|
|
73871
|
-
className: "flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-
|
|
73884
|
+
className: "flex justify-between items-center rounded-lg transition-colors py-2 px-4 bg-muted/30 border border-border cursor-pointer hover:bg-muted/40",
|
|
73872
73885
|
onClick: () => {
|
|
73873
73886
|
ir.BidNumber && d(`/${e}/Opportunity/${ir.ManufacturerId}/${ir.BidNumber}`);
|
|
73874
73887
|
},
|
|
73875
73888
|
children: [
|
|
73876
73889
|
/* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col", children: [
|
|
73877
73890
|
/* @__PURE__ */ jsx("span", { className: "font-medium text-sm", children: ir.Opportunity }),
|
|
73878
|
-
/* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73891
|
+
/* @__PURE__ */ jsxs("span", { className: "text-xs text-foreground", children: [
|
|
73879
73892
|
ir.BidNumber,
|
|
73880
73893
|
" ",
|
|
73881
|
-
/* @__PURE__ */ jsx(Badge, { variant: "
|
|
73894
|
+
/* @__PURE__ */ jsx(Badge, { variant: "secondary", className: "text-xs mx-1 h-5", children: isOpportunityNotStartedYet(ir) && ir.StartDate ? `Starts ${nr(ir.StartDate)}` : "Currently unavailable" })
|
|
73882
73895
|
] })
|
|
73883
73896
|
] }) }),
|
|
73884
73897
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end", children: [
|
|
73885
73898
|
/* @__PURE__ */ jsx("span", { className: "font-semibold", children: formatMoney(ir.Price ?? 0) }),
|
|
73886
|
-
ir.Rebate && ir.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73899
|
+
ir.Rebate && ir.Rebate > 0 && /* @__PURE__ */ jsxs("span", { className: "text-xs text-success", children: [
|
|
73887
73900
|
"Rebate: ",
|
|
73888
73901
|
formatMoney(ir.Rebate)
|
|
73889
73902
|
] }),
|
|
73890
|
-
Er !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73903
|
+
Er !== null && /* @__PURE__ */ jsxs("span", { className: "text-xs text-info", children: [
|
|
73891
73904
|
"Potential Revenue: ",
|
|
73892
73905
|
formatMoney(Er)
|
|
73893
73906
|
] }),
|
|
73894
|
-
ir.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-
|
|
73907
|
+
ir.EndDate && /* @__PURE__ */ jsxs("span", { className: "text-xs text-muted-foreground", children: [
|
|
73895
73908
|
"Ends: ",
|
|
73896
73909
|
nr(ir.EndDate)
|
|
73897
73910
|
] })
|
|
@@ -73914,7 +73927,7 @@ function ProductCard({
|
|
|
73914
73927
|
Vt > 0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx("span", { className: "text-2xl font-bold whitespace-nowrap", children: formatMoney((R ? t.Opportunities?.find((ir) => ir.BidNumber == R.BidNumber)?.Price : $t) ?? 0) }) }),
|
|
73915
73928
|
at > 0 && /* @__PURE__ */ jsx("span", { className: "text-muted-foreground line-through ml-2 whitespace-nowrap", children: formatMoney(Vt) })
|
|
73916
73929
|
] }),
|
|
73917
|
-
at > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "
|
|
73930
|
+
at > 0 && /* @__PURE__ */ jsx("div", { className: "flex items-center", children: /* @__PURE__ */ jsxs(Badge, { variant: "info", className: "rounded-full px-3 whitespace-nowrap", children: [
|
|
73918
73931
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
73919
73932
|
at,
|
|
73920
73933
|
"% OFF"
|
|
@@ -73935,7 +73948,7 @@ function ProductCard({
|
|
|
73935
73948
|
l && /* @__PURE__ */ jsx(
|
|
73936
73949
|
Button$1,
|
|
73937
73950
|
{
|
|
73938
|
-
className: "gap-2 whitespace-nowrap
|
|
73951
|
+
className: "gap-2 whitespace-nowrap",
|
|
73939
73952
|
onClick: Ar,
|
|
73940
73953
|
disabled: ot,
|
|
73941
73954
|
children: ot ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
@@ -73968,7 +73981,7 @@ function ProductCard({
|
|
|
73968
73981
|
onChange: br,
|
|
73969
73982
|
onBlur: cr,
|
|
73970
73983
|
onClick: (ir) => ir.currentTarget.select(),
|
|
73971
|
-
className: `w-6 @[36rem]:w-12 text-center border-0 focus:ring-
|
|
73984
|
+
className: `w-6 @[36rem]:w-12 text-center border-0 bg-transparent text-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 ${!t.AvailableToBuy || o ? "text-muted-foreground" : ""}`,
|
|
73972
73985
|
disabled: !t.AvailableToBuy || o
|
|
73973
73986
|
}
|
|
73974
73987
|
),
|
|
@@ -74384,7 +74397,7 @@ const Checkbox = React.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */
|
|
|
74384
74397
|
{
|
|
74385
74398
|
ref: n,
|
|
74386
74399
|
className: cn(
|
|
74387
|
-
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-
|
|
74400
|
+
"peer h-4 w-4 shrink-0 rounded-sm border border-primary shadow focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground",
|
|
74388
74401
|
e
|
|
74389
74402
|
),
|
|
74390
74403
|
...t,
|
|
@@ -75504,15 +75517,15 @@ const DebugMessageDisplay = ({ debugMessages: e }) => {
|
|
|
75504
75517
|
};
|
|
75505
75518
|
return /* @__PURE__ */ jsx("div", { children: e.map((s, o) => {
|
|
75506
75519
|
if (typeof s == "string")
|
|
75507
|
-
return /* @__PURE__ */ jsx("p", { className: "text-
|
|
75520
|
+
return /* @__PURE__ */ jsx("p", { className: "text-muted-foreground", children: s }, o);
|
|
75508
75521
|
{
|
|
75509
75522
|
const l = t[o];
|
|
75510
75523
|
return /* @__PURE__ */ jsxs("div", { className: "cursor-pointer", onClick: () => a(o), children: [
|
|
75511
75524
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center", children: [
|
|
75512
|
-
/* @__PURE__ */ jsx("p", { className: "text-
|
|
75513
|
-
/* @__PURE__ */ jsx("span", { className: "text-
|
|
75525
|
+
/* @__PURE__ */ jsx("p", { className: "text-muted-foreground mr-2", children: s[0] }),
|
|
75526
|
+
/* @__PURE__ */ jsx("span", { className: "text-muted-foreground text-xs", children: l ? "▲" : "▼" })
|
|
75514
75527
|
] }),
|
|
75515
|
-
l && /* @__PURE__ */ jsx("p", { className: "text-
|
|
75528
|
+
l && /* @__PURE__ */ jsx("p", { className: "text-muted-foreground/80 pl-4", children: s[1] })
|
|
75516
75529
|
] }, o);
|
|
75517
75530
|
}
|
|
75518
75531
|
}) });
|
|
@@ -75856,16 +75869,16 @@ ${nn}`;
|
|
|
75856
75869
|
})(), xn = (Sr) => kr ? /* @__PURE__ */ jsxs(
|
|
75857
75870
|
"div",
|
|
75858
75871
|
{
|
|
75859
|
-
className: cn("flex flex-col gap-1 rounded-2xl bg-
|
|
75872
|
+
className: cn("flex flex-col gap-1 rounded-2xl bg-background/70 p-2 shadow-xs ring-1 ring-border/80", Sr),
|
|
75860
75873
|
role: "group",
|
|
75861
75874
|
"aria-label": `Attached files (${Yr})`,
|
|
75862
75875
|
children: [
|
|
75863
75876
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap items-center gap-2", children: [
|
|
75864
|
-
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-
|
|
75877
|
+
/* @__PURE__ */ jsx("span", { className: "text-xs font-medium text-muted-foreground", children: "Attached" }),
|
|
75865
75878
|
nr.map((Ir, Fr) => /* @__PURE__ */ jsxs(
|
|
75866
75879
|
"div",
|
|
75867
75880
|
{
|
|
75868
|
-
className: "inline-flex min-w-0 items-center gap-1 rounded-full bg-
|
|
75881
|
+
className: "inline-flex min-w-0 items-center gap-1 rounded-full bg-muted px-3 py-1 text-xs text-foreground ring-1 ring-border/80",
|
|
75869
75882
|
children: [
|
|
75870
75883
|
/* @__PURE__ */ jsx(File$1, { className: "h-3.5 w-3.5 shrink-0" }),
|
|
75871
75884
|
/* @__PURE__ */ jsx("span", { className: "max-w-[16rem] truncate", children: Ir.name }),
|
|
@@ -75874,7 +75887,7 @@ ${nn}`;
|
|
|
75874
75887
|
{
|
|
75875
75888
|
size: "icon",
|
|
75876
75889
|
variant: "ghost",
|
|
75877
|
-
className: "h-5 w-5 shrink-0 rounded-full hover:bg-
|
|
75890
|
+
className: "h-5 w-5 shrink-0 rounded-full hover:bg-muted/80",
|
|
75878
75891
|
onClick: () => bn(Fr),
|
|
75879
75892
|
"aria-label": `Remove attached file ${Ir.name}`,
|
|
75880
75893
|
type: "button",
|
|
@@ -75886,7 +75899,7 @@ ${nn}`;
|
|
|
75886
75899
|
`${Ir.name}_${Ir.lastModified}_${Ir.size}_${Fr}`
|
|
75887
75900
|
))
|
|
75888
75901
|
] }),
|
|
75889
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
75902
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Will be included with your next message." })
|
|
75890
75903
|
]
|
|
75891
75904
|
}
|
|
75892
75905
|
) : null, $n = /* @__PURE__ */ jsx("div", { className: "flex h-full items-center justify-center", children: /* @__PURE__ */ jsxs("div", { className: "text-center text-muted-foreground", children: [
|
|
@@ -75895,8 +75908,8 @@ ${nn}`;
|
|
|
75895
75908
|
] }) });
|
|
75896
75909
|
return f ? /* @__PURE__ */ jsxs("div", { className: cn("flex h-full min-h-0 w-full overflow-hidden", a), children: [
|
|
75897
75910
|
/* @__PURE__ */ jsx("div", { className: "flex min-h-0 min-w-0 flex-1 flex-col", children: Rr() ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
75898
|
-
/* @__PURE__ */ jsx("div", { className: "sticky top-0 z-20 flex items-center border-b bg-
|
|
75899
|
-
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-
|
|
75911
|
+
/* @__PURE__ */ jsx("div", { className: "sticky top-0 z-20 flex items-center border-b bg-background p-4 rounded-tl-lg", children: /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
75912
|
+
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-background min-h-full" }) }),
|
|
75900
75913
|
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
|
|
75901
75914
|
/* @__PURE__ */ jsx(
|
|
75902
75915
|
Button$1,
|
|
@@ -75946,9 +75959,9 @@ ${nn}`;
|
|
|
75946
75959
|
"aria-live": "polite",
|
|
75947
75960
|
className: cn(
|
|
75948
75961
|
"flex items-start justify-between gap-3 rounded-lg border p-3 text-sm",
|
|
75949
|
-
Er.kind === "error" && "border-
|
|
75950
|
-
Er.kind === "success" && "border-
|
|
75951
|
-
Er.kind === "info" && "border-
|
|
75962
|
+
Er.kind === "error" && "border-destructive/30 bg-destructive/10 text-foreground",
|
|
75963
|
+
Er.kind === "success" && "border-success/30 bg-success/10 text-foreground",
|
|
75964
|
+
Er.kind === "info" && "border-border bg-background text-foreground"
|
|
75952
75965
|
),
|
|
75953
75966
|
children: [
|
|
75954
75967
|
/* @__PURE__ */ jsxs("div", { className: "min-w-0", children: [
|
|
@@ -75958,9 +75971,9 @@ ${nn}`;
|
|
|
75958
75971
|
{
|
|
75959
75972
|
className: cn(
|
|
75960
75973
|
"mt-0.5",
|
|
75961
|
-
Er.kind === "error" && "text-
|
|
75962
|
-
Er.kind === "success" && "text-
|
|
75963
|
-
Er.kind === "info" && "text-
|
|
75974
|
+
Er.kind === "error" && "text-destructive",
|
|
75975
|
+
Er.kind === "success" && "text-success",
|
|
75976
|
+
Er.kind === "info" && "text-muted-foreground"
|
|
75964
75977
|
),
|
|
75965
75978
|
children: Er.description
|
|
75966
75979
|
}
|
|
@@ -75981,9 +75994,9 @@ ${nn}`;
|
|
|
75981
75994
|
]
|
|
75982
75995
|
}
|
|
75983
75996
|
) }),
|
|
75984
|
-
Mt ? zr ? /* @__PURE__ */ jsx("div", { className: "flex-1 bg-
|
|
75985
|
-
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-
|
|
75986
|
-
/* @__PURE__ */ jsx("h1", { className: "mt-2 text-
|
|
75997
|
+
Mt ? zr ? /* @__PURE__ */ jsx("div", { className: "flex-1 bg-muted/30 flex items-center justify-center p-6 rounded-bl-lg", children: /* @__PURE__ */ jsxs("div", { className: "w-full max-w-2xl", children: [
|
|
75998
|
+
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium text-muted-foreground", children: "Hi there!" }),
|
|
75999
|
+
/* @__PURE__ */ jsx("h1", { className: "mt-2 text-2xl leading-tight font-semibold text-foreground", children: "How can I assist you with your Randmar tasks today?" }),
|
|
75987
76000
|
/* @__PURE__ */ jsx(
|
|
75988
76001
|
"form",
|
|
75989
76002
|
{
|
|
@@ -76009,7 +76022,7 @@ ${nn}`;
|
|
|
76009
76022
|
!Ir && nr.length > 0 && (Ir = "consider this"), !(!Ir || !_r) && (hn(_r, Ir), dr(""));
|
|
76010
76023
|
},
|
|
76011
76024
|
placeholder: "Enter a question or command for Randmar Assistant",
|
|
76012
|
-
className: "flex-1 resize-none field-sizing-content max-h-[30em] min-h-14 rounded-3xl bg-
|
|
76025
|
+
className: "flex-1 resize-none field-sizing-content max-h-[30em] min-h-14 rounded-3xl bg-background px-5 py-4 shadow-sm ring-1 ring-border/80 focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2"
|
|
76013
76026
|
}
|
|
76014
76027
|
),
|
|
76015
76028
|
/* @__PURE__ */ jsx(
|
|
@@ -76032,7 +76045,7 @@ ${nn}`;
|
|
|
76032
76045
|
title: In,
|
|
76033
76046
|
className: cn(
|
|
76034
76047
|
"relative h-12 w-12 rounded-full shadow-sm",
|
|
76035
|
-
kr && "ring-2 ring-
|
|
76048
|
+
kr && "ring-2 ring-ring/25"
|
|
76036
76049
|
),
|
|
76037
76050
|
disabled: !Mt || Ft !== "" || _r?.pending,
|
|
76038
76051
|
type: "button",
|
|
@@ -76049,7 +76062,7 @@ ${nn}`;
|
|
|
76049
76062
|
}
|
|
76050
76063
|
)
|
|
76051
76064
|
] }) }) : /* @__PURE__ */ jsxs("div", { className: "flex min-h-0 flex-1 flex-col", children: [
|
|
76052
|
-
/* @__PURE__ */ jsxs(ScrollArea, { className: "min-h-0 flex-1 bg-
|
|
76065
|
+
/* @__PURE__ */ jsxs(ScrollArea, { className: "min-h-0 flex-1 bg-muted/30 pl-2 pr-2", children: [
|
|
76053
76066
|
/* @__PURE__ */ jsx(
|
|
76054
76067
|
ChatMessages,
|
|
76055
76068
|
{
|
|
@@ -76108,7 +76121,7 @@ ${nn}`;
|
|
|
76108
76121
|
"aria-label": In,
|
|
76109
76122
|
className: cn(
|
|
76110
76123
|
_r?.pending ? "collapse" : "relative ml-2 h-8 w-8",
|
|
76111
|
-
kr && "ring-2 ring-
|
|
76124
|
+
kr && "ring-2 ring-ring/25"
|
|
76112
76125
|
),
|
|
76113
76126
|
disabled: !Mt || Ft !== "" || _r?.pending,
|
|
76114
76127
|
children: [
|
|
@@ -76121,7 +76134,7 @@ ${nn}`;
|
|
|
76121
76134
|
] }),
|
|
76122
76135
|
xn()
|
|
76123
76136
|
] })
|
|
76124
|
-
] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 bg-
|
|
76137
|
+
] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 bg-muted/30", children: $n })
|
|
76125
76138
|
] })
|
|
76126
76139
|
] }) : $n }),
|
|
76127
76140
|
/* @__PURE__ */ jsx(
|
|
@@ -76129,65 +76142,65 @@ ${nn}`;
|
|
|
76129
76142
|
{
|
|
76130
76143
|
"data-thin": !0,
|
|
76131
76144
|
className: "flex h-full basis-[300px] shrink-0 border-l sm:basis-[300px] lg:basis-[300px]",
|
|
76132
|
-
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-0 flex-col rounded-r-lg border-r bg-
|
|
76133
|
-
/* @__PURE__ */ jsxs("div", { className: "p-4 space-y-4 border-b border-
|
|
76134
|
-
/* @__PURE__ */ jsxs("h4", { className: "flex items-center text-xs font-semibold tracking-wider text-
|
|
76145
|
+
children: /* @__PURE__ */ jsxs("div", { className: "flex h-full min-h-0 flex-col rounded-r-lg border-r bg-muted/30 text-foreground", children: [
|
|
76146
|
+
/* @__PURE__ */ jsxs("div", { className: "p-4 space-y-4 border-b border-border/80", children: [
|
|
76147
|
+
/* @__PURE__ */ jsxs("h4", { className: "flex items-center text-xs font-semibold tracking-wider text-muted-foreground uppercase", children: [
|
|
76135
76148
|
/* @__PURE__ */ jsx(Settings, { className: "w-4 h-4 mr-2" }),
|
|
76136
76149
|
"Assistant Settings"
|
|
76137
76150
|
] }),
|
|
76138
76151
|
/* @__PURE__ */ jsx("div", { className: "space-y-5", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between", children: [
|
|
76139
76152
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1.5 pr-4", children: [
|
|
76140
76153
|
/* @__PURE__ */ jsx(Label$2, { htmlFor: "preload-bestsellers-switch", children: "Preload Best-Sellers" }),
|
|
76141
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
76154
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Adds top products to the AI's context for faster answers." })
|
|
76142
76155
|
] }),
|
|
76143
76156
|
/* @__PURE__ */ jsx(Switch, { id: "preload-bestsellers-switch", checked: R.assistantCachedPreloading, onCheckedChange: (Sr) => On("assistantCachedPreloading", Sr) })
|
|
76144
76157
|
] }) })
|
|
76145
76158
|
] }),
|
|
76146
76159
|
zr ? /* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col min-h-0", children: [
|
|
76147
|
-
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-
|
|
76160
|
+
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase", children: [
|
|
76148
76161
|
/* @__PURE__ */ jsx(MessageSquareShare, { className: "w-4 h-4 mr-2" }),
|
|
76149
76162
|
"Contact Us"
|
|
76150
76163
|
] }),
|
|
76151
76164
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 px-4", children: /* @__PURE__ */ jsxs("div", { className: "py-2 text-sm space-y-4", children: [
|
|
76152
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-
|
|
76153
|
-
/* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-
|
|
76165
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border bg-background p-3", children: [
|
|
76166
|
+
/* @__PURE__ */ jsx("div", { className: "text-sm font-semibold text-foreground", children: "Reach out any time" }),
|
|
76154
76167
|
/* @__PURE__ */ jsxs("div", { className: "mt-2 space-y-1", children: [
|
|
76155
|
-
/* @__PURE__ */ jsx("a", { className: "block text-base font-semibold text-
|
|
76156
|
-
/* @__PURE__ */ jsx("a", { className: "block text-base font-semibold text-
|
|
76168
|
+
/* @__PURE__ */ jsx("a", { className: "block text-base font-semibold text-primary hover:underline", href: "mailto:service@randmar.io", children: "service@randmar.io" }),
|
|
76169
|
+
/* @__PURE__ */ jsx("a", { className: "block text-base font-semibold text-primary hover:underline", href: "tel:+18003616244", children: "1 (800) 361-6244" })
|
|
76157
76170
|
] })
|
|
76158
76171
|
] }),
|
|
76159
76172
|
/* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
76160
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76173
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Customer reps:" }),
|
|
76161
76174
|
/* @__PURE__ */ jsxs("div", { className: "space-y-3", children: [
|
|
76162
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-
|
|
76175
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border bg-background p-3", children: [
|
|
76163
76176
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: "Loraine Fraraccio" }),
|
|
76164
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
76165
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76166
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76177
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx("a", { className: "text-primary hover:underline", href: "mailto:loraine@randmar.io", children: "loraine@randmar.io" }) }),
|
|
76178
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Extension: 314" }),
|
|
76179
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Location: Quebec" })
|
|
76167
76180
|
] }),
|
|
76168
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-
|
|
76181
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border bg-background p-3", children: [
|
|
76169
76182
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: "Massimo Fiore" }),
|
|
76170
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
76171
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76172
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76183
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx("a", { className: "text-primary hover:underline", href: "mailto:massimo@randmar.io", children: "massimo@randmar.io" }) }),
|
|
76184
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Extension: 305" }),
|
|
76185
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Location: Ontario" })
|
|
76173
76186
|
] }),
|
|
76174
|
-
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-
|
|
76187
|
+
/* @__PURE__ */ jsxs("div", { className: "rounded-md border border-border bg-background p-3", children: [
|
|
76175
76188
|
/* @__PURE__ */ jsx("div", { className: "font-medium", children: "Kevin Dusik" }),
|
|
76176
|
-
/* @__PURE__ */ jsx("div", { className: "text-
|
|
76177
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76178
|
-
/* @__PURE__ */ jsx("div", { className: "text-xs text-
|
|
76189
|
+
/* @__PURE__ */ jsx("div", { className: "text-muted-foreground", children: /* @__PURE__ */ jsx("a", { className: "text-primary hover:underline", href: "mailto:kevin@randmar.io", children: "kevin@randmar.io" }) }),
|
|
76190
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Extension: 150" }),
|
|
76191
|
+
/* @__PURE__ */ jsx("div", { className: "text-xs text-muted-foreground", children: "Location: British-Colombia" })
|
|
76179
76192
|
] })
|
|
76180
76193
|
] })
|
|
76181
76194
|
] })
|
|
76182
76195
|
] }) })
|
|
76183
76196
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
76184
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col border-b border-
|
|
76185
|
-
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-
|
|
76197
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col border-b border-border/80 h-32", children: [
|
|
76198
|
+
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase", children: [
|
|
76186
76199
|
/* @__PURE__ */ jsx(File$1, { className: "w-4 h-4 mr-2" }),
|
|
76187
76200
|
"Attached Files"
|
|
76188
76201
|
] }),
|
|
76189
76202
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 px-4", children: /* @__PURE__ */ jsx("div", { className: "py-2 text-sm", children: nr.length > 0 || Qt.length > 0 ? /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
76190
|
-
nr.map((Sr, Ir) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 text-
|
|
76203
|
+
nr.map((Sr, Ir) => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between gap-2 text-primary", children: [
|
|
76191
76204
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center", children: [
|
|
76192
76205
|
/* @__PURE__ */ jsx(File$1, { className: "w-4 h-4 mr-2 flex-shrink-0" }),
|
|
76193
76206
|
/* @__PURE__ */ jsxs("span", { className: "truncate", children: [
|
|
@@ -76212,7 +76225,7 @@ ${nn}`;
|
|
|
76212
76225
|
return /* @__PURE__ */ jsxs(
|
|
76213
76226
|
"div",
|
|
76214
76227
|
{
|
|
76215
|
-
className: "flex items-center justify-between gap-2 text-
|
|
76228
|
+
className: "flex items-center justify-between gap-2 text-foreground hover:text-primary transition-colors duration-150",
|
|
76216
76229
|
children: [
|
|
76217
76230
|
/* @__PURE__ */ jsxs("div", { className: "flex min-w-0 items-center", children: [
|
|
76218
76231
|
/* @__PURE__ */ jsx(File$1, { className: "w-4 h-4 mr-2 flex-shrink-0" }),
|
|
@@ -76234,10 +76247,10 @@ ${nn}`;
|
|
|
76234
76247
|
Sr.messageId
|
|
76235
76248
|
);
|
|
76236
76249
|
})
|
|
76237
|
-
] }) : /* @__PURE__ */ jsx("p", { className: "text-
|
|
76250
|
+
] }) : /* @__PURE__ */ jsx("p", { className: "text-muted-foreground text-xs italic", children: "No files attached yet." }) }) })
|
|
76238
76251
|
] }),
|
|
76239
76252
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 flex flex-col min-h-0", children: [
|
|
76240
|
-
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-
|
|
76253
|
+
/* @__PURE__ */ jsxs("h4", { className: "flex-shrink-0 flex items-center p-4 pb-2 text-xs font-semibold tracking-wider text-muted-foreground uppercase", children: [
|
|
76241
76254
|
/* @__PURE__ */ jsx(CodeXml, { className: "w-4 h-4 mr-2" }),
|
|
76242
76255
|
"Developer Log"
|
|
76243
76256
|
] }),
|
|
@@ -76247,7 +76260,7 @@ ${nn}`;
|
|
|
76247
76260
|
] }) })
|
|
76248
76261
|
] })
|
|
76249
76262
|
] }),
|
|
76250
|
-
!zr && /* @__PURE__ */ jsx("div", { className: "p-3 border-t border-
|
|
76263
|
+
!zr && /* @__PURE__ */ jsx("div", { className: "p-3 border-t border-border/80", children: /* @__PURE__ */ jsxs(
|
|
76251
76264
|
Button$1,
|
|
76252
76265
|
{
|
|
76253
76266
|
className: "w-full",
|
|
@@ -76260,14 +76273,14 @@ ${nn}`;
|
|
|
76260
76273
|
]
|
|
76261
76274
|
}
|
|
76262
76275
|
) }),
|
|
76263
|
-
/* @__PURE__ */ jsx("div", { className: "mt-auto p-3 border-t border-
|
|
76276
|
+
/* @__PURE__ */ jsx("div", { className: "mt-auto p-3 border-t border-border/80", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-center space-x-3 w-full", children: [
|
|
76264
76277
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2", children: [
|
|
76265
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs text-
|
|
76278
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground", children: "Powered by Gemini" }),
|
|
76266
76279
|
/* @__PURE__ */ jsx(GeminiIcon, {})
|
|
76267
76280
|
] }),
|
|
76268
76281
|
/* @__PURE__ */ jsxs("div", { className: "flex-1 max-w-[160px]", children: [
|
|
76269
76282
|
/* @__PURE__ */ jsx(Progress, { value: Math.round(($t || 0) * 100), className: "h-2" }),
|
|
76270
|
-
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-[10px] text-
|
|
76283
|
+
/* @__PURE__ */ jsxs("div", { className: "flex justify-between text-[10px] text-muted-foreground mt-1", children: [
|
|
76271
76284
|
/* @__PURE__ */ jsx("span", { children: "Context" }),
|
|
76272
76285
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
76273
76286
|
Math.round(($t || 0) * 100),
|
|
@@ -76285,22 +76298,22 @@ ${nn}`;
|
|
|
76285
76298
|
AIChatLayout.displayName = "AIChatLayout";
|
|
76286
76299
|
const GeminiIcon = ({ className: e = "h-4 w-4" }) => /* @__PURE__ */ jsxs("svg", { viewBox: "0 0 24 24", width: "1em", xmlns: "http://www.w3.org/2000/svg", className: cn("flex-none leading-none", e), children: [
|
|
76287
76300
|
/* @__PURE__ */ jsx("title", { children: "Gemini" }),
|
|
76288
|
-
/* @__PURE__ */ jsx("path", { d: "M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113
|
|
76301
|
+
/* @__PURE__ */ jsx("path", { d: "M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z", fill: "var(--info)" }),
|
|
76289
76302
|
/* @__PURE__ */ jsx("path", { d: "M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z", fill: "url(#lobe-icons-gemini-fill-0)" }),
|
|
76290
76303
|
/* @__PURE__ */ jsx("path", { d: "M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z", fill: "url(#lobe-icons-gemini-fill-1)" }),
|
|
76291
76304
|
/* @__PURE__ */ jsx("path", { d: "M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z", fill: "url(#lobe-icons-gemini-fill-2)" }),
|
|
76292
76305
|
/* @__PURE__ */ jsxs("defs", { children: [
|
|
76293
76306
|
/* @__PURE__ */ jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "lobe-icons-gemini-fill-0", x1: "7", x2: "11", y1: "15.5", y2: "12", children: [
|
|
76294
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "var(--
|
|
76295
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--
|
|
76307
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "var(--success)" }),
|
|
76308
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--success)", stopOpacity: "0" })
|
|
76296
76309
|
] }),
|
|
76297
76310
|
/* @__PURE__ */ jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "lobe-icons-gemini-fill-1", x1: "8", x2: "11.5", y1: "5.5", y2: "11", children: [
|
|
76298
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "var(--
|
|
76299
|
-
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--
|
|
76311
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "var(--primary)" }),
|
|
76312
|
+
/* @__PURE__ */ jsx("stop", { offset: "1", stopColor: "var(--primary)", stopOpacity: "0" })
|
|
76300
76313
|
] }),
|
|
76301
76314
|
/* @__PURE__ */ jsxs("linearGradient", { gradientUnits: "userSpaceOnUse", id: "lobe-icons-gemini-fill-2", x1: "3.5", x2: "17.5", y1: "13.5", y2: "12", children: [
|
|
76302
|
-
/* @__PURE__ */ jsx("stop", { stopColor: "var(--
|
|
76303
|
-
/* @__PURE__ */ jsx("stop", { offset: ".46", stopColor: "var(--
|
|
76315
|
+
/* @__PURE__ */ jsx("stop", { stopColor: "var(--warning)" }),
|
|
76316
|
+
/* @__PURE__ */ jsx("stop", { offset: ".46", stopColor: "var(--warning)", stopOpacity: "0" })
|
|
76304
76317
|
] })
|
|
76305
76318
|
] })
|
|
76306
76319
|
] }), ASSISTANT_PROMPT_SHORTCUTS_STORAGE_KEY = "randmarcomps.assistantPromptShortcuts.v1", Navbar = forwardRef(
|
|
@@ -76499,7 +76512,7 @@ const GeminiIcon = ({ className: e = "h-4 w-4" }) => /* @__PURE__ */ jsxs("svg",
|
|
|
76499
76512
|
Button$1,
|
|
76500
76513
|
{
|
|
76501
76514
|
size: "icon",
|
|
76502
|
-
className: Ft || Dt?.HasUnreads === !0 ? "pulse-glow bg-
|
|
76515
|
+
className: Ft || Dt?.HasUnreads === !0 ? "pulse-glow bg-background hover:bg-muted text-foreground" : "",
|
|
76503
76516
|
children: /* @__PURE__ */ jsx(MessageSquare, { className: "h-5 w-5" })
|
|
76504
76517
|
}
|
|
76505
76518
|
) })
|
|
@@ -77294,7 +77307,7 @@ function MultiSelect({ options: e, selected: t, onChange: n, placeholder: a = "S
|
|
|
77294
77307
|
/* @__PURE__ */ jsx(
|
|
77295
77308
|
"span",
|
|
77296
77309
|
{
|
|
77297
|
-
className: "ml-1 cursor-pointer
|
|
77310
|
+
className: "ml-1 cursor-pointer rounded-full outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
77298
77311
|
onClick: (ct) => {
|
|
77299
77312
|
ct.preventDefault(), ct.stopPropagation(), V(ot);
|
|
77300
77313
|
},
|
|
@@ -77519,33 +77532,33 @@ function ResellerBillingOverviewData({ reseller: e, actions: t }) {
|
|
|
77519
77532
|
{
|
|
77520
77533
|
title: "0 - 30 Days",
|
|
77521
77534
|
amount: n.Over0 || 0,
|
|
77522
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77535
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-primary-foreground" }),
|
|
77523
77536
|
color: "bg-primary"
|
|
77524
77537
|
},
|
|
77525
77538
|
{
|
|
77526
77539
|
title: "31 - 45 Days",
|
|
77527
77540
|
amount: n.Over30 || 0,
|
|
77528
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77541
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-primary-foreground" }),
|
|
77529
77542
|
color: "bg-primary"
|
|
77530
77543
|
},
|
|
77531
77544
|
{
|
|
77532
77545
|
title: "45+ Days",
|
|
77533
77546
|
amount: n.Over45 || 0,
|
|
77534
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77547
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-primary-foreground" }),
|
|
77535
77548
|
color: "bg-primary"
|
|
77536
77549
|
}
|
|
77537
77550
|
], s = [
|
|
77538
77551
|
{
|
|
77539
77552
|
title: "Total",
|
|
77540
77553
|
amount: n.Total || 0,
|
|
77541
|
-
icon: /* @__PURE__ */ jsx(DollarSign, { className: "h-5 w-5 text-
|
|
77542
|
-
color: "bg-
|
|
77554
|
+
icon: /* @__PURE__ */ jsx(DollarSign, { className: "h-5 w-5 text-success-foreground" }),
|
|
77555
|
+
color: "bg-success"
|
|
77543
77556
|
},
|
|
77544
77557
|
{
|
|
77545
77558
|
title: "Credit Limit",
|
|
77546
77559
|
amount: e.CreditLimit || 0,
|
|
77547
|
-
icon: /* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5 text-
|
|
77548
|
-
color: "bg-
|
|
77560
|
+
icon: /* @__PURE__ */ jsx(CreditCard, { className: "h-5 w-5 text-info-foreground" }),
|
|
77561
|
+
color: "bg-info"
|
|
77549
77562
|
}
|
|
77550
77563
|
];
|
|
77551
77564
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
@@ -77628,20 +77641,20 @@ function SalesOverviewData({
|
|
|
77628
77641
|
{
|
|
77629
77642
|
title: "Last 30 days",
|
|
77630
77643
|
amount: e.SalesLast30Days || 0,
|
|
77631
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77632
|
-
color: "bg-
|
|
77644
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-info-foreground" }),
|
|
77645
|
+
color: "bg-info"
|
|
77633
77646
|
},
|
|
77634
77647
|
{
|
|
77635
77648
|
title: "Last 3 months",
|
|
77636
77649
|
amount: e.SalesLast3Months || 0,
|
|
77637
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77638
|
-
color: "bg-
|
|
77650
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-warning-foreground" }),
|
|
77651
|
+
color: "bg-warning"
|
|
77639
77652
|
},
|
|
77640
77653
|
{
|
|
77641
77654
|
title: "Year to date",
|
|
77642
77655
|
amount: e.SalesYearToDay || 0,
|
|
77643
|
-
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-
|
|
77644
|
-
color: "bg-
|
|
77656
|
+
icon: /* @__PURE__ */ jsx(Calendar$1, { className: "h-5 w-5 text-success-foreground" }),
|
|
77657
|
+
color: "bg-success"
|
|
77645
77658
|
}
|
|
77646
77659
|
];
|
|
77647
77660
|
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
@@ -77779,7 +77792,7 @@ const AlertDialog = Root2$1, AlertDialogTrigger = Trigger2$1, AlertDialogPortal
|
|
|
77779
77792
|
Overlay2,
|
|
77780
77793
|
{
|
|
77781
77794
|
className: cn(
|
|
77782
|
-
"fixed inset-0 z-50 bg-
|
|
77795
|
+
"fixed inset-0 z-50 bg-foreground/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",
|
|
77783
77796
|
e
|
|
77784
77797
|
),
|
|
77785
77798
|
...t,
|
|
@@ -77871,8 +77884,8 @@ const AlertDialogCancel = React.forwardRef(({ className: e, ...t }, n) => /* @__
|
|
|
77871
77884
|
));
|
|
77872
77885
|
AlertDialogCancel.displayName = Cancel.displayName;
|
|
77873
77886
|
function PageHeader({ title: e, children: t, className: n }) {
|
|
77874
|
-
return /* @__PURE__ */ jsx("header", { className: "w-full", children: /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-[1440px] px-6 pt-8", children: /* @__PURE__ */ jsx(Card, { className: cn("rounded-2xl border-
|
|
77875
|
-
/* @__PURE__ */ jsx("h1", { className: "text-
|
|
77887
|
+
return /* @__PURE__ */ jsx("header", { className: "w-full", children: /* @__PURE__ */ jsx("div", { className: "mx-auto w-full max-w-[1440px] px-6 pt-8", children: /* @__PURE__ */ jsx(Card, { className: cn("rounded-2xl border-border shadow-sm", n), children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4 p-6 sm:flex-row sm:items-center sm:justify-between", children: [
|
|
77888
|
+
/* @__PURE__ */ jsx("h1", { className: "text-2xl font-semibold leading-tight tracking-tight text-foreground", children: e }),
|
|
77876
77889
|
t ? /* @__PURE__ */ jsx("div", { className: "flex shrink-0 flex-wrap items-center gap-2", children: t }) : null
|
|
77877
77890
|
] }) }) }) });
|
|
77878
77891
|
}
|
|
@@ -88079,56 +88092,57 @@ function getAttributesFromExtensions(e) {
|
|
|
88079
88092
|
parseHTML: null,
|
|
88080
88093
|
keepOnSplit: !0,
|
|
88081
88094
|
isRequired: !1
|
|
88082
|
-
};
|
|
88083
|
-
return e.forEach((
|
|
88084
|
-
const
|
|
88085
|
-
name:
|
|
88086
|
-
options:
|
|
88087
|
-
storage:
|
|
88095
|
+
}, l = n.filter((f) => f.name !== "text").map((f) => f.name), c = a.map((f) => f.name), d = [...l, ...c];
|
|
88096
|
+
return e.forEach((f) => {
|
|
88097
|
+
const S = {
|
|
88098
|
+
name: f.name,
|
|
88099
|
+
options: f.options,
|
|
88100
|
+
storage: f.storage,
|
|
88088
88101
|
extensions: s
|
|
88089
|
-
},
|
|
88090
|
-
|
|
88102
|
+
}, A = getExtensionField(
|
|
88103
|
+
f,
|
|
88091
88104
|
"addGlobalAttributes",
|
|
88092
|
-
|
|
88105
|
+
S
|
|
88093
88106
|
);
|
|
88094
|
-
if (!
|
|
88107
|
+
if (!A)
|
|
88095
88108
|
return;
|
|
88096
|
-
|
|
88097
|
-
|
|
88098
|
-
|
|
88109
|
+
A().forEach((V) => {
|
|
88110
|
+
let at;
|
|
88111
|
+
Array.isArray(V.types) ? at = V.types : V.types === "*" ? at = d : V.types === "nodes" ? at = l : V.types === "marks" ? at = c : at = [], at.forEach((lt) => {
|
|
88112
|
+
Object.entries(V.attributes).forEach(([ot, ct]) => {
|
|
88099
88113
|
t.push({
|
|
88100
|
-
type:
|
|
88101
|
-
name:
|
|
88114
|
+
type: lt,
|
|
88115
|
+
name: ot,
|
|
88102
88116
|
attribute: {
|
|
88103
88117
|
...o,
|
|
88104
|
-
...
|
|
88118
|
+
...ct
|
|
88105
88119
|
}
|
|
88106
88120
|
});
|
|
88107
88121
|
});
|
|
88108
88122
|
});
|
|
88109
88123
|
});
|
|
88110
|
-
}), s.forEach((
|
|
88111
|
-
const
|
|
88112
|
-
name:
|
|
88113
|
-
options:
|
|
88114
|
-
storage:
|
|
88115
|
-
},
|
|
88116
|
-
|
|
88124
|
+
}), s.forEach((f) => {
|
|
88125
|
+
const S = {
|
|
88126
|
+
name: f.name,
|
|
88127
|
+
options: f.options,
|
|
88128
|
+
storage: f.storage
|
|
88129
|
+
}, A = getExtensionField(
|
|
88130
|
+
f,
|
|
88117
88131
|
"addAttributes",
|
|
88118
|
-
|
|
88132
|
+
S
|
|
88119
88133
|
);
|
|
88120
|
-
if (!
|
|
88134
|
+
if (!A)
|
|
88121
88135
|
return;
|
|
88122
|
-
const
|
|
88123
|
-
Object.entries(
|
|
88124
|
-
const
|
|
88136
|
+
const R = A();
|
|
88137
|
+
Object.entries(R).forEach(([V, at]) => {
|
|
88138
|
+
const lt = {
|
|
88125
88139
|
...o,
|
|
88126
|
-
...
|
|
88140
|
+
...at
|
|
88127
88141
|
};
|
|
88128
|
-
typeof
|
|
88129
|
-
type:
|
|
88130
|
-
name:
|
|
88131
|
-
attribute:
|
|
88142
|
+
typeof lt?.default == "function" && (lt.default = lt.default()), lt?.isRequired && lt?.default === void 0 && delete lt.default, t.push({
|
|
88143
|
+
type: f.name,
|
|
88144
|
+
name: V,
|
|
88145
|
+
attribute: lt
|
|
88132
88146
|
});
|
|
88133
88147
|
});
|
|
88134
88148
|
}), t;
|
|
@@ -88441,6 +88455,8 @@ function isMarkActive(e, t, n = {}) {
|
|
|
88441
88455
|
if (s.forEach(({ $from: A, $to: R }) => {
|
|
88442
88456
|
const V = A.pos, at = R.pos;
|
|
88443
88457
|
e.doc.nodesBetween(V, at, (lt, ot) => {
|
|
88458
|
+
if (o && lt.inlineContent && !lt.type.allowsMarkType(o))
|
|
88459
|
+
return !1;
|
|
88444
88460
|
if (!lt.isText && !lt.marks.length)
|
|
88445
88461
|
return;
|
|
88446
88462
|
const ct = Math.max(V, ot), ft = Math.min(at, ot + lt.nodeSize), pt = ft - ct;
|
|
@@ -89403,6 +89419,34 @@ var ExtensionManager = class {
|
|
|
89403
89419
|
} : a;
|
|
89404
89420
|
}, e);
|
|
89405
89421
|
}
|
|
89422
|
+
/**
|
|
89423
|
+
* Get the composed transformPastedHTML function from all extensions.
|
|
89424
|
+
* @param baseTransform The base transform function (e.g. from the editor props)
|
|
89425
|
+
* @returns A composed transform function that chains all extension transforms
|
|
89426
|
+
*/
|
|
89427
|
+
transformPastedHTML(e) {
|
|
89428
|
+
const { editor: t } = this;
|
|
89429
|
+
return sortExtensions([...this.extensions]).reduce(
|
|
89430
|
+
(a, s) => {
|
|
89431
|
+
const o = {
|
|
89432
|
+
name: s.name,
|
|
89433
|
+
options: s.options,
|
|
89434
|
+
storage: this.editor.extensionStorage[s.name],
|
|
89435
|
+
editor: t,
|
|
89436
|
+
type: getSchemaTypeByName(s.name, this.schema)
|
|
89437
|
+
}, l = getExtensionField(
|
|
89438
|
+
s,
|
|
89439
|
+
"transformPastedHTML",
|
|
89440
|
+
o
|
|
89441
|
+
);
|
|
89442
|
+
return l ? (c, d) => {
|
|
89443
|
+
const f = a(c, d);
|
|
89444
|
+
return l.call(o, f);
|
|
89445
|
+
} : a;
|
|
89446
|
+
},
|
|
89447
|
+
e || ((a) => a)
|
|
89448
|
+
);
|
|
89449
|
+
}
|
|
89406
89450
|
get markViews() {
|
|
89407
89451
|
const { editor: e } = this, { markExtensions: t } = splitExtensions(this.extensions);
|
|
89408
89452
|
return Object.fromEntries(
|
|
@@ -90124,7 +90168,7 @@ var Editor = class extends EventEmitter {
|
|
|
90124
90168
|
return this.options.editable && this.view && this.view.editable;
|
|
90125
90169
|
}
|
|
90126
90170
|
/**
|
|
90127
|
-
* Returns the editor
|
|
90171
|
+
* Returns the editor view.
|
|
90128
90172
|
*/
|
|
90129
90173
|
get view() {
|
|
90130
90174
|
return this.editorView ? this.editorView : new Proxy(
|
|
@@ -90260,7 +90304,7 @@ var Editor = class extends EventEmitter {
|
|
|
90260
90304
|
* Creates a ProseMirror view.
|
|
90261
90305
|
*/
|
|
90262
90306
|
createView(e) {
|
|
90263
|
-
const { editorProps: t, enableExtensionDispatchTransaction: n } = this.options, a = t.dispatchTransaction || this.dispatchTransaction.bind(this), s = n ? this.extensionManager.dispatchTransaction(a) : a;
|
|
90307
|
+
const { editorProps: t, enableExtensionDispatchTransaction: n } = this.options, a = t.dispatchTransaction || this.dispatchTransaction.bind(this), s = n ? this.extensionManager.dispatchTransaction(a) : a, o = t.transformPastedHTML, l = this.extensionManager.transformPastedHTML(o);
|
|
90264
90308
|
this.editorView = new EditorView(e, {
|
|
90265
90309
|
...t,
|
|
90266
90310
|
attributes: {
|
|
@@ -90269,16 +90313,17 @@ var Editor = class extends EventEmitter {
|
|
|
90269
90313
|
...t?.attributes
|
|
90270
90314
|
},
|
|
90271
90315
|
dispatchTransaction: s,
|
|
90316
|
+
transformPastedHTML: l,
|
|
90272
90317
|
state: this.editorState,
|
|
90273
90318
|
markViews: this.extensionManager.markViews,
|
|
90274
90319
|
nodeViews: this.extensionManager.nodeViews
|
|
90275
90320
|
});
|
|
90276
|
-
const
|
|
90321
|
+
const c = this.state.reconfigure({
|
|
90277
90322
|
plugins: this.extensionManager.plugins
|
|
90278
90323
|
});
|
|
90279
|
-
this.view.updateState(
|
|
90280
|
-
const
|
|
90281
|
-
|
|
90324
|
+
this.view.updateState(c), this.prependClass(), this.injectCSS();
|
|
90325
|
+
const d = this.view.dom;
|
|
90326
|
+
d.editor = this;
|
|
90282
90327
|
}
|
|
90283
90328
|
/**
|
|
90284
90329
|
* Creates all node and mark views.
|
|
@@ -95108,7 +95153,7 @@ function RichTextEditor({ id: e, name: t, value: n, onChange: a, placeholder: s,
|
|
|
95108
95153
|
content: n,
|
|
95109
95154
|
editorProps: {
|
|
95110
95155
|
attributes: {
|
|
95111
|
-
class: "prose prose-sm sm:prose
|
|
95156
|
+
class: "prose prose-sm sm:prose focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2",
|
|
95112
95157
|
id: e ?? "",
|
|
95113
95158
|
name: t ?? ""
|
|
95114
95159
|
}
|
|
@@ -95381,7 +95426,7 @@ function ReturnsTable({
|
|
|
95381
95426
|
cell: ({ row: l }) => {
|
|
95382
95427
|
const c = l.original.InvoiceNumber;
|
|
95383
95428
|
return c ? /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
95384
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Link$1, { to: `/${e}/Document/${c}`, className: "text-
|
|
95429
|
+
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Link$1, { to: `/${e}/Document/${c}`, className: "text-primary hover:underline", children: c }) }),
|
|
95385
95430
|
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
95386
95431
|
"View details for invoice ",
|
|
95387
95432
|
c
|
|
@@ -95409,8 +95454,7 @@ function ReturnsTable({
|
|
|
95409
95454
|
header: "Status",
|
|
95410
95455
|
cell: ({ row: l }) => {
|
|
95411
95456
|
const c = l.original.Status, d = getStatusVariant(c);
|
|
95412
|
-
|
|
95413
|
-
return d === "success" ? f = "border-green-500 bg-green-100 text-green-700 dark:border-green-600 dark:bg-green-900/50 dark:text-green-400" : d === "destructive" && (f = "border-red-500 bg-red-100 text-red-700 dark:border-red-600 dark:bg-red-900/50 dark:text-red-400"), c ? /* @__PURE__ */ jsx(Badge, { variant: "outline", className: `${f} font-medium`, children: c }) : "—";
|
|
95457
|
+
return c ? /* @__PURE__ */ jsx(Badge, { variant: d === "success" ? "success" : d === "destructive" ? "destructive" : "secondary", className: "font-medium", children: c }) : "—";
|
|
95414
95458
|
},
|
|
95415
95459
|
enableSorting: !0,
|
|
95416
95460
|
enableFiltering: !0
|
|
@@ -95456,7 +95500,7 @@ function ReturnsTable({
|
|
|
95456
95500
|
] })
|
|
95457
95501
|
] })
|
|
95458
95502
|
] }) : /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
95459
|
-
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-
|
|
95503
|
+
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { className: "text-xl font-semibold text-foreground", children: "Returns" }) }),
|
|
95460
95504
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(DataTable, { columns: a, data: o, uniqueValues: s }) })
|
|
95461
95505
|
] });
|
|
95462
95506
|
}
|
|
@@ -95984,11 +96028,8 @@ function ProductOverviewPage({
|
|
|
95984
96028
|
/* @__PURE__ */ jsxs(
|
|
95985
96029
|
Badge,
|
|
95986
96030
|
{
|
|
95987
|
-
variant: "
|
|
95988
|
-
className:
|
|
95989
|
-
"rounded-full px-3 py-1.5 text-sm font-semibold",
|
|
95990
|
-
Rt >= 0 ? "border-emerald-200 bg-emerald-50 text-emerald-800 hover:bg-emerald-50" : "border-rose-200 bg-rose-50 text-rose-800 hover:bg-rose-50"
|
|
95991
|
-
].join(" "),
|
|
96031
|
+
variant: Rt >= 0 ? "success" : "destructive",
|
|
96032
|
+
className: "rounded-full px-3 py-1.5 text-sm font-semibold",
|
|
95992
96033
|
children: [
|
|
95993
96034
|
Rt >= 0 ? "Potential Profit" : "Below MAP",
|
|
95994
96035
|
": ",
|
|
@@ -96681,7 +96722,7 @@ Prompt: "${t}"`, ft = ++R.current;
|
|
|
96681
96722
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-3/4" })
|
|
96682
96723
|
] })
|
|
96683
96724
|
] }),
|
|
96684
|
-
S && /* @__PURE__ */ jsx("p", { className: "text-sm text-
|
|
96725
|
+
S && /* @__PURE__ */ jsx("p", { className: "text-sm text-destructive", children: S }),
|
|
96685
96726
|
!d && !S && l && // Renders the cleaned HTML response from the AI.
|
|
96686
96727
|
/* @__PURE__ */ jsx(
|
|
96687
96728
|
"div",
|
|
@@ -98457,7 +98498,7 @@ function ExternalProductCard({
|
|
|
98457
98498
|
Badge,
|
|
98458
98499
|
{
|
|
98459
98500
|
variant: "outline",
|
|
98460
|
-
className: "border-
|
|
98501
|
+
className: "border-info/40 bg-info/10 text-info",
|
|
98461
98502
|
children: [
|
|
98462
98503
|
/* @__PURE__ */ jsx(Telescope, { className: "mr-2 h-3 w-3" }),
|
|
98463
98504
|
/* @__PURE__ */ jsx("span", { children: "External Product" })
|
|
@@ -98468,7 +98509,7 @@ function ExternalProductCard({
|
|
|
98468
98509
|
Badge,
|
|
98469
98510
|
{
|
|
98470
98511
|
variant: "outline",
|
|
98471
|
-
className: "border-
|
|
98512
|
+
className: "border-primary/40 bg-primary/10 text-primary",
|
|
98472
98513
|
children: [
|
|
98473
98514
|
/* @__PURE__ */ jsx(Warehouse, { className: "mr-2 h-3 w-3" }),
|
|
98474
98515
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
@@ -98480,11 +98521,11 @@ function ExternalProductCard({
|
|
|
98480
98521
|
)
|
|
98481
98522
|
] }),
|
|
98482
98523
|
/* @__PURE__ */ jsxs("div", { className: "hidden @[36rem]:grid grid-cols-2 gap-2", children: [
|
|
98483
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-md bg-
|
|
98524
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-md bg-info/10 px-4 py-2 text-info border border-info text-sm", children: [
|
|
98484
98525
|
/* @__PURE__ */ jsx(Telescope, { className: "mr-2 h-5 w-5 flex-shrink-0" }),
|
|
98485
98526
|
/* @__PURE__ */ jsx("span", { children: "External Product" })
|
|
98486
98527
|
] }),
|
|
98487
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-md bg-
|
|
98528
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center rounded-md bg-primary/10 px-4 py-2 text-primary border border-primary text-sm", children: [
|
|
98488
98529
|
/* @__PURE__ */ jsx(Warehouse, { className: "mr-2 h-5 w-5 flex-shrink-0" }),
|
|
98489
98530
|
/* @__PURE__ */ jsxs("span", { children: [
|
|
98490
98531
|
"Held by ",
|
|
@@ -98655,11 +98696,10 @@ function OpportunitiesTable({
|
|
|
98655
98696
|
id: "statusInfo",
|
|
98656
98697
|
header: "Status",
|
|
98657
98698
|
cell: ({ row: Ct }) => {
|
|
98658
|
-
const Mt = Ct.original, Dt = Mt.Active === !0, Ft = getEndDateStatus(Mt.EndDate);
|
|
98659
|
-
|
|
98660
|
-
|
|
98661
|
-
/* @__PURE__ */ jsx(Badge, { variant:
|
|
98662
|
-
Mt.EndDate && /* @__PURE__ */ jsx(Badge, { variant: "outline", className: `${Ut} font-medium`, children: Ft.text }),
|
|
98699
|
+
const Mt = Ct.original, Dt = Mt.Active === !0, Ft = getEndDateStatus(Mt.EndDate), Ut = Dt ? "success" : "secondary", Rt = Ft.variant === "destructive" ? "destructive" : Ft.variant === "warning" ? "warning" : "secondary";
|
|
98700
|
+
return /* @__PURE__ */ jsxs("div", { className: "flex items-center space-x-2 min-w-[200px]", children: [
|
|
98701
|
+
/* @__PURE__ */ jsx(Badge, { variant: Ut, className: "font-medium", children: Dt ? "Active" : "Inactive" }),
|
|
98702
|
+
Mt.EndDate && /* @__PURE__ */ jsx(Badge, { variant: Rt, className: "font-medium", children: Ft.text }),
|
|
98663
98703
|
/* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
98664
98704
|
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button$1, { variant: "ghost", size: "icon", className: "h-6 w-6 p-0 data-[state=delayed-open]:bg-accent data-[state=instant-open]:bg-accent", children: /* @__PURE__ */ jsx(Info, { className: "h-4 w-4 text-muted-foreground" }) }) }),
|
|
98665
98705
|
/* @__PURE__ */ jsx(TooltipContent, { side: "top", align: "center", className: "bg-popover text-popover-foreground p-2 rounded shadow-lg", children: /* @__PURE__ */ jsxs("div", { className: "text-sm space-y-1", children: [
|