randmarcomps 1.358.0 → 1.359.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 +104 -204
- package/dist/randmarcomps.umd.cjs +164 -164
- package/package.json +2 -2
package/dist/randmarcomps.js
CHANGED
|
@@ -13604,6 +13604,7 @@ Hook ${g} was either not provided or not a function.`);
|
|
|
13604
13604
|
const emptySplitApi = createApi({
|
|
13605
13605
|
reducerPath: "randmarApi",
|
|
13606
13606
|
keepUnusedDataFor: 600,
|
|
13607
|
+
refetchOnMountOrArgChange: 560,
|
|
13607
13608
|
baseQuery: fetchBaseQuery({
|
|
13608
13609
|
baseUrl: "https://api.randmar.io",
|
|
13609
13610
|
prepareHeaders: (t) => {
|
|
@@ -14011,10 +14012,7 @@ const emptySplitApi = createApi({
|
|
|
14011
14012
|
}),
|
|
14012
14013
|
getV4ManufacturerByRouteManufacturerIdCategoriesNiches: t.query({
|
|
14013
14014
|
query: (e) => ({
|
|
14014
|
-
url: `/V4/Manufacturer/${e.routeManufacturerId}/Categories/Niches
|
|
14015
|
-
params: {
|
|
14016
|
-
routeResellerId: e.routeResellerId
|
|
14017
|
-
}
|
|
14015
|
+
url: `/V4/Manufacturer/${e.routeManufacturerId}/Categories/Niches`
|
|
14018
14016
|
})
|
|
14019
14017
|
}),
|
|
14020
14018
|
getV4ManufacturerByRouteManufacturerIdCategoryAndCategoryCode: t.query({
|
|
@@ -14297,14 +14295,14 @@ const emptySplitApi = createApi({
|
|
|
14297
14295
|
query: (e) => ({
|
|
14298
14296
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Invoice/${e.receiptNumber}`,
|
|
14299
14297
|
method: "PUT",
|
|
14300
|
-
body: e.
|
|
14298
|
+
body: e.invoiceToReceiptInput
|
|
14301
14299
|
})
|
|
14302
14300
|
}),
|
|
14303
14301
|
putV4ManufacturerByRouteManufacturerIdInvoiceMiscellaneous: t.mutation({
|
|
14304
14302
|
query: (e) => ({
|
|
14305
14303
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Invoice/Miscellaneous`,
|
|
14306
14304
|
method: "PUT",
|
|
14307
|
-
body: e.
|
|
14305
|
+
body: e.miscellaneousInvoiceInput
|
|
14308
14306
|
})
|
|
14309
14307
|
}),
|
|
14310
14308
|
getV4PartnerByRouteApplicationIdJobs: t.query({
|
|
@@ -14440,6 +14438,13 @@ const emptySplitApi = createApi({
|
|
|
14440
14438
|
body: e.shortsFromLongModel
|
|
14441
14439
|
})
|
|
14442
14440
|
}),
|
|
14441
|
+
putV4PartnerNew: t.mutation({
|
|
14442
|
+
query: (e) => ({
|
|
14443
|
+
url: "/V4/Partner/New",
|
|
14444
|
+
method: "PUT",
|
|
14445
|
+
body: e.partnerInformation
|
|
14446
|
+
})
|
|
14447
|
+
}),
|
|
14443
14448
|
getV4ResellerByRouteResellerIdNicheAndNicheNameManufacturers: t.query({
|
|
14444
14449
|
query: (e) => ({
|
|
14445
14450
|
url: `/V4/Reseller/${e.routeResellerId}/Niche/${e.nicheName}/Manufacturers`
|
|
@@ -14500,14 +14505,14 @@ const emptySplitApi = createApi({
|
|
|
14500
14505
|
query: (e) => ({
|
|
14501
14506
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Opportunity`,
|
|
14502
14507
|
method: "PUT",
|
|
14503
|
-
body: e.
|
|
14508
|
+
body: e.createOpportunityInput
|
|
14504
14509
|
})
|
|
14505
14510
|
}),
|
|
14506
14511
|
putV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumber: t.mutation({
|
|
14507
14512
|
query: (e) => ({
|
|
14508
14513
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Opportunity/${e.bidNumber}`,
|
|
14509
14514
|
method: "PUT",
|
|
14510
|
-
body: e.
|
|
14515
|
+
body: e.renewOpportunityInput
|
|
14511
14516
|
})
|
|
14512
14517
|
}),
|
|
14513
14518
|
getV4ManufacturerByRouteManufacturerIdOpportunityAndBidNumber: t.query({
|
|
@@ -14867,7 +14872,7 @@ const emptySplitApi = createApi({
|
|
|
14867
14872
|
query: (e) => ({
|
|
14868
14873
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Product`,
|
|
14869
14874
|
method: "PUT",
|
|
14870
|
-
body: e.
|
|
14875
|
+
body: e.insertProductInput
|
|
14871
14876
|
})
|
|
14872
14877
|
}),
|
|
14873
14878
|
postV4ManufacturerByRouteManufacturerIdProductAndProductNumberFieldName: t.mutation({
|
|
@@ -14920,7 +14925,7 @@ const emptySplitApi = createApi({
|
|
|
14920
14925
|
query: (e) => ({
|
|
14921
14926
|
url: `/V4/Manufacturer/${e.routeManufacturerId}/Product/${e.randmarSku}/InstantRebate`,
|
|
14922
14927
|
method: "PUT",
|
|
14923
|
-
body: e.
|
|
14928
|
+
body: e.instantRebateInput
|
|
14924
14929
|
})
|
|
14925
14930
|
}),
|
|
14926
14931
|
putV4ManufacturerByRouteManufacturerIdProductAndRandmarSkuRequisition: t.mutation({
|
|
@@ -14998,18 +15003,12 @@ const emptySplitApi = createApi({
|
|
|
14998
15003
|
}),
|
|
14999
15004
|
getV4PartnerByRouteApplicationIdProducts: t.query({
|
|
15000
15005
|
query: (e) => ({
|
|
15001
|
-
url: `/V4/Partner/${e.routeApplicationId}/Products
|
|
15002
|
-
params: {
|
|
15003
|
-
routeResellerId: e.routeResellerId
|
|
15004
|
-
}
|
|
15006
|
+
url: `/V4/Partner/${e.routeApplicationId}/Products`
|
|
15005
15007
|
})
|
|
15006
15008
|
}),
|
|
15007
15009
|
getV4ManufacturerByRouteManufacturerIdProducts: t.query({
|
|
15008
15010
|
query: (e) => ({
|
|
15009
|
-
url: `/V4/Manufacturer/${e.routeManufacturerId}/Products
|
|
15010
|
-
params: {
|
|
15011
|
-
routeResellerId: e.routeResellerId
|
|
15012
|
-
}
|
|
15011
|
+
url: `/V4/Manufacturer/${e.routeManufacturerId}/Products`
|
|
15013
15012
|
})
|
|
15014
15013
|
}),
|
|
15015
15014
|
getRandmar: t.query({
|
|
@@ -58570,20 +58569,20 @@ function createDOMPurify() {
|
|
|
58570
58569
|
const sr = addToSet({}, ["audio", "video", "img", "source", "image", "track"]);
|
|
58571
58570
|
let ur = null;
|
|
58572
58571
|
const qt = addToSet({}, ["alt", "class", "for", "id", "label", "name", "pattern", "placeholder", "role", "summary", "title", "value", "style", "xmlns"]), Pr = "http://www.w3.org/1998/Math/MathML", gr = "http://www.w3.org/2000/svg", dr = "http://www.w3.org/1999/xhtml";
|
|
58573
|
-
let vr = dr, Qt = !1,
|
|
58572
|
+
let vr = dr, Qt = !1, Mr = null;
|
|
58574
58573
|
const yt = addToSet({}, [Pr, gr, dr], stringToString);
|
|
58575
58574
|
let Zt = addToSet({}, ["mi", "mo", "mn", "ms", "mtext"]), Jt = addToSet({}, ["annotation-xml"]);
|
|
58576
58575
|
const tr = addToSet({}, ["title", "style", "font", "a", "script"]);
|
|
58577
58576
|
let Wt = null;
|
|
58578
58577
|
const mr = ["application/xhtml+xml", "text/html"], Xt = "text/html";
|
|
58579
58578
|
let ar = null, Cr = null;
|
|
58580
|
-
const _r = n.createElement("form"),
|
|
58579
|
+
const _r = n.createElement("form"), Nr = function(rt) {
|
|
58581
58580
|
return rt instanceof RegExp || rt instanceof Function;
|
|
58582
|
-
},
|
|
58581
|
+
}, wr = function() {
|
|
58583
58582
|
let rt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
58584
58583
|
if (!(Cr && Cr === rt)) {
|
|
58585
58584
|
if ((!rt || typeof rt != "object") && (rt = {}), rt = clone(rt), Wt = // eslint-disable-next-line unicorn/prefer-includes
|
|
58586
|
-
mr.indexOf(rt.PARSER_MEDIA_TYPE) === -1 ? Xt : rt.PARSER_MEDIA_TYPE, ar = Wt === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(rt, "ALLOWED_TAGS") ? addToSet({}, rt.ALLOWED_TAGS, ar) : ze, Ye = objectHasOwnProperty(rt, "ALLOWED_ATTR") ? addToSet({}, rt.ALLOWED_ATTR, ar) : Ze,
|
|
58585
|
+
mr.indexOf(rt.PARSER_MEDIA_TYPE) === -1 ? Xt : rt.PARSER_MEDIA_TYPE, ar = Wt === "application/xhtml+xml" ? stringToString : stringToLowerCase, Ge = objectHasOwnProperty(rt, "ALLOWED_TAGS") ? addToSet({}, rt.ALLOWED_TAGS, ar) : ze, Ye = objectHasOwnProperty(rt, "ALLOWED_ATTR") ? addToSet({}, rt.ALLOWED_ATTR, ar) : Ze, Mr = objectHasOwnProperty(rt, "ALLOWED_NAMESPACES") ? addToSet({}, rt.ALLOWED_NAMESPACES, stringToString) : yt, ur = objectHasOwnProperty(rt, "ADD_URI_SAFE_ATTR") ? addToSet(clone(qt), rt.ADD_URI_SAFE_ATTR, ar) : qt, Yt = objectHasOwnProperty(rt, "ADD_DATA_URI_TAGS") ? addToSet(clone(sr), rt.ADD_DATA_URI_TAGS, ar) : sr, mt = objectHasOwnProperty(rt, "FORBID_CONTENTS") ? addToSet({}, rt.FORBID_CONTENTS, ar) : zt, tt = objectHasOwnProperty(rt, "FORBID_TAGS") ? addToSet({}, rt.FORBID_TAGS, ar) : clone({}), Xe = objectHasOwnProperty(rt, "FORBID_ATTR") ? addToSet({}, rt.FORBID_ATTR, ar) : clone({}), ft = objectHasOwnProperty(rt, "USE_PROFILES") ? rt.USE_PROFILES : !1, at = rt.ALLOW_ARIA_ATTR !== !1, et = rt.ALLOW_DATA_ATTR !== !1, ot = rt.ALLOW_UNKNOWN_PROTOCOLS || !1, it = rt.ALLOW_SELF_CLOSE_IN_ATTR !== !1, He = rt.SAFE_FOR_TEMPLATES || !1, Ct = rt.SAFE_FOR_XML !== !1, Qe = rt.WHOLE_DOCUMENT || !1, $t = rt.RETURN_DOM || !1, Ut = rt.RETURN_DOM_FRAGMENT || !1, Ft = rt.RETURN_TRUSTED_TYPE || !1, Mt = rt.FORCE_BODY || !1, Ke = rt.SANITIZE_DOM !== !1, nt = rt.SANITIZE_NAMED_PROPS || !1, ct = rt.KEEP_CONTENT !== !1, dt = rt.IN_PLACE || !1, qe = rt.ALLOWED_URI_REGEXP || IS_ALLOWED_URI, vr = rt.NAMESPACE || dr, Zt = rt.MATHML_TEXT_INTEGRATION_POINTS || Zt, Jt = rt.HTML_INTEGRATION_POINTS || Jt, Je = rt.CUSTOM_ELEMENT_HANDLING || {}, rt.CUSTOM_ELEMENT_HANDLING && Nr(rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck) && (Je.tagNameCheck = rt.CUSTOM_ELEMENT_HANDLING.tagNameCheck), rt.CUSTOM_ELEMENT_HANDLING && Nr(rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck) && (Je.attributeNameCheck = rt.CUSTOM_ELEMENT_HANDLING.attributeNameCheck), rt.CUSTOM_ELEMENT_HANDLING && typeof rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements == "boolean" && (Je.allowCustomizedBuiltInElements = rt.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements), He && (et = !1), Ut && ($t = !0), ft && (Ge = addToSet({}, text$1), Ye = [], ft.html === !0 && (addToSet(Ge, html$1), addToSet(Ye, html)), ft.svg === !0 && (addToSet(Ge, svg$1), addToSet(Ye, svg), addToSet(Ye, xml)), ft.svgFilters === !0 && (addToSet(Ge, svgFilters), addToSet(Ye, svg), addToSet(Ye, xml)), ft.mathMl === !0 && (addToSet(Ge, mathMl$1), addToSet(Ye, mathMl), addToSet(Ye, xml))), rt.ADD_TAGS && (Ge === ze && (Ge = clone(Ge)), addToSet(Ge, rt.ADD_TAGS, ar)), rt.ADD_ATTR && (Ye === Ze && (Ye = clone(Ye)), addToSet(Ye, rt.ADD_ATTR, ar)), rt.ADD_URI_SAFE_ATTR && addToSet(ur, rt.ADD_URI_SAFE_ATTR, ar), rt.FORBID_CONTENTS && (mt === zt && (mt = clone(mt)), addToSet(mt, rt.FORBID_CONTENTS, ar)), ct && (Ge["#text"] = !0), Qe && addToSet(Ge, ["html", "head", "body"]), Ge.table && (addToSet(Ge, ["tbody"]), delete tt.tbody), rt.TRUSTED_TYPES_POLICY) {
|
|
58587
58586
|
if (typeof rt.TRUSTED_TYPES_POLICY.createHTML != "function")
|
|
58588
58587
|
throw typeErrorCreate('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');
|
|
58589
58588
|
if (typeof rt.TRUSTED_TYPES_POLICY.createScriptURL != "function")
|
|
@@ -58600,8 +58599,8 @@ function createDOMPurify() {
|
|
|
58600
58599
|
tagName: "template"
|
|
58601
58600
|
});
|
|
58602
58601
|
const Ht = stringToLowerCase(rt.tagName), cr = stringToLowerCase(Rt.tagName);
|
|
58603
|
-
return
|
|
58604
|
-
},
|
|
58602
|
+
return Mr[rt.namespaceURI] ? rt.namespaceURI === gr ? Rt.namespaceURI === dr ? Ht === "svg" : Rt.namespaceURI === Pr ? Ht === "svg" && (cr === "annotation-xml" || Zt[cr]) : !!Fr[Ht] : rt.namespaceURI === Pr ? Rt.namespaceURI === dr ? Ht === "math" : Rt.namespaceURI === gr ? Ht === "math" && Jt[cr] : !!Dr[Ht] : rt.namespaceURI === dr ? Rt.namespaceURI === gr && !Jt[cr] || Rt.namespaceURI === Pr && !Zt[cr] ? !1 : !Dr[Ht] && (tr[Ht] || !Fr[Ht]) : !!(Wt === "application/xhtml+xml" && Mr[rt.namespaceURI]) : !1;
|
|
58603
|
+
}, Tr = function(rt) {
|
|
58605
58604
|
arrayPush(e.removed, {
|
|
58606
58605
|
element: rt
|
|
58607
58606
|
});
|
|
@@ -58625,7 +58624,7 @@ function createDOMPurify() {
|
|
|
58625
58624
|
if (Rt.removeAttribute(rt), rt === "is")
|
|
58626
58625
|
if ($t || Ut)
|
|
58627
58626
|
try {
|
|
58628
|
-
|
|
58627
|
+
Tr(Rt);
|
|
58629
58628
|
} catch {
|
|
58630
58629
|
}
|
|
58631
58630
|
else
|
|
@@ -58678,13 +58677,13 @@ function createDOMPurify() {
|
|
|
58678
58677
|
const nn = function(rt) {
|
|
58679
58678
|
let Rt = null;
|
|
58680
58679
|
if (Vr(se.beforeSanitizeElements, rt, null), zr(rt))
|
|
58681
|
-
return
|
|
58680
|
+
return Tr(rt), !0;
|
|
58682
58681
|
const Ht = ar(rt.nodeName);
|
|
58683
58682
|
if (Vr(se.uponSanitizeElement, rt, {
|
|
58684
58683
|
tagName: Ht,
|
|
58685
58684
|
allowedTags: Ge
|
|
58686
58685
|
}), Ct && rt.hasChildNodes() && !Qr(rt.firstElementChild) && regExpTest(/<[/\w!]/g, rt.innerHTML) && regExpTest(/<[/\w!]/g, rt.textContent) || rt.nodeType === NODE_TYPE.progressingInstruction || Ct && rt.nodeType === NODE_TYPE.comment && regExpTest(/<[/\w]/g, rt.data))
|
|
58687
|
-
return
|
|
58686
|
+
return Tr(rt), !0;
|
|
58688
58687
|
if (!Ge[Ht] || tt[Ht]) {
|
|
58689
58688
|
if (!tt[Ht] && on(Ht) && (Je.tagNameCheck instanceof RegExp && regExpTest(Je.tagNameCheck, Ht) || Je.tagNameCheck instanceof Function && Je.tagNameCheck(Ht)))
|
|
58690
58689
|
return !1;
|
|
@@ -58698,9 +58697,9 @@ function createDOMPurify() {
|
|
|
58698
58697
|
}
|
|
58699
58698
|
}
|
|
58700
58699
|
}
|
|
58701
|
-
return
|
|
58700
|
+
return Tr(rt), !0;
|
|
58702
58701
|
}
|
|
58703
|
-
return rt instanceof b && !jr(rt) || (Ht === "noscript" || Ht === "noembed" || Ht === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, rt.innerHTML) ? (
|
|
58702
|
+
return rt instanceof b && !jr(rt) || (Ht === "noscript" || Ht === "noembed" || Ht === "noframes") && regExpTest(/<\/no(script|embed|frames)/i, rt.innerHTML) ? (Tr(rt), !0) : (He && rt.nodeType === NODE_TYPE.text && (Rt = rt.textContent, arrayForEach([Ae, Ve, Ne], (cr) => {
|
|
58704
58703
|
Rt = stringReplace(Rt, cr, " ");
|
|
58705
58704
|
}), rt.textContent !== Rt && (arrayPush(e.removed, {
|
|
58706
58705
|
element: rt.cloneNode()
|
|
@@ -58791,7 +58790,7 @@ function createDOMPurify() {
|
|
|
58791
58790
|
}
|
|
58792
58791
|
if (Vt !== en)
|
|
58793
58792
|
try {
|
|
58794
|
-
Sr ? rt.setAttributeNS(Sr, pr, Vt) : rt.setAttribute(pr, Vt), zr(rt) ?
|
|
58793
|
+
Sr ? rt.setAttributeNS(Sr, pr, Vt) : rt.setAttribute(pr, Vt), zr(rt) ? Tr(rt) : arrayPop(e.removed);
|
|
58795
58794
|
} catch {
|
|
58796
58795
|
Br(pr, rt);
|
|
58797
58796
|
}
|
|
@@ -58814,7 +58813,7 @@ function createDOMPurify() {
|
|
|
58814
58813
|
throw typeErrorCreate("toString is not a function");
|
|
58815
58814
|
if (!e.isSupported)
|
|
58816
58815
|
return Kt;
|
|
58817
|
-
if (pt ||
|
|
58816
|
+
if (pt || wr(rt), e.removed = [], typeof Kt == "string" && (dt = !1), dt) {
|
|
58818
58817
|
if (Kt.nodeName) {
|
|
58819
58818
|
const Er = ar(Kt.nodeName);
|
|
58820
58819
|
if (!Ge[Er] || tt[Er])
|
|
@@ -58829,7 +58828,7 @@ function createDOMPurify() {
|
|
|
58829
58828
|
if (Rt = Jr(Kt), !Rt)
|
|
58830
58829
|
return $t ? null : Ft ? F : "";
|
|
58831
58830
|
}
|
|
58832
|
-
Rt && Mt &&
|
|
58831
|
+
Rt && Mt && Tr(Rt.firstChild);
|
|
58833
58832
|
const pr = Xr(dt ? Kt : Rt);
|
|
58834
58833
|
for (; cr = pr.nextNode(); )
|
|
58835
58834
|
nn(cr), Zr(cr), cr.content instanceof d && sn(cr.content);
|
|
@@ -58850,11 +58849,11 @@ function createDOMPurify() {
|
|
|
58850
58849
|
}), Q && Ft ? Q.createHTML(Sr) : Sr;
|
|
58851
58850
|
}, e.setConfig = function() {
|
|
58852
58851
|
let Kt = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
58853
|
-
|
|
58852
|
+
wr(Kt), pt = !0;
|
|
58854
58853
|
}, e.clearConfig = function() {
|
|
58855
58854
|
Cr = null, pt = !1;
|
|
58856
58855
|
}, e.isValidAttribute = function(Kt, rt, Rt) {
|
|
58857
|
-
Cr ||
|
|
58856
|
+
Cr || wr({});
|
|
58858
58857
|
const Ht = ar(Kt), cr = ar(rt);
|
|
58859
58858
|
return an(Ht, cr, Rt);
|
|
58860
58859
|
}, e.addHook = function(Kt, rt) {
|
|
@@ -59441,11 +59440,11 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
59441
59440
|
- **Crucially, do not use any placeholders, brackets, or instructions for the user to fill in.** Use the context provided to craft the final text.
|
|
59442
59441
|
- Keep it to 1-2 concise, engaging sentences.
|
|
59443
59442
|
- Output only the plain text of the message itself.
|
|
59444
|
-
`,
|
|
59445
|
-
if (
|
|
59443
|
+
`, Nr = await q(_r);
|
|
59444
|
+
if (Nr) {
|
|
59446
59445
|
const Fr = (Wt = (await F({ routeApplicationId: t, partnerId: "2" })).data) == null ? void 0 : Wt.ConversationId;
|
|
59447
59446
|
if (Fr)
|
|
59448
|
-
await S(), mt(Fr,
|
|
59447
|
+
await S(), mt(Fr, Nr);
|
|
59449
59448
|
else
|
|
59450
59449
|
throw new Error("Failed to retrieve conversation ID after creation.");
|
|
59451
59450
|
}
|
|
@@ -59464,7 +59463,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
59464
59463
|
Ue && C({ routeApplicationId: t, partnerId: Ue[0] == t ? Ue[1] : Ue[0] }).then(() => {
|
|
59465
59464
|
Fe("approved");
|
|
59466
59465
|
});
|
|
59467
|
-
}, Qt = Ke(),
|
|
59466
|
+
}, Qt = Ke(), Mr = Ye.filter((yt) => yt.pending).length;
|
|
59468
59467
|
return /* @__PURE__ */ jsxs("div", { className: cn("flex overflow-hidden", l), children: [
|
|
59469
59468
|
o !== !0 && /* @__PURE__ */ jsx(Fragment$1, { children: /* @__PURE__ */ jsxs("div", { className: "w-[260px] p-4 pt-3 flex flex-col border-r", children: [
|
|
59470
59469
|
/* @__PURE__ */ jsx("div", { className: "p-4 font-semibold border-b", children: "Communications" }),
|
|
@@ -59485,7 +59484,7 @@ const fetchGeminiResponse = async (t, e, n, o, l = 3) => {
|
|
|
59485
59484
|
/* @__PURE__ */ jsx(TabsTrigger, { value: "approved", className: "text-xs col-span-3", children: "Approved" }),
|
|
59486
59485
|
/* @__PURE__ */ jsxs(TabsTrigger, { value: "pending", className: "text-xs col-span-3", children: [
|
|
59487
59486
|
"Pending ",
|
|
59488
|
-
|
|
59487
|
+
Mr > 0 && `(${Mr})`
|
|
59489
59488
|
] })
|
|
59490
59489
|
] }) })
|
|
59491
59490
|
] }),
|
|
@@ -60305,7 +60304,7 @@ function createFormControl(t = {}) {
|
|
|
60305
60304
|
if (!qt && gr && E.state.next({ ...n }), e.resolver) {
|
|
60306
60305
|
const { errors: Qt } = await te([st]);
|
|
60307
60306
|
if (ft(ur), ct) {
|
|
60308
|
-
const
|
|
60307
|
+
const Mr = schemaErrorLookup(n.errors, o, st), yt = schemaErrorLookup(Qt, o, Mr.name || st);
|
|
60309
60308
|
Yt = yt.error, st = yt.name, sr = isEmptyObject$1(Qt);
|
|
60310
60309
|
}
|
|
60311
60310
|
} else
|
|
@@ -67712,9 +67711,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
67712
67711
|
}, qt.parseVarId = function(O, ae) {
|
|
67713
67712
|
O.id = this.parseBindingAtom(), this.checkLValPattern(O.id, ae === "var" ? nt : st, !1);
|
|
67714
67713
|
};
|
|
67715
|
-
var vr = 1, Qt = 2,
|
|
67714
|
+
var vr = 1, Qt = 2, Mr = 4;
|
|
67716
67715
|
qt.parseFunction = function(O, ae, Oe, je, We) {
|
|
67717
|
-
this.initFunction(O), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !je) && (this.type === j.star && ae & Qt && this.unexpected(), O.generator = this.eat(j.star)), this.options.ecmaVersion >= 8 && (O.async = !!je), ae & vr && (O.id = ae &
|
|
67716
|
+
this.initFunction(O), (this.options.ecmaVersion >= 9 || this.options.ecmaVersion >= 6 && !je) && (this.type === j.star && ae & Qt && this.unexpected(), O.generator = this.eat(j.star)), this.options.ecmaVersion >= 8 && (O.async = !!je), ae & vr && (O.id = ae & Mr && this.type !== j.name ? null : this.parseIdent(), O.id && !(ae & Qt) && this.checkLValSimple(O.id, this.strict || O.generator || O.async ? this.treatFunctionsAsVar ? nt : st : ct));
|
|
67718
67717
|
var lt = this.yieldPos, ut = this.awaitPos, It = this.awaitIdentPos;
|
|
67719
67718
|
return this.yieldPos = 0, this.awaitPos = 0, this.awaitIdentPos = 0, this.enterScope(Ft(O.async, O.generator)), ae & vr || (O.id = this.type === j.name ? this.parseIdent() : null), this.parseFunctionParams(O), this.parseFunctionBody(O, Oe, !1, We), this.yieldPos = lt, this.awaitPos = ut, this.awaitIdentPos = It, this.finishNode(O, ae & vr ? "FunctionDeclaration" : "FunctionExpression");
|
|
67720
67719
|
}, qt.parseFunctionParams = function(O) {
|
|
@@ -67823,7 +67822,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
67823
67822
|
var O;
|
|
67824
67823
|
if (this.type === j._function || (O = this.isAsyncFunction())) {
|
|
67825
67824
|
var ae = this.startNode();
|
|
67826
|
-
return this.next(), O && this.next(), this.parseFunction(ae, vr |
|
|
67825
|
+
return this.next(), O && this.next(), this.parseFunction(ae, vr | Mr, !1, O);
|
|
67827
67826
|
} else if (this.type === j._class) {
|
|
67828
67827
|
var Oe = this.startNode();
|
|
67829
67828
|
return this.parseClass(Oe, "nullableID");
|
|
@@ -68522,26 +68521,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68522
68521
|
var ae = this.startNode();
|
|
68523
68522
|
return this.next(), ae.argument = this.parseMaybeUnary(null, !0, !1, O), this.finishNode(ae, "AwaitExpression");
|
|
68524
68523
|
};
|
|
68525
|
-
var
|
|
68526
|
-
|
|
68524
|
+
var Nr = mt.prototype;
|
|
68525
|
+
Nr.raise = function(O, ae) {
|
|
68527
68526
|
var Oe = Ze(this.input, O);
|
|
68528
68527
|
ae += " (" + Oe.line + ":" + Oe.column + ")";
|
|
68529
68528
|
var je = new SyntaxError(ae);
|
|
68530
68529
|
throw je.pos = O, je.loc = Oe, je.raisedAt = this.pos, je;
|
|
68531
|
-
},
|
|
68530
|
+
}, Nr.raiseRecoverable = Nr.raise, Nr.curPosition = function() {
|
|
68532
68531
|
if (this.options.locations)
|
|
68533
68532
|
return new ze(this.curLine, this.pos - this.lineStart);
|
|
68534
68533
|
};
|
|
68535
|
-
var
|
|
68534
|
+
var wr = mt.prototype, Fr = function(ae) {
|
|
68536
68535
|
this.flags = ae, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
|
|
68537
68536
|
};
|
|
68538
|
-
|
|
68537
|
+
wr.enterScope = function(O) {
|
|
68539
68538
|
this.scopeStack.push(new Fr(O));
|
|
68540
|
-
},
|
|
68539
|
+
}, wr.exitScope = function() {
|
|
68541
68540
|
this.scopeStack.pop();
|
|
68542
|
-
},
|
|
68541
|
+
}, wr.treatFunctionsAsVarInScope = function(O) {
|
|
68543
68542
|
return O.flags & ot || !this.inModule && O.flags & et;
|
|
68544
|
-
},
|
|
68543
|
+
}, wr.declareName = function(O, ae, Oe) {
|
|
68545
68544
|
var je = !1;
|
|
68546
68545
|
if (ae === st) {
|
|
68547
68546
|
var We = this.currentScope();
|
|
@@ -68563,17 +68562,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68563
68562
|
break;
|
|
68564
68563
|
}
|
|
68565
68564
|
je && this.raiseRecoverable(Oe, "Identifier '" + O + "' has already been declared");
|
|
68566
|
-
},
|
|
68565
|
+
}, wr.checkLocalExport = function(O) {
|
|
68567
68566
|
this.scopeStack[0].lexical.indexOf(O.name) === -1 && this.scopeStack[0].var.indexOf(O.name) === -1 && (this.undefinedExports[O.name] = O);
|
|
68568
|
-
},
|
|
68567
|
+
}, wr.currentScope = function() {
|
|
68569
68568
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
68570
|
-
},
|
|
68569
|
+
}, wr.currentVarScope = function() {
|
|
68571
68570
|
for (var O = this.scopeStack.length - 1; ; O--) {
|
|
68572
68571
|
var ae = this.scopeStack[O];
|
|
68573
68572
|
if (ae.flags & Ut)
|
|
68574
68573
|
return ae;
|
|
68575
68574
|
}
|
|
68576
|
-
},
|
|
68575
|
+
}, wr.currentThisScope = function() {
|
|
68577
68576
|
for (var O = this.scopeStack.length - 1; ; O--) {
|
|
68578
68577
|
var ae = this.scopeStack[O];
|
|
68579
68578
|
if (ae.flags & Ut && !(ae.flags & Ct))
|
|
@@ -68588,13 +68587,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68588
68587
|
}, jr.startNodeAt = function(O, ae) {
|
|
68589
68588
|
return new Dr(this, O, ae);
|
|
68590
68589
|
};
|
|
68591
|
-
function
|
|
68590
|
+
function Tr(O, ae, Oe, je) {
|
|
68592
68591
|
return O.type = ae, O.end = Oe, this.options.locations && (O.loc.end = je), this.options.ranges && (O.range[1] = Oe), O;
|
|
68593
68592
|
}
|
|
68594
68593
|
jr.finishNode = function(O, ae) {
|
|
68595
|
-
return
|
|
68594
|
+
return Tr.call(this, O, ae, this.lastTokEnd, this.lastTokEndLoc);
|
|
68596
68595
|
}, jr.finishNodeAt = function(O, ae, Oe, je) {
|
|
68597
|
-
return
|
|
68596
|
+
return Tr.call(this, O, ae, Oe, je);
|
|
68598
68597
|
}, jr.copyNode = function(O) {
|
|
68599
68598
|
var ae = new Dr(this, O.start, this.startLoc);
|
|
68600
68599
|
for (var Oe in O)
|
|
@@ -68922,7 +68921,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68922
68921
|
}
|
|
68923
68922
|
return !1;
|
|
68924
68923
|
};
|
|
68925
|
-
var
|
|
68924
|
+
var wn = 0, Or = 1, Ar = 2;
|
|
68926
68925
|
Vt.regexp_eatCharacterClassEscape = function(O) {
|
|
68927
68926
|
var ae = O.current();
|
|
68928
68927
|
if (Ln(ae))
|
|
@@ -68935,7 +68934,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68935
68934
|
return Oe && je === Ar && O.raise("Invalid property name"), je;
|
|
68936
68935
|
O.raise("Invalid property name");
|
|
68937
68936
|
}
|
|
68938
|
-
return
|
|
68937
|
+
return wn;
|
|
68939
68938
|
};
|
|
68940
68939
|
function Ln(O) {
|
|
68941
68940
|
return O === 100 || O === 68 || O === 115 || O === 83 || O === 119 || O === 87;
|
|
@@ -68953,7 +68952,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68953
68952
|
var We = O.lastStringValue;
|
|
68954
68953
|
return this.regexp_validateUnicodePropertyNameOrValue(O, We);
|
|
68955
68954
|
}
|
|
68956
|
-
return
|
|
68955
|
+
return wn;
|
|
68957
68956
|
}, Vt.regexp_validateUnicodePropertyNameAndValue = function(O, ae, Oe) {
|
|
68958
68957
|
Fe(O.unicodeProperties.nonBinary, ae) || O.raise("Invalid property name"), O.unicodeProperties.nonBinary[ae].test(Oe) || O.raise("Invalid property value");
|
|
68959
68958
|
}, Vt.regexp_validateUnicodePropertyNameOrValue = function(O, ae) {
|
|
@@ -68964,11 +68963,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68964
68963
|
O.raise("Invalid property name");
|
|
68965
68964
|
}, Vt.regexp_eatUnicodePropertyName = function(O) {
|
|
68966
68965
|
var ae = 0;
|
|
68967
|
-
for (O.lastStringValue = "";
|
|
68966
|
+
for (O.lastStringValue = ""; Tn(ae = O.current()); )
|
|
68968
68967
|
O.lastStringValue += qe(ae), O.advance();
|
|
68969
68968
|
return O.lastStringValue !== "";
|
|
68970
68969
|
};
|
|
68971
|
-
function
|
|
68970
|
+
function Tn(O) {
|
|
68972
68971
|
return Cn(O) || O === 95;
|
|
68973
68972
|
}
|
|
68974
68973
|
Vt.regexp_eatUnicodePropertyValue = function(O) {
|
|
@@ -68978,7 +68977,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68978
68977
|
return O.lastStringValue !== "";
|
|
68979
68978
|
};
|
|
68980
68979
|
function Fn(O) {
|
|
68981
|
-
return
|
|
68980
|
+
return Tn(O) || un(O);
|
|
68982
68981
|
}
|
|
68983
68982
|
Vt.regexp_eatLoneUnicodePropertyNameOrValue = function(O) {
|
|
68984
68983
|
return this.regexp_eatUnicodePropertyValue(O);
|
|
@@ -69483,13 +69482,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69483
69482
|
}
|
|
69484
69483
|
return ae += this.input.slice(Oe, this.pos++), this.finishToken(j.string, ae);
|
|
69485
69484
|
};
|
|
69486
|
-
var
|
|
69485
|
+
var Mn = {};
|
|
69487
69486
|
ir.tryReadTemplateToken = function() {
|
|
69488
69487
|
this.inTemplateElement = !0;
|
|
69489
69488
|
try {
|
|
69490
69489
|
this.readTmplToken();
|
|
69491
69490
|
} catch (O) {
|
|
69492
|
-
if (O ===
|
|
69491
|
+
if (O === Mn)
|
|
69493
69492
|
this.readInvalidTemplateToken();
|
|
69494
69493
|
else
|
|
69495
69494
|
throw O;
|
|
@@ -69497,7 +69496,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69497
69496
|
this.inTemplateElement = !1;
|
|
69498
69497
|
}, ir.invalidStringToken = function(O, ae) {
|
|
69499
69498
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
69500
|
-
throw
|
|
69499
|
+
throw Mn;
|
|
69501
69500
|
this.raise(O, ae);
|
|
69502
69501
|
}, ir.readTmplToken = function() {
|
|
69503
69502
|
for (var O = "", ae = this.pos; ; ) {
|
|
@@ -69606,10 +69605,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69606
69605
|
var O = this.readWord1(), ae = j.name;
|
|
69607
69606
|
return this.keywords.test(O) && (ae = Q[O]), this.finishToken(ae, O);
|
|
69608
69607
|
};
|
|
69609
|
-
var
|
|
69608
|
+
var Nn = "8.12.1";
|
|
69610
69609
|
mt.acorn = {
|
|
69611
69610
|
Parser: mt,
|
|
69612
|
-
version:
|
|
69611
|
+
version: Nn,
|
|
69613
69612
|
defaultOptions: Je,
|
|
69614
69613
|
Position: ze,
|
|
69615
69614
|
SourceLocation: Ye,
|
|
@@ -69637,7 +69636,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69637
69636
|
function Wn(O, ae) {
|
|
69638
69637
|
return mt.tokenizer(O, ae);
|
|
69639
69638
|
}
|
|
69640
|
-
n.Node = Dr, n.Parser = mt, n.Position = ze, n.SourceLocation = Ye, n.TokContext = tr, n.Token = dn, n.TokenType = I, n.defaultOptions = Je, n.getLineInfo = Ze, n.isIdentifierChar = M, n.isIdentifierStart = A, n.isNewLine = oe, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ne, n.nonASCIIwhitespace = se, n.parse = zn, n.parseExpressionAt = Gn, n.tokContexts = Wt, n.tokTypes = j, n.tokenizer = Wn, n.version =
|
|
69639
|
+
n.Node = Dr, n.Parser = mt, n.Position = ze, n.SourceLocation = Ye, n.TokContext = tr, n.Token = dn, n.TokenType = I, n.defaultOptions = Je, n.getLineInfo = Ze, n.isIdentifierChar = M, n.isIdentifierStart = A, n.isNewLine = oe, n.keywordTypes = Q, n.lineBreak = te, n.lineBreakG = ne, n.nonASCIIwhitespace = se, n.parse = zn, n.parseExpressionAt = Gn, n.tokContexts = Wt, n.tokTypes = j, n.tokenizer = Wn, n.version = Nn;
|
|
69641
69640
|
});
|
|
69642
69641
|
}), require_acorn_jsx = __commonJS((t, e) => {
|
|
69643
69642
|
var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
|
|
@@ -90841,21 +90840,35 @@ function ReceiptsTable({
|
|
|
90841
90840
|
{
|
|
90842
90841
|
accessorKey: "Location",
|
|
90843
90842
|
header: "Location",
|
|
90844
|
-
cell: ({ row: d }) =>
|
|
90843
|
+
cell: ({ row: d }) => d.original.Location ?? "—",
|
|
90845
90844
|
enableSorting: !0,
|
|
90846
90845
|
enableFiltering: !0
|
|
90847
90846
|
},
|
|
90848
90847
|
{
|
|
90849
90848
|
accessorKey: "ReceiptDate",
|
|
90850
|
-
header: "Date",
|
|
90849
|
+
header: "Receipt Date",
|
|
90851
90850
|
cell: ({ row: d }) => formatYYYYMMDDIntToDateString(d.original.ReceiptDate),
|
|
90852
90851
|
enableSorting: !0,
|
|
90853
90852
|
enableFiltering: !0
|
|
90854
90853
|
},
|
|
90854
|
+
{
|
|
90855
|
+
accessorKey: "ReceiptNumber",
|
|
90856
|
+
header: "Receipt Number",
|
|
90857
|
+
cell: ({ row: d }) => d.original.ReceiptNumber ?? "—",
|
|
90858
|
+
enableSorting: !0,
|
|
90859
|
+
enableFiltering: !0
|
|
90860
|
+
},
|
|
90855
90861
|
{
|
|
90856
90862
|
accessorKey: "Quantity",
|
|
90857
90863
|
header: "Quantity",
|
|
90858
|
-
cell: ({ row: d }) => d.original.Quantity ?? "
|
|
90864
|
+
cell: ({ row: d }) => d.original.Quantity ?? "—",
|
|
90865
|
+
enableSorting: !0,
|
|
90866
|
+
enableFiltering: !0
|
|
90867
|
+
},
|
|
90868
|
+
{
|
|
90869
|
+
accessorKey: "UnitPrice",
|
|
90870
|
+
header: "Unit Price",
|
|
90871
|
+
cell: ({ row: d }) => d.original.UnitPrice ? formatMoney(d.original.UnitPrice) : "—",
|
|
90859
90872
|
enableSorting: !0,
|
|
90860
90873
|
enableFiltering: !0
|
|
90861
90874
|
}
|
|
@@ -90869,7 +90882,7 @@ function ReceiptsTable({
|
|
|
90869
90882
|
);
|
|
90870
90883
|
d.Location = f;
|
|
90871
90884
|
const g = Array.from(
|
|
90872
|
-
new Set(t.map((b) => formatYYYYMMDDIntToDateString(b.ReceiptDate)).filter((b) => b !== "
|
|
90885
|
+
new Set(t.map((b) => formatYYYYMMDDIntToDateString(b.ReceiptDate)).filter((b) => b !== "—" && b !== "Invalid Date"))
|
|
90873
90886
|
).sort((b, S) => new Date(S).getTime() - new Date(b).getTime());
|
|
90874
90887
|
d.ReceiptDate = g;
|
|
90875
90888
|
}
|
|
@@ -91015,120 +91028,6 @@ function ReturnsTable({
|
|
|
91015
91028
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(DataTable, { columns: o, data: d, uniqueValues: l }) })
|
|
91016
91029
|
] });
|
|
91017
91030
|
}
|
|
91018
|
-
function InvoicesTable({
|
|
91019
|
-
applicationId: t,
|
|
91020
|
-
invoices: e = null,
|
|
91021
|
-
loading: n = !1
|
|
91022
|
-
}) {
|
|
91023
|
-
const o = useMemo(
|
|
91024
|
-
() => [
|
|
91025
|
-
{
|
|
91026
|
-
accessorKey: "InvoiceNumber",
|
|
91027
|
-
header: "Number",
|
|
91028
|
-
cell: ({ row: f }) => f.original.InvoiceNumber ? /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
91029
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Link, { to: `/${t}/Document/${f.original.InvoiceNumber}`, className: "font-medium text-primary hover:underline", children: f.original.InvoiceNumber }) }),
|
|
91030
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
91031
|
-
"View details for invoice ",
|
|
91032
|
-
f.original.InvoiceNumber
|
|
91033
|
-
] }) })
|
|
91034
|
-
] }) }) : "—",
|
|
91035
|
-
enableSorting: !0,
|
|
91036
|
-
enableFiltering: !0
|
|
91037
|
-
},
|
|
91038
|
-
{
|
|
91039
|
-
accessorKey: "InvoiceDate",
|
|
91040
|
-
header: "Date",
|
|
91041
|
-
cell: ({ row: f }) => formatYYYYMMDDIntToDateString(f.original.InvoiceDate),
|
|
91042
|
-
enableSorting: !0,
|
|
91043
|
-
enableFiltering: !0
|
|
91044
|
-
},
|
|
91045
|
-
{
|
|
91046
|
-
accessorKey: "OrderNumber",
|
|
91047
|
-
header: "Order Number",
|
|
91048
|
-
cell: ({ row: f }) => f.original.OrderNumber ? /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
91049
|
-
/* @__PURE__ */ jsx(TooltipTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Link, { to: `/${t}/GeneralDocument/${f.original.OrderNumber}`, className: "font-medium text-primary hover:underline", children: f.original.OrderNumber }) }),
|
|
91050
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
91051
|
-
"View details for order ",
|
|
91052
|
-
f.original.OrderNumber
|
|
91053
|
-
] }) })
|
|
91054
|
-
] }) }) : "—",
|
|
91055
|
-
enableSorting: !0,
|
|
91056
|
-
enableFiltering: !0
|
|
91057
|
-
},
|
|
91058
|
-
{
|
|
91059
|
-
accessorKey: "PONumber",
|
|
91060
|
-
header: "PO Number",
|
|
91061
|
-
cell: ({ row: f }) => f.original.PONumber && f.original.PONumber.trim().length > 0 ? f.original.PONumber : "—",
|
|
91062
|
-
enableSorting: !0,
|
|
91063
|
-
enableFiltering: !0
|
|
91064
|
-
},
|
|
91065
|
-
{
|
|
91066
|
-
accessorKey: "ShipToName",
|
|
91067
|
-
header: "Ship To Name",
|
|
91068
|
-
cell: ({ row: f }) => f.original.ShipToName ?? "—",
|
|
91069
|
-
enableSorting: !0,
|
|
91070
|
-
enableFiltering: !0
|
|
91071
|
-
},
|
|
91072
|
-
{
|
|
91073
|
-
accessorKey: "QuantityOrdered",
|
|
91074
|
-
header: "Quantity Ordered",
|
|
91075
|
-
cell: ({ row: f }) => f.original.QuantityOrdered ?? 0,
|
|
91076
|
-
enableSorting: !0,
|
|
91077
|
-
enableFiltering: !0
|
|
91078
|
-
},
|
|
91079
|
-
{
|
|
91080
|
-
accessorKey: "UnitPrice",
|
|
91081
|
-
header: "Unit Price",
|
|
91082
|
-
cell: ({ row: f }) => formatMoney(f.original.UnitPrice ?? 0),
|
|
91083
|
-
enableSorting: !0,
|
|
91084
|
-
enableFiltering: !0
|
|
91085
|
-
},
|
|
91086
|
-
{
|
|
91087
|
-
accessorKey: "Location",
|
|
91088
|
-
header: "Location",
|
|
91089
|
-
cell: ({ row: f }) => f.original.Location ?? "—",
|
|
91090
|
-
enableSorting: !0,
|
|
91091
|
-
enableFiltering: !0
|
|
91092
|
-
}
|
|
91093
|
-
],
|
|
91094
|
-
[t]
|
|
91095
|
-
), l = useMemo(() => {
|
|
91096
|
-
const f = {};
|
|
91097
|
-
if (e) {
|
|
91098
|
-
const g = Array.from(
|
|
91099
|
-
new Set(e.map((E) => E.ShipToName).filter((E) => E != null))
|
|
91100
|
-
);
|
|
91101
|
-
f.ShipToName = g;
|
|
91102
|
-
const b = Array.from(
|
|
91103
|
-
new Set(e.map((E) => E.InvoiceNumber).filter((E) => E != null))
|
|
91104
|
-
);
|
|
91105
|
-
f.InvoiceNumber = b;
|
|
91106
|
-
const S = Array.from(
|
|
91107
|
-
new Set(e.map((E) => E.OrderNumber).filter((E) => E != null))
|
|
91108
|
-
);
|
|
91109
|
-
f.OrderNumber = S;
|
|
91110
|
-
const _ = Array.from(
|
|
91111
|
-
new Set(e.map((E) => E.PONumber).filter((E) => E != null))
|
|
91112
|
-
);
|
|
91113
|
-
f.PONumber = _;
|
|
91114
|
-
const C = Array.from(
|
|
91115
|
-
new Set(e.map((E) => E.Location).filter((E) => E != null))
|
|
91116
|
-
);
|
|
91117
|
-
f.Location = C;
|
|
91118
|
-
}
|
|
91119
|
-
return f;
|
|
91120
|
-
}, [e]);
|
|
91121
|
-
return /* @__PURE__ */ jsx(
|
|
91122
|
-
DataTable,
|
|
91123
|
-
{
|
|
91124
|
-
columns: o,
|
|
91125
|
-
data: e || [],
|
|
91126
|
-
uniqueValues: l,
|
|
91127
|
-
loading: n,
|
|
91128
|
-
tableClass: "bg-card text-card-foreground"
|
|
91129
|
-
}
|
|
91130
|
-
);
|
|
91131
|
-
}
|
|
91132
91031
|
function ProductOverviewPage({
|
|
91133
91032
|
applicationId: t,
|
|
91134
91033
|
sku: e,
|
|
@@ -91285,28 +91184,28 @@ function ProductOverviewPage({
|
|
|
91285
91184
|
/* @__PURE__ */ jsx(
|
|
91286
91185
|
TabsTrigger,
|
|
91287
91186
|
{
|
|
91288
|
-
value: "orders-tab",
|
|
91187
|
+
value: "active-orders-tab",
|
|
91289
91188
|
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
91290
91189
|
disabled: (((Q = S == null ? void 0 : S.ActiveOrderDetails) == null ? void 0 : Q.length) ?? 0) <= 0,
|
|
91291
|
-
children: "Orders"
|
|
91190
|
+
children: "Active Orders"
|
|
91292
91191
|
}
|
|
91293
91192
|
),
|
|
91294
91193
|
/* @__PURE__ */ jsx(
|
|
91295
91194
|
TabsTrigger,
|
|
91296
91195
|
{
|
|
91297
|
-
value: "
|
|
91196
|
+
value: "completed-orders-tab",
|
|
91298
91197
|
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
91299
|
-
disabled: (((F = S == null ? void 0 : S.
|
|
91300
|
-
children: "
|
|
91198
|
+
disabled: (((F = S == null ? void 0 : S.CompletedOrderDetails) == null ? void 0 : F.length) ?? 0) <= 0,
|
|
91199
|
+
children: "Completed Orders"
|
|
91301
91200
|
}
|
|
91302
91201
|
),
|
|
91303
91202
|
/* @__PURE__ */ jsx(
|
|
91304
91203
|
TabsTrigger,
|
|
91305
91204
|
{
|
|
91306
|
-
value: "
|
|
91205
|
+
value: "returns-tab",
|
|
91307
91206
|
className: "relative h-12 rounded-none border-b-2 border-b-transparent bg-transparent px-4 pb-3 pt-2 text-sm font-medium text-muted-foreground shadow-none transition-none hover:text-foreground data-[state=active]:border-b-primary data-[state=active]:text-foreground data-[state=active]:shadow-none cursor-pointer",
|
|
91308
|
-
disabled: (((j = S == null ? void 0 : S.
|
|
91309
|
-
children: "
|
|
91207
|
+
disabled: (((j = S == null ? void 0 : S.Returns) == null ? void 0 : j.length) ?? 0) <= 0,
|
|
91208
|
+
children: "Returns"
|
|
91310
91209
|
}
|
|
91311
91210
|
),
|
|
91312
91211
|
/* @__PURE__ */ jsx(
|
|
@@ -91341,28 +91240,29 @@ function ProductOverviewPage({
|
|
|
91341
91240
|
loading: b
|
|
91342
91241
|
}
|
|
91343
91242
|
) }) }),
|
|
91344
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "orders-tab", children: (((oe = S == null ? void 0 : S.ActiveOrderDetails) == null ? void 0 : oe.length) ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
91243
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "active-orders-tab", children: (((oe = S == null ? void 0 : S.ActiveOrderDetails) == null ? void 0 : oe.length) ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
91345
91244
|
OrdersCard,
|
|
91346
91245
|
{
|
|
91347
91246
|
applicationId: t,
|
|
91348
|
-
title: "
|
|
91247
|
+
title: "Active Orders",
|
|
91349
91248
|
orders: S == null ? void 0 : S.ActiveOrderDetails,
|
|
91350
91249
|
loading: _
|
|
91351
91250
|
}
|
|
91352
91251
|
) }) }),
|
|
91353
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "
|
|
91354
|
-
|
|
91252
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "completed-orders-tab", children: (((ge = S == null ? void 0 : S.CompletedOrderDetails) == null ? void 0 : ge.length) ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
91253
|
+
OrdersCard,
|
|
91355
91254
|
{
|
|
91356
91255
|
applicationId: t,
|
|
91357
|
-
|
|
91256
|
+
title: "Completed Orders",
|
|
91257
|
+
orders: S == null ? void 0 : S.CompletedOrderDetails,
|
|
91358
91258
|
loading: _
|
|
91359
91259
|
}
|
|
91360
91260
|
) }) }),
|
|
91361
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "
|
|
91362
|
-
|
|
91261
|
+
/* @__PURE__ */ jsx(TabsContent, { value: "returns-tab", children: (((se = S == null ? void 0 : S.Returns) == null ? void 0 : se.length) ?? 0) > 0 && /* @__PURE__ */ jsx("div", { className: "mt-4", children: /* @__PURE__ */ jsx(
|
|
91262
|
+
ReturnsTable,
|
|
91363
91263
|
{
|
|
91364
91264
|
applicationId: t,
|
|
91365
|
-
|
|
91265
|
+
returns: S == null ? void 0 : S.Returns,
|
|
91366
91266
|
loading: _
|
|
91367
91267
|
}
|
|
91368
91268
|
) }) }),
|