randmarcomps 1.357.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 +200 -294
- 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
|
|
@@ -62455,13 +62454,14 @@ function ManufacturerCategorySummary({
|
|
|
62455
62454
|
productsNumber: n = 0,
|
|
62456
62455
|
autoreorder: o = !1,
|
|
62457
62456
|
starred: l = !1,
|
|
62458
|
-
isLoading: d = !1
|
|
62457
|
+
isLoading: d = !1,
|
|
62458
|
+
children: f
|
|
62459
62459
|
}) {
|
|
62460
|
-
return d ? /* @__PURE__ */ jsxs(Card, {
|
|
62460
|
+
return d ? /* @__PURE__ */ jsxs(Card, { children: [
|
|
62461
62461
|
/* @__PURE__ */ jsx(CardHeader, { className: "pb-4", children: /* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
62462
62462
|
/* @__PURE__ */ jsx("div", { className: "space-y-1 flex-1", children: /* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
62463
|
-
/* @__PURE__ */ jsx("div", { className: "h-3 w-
|
|
62464
|
-
/* @__PURE__ */ jsx("div", { className: "h-5 w-
|
|
62463
|
+
/* @__PURE__ */ jsx("div", { className: "h-3 w-28 bg-muted rounded-md animate-pulse" }),
|
|
62464
|
+
/* @__PURE__ */ jsx("div", { className: "h-5 w-48 bg-muted rounded-md animate-pulse" })
|
|
62465
62465
|
] }) }),
|
|
62466
62466
|
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-1", children: [
|
|
62467
62467
|
/* @__PURE__ */ jsx("div", { className: "h-3 w-12 bg-muted rounded-md animate-pulse" }),
|
|
@@ -62490,54 +62490,53 @@ function ManufacturerCategorySummary({
|
|
|
62490
62490
|
] })
|
|
62491
62491
|
] })
|
|
62492
62492
|
] })
|
|
62493
|
-
] }) : /* @__PURE__ */
|
|
62494
|
-
/* @__PURE__ */
|
|
62495
|
-
/* @__PURE__ */
|
|
62493
|
+
] }) : /* @__PURE__ */ jsx(Card, { children: /* @__PURE__ */ jsxs(CardContent, { className: "grid grid-cols-[1fr_auto] items-start gap-4 pt-6", children: [
|
|
62494
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-start gap-4", children: [
|
|
62495
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
62496
62496
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Category Name" }),
|
|
62497
62497
|
/* @__PURE__ */ jsx("h3", { className: "text-lg font-semibold leading-none tracking-tight", children: t })
|
|
62498
|
-
] })
|
|
62499
|
-
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-1", children: [
|
|
62500
|
-
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Starred" }),
|
|
62501
|
-
l ? /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-muted-foreground" })
|
|
62502
|
-
] })
|
|
62503
|
-
] }) }),
|
|
62504
|
-
/* @__PURE__ */ jsxs(CardContent, { className: "space-y-4", children: [
|
|
62498
|
+
] }),
|
|
62505
62499
|
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
62506
62500
|
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Niche" }),
|
|
62507
62501
|
/* @__PURE__ */ jsx("p", { className: "text-sm font-medium", children: e })
|
|
62508
62502
|
] }),
|
|
62509
|
-
/* @__PURE__ */ jsxs("div", { className: "
|
|
62510
|
-
/* @__PURE__ */
|
|
62511
|
-
|
|
62512
|
-
/* @__PURE__ */
|
|
62513
|
-
|
|
62514
|
-
|
|
62515
|
-
|
|
62516
|
-
|
|
62517
|
-
|
|
62518
|
-
|
|
62519
|
-
|
|
62520
|
-
|
|
62521
|
-
|
|
62522
|
-
|
|
62523
|
-
|
|
62524
|
-
|
|
62525
|
-
|
|
62526
|
-
|
|
62527
|
-
|
|
62528
|
-
|
|
62529
|
-
|
|
62503
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1", children: [
|
|
62504
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Products" }),
|
|
62505
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
62506
|
+
/* @__PURE__ */ jsx(Package, { className: "h-4 w-4 text-muted-foreground" }),
|
|
62507
|
+
/* @__PURE__ */ jsx("span", { className: "text-sm font-medium", children: n })
|
|
62508
|
+
] })
|
|
62509
|
+
] })
|
|
62510
|
+
] }),
|
|
62511
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end justify-between gap-4 h-full", children: [
|
|
62512
|
+
f,
|
|
62513
|
+
/* @__PURE__ */ jsxs("div", { className: "flex flex-col items-end gap-1", children: [
|
|
62514
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Starred" }),
|
|
62515
|
+
l ? /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 fill-yellow-400 text-yellow-400" }) : /* @__PURE__ */ jsx(Star, { className: "h-5 w-5 text-muted-foreground" })
|
|
62516
|
+
] }),
|
|
62517
|
+
/* @__PURE__ */ jsxs("div", { className: "space-y-1 flex flex-col items-end", children: [
|
|
62518
|
+
/* @__PURE__ */ jsx("p", { className: "text-xs font-medium text-muted-foreground uppercase tracking-wide", children: "Auto-reorder" }),
|
|
62519
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
|
|
62520
|
+
o ? /* @__PURE__ */ jsx(RefreshCw, { className: "size-4 text-green-600" }) : /* @__PURE__ */ jsx(RefreshCwOff, { className: "size-4 text-amber-600" }),
|
|
62521
|
+
/* @__PURE__ */ jsx(
|
|
62522
|
+
Badge,
|
|
62523
|
+
{
|
|
62524
|
+
variant: o ? "default" : "secondary",
|
|
62525
|
+
className: cn("text-xs", o ? "text-green-600 bg-green-100 hover:bg-green-200" : "text-amber-600 bg-amber-100 hover:bg-amber-200"),
|
|
62526
|
+
children: o ? "Enabled" : "Disabled"
|
|
62527
|
+
}
|
|
62528
|
+
)
|
|
62530
62529
|
] })
|
|
62531
62530
|
] })
|
|
62532
62531
|
] })
|
|
62533
|
-
] });
|
|
62532
|
+
] }) });
|
|
62534
62533
|
}
|
|
62535
62534
|
function ManufacturerProducts({
|
|
62536
62535
|
applicationId: t,
|
|
62537
62536
|
manufacturer: e,
|
|
62538
62537
|
shopifyHostName: n
|
|
62539
62538
|
}) {
|
|
62540
|
-
var I, V, q, z, Q, F, j
|
|
62539
|
+
var I, V, q, z, Q, F, j;
|
|
62541
62540
|
const [o] = usePostV4ResellerByRouteResellerIdManufacturerAndManufacturerIdCategoryCodeShopifyMutation(), [l, d] = useState(((V = (I = e.Categories) == null ? void 0 : I[0]) == null ? void 0 : V.CategoryCode) || ""), [f, g] = useState(!1), [b, S] = useState(!1), { toast: _ } = useToast(), {
|
|
62542
62541
|
data: C,
|
|
62543
62542
|
isLoading: E,
|
|
@@ -62563,8 +62562,8 @@ function ManufacturerProducts({
|
|
|
62563
62562
|
description: "Category synced to Shopify successfully",
|
|
62564
62563
|
variant: "success"
|
|
62565
62564
|
});
|
|
62566
|
-
} catch (
|
|
62567
|
-
console.error("Error syncing to Shopify:",
|
|
62565
|
+
} catch (te) {
|
|
62566
|
+
console.error("Error syncing to Shopify:", te), _({
|
|
62568
62567
|
title: "Error",
|
|
62569
62568
|
description: "Error syncing category to Shopify.",
|
|
62570
62569
|
variant: "destructive"
|
|
@@ -62573,8 +62572,8 @@ function ManufacturerProducts({
|
|
|
62573
62572
|
g(!1);
|
|
62574
62573
|
}
|
|
62575
62574
|
}, M = () => {
|
|
62576
|
-
var
|
|
62577
|
-
return ((
|
|
62575
|
+
var te, ne;
|
|
62576
|
+
return ((ne = (te = e.Categories) == null ? void 0 : te.find((oe) => oe.CategoryCode === l)) == null ? void 0 : ne.CategoryName) || l;
|
|
62578
62577
|
};
|
|
62579
62578
|
return /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62580
62579
|
/* @__PURE__ */ jsxs("div", { className: "mb-4", children: [
|
|
@@ -62586,56 +62585,37 @@ function ManufacturerProducts({
|
|
|
62586
62585
|
onSelectCategory: d
|
|
62587
62586
|
}
|
|
62588
62587
|
),
|
|
62589
|
-
|
|
62590
|
-
/* @__PURE__ */ jsx(DialogTrigger, { asChild: !0, children: /* @__PURE__ */ jsx(Button, { className: "bg-green-600 hover:bg-green-700 mb-4", disabled: f, children: f ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62591
|
-
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
62592
|
-
"Syncing..."
|
|
62593
|
-
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62594
|
-
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2 h-4 w-4" }),
|
|
62595
|
-
"Sync Category to Shopify"
|
|
62596
|
-
] }) }) }),
|
|
62597
|
-
/* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
62598
|
-
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
62599
|
-
/* @__PURE__ */ jsx(DialogTitle, { children: "Confirm Sync to Shopify" }),
|
|
62600
|
-
/* @__PURE__ */ jsxs(DialogDescription, { children: [
|
|
62601
|
-
'Are you sure you want to sync the category "',
|
|
62602
|
-
M(),
|
|
62603
|
-
'" to Shopify? This will add all products in this category to your Shopify store.'
|
|
62604
|
-
] })
|
|
62605
|
-
] }),
|
|
62606
|
-
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
62607
|
-
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: () => S(!1), children: "Cancel" }),
|
|
62608
|
-
/* @__PURE__ */ jsx(
|
|
62609
|
-
Button,
|
|
62610
|
-
{
|
|
62611
|
-
className: "bg-green-600 hover:bg-green-700",
|
|
62612
|
-
onClick: A,
|
|
62613
|
-
disabled: f,
|
|
62614
|
-
children: f ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62615
|
-
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
62616
|
-
"Syncing..."
|
|
62617
|
-
] }) : "Confirm Sync"
|
|
62618
|
-
}
|
|
62619
|
-
)
|
|
62620
|
-
] })
|
|
62621
|
-
] })
|
|
62622
|
-
] }) }),
|
|
62623
|
-
/* @__PURE__ */ jsx("div", { className: "mb-4", children: /* @__PURE__ */ jsx(
|
|
62588
|
+
/* @__PURE__ */ jsx("div", { className: "mb-4 w-full", children: /* @__PURE__ */ jsx(
|
|
62624
62589
|
ManufacturerCategorySummary,
|
|
62625
62590
|
{
|
|
62626
62591
|
name: M(),
|
|
62627
|
-
niche: (
|
|
62628
|
-
productsNumber: ((
|
|
62592
|
+
niche: (C == null ? void 0 : C.Niche) || "",
|
|
62593
|
+
productsNumber: ((q = C == null ? void 0 : C.Products) == null ? void 0 : q.length) || 0,
|
|
62629
62594
|
autoreorder: (C == null ? void 0 : C.AutoReorder) || !1,
|
|
62630
62595
|
starred: (C == null ? void 0 : C.Starred) || !1,
|
|
62631
|
-
isLoading: E
|
|
62596
|
+
isLoading: E || R,
|
|
62597
|
+
children: n && ((z = e.Categories) == null ? void 0 : z.findIndex((te) => te.AvailableToBuy)) !== -1 && /* @__PURE__ */ jsx(
|
|
62598
|
+
Button,
|
|
62599
|
+
{
|
|
62600
|
+
className: "bg-green-600 hover:bg-green-700",
|
|
62601
|
+
disabled: f,
|
|
62602
|
+
onClick: () => S(!0),
|
|
62603
|
+
children: f ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62604
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
62605
|
+
"Syncing..."
|
|
62606
|
+
] }) : /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62607
|
+
/* @__PURE__ */ jsx(ShoppingCart, { className: "mr-2 h-4 w-4" }),
|
|
62608
|
+
"Sync Category to Shopify"
|
|
62609
|
+
] })
|
|
62610
|
+
}
|
|
62611
|
+
)
|
|
62632
62612
|
}
|
|
62633
62613
|
) }),
|
|
62634
62614
|
/* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4", children: [
|
|
62635
62615
|
/* @__PURE__ */ jsx(
|
|
62636
62616
|
ManufacturerCategoriesStats,
|
|
62637
62617
|
{
|
|
62638
|
-
categories: [(
|
|
62618
|
+
categories: [(Q = e.Categories) == null ? void 0 : Q.find((te) => te.CategoryCode === l)].filter(Boolean),
|
|
62639
62619
|
manufID: e.ManufacturerId,
|
|
62640
62620
|
appID: t
|
|
62641
62621
|
}
|
|
@@ -62643,9 +62623,9 @@ function ManufacturerProducts({
|
|
|
62643
62623
|
/* @__PURE__ */ jsx(
|
|
62644
62624
|
ActiveOrdersCard,
|
|
62645
62625
|
{
|
|
62646
|
-
orders: (
|
|
62647
|
-
(
|
|
62648
|
-
(
|
|
62626
|
+
orders: (F = C == null ? void 0 : C.Products) == null ? void 0 : F.flatMap(
|
|
62627
|
+
(te) => (te.ActiveOrderDetails || []).filter(
|
|
62628
|
+
(ne) => ne.Category === l
|
|
62649
62629
|
)
|
|
62650
62630
|
),
|
|
62651
62631
|
loading: E || R
|
|
@@ -62653,22 +62633,47 @@ function ManufacturerProducts({
|
|
|
62653
62633
|
)
|
|
62654
62634
|
] })
|
|
62655
62635
|
] }),
|
|
62656
|
-
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4 mb-4", children: E || R ? Array.from({ length: 4 }).map((
|
|
62657
|
-
const
|
|
62658
|
-
return (
|
|
62659
|
-
})) == null ? void 0 :
|
|
62636
|
+
/* @__PURE__ */ jsx("div", { className: "grid grid-cols-1 @md:grid-cols-2 gap-4 mb-4", children: E || R ? Array.from({ length: 4 }).map((te, ne) => /* @__PURE__ */ jsx(ProductCard, {}, ne)) : C != null && C.Products && (C == null ? void 0 : C.Products.length) > 0 ? (j = [...C.Products].sort((te, ne) => {
|
|
62637
|
+
const oe = te.OverallPercentileRank ?? 0;
|
|
62638
|
+
return (ne.OverallPercentileRank ?? 0) - oe;
|
|
62639
|
+
})) == null ? void 0 : j.map((te) => /* @__PURE__ */ jsx(
|
|
62660
62640
|
ProductCard,
|
|
62661
62641
|
{
|
|
62662
62642
|
applicationId: t,
|
|
62663
|
-
product:
|
|
62664
|
-
viewProductLink: `/${t}/Product/${
|
|
62643
|
+
product: te,
|
|
62644
|
+
viewProductLink: `/${t}/Product/${te.RandmarSKU}`,
|
|
62665
62645
|
shopifyHostname: n
|
|
62666
62646
|
},
|
|
62667
|
-
|
|
62647
|
+
te.RandmarSKU
|
|
62668
62648
|
)) : /* @__PURE__ */ jsxs(Alert, { variant: "warning", className: "col-span-1 @md:col-span-2", children: [
|
|
62669
62649
|
/* @__PURE__ */ jsx(CircleAlert, { className: "h-4 w-4" }),
|
|
62670
62650
|
/* @__PURE__ */ jsx(AlertTitle, { children: "Warning" }),
|
|
62671
62651
|
/* @__PURE__ */ jsx(AlertDescription, { children: "No products found for this manufacturer category." })
|
|
62652
|
+
] }) }),
|
|
62653
|
+
/* @__PURE__ */ jsx(Dialog, { open: b, onOpenChange: S, children: /* @__PURE__ */ jsxs(DialogContent, { children: [
|
|
62654
|
+
/* @__PURE__ */ jsxs(DialogHeader, { children: [
|
|
62655
|
+
/* @__PURE__ */ jsx(DialogTitle, { children: "Confirm Sync to Shopify" }),
|
|
62656
|
+
/* @__PURE__ */ jsxs(DialogDescription, { children: [
|
|
62657
|
+
'Are you sure you want to sync the category "',
|
|
62658
|
+
M(),
|
|
62659
|
+
'" to Shopify? This will add all products in this category to your Shopify store.'
|
|
62660
|
+
] })
|
|
62661
|
+
] }),
|
|
62662
|
+
/* @__PURE__ */ jsxs(DialogFooter, { children: [
|
|
62663
|
+
/* @__PURE__ */ jsx(Button, { variant: "outline", onClick: () => S(!1), children: "Cancel" }),
|
|
62664
|
+
/* @__PURE__ */ jsx(
|
|
62665
|
+
Button,
|
|
62666
|
+
{
|
|
62667
|
+
className: "bg-green-600 hover:bg-green-700",
|
|
62668
|
+
onClick: A,
|
|
62669
|
+
disabled: f,
|
|
62670
|
+
children: f ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
62671
|
+
/* @__PURE__ */ jsx(LoaderCircle, { className: "mr-2 h-4 w-4 animate-spin" }),
|
|
62672
|
+
"Syncing..."
|
|
62673
|
+
] }) : "Confirm Sync"
|
|
62674
|
+
}
|
|
62675
|
+
)
|
|
62676
|
+
] })
|
|
62672
62677
|
] }) })
|
|
62673
62678
|
] });
|
|
62674
62679
|
}
|
|
@@ -67706,9 +67711,9 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
67706
67711
|
}, qt.parseVarId = function(O, ae) {
|
|
67707
67712
|
O.id = this.parseBindingAtom(), this.checkLValPattern(O.id, ae === "var" ? nt : st, !1);
|
|
67708
67713
|
};
|
|
67709
|
-
var vr = 1, Qt = 2,
|
|
67714
|
+
var vr = 1, Qt = 2, Mr = 4;
|
|
67710
67715
|
qt.parseFunction = function(O, ae, Oe, je, We) {
|
|
67711
|
-
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));
|
|
67712
67717
|
var lt = this.yieldPos, ut = this.awaitPos, It = this.awaitIdentPos;
|
|
67713
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");
|
|
67714
67719
|
}, qt.parseFunctionParams = function(O) {
|
|
@@ -67817,7 +67822,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
67817
67822
|
var O;
|
|
67818
67823
|
if (this.type === j._function || (O = this.isAsyncFunction())) {
|
|
67819
67824
|
var ae = this.startNode();
|
|
67820
|
-
return this.next(), O && this.next(), this.parseFunction(ae, vr |
|
|
67825
|
+
return this.next(), O && this.next(), this.parseFunction(ae, vr | Mr, !1, O);
|
|
67821
67826
|
} else if (this.type === j._class) {
|
|
67822
67827
|
var Oe = this.startNode();
|
|
67823
67828
|
return this.parseClass(Oe, "nullableID");
|
|
@@ -68516,26 +68521,26 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68516
68521
|
var ae = this.startNode();
|
|
68517
68522
|
return this.next(), ae.argument = this.parseMaybeUnary(null, !0, !1, O), this.finishNode(ae, "AwaitExpression");
|
|
68518
68523
|
};
|
|
68519
|
-
var
|
|
68520
|
-
|
|
68524
|
+
var Nr = mt.prototype;
|
|
68525
|
+
Nr.raise = function(O, ae) {
|
|
68521
68526
|
var Oe = Ze(this.input, O);
|
|
68522
68527
|
ae += " (" + Oe.line + ":" + Oe.column + ")";
|
|
68523
68528
|
var je = new SyntaxError(ae);
|
|
68524
68529
|
throw je.pos = O, je.loc = Oe, je.raisedAt = this.pos, je;
|
|
68525
|
-
},
|
|
68530
|
+
}, Nr.raiseRecoverable = Nr.raise, Nr.curPosition = function() {
|
|
68526
68531
|
if (this.options.locations)
|
|
68527
68532
|
return new ze(this.curLine, this.pos - this.lineStart);
|
|
68528
68533
|
};
|
|
68529
|
-
var
|
|
68534
|
+
var wr = mt.prototype, Fr = function(ae) {
|
|
68530
68535
|
this.flags = ae, this.var = [], this.lexical = [], this.functions = [], this.inClassFieldInit = !1;
|
|
68531
68536
|
};
|
|
68532
|
-
|
|
68537
|
+
wr.enterScope = function(O) {
|
|
68533
68538
|
this.scopeStack.push(new Fr(O));
|
|
68534
|
-
},
|
|
68539
|
+
}, wr.exitScope = function() {
|
|
68535
68540
|
this.scopeStack.pop();
|
|
68536
|
-
},
|
|
68541
|
+
}, wr.treatFunctionsAsVarInScope = function(O) {
|
|
68537
68542
|
return O.flags & ot || !this.inModule && O.flags & et;
|
|
68538
|
-
},
|
|
68543
|
+
}, wr.declareName = function(O, ae, Oe) {
|
|
68539
68544
|
var je = !1;
|
|
68540
68545
|
if (ae === st) {
|
|
68541
68546
|
var We = this.currentScope();
|
|
@@ -68557,17 +68562,17 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68557
68562
|
break;
|
|
68558
68563
|
}
|
|
68559
68564
|
je && this.raiseRecoverable(Oe, "Identifier '" + O + "' has already been declared");
|
|
68560
|
-
},
|
|
68565
|
+
}, wr.checkLocalExport = function(O) {
|
|
68561
68566
|
this.scopeStack[0].lexical.indexOf(O.name) === -1 && this.scopeStack[0].var.indexOf(O.name) === -1 && (this.undefinedExports[O.name] = O);
|
|
68562
|
-
},
|
|
68567
|
+
}, wr.currentScope = function() {
|
|
68563
68568
|
return this.scopeStack[this.scopeStack.length - 1];
|
|
68564
|
-
},
|
|
68569
|
+
}, wr.currentVarScope = function() {
|
|
68565
68570
|
for (var O = this.scopeStack.length - 1; ; O--) {
|
|
68566
68571
|
var ae = this.scopeStack[O];
|
|
68567
68572
|
if (ae.flags & Ut)
|
|
68568
68573
|
return ae;
|
|
68569
68574
|
}
|
|
68570
|
-
},
|
|
68575
|
+
}, wr.currentThisScope = function() {
|
|
68571
68576
|
for (var O = this.scopeStack.length - 1; ; O--) {
|
|
68572
68577
|
var ae = this.scopeStack[O];
|
|
68573
68578
|
if (ae.flags & Ut && !(ae.flags & Ct))
|
|
@@ -68582,13 +68587,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68582
68587
|
}, jr.startNodeAt = function(O, ae) {
|
|
68583
68588
|
return new Dr(this, O, ae);
|
|
68584
68589
|
};
|
|
68585
|
-
function
|
|
68590
|
+
function Tr(O, ae, Oe, je) {
|
|
68586
68591
|
return O.type = ae, O.end = Oe, this.options.locations && (O.loc.end = je), this.options.ranges && (O.range[1] = Oe), O;
|
|
68587
68592
|
}
|
|
68588
68593
|
jr.finishNode = function(O, ae) {
|
|
68589
|
-
return
|
|
68594
|
+
return Tr.call(this, O, ae, this.lastTokEnd, this.lastTokEndLoc);
|
|
68590
68595
|
}, jr.finishNodeAt = function(O, ae, Oe, je) {
|
|
68591
|
-
return
|
|
68596
|
+
return Tr.call(this, O, ae, Oe, je);
|
|
68592
68597
|
}, jr.copyNode = function(O) {
|
|
68593
68598
|
var ae = new Dr(this, O.start, this.startLoc);
|
|
68594
68599
|
for (var Oe in O)
|
|
@@ -68916,7 +68921,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68916
68921
|
}
|
|
68917
68922
|
return !1;
|
|
68918
68923
|
};
|
|
68919
|
-
var
|
|
68924
|
+
var wn = 0, Or = 1, Ar = 2;
|
|
68920
68925
|
Vt.regexp_eatCharacterClassEscape = function(O) {
|
|
68921
68926
|
var ae = O.current();
|
|
68922
68927
|
if (Ln(ae))
|
|
@@ -68929,7 +68934,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68929
68934
|
return Oe && je === Ar && O.raise("Invalid property name"), je;
|
|
68930
68935
|
O.raise("Invalid property name");
|
|
68931
68936
|
}
|
|
68932
|
-
return
|
|
68937
|
+
return wn;
|
|
68933
68938
|
};
|
|
68934
68939
|
function Ln(O) {
|
|
68935
68940
|
return O === 100 || O === 68 || O === 115 || O === 83 || O === 119 || O === 87;
|
|
@@ -68947,7 +68952,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68947
68952
|
var We = O.lastStringValue;
|
|
68948
68953
|
return this.regexp_validateUnicodePropertyNameOrValue(O, We);
|
|
68949
68954
|
}
|
|
68950
|
-
return
|
|
68955
|
+
return wn;
|
|
68951
68956
|
}, Vt.regexp_validateUnicodePropertyNameAndValue = function(O, ae, Oe) {
|
|
68952
68957
|
Fe(O.unicodeProperties.nonBinary, ae) || O.raise("Invalid property name"), O.unicodeProperties.nonBinary[ae].test(Oe) || O.raise("Invalid property value");
|
|
68953
68958
|
}, Vt.regexp_validateUnicodePropertyNameOrValue = function(O, ae) {
|
|
@@ -68958,11 +68963,11 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68958
68963
|
O.raise("Invalid property name");
|
|
68959
68964
|
}, Vt.regexp_eatUnicodePropertyName = function(O) {
|
|
68960
68965
|
var ae = 0;
|
|
68961
|
-
for (O.lastStringValue = "";
|
|
68966
|
+
for (O.lastStringValue = ""; Tn(ae = O.current()); )
|
|
68962
68967
|
O.lastStringValue += qe(ae), O.advance();
|
|
68963
68968
|
return O.lastStringValue !== "";
|
|
68964
68969
|
};
|
|
68965
|
-
function
|
|
68970
|
+
function Tn(O) {
|
|
68966
68971
|
return Cn(O) || O === 95;
|
|
68967
68972
|
}
|
|
68968
68973
|
Vt.regexp_eatUnicodePropertyValue = function(O) {
|
|
@@ -68972,7 +68977,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
68972
68977
|
return O.lastStringValue !== "";
|
|
68973
68978
|
};
|
|
68974
68979
|
function Fn(O) {
|
|
68975
|
-
return
|
|
68980
|
+
return Tn(O) || un(O);
|
|
68976
68981
|
}
|
|
68977
68982
|
Vt.regexp_eatLoneUnicodePropertyNameOrValue = function(O) {
|
|
68978
68983
|
return this.regexp_eatUnicodePropertyValue(O);
|
|
@@ -69477,13 +69482,13 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69477
69482
|
}
|
|
69478
69483
|
return ae += this.input.slice(Oe, this.pos++), this.finishToken(j.string, ae);
|
|
69479
69484
|
};
|
|
69480
|
-
var
|
|
69485
|
+
var Mn = {};
|
|
69481
69486
|
ir.tryReadTemplateToken = function() {
|
|
69482
69487
|
this.inTemplateElement = !0;
|
|
69483
69488
|
try {
|
|
69484
69489
|
this.readTmplToken();
|
|
69485
69490
|
} catch (O) {
|
|
69486
|
-
if (O ===
|
|
69491
|
+
if (O === Mn)
|
|
69487
69492
|
this.readInvalidTemplateToken();
|
|
69488
69493
|
else
|
|
69489
69494
|
throw O;
|
|
@@ -69491,7 +69496,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69491
69496
|
this.inTemplateElement = !1;
|
|
69492
69497
|
}, ir.invalidStringToken = function(O, ae) {
|
|
69493
69498
|
if (this.inTemplateElement && this.options.ecmaVersion >= 9)
|
|
69494
|
-
throw
|
|
69499
|
+
throw Mn;
|
|
69495
69500
|
this.raise(O, ae);
|
|
69496
69501
|
}, ir.readTmplToken = function() {
|
|
69497
69502
|
for (var O = "", ae = this.pos; ; ) {
|
|
@@ -69600,10 +69605,10 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69600
69605
|
var O = this.readWord1(), ae = j.name;
|
|
69601
69606
|
return this.keywords.test(O) && (ae = Q[O]), this.finishToken(ae, O);
|
|
69602
69607
|
};
|
|
69603
|
-
var
|
|
69608
|
+
var Nn = "8.12.1";
|
|
69604
69609
|
mt.acorn = {
|
|
69605
69610
|
Parser: mt,
|
|
69606
|
-
version:
|
|
69611
|
+
version: Nn,
|
|
69607
69612
|
defaultOptions: Je,
|
|
69608
69613
|
Position: ze,
|
|
69609
69614
|
SourceLocation: Ye,
|
|
@@ -69631,7 +69636,7 @@ Defaulting to 2020, but this will stop working in the future.`)), ae.ecmaVersion
|
|
|
69631
69636
|
function Wn(O, ae) {
|
|
69632
69637
|
return mt.tokenizer(O, ae);
|
|
69633
69638
|
}
|
|
69634
|
-
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;
|
|
69635
69640
|
});
|
|
69636
69641
|
}), require_acorn_jsx = __commonJS((t, e) => {
|
|
69637
69642
|
var n = require_xhtml(), o = /^[\da-fA-F]+$/, l = /^\d+$/, d = /* @__PURE__ */ new WeakMap();
|
|
@@ -90835,21 +90840,35 @@ function ReceiptsTable({
|
|
|
90835
90840
|
{
|
|
90836
90841
|
accessorKey: "Location",
|
|
90837
90842
|
header: "Location",
|
|
90838
|
-
cell: ({ row: d }) =>
|
|
90843
|
+
cell: ({ row: d }) => d.original.Location ?? "—",
|
|
90839
90844
|
enableSorting: !0,
|
|
90840
90845
|
enableFiltering: !0
|
|
90841
90846
|
},
|
|
90842
90847
|
{
|
|
90843
90848
|
accessorKey: "ReceiptDate",
|
|
90844
|
-
header: "Date",
|
|
90849
|
+
header: "Receipt Date",
|
|
90845
90850
|
cell: ({ row: d }) => formatYYYYMMDDIntToDateString(d.original.ReceiptDate),
|
|
90846
90851
|
enableSorting: !0,
|
|
90847
90852
|
enableFiltering: !0
|
|
90848
90853
|
},
|
|
90854
|
+
{
|
|
90855
|
+
accessorKey: "ReceiptNumber",
|
|
90856
|
+
header: "Receipt Number",
|
|
90857
|
+
cell: ({ row: d }) => d.original.ReceiptNumber ?? "—",
|
|
90858
|
+
enableSorting: !0,
|
|
90859
|
+
enableFiltering: !0
|
|
90860
|
+
},
|
|
90849
90861
|
{
|
|
90850
90862
|
accessorKey: "Quantity",
|
|
90851
90863
|
header: "Quantity",
|
|
90852
|
-
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) : "—",
|
|
90853
90872
|
enableSorting: !0,
|
|
90854
90873
|
enableFiltering: !0
|
|
90855
90874
|
}
|
|
@@ -90863,7 +90882,7 @@ function ReceiptsTable({
|
|
|
90863
90882
|
);
|
|
90864
90883
|
d.Location = f;
|
|
90865
90884
|
const g = Array.from(
|
|
90866
|
-
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"))
|
|
90867
90886
|
).sort((b, S) => new Date(S).getTime() - new Date(b).getTime());
|
|
90868
90887
|
d.ReceiptDate = g;
|
|
90869
90888
|
}
|
|
@@ -91009,120 +91028,6 @@ function ReturnsTable({
|
|
|
91009
91028
|
/* @__PURE__ */ jsx(CardContent, { children: /* @__PURE__ */ jsx(DataTable, { columns: o, data: d, uniqueValues: l }) })
|
|
91010
91029
|
] });
|
|
91011
91030
|
}
|
|
91012
|
-
function InvoicesTable({
|
|
91013
|
-
applicationId: t,
|
|
91014
|
-
invoices: e = null,
|
|
91015
|
-
loading: n = !1
|
|
91016
|
-
}) {
|
|
91017
|
-
const o = useMemo(
|
|
91018
|
-
() => [
|
|
91019
|
-
{
|
|
91020
|
-
accessorKey: "InvoiceNumber",
|
|
91021
|
-
header: "Number",
|
|
91022
|
-
cell: ({ row: f }) => f.original.InvoiceNumber ? /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
91023
|
-
/* @__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 }) }),
|
|
91024
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
91025
|
-
"View details for invoice ",
|
|
91026
|
-
f.original.InvoiceNumber
|
|
91027
|
-
] }) })
|
|
91028
|
-
] }) }) : "—",
|
|
91029
|
-
enableSorting: !0,
|
|
91030
|
-
enableFiltering: !0
|
|
91031
|
-
},
|
|
91032
|
-
{
|
|
91033
|
-
accessorKey: "InvoiceDate",
|
|
91034
|
-
header: "Date",
|
|
91035
|
-
cell: ({ row: f }) => formatYYYYMMDDIntToDateString(f.original.InvoiceDate),
|
|
91036
|
-
enableSorting: !0,
|
|
91037
|
-
enableFiltering: !0
|
|
91038
|
-
},
|
|
91039
|
-
{
|
|
91040
|
-
accessorKey: "OrderNumber",
|
|
91041
|
-
header: "Order Number",
|
|
91042
|
-
cell: ({ row: f }) => f.original.OrderNumber ? /* @__PURE__ */ jsx(TooltipProvider, { delayDuration: 100, children: /* @__PURE__ */ jsxs(Tooltip$1, { children: [
|
|
91043
|
-
/* @__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 }) }),
|
|
91044
|
-
/* @__PURE__ */ jsx(TooltipContent, { children: /* @__PURE__ */ jsxs("p", { children: [
|
|
91045
|
-
"View details for order ",
|
|
91046
|
-
f.original.OrderNumber
|
|
91047
|
-
] }) })
|
|
91048
|
-
] }) }) : "—",
|
|
91049
|
-
enableSorting: !0,
|
|
91050
|
-
enableFiltering: !0
|
|
91051
|
-
},
|
|
91052
|
-
{
|
|
91053
|
-
accessorKey: "PONumber",
|
|
91054
|
-
header: "PO Number",
|
|
91055
|
-
cell: ({ row: f }) => f.original.PONumber && f.original.PONumber.trim().length > 0 ? f.original.PONumber : "—",
|
|
91056
|
-
enableSorting: !0,
|
|
91057
|
-
enableFiltering: !0
|
|
91058
|
-
},
|
|
91059
|
-
{
|
|
91060
|
-
accessorKey: "ShipToName",
|
|
91061
|
-
header: "Ship To Name",
|
|
91062
|
-
cell: ({ row: f }) => f.original.ShipToName ?? "—",
|
|
91063
|
-
enableSorting: !0,
|
|
91064
|
-
enableFiltering: !0
|
|
91065
|
-
},
|
|
91066
|
-
{
|
|
91067
|
-
accessorKey: "QuantityOrdered",
|
|
91068
|
-
header: "Quantity Ordered",
|
|
91069
|
-
cell: ({ row: f }) => f.original.QuantityOrdered ?? 0,
|
|
91070
|
-
enableSorting: !0,
|
|
91071
|
-
enableFiltering: !0
|
|
91072
|
-
},
|
|
91073
|
-
{
|
|
91074
|
-
accessorKey: "UnitPrice",
|
|
91075
|
-
header: "Unit Price",
|
|
91076
|
-
cell: ({ row: f }) => formatMoney(f.original.UnitPrice ?? 0),
|
|
91077
|
-
enableSorting: !0,
|
|
91078
|
-
enableFiltering: !0
|
|
91079
|
-
},
|
|
91080
|
-
{
|
|
91081
|
-
accessorKey: "Location",
|
|
91082
|
-
header: "Location",
|
|
91083
|
-
cell: ({ row: f }) => f.original.Location ?? "—",
|
|
91084
|
-
enableSorting: !0,
|
|
91085
|
-
enableFiltering: !0
|
|
91086
|
-
}
|
|
91087
|
-
],
|
|
91088
|
-
[t]
|
|
91089
|
-
), l = useMemo(() => {
|
|
91090
|
-
const f = {};
|
|
91091
|
-
if (e) {
|
|
91092
|
-
const g = Array.from(
|
|
91093
|
-
new Set(e.map((E) => E.ShipToName).filter((E) => E != null))
|
|
91094
|
-
);
|
|
91095
|
-
f.ShipToName = g;
|
|
91096
|
-
const b = Array.from(
|
|
91097
|
-
new Set(e.map((E) => E.InvoiceNumber).filter((E) => E != null))
|
|
91098
|
-
);
|
|
91099
|
-
f.InvoiceNumber = b;
|
|
91100
|
-
const S = Array.from(
|
|
91101
|
-
new Set(e.map((E) => E.OrderNumber).filter((E) => E != null))
|
|
91102
|
-
);
|
|
91103
|
-
f.OrderNumber = S;
|
|
91104
|
-
const _ = Array.from(
|
|
91105
|
-
new Set(e.map((E) => E.PONumber).filter((E) => E != null))
|
|
91106
|
-
);
|
|
91107
|
-
f.PONumber = _;
|
|
91108
|
-
const C = Array.from(
|
|
91109
|
-
new Set(e.map((E) => E.Location).filter((E) => E != null))
|
|
91110
|
-
);
|
|
91111
|
-
f.Location = C;
|
|
91112
|
-
}
|
|
91113
|
-
return f;
|
|
91114
|
-
}, [e]);
|
|
91115
|
-
return /* @__PURE__ */ jsx(
|
|
91116
|
-
DataTable,
|
|
91117
|
-
{
|
|
91118
|
-
columns: o,
|
|
91119
|
-
data: e || [],
|
|
91120
|
-
uniqueValues: l,
|
|
91121
|
-
loading: n,
|
|
91122
|
-
tableClass: "bg-card text-card-foreground"
|
|
91123
|
-
}
|
|
91124
|
-
);
|
|
91125
|
-
}
|
|
91126
91031
|
function ProductOverviewPage({
|
|
91127
91032
|
applicationId: t,
|
|
91128
91033
|
sku: e,
|
|
@@ -91279,28 +91184,28 @@ function ProductOverviewPage({
|
|
|
91279
91184
|
/* @__PURE__ */ jsx(
|
|
91280
91185
|
TabsTrigger,
|
|
91281
91186
|
{
|
|
91282
|
-
value: "orders-tab",
|
|
91187
|
+
value: "active-orders-tab",
|
|
91283
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",
|
|
91284
91189
|
disabled: (((Q = S == null ? void 0 : S.ActiveOrderDetails) == null ? void 0 : Q.length) ?? 0) <= 0,
|
|
91285
|
-
children: "Orders"
|
|
91190
|
+
children: "Active Orders"
|
|
91286
91191
|
}
|
|
91287
91192
|
),
|
|
91288
91193
|
/* @__PURE__ */ jsx(
|
|
91289
91194
|
TabsTrigger,
|
|
91290
91195
|
{
|
|
91291
|
-
value: "
|
|
91196
|
+
value: "completed-orders-tab",
|
|
91292
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",
|
|
91293
|
-
disabled: (((F = S == null ? void 0 : S.
|
|
91294
|
-
children: "
|
|
91198
|
+
disabled: (((F = S == null ? void 0 : S.CompletedOrderDetails) == null ? void 0 : F.length) ?? 0) <= 0,
|
|
91199
|
+
children: "Completed Orders"
|
|
91295
91200
|
}
|
|
91296
91201
|
),
|
|
91297
91202
|
/* @__PURE__ */ jsx(
|
|
91298
91203
|
TabsTrigger,
|
|
91299
91204
|
{
|
|
91300
|
-
value: "
|
|
91205
|
+
value: "returns-tab",
|
|
91301
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",
|
|
91302
|
-
disabled: (((j = S == null ? void 0 : S.
|
|
91303
|
-
children: "
|
|
91207
|
+
disabled: (((j = S == null ? void 0 : S.Returns) == null ? void 0 : j.length) ?? 0) <= 0,
|
|
91208
|
+
children: "Returns"
|
|
91304
91209
|
}
|
|
91305
91210
|
),
|
|
91306
91211
|
/* @__PURE__ */ jsx(
|
|
@@ -91335,28 +91240,29 @@ function ProductOverviewPage({
|
|
|
91335
91240
|
loading: b
|
|
91336
91241
|
}
|
|
91337
91242
|
) }) }),
|
|
91338
|
-
/* @__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(
|
|
91339
91244
|
OrdersCard,
|
|
91340
91245
|
{
|
|
91341
91246
|
applicationId: t,
|
|
91342
|
-
title: "
|
|
91247
|
+
title: "Active Orders",
|
|
91343
91248
|
orders: S == null ? void 0 : S.ActiveOrderDetails,
|
|
91344
91249
|
loading: _
|
|
91345
91250
|
}
|
|
91346
91251
|
) }) }),
|
|
91347
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "
|
|
91348
|
-
|
|
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,
|
|
91349
91254
|
{
|
|
91350
91255
|
applicationId: t,
|
|
91351
|
-
|
|
91256
|
+
title: "Completed Orders",
|
|
91257
|
+
orders: S == null ? void 0 : S.CompletedOrderDetails,
|
|
91352
91258
|
loading: _
|
|
91353
91259
|
}
|
|
91354
91260
|
) }) }),
|
|
91355
|
-
/* @__PURE__ */ jsx(TabsContent, { value: "
|
|
91356
|
-
|
|
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,
|
|
91357
91263
|
{
|
|
91358
91264
|
applicationId: t,
|
|
91359
|
-
|
|
91265
|
+
returns: S == null ? void 0 : S.Returns,
|
|
91360
91266
|
loading: _
|
|
91361
91267
|
}
|
|
91362
91268
|
) }) }),
|