randmarcomps 1.274.0 → 1.276.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 +122 -81
- package/dist/randmarcomps.umd.cjs +14 -14
- package/package.json +1 -1
package/dist/randmarcomps.js
CHANGED
|
@@ -19709,7 +19709,7 @@ var SIZE = 32, DefaultLegendContent = /* @__PURE__ */ function(t) {
|
|
|
19709
19709
|
return /* @__PURE__ */ React__default.createElement("path", {
|
|
19710
19710
|
stroke: "none",
|
|
19711
19711
|
fill: b,
|
|
19712
|
-
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-
|
|
19712
|
+
d: "M0,".concat(SIZE / 8, "h").concat(SIZE, "v").concat(SIZE * 3 / 4, "h").concat(-SIZE, "z"),
|
|
19713
19713
|
className: "recharts-legend-icon"
|
|
19714
19714
|
});
|
|
19715
19715
|
if (/* @__PURE__ */ React__default.isValidElement(o.legendIcon)) {
|
|
@@ -29843,7 +29843,7 @@ function requireToFinite() {
|
|
|
29843
29843
|
function o(l) {
|
|
29844
29844
|
if (!l)
|
|
29845
29845
|
return l === 0 ? l : 0;
|
|
29846
|
-
if (l = t(l), l === e || l === -
|
|
29846
|
+
if (l = t(l), l === e || l === -e) {
|
|
29847
29847
|
var d = l < 0 ? -1 : 1;
|
|
29848
29848
|
return d * n;
|
|
29849
29849
|
}
|
|
@@ -45805,12 +45805,12 @@ function flattenTypeArrayToAnyOf(t, e) {
|
|
|
45805
45805
|
t.includes("null") && (e.nullable = !0);
|
|
45806
45806
|
const n = t.filter((o) => o !== "null");
|
|
45807
45807
|
if (n.length === 1)
|
|
45808
|
-
e.type = Object.
|
|
45808
|
+
e.type = Object.values(Type).includes(n[0].toUpperCase()) ? n[0].toUpperCase() : Type.TYPE_UNSPECIFIED;
|
|
45809
45809
|
else {
|
|
45810
45810
|
e.anyOf = [];
|
|
45811
45811
|
for (const o of n)
|
|
45812
45812
|
e.anyOf.push({
|
|
45813
|
-
type: Object.
|
|
45813
|
+
type: Object.values(Type).includes(o.toUpperCase()) ? o.toUpperCase() : Type.TYPE_UNSPECIFIED
|
|
45814
45814
|
});
|
|
45815
45815
|
}
|
|
45816
45816
|
}
|
|
@@ -45827,7 +45827,7 @@ function processJsonSchema(t) {
|
|
|
45827
45827
|
throw new Error("type: null can not be the only possible type for the field.");
|
|
45828
45828
|
if (g instanceof Array)
|
|
45829
45829
|
continue;
|
|
45830
|
-
e.type = Object.
|
|
45830
|
+
e.type = Object.values(Type).includes(g.toUpperCase()) ? g.toUpperCase() : Type.TYPE_UNSPECIFIED;
|
|
45831
45831
|
} else if (n.includes(f))
|
|
45832
45832
|
e[f] = processJsonSchema(g);
|
|
45833
45833
|
else if (o.includes(f)) {
|
|
@@ -46008,7 +46008,7 @@ function filterToJsonSchema(t) {
|
|
|
46008
46008
|
l[d] = filterDictSchemaField(f);
|
|
46009
46009
|
else if (d === "type") {
|
|
46010
46010
|
const g = f.toUpperCase();
|
|
46011
|
-
l[d] = Object.
|
|
46011
|
+
l[d] = Object.values(Type).includes(g) ? g : Type.TYPE_UNSPECIFIED;
|
|
46012
46012
|
} else supportedJsonSchemaFields.has(d) && (l[d] = f);
|
|
46013
46013
|
return l;
|
|
46014
46014
|
}
|
|
@@ -46379,13 +46379,16 @@ function googleMapsToVertex$2(t, e) {
|
|
|
46379
46379
|
const n = {}, o = getValueByPath(e, ["authConfig"]);
|
|
46380
46380
|
return o != null && setValueByPath(n, ["authConfig"], authConfigToVertex$2(t, o)), n;
|
|
46381
46381
|
}
|
|
46382
|
+
function urlContextToVertex$2() {
|
|
46383
|
+
return {};
|
|
46384
|
+
}
|
|
46382
46385
|
function toolToVertex$2(t, e) {
|
|
46383
46386
|
const n = {}, o = getValueByPath(e, [
|
|
46384
46387
|
"functionDeclarations"
|
|
46385
46388
|
]);
|
|
46386
46389
|
if (o != null) {
|
|
46387
|
-
let
|
|
46388
|
-
Array.isArray(
|
|
46390
|
+
let C = o;
|
|
46391
|
+
Array.isArray(C) && (C = C.map((E) => functionDeclarationToVertex$2(t, E))), setValueByPath(n, ["functionDeclarations"], C);
|
|
46389
46392
|
}
|
|
46390
46393
|
const l = getValueByPath(e, ["retrieval"]);
|
|
46391
46394
|
l != null && setValueByPath(n, ["retrieval"], l);
|
|
@@ -46398,12 +46401,11 @@ function toolToVertex$2(t, e) {
|
|
|
46398
46401
|
"enterpriseWebSearch"
|
|
46399
46402
|
]) != null && setValueByPath(n, ["enterpriseWebSearch"], enterpriseWebSearchToVertex$2());
|
|
46400
46403
|
const b = getValueByPath(e, ["googleMaps"]);
|
|
46401
|
-
|
|
46402
|
-
|
|
46403
|
-
const S = getValueByPath(e, [
|
|
46404
|
+
b != null && setValueByPath(n, ["googleMaps"], googleMapsToVertex$2(t, b)), getValueByPath(e, ["urlContext"]) != null && setValueByPath(n, ["urlContext"], urlContextToVertex$2());
|
|
46405
|
+
const _ = getValueByPath(e, [
|
|
46404
46406
|
"codeExecution"
|
|
46405
46407
|
]);
|
|
46406
|
-
return
|
|
46408
|
+
return _ != null && setValueByPath(n, ["codeExecution"], _), n;
|
|
46407
46409
|
}
|
|
46408
46410
|
function functionCallingConfigToVertex$1(t, e) {
|
|
46409
46411
|
const n = {}, o = getValueByPath(e, ["mode"]);
|
|
@@ -47826,6 +47828,9 @@ function googleMapsToVertex$1(t, e) {
|
|
|
47826
47828
|
function urlContextToMldev$2() {
|
|
47827
47829
|
return {};
|
|
47828
47830
|
}
|
|
47831
|
+
function urlContextToVertex$1() {
|
|
47832
|
+
return {};
|
|
47833
|
+
}
|
|
47829
47834
|
function toolToMldev$2(t, e) {
|
|
47830
47835
|
const n = {}, o = getValueByPath(e, [
|
|
47831
47836
|
"functionDeclarations"
|
|
@@ -47856,8 +47861,8 @@ function toolToVertex$1(t, e) {
|
|
|
47856
47861
|
"functionDeclarations"
|
|
47857
47862
|
]);
|
|
47858
47863
|
if (o != null) {
|
|
47859
|
-
let
|
|
47860
|
-
Array.isArray(
|
|
47864
|
+
let C = o;
|
|
47865
|
+
Array.isArray(C) && (C = C.map((E) => functionDeclarationToVertex$1(t, E))), setValueByPath(n, ["functionDeclarations"], C);
|
|
47861
47866
|
}
|
|
47862
47867
|
const l = getValueByPath(e, ["retrieval"]);
|
|
47863
47868
|
l != null && setValueByPath(n, ["retrieval"], l);
|
|
@@ -47870,12 +47875,11 @@ function toolToVertex$1(t, e) {
|
|
|
47870
47875
|
"enterpriseWebSearch"
|
|
47871
47876
|
]) != null && setValueByPath(n, ["enterpriseWebSearch"], enterpriseWebSearchToVertex$1());
|
|
47872
47877
|
const b = getValueByPath(e, ["googleMaps"]);
|
|
47873
|
-
|
|
47874
|
-
|
|
47875
|
-
const S = getValueByPath(e, [
|
|
47878
|
+
b != null && setValueByPath(n, ["googleMaps"], googleMapsToVertex$1(t, b)), getValueByPath(e, ["urlContext"]) != null && setValueByPath(n, ["urlContext"], urlContextToVertex$1());
|
|
47879
|
+
const _ = getValueByPath(e, [
|
|
47876
47880
|
"codeExecution"
|
|
47877
47881
|
]);
|
|
47878
|
-
return
|
|
47882
|
+
return _ != null && setValueByPath(n, ["codeExecution"], _), n;
|
|
47879
47883
|
}
|
|
47880
47884
|
function sessionResumptionConfigToMldev$1(t, e) {
|
|
47881
47885
|
const n = {}, o = getValueByPath(e, ["handle"]);
|
|
@@ -49357,9 +49361,11 @@ function generateVideosConfigToMldev(t, e, n) {
|
|
|
49357
49361
|
const b = getValueByPath(e, [
|
|
49358
49362
|
"negativePrompt"
|
|
49359
49363
|
]);
|
|
49360
|
-
|
|
49361
|
-
|
|
49362
|
-
|
|
49364
|
+
n !== void 0 && b != null && setValueByPath(n, ["parameters", "negativePrompt"], b);
|
|
49365
|
+
const S = getValueByPath(e, [
|
|
49366
|
+
"enhancePrompt"
|
|
49367
|
+
]);
|
|
49368
|
+
if (n !== void 0 && S != null && setValueByPath(n, ["parameters", "enhancePrompt"], S), getValueByPath(e, ["generateAudio"]) !== void 0)
|
|
49363
49369
|
throw new Error("generateAudio parameter is not supported in Gemini API.");
|
|
49364
49370
|
return o;
|
|
49365
49371
|
}
|
|
@@ -49572,13 +49578,16 @@ function googleMapsToVertex(t, e) {
|
|
|
49572
49578
|
const n = {}, o = getValueByPath(e, ["authConfig"]);
|
|
49573
49579
|
return o != null && setValueByPath(n, ["authConfig"], authConfigToVertex(t, o)), n;
|
|
49574
49580
|
}
|
|
49581
|
+
function urlContextToVertex() {
|
|
49582
|
+
return {};
|
|
49583
|
+
}
|
|
49575
49584
|
function toolToVertex(t, e) {
|
|
49576
49585
|
const n = {}, o = getValueByPath(e, [
|
|
49577
49586
|
"functionDeclarations"
|
|
49578
49587
|
]);
|
|
49579
49588
|
if (o != null) {
|
|
49580
|
-
let
|
|
49581
|
-
Array.isArray(
|
|
49589
|
+
let C = o;
|
|
49590
|
+
Array.isArray(C) && (C = C.map((E) => functionDeclarationToVertex(t, E))), setValueByPath(n, ["functionDeclarations"], C);
|
|
49582
49591
|
}
|
|
49583
49592
|
const l = getValueByPath(e, ["retrieval"]);
|
|
49584
49593
|
l != null && setValueByPath(n, ["retrieval"], l);
|
|
@@ -49591,12 +49600,11 @@ function toolToVertex(t, e) {
|
|
|
49591
49600
|
"enterpriseWebSearch"
|
|
49592
49601
|
]) != null && setValueByPath(n, ["enterpriseWebSearch"], enterpriseWebSearchToVertex());
|
|
49593
49602
|
const b = getValueByPath(e, ["googleMaps"]);
|
|
49594
|
-
|
|
49595
|
-
|
|
49596
|
-
const S = getValueByPath(e, [
|
|
49603
|
+
b != null && setValueByPath(n, ["googleMaps"], googleMapsToVertex(t, b)), getValueByPath(e, ["urlContext"]) != null && setValueByPath(n, ["urlContext"], urlContextToVertex());
|
|
49604
|
+
const _ = getValueByPath(e, [
|
|
49597
49605
|
"codeExecution"
|
|
49598
49606
|
]);
|
|
49599
|
-
return
|
|
49607
|
+
return _ != null && setValueByPath(n, ["codeExecution"], _), n;
|
|
49600
49608
|
}
|
|
49601
49609
|
function functionCallingConfigToVertex(t, e) {
|
|
49602
49610
|
const n = {}, o = getValueByPath(e, ["mode"]);
|
|
@@ -50495,6 +50503,22 @@ function citationMetadataFromVertex(t, e) {
|
|
|
50495
50503
|
const n = {}, o = getValueByPath(e, ["citations"]);
|
|
50496
50504
|
return o != null && setValueByPath(n, ["citations"], o), n;
|
|
50497
50505
|
}
|
|
50506
|
+
function urlMetadataFromVertex(t, e) {
|
|
50507
|
+
const n = {}, o = getValueByPath(e, ["retrievedUrl"]);
|
|
50508
|
+
o != null && setValueByPath(n, ["retrievedUrl"], o);
|
|
50509
|
+
const l = getValueByPath(e, [
|
|
50510
|
+
"urlRetrievalStatus"
|
|
50511
|
+
]);
|
|
50512
|
+
return l != null && setValueByPath(n, ["urlRetrievalStatus"], l), n;
|
|
50513
|
+
}
|
|
50514
|
+
function urlContextMetadataFromVertex(t, e) {
|
|
50515
|
+
const n = {}, o = getValueByPath(e, ["urlMetadata"]);
|
|
50516
|
+
if (o != null) {
|
|
50517
|
+
let l = o;
|
|
50518
|
+
Array.isArray(l) && (l = l.map((d) => urlMetadataFromVertex(t, d))), setValueByPath(n, ["urlMetadata"], l);
|
|
50519
|
+
}
|
|
50520
|
+
return n;
|
|
50521
|
+
}
|
|
50498
50522
|
function candidateFromVertex(t, e) {
|
|
50499
50523
|
const n = {}, o = getValueByPath(e, ["content"]);
|
|
50500
50524
|
o != null && setValueByPath(n, ["content"], contentFromVertex(t, o));
|
|
@@ -50508,22 +50532,26 @@ function candidateFromVertex(t, e) {
|
|
|
50508
50532
|
d != null && setValueByPath(n, ["finishMessage"], d);
|
|
50509
50533
|
const f = getValueByPath(e, ["finishReason"]);
|
|
50510
50534
|
f != null && setValueByPath(n, ["finishReason"], f);
|
|
50511
|
-
const g = getValueByPath(e, [
|
|
50512
|
-
|
|
50513
|
-
|
|
50535
|
+
const g = getValueByPath(e, [
|
|
50536
|
+
"urlContextMetadata"
|
|
50537
|
+
]);
|
|
50538
|
+
g != null && setValueByPath(n, ["urlContextMetadata"], urlContextMetadataFromVertex(t, g));
|
|
50539
|
+
const b = getValueByPath(e, ["avgLogprobs"]);
|
|
50540
|
+
b != null && setValueByPath(n, ["avgLogprobs"], b);
|
|
50541
|
+
const S = getValueByPath(e, [
|
|
50514
50542
|
"groundingMetadata"
|
|
50515
50543
|
]);
|
|
50516
|
-
|
|
50517
|
-
const
|
|
50518
|
-
|
|
50519
|
-
const
|
|
50544
|
+
S != null && setValueByPath(n, ["groundingMetadata"], S);
|
|
50545
|
+
const _ = getValueByPath(e, ["index"]);
|
|
50546
|
+
_ != null && setValueByPath(n, ["index"], _);
|
|
50547
|
+
const C = getValueByPath(e, [
|
|
50520
50548
|
"logprobsResult"
|
|
50521
50549
|
]);
|
|
50522
|
-
|
|
50523
|
-
const
|
|
50550
|
+
C != null && setValueByPath(n, ["logprobsResult"], C);
|
|
50551
|
+
const E = getValueByPath(e, [
|
|
50524
50552
|
"safetyRatings"
|
|
50525
50553
|
]);
|
|
50526
|
-
return
|
|
50554
|
+
return E != null && setValueByPath(n, ["safetyRatings"], E), n;
|
|
50527
50555
|
}
|
|
50528
50556
|
function generateContentResponseFromVertex(t, e) {
|
|
50529
50557
|
const n = {}, o = getValueByPath(e, ["candidates"]);
|
|
@@ -50770,7 +50798,7 @@ function generateVideosOperationFromVertex$1(t, e) {
|
|
|
50770
50798
|
* Copyright 2025 Google LLC
|
|
50771
50799
|
* SPDX-License-Identifier: Apache-2.0
|
|
50772
50800
|
*/
|
|
50773
|
-
const CONTENT_TYPE_HEADER = "Content-Type", SERVER_TIMEOUT_HEADER = "X-Server-Timeout", USER_AGENT_HEADER = "User-Agent", GOOGLE_API_CLIENT_HEADER = "x-goog-api-client", SDK_VERSION = "1.
|
|
50801
|
+
const CONTENT_TYPE_HEADER = "Content-Type", SERVER_TIMEOUT_HEADER = "X-Server-Timeout", USER_AGENT_HEADER = "User-Agent", GOOGLE_API_CLIENT_HEADER = "x-goog-api-client", SDK_VERSION = "1.4.0", LIBRARY_LABEL = `google-genai-sdk/${SDK_VERSION}`, VERTEX_AI_API_DEFAULT_VERSION = "v1beta1", GOOGLE_AI_API_DEFAULT_VERSION = "v1beta", responseLineRE = /^data: (.*)(?:\n\n|\r\r|\r\n\r\n)/;
|
|
50774
50802
|
class ClientError extends Error {
|
|
50775
50803
|
constructor(e, n) {
|
|
50776
50804
|
n ? super(e, { cause: n }) : super(e, { cause: new Error().stack }), this.message = e, this.name = "ClientError";
|
|
@@ -60096,7 +60124,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60096
60124
|
/* @__PURE__ */ jsx("div", { className: "mt-1 mb-1", children: Ve.findIndex((ct) => ct.partner1 === "2" || ct.partner2 === "2") < 0 ? /* @__PURE__ */ jsx(Button, { className: "w-full", ref: R, onClick: () => dt(), children: "Chat with Randmar" }, "b1") : /* @__PURE__ */ jsx("a", { target: "_blank", href: `https://dashboard.randmar.io/${t}/ExploreManufacturers`, children: /* @__PURE__ */ jsx(Button, { className: "w-full", children: "Explore manufacturers" }, "b2") }) }),
|
|
60097
60125
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1", children: Ve.length && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsx(ChatList, { userId: t, chats: Ct.filter((ct) => ct.partner1 != ASSISTANT_ID && ct.partner2 != ASSISTANT_ID), activeChat: ut ?? null, onSelectChat: ge, assistantChat: Ve.find((ct) => ct.partner1 == ASSISTANT_ID || ct.partner2 == ASSISTANT_ID) }) }) })
|
|
60098
60126
|
] }),
|
|
60099
|
-
/* @__PURE__ */ jsx("div", { className: "flex-
|
|
60127
|
+
/* @__PURE__ */ jsx("div", { className: "flex-5 flex flex-col", children: ae ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60100
60128
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: ae[0] == ASSISTANT_ID || ae[1] == ASSISTANT_ID ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60101
60129
|
/* @__PURE__ */ jsx(Avatar, { className: "h-8 w-8 flex-shrink-0 rounded-none", children: /* @__PURE__ */ jsx(Bot, { className: "text-primary fill-white min-h-full" }) }),
|
|
60102
60130
|
/* @__PURE__ */ jsx("div", { className: "ml-3 font-medium", children: "Randmar Assistant" }),
|
|
@@ -60129,7 +60157,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60129
60157
|
),
|
|
60130
60158
|
/* @__PURE__ */ jsx("div", { ref: tt })
|
|
60131
60159
|
] }),
|
|
60132
|
-
/* @__PURE__ */ jsxs("div", { className: "p-4 border-t flex", children: [
|
|
60160
|
+
/* @__PURE__ */ jsxs("div", { className: "p-4 border-t border-r flex", children: [
|
|
60133
60161
|
(ut == null ? void 0 : ut.pending) && /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60134
60162
|
/* @__PURE__ */ jsxs(Button, { disabled: _, onClick: () => ft(), children: [
|
|
60135
60163
|
/* @__PURE__ */ jsx(Handshake, {}),
|
|
@@ -60203,7 +60231,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60203
60231
|
] })
|
|
60204
60232
|
] })
|
|
60205
60233
|
] }) : /* @__PURE__ */ jsx("div", { className: "flex-1 flex items-center justify-center text-muted-foreground", children: "Select a chat to start messaging" }) }),
|
|
60206
|
-
/* @__PURE__ */ jsx("div", { className: "w-[480px] flex flex-
|
|
60234
|
+
/* @__PURE__ */ jsx("div", { className: "w-[480px] flex flex-4 flex-col border-l", children: isAssistantChat(ae) ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60207
60235
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Sources and System Info" }) }),
|
|
60208
60236
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsxs("div", { className: "space-y-2", children: [
|
|
60209
60237
|
et ? /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "flex", children: [
|
|
@@ -60221,7 +60249,7 @@ const DebugMessageDisplay = ({ debugMessages: t }) => {
|
|
|
60221
60249
|
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-4 border-t pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "space-y-2", children: /* @__PURE__ */ jsx(DebugMessageDisplay, { debugMessages: Q }) }) })
|
|
60222
60250
|
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
60223
60251
|
/* @__PURE__ */ jsx("div", { className: "flex items-center p-4 border-b", children: /* @__PURE__ */ jsx("p", { className: "h-9 text-base/9", children: "Partner Overview" }) }),
|
|
60224
|
-
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx(PartnerRelationshipPage, { applicationId: t, partnerId: ((ae == null ? void 0 : ae[0]) === t ? ae[1] : ae == null ? void 0 : ae[0]) ?? t, userEmail: e, shopifyHostName: void 0, isSuperAdmin: !1 }) })
|
|
60252
|
+
/* @__PURE__ */ jsx(ScrollArea, { className: "flex-1 pl-2 pr-2 bg-slate-50", children: /* @__PURE__ */ jsx("div", { className: "mt-1", children: /* @__PURE__ */ jsx(PartnerRelationshipPage, { applicationId: t, partnerId: ((ae == null ? void 0 : ae[0]) === t ? ae[1] : ae == null ? void 0 : ae[0]) ?? t, userEmail: e, shopifyHostName: void 0, isSuperAdmin: !1 }) }) })
|
|
60225
60253
|
] }) })
|
|
60226
60254
|
] });
|
|
60227
60255
|
}
|
|
@@ -71935,7 +71963,7 @@ function LongMonthName(t) {
|
|
|
71935
71963
|
}
|
|
71936
71964
|
function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
|
|
71937
71965
|
const o = (e == null ? void 0 : e.SalesLast30Days) ?? 0, l = (e == null ? void 0 : e.SalesLast3Months) ?? 0, d = (e == null ? void 0 : e.SalesYearToDay) ?? 0, f = LongMonthName(t);
|
|
71938
|
-
return n ? /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @
|
|
71966
|
+
return n ? /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
|
|
71939
71967
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
71940
71968
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
71941
71969
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-24" }),
|
|
@@ -71956,7 +71984,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
|
|
|
71956
71984
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
|
|
71957
71985
|
] })
|
|
71958
71986
|
] }),
|
|
71959
|
-
/* @__PURE__ */ jsxs(Card, { className: "col-span-2
|
|
71987
|
+
/* @__PURE__ */ jsxs(Card, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
|
|
71960
71988
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
71961
71989
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-5 w-36" }),
|
|
71962
71990
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-8 w-8 rounded-full" })
|
|
@@ -71966,7 +71994,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
|
|
|
71966
71994
|
/* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-24" })
|
|
71967
71995
|
] })
|
|
71968
71996
|
] })
|
|
71969
|
-
] }) : /* @__PURE__ */ jsxs("div", { className: "grid gap-4
|
|
71997
|
+
] }) : /* @__PURE__ */ jsxs("div", { className: "grid gap-4 @xl:grid-cols-2 @2xl:grid-cols-3 mb-4", children: [
|
|
71970
71998
|
/* @__PURE__ */ jsxs(Card, { children: [
|
|
71971
71999
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
71972
72000
|
/* @__PURE__ */ jsx(CardTitle, { className: "text-sm font-medium", children: "Last 30 Days" }),
|
|
@@ -71987,7 +72015,7 @@ function SalesSummary({ fiscalYearMonthStart: t, salesData: e, isLoading: n }) {
|
|
|
71987
72015
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-muted-foreground" })
|
|
71988
72016
|
] })
|
|
71989
72017
|
] }),
|
|
71990
|
-
f && /* @__PURE__ */ jsxs(Card, { className: "@
|
|
72018
|
+
f && /* @__PURE__ */ jsxs(Card, { className: "@xl:col-span-2 @2xl:col-span-1", children: [
|
|
71991
72019
|
/* @__PURE__ */ jsxs(CardHeader, { className: "flex flex-row items-center justify-between space-y-0 pb-2", children: [
|
|
71992
72020
|
/* @__PURE__ */ jsxs(CardTitle, { className: "text-sm font-medium", children: [
|
|
71993
72021
|
"Year to Date (",
|
|
@@ -72296,7 +72324,7 @@ function ResellerOverview({
|
|
|
72296
72324
|
isLoading: g
|
|
72297
72325
|
}
|
|
72298
72326
|
),
|
|
72299
|
-
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @
|
|
72327
|
+
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @2xl:grid-cols-2 gap-6", children: [
|
|
72300
72328
|
/* @__PURE__ */ jsx(
|
|
72301
72329
|
SalesChart,
|
|
72302
72330
|
{
|
|
@@ -72337,7 +72365,7 @@ function ResellerOverview({
|
|
|
72337
72365
|
] }),
|
|
72338
72366
|
g || M.length > 0 ? /* @__PURE__ */ jsxs(Card, { className: "w-full", children: [
|
|
72339
72367
|
/* @__PURE__ */ jsx(CardHeader, { children: /* @__PURE__ */ jsx(CardTitle, { children: "Manufacturers you are qualified for" }) }),
|
|
72340
|
-
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid
|
|
72368
|
+
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx("div", { className: "grid @2xl:grid-cols-2 gap-4", children: g ? Array.from({ length: 2 }).map((q, z) => /* @__PURE__ */ jsx(ManufacturerCard, { loading: !0 }, z)) : M.map((q) => /* @__PURE__ */ jsx(
|
|
72341
72369
|
ManufacturerCard,
|
|
72342
72370
|
{
|
|
72343
72371
|
manufacturer: q,
|
|
@@ -74612,7 +74640,7 @@ function PartnerRelationshipPage({
|
|
|
74612
74640
|
}
|
|
74613
74641
|
}, A = () => d != null && d.Reseller ? "reseller-overview" : d != null && d.Manufacturer ? "manufacturer-overview" : "";
|
|
74614
74642
|
return /* @__PURE__ */ jsxs("div", { className: "@container", children: [
|
|
74615
|
-
/* @__PURE__ */ jsxs("div", { className: "grid gap-4
|
|
74643
|
+
/* @__PURE__ */ jsxs("div", { className: "grid gap-4 @2xl:grid-cols-2", children: [
|
|
74616
74644
|
/* @__PURE__ */ jsx(
|
|
74617
74645
|
PartnerCard,
|
|
74618
74646
|
{
|
|
@@ -78406,7 +78434,7 @@ const blockTags = {
|
|
|
78406
78434
|
title: !0
|
|
78407
78435
|
}, listTags = { ol: !0, ul: !0 }, OPT_PRESERVE_WS = 1, OPT_PRESERVE_WS_FULL = 2, OPT_OPEN_LEFT = 4;
|
|
78408
78436
|
function wsOptionsFor(t, e, n) {
|
|
78409
|
-
return e != null ? (e ? OPT_PRESERVE_WS : 0) | (e === "full" ? OPT_PRESERVE_WS_FULL : 0) : t && t.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : n &
|
|
78437
|
+
return e != null ? (e ? OPT_PRESERVE_WS : 0) | (e === "full" ? OPT_PRESERVE_WS_FULL : 0) : t && t.whitespace == "pre" ? OPT_PRESERVE_WS | OPT_PRESERVE_WS_FULL : n & ~OPT_OPEN_LEFT;
|
|
78410
78438
|
}
|
|
78411
78439
|
class NodeContext {
|
|
78412
78440
|
constructor(e, n, o, l, d, f) {
|
|
@@ -80836,7 +80864,7 @@ class Transaction extends Transform {
|
|
|
80836
80864
|
setSelection(e) {
|
|
80837
80865
|
if (e.$from.doc != this.doc)
|
|
80838
80866
|
throw new RangeError("Selection passed to setSelection must point at the current document");
|
|
80839
|
-
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | UPDATED_SEL) &
|
|
80867
|
+
return this.curSelection = e, this.curSelectionFor = this.steps.length, this.updated = (this.updated | UPDATED_SEL) & ~UPDATED_MARKS, this.storedMarks = null, this;
|
|
80840
80868
|
}
|
|
80841
80869
|
/**
|
|
80842
80870
|
Whether the selection was explicitly updated by this transaction.
|
|
@@ -80880,7 +80908,7 @@ class Transaction extends Transform {
|
|
|
80880
80908
|
@internal
|
|
80881
80909
|
*/
|
|
80882
80910
|
addStep(e, n) {
|
|
80883
|
-
super.addStep(e, n), this.updated = this.updated &
|
|
80911
|
+
super.addStep(e, n), this.updated = this.updated & ~UPDATED_MARKS, this.storedMarks = null;
|
|
80884
80912
|
}
|
|
80885
80913
|
/**
|
|
80886
80914
|
Update the timestamp for the transaction.
|
|
@@ -86732,44 +86760,56 @@ const isFragment = (t) => !("type" in t), insertContentAt = (t, e, n) => ({ tr:
|
|
|
86732
86760
|
...n
|
|
86733
86761
|
};
|
|
86734
86762
|
let g;
|
|
86735
|
-
|
|
86736
|
-
|
|
86737
|
-
parseOptions: {
|
|
86738
|
-
preserveWhitespace: "full",
|
|
86739
|
-
...n.parseOptions
|
|
86740
|
-
},
|
|
86741
|
-
errorOnInvalidContent: (f = n.errorOnInvalidContent) !== null && f !== void 0 ? f : d.options.enableContentCheck
|
|
86742
|
-
});
|
|
86743
|
-
} catch (A) {
|
|
86744
|
-
return d.emit("contentError", {
|
|
86763
|
+
const b = (M) => {
|
|
86764
|
+
d.emit("contentError", {
|
|
86745
86765
|
editor: d,
|
|
86746
|
-
error:
|
|
86766
|
+
error: M,
|
|
86747
86767
|
disableCollaboration: () => {
|
|
86748
86768
|
d.storage.collaboration && (d.storage.collaboration.isDisabled = !0);
|
|
86749
86769
|
}
|
|
86750
|
-
})
|
|
86770
|
+
});
|
|
86771
|
+
}, S = {
|
|
86772
|
+
preserveWhitespace: "full",
|
|
86773
|
+
...n.parseOptions
|
|
86774
|
+
};
|
|
86775
|
+
if (!n.errorOnInvalidContent && !d.options.enableContentCheck && d.options.emitContentError)
|
|
86776
|
+
try {
|
|
86777
|
+
createNodeFromContent(e, d.schema, {
|
|
86778
|
+
parseOptions: S,
|
|
86779
|
+
errorOnInvalidContent: !0
|
|
86780
|
+
});
|
|
86781
|
+
} catch (M) {
|
|
86782
|
+
b(M);
|
|
86783
|
+
}
|
|
86784
|
+
try {
|
|
86785
|
+
g = createNodeFromContent(e, d.schema, {
|
|
86786
|
+
parseOptions: S,
|
|
86787
|
+
errorOnInvalidContent: (f = n.errorOnInvalidContent) !== null && f !== void 0 ? f : d.options.enableContentCheck
|
|
86788
|
+
});
|
|
86789
|
+
} catch (M) {
|
|
86790
|
+
return b(M), !1;
|
|
86751
86791
|
}
|
|
86752
|
-
let { from:
|
|
86753
|
-
if ((isFragment(g) ? g : [g]).forEach((
|
|
86754
|
-
|
|
86755
|
-
}),
|
|
86756
|
-
const { parent:
|
|
86757
|
-
|
|
86792
|
+
let { from: _, to: C } = typeof t == "number" ? { from: t, to: t } : { from: t.from, to: t.to }, E = !0, R = !0;
|
|
86793
|
+
if ((isFragment(g) ? g : [g]).forEach((M) => {
|
|
86794
|
+
M.check(), E = E ? M.isText && M.marks.length === 0 : !1, R = R ? M.isBlock : !1;
|
|
86795
|
+
}), _ === C && R) {
|
|
86796
|
+
const { parent: M } = o.doc.resolve(_);
|
|
86797
|
+
M.isTextblock && !M.type.spec.code && !M.childCount && (_ -= 1, C += 1);
|
|
86758
86798
|
}
|
|
86759
|
-
let
|
|
86760
|
-
if (
|
|
86799
|
+
let I;
|
|
86800
|
+
if (E) {
|
|
86761
86801
|
if (Array.isArray(e))
|
|
86762
|
-
|
|
86802
|
+
I = e.map((M) => M.text || "").join("");
|
|
86763
86803
|
else if (e instanceof Fragment) {
|
|
86764
|
-
let
|
|
86765
|
-
e.forEach((
|
|
86766
|
-
|
|
86767
|
-
}),
|
|
86768
|
-
} else typeof e == "object" && e && e.text ?
|
|
86769
|
-
o.insertText(
|
|
86804
|
+
let M = "";
|
|
86805
|
+
e.forEach((V) => {
|
|
86806
|
+
V.text && (M += V.text);
|
|
86807
|
+
}), I = M;
|
|
86808
|
+
} else typeof e == "object" && e && e.text ? I = e.text : I = e;
|
|
86809
|
+
o.insertText(I, _, C);
|
|
86770
86810
|
} else
|
|
86771
|
-
|
|
86772
|
-
n.updateSelection && selectionToInsertionEnd(o, o.steps.length - 1, -1), n.applyInputRules && o.setMeta("applyInputRules", { from:
|
|
86811
|
+
I = g, o.replaceWith(_, C, I);
|
|
86812
|
+
n.updateSelection && selectionToInsertionEnd(o, o.steps.length - 1, -1), n.applyInputRules && o.setMeta("applyInputRules", { from: _, text: I }), n.applyPasteRules && o.setMeta("applyPasteRules", { from: _, text: I });
|
|
86773
86813
|
}
|
|
86774
86814
|
return !0;
|
|
86775
86815
|
}, joinUp = () => ({ state: t, dispatch: e }) => joinUp$1(t, e), joinDown = () => ({ state: t, dispatch: e }) => joinDown$1(t, e), joinBackward = () => ({ state: t, dispatch: e }) => joinBackward$1(t, e), joinForward = () => ({ state: t, dispatch: e }) => joinForward$1(t, e), joinItemBackward = () => ({ state: t, dispatch: e, tr: n }) => {
|
|
@@ -87760,6 +87800,7 @@ class Editor extends EventEmitter {
|
|
|
87760
87800
|
enablePasteRules: !0,
|
|
87761
87801
|
enableCoreExtensions: !0,
|
|
87762
87802
|
enableContentCheck: !1,
|
|
87803
|
+
emitContentError: !1,
|
|
87763
87804
|
onBeforeCreate: () => null,
|
|
87764
87805
|
onCreate: () => null,
|
|
87765
87806
|
onUpdate: () => null,
|