randmarcomps 1.190.0 → 1.191.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 +60 -36
- package/dist/randmarcomps.umd.cjs +6 -6
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -50244,7 +50244,7 @@ function PartnerCard({
|
|
|
50244
50244
|
const F = () => {
|
|
50245
50245
|
I(!1);
|
|
50246
50246
|
};
|
|
50247
|
-
return n || !e ? /* @__PURE__ */ jsxs(Card, { className: o
|
|
50247
|
+
return n || !e ? /* @__PURE__ */ jsxs(Card, { className: `flex flex-col h-full ${o}`, children: [
|
|
50248
50248
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50249
50249
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
|
|
50250
50250
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -50255,7 +50255,7 @@ function PartnerCard({
|
|
|
50255
50255
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-48 mt-1" })
|
|
50256
50256
|
] })
|
|
50257
50257
|
] }) }),
|
|
50258
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
50258
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
50259
50259
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
50260
50260
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24 rounded-full" }),
|
|
50261
50261
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
@@ -50281,11 +50281,11 @@ function PartnerCard({
|
|
|
50281
50281
|
] })
|
|
50282
50282
|
] }) })
|
|
50283
50283
|
] }) }),
|
|
50284
|
-
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between gap-2", children: [
|
|
50284
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "px-6 py-4 flex justify-between gap-2 mt-auto", children: [
|
|
50285
50285
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-32" }),
|
|
50286
50286
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-48" })
|
|
50287
50287
|
] })
|
|
50288
|
-
] }) : /* @__PURE__ */ jsxs(Card, { className: o
|
|
50288
|
+
] }) : /* @__PURE__ */ jsxs(Card, { className: `flex flex-col h-full ${o}`, children: [
|
|
50289
50289
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
50290
50290
|
S && /* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: b ? /* @__PURE__ */ jsx(Skeleton, { className: "h-10 w-10 rounded-md" }) : f && /* @__PURE__ */ jsx(
|
|
50291
50291
|
"img",
|
|
@@ -50304,7 +50304,7 @@ function PartnerCard({
|
|
|
50304
50304
|
/* @__PURE__ */ jsx("h3", { className: "font-semibold", children: e.PublicName || "N/A" })
|
|
50305
50305
|
] })
|
|
50306
50306
|
] }) }),
|
|
50307
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "pb-2", children: [
|
|
50307
|
+
/* @__PURE__ */ jsxs(CardContent, { className: "pb-2 flex-grow", children: [
|
|
50308
50308
|
A && /* @__PURE__ */ jsx("div", { className: "text-red-500 mb-4 text-sm", role: "alert", children: A }),
|
|
50309
50309
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-4", children: [
|
|
50310
50310
|
(e.IsManufacturer || e.IsReseller || e.IsSalesAgency) && /* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
@@ -53004,7 +53004,7 @@ function ManufacturerCard({
|
|
|
53004
53004
|
}) {
|
|
53005
53005
|
var M, I, A;
|
|
53006
53006
|
if (d || !e)
|
|
53007
|
-
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
53007
|
+
return /* @__PURE__ */ jsxs(Card, { className: "flex flex-col h-full", children: [
|
|
53008
53008
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
53009
53009
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
53010
53010
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
|
|
@@ -53017,7 +53017,7 @@ function ManufacturerCard({
|
|
|
53017
53017
|
] }),
|
|
53018
53018
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-16 w-24" })
|
|
53019
53019
|
] }),
|
|
53020
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
53020
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col space-y-2", children: [
|
|
53021
53021
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
53022
53022
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
53023
53023
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
@@ -53038,7 +53038,7 @@ function ManufacturerCard({
|
|
|
53038
53038
|
] })
|
|
53039
53039
|
] })
|
|
53040
53040
|
] }) }),
|
|
53041
|
-
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2", children: [
|
|
53041
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2 mt-auto", children: [
|
|
53042
53042
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
53043
53043
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
53044
53044
|
] })
|
|
@@ -53159,7 +53159,7 @@ function ResellerCard({
|
|
|
53159
53159
|
maximumFractionDigits: 0
|
|
53160
53160
|
}).format(C);
|
|
53161
53161
|
if (o || !e)
|
|
53162
|
-
return /* @__PURE__ */ jsxs(Card, { children: [
|
|
53162
|
+
return /* @__PURE__ */ jsxs(Card, { className: "flex flex-col h-full", children: [
|
|
53163
53163
|
/* @__PURE__ */ jsx(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
53164
53164
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-12 w-12 rounded-md" }),
|
|
53165
53165
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -53169,7 +53169,7 @@ function ResellerCard({
|
|
|
53169
53169
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-48" })
|
|
53170
53170
|
] })
|
|
53171
53171
|
] }) }),
|
|
53172
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
53172
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsx("div", { className: "flex", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
53173
53173
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-wrap gap-2", children: [
|
|
53174
53174
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-16 rounded-full" }),
|
|
53175
53175
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-20 rounded-full" }),
|
|
@@ -53190,13 +53190,13 @@ function ResellerCard({
|
|
|
53190
53190
|
] })
|
|
53191
53191
|
] })
|
|
53192
53192
|
] }) }) }),
|
|
53193
|
-
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2", children: [
|
|
53193
|
+
/* @__PURE__ */ jsxs(CardFooter, { className: "flex justify-between pt-2 gap-2 mt-auto", children: [
|
|
53194
53194
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-24" }),
|
|
53195
53195
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-9 w-40" })
|
|
53196
53196
|
] })
|
|
53197
53197
|
] });
|
|
53198
53198
|
const d = e.ResellerId || "N/A", f = e.PublicName || "N/A", g = [e.City, e.Province, e.Country].filter(Boolean), b = g.length > 0 ? g.join(", ") : "Location not provided";
|
|
53199
|
-
return /* @__PURE__ */ jsxs(Card, { className: "reseller-theme", children: [
|
|
53199
|
+
return /* @__PURE__ */ jsxs(Card, { className: "reseller-theme flex flex-col h-full", children: [
|
|
53200
53200
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-start justify-between space-y-0 pb-2 pt-4", children: [
|
|
53201
53201
|
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-3", children: [
|
|
53202
53202
|
/* @__PURE__ */ jsx("div", { className: "h-12 w-12 overflow-hidden rounded-md", children: /* @__PURE__ */ jsx(
|
|
@@ -53220,7 +53220,7 @@ function ResellerCard({
|
|
|
53220
53220
|
] }),
|
|
53221
53221
|
!!e.OnHold && e.OnHold !== 0 && /* @__PURE__ */ jsx(Badge, { variant: "warning", children: "On Hold" })
|
|
53222
53222
|
] }),
|
|
53223
|
-
/* @__PURE__ */ jsx(CardContent, { className: "pb-2", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
53223
|
+
/* @__PURE__ */ jsx(CardContent, { className: "pb-2 flex-grow", children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
53224
53224
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col flex-1 space-y-2", children: [
|
|
53225
53225
|
!!((_ = e.Qualification) != null && _.QualificationId) && ((S = e.Qualification) == null ? void 0 : S.QualificationId) !== "Suspended" && /* @__PURE__ */ jsx("div", { className: "flex flex-wrap gap-2", children: /* @__PURE__ */ jsx(
|
|
53226
53226
|
QualificationBadge,
|
|
@@ -53229,18 +53229,42 @@ function ResellerCard({
|
|
|
53229
53229
|
}
|
|
53230
53230
|
) }),
|
|
53231
53231
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1 pt-2", children: [
|
|
53232
|
-
e.Phone && /* @__PURE__ */ jsxs(
|
|
53233
|
-
|
|
53234
|
-
|
|
53235
|
-
|
|
53236
|
-
|
|
53237
|
-
|
|
53238
|
-
|
|
53239
|
-
|
|
53240
|
-
|
|
53241
|
-
|
|
53242
|
-
|
|
53243
|
-
|
|
53232
|
+
e.Phone && /* @__PURE__ */ jsxs(
|
|
53233
|
+
Link,
|
|
53234
|
+
{
|
|
53235
|
+
to: `tel:${e.Phone}`,
|
|
53236
|
+
target: "_blank",
|
|
53237
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
53238
|
+
children: [
|
|
53239
|
+
/* @__PURE__ */ jsx(Phone, { className: "h-4 w-4" }),
|
|
53240
|
+
/* @__PURE__ */ jsx("span", { children: e.Phone })
|
|
53241
|
+
]
|
|
53242
|
+
}
|
|
53243
|
+
),
|
|
53244
|
+
e.PublicEmail && /* @__PURE__ */ jsxs(
|
|
53245
|
+
Link,
|
|
53246
|
+
{
|
|
53247
|
+
to: `mailto:${e.PublicEmail}`,
|
|
53248
|
+
target: "_blank",
|
|
53249
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
53250
|
+
children: [
|
|
53251
|
+
/* @__PURE__ */ jsx(Mail, { className: "h-4 w-4" }),
|
|
53252
|
+
/* @__PURE__ */ jsx("span", { children: e.PublicEmail })
|
|
53253
|
+
]
|
|
53254
|
+
}
|
|
53255
|
+
),
|
|
53256
|
+
e.Website && /* @__PURE__ */ jsxs(
|
|
53257
|
+
Link,
|
|
53258
|
+
{
|
|
53259
|
+
to: e.Website,
|
|
53260
|
+
target: "_blank",
|
|
53261
|
+
className: "flex items-center gap-2 text-sm text-muted-foreground",
|
|
53262
|
+
children: [
|
|
53263
|
+
/* @__PURE__ */ jsx(Globe, { className: "h-4 w-4" }),
|
|
53264
|
+
/* @__PURE__ */ jsx("span", { children: e.Website })
|
|
53265
|
+
]
|
|
53266
|
+
}
|
|
53267
|
+
),
|
|
53244
53268
|
e.CurrencyCode && /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2 text-sm text-muted-foreground", children: [
|
|
53245
53269
|
/* @__PURE__ */ jsx(DollarSign, { className: "h-4 w-4" }),
|
|
53246
53270
|
/* @__PURE__ */ jsx("span", { children: e.CurrencyCode })
|
|
@@ -53256,7 +53280,7 @@ function ResellerCard({
|
|
|
53256
53280
|
/* @__PURE__ */ jsx("p", { children: l(e == null ? void 0 : e.SalesData.SalesLast30Days) })
|
|
53257
53281
|
] })
|
|
53258
53282
|
] }) }),
|
|
53259
|
-
(n || t) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 ${n ? "justify-between" : "justify-end"}`, children: [
|
|
53283
|
+
(n || t) && /* @__PURE__ */ jsxs(CardFooter, { className: `flex pt-2 gap-2 mt-auto ${n ? "justify-between" : "justify-end"}`, children: [
|
|
53260
53284
|
n && n,
|
|
53261
53285
|
t && /* @__PURE__ */ jsx(Button, { className: "flex items-center gap-1", asChild: !0, children: /* @__PURE__ */ jsxs(Link, { to: t, target: "_blank", children: [
|
|
53262
53286
|
/* @__PURE__ */ jsx(ExternalLink, { className: "h-4 w-4" }),
|
|
@@ -55597,9 +55621,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55597
55621
|
}
|
|
55598
55622
|
pt.regexp_eatClassSetReservedPunctuator = function(O) {
|
|
55599
55623
|
var ne = O.current();
|
|
55600
|
-
return
|
|
55624
|
+
return Nn(ne) ? (O.lastIntValue = ne, O.advance(), !0) : !1;
|
|
55601
55625
|
};
|
|
55602
|
-
function
|
|
55626
|
+
function Nn(O) {
|
|
55603
55627
|
return O === 33 || O === 35 || O === 37 || O === 38 || O === 44 || O === 45 || O >= 58 && O <= 62 || O === 64 || O === 96 || O === 126;
|
|
55604
55628
|
}
|
|
55605
55629
|
pt.regexp_eatClassControlLetter = function(O) {
|
|
@@ -55925,7 +55949,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55925
55949
|
}
|
|
55926
55950
|
return Ve && ct === 95 && this.raiseRecoverable(this.pos - 1, "Numeric separator is not allowed at the last of digits"), this.pos === et || ne != null && this.pos - et !== ne ? null : it;
|
|
55927
55951
|
};
|
|
55928
|
-
function
|
|
55952
|
+
function Mn(O, ne) {
|
|
55929
55953
|
return ne ? parseInt(O, 8) : parseFloat(O.replace(/_/g, ""));
|
|
55930
55954
|
}
|
|
55931
55955
|
function sn(O) {
|
|
@@ -55947,7 +55971,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ne.ecmaVersion
|
|
|
55947
55971
|
return ++this.pos, M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number"), this.finishToken(V.num, Ue);
|
|
55948
55972
|
}
|
|
55949
55973
|
$e && /[89]/.test(this.input.slice(ne, this.pos)) && ($e = !1), Ve === 46 && !$e && (++this.pos, this.readInt(10), Ve = this.input.charCodeAt(this.pos)), (Ve === 69 || Ve === 101) && !$e && (Ve = this.input.charCodeAt(++this.pos), (Ve === 43 || Ve === 45) && ++this.pos, this.readInt(10) === null && this.raise(ne, "Invalid number")), M(this.fullCharCodeAtPos()) && this.raise(this.pos, "Identifier directly after number");
|
|
55950
|
-
var et =
|
|
55974
|
+
var et = Mn(this.input.slice(ne, this.pos), $e);
|
|
55951
55975
|
return this.finishToken(V.num, et);
|
|
55952
55976
|
}, Vt.readCodePoint = function() {
|
|
55953
55977
|
var O = this.input.charCodeAt(this.pos), ne;
|
|
@@ -59156,7 +59180,7 @@ var hash = (e = "", t = 16) => {
|
|
|
59156
59180
|
function handleNaN(e) {
|
|
59157
59181
|
return Number.isNaN(e) ? "NaN" : e;
|
|
59158
59182
|
}
|
|
59159
|
-
var Ir, Ut,
|
|
59183
|
+
var Ir, Ut, Nr, Mr, yr, Pr;
|
|
59160
59184
|
class JsxParser extends React__default.Component {
|
|
59161
59185
|
constructor() {
|
|
59162
59186
|
super(...arguments);
|
|
@@ -59262,9 +59286,9 @@ class JsxParser extends React__default.Component {
|
|
|
59262
59286
|
const C = Ft(this, Ut).call(this, n.left, o);
|
|
59263
59287
|
return n.operator === "||" && C ? C : n.operator === "&&" && C || n.operator === "||" && !C ? Ft(this, Ut).call(this, n.right, o) : !1;
|
|
59264
59288
|
case "MemberExpression":
|
|
59265
|
-
return Ft(this, Nr).call(this, n, o);
|
|
59266
|
-
case "ChainExpression":
|
|
59267
59289
|
return Ft(this, Mr).call(this, n, o);
|
|
59290
|
+
case "ChainExpression":
|
|
59291
|
+
return Ft(this, Nr).call(this, n, o);
|
|
59268
59292
|
case "ObjectExpression":
|
|
59269
59293
|
const E = {};
|
|
59270
59294
|
return n.properties.forEach((M) => {
|
|
@@ -59297,7 +59321,7 @@ class JsxParser extends React__default.Component {
|
|
|
59297
59321
|
return;
|
|
59298
59322
|
}
|
|
59299
59323
|
});
|
|
59300
|
-
cr(this,
|
|
59324
|
+
cr(this, Nr, (n, o) => {
|
|
59301
59325
|
try {
|
|
59302
59326
|
return Ft(this, Ut).call(this, n.expression, o);
|
|
59303
59327
|
} catch (l) {
|
|
@@ -59306,7 +59330,7 @@ class JsxParser extends React__default.Component {
|
|
|
59306
59330
|
throw l;
|
|
59307
59331
|
}
|
|
59308
59332
|
});
|
|
59309
|
-
cr(this,
|
|
59333
|
+
cr(this, Mr, (n, o) => {
|
|
59310
59334
|
const l = Ft(this, Ut).call(this, n.object, o);
|
|
59311
59335
|
let d;
|
|
59312
59336
|
if (n.computed)
|
|
@@ -59380,7 +59404,7 @@ class JsxParser extends React__default.Component {
|
|
|
59380
59404
|
}, this.ParsedChildren) : this.ParsedChildren;
|
|
59381
59405
|
}
|
|
59382
59406
|
}
|
|
59383
|
-
Ir = new WeakMap(), Ut = new WeakMap(),
|
|
59407
|
+
Ir = new WeakMap(), Ut = new WeakMap(), Nr = new WeakMap(), Mr = new WeakMap(), yr = new WeakMap(), Pr = new WeakMap(), Dt(JsxParser, "displayName", "JsxParser"), Dt(JsxParser, "defaultProps", {
|
|
59384
59408
|
allowUnknownElements: !0,
|
|
59385
59409
|
autoCloseVoidElements: !1,
|
|
59386
59410
|
bindings: {},
|