randmarcomps 1.320.0 → 1.321.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.
@@ -10,7 +10,7 @@ import * as React from "react";
10
10
  import React__default, { forwardRef, createElement, useState, useLayoutEffect, useEffect, useCallback, useDebugValue, useMemo, useRef, createContext, useContext, isValidElement, Children, PureComponent, useImperativeHandle, cloneElement, Component, Fragment as Fragment$2 } from "react";
11
11
  import * as ReactDOM from "react-dom";
12
12
  import ReactDOM__default from "react-dom";
13
- import { useBlocker, Link, useLocation } from "react-router-dom";
13
+ import { Link, useBlocker, useLocation } from "react-router-dom";
14
14
  var Bt = Object.defineProperty, At = Object.defineProperties, kt = Object.getOwnPropertyDescriptors, Y$2 = Object.getOwnPropertySymbols, gt = Object.prototype.hasOwnProperty, Et = Object.prototype.propertyIsEnumerable, vt = (t, e, n) => e in t ? Bt(t, e, { enumerable: !0, configurable: !0, writable: !0, value: n }) : t[e] = n, St = (t, e) => {
15
15
  for (var n in e || (e = {})) gt.call(e, n) && vt(t, n, e[n]);
16
16
  if (Y$2) for (var n of Y$2(e)) Et.call(e, n) && vt(t, n, e[n]);
@@ -60756,7 +60756,14 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60756
60756
  ] })
60757
60757
  ] }) })
60758
60758
  ] }),
60759
- /* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Oe.findIndex((pt) => pt.partner1 === "2" || pt.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: A, onClick: () => Yt(), children: "Chat with Randmar" }, "b1") : ge === "approved" && Oe.length >= 5 ? null : /* @__PURE__ */ jsx("a", { target: "_blank", href: `https://dashboard.randmar.io/${t}/ExploreManufacturers`, children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore manufacturers" }, "b2") }) }),
60759
+ /* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Oe.findIndex((pt) => pt.partner1 === "2" || pt.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: A, onClick: () => Yt(), children: "Chat with Randmar" }, "b1") : ge === "approved" && Oe.length >= 5 ? null : /* @__PURE__ */ jsx(
60760
+ Link,
60761
+ {
60762
+ to: `${window.location.hostname === "dashboard.randmar.io" ? "" : "https://dashboard.randmar.io"}/${t}/ExploreManufacturers`,
60763
+ target: window.location.hostname === "dashboard.randmar.io" ? "_self" : "_blank",
60764
+ children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore Manufacturers" }, "b2")
60765
+ }
60766
+ ) }),
60760
60767
  /* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Oe.length > 0 && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ht.filter((pt) => pt.partner1 !== ASSISTANT_ID && pt.partner2 !== ASSISTANT_ID), activeChat: mt ?? null, onSelectChat: $e }) }),
60761
60768
  /* @__PURE__ */ jsx(Separator$1, { className: "mt-auto" }),
60762
60769
  /* @__PURE__ */ jsx("div", { className: "pt-1", children: Oe.find((pt) => pt.partner1 === ASSISTANT_ID || pt.partner2 === ASSISTANT_ID) && /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ht.filter((pt) => pt.partner1 === ASSISTANT_ID || pt.partner2 === ASSISTANT_ID), activeChat: mt ?? null, onSelectChat: $e, assistantStickyMode: !0 }) })
@@ -60776,7 +60783,14 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
60776
60783
  ] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60777
60784
  /* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(PartnerLogo, { id: Ae[0] === t ? Ae[1] : Ae[0], width: 72, height: 72 }) }),
60778
60785
  /* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: mt == null ? void 0 : mt.name }),
60779
- /* @__PURE__ */ jsx("div", { className: "flex items-center space-x-2 ml-auto", children: /* @__PURE__ */ jsx("a", { href: `https://dashboard.randmar.io/${t}/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}`, target: "_blank", children: /* @__PURE__ */ jsx(Button, { children: "View Partner" }) }) })
60786
+ /* @__PURE__ */ jsx("div", { className: "flex items-center space-x-2 ml-auto", children: /* @__PURE__ */ jsx(
60787
+ Link,
60788
+ {
60789
+ to: `${window.location.hostname === "dashboard.randmar.io" ? "" : "https://dashboard.randmar.io"}/${t}/Partner/${Ae[0] === t ? Ae[1] : Ae[0]}`,
60790
+ target: window.location.hostname === "dashboard.randmar.io" ? "_self" : "_blank",
60791
+ children: /* @__PURE__ */ jsx(Button, { children: "View Partner" })
60792
+ }
60793
+ ) })
60780
60794
  ] }) }),
60781
60795
  mt != null && mt.pending && mt.partner1 == t ? /* @__PURE__ */ jsx("p", { className: "mt-8 p-2 mx-auto", children: "This conversation is awaiting approval by the other party — please check back later." }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
60782
60796
  /* @__PURE__ */ jsxs(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: [
@@ -64196,10 +64210,17 @@ function BillingCard({ appID: t, reseller: e, isLoading: n, withoutReports: o, u
64196
64210
  ] })
64197
64211
  ] })
64198
64212
  ] }),
64199
- /* @__PURE__ */ jsx(Link, { to: `https://dashboard.randmar.io/${t}/PayInvoice`, target: "_blank", children: /* @__PURE__ */ jsxs(Button, { children: [
64200
- /* @__PURE__ */ jsx(CreditCard, { className: "mr-2 h-4 w-4" }),
64201
- "Pay Invoices"
64202
- ] }) })
64213
+ /* @__PURE__ */ jsx(
64214
+ Link,
64215
+ {
64216
+ to: `${window.location.hostname === "dashboard.randmar.io" ? "" : "https://dashboard.randmar.io"}/${t}/PayInvoice`,
64217
+ target: window.location.hostname === "dashboard.randmar.io" ? "_self" : "_blank",
64218
+ children: /* @__PURE__ */ jsxs(Button, { children: [
64219
+ /* @__PURE__ */ jsx(CreditCard, { className: "mr-2 h-4 w-4" }),
64220
+ "Pay Invoices"
64221
+ ] })
64222
+ }
64223
+ )
64203
64224
  ] })
64204
64225
  ] })
64205
64226
  ] }),
@@ -64381,7 +64402,7 @@ $10 with opportunities under $1,000` : t === "D" ? "$15 under $1,500" : t === "E
64381
64402
  ] })
64382
64403
  ] }),
64383
64404
  /* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
64384
- !e && /* @__PURE__ */ jsx(Button, { variant: "outline", className: "flex-1", asChild: !0, children: /* @__PURE__ */ jsxs("a", { href: "https://www.randmar.io/docs/overview/pricingTiers", target: "_blank", rel: "noreferrer", children: [
64405
+ !e && /* @__PURE__ */ jsx(Button, { variant: "outline", className: "flex-1", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: "https://www.randmar.io/docs/overview/pricingTiers", target: "_blank", children: [
64385
64406
  /* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4 mr-1" }),
64386
64407
  "Pricing Tiers"
64387
64408
  ] }) }),
@@ -75436,7 +75457,7 @@ function ManufacturerGetStartedButton({ applicationId: t, manufacturer: e }) {
75436
75457
  /* @__PURE__ */ jsx(Separator$1, { className: "my-4" }),
75437
75458
  /* @__PURE__ */ jsxs("div", { className: "text-center space-y-2", children: [
75438
75459
  /* @__PURE__ */ jsx("p", { className: "text-sm text-muted-foreground", children: "Don't have a qualification ID?" }),
75439
- /* @__PURE__ */ jsx("a", { href: e.PartnerRegistrationLink, target: "_blank", rel: "noopener noreferrer", children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "w-full", disabled: !e.PartnerRegistrationLink, children: [
75460
+ /* @__PURE__ */ jsx(Link, { to: e.PartnerRegistrationLink, target: "_blank", children: /* @__PURE__ */ jsxs(Button, { variant: "outline", className: "w-full", disabled: !e.PartnerRegistrationLink, children: [
75440
75461
  /* @__PURE__ */ jsx(ExternalLink, { className: "mr-2 h-4 w-4" }),
75441
75462
  "Register here"
75442
75463
  ] }) })
@@ -92559,7 +92580,7 @@ function OpportunitiesTable({
92559
92580
  return /* @__PURE__ */ jsx("span", { className: "text-xs text-muted-foreground", children: "Actions unavailable" });
92560
92581
  const ge = oe.BidNumber, se = (Ve = l[ge]) == null ? void 0 : Ve.isSettingDefault, Ae = (_ == null ? void 0 : _.BidNumber) === ge && ((je = l[ge]) == null ? void 0 : je.isSendingReport), $e = se || Ae, Ne = oe.CanBeSetAsDefault === !0;
92561
92582
  return /* @__PURE__ */ jsxs("div", { className: "flex space-x-2", children: [
92562
- /* @__PURE__ */ jsx("a", { href: `/${t}/Opportunity/${oe.ManufacturerId}/${oe.BidNumber}`, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center", children: [
92583
+ /* @__PURE__ */ jsx(Link, { to: `/${t}/Opportunity/${oe.ManufacturerId}/${oe.BidNumber}`, children: /* @__PURE__ */ jsxs(Button, { variant: "outline", size: "sm", className: "flex items-center", children: [
92563
92584
  /* @__PURE__ */ jsx(Star, { className: "mr-2 h-4 w-4" }),
92564
92585
  " View"
92565
92586
  ] }) }),