@wix/stores 1.0.967 → 1.0.969
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/_sdk-exports/{context-product-by-id-context-provider → context-product-by-id}/runtime.js +2 -2
- package/_sdk-exports/{context-product-by-slug-context-provider → context-product-by-slug}/runtime.js +2 -2
- package/_sdk-exports/context-product-item/runtime.js +2 -0
- package/build/cjs/{context-category-by-id-context-provider.js → context-category-by-id.js} +6 -6
- package/build/cjs/context-category-by-id.js.map +1 -0
- package/build/cjs/{context-category-by-slug-context-provider.js → context-category-by-slug.js} +6 -6
- package/build/cjs/context-category-by-slug.js.map +1 -0
- package/build/cjs/{context-category-info-context-provider.js → context-category-info.js} +6 -6
- package/build/cjs/context-category-info.js.map +1 -0
- package/build/cjs/{context-category-list-context-provider.js → context-category-list.js} +6 -6
- package/build/cjs/context-category-list.js.map +1 -0
- package/build/cjs/{context-product-by-id-context-provider.js → context-product-by-id.js} +427 -421
- package/build/cjs/context-product-by-id.js.map +1 -0
- package/build/cjs/{context-product-by-slug-context-provider.js → context-product-by-slug.js} +440 -434
- package/build/cjs/context-product-by-slug.js.map +1 -0
- package/build/cjs/{context-product-item-context-provider.js → context-product-item.js} +398 -392
- package/build/cjs/context-product-item.js.map +1 -0
- package/build/cjs/{context-product-list-context-provider.js → context-product-list.js} +6 -6
- package/build/cjs/context-product-list.js.map +1 -0
- package/build/cjs/{context-product-context-provider.js → context-product.js} +6 -6
- package/build/cjs/context-product.js.map +1 -0
- package/build/cjs/{context-promotion-item-context-provider.js → context-promotion-item.js} +6 -6
- package/build/cjs/context-promotion-item.js.map +1 -0
- package/build/es/{context-category-by-id-context-provider.mjs → context-category-by-id.mjs} +2 -2
- package/build/es/context-category-by-id.mjs.map +1 -0
- package/build/es/{context-category-by-slug-context-provider.mjs → context-category-by-slug.mjs} +2 -2
- package/build/es/context-category-by-slug.mjs.map +1 -0
- package/build/es/{context-category-info-context-provider.mjs → context-category-info.mjs} +2 -2
- package/build/es/context-category-info.mjs.map +1 -0
- package/build/es/{context-category-list-context-provider.mjs → context-category-list.mjs} +2 -2
- package/build/es/context-category-list.mjs.map +1 -0
- package/build/es/{context-product-by-id-context-provider.mjs → context-product-by-id.mjs} +422 -416
- package/build/es/context-product-by-id.mjs.map +1 -0
- package/build/es/{context-product-by-slug-context-provider.mjs → context-product-by-slug.mjs} +435 -429
- package/build/es/context-product-by-slug.mjs.map +1 -0
- package/build/es/{context-product-item-context-provider.mjs → context-product-item.mjs} +394 -388
- package/build/es/context-product-item.mjs.map +1 -0
- package/build/es/{context-product-list-context-provider.mjs → context-product-list.mjs} +2 -2
- package/build/es/context-product-list.mjs.map +1 -0
- package/build/es/{context-product-context-provider.mjs → context-product.mjs} +2 -2
- package/build/es/context-product.mjs.map +1 -0
- package/build/es/{context-promotion-item-context-provider.mjs → context-promotion-item.mjs} +2 -2
- package/build/es/context-promotion-item.mjs.map +1 -0
- package/category-by-id-context-provider/package.json +1 -1
- package/category-by-slug-context-provider/package.json +1 -1
- package/category-info-context-provider/package.json +1 -1
- package/category-list-context-provider/package.json +1 -1
- package/context/category-by-id/package.json +3 -0
- package/context/category-by-slug/package.json +3 -0
- package/context/category-info/package.json +3 -0
- package/context/category-list/package.json +3 -0
- package/context/product/package.json +3 -0
- package/context/product-by-id/package.json +3 -0
- package/context/product-by-slug/package.json +3 -0
- package/context/product-item/package.json +3 -0
- package/context/product-list/package.json +3 -0
- package/context/promotion-item/package.json +3 -0
- package/package.json +83 -83
- package/product-by-id-context-provider/package.json +1 -1
- package/product-by-slug-context-provider/package.json +1 -1
- package/product-context-provider/package.json +1 -1
- package/product-item-context-provider/package.json +1 -1
- package/product-list-context-provider/package.json +1 -1
- package/promotion-item-context-provider/package.json +1 -1
- package/_sdk-exports/context-product-item-context-provider/runtime.js +0 -2
- package/build/cjs/context-category-by-id-context-provider.js.map +0 -1
- package/build/cjs/context-category-by-slug-context-provider.js.map +0 -1
- package/build/cjs/context-category-info-context-provider.js.map +0 -1
- package/build/cjs/context-category-list-context-provider.js.map +0 -1
- package/build/cjs/context-product-by-id-context-provider.js.map +0 -1
- package/build/cjs/context-product-by-slug-context-provider.js.map +0 -1
- package/build/cjs/context-product-context-provider.js.map +0 -1
- package/build/cjs/context-product-item-context-provider.js.map +0 -1
- package/build/cjs/context-product-list-context-provider.js.map +0 -1
- package/build/cjs/context-promotion-item-context-provider.js.map +0 -1
- package/build/es/context-category-by-id-context-provider.mjs.map +0 -1
- package/build/es/context-category-by-slug-context-provider.mjs.map +0 -1
- package/build/es/context-category-info-context-provider.mjs.map +0 -1
- package/build/es/context-category-list-context-provider.mjs.map +0 -1
- package/build/es/context-product-by-id-context-provider.mjs.map +0 -1
- package/build/es/context-product-by-slug-context-provider.mjs.map +0 -1
- package/build/es/context-product-context-provider.mjs.map +0 -1
- package/build/es/context-product-item-context-provider.mjs.map +0 -1
- package/build/es/context-product-list-context-provider.mjs.map +0 -1
- package/build/es/context-promotion-item-context-provider.mjs.map +0 -1
- package/context/category-by-id-context-provider/package.json +0 -3
- package/context/category-by-slug-context-provider/package.json +0 -3
- package/context/category-info-context-provider/package.json +0 -3
- package/context/category-list-context-provider/package.json +0 -3
- package/context/product-by-id-context-provider/package.json +0 -3
- package/context/product-by-slug-context-provider/package.json +0 -3
- package/context/product-context-provider/package.json +0 -3
- package/context/product-item-context-provider/package.json +0 -3
- package/context/product-list-context-provider/package.json +0 -3
- package/context/promotion-item-context-provider/package.json +0 -3
- /package/_sdk-exports/{context-category-by-id-context-provider → context-category-by-id}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-category-by-id-context-provider → context-category-by-id}/runtime.js +0 -0
- /package/_sdk-exports/{context-category-by-slug-context-provider → context-category-by-slug}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-category-by-slug-context-provider → context-category-by-slug}/runtime.js +0 -0
- /package/_sdk-exports/{context-category-info-context-provider → context-category-info}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-category-info-context-provider → context-category-info}/runtime.js +0 -0
- /package/_sdk-exports/{context-category-list-context-provider → context-category-list}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-category-list-context-provider → context-category-list}/runtime.js +0 -0
- /package/_sdk-exports/{context-product-context-provider → context-product}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-product-context-provider → context-product}/runtime.js +0 -0
- /package/_sdk-exports/{context-product-by-id-context-provider → context-product-by-id}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-product-by-slug-context-provider → context-product-by-slug}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-product-item-context-provider → context-product-item}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-product-list-context-provider → context-product-list}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-product-list-context-provider → context-product-list}/runtime.js +0 -0
- /package/_sdk-exports/{context-promotion-item-context-provider → context-promotion-item}/runtime.d.ts +0 -0
- /package/_sdk-exports/{context-promotion-item-context-provider → context-promotion-item}/runtime.js +0 -0
- /package/build/cjs/{context-category-by-id-context-provider.d.ts → context-category-by-id.d.ts} +0 -0
- /package/build/cjs/{context-category-by-slug-context-provider.d.ts → context-category-by-slug.d.ts} +0 -0
- /package/build/cjs/{context-category-info-context-provider.d.ts → context-category-info.d.ts} +0 -0
- /package/build/cjs/{context-category-list-context-provider.d.ts → context-category-list.d.ts} +0 -0
- /package/build/cjs/{context-product-by-id-context-provider.d.ts → context-product-by-id.d.ts} +0 -0
- /package/build/cjs/{context-product-by-slug-context-provider.d.ts → context-product-by-slug.d.ts} +0 -0
- /package/build/cjs/{context-product-item-context-provider.d.ts → context-product-item.d.ts} +0 -0
- /package/build/cjs/{context-product-list-context-provider.d.ts → context-product-list.d.ts} +0 -0
- /package/build/cjs/{context-product-context-provider.d.ts → context-product.d.ts} +0 -0
- /package/build/cjs/{context-promotion-item-context-provider.d.ts → context-promotion-item.d.ts} +0 -0
- /package/build/es/{context-category-by-id-context-provider.d.mts → context-category-by-id.d.mts} +0 -0
- /package/build/es/{context-category-by-slug-context-provider.d.mts → context-category-by-slug.d.mts} +0 -0
- /package/build/es/{context-category-info-context-provider.d.mts → context-category-info.d.mts} +0 -0
- /package/build/es/{context-category-list-context-provider.d.mts → context-category-list.d.mts} +0 -0
- /package/build/es/{context-product-by-id-context-provider.d.mts → context-product-by-id.d.mts} +0 -0
- /package/build/es/{context-product-by-slug-context-provider.d.mts → context-product-by-slug.d.mts} +0 -0
- /package/build/es/{context-product-item-context-provider.d.mts → context-product-item.d.mts} +0 -0
- /package/build/es/{context-product-list-context-provider.d.mts → context-product-list.d.mts} +0 -0
- /package/build/es/{context-product-context-provider.d.mts → context-product.d.mts} +0 -0
- /package/build/es/{context-promotion-item-context-provider.d.mts → context-promotion-item.d.mts} +0 -0
- /package/build/internal/cjs/{context-category-by-id-context-provider.d.ts → context-category-by-id.d.ts} +0 -0
- /package/build/internal/cjs/{context-category-by-slug-context-provider.d.ts → context-category-by-slug.d.ts} +0 -0
- /package/build/internal/cjs/{context-category-info-context-provider.d.ts → context-category-info.d.ts} +0 -0
- /package/build/internal/cjs/{context-category-list-context-provider.d.ts → context-category-list.d.ts} +0 -0
- /package/build/internal/cjs/{context-product-by-id-context-provider.d.ts → context-product-by-id.d.ts} +0 -0
- /package/build/internal/cjs/{context-product-by-slug-context-provider.d.ts → context-product-by-slug.d.ts} +0 -0
- /package/build/internal/cjs/{context-product-item-context-provider.d.ts → context-product-item.d.ts} +0 -0
- /package/build/internal/cjs/{context-product-list-context-provider.d.ts → context-product-list.d.ts} +0 -0
- /package/build/internal/cjs/{context-product-context-provider.d.ts → context-product.d.ts} +0 -0
- /package/build/internal/cjs/{context-promotion-item-context-provider.d.ts → context-promotion-item.d.ts} +0 -0
- /package/build/internal/es/{context-category-by-id-context-provider.d.mts → context-category-by-id.d.mts} +0 -0
- /package/build/internal/es/{context-category-by-slug-context-provider.d.mts → context-category-by-slug.d.mts} +0 -0
- /package/build/internal/es/{context-category-info-context-provider.d.mts → context-category-info.d.mts} +0 -0
- /package/build/internal/es/{context-category-list-context-provider.d.mts → context-category-list.d.mts} +0 -0
- /package/build/internal/es/{context-product-by-id-context-provider.d.mts → context-product-by-id.d.mts} +0 -0
- /package/build/internal/es/{context-product-by-slug-context-provider.d.mts → context-product-by-slug.d.mts} +0 -0
- /package/build/internal/es/{context-product-item-context-provider.d.mts → context-product-item.d.mts} +0 -0
- /package/build/internal/es/{context-product-list-context-provider.d.mts → context-product-list.d.mts} +0 -0
- /package/build/internal/es/{context-product-context-provider.d.mts → context-product.d.mts} +0 -0
- /package/build/internal/es/{context-promotion-item-context-provider.d.mts → context-promotion-item.d.mts} +0 -0
|
@@ -27,18 +27,18 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
27
27
|
));
|
|
28
28
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
29
|
|
|
30
|
-
// context-product-item
|
|
31
|
-
var
|
|
32
|
-
__export(
|
|
33
|
-
ProductItemContextProvider: () =>
|
|
34
|
-
default: () =>
|
|
35
|
-
injectAccessTokenGetter: () =>
|
|
36
|
-
useProductItemContext: () =>
|
|
37
|
-
useProductItemContextValue: () =>
|
|
30
|
+
// context-product-item.ts
|
|
31
|
+
var context_product_item_exports = {};
|
|
32
|
+
__export(context_product_item_exports, {
|
|
33
|
+
ProductItemContextProvider: () => xu,
|
|
34
|
+
default: () => xu,
|
|
35
|
+
injectAccessTokenGetter: () => Su,
|
|
36
|
+
useProductItemContext: () => vu,
|
|
37
|
+
useProductItemContextValue: () => yu
|
|
38
38
|
});
|
|
39
|
-
module.exports = __toCommonJS(
|
|
39
|
+
module.exports = __toCommonJS(context_product_item_exports);
|
|
40
40
|
|
|
41
|
-
// _sdk-exports/context-product-item
|
|
41
|
+
// _sdk-exports/context-product-item/runtime.js
|
|
42
42
|
var e = __toESM(require("react"));
|
|
43
43
|
var import_react = require("react");
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -544,14 +544,14 @@ var Ze = qe;
|
|
|
544
544
|
function Qe(e2, t2) {
|
|
545
545
|
return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function $e(e2, { transformSystemFields: t2 = true } = {}) {
|
|
548
548
|
return t2 ? Qe(e2, Ze) : e2;
|
|
549
549
|
}
|
|
550
|
-
var
|
|
551
|
-
function et(e2, t2, n2) {
|
|
552
|
-
return (e2 === $e || e2.endsWith(`.${$e}`)) && typeof t2 == `string` ? Qe(t2, n2) : t2;
|
|
553
|
-
}
|
|
550
|
+
var et = `sort.fieldName`;
|
|
554
551
|
function tt(e2, t2, n2) {
|
|
552
|
+
return (e2 === et || e2.endsWith(`.${et}`)) && typeof t2 == `string` ? Qe(t2, n2) : t2;
|
|
553
|
+
}
|
|
554
|
+
function nt(e2, t2, n2) {
|
|
555
555
|
let r2 = (e3) => n2.includes(e3), i2 = (e3, n3) => {
|
|
556
556
|
if (Array.isArray(e3)) e3.forEach((e4) => {
|
|
557
557
|
i2(e4, n3);
|
|
@@ -561,22 +561,22 @@ function tt(e2, t2, n2) {
|
|
|
561
561
|
Object.keys(a2).forEach((e4) => {
|
|
562
562
|
let o2 = n3 === `` ? e4 : `${n3}.${e4}`;
|
|
563
563
|
if (r2(o2)) return;
|
|
564
|
-
let s2 =
|
|
565
|
-
s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] =
|
|
564
|
+
let s2 = rt(e4, t2);
|
|
565
|
+
s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = tt(o2, a2[s2], t2), i2(a2[s2], o2);
|
|
566
566
|
});
|
|
567
567
|
}
|
|
568
568
|
};
|
|
569
569
|
return i2(e2, ``), e2;
|
|
570
570
|
}
|
|
571
|
-
function
|
|
571
|
+
function rt(e2, t2) {
|
|
572
572
|
let n2;
|
|
573
573
|
return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
576
|
-
return
|
|
575
|
+
function j(e2, t2 = []) {
|
|
576
|
+
return nt(e2, qe, t2);
|
|
577
577
|
}
|
|
578
578
|
function M(e2, t2 = []) {
|
|
579
|
-
return
|
|
579
|
+
return nt(e2, Je, t2);
|
|
580
580
|
}
|
|
581
581
|
function it(e2) {
|
|
582
582
|
return e2?.toISOString();
|
|
@@ -664,51 +664,51 @@ function wt(e2) {
|
|
|
664
664
|
var Tt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
665
665
|
var Et = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
666
666
|
var Dt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
667
|
-
function
|
|
667
|
+
function F(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
668
668
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
669
|
-
if (Tt(e2)) return
|
|
670
|
-
if (Et(e2)) return
|
|
669
|
+
if (Tt(e2)) return Ot(e2, t2, n2);
|
|
670
|
+
if (Et(e2)) return At(e2);
|
|
671
671
|
if (Dt(e2)) {
|
|
672
672
|
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: yt(n3), data: {} }, requestId: e2.requestId };
|
|
673
|
-
return
|
|
673
|
+
return kt(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
674
674
|
}
|
|
675
|
-
return
|
|
675
|
+
return jt(e2);
|
|
676
676
|
}
|
|
677
|
-
var
|
|
678
|
-
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
679
|
-
return
|
|
677
|
+
var Ot = (e2, t2, n2) => {
|
|
678
|
+
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Mt(t2, a2, n2)?.sort((e3, t3) => e3.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e3, description: t3 }) => `"${e3}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
679
|
+
return kt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
|
|
680
680
|
};
|
|
681
|
-
var
|
|
682
|
-
var
|
|
681
|
+
var kt = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
|
|
682
|
+
var At = (e2) => {
|
|
683
683
|
let t2 = e2.response?.status, n2 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n2, i2 = e2.response?.data?.details?.applicationError?.description ?? n2, a2 = e2.response?.data?.details?.applicationError?.code ?? yt(n2), o2 = e2.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e2.requestId };
|
|
684
|
-
return
|
|
684
|
+
return kt(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
var
|
|
686
|
+
var jt = (e2) => kt(e2, { message: e2.requestId ? `System error occurred, request-id: ${e2.requestId}` : `System error occurred: ${JSON.stringify(e2)}`, extraProperties: { requestId: e2.requestId, status: e2.response?.status, code: yt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
|
|
687
|
+
var Mt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
688
688
|
let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
|
|
689
689
|
return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
|
|
690
690
|
let r3 = t2[e3.field];
|
|
691
|
-
if (r3) return { ...e3, field:
|
|
691
|
+
if (r3) return { ...e3, field: Nt(r3, i2) };
|
|
692
692
|
let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
|
|
693
693
|
if (s2) {
|
|
694
694
|
let t3 = a2[s2];
|
|
695
|
-
if (t3) return { ...e3, field: e3.field.replace(s2,
|
|
695
|
+
if (t3) return { ...e3, field: e3.field.replace(s2, Nt(t3, i2)) };
|
|
696
696
|
}
|
|
697
697
|
return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
|
|
698
698
|
});
|
|
699
699
|
};
|
|
700
|
-
var
|
|
701
|
-
let n2 =
|
|
700
|
+
var Nt = (e2, t2) => {
|
|
701
|
+
let n2 = Pt(e2);
|
|
702
702
|
return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
|
|
703
703
|
};
|
|
704
|
-
var
|
|
704
|
+
var Pt = (e2) => {
|
|
705
705
|
let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
|
|
706
706
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function Ft() {
|
|
709
709
|
let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
710
710
|
if (e2) return { initWixModules(t3, n3) {
|
|
711
|
-
return
|
|
711
|
+
return It(() => e2(t3, n3));
|
|
712
712
|
}, fetchWithAuth() {
|
|
713
713
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
714
714
|
}, graphql() {
|
|
@@ -718,10 +718,10 @@ function It() {
|
|
|
718
718
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
719
719
|
if (r2) {
|
|
720
720
|
if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
|
|
721
|
-
return
|
|
721
|
+
return It(() => n2.use(e3));
|
|
722
722
|
}
|
|
723
723
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
724
|
-
return
|
|
724
|
+
return It(() => t2.use(e3));
|
|
725
725
|
}, fetchWithAuth: (e3, n3) => {
|
|
726
726
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
727
727
|
return t2.fetchWithAuth(e3, n3);
|
|
@@ -733,7 +733,7 @@ function It() {
|
|
|
733
733
|
return t2.graphql(e3, n3, r2);
|
|
734
734
|
} };
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function It(e2) {
|
|
737
737
|
let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
|
|
738
738
|
globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
739
739
|
try {
|
|
@@ -742,108 +742,108 @@ function Lt(e2) {
|
|
|
742
742
|
globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Lt(e2, t2) {
|
|
746
746
|
return (...n2) => {
|
|
747
|
-
let r2 =
|
|
747
|
+
let r2 = Ft();
|
|
748
748
|
return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function Rt(e2) {
|
|
752
752
|
let t2 = (...t3) => {
|
|
753
|
-
let n2 =
|
|
753
|
+
let n2 = Ft();
|
|
754
754
|
return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
|
|
755
755
|
};
|
|
756
756
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
758
|
+
function zt(e2, t2 = false) {
|
|
759
|
+
return Lt(e2, t2);
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
let n2 =
|
|
763
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
761
|
+
function Bt(e2, t2) {
|
|
762
|
+
let n2 = Ht(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
763
|
+
return t2 && r2 ? new URLSearchParams({ ".r": Wt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
764
764
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
765
765
|
}), e3), new URLSearchParams());
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
let t2 =
|
|
769
|
-
return
|
|
767
|
+
function Vt(e2) {
|
|
768
|
+
let t2 = rn(tn(e2.host), e2.domainToMappings);
|
|
769
|
+
return pn(un(e2.protoPath, e2.data || {}), t2);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Ht(e2, t2 = ``) {
|
|
772
772
|
let n2 = {};
|
|
773
773
|
return Object.entries(e2).forEach(([e3, r2]) => {
|
|
774
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
774
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Ut(t2, e3);
|
|
775
775
|
if (i2) {
|
|
776
|
-
let e4 =
|
|
776
|
+
let e4 = Ht(r2, a2);
|
|
777
777
|
Object.assign(n2, e4);
|
|
778
778
|
} else n2[a2] = r2;
|
|
779
779
|
}), n2;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Ut(e2, t2) {
|
|
782
782
|
return `${e2}${e2 ? `.` : ``}${t2}`;
|
|
783
783
|
}
|
|
784
|
-
var
|
|
784
|
+
var Wt = (e2) => {
|
|
785
785
|
let t2 = new TextEncoder().encode(e2);
|
|
786
786
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
787
787
|
};
|
|
788
|
-
var
|
|
789
|
-
var
|
|
790
|
-
var
|
|
791
|
-
var
|
|
792
|
-
var
|
|
793
|
-
var
|
|
794
|
-
var
|
|
795
|
-
var
|
|
796
|
-
var
|
|
797
|
-
var
|
|
798
|
-
function
|
|
799
|
-
return
|
|
788
|
+
var Gt = [`wix.com`, `editorx.com`];
|
|
789
|
+
var Kt = `_`;
|
|
790
|
+
var qt = `*.`;
|
|
791
|
+
var Jt = RegExp(`\\.(${Gt.join(`|`)})$`);
|
|
792
|
+
var Yt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
793
|
+
var Xt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
794
|
+
var Zt = `dev.wix-code.com`;
|
|
795
|
+
var Qt = /{(.*)}/;
|
|
796
|
+
var $t = RegExp(`\\.(${Yt.join(`|`)})$`);
|
|
797
|
+
var en = RegExp(`.*\\.${Zt}$`);
|
|
798
|
+
function tn(e2) {
|
|
799
|
+
return nn(e2).replace(Jt, `._base_domain_`).replace($t, `._api_base_domain_`).replace(en, `*.dev.wix-code.com`);
|
|
800
800
|
}
|
|
801
|
-
function
|
|
802
|
-
return
|
|
801
|
+
function nn(e2) {
|
|
802
|
+
return Xt[e2] ?? e2;
|
|
803
803
|
}
|
|
804
|
-
function
|
|
804
|
+
function rn(e2, t2) {
|
|
805
805
|
let n2 = t2[e2];
|
|
806
806
|
if (n2) return n2;
|
|
807
|
-
let r2 =
|
|
807
|
+
let r2 = an(e2, t2) ?? on(e2, t2);
|
|
808
808
|
if (!r2) {
|
|
809
|
-
if (
|
|
810
|
-
let e3 = t2[
|
|
809
|
+
if (cn(e2)) {
|
|
810
|
+
let e3 = t2[ln];
|
|
811
811
|
if (e3) return e3;
|
|
812
812
|
}
|
|
813
|
-
let n3 = t2[
|
|
813
|
+
let n3 = t2[Kt];
|
|
814
814
|
if (n3) return n3;
|
|
815
815
|
}
|
|
816
816
|
return r2 ?? [];
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function an(e2, t2) {
|
|
819
819
|
return Object.entries(t2).find(([t3]) => {
|
|
820
820
|
let [, ...n2] = e2.split(`.`);
|
|
821
821
|
return n2.join(`.`) === t3;
|
|
822
822
|
})?.[1];
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
824
|
+
function on(e2, t2) {
|
|
825
|
+
let [n2] = Object.entries(t2).filter(([t3]) => sn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
|
|
826
826
|
if (!n2) return;
|
|
827
827
|
let [, r2] = n2;
|
|
828
828
|
return r2;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
if (!t2.startsWith(
|
|
830
|
+
function sn(e2, t2) {
|
|
831
|
+
if (!t2.startsWith(qt)) return false;
|
|
832
832
|
let n2 = t2.slice(1);
|
|
833
833
|
return e2.length > n2.length && e2.endsWith(n2);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function cn(e2) {
|
|
836
836
|
return !!e2.match(/\._base_domain_$/);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
function
|
|
840
|
-
return e2.split(`/`).map((e3) =>
|
|
838
|
+
var ln = `www._base_domain_`;
|
|
839
|
+
function un(e2, t2) {
|
|
840
|
+
return e2.split(`/`).map((e3) => dn(e3, t2)).join(`/`);
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
let n2 = e2.match(
|
|
844
|
-
return r2 ?
|
|
842
|
+
function dn(e2, t2) {
|
|
843
|
+
let n2 = e2.match(Qt) || [], r2 = n2[1];
|
|
844
|
+
return r2 ? fn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
845
845
|
}
|
|
846
|
-
function
|
|
846
|
+
function fn(e2, t2, n2, r2) {
|
|
847
847
|
let i2 = e2;
|
|
848
848
|
for (let e3 of t2.split(`.`)) {
|
|
849
849
|
if (!i2) return n2;
|
|
@@ -851,17 +851,17 @@ function pn(e2, t2, n2, r2) {
|
|
|
851
851
|
}
|
|
852
852
|
return `${i2}${r2}`;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function pn(e2, t2) {
|
|
855
855
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
856
856
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
return
|
|
858
|
+
function I(e2) {
|
|
859
|
+
return Rt(e2);
|
|
860
860
|
}
|
|
861
|
-
function
|
|
861
|
+
function mn(e2) {
|
|
862
862
|
return isFinite(e2) ? e2 : e2.toString();
|
|
863
863
|
}
|
|
864
|
-
function
|
|
864
|
+
function hn(e2) {
|
|
865
865
|
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
866
866
|
}
|
|
867
867
|
function gn(e2) {
|
|
@@ -3189,61 +3189,61 @@ var mo = v(co(), 1);
|
|
|
3189
3189
|
var ho = v(uo(), 1);
|
|
3190
3190
|
var go = v(fo(), 1);
|
|
3191
3191
|
var _o = ({ price: e2 }) => e2.actualPrice;
|
|
3192
|
-
function
|
|
3192
|
+
function q(e2) {
|
|
3193
3193
|
return e2.priceAfterDiscount === void 0 ? { currentSellingPrice: e2.actualPrice, priceBeforeDiscount: e2.compareAtPrice, pricePerUnit: e2.pricePerUnit } : { currentSellingPrice: e2.priceAfterDiscount, priceBeforeDiscount: e2.actualPrice, pricePerUnit: e2.pricePerUnit };
|
|
3194
3194
|
}
|
|
3195
|
-
function
|
|
3195
|
+
function vo(e2, t2) {
|
|
3196
3196
|
let n2 = e2.subscriptionPrices.find((e3) => e3.subscriptionId === t2);
|
|
3197
3197
|
if (!n2) throw Error(`Missing subscription price for plan ${t2} on variant ${e2.id}`);
|
|
3198
3198
|
let r2 = n2.price;
|
|
3199
3199
|
return { currentSellingPrice: r2, priceBeforeDiscount: r2 < e2.price.actualPrice ? e2.price.actualPrice : void 0 };
|
|
3200
3200
|
}
|
|
3201
|
-
function
|
|
3202
|
-
let t2 = (0, go.default)(e2, _o), n2 = (0, mo.default)(e2, _o), r2 = e2.map(({ price: e3 }) =>
|
|
3201
|
+
function yo(e2) {
|
|
3202
|
+
let t2 = (0, go.default)(e2, _o), n2 = (0, mo.default)(e2, _o), r2 = e2.map(({ price: e3 }) => q(e3)), i2 = q(t2.price), a2 = q(n2.price), o2 = r2.flatMap(({ priceBeforeDiscount: e3 }) => e3 === void 0 ? [] : [e3]);
|
|
3203
3203
|
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0, ho.default)(o2), maxPriceBeforeDiscount: (0, po.default)(o2), minPricePerUnit: i2.pricePerUnit, maxPricePerUnit: a2.pricePerUnit };
|
|
3204
3204
|
}
|
|
3205
|
-
function
|
|
3206
|
-
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price:
|
|
3205
|
+
function bo(e2, t2) {
|
|
3206
|
+
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: vo(t2, e3.id) }));
|
|
3207
3207
|
}
|
|
3208
|
-
function
|
|
3208
|
+
function xo(e2) {
|
|
3209
3209
|
return { productPrice: { currentSellingPrice: void 0 }, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: { currentSellingPrice: void 0 } })), productPriceRange: { minCurrentSellingPrice: void 0, maxCurrentSellingPrice: void 0 } };
|
|
3210
3210
|
}
|
|
3211
|
-
function
|
|
3212
|
-
if (!e2.minPriceVariant) return
|
|
3213
|
-
let t2 =
|
|
3211
|
+
function So(e2) {
|
|
3212
|
+
if (!e2.minPriceVariant) return xo(e2);
|
|
3213
|
+
let t2 = q(e2.minPriceVariant.price), n2 = e2.minPriceVariant.price.priceAfterDiscount !== void 0;
|
|
3214
3214
|
return { productPrice: t2, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: {} })), productPriceRange: { minCurrentSellingPrice: t2.currentSellingPrice, maxCurrentSellingPrice: n2 ? void 0 : e2.priceRange.maxActualPrice, minPriceBeforeDiscount: t2.priceBeforeDiscount, maxPriceBeforeDiscount: n2 ? e2.priceRange.maxActualPrice : e2.priceRange.maxCompareAtPrice, minPricePerUnit: t2.pricePerUnit } };
|
|
3215
3215
|
}
|
|
3216
|
-
function
|
|
3217
|
-
if (!n2) return
|
|
3216
|
+
function Co(e2, t2, n2) {
|
|
3217
|
+
if (!n2) return So(e2);
|
|
3218
3218
|
let r2 = (0, go.default)(e2.variants, _o), i2 = t2 ?? r2;
|
|
3219
|
-
return i2 ? { productPrice:
|
|
3219
|
+
return i2 ? { productPrice: q(i2.price), subscriptionPlanPrices: bo(e2, i2), productPriceRange: yo(e2.variants) } : xo(e2);
|
|
3220
3220
|
}
|
|
3221
|
-
function
|
|
3221
|
+
function wo(e2, t2) {
|
|
3222
3222
|
let n2 = e2.subscriptionPlanPrices.find(({ subscription: e3 }) => e3.id === t2);
|
|
3223
3223
|
return n2 ? { currentSellingPrice: n2.price.currentSellingPrice, priceBeforeDiscount: n2.price.priceBeforeDiscount, pricePerUnit: e2.productPrice.pricePerUnit } : e2.productPrice;
|
|
3224
3224
|
}
|
|
3225
|
-
function
|
|
3226
|
-
return
|
|
3225
|
+
function To(e2) {
|
|
3226
|
+
return q(e2.price).currentSellingPrice;
|
|
3227
3227
|
}
|
|
3228
|
-
function
|
|
3228
|
+
function Eo(e2) {
|
|
3229
3229
|
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
3230
3230
|
}
|
|
3231
|
-
function
|
|
3231
|
+
function Do(e2) {
|
|
3232
3232
|
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
3233
3233
|
}
|
|
3234
|
-
function
|
|
3234
|
+
function Oo(e2) {
|
|
3235
3235
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
3236
3236
|
}
|
|
3237
|
-
function
|
|
3238
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
3237
|
+
function J(e2, t2) {
|
|
3238
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Eo(e2) ? e2.$and : [e2], ...Eo(t2) ? t2.$and : [t2]] };
|
|
3239
3239
|
}
|
|
3240
|
-
function
|
|
3241
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
3240
|
+
function ko(e2, t2) {
|
|
3241
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...Do(e2) ? e2.$or : [e2], ...Do(t2) ? t2.$or : [t2]] };
|
|
3242
3242
|
}
|
|
3243
|
-
function
|
|
3244
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
3243
|
+
function Ao(e2) {
|
|
3244
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Oo(e2) ? e2.$not : { $not: e2 };
|
|
3245
3245
|
}
|
|
3246
|
-
var
|
|
3246
|
+
var jo = class {
|
|
3247
3247
|
_items;
|
|
3248
3248
|
_fetchNextPage;
|
|
3249
3249
|
_fetchPrevPage;
|
|
@@ -3273,7 +3273,7 @@ var Mo = class {
|
|
|
3273
3273
|
return await this._fetchPrevPage();
|
|
3274
3274
|
}
|
|
3275
3275
|
};
|
|
3276
|
-
var
|
|
3276
|
+
var Mo = class extends jo {
|
|
3277
3277
|
_nextCursor;
|
|
3278
3278
|
_prevCursor;
|
|
3279
3279
|
cursors;
|
|
@@ -3287,7 +3287,7 @@ var No = class extends Mo {
|
|
|
3287
3287
|
return !!this._prevCursor;
|
|
3288
3288
|
}
|
|
3289
3289
|
};
|
|
3290
|
-
var
|
|
3290
|
+
var No = class extends jo {
|
|
3291
3291
|
_totalCount;
|
|
3292
3292
|
_offset;
|
|
3293
3293
|
_tooManyToCount;
|
|
@@ -3310,76 +3310,76 @@ var Po = class extends Mo {
|
|
|
3310
3310
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
3311
3311
|
}
|
|
3312
3312
|
};
|
|
3313
|
-
function
|
|
3313
|
+
function Po(e2) {
|
|
3314
3314
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
3315
3315
|
try {
|
|
3316
3316
|
let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [Ye]: a2, [Xe]: o2 } = e2.responseTransformer(i2);
|
|
3317
3317
|
if (e2.pagingMethod === `OFFSET`) {
|
|
3318
3318
|
let e3 = n2;
|
|
3319
|
-
return new
|
|
3319
|
+
return new No({ items: a2 ?? [], fetchNextPage: () => t2({ ...e3, paging: { offset: e3.paging.offset + e3.paging.limit, limit: e3.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e3.paging.offset - e3.paging.limit, 0), limit: e3.paging.limit } }).find(), offset: e3.paging.offset, limit: e3.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
3320
3320
|
}
|
|
3321
3321
|
let s2 = n2.cursorPaging;
|
|
3322
|
-
return new
|
|
3322
|
+
return new Mo({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
3323
3323
|
} catch (t3) {
|
|
3324
3324
|
throw e2.errorTransformer(t3);
|
|
3325
3325
|
}
|
|
3326
3326
|
}, skipTo(e3) {
|
|
3327
3327
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
3328
3328
|
}, eq(r2, i2) {
|
|
3329
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3330
|
-
return t2({ ...n2, filter:
|
|
3329
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e2.transformationPaths, r2)]: a2 };
|
|
3330
|
+
return t2({ ...n2, filter: J(n2.filter, o2) });
|
|
3331
3331
|
}, ne(r2, i2) {
|
|
3332
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3333
|
-
return t2({ ...n2, filter:
|
|
3332
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
3333
|
+
return t2({ ...n2, filter: J(n2.filter, o2) });
|
|
3334
3334
|
}, ge(r2, i2) {
|
|
3335
|
-
let a2 = { [
|
|
3336
|
-
return t2({ ...n2, filter:
|
|
3335
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
3336
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3337
3337
|
}, gt(r2, i2) {
|
|
3338
|
-
let a2 = { [
|
|
3339
|
-
return t2({ ...n2, filter:
|
|
3338
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
3339
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3340
3340
|
}, le(r2, i2) {
|
|
3341
|
-
let a2 = { [
|
|
3342
|
-
return t2({ ...n2, filter:
|
|
3341
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
3342
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3343
3343
|
}, lt(r2, i2) {
|
|
3344
|
-
let a2 = { [
|
|
3345
|
-
return t2({ ...n2, filter:
|
|
3344
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
3345
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3346
3346
|
}, isNotEmpty(e3) {
|
|
3347
3347
|
return this.ne(e3, null);
|
|
3348
3348
|
}, isEmpty(e3) {
|
|
3349
3349
|
return this.eq(e3, null);
|
|
3350
3350
|
}, startsWith(r2, i2) {
|
|
3351
|
-
let a2 = { [
|
|
3352
|
-
return t2({ ...n2, filter:
|
|
3351
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
3352
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3353
3353
|
}, endsWith(r2, i2) {
|
|
3354
|
-
let a2 = { [
|
|
3355
|
-
return t2({ ...n2, filter:
|
|
3354
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
3355
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3356
3356
|
}, contains(r2, i2) {
|
|
3357
|
-
let a2 = { [
|
|
3358
|
-
return t2({ ...n2, filter:
|
|
3357
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
3358
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3359
3359
|
}, hasSome(r2, ...i2) {
|
|
3360
|
-
let a2 = { [
|
|
3361
|
-
return t2({ ...n2, filter:
|
|
3360
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3361
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3362
3362
|
}, hasAll(r2, ...i2) {
|
|
3363
|
-
let a2 = { [
|
|
3364
|
-
return t2({ ...n2, filter:
|
|
3363
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3364
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3365
3365
|
}, between(e3, t3, n3) {
|
|
3366
3366
|
return this.ge(e3, t3).lt(e3, n3);
|
|
3367
3367
|
}, in(r2, i2) {
|
|
3368
|
-
let a2 = { [
|
|
3369
|
-
return t2({ ...n2, filter:
|
|
3368
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
3369
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3370
3370
|
}, exists(r2, i2 = true) {
|
|
3371
|
-
let a2 = { [
|
|
3372
|
-
return t2({ ...n2, filter:
|
|
3371
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
3372
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3373
3373
|
}, or(e3) {
|
|
3374
|
-
return t2({ ...n2, filter:
|
|
3374
|
+
return t2({ ...n2, filter: ko(n2.filter, e3.query.filter) });
|
|
3375
3375
|
}, and(e3) {
|
|
3376
|
-
return t2({ ...n2, filter:
|
|
3376
|
+
return t2({ ...n2, filter: J(n2.filter, e3.query.filter) });
|
|
3377
3377
|
}, not(e3) {
|
|
3378
|
-
return t2({ ...n2, filter:
|
|
3378
|
+
return t2({ ...n2, filter: Ao(e3.query.filter) });
|
|
3379
3379
|
}, ascending(...r2) {
|
|
3380
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3380
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
3381
3381
|
}, descending(...r2) {
|
|
3382
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3382
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
3383
3383
|
}, skip(e3) {
|
|
3384
3384
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
3385
3385
|
}, limit(r2) {
|
|
@@ -3392,28 +3392,28 @@ function Fo(e2) {
|
|
|
3392
3392
|
} });
|
|
3393
3393
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
3394
3394
|
}
|
|
3395
|
-
function
|
|
3395
|
+
function Y(e2, t2) {
|
|
3396
3396
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
3397
3397
|
return n2 ? t2.replace(n2, e2[n2]) : Qe(t2, { ...e2, ...Ze });
|
|
3398
3398
|
}
|
|
3399
|
-
function
|
|
3400
|
-
let r2 = (r3, i3) =>
|
|
3399
|
+
function Fo(e2, t2, n2 = {}) {
|
|
3400
|
+
let r2 = (r3, i3) => Fo(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [$e(e2, t2)]: n2 };
|
|
3401
3401
|
return { get filter() {
|
|
3402
3402
|
return i2();
|
|
3403
3403
|
}, eq: (e3) => r2(`$eq`, e3), ne: (e3) => r2(`$ne`, e3), gt: (e3) => r2(`$gt`, e3), gte: (e3) => r2(`$gte`, e3), lt: (e3) => r2(`$lt`, e3), lte: (e3) => r2(`$lte`, e3), startsWith: (e3) => r2(`$startsWith`, e3), endsWith: (e3) => r2(`$endsWith`, e3), contains: (e3) => r2(`$contains`, e3), in: (e3) => r2(`$in`, e3), nin: (e3) => r2(`$nin`, e3), hasSome: (e3) => r2(`$hasSome`, e3), hasAll: (e3) => r2(`$hasAll`, e3), exists: (e3 = true) => r2(`$exists`, e3), isEmpty: (e3 = true) => r2(`$isEmpty`, e3), isNotEmpty: () => r2(`$ne`, null) };
|
|
3404
3404
|
}
|
|
3405
|
+
function Io(e2) {
|
|
3406
|
+
return Object.assign((t2) => Fo(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
|
|
3407
|
+
}
|
|
3405
3408
|
function Lo(e2) {
|
|
3406
|
-
return
|
|
3409
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: $e(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: $e(t2, e2), order: `DESC` } }) });
|
|
3407
3410
|
}
|
|
3408
3411
|
function Ro(e2) {
|
|
3409
|
-
return (t2) => ({ asc: () => ({ sort: { fieldName: j(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: j(t2, e2), order: `DESC` } }) });
|
|
3410
|
-
}
|
|
3411
|
-
function zo(e2) {
|
|
3412
3412
|
return () => {
|
|
3413
3413
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
3414
3414
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
3415
3415
|
}, withFields(...r2) {
|
|
3416
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
3416
|
+
return t2 = { ...t2, fields: r2.map((t3) => $e(t3, e2)) }, n2;
|
|
3417
3417
|
}, withSorting(...e3) {
|
|
3418
3418
|
return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
|
|
3419
3419
|
}, withPaging(e3) {
|
|
@@ -3424,44 +3424,44 @@ function zo(e2) {
|
|
|
3424
3424
|
return n2;
|
|
3425
3425
|
};
|
|
3426
3426
|
}
|
|
3427
|
-
function
|
|
3428
|
-
return { QueryBuilder:
|
|
3429
|
-
}
|
|
3430
|
-
var
|
|
3431
|
-
var
|
|
3432
|
-
var
|
|
3433
|
-
var
|
|
3434
|
-
var
|
|
3435
|
-
var
|
|
3436
|
-
function
|
|
3427
|
+
function zo(e2) {
|
|
3428
|
+
return { QueryBuilder: Ro(e2), Filter: Io(e2), Sort: Lo(e2) };
|
|
3429
|
+
}
|
|
3430
|
+
var Bo = `filter`;
|
|
3431
|
+
var Vo = `sort`;
|
|
3432
|
+
var Ho = `cursorPaging`;
|
|
3433
|
+
var Uo = `paging`;
|
|
3434
|
+
var Wo = [Bo, Vo, Ho];
|
|
3435
|
+
var Go = [Bo, Vo, Uo];
|
|
3436
|
+
function Ko(e2, t2) {
|
|
3437
3437
|
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3438
3438
|
}
|
|
3439
|
+
function qo(e2) {
|
|
3440
|
+
return Ko(e2, Wo);
|
|
3441
|
+
}
|
|
3439
3442
|
function Jo(e2) {
|
|
3440
|
-
return
|
|
3443
|
+
return Ko(e2, Go);
|
|
3441
3444
|
}
|
|
3442
3445
|
function Yo(e2) {
|
|
3443
|
-
return qo(e2, Ko);
|
|
3444
|
-
}
|
|
3445
|
-
function Xo(e2) {
|
|
3446
3446
|
let { hasOptionsParameter: t2 } = e2;
|
|
3447
3447
|
return function(...n2) {
|
|
3448
|
-
return t2 ?
|
|
3448
|
+
return t2 ? Zo(n2, e2) : Xo(n2, e2);
|
|
3449
3449
|
};
|
|
3450
3450
|
}
|
|
3451
|
-
function
|
|
3451
|
+
function Xo(e2, t2) {
|
|
3452
3452
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
3453
3453
|
}
|
|
3454
|
-
function
|
|
3454
|
+
function Zo(e2, t2) {
|
|
3455
3455
|
switch (e2.length) {
|
|
3456
3456
|
case 0:
|
|
3457
3457
|
return t2.builderQueryFunction();
|
|
3458
3458
|
case 1:
|
|
3459
|
-
return
|
|
3459
|
+
return qo(e2[0]) || Jo(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
3460
3460
|
default:
|
|
3461
3461
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
3462
3462
|
}
|
|
3463
3463
|
}
|
|
3464
|
-
function
|
|
3464
|
+
function Qo(e2) {
|
|
3465
3465
|
if (!e2) return;
|
|
3466
3466
|
let t2 = _t(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = l2 && decodeURIComponent(l2);
|
|
3467
3467
|
if (n2 === `wix:`) {
|
|
@@ -3470,7 +3470,7 @@ function $o(e2) {
|
|
|
3470
3470
|
}
|
|
3471
3471
|
return { url: e2 };
|
|
3472
3472
|
}
|
|
3473
|
-
function
|
|
3473
|
+
function $o(e2) {
|
|
3474
3474
|
if (!e2) return;
|
|
3475
3475
|
let t2 = ``;
|
|
3476
3476
|
return (e2.filename || e2.altText) && (t2 = `/${encodeURIComponent(e2.filename || e2.altText)}`), e2.id ? `wix:image://v1/${e2.id}${t2}#originWidth=${e2.width}&originHeight=${e2.height}` : e2.url;
|
|
@@ -3483,7 +3483,7 @@ function es(e2) {
|
|
|
3483
3483
|
}, mode(e3) {
|
|
3484
3484
|
return t2 = { ...t2, mode: e3 }, n2;
|
|
3485
3485
|
}, fields(r2) {
|
|
3486
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
3486
|
+
return t2 = { ...t2, fields: r2.map((t3) => $e(t3, e2)) }, n2;
|
|
3487
3487
|
}, fuzzy(e3 = true) {
|
|
3488
3488
|
return t2 = { ...t2, fuzzy: e3 }, n2;
|
|
3489
3489
|
} };
|
|
@@ -3550,7 +3550,7 @@ function ss(e2, t2) {
|
|
|
3550
3550
|
}, ofType(e3) {
|
|
3551
3551
|
return n2 = { ...n2, type: e3 }, r2;
|
|
3552
3552
|
}, onField(e3) {
|
|
3553
|
-
return n2 = { ...n2, fieldPath:
|
|
3553
|
+
return n2 = { ...n2, fieldPath: $e(e3, t2) }, r2;
|
|
3554
3554
|
}, asValueAggregation() {
|
|
3555
3555
|
return ns(n2);
|
|
3556
3556
|
}, asRangeAggregation() {
|
|
@@ -3588,39 +3588,39 @@ function ls() {
|
|
|
3588
3588
|
};
|
|
3589
3589
|
}
|
|
3590
3590
|
function us(e2) {
|
|
3591
|
-
return { SearchBuilder: ls(), Filter:
|
|
3591
|
+
return { SearchBuilder: ls(), Filter: Io(e2), Sort: Lo(e2), SearchParams: ts(e2), Aggregation: cs(e2) };
|
|
3592
3592
|
}
|
|
3593
3593
|
function ds(e2) {
|
|
3594
|
-
return
|
|
3594
|
+
return Vt(Object.assign(e2, { domainToMappings: { "bo._base_domain_": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wixbo.ai": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wix-bo.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], _: [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }], "*.dev.wix-code.com": [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }] } }));
|
|
3595
3595
|
}
|
|
3596
3596
|
var fs = `@wix/auto_sdk_ecom_back-in-stock-notifications`;
|
|
3597
3597
|
function ps(e2) {
|
|
3598
3598
|
function t2({ host: t3 }) {
|
|
3599
|
-
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn:
|
|
3599
|
+
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn: mn, paths: [{ path: `itemDetails.image.focalPoint.x` }, { path: `itemDetails.image.focalPoint.y` }] }]);
|
|
3600
3600
|
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName: fs, migrationOptions: { optInTransformResponse: true }, url: ds({ protoPath: `/v1/back-in-stock-notification-requests`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `request.createdDate` }] }]) };
|
|
3601
3601
|
}
|
|
3602
3602
|
return t2;
|
|
3603
3603
|
}
|
|
3604
3604
|
async function ms(e2, t2) {
|
|
3605
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ps(P(
|
|
3605
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ps(P(j({ request: e2, itemDetails: t2 }), [{ transformFn: Qo, paths: [{ path: `itemDetails.image` }] }]));
|
|
3606
3606
|
r2?.onSiteCall?.();
|
|
3607
3607
|
try {
|
|
3608
3608
|
let e3 = await n2.request(i2);
|
|
3609
3609
|
return r2?.onSuccess?.(e3), M(e3.data)?.request;
|
|
3610
3610
|
} catch (e3) {
|
|
3611
|
-
let t3 =
|
|
3611
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { request: `$[0]`, itemDetails: `$[1]` }, singleArgumentUnchanged: false }, [`request`, `itemDetails`]);
|
|
3612
3612
|
throw r2?.onError?.(e3), t3;
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
|
-
({ ...
|
|
3615
|
+
({ ...zo() });
|
|
3616
3616
|
function hs(e2) {
|
|
3617
3617
|
return (t2, n2) => ms(t2, n2, { httpClient: e2 });
|
|
3618
3618
|
}
|
|
3619
3619
|
var gs = b(`wix.ecom.v1.back_in_stock_notification_request_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3620
3620
|
var _s = b(`wix.ecom.v1.back_in_stock_notification_request_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `undefined.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3621
3621
|
var vs = b(`wix.ecom.v1.back_in_stock_notification_request_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3622
|
-
var ys =
|
|
3623
|
-
|
|
3622
|
+
var ys = zt(hs);
|
|
3623
|
+
I(gs), I(_s), I(vs);
|
|
3624
3624
|
function bs(e2) {
|
|
3625
3625
|
if (!e2) return;
|
|
3626
3626
|
let { pathname: t2 } = new URL(e2);
|
|
@@ -3630,58 +3630,58 @@ function X(e2) {
|
|
|
3630
3630
|
if (e2) return e2.url;
|
|
3631
3631
|
}
|
|
3632
3632
|
function xs(e2) {
|
|
3633
|
-
return
|
|
3633
|
+
return Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3634
3634
|
}
|
|
3635
3635
|
var Ss = `@wix/auto_sdk_ecom_cart-v-2`;
|
|
3636
3636
|
function Cs(e2) {
|
|
3637
3637
|
function t2({ host: t3 }) {
|
|
3638
|
-
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn:
|
|
3639
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ss, migrationOptions: { optInTransformResponse: true }, url: xs({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn:
|
|
3638
|
+
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn: mn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }, { path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }]);
|
|
3639
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ss, migrationOptions: { optInTransformResponse: true }, url: xs({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: hn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3640
3640
|
}
|
|
3641
3641
|
return t2;
|
|
3642
3642
|
}
|
|
3643
3643
|
var ws = ((e2) => (e2.UNSPECIFIED = `UNSPECIFIED`, e2.WEB = `WEB`, e2.POS = `POS`, e2.EBAY = `EBAY`, e2.AMAZON = `AMAZON`, e2.OTHER_PLATFORM = `OTHER_PLATFORM`, e2.WIX_APP_STORE = `WIX_APP_STORE`, e2.WIX_INVOICES = `WIX_INVOICES`, e2.BACKOFFICE_MERCHANT = `BACKOFFICE_MERCHANT`, e2.WISH = `WISH`, e2.CLASS_PASS = `CLASS_PASS`, e2.GLOBAL_E = `GLOBAL_E`, e2.FACEBOOK = `FACEBOOK`, e2.ETSY = `ETSY`, e2.TIKTOK = `TIKTOK`, e2.FAIRE_COM = `FAIRE_COM`, e2.PAYPAL_AGENTIC_CHECKOUT = `PAYPAL_AGENTIC_CHECKOUT`, e2.STRIPE_AGENTIC_CHECKOUT = `STRIPE_AGENTIC_CHECKOUT`, e2.WIX_INVOICES_PLATFORM = `WIX_INVOICES_PLATFORM`, e2.UCP_AGENTIC_CHECKOUT = `UCP_AGENTIC_CHECKOUT`, e2))(ws || {});
|
|
3644
3644
|
async function Ts(e2) {
|
|
3645
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Cs(P(
|
|
3645
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Cs(P(j({ cart: e2?.cart, catalogItems: e2?.catalogItems, customItems: e2?.customItems, coupons: e2?.coupons, deliveryMethod: e2?.deliveryMethod, giftCards: e2?.giftCards }), [{ transformFn: Qo, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }, { path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `cart.lineItems.attributes.url` }, { path: `customItems.attributes.url` }] }, { transformFn: gn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3646
3646
|
n2?.onSiteCall?.();
|
|
3647
3647
|
try {
|
|
3648
3648
|
let e3 = await t2.request(r2);
|
|
3649
|
-
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn:
|
|
3649
|
+
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: $o, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]))?.cart;
|
|
3650
3650
|
} catch (e3) {
|
|
3651
|
-
let t3 =
|
|
3651
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { cart: `$[0].cart`, catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems`, coupons: `$[0].coupons`, deliveryMethod: `$[0].deliveryMethod`, giftCards: `$[0].giftCards` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3652
3652
|
throw n2?.onError?.(e3), t3;
|
|
3653
3653
|
}
|
|
3654
3654
|
}
|
|
3655
3655
|
function Es(e2) {
|
|
3656
3656
|
return (t2) => Ts(t2, { httpClient: e2 });
|
|
3657
3657
|
}
|
|
3658
|
-
var Ds =
|
|
3658
|
+
var Ds = zt(Es);
|
|
3659
3659
|
function Os(e2) {
|
|
3660
|
-
return
|
|
3660
|
+
return Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3661
3661
|
}
|
|
3662
3662
|
var ks = `@wix/auto_sdk_ecom_current-cart-v-2`;
|
|
3663
3663
|
function As(e2) {
|
|
3664
3664
|
function t2({ host: t3 }) {
|
|
3665
|
-
let n2 = P(e2, [{ transformFn:
|
|
3666
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: ks, migrationOptions: { optInTransformResponse: true }, url: Os({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn:
|
|
3665
|
+
let n2 = P(e2, [{ transformFn: mn, paths: [{ path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }, { transformFn: it, paths: [{ path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }]);
|
|
3666
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: ks, migrationOptions: { optInTransformResponse: true }, url: Os({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: hn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3667
3667
|
}
|
|
3668
3668
|
return t2;
|
|
3669
3669
|
}
|
|
3670
3670
|
async function js(e2) {
|
|
3671
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = As(P(
|
|
3671
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = As(P(j({ catalogItems: e2?.catalogItems, customItems: e2?.customItems }), [{ transformFn: Qo, paths: [{ path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `customItems.attributes.url` }] }]));
|
|
3672
3672
|
n2?.onSiteCall?.();
|
|
3673
3673
|
try {
|
|
3674
3674
|
let e3 = await t2.request(r2);
|
|
3675
|
-
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn:
|
|
3675
|
+
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: $o, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3676
3676
|
} catch (e3) {
|
|
3677
|
-
let t3 =
|
|
3677
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3678
3678
|
throw n2?.onError?.(e3), t3;
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
3681
|
function Ms(e2) {
|
|
3682
3682
|
return (t2) => js(t2, { httpClient: e2 });
|
|
3683
3683
|
}
|
|
3684
|
-
var Ns =
|
|
3684
|
+
var Ns = zt(Ms);
|
|
3685
3685
|
var Ps = `BACK_IN_STOCK_NOTIFICATION_REQUEST_ALREADY_EXISTS`;
|
|
3686
3686
|
function Fs(e2) {
|
|
3687
3687
|
return e2?.details?.applicationError?.code ?? `UNKNOWN`;
|
|
@@ -3732,7 +3732,7 @@ function Gs(e2, t2) {
|
|
|
3732
3732
|
}
|
|
3733
3733
|
}
|
|
3734
3734
|
function Ks(e2, r2) {
|
|
3735
|
-
let i2 = (0, import_react.useCallback)((t2) => r2 ? Ls({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price:
|
|
3735
|
+
let i2 = (0, import_react.useCallback)((t2) => r2 ? Ls({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price: To(r2), imageUrl: Gs(e2, r2) }) : Promise.reject(Error(`Cannot create a back-in-stock notification without a selected variant`)), [e2, r2]);
|
|
3736
3736
|
return (0, import_react.useMemo)(() => ({ handleNotifyMe: i2 }), [i2]);
|
|
3737
3737
|
}
|
|
3738
3738
|
function qs(e2, t2) {
|
|
@@ -3754,19 +3754,19 @@ function Js(e2) {
|
|
|
3754
3754
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
3755
3755
|
}
|
|
3756
3756
|
function Ys(e2) {
|
|
3757
|
-
return
|
|
3757
|
+
return Vt(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/inventory`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/inventory`, destPath: `` }], _: [{ srcPath: `/_api/inventory`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/inventory`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/inventory-items`, destPath: `/v3/inventory-items` }, { srcPath: `/stores/v3/bulk/inventory-items`, destPath: `/v3/bulk/inventory-items` }], "*.dev.wix-code.com": [{ srcPath: `/_api/inventory`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/inventory`, destPath: `` }] } }));
|
|
3758
3758
|
}
|
|
3759
3759
|
var Xs = `@wix/auto_sdk_stores_inventory-items-v-3`;
|
|
3760
3760
|
function Zs(e2) {
|
|
3761
3761
|
function t2({ host: t3 }) {
|
|
3762
|
-
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: Xs, migrationOptions: { optInTransformResponse: true }, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params:
|
|
3762
|
+
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: Xs, migrationOptions: { optInTransformResponse: true }, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params: Bt(e2, true), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `inventoryItems.createdDate` }, { path: `inventoryItems.updatedDate` }] }]), fallback: [{ method: `POST`, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), data: e2 }] };
|
|
3763
3763
|
}
|
|
3764
3764
|
return t2;
|
|
3765
3765
|
}
|
|
3766
3766
|
var Z = ((e2) => (e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.IN_STOCK = `IN_STOCK`, e2.PREORDER = `PREORDER`, e2))(Z || {});
|
|
3767
3767
|
function Qs() {
|
|
3768
3768
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
3769
|
-
return
|
|
3769
|
+
return Po({ func: async (n2) => {
|
|
3770
3770
|
let r2 = Zs(n2);
|
|
3771
3771
|
t2?.onSiteCall?.();
|
|
3772
3772
|
try {
|
|
@@ -3777,26 +3777,26 @@ function Qs() {
|
|
|
3777
3777
|
}
|
|
3778
3778
|
}, requestTransformer: (e3) => {
|
|
3779
3779
|
let t3 = [e3, {}];
|
|
3780
|
-
return
|
|
3780
|
+
return j({ ...t3?.[1], query: t3?.[0] });
|
|
3781
3781
|
}, responseTransformer: ({ data: e3 }) => {
|
|
3782
3782
|
let t3 = M(P(e3, []));
|
|
3783
3783
|
return { items: t3?.inventoryItems, pagingMetadata: t3?.pagingMetadata };
|
|
3784
3784
|
}, errorTransformer: (e3) => {
|
|
3785
|
-
throw
|
|
3785
|
+
throw F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
3786
3786
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
3787
3787
|
}
|
|
3788
3788
|
async function $s(e2) {
|
|
3789
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Zs(
|
|
3789
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Zs(j({ query: e2 }));
|
|
3790
3790
|
n2?.onSiteCall?.();
|
|
3791
3791
|
try {
|
|
3792
3792
|
let e3 = await t2.request(r2);
|
|
3793
3793
|
return n2?.onSuccess?.(e3), M(e3.data);
|
|
3794
3794
|
} catch (e3) {
|
|
3795
|
-
let t3 =
|
|
3795
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
3796
3796
|
throw n2?.onError?.(e3), t3;
|
|
3797
3797
|
}
|
|
3798
3798
|
}
|
|
3799
|
-
({ ...
|
|
3799
|
+
({ ...zo() }, { ...us() });
|
|
3800
3800
|
function ec(e2) {
|
|
3801
3801
|
return () => Qs({ httpClient: e2 });
|
|
3802
3802
|
}
|
|
@@ -3809,21 +3809,21 @@ var ic = b(`wix.stores.catalog.v3.inventory_item_stock_status_updated`, true, (e
|
|
|
3809
3809
|
var ac = b(`wix.stores.catalog.v3.inventory_item_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }])))();
|
|
3810
3810
|
var oc = b(`wix.stores.catalog.v3.inventory_item_updated_with_reason`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `data.currentEntity.createdDate` }, { path: `data.currentEntity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3811
3811
|
function sc(e2) {
|
|
3812
|
-
let t2 =
|
|
3812
|
+
let t2 = Yo({ builderQueryFunction: () => ec(e2)(), typedQueryFunction: (t3) => tc(e2)(t3), hasOptionsParameter: false });
|
|
3813
3813
|
function n2(e3) {
|
|
3814
3814
|
return t2(...arguments);
|
|
3815
3815
|
}
|
|
3816
3816
|
return n2;
|
|
3817
3817
|
}
|
|
3818
|
-
var cc =
|
|
3819
|
-
|
|
3818
|
+
var cc = zt(sc);
|
|
3819
|
+
I(nc), I(rc), I(ic), I(ac), I(oc);
|
|
3820
3820
|
function lc(e2) {
|
|
3821
|
-
return
|
|
3821
|
+
return Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/stores-catalog-orchestrator`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/stores`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/products`, destPath: `/v3/products` }, { srcPath: `/stores/v3/bulk/products`, destPath: `/v3/bulk/products` }, { srcPath: `/stores/v3/products-with-inventory`, destPath: `/v3/products-with-inventory` }, { srcPath: `/stores/v3/bulk/products-with-inventory`, destPath: `/v3/bulk/products-with-inventory` }, { srcPath: `/stores/v3/all-products-category`, destPath: `/v3/all-products-category` }], "www._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], _: [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }] } }));
|
|
3822
3822
|
}
|
|
3823
3823
|
var uc = `@wix/auto_sdk_stores_products-v-3`;
|
|
3824
3824
|
function dc(e2) {
|
|
3825
3825
|
function t2({ host: t3 }) {
|
|
3826
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: uc, migrationOptions: { optInTransformResponse: true }, url: lc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Vt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: I, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3826
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: uc, migrationOptions: { optInTransformResponse: true }, url: lc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Bt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3827
3827
|
}
|
|
3828
3828
|
return t2;
|
|
3829
3829
|
}
|
|
@@ -3832,25 +3832,25 @@ var pc = ((e2) => (e2.IN_STOCK = `IN_STOCK`, e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e
|
|
|
3832
3832
|
var mc = ((e2) => (e2.ALL_VARIANTS = `ALL_VARIANTS`, e2.NO_VARIANTS = `NO_VARIANTS`, e2.SOME_VARIANTS = `SOME_VARIANTS`, e2))(mc || {});
|
|
3833
3833
|
var hc = ((e2) => (e2.URL = `URL`, e2.CURRENCY = `CURRENCY`, e2.INFO_SECTION = `INFO_SECTION`, e2.MERCHANT_DATA = `MERCHANT_DATA`, e2.PLAIN_DESCRIPTION = `PLAIN_DESCRIPTION`, e2.INFO_SECTION_PLAIN_DESCRIPTION = `INFO_SECTION_PLAIN_DESCRIPTION`, e2.SUBSCRIPTION_PRICES_INFO = `SUBSCRIPTION_PRICES_INFO`, e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.WEIGHT_MEASUREMENT_UNIT_INFO = `WEIGHT_MEASUREMENT_UNIT_INFO`, e2.VARIANT_OPTION_CHOICE_NAMES = `VARIANT_OPTION_CHOICE_NAMES`, e2.MEDIA_ITEMS_INFO = `MEDIA_ITEMS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.DIRECT_CATEGORIES_INFO = `DIRECT_CATEGORIES_INFO`, e2.ALL_CATEGORIES_INFO = `ALL_CATEGORIES_INFO`, e2.INFO_SECTION_DESCRIPTION = `INFO_SECTION_DESCRIPTION`, e2.THUMBNAIL = `THUMBNAIL`, e2.PRODUCT_CHOICES_MEDIA_REFERENCES = `PRODUCT_CHOICES_MEDIA_REFERENCES`, e2.PRODUCT_CHOICES_DISPLAY_IMAGE = `PRODUCT_CHOICES_DISPLAY_IMAGE`, e2.MIN_PRICE_VARIANT = `MIN_PRICE_VARIANT`, e2.DISCOUNT_INFO = `DISCOUNT_INFO`, e2))(hc || {});
|
|
3834
3834
|
async function gc(e2, t2) {
|
|
3835
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = dc(
|
|
3835
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = dc(j({ productId: e2, fields: t2?.fields }, []));
|
|
3836
3836
|
r2?.onSiteCall?.();
|
|
3837
3837
|
try {
|
|
3838
3838
|
let e3 = await n2.request(i2);
|
|
3839
|
-
return r2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: X, paths: [{ path: `product.url` }] }, { transformFn:
|
|
3839
|
+
return r2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: X, paths: [{ path: `product.url` }] }, { transformFn: $o, paths: [{ path: `product.media.main.image` }, { path: `product.media.itemsInfo.items.image` }, { path: `product.options.choicesSettings.choices.image` }, { path: `product.options.choicesSettings.choices.displayImage` }, { path: `product.options.choicesSettings.choices.linkedMedia.image` }, { path: `product.modifiers.choicesSettings.choices.image` }, { path: `product.modifiers.choicesSettings.choices.displayImage` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `product.variantsInfo.variants.media.image` }, { path: `product.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `product.media.main.video` }, { path: `product.media.itemsInfo.items.video` }, { path: `product.options.choicesSettings.choices.linkedMedia.video` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `product.variantsInfo.variants.media.video` }, { path: `product.variantSummary.minPriceVariant.media.video` }] }]), [`product.description`, `product.infoSections.description`])?.product;
|
|
3840
3840
|
} catch (e3) {
|
|
3841
|
-
let t3 =
|
|
3841
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { productId: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`productId`, `options`]);
|
|
3842
3842
|
throw r2?.onError?.(e3), t3;
|
|
3843
3843
|
}
|
|
3844
3844
|
}
|
|
3845
|
-
({ ...us() }, { ...
|
|
3845
|
+
({ ...us() }, { ...zo() });
|
|
3846
3846
|
function _c(e2) {
|
|
3847
3847
|
return (t2, n2) => gc(t2, n2, { httpClient: e2 });
|
|
3848
3848
|
}
|
|
3849
|
-
var vc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3850
|
-
var yc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3851
|
-
var bc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: X, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3852
|
-
var xc =
|
|
3853
|
-
|
|
3849
|
+
var vc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3850
|
+
var yc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3851
|
+
var bc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: X, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3852
|
+
var xc = zt(_c);
|
|
3853
|
+
I(vc), I(yc), I(bc);
|
|
3854
3854
|
function Sc(e2) {
|
|
3855
3855
|
return wc(e2) ?? 99999;
|
|
3856
3856
|
}
|
|
@@ -3930,132 +3930,138 @@ function Vc(e2, t2, r2, i2 = false) {
|
|
|
3930
3930
|
}
|
|
3931
3931
|
var Hc = `one-time`;
|
|
3932
3932
|
var Uc = H(`@wix/site-service-locale`);
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3933
|
+
var Wc = H;
|
|
3934
|
+
var Gc = Wc(`@wix/viewer-service-multilingual`);
|
|
3935
|
+
function Kc() {
|
|
3936
|
+
let e2 = (0, import_services_manager_react.useGetService)(), t2 = (0, import_services_manager_react.useService)(Uc), n2;
|
|
3937
|
+
try {
|
|
3938
|
+
n2 = e2(Gc);
|
|
3939
|
+
} catch {
|
|
3940
|
+
}
|
|
3941
|
+
return n2?.multilingualEnabled && n2.currentLocale?.regionalFormat || t2.locale;
|
|
3936
3942
|
}
|
|
3937
|
-
var
|
|
3943
|
+
var qc = (e2) => {
|
|
3938
3944
|
let t2 = e2?.maximumFractionDigits ?? 2;
|
|
3939
3945
|
return (e3) => e3?.toFixed(t2);
|
|
3940
3946
|
};
|
|
3941
|
-
var
|
|
3947
|
+
var Jc = (e2, t2, n2) => {
|
|
3942
3948
|
let r2 = new Intl.NumberFormat(t2, { style: `currency`, currency: e2, ...n2 });
|
|
3943
3949
|
return (e3) => {
|
|
3944
3950
|
if (e3 != null) return r2.format(e3);
|
|
3945
3951
|
};
|
|
3946
3952
|
};
|
|
3947
|
-
function
|
|
3948
|
-
return e2 ?
|
|
3953
|
+
function Yc(e2, t2, n2) {
|
|
3954
|
+
return e2 ? Jc(e2, t2, n2) : qc(n2);
|
|
3949
3955
|
}
|
|
3950
|
-
function
|
|
3951
|
-
let r2 =
|
|
3952
|
-
return (0, import_react.useMemo)(() =>
|
|
3956
|
+
function Xc(e2, t2) {
|
|
3957
|
+
let r2 = Kc();
|
|
3958
|
+
return (0, import_react.useMemo)(() => Yc(e2, r2, t2), [e2, r2, t2]);
|
|
3953
3959
|
}
|
|
3954
3960
|
function Q(e2, t2) {
|
|
3955
3961
|
return e2 === void 0 ? void 0 : { amount: e2, formattedAmount: t2(e2) };
|
|
3956
3962
|
}
|
|
3957
|
-
function
|
|
3963
|
+
function Zc(e2, t2, n2) {
|
|
3958
3964
|
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice: Q(t2.currentSellingPrice, n2), originalPrice: Q(t2.priceBeforeDiscount, n2), frequency: e2.frequency, interval: e2.interval, duration: e2.billingCycles };
|
|
3959
3965
|
}
|
|
3960
|
-
function
|
|
3966
|
+
function Qc(e2) {
|
|
3961
3967
|
return e2 === void 0 ? void 0 : { description: e2.description };
|
|
3962
3968
|
}
|
|
3963
|
-
function
|
|
3964
|
-
return { currentSellingPrice: Q(e2.currentSellingPrice, t2), priceBeforeDiscount: Q(e2.priceBeforeDiscount, t2), pricePerUnit:
|
|
3969
|
+
function $c(e2, t2) {
|
|
3970
|
+
return { currentSellingPrice: Q(e2.currentSellingPrice, t2), priceBeforeDiscount: Q(e2.priceBeforeDiscount, t2), pricePerUnit: Qc(e2.pricePerUnit) };
|
|
3965
3971
|
}
|
|
3966
|
-
function
|
|
3967
|
-
return { minCurrentSellingPrice: Q(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: Q(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: Q(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: Q(e2.maxPriceBeforeDiscount, t2), minPricePerUnit:
|
|
3972
|
+
function el(e2, t2) {
|
|
3973
|
+
return { minCurrentSellingPrice: Q(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: Q(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: Q(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: Q(e2.maxPriceBeforeDiscount, t2), minPricePerUnit: Qc(e2.minPricePerUnit), maxPricePerUnit: Qc(e2.maxPricePerUnit) };
|
|
3968
3974
|
}
|
|
3969
|
-
function
|
|
3975
|
+
function tl(e2, t2, n2, r2) {
|
|
3970
3976
|
if (e2.length === 0) return [];
|
|
3971
|
-
let i2 = e2.map(({ subscription: e3, price: t3 }) =>
|
|
3977
|
+
let i2 = e2.map(({ subscription: e3, price: t3 }) => Zc(e3, t3, r2));
|
|
3972
3978
|
return t2 ? [{ id: Hc, name: `One-time purchase`, isOneTimePurchase: true, currentPrice: Q(n2.currentSellingPrice, r2) }, ...i2] : i2;
|
|
3973
3979
|
}
|
|
3974
|
-
function
|
|
3975
|
-
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 =
|
|
3980
|
+
function nl({ product: e2, userInputs: t2, hasLoadedVariants: r2 }) {
|
|
3981
|
+
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 = Xc(e2.currency);
|
|
3976
3982
|
return (0, import_react.useMemo)(() => {
|
|
3977
|
-
let t3 =
|
|
3983
|
+
let t3 = Co(e2, i2, r2), n2 = { ...$c(wo(t3, a2), o2), ...el(t3.productPriceRange, o2) }, s2 = tl(t3.subscriptionPlanPrices, e2.subscriptionDetails.allowOneTimePurchases, t3.productPrice, o2);
|
|
3978
3984
|
return { currency: e2.currency, pricing: n2, subscriptionPlans: s2 };
|
|
3979
3985
|
}, [e2, i2, a2, r2, o2]);
|
|
3980
3986
|
}
|
|
3981
|
-
var
|
|
3987
|
+
var rl = function(e2) {
|
|
3982
3988
|
return e2.PRODUCT_BY_SLUG = `product-by-slug`, e2.PRODUCT_BY_ID = `product-by-id`, e2.PRODUCT_ITEM = `product-item`, e2;
|
|
3983
3989
|
}({});
|
|
3984
|
-
function
|
|
3990
|
+
function il(e2) {
|
|
3985
3991
|
let { isInStock: t2, isPreOrderState: n2 } = Tc(e2);
|
|
3986
3992
|
return n2 ? Z.PREORDER : t2 ? Z.IN_STOCK : Z.OUT_OF_STOCK;
|
|
3987
3993
|
}
|
|
3988
|
-
function
|
|
3994
|
+
function al(e2) {
|
|
3989
3995
|
let { minPriceVariant: t2 } = e2, n2 = e2.options.length === 0;
|
|
3990
|
-
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus:
|
|
3996
|
+
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus: il(e2.inventory), trackQuantity: false }] };
|
|
3991
3997
|
}
|
|
3992
|
-
var
|
|
3993
|
-
var
|
|
3994
|
-
function
|
|
3995
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3998
|
+
var ol = (e2) => Number.parseFloat(e2?.amount);
|
|
3999
|
+
var sl = (e2) => e2?.amount == null ? void 0 : ol(e2);
|
|
4000
|
+
function cl(e2) {
|
|
4001
|
+
return e2.filter((e3) => e3.visible !== false).map(ll);
|
|
3996
4002
|
}
|
|
3997
|
-
var
|
|
4003
|
+
var ll = (e2) => {
|
|
3998
4004
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
3999
4005
|
let t3 = e3.optionChoiceIds;
|
|
4000
4006
|
return [t3?.optionId, t3?.choiceId];
|
|
4001
4007
|
}));
|
|
4002
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
4008
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: dl(e2), subscriptionPrices: fl(e2) };
|
|
4003
4009
|
};
|
|
4004
|
-
function
|
|
4010
|
+
function ul(e2) {
|
|
4005
4011
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
4006
4012
|
}
|
|
4007
|
-
var
|
|
4013
|
+
var dl = (e2) => {
|
|
4008
4014
|
let t2 = e2.price;
|
|
4009
|
-
return { actualPrice:
|
|
4015
|
+
return { actualPrice: ol(t2?.actualPrice), compareAtPrice: sl(t2?.compareAtPrice), priceAfterDiscount: sl(t2?.priceAfterDiscount), pricePerUnit: ul(e2.physicalProperties?.pricePerUnit) };
|
|
4010
4016
|
};
|
|
4011
|
-
var
|
|
4012
|
-
function
|
|
4017
|
+
var fl = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: ol(e3.price) }));
|
|
4018
|
+
function pl(e2) {
|
|
4013
4019
|
return e2.map((e3) => ({ variantId: e3.variantId ?? ``, availabilityStatus: e3.availabilityStatus, quantity: e3.quantity ?? void 0, trackQuantity: e3.trackQuantity ?? false, preorderInfo: e3.preorderInfo ? { message: e3.preorderInfo.message ?? void 0, quantity: e3.preorderInfo.quantity ?? void 0 } : void 0 }));
|
|
4014
4020
|
}
|
|
4015
|
-
async function fl(e2, t2) {
|
|
4016
|
-
return dl((await cc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
4017
|
-
}
|
|
4018
|
-
var pl = [hc.SUBSCRIPTION_PRICES_INFO, hc.DISCOUNT_INFO];
|
|
4019
4021
|
async function ml(e2, t2) {
|
|
4020
|
-
|
|
4021
|
-
return { variants: ol(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
4022
|
+
return pl((await cc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
4022
4023
|
}
|
|
4023
|
-
|
|
4024
|
-
|
|
4024
|
+
var hl = [hc.SUBSCRIPTION_PRICES_INFO, hc.DISCOUNT_INFO];
|
|
4025
|
+
async function gl(e2, t2) {
|
|
4026
|
+
let [n2, r2] = await Promise.all([xc(e2, { fields: hl }), ml(e2, t2)]);
|
|
4027
|
+
return { variants: cl(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
4028
|
+
}
|
|
4029
|
+
function _l(e2, n2) {
|
|
4030
|
+
let [i2, a2] = (0, import_react.useState)(false), { data: o2, isFetching: s2 } = Zr({ queryKey: [`product-variants`, e2, n2], queryFn: () => gl(e2, n2), enabled: i2, staleTime: 1 / 0, retry: false });
|
|
4025
4031
|
return { variantsData: o2, isLoadingVariants: s2, requestVariants: (0, import_react.useCallback)(() => {
|
|
4026
4032
|
a2(true);
|
|
4027
4033
|
}, []) };
|
|
4028
4034
|
}
|
|
4029
|
-
function
|
|
4030
|
-
let { variantsData: r2, isLoadingVariants: i2, requestVariants: a2 } =
|
|
4035
|
+
function vl(e2, t2) {
|
|
4036
|
+
let { variantsData: r2, isLoadingVariants: i2, requestVariants: a2 } = _l(e2.id, t2), { variants: o2, inventoryItems: s2 } = (0, import_react.useMemo)(() => r2 ?? al(e2), [r2, e2]);
|
|
4031
4037
|
return { product: (0, import_react.useMemo)(() => ({ ...e2, variants: o2 }), [e2, o2]), inventoryItems: s2, hasLoadedVariants: (0, import_react.useMemo)(() => r2 !== void 0, [r2]), isLoadingVariants: i2, requestVariants: a2 };
|
|
4032
4038
|
}
|
|
4033
|
-
var
|
|
4034
|
-
function
|
|
4039
|
+
var yl = { type: `invalid-purchase`, message: `This item can't be purchased.` };
|
|
4040
|
+
function bl(e2) {
|
|
4035
4041
|
let t2 = e2;
|
|
4036
4042
|
return { type: `cart`, message: t2?.message, details: t2?.details };
|
|
4037
4043
|
}
|
|
4038
|
-
var
|
|
4039
|
-
var
|
|
4040
|
-
var
|
|
4041
|
-
var
|
|
4042
|
-
var
|
|
4044
|
+
var xl = H(`@wix/site-service-lightbox`);
|
|
4045
|
+
var Sl = H(`@wix/site-service-router`);
|
|
4046
|
+
var Cl = H(`@wix/site-service-editor-context`);
|
|
4047
|
+
var wl = H(`@wix/site-service-pages`);
|
|
4048
|
+
var Tl = (e2) => {
|
|
4043
4049
|
if (!e2) return ``;
|
|
4044
4050
|
let t2 = new URLSearchParams(e2).toString();
|
|
4045
4051
|
return t2 ? `?${t2}` : ``;
|
|
4046
4052
|
};
|
|
4047
|
-
var
|
|
4053
|
+
var El = (e2, t2, n2) => {
|
|
4048
4054
|
let r2 = `./${e2.replace(/^\//, ``)}`;
|
|
4049
4055
|
return n2 ? r2 : new URL(r2, `${t2.replace(/\/$/, ``)}/`).href;
|
|
4050
4056
|
};
|
|
4051
|
-
var
|
|
4052
|
-
let { navigateTo: e2 } = (0, import_services_manager_react.useService)(
|
|
4057
|
+
var Dl = () => {
|
|
4058
|
+
let { navigateTo: e2 } = (0, import_services_manager_react.useService)(Sl), { open: n2 } = (0, import_services_manager_react.useService)(xl), r2 = (0, import_services_manager_react.useService)(Qr), i2 = (0, import_services_manager_react.useService)(Cl), a2 = (0, import_services_manager_react.useService)(wl), { getPageRelativeUrl: o2, getPageAbsoluteUrl: s2 } = ti();
|
|
4053
4059
|
return { navigateToPage: (0, import_react.useCallback)(async (t2, n3) => {
|
|
4054
4060
|
try {
|
|
4055
4061
|
let a3 = r2.appSectionRelativeUrl(ei, t2);
|
|
4056
4062
|
if (!a3) return false;
|
|
4057
|
-
let o3 = `${a3}${
|
|
4058
|
-
return await e2({ href:
|
|
4063
|
+
let o3 = `${a3}${Tl(n3)}`;
|
|
4064
|
+
return await e2({ href: El(o3, r2.siteUrl, i2.previewMode) }), true;
|
|
4059
4065
|
} catch {
|
|
4060
4066
|
return false;
|
|
4061
4067
|
}
|
|
@@ -4076,85 +4082,85 @@ var Tl = () => {
|
|
|
4076
4082
|
}
|
|
4077
4083
|
}, [n2, a2]) };
|
|
4078
4084
|
};
|
|
4079
|
-
async function
|
|
4085
|
+
async function Ol(e2) {
|
|
4080
4086
|
await Ns({ catalogItems: [e2] });
|
|
4081
4087
|
}
|
|
4082
|
-
var
|
|
4083
|
-
var
|
|
4088
|
+
var kl = Wc(`@wix/site-service-public-api-caller`);
|
|
4089
|
+
var Al = () => {
|
|
4084
4090
|
let e2 = (0, import_services_manager_react.useGetService)();
|
|
4085
4091
|
return { reloadCart: (0, import_react.useCallback)(async () => {
|
|
4086
4092
|
if (typeof window < `u`) try {
|
|
4087
|
-
await e2(
|
|
4093
|
+
await e2(kl).callPublicApi(ei, `cart.reloadCart`, []);
|
|
4088
4094
|
} catch {
|
|
4089
4095
|
}
|
|
4090
4096
|
}, [e2]) };
|
|
4091
4097
|
};
|
|
4092
|
-
var
|
|
4098
|
+
var jl = function(e2) {
|
|
4093
4099
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2.SUCCESS = `success`, e2;
|
|
4094
4100
|
}({});
|
|
4095
|
-
var
|
|
4101
|
+
var Ml = function(e2) {
|
|
4096
4102
|
return e2.NONE = `none`, e2.NAVIGATE_TO_CART = `navigate-to-cart`, e2.OPEN_SIDE_CART = `open-side-cart`, e2;
|
|
4097
4103
|
}({});
|
|
4098
|
-
var
|
|
4099
|
-
let [e2, n2] = (0, import_react.useState)(
|
|
4104
|
+
var Nl = () => {
|
|
4105
|
+
let [e2, n2] = (0, import_react.useState)(jl.IDLE), { navigateToPage: i2, openLightbox: a2 } = Dl(), { reloadCart: o2 } = Al(), s2 = (0, import_react.useCallback)(async (e3) => {
|
|
4100
4106
|
switch (e3) {
|
|
4101
|
-
case
|
|
4107
|
+
case Ml.NAVIGATE_TO_CART:
|
|
4102
4108
|
await i2(U.CART);
|
|
4103
4109
|
return;
|
|
4104
|
-
case
|
|
4110
|
+
case Ml.OPEN_SIDE_CART:
|
|
4105
4111
|
await a2(U.SIDE_CART);
|
|
4106
4112
|
return;
|
|
4107
|
-
case
|
|
4113
|
+
case Ml.NONE:
|
|
4108
4114
|
default:
|
|
4109
4115
|
return;
|
|
4110
4116
|
}
|
|
4111
4117
|
}, [i2, a2]);
|
|
4112
4118
|
return { addToCart: (0, import_react.useCallback)(async (e3, t2) => {
|
|
4113
|
-
n2(
|
|
4119
|
+
n2(jl.IN_PROGRESS);
|
|
4114
4120
|
try {
|
|
4115
|
-
await
|
|
4121
|
+
await Ol(e3);
|
|
4116
4122
|
} catch (e4) {
|
|
4117
|
-
return n2(
|
|
4123
|
+
return n2(jl.IDLE), { ok: false, error: bl(e4) };
|
|
4118
4124
|
}
|
|
4119
4125
|
try {
|
|
4120
|
-
await o2(), n2(
|
|
4126
|
+
await o2(), n2(jl.SUCCESS), await s2(t2), setTimeout(() => n2(jl.IDLE), 2e3);
|
|
4121
4127
|
} catch {
|
|
4122
|
-
n2(
|
|
4128
|
+
n2(jl.IDLE);
|
|
4123
4129
|
}
|
|
4124
4130
|
return { ok: true };
|
|
4125
4131
|
}, [o2, s2]), addToCartState: e2, reloadCart: o2 };
|
|
4126
4132
|
};
|
|
4127
|
-
async function
|
|
4133
|
+
async function Pl(e2) {
|
|
4128
4134
|
let t2 = await Ds({ cart: { source: { channelType: ws.WEB } }, catalogItems: [e2] });
|
|
4129
4135
|
if (!t2._id) throw Error(`missing checkout id`);
|
|
4130
4136
|
return t2._id;
|
|
4131
4137
|
}
|
|
4132
|
-
var
|
|
4138
|
+
var Fl = function(e2) {
|
|
4133
4139
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2;
|
|
4134
4140
|
}({});
|
|
4135
|
-
var
|
|
4136
|
-
let { navigateToPage: e2 } =
|
|
4141
|
+
var Il = () => {
|
|
4142
|
+
let { navigateToPage: e2 } = Dl(), [n2, i2] = (0, import_react.useState)(Fl.IDLE);
|
|
4137
4143
|
return { buyNowState: n2, buyNow: (0, import_react.useCallback)(async (t2) => {
|
|
4138
|
-
i2(
|
|
4144
|
+
i2(Fl.IN_PROGRESS);
|
|
4139
4145
|
try {
|
|
4140
|
-
let n3 = await
|
|
4141
|
-
return await e2(U.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error:
|
|
4146
|
+
let n3 = await Pl(t2);
|
|
4147
|
+
return await e2(U.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error: bl(Error(`Failed to navigate to checkout`)) };
|
|
4142
4148
|
} catch (e3) {
|
|
4143
|
-
return { ok: false, error:
|
|
4149
|
+
return { ok: false, error: bl(e3) };
|
|
4144
4150
|
} finally {
|
|
4145
|
-
i2(
|
|
4151
|
+
i2(Fl.IDLE);
|
|
4146
4152
|
}
|
|
4147
4153
|
}, [e2]) };
|
|
4148
4154
|
};
|
|
4149
|
-
function
|
|
4155
|
+
function Ll(e2) {
|
|
4150
4156
|
let { product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 } = e2;
|
|
4151
|
-
return { catalogReference: { appId: $r, catalogItemId: t2.id, options:
|
|
4157
|
+
return { catalogReference: { appId: $r, catalogItemId: t2.id, options: Rl({ product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 }) }, quantity: r2.quantity };
|
|
4152
4158
|
}
|
|
4153
|
-
var
|
|
4154
|
-
let i2 =
|
|
4155
|
-
return Object.keys(o2).length > 0 && (l2.customTextFields = o2),
|
|
4159
|
+
var Rl = ({ product: e2, selectedVariant: t2, userSelections: n2, isPreOrder: r2 }) => {
|
|
4160
|
+
let i2 = zl(e2, t2.choices), { choiceBasedModifiers: a2, customTextFields: o2 } = Bl(e2, n2.selectedModifiers), s2 = { ...i2, ...a2 }, { selectedSubscriptionPlanId: c2 } = n2, l2 = { variantId: t2.id, options: s2 };
|
|
4161
|
+
return Object.keys(o2).length > 0 && (l2.customTextFields = o2), Vl(c2) && (l2.subscriptionOptionId = c2), r2 && (l2.preOrderRequested = true), l2;
|
|
4156
4162
|
};
|
|
4157
|
-
var
|
|
4163
|
+
var zl = (e2, t2) => {
|
|
4158
4164
|
let n2 = {};
|
|
4159
4165
|
for (let [r2, i2] of Object.entries(t2)) {
|
|
4160
4166
|
let t3 = e2.options.find((e3) => e3.id === r2), a2 = t3?.choices.find((e3) => e3.choiceId === i2);
|
|
@@ -4162,7 +4168,7 @@ var Ll = (e2, t2) => {
|
|
|
4162
4168
|
}
|
|
4163
4169
|
return n2;
|
|
4164
4170
|
};
|
|
4165
|
-
var
|
|
4171
|
+
var Bl = (e2, t2) => {
|
|
4166
4172
|
let n2 = {}, r2 = {};
|
|
4167
4173
|
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType === fc.FREE_TEXT) {
|
|
4168
4174
|
let e3 = i2.freeTextSettings?.key;
|
|
@@ -4173,48 +4179,48 @@ var Rl = (e2, t2) => {
|
|
|
4173
4179
|
}
|
|
4174
4180
|
return { choiceBasedModifiers: n2, customTextFields: r2 };
|
|
4175
4181
|
};
|
|
4176
|
-
var
|
|
4177
|
-
function
|
|
4178
|
-
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } =
|
|
4182
|
+
var Vl = (e2) => e2 !== void 0 && e2 !== `one-time`;
|
|
4183
|
+
function Hl(e2, r2, i2) {
|
|
4184
|
+
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } = Nl(), { buyNow: p2, buyNowState: m2 } = Il(), h2 = i2.isPreOrderState || i2.isInStock, g2 = (0, import_react.useCallback)(async (t2) => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: yl } : d2(Ll({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState }), t2 ?? Ml.NONE), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, d2]), _2 = (0, import_react.useCallback)(async () => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: yl } : p2(Ll({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState })), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, p2]);
|
|
4179
4185
|
return (0, import_react.useMemo)(() => ({ addToCartState: f2, buyNowState: m2, handleAddToCart: g2, handleBuyNow: _2 }), [f2, m2, g2, _2]);
|
|
4180
4186
|
}
|
|
4181
|
-
var
|
|
4182
|
-
var
|
|
4183
|
-
var
|
|
4187
|
+
var Ul = (e2, t2) => e2.every((e3) => !e3.mandatory || Wl(e3, t2[e3.id]));
|
|
4188
|
+
var Wl = (e2, t2) => e2.modifierRenderType === fc.FREE_TEXT ? !!t2 : e2.choices?.some((e3) => e3.choiceId === t2);
|
|
4189
|
+
var Gl = function(e2) {
|
|
4184
4190
|
return e2.DIRECT_ADD = `direct-add`, e2.NAVIGATE_TO_PRODUCT_PAGE = `navigate-to-product-page`, e2;
|
|
4185
4191
|
}({});
|
|
4186
|
-
function
|
|
4187
|
-
return
|
|
4192
|
+
function Kl(e2, t2) {
|
|
4193
|
+
return ql(e2, t2) ? Gl.NAVIGATE_TO_PRODUCT_PAGE : Gl.DIRECT_ADD;
|
|
4188
4194
|
}
|
|
4189
|
-
var
|
|
4190
|
-
var
|
|
4191
|
-
function
|
|
4192
|
-
let { navigateToProductPage: i2 } =
|
|
4195
|
+
var ql = (e2, t2) => e2.subscriptionDetails.subscriptions.length > 0 || !Jl(e2, t2);
|
|
4196
|
+
var Jl = (e2, t2) => e2.options.length === 0 && Object.keys(e2.modifiers).length === 0 || t2.selectedVariant !== null && Ul(Object.values(t2.modifiers), t2.selectedModifiers);
|
|
4197
|
+
function Yl(e2, r2) {
|
|
4198
|
+
let { navigateToProductPage: i2 } = Dl(), { addToCartState: a2, buyNowState: o2, handleAddToCart: s2, handleBuyNow: c2 } = Hl(e2, r2, Dc(e2, r2.selectedVariant)), l2 = Kl(e2, r2), u2 = (0, import_react.useCallback)(async () => e2.slug ? (await i2(e2.slug), { ok: true }) : { ok: false, error: yl }, [e2.slug, i2]), d2 = (0, import_react.useCallback)((e3) => {
|
|
4193
4199
|
switch (l2) {
|
|
4194
|
-
case
|
|
4200
|
+
case Gl.DIRECT_ADD:
|
|
4195
4201
|
return s2(e3);
|
|
4196
|
-
case
|
|
4202
|
+
case Gl.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4197
4203
|
return u2();
|
|
4198
4204
|
}
|
|
4199
4205
|
}, [l2, s2, u2]), f2 = (0, import_react.useCallback)(() => {
|
|
4200
4206
|
switch (l2) {
|
|
4201
|
-
case
|
|
4207
|
+
case Gl.DIRECT_ADD:
|
|
4202
4208
|
return c2();
|
|
4203
|
-
case
|
|
4209
|
+
case Gl.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4204
4210
|
return u2();
|
|
4205
4211
|
}
|
|
4206
4212
|
}, [l2, c2, u2]);
|
|
4207
4213
|
return (0, import_react.useMemo)(() => ({ addToCartState: a2, buyNowState: o2, handleAddToCart: d2, handleBuyNow: f2 }), [a2, o2, d2, f2]);
|
|
4208
4214
|
}
|
|
4209
|
-
function
|
|
4215
|
+
function Xl(e2) {
|
|
4210
4216
|
return Object.values(e2).toSorted().join(`_`);
|
|
4211
4217
|
}
|
|
4212
|
-
function
|
|
4218
|
+
function Zl(e2) {
|
|
4213
4219
|
let t2 = /* @__PURE__ */ new Map();
|
|
4214
|
-
for (let n2 of e2) t2.set(
|
|
4220
|
+
for (let n2 of e2) t2.set(Xl(n2.choices), n2);
|
|
4215
4221
|
return t2;
|
|
4216
4222
|
}
|
|
4217
|
-
function
|
|
4223
|
+
function Ql(e2, t2, n2) {
|
|
4218
4224
|
let r2 = Object.keys(n2).length > 0, i2 = {};
|
|
4219
4225
|
for (let a2 of e2) {
|
|
4220
4226
|
i2[a2.id] = {};
|
|
@@ -4227,18 +4233,18 @@ function Xl(e2, t2, n2) {
|
|
|
4227
4233
|
i2[a2.id][e3.choiceId] = { isInStock: false, isVisible: false };
|
|
4228
4234
|
continue;
|
|
4229
4235
|
}
|
|
4230
|
-
let { isInStock: o2, isVisible: s2 } =
|
|
4236
|
+
let { isInStock: o2, isVisible: s2 } = $l({ ...n2, [a2.id]: e3.choiceId }, t2);
|
|
4231
4237
|
i2[a2.id][e3.choiceId] = { isInStock: o2, isVisible: s2 };
|
|
4232
4238
|
}
|
|
4233
4239
|
}
|
|
4234
4240
|
return i2;
|
|
4235
4241
|
}
|
|
4236
|
-
function
|
|
4242
|
+
function $l(e2, t2) {
|
|
4237
4243
|
let n2 = false, r2 = false;
|
|
4238
4244
|
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus === Z.IN_STOCK || i2.availabilityStatus === Z.PREORDER) && (n2 = true), n2)) break;
|
|
4239
4245
|
return { isInStock: n2, isVisible: r2 };
|
|
4240
4246
|
}
|
|
4241
|
-
function
|
|
4247
|
+
function eu(e2, t2) {
|
|
4242
4248
|
let n2 = /* @__PURE__ */ new Map();
|
|
4243
4249
|
for (let e3 of t2) n2.set(e3.variantId, e3);
|
|
4244
4250
|
return e2.map((e3) => {
|
|
@@ -4246,34 +4252,34 @@ function Ql(e2, t2) {
|
|
|
4246
4252
|
return { ...e3, availabilityStatus: t3?.availabilityStatus, preorderInfo: t3?.preorderInfo, inventoryQuantity: t3?.quantity, trackQuantity: t3?.trackQuantity };
|
|
4247
4253
|
});
|
|
4248
4254
|
}
|
|
4249
|
-
function
|
|
4250
|
-
let r2 = { options:
|
|
4255
|
+
function tu({ product: e2, selections: t2, selectedVariant: n2 }) {
|
|
4256
|
+
let r2 = { options: nu(e2.options, t2.selectedOptions, n2), modifiers: iu(e2.modifiers, t2.selectedModifiers), quantity: ru(t2.quantity, n2), subscriptionPlanId: au(e2.subscriptionDetails, t2.selectedSubscriptionPlanId) };
|
|
4251
4257
|
return { valid: Object.values(r2.options).length === 0 && Object.values(r2.modifiers).length === 0 && !r2.quantity && !r2.subscriptionPlanId, fields: r2 };
|
|
4252
4258
|
}
|
|
4253
|
-
function
|
|
4259
|
+
function nu(e2, t2, n2) {
|
|
4254
4260
|
if (n2 !== null) return {};
|
|
4255
4261
|
let r2 = {};
|
|
4256
4262
|
for (let n3 of e2) t2[n3.id] || (r2[n3.id] = `missing`);
|
|
4257
4263
|
return r2;
|
|
4258
4264
|
}
|
|
4259
|
-
function
|
|
4265
|
+
function ru(e2, t2) {
|
|
4260
4266
|
if (e2 < 1) return `below-min`;
|
|
4261
4267
|
if (e2 > Sc(t2)) return `above-max`;
|
|
4262
4268
|
}
|
|
4263
|
-
function
|
|
4264
|
-
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !
|
|
4269
|
+
function iu(e2, t2) {
|
|
4270
|
+
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !Wl(e3, t2[e3.id]));
|
|
4265
4271
|
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4266
4272
|
}
|
|
4267
|
-
function
|
|
4268
|
-
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` :
|
|
4273
|
+
function au(e2, t2) {
|
|
4274
|
+
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` : ou(e2, t2) ? void 0 : `missing` : `missing`;
|
|
4269
4275
|
}
|
|
4270
|
-
function
|
|
4276
|
+
function ou(e2, t2) {
|
|
4271
4277
|
return e2.subscriptions.some((e3) => e3.id === t2);
|
|
4272
4278
|
}
|
|
4273
4279
|
var $ = function(e2) {
|
|
4274
4280
|
return e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2;
|
|
4275
4281
|
}({});
|
|
4276
|
-
function
|
|
4282
|
+
function su(e2, t2) {
|
|
4277
4283
|
if (!t2) return;
|
|
4278
4284
|
let n2 = t2.members.find((t3) => t3.productId === e2.id);
|
|
4279
4285
|
if (!n2) return;
|
|
@@ -4281,43 +4287,43 @@ function au(e2, t2) {
|
|
|
4281
4287
|
if (t2.customizationType === $.PRODUCT_OPTION) return e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId) ? { ...r2, customizationType: $.PRODUCT_OPTION } : void 0;
|
|
4282
4288
|
if (e2.modifiers[t2.groupingCustomizationId]) return { ...r2, customizationType: $.MODIFIER };
|
|
4283
4289
|
}
|
|
4284
|
-
function
|
|
4290
|
+
function cu(e2, t2) {
|
|
4285
4291
|
return e2.members.find((e3) => e3.choice.choiceId === t2);
|
|
4286
4292
|
}
|
|
4287
|
-
function
|
|
4293
|
+
function lu(e2, t2, n2) {
|
|
4288
4294
|
return !!e2 && t2 === e2.groupingCustomizationId && n2 !== e2.currentProductChoiceId;
|
|
4289
4295
|
}
|
|
4290
|
-
function
|
|
4296
|
+
function uu(e2, t2) {
|
|
4291
4297
|
if (!t2) return;
|
|
4292
4298
|
if (t2.customizationType === $.PRODUCT_OPTION) {
|
|
4293
4299
|
let n3 = e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId);
|
|
4294
4300
|
if (!n3) return;
|
|
4295
|
-
let r3 =
|
|
4301
|
+
let r3 = du(n3, t2);
|
|
4296
4302
|
return { options: e2.options.map((e3) => e3.id === n3.id ? r3 : e3) };
|
|
4297
4303
|
}
|
|
4298
4304
|
let n2 = e2.modifiers[t2.groupingCustomizationId];
|
|
4299
4305
|
if (!n2) return;
|
|
4300
|
-
let r2 =
|
|
4306
|
+
let r2 = fu(n2, t2);
|
|
4301
4307
|
return { modifiers: { ...e2.modifiers, [t2.groupingCustomizationId]: r2 } };
|
|
4302
4308
|
}
|
|
4303
|
-
function
|
|
4309
|
+
function du(e2, t2) {
|
|
4304
4310
|
return { ...e2, isGroupedOption: true, choices: t2.members.map((e3) => ({ ...e3.choice, inStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK` })) };
|
|
4305
4311
|
}
|
|
4306
|
-
function
|
|
4312
|
+
function fu(e2, t2) {
|
|
4307
4313
|
return { ...e2, choices: t2.members.map(({ choice: e3 }) => e3) };
|
|
4308
4314
|
}
|
|
4309
|
-
function
|
|
4315
|
+
function pu(e2, t2) {
|
|
4310
4316
|
if (!t2 || t2.customizationType !== $.PRODUCT_OPTION) return e2;
|
|
4311
4317
|
let n2 = Object.fromEntries(t2.members.map((e3) => [e3.choice.choiceId, { isInStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK`, isVisible: true }]));
|
|
4312
4318
|
return { ...e2, [t2.groupingCustomizationId]: { ...n2, ...e2[t2.groupingCustomizationId] } };
|
|
4313
4319
|
}
|
|
4314
|
-
function
|
|
4315
|
-
let { navigateToProductPage: i2 } =
|
|
4320
|
+
function mu(e2, r2) {
|
|
4321
|
+
let { navigateToProductPage: i2 } = Dl(), a2 = (0, import_react.useMemo)(() => su(e2, r2), [e2, r2]);
|
|
4316
4322
|
return { productGrouping: a2, selectGroupSiblingChoice: (0, import_react.useCallback)((e3) => {
|
|
4317
4323
|
if (!a2) return;
|
|
4318
|
-
let t2 =
|
|
4324
|
+
let t2 = cu(a2, e3);
|
|
4319
4325
|
t2 && i2(t2.slug);
|
|
4320
|
-
}, [a2, i2]), productCustomizations: (0, import_react.useMemo)(() =>
|
|
4326
|
+
}, [a2, i2]), productCustomizations: (0, import_react.useMemo)(() => uu(e2, a2), [e2, a2]), addGroupChoicesAvailability: (0, import_react.useCallback)((e3) => pu(e3, a2), [a2]), initialSelection: (0, import_react.useMemo)(() => {
|
|
4321
4327
|
if (!a2) return { options: {}, modifiers: {} };
|
|
4322
4328
|
let { customizationType: t2, groupingCustomizationId: n2, currentProductChoiceId: r3 } = a2;
|
|
4323
4329
|
if (t2 === $.MODIFIER && e2.modifiers[n2].mandatory === false) return { options: {}, modifiers: {} };
|
|
@@ -4325,25 +4331,25 @@ function fu(e2, r2) {
|
|
|
4325
4331
|
return t2 === $.PRODUCT_OPTION ? { options: i3, modifiers: {} } : { options: {}, modifiers: i3 };
|
|
4326
4332
|
}, [a2, e2.modifiers]) };
|
|
4327
4333
|
}
|
|
4328
|
-
function
|
|
4329
|
-
let o2 =
|
|
4334
|
+
function hu(e2, i2, a2) {
|
|
4335
|
+
let o2 = mu(e2, a2), { productGrouping: s2, selectGroupSiblingChoice: c2, addGroupChoicesAvailability: l2 } = o2, [u2, d2] = (0, import_react.useState)(() => o2.initialSelection.options), [f2, p2] = (0, import_react.useState)(() => o2.initialSelection.modifiers), [m2, h2] = (0, import_react.useState)(void 0), [g2, _2] = (0, import_react.useState)(1), [v2, y2] = (0, import_react.useState)(false), b2 = (0, import_react.useMemo)(() => Zl(eu(e2.variants, i2)), [e2.variants, i2]), x2 = (0, import_react.useMemo)(() => {
|
|
4330
4336
|
let t2 = /* @__PURE__ */ new Map();
|
|
4331
4337
|
return (n2) => {
|
|
4332
|
-
let r2 =
|
|
4338
|
+
let r2 = Xl(n2), i3 = t2.get(r2);
|
|
4333
4339
|
if (i3) return i3;
|
|
4334
|
-
let a3 = l2(
|
|
4340
|
+
let a3 = l2(Ql(e2.options, b2, n2));
|
|
4335
4341
|
return t2.set(r2, a3), a3;
|
|
4336
4342
|
};
|
|
4337
|
-
}, [b2, e2.options, l2]), S2 = (0, import_react.useMemo)(() => x2(u2), [x2, u2]), C2 = (0, import_react.useMemo)(() => Object.keys(u2).length === e2.options.length ? b2.get(
|
|
4343
|
+
}, [b2, e2.options, l2]), S2 = (0, import_react.useMemo)(() => x2(u2), [x2, u2]), C2 = (0, import_react.useMemo)(() => Object.keys(u2).length === e2.options.length ? b2.get(Xl(u2)) ?? null : null, [b2, u2, e2.options.length]), w2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4338
4344
|
if (u2[e3] !== t2) {
|
|
4339
|
-
if (
|
|
4345
|
+
if (lu(s2, e3, t2)) {
|
|
4340
4346
|
c2(t2);
|
|
4341
4347
|
return;
|
|
4342
4348
|
}
|
|
4343
4349
|
d2((n2) => ({ ...n2, [e3]: t2 })), _2(1);
|
|
4344
4350
|
}
|
|
4345
4351
|
}, [u2, s2, c2]), T2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4346
|
-
if (
|
|
4352
|
+
if (lu(s2, e3, t2)) {
|
|
4347
4353
|
c2(t2);
|
|
4348
4354
|
return;
|
|
4349
4355
|
}
|
|
@@ -4358,36 +4364,36 @@ function pu(e2, i2, a2) {
|
|
|
4358
4364
|
h2(e3);
|
|
4359
4365
|
}, []), O2 = (0, import_react.useMemo)(() => Sc(C2), [C2]), k2 = (0, import_react.useMemo)(() => Cc(g2, O2), [g2, O2]), ee2 = (0, import_react.useCallback)((e3) => {
|
|
4360
4366
|
_2(e3);
|
|
4361
|
-
}, []), te2 = (0, import_react.useMemo)(() =>
|
|
4367
|
+
}, []), te2 = (0, import_react.useMemo)(() => tu({ product: e2, selections: { selectedOptions: u2, selectedModifiers: f2, selectedSubscriptionPlanId: m2, quantity: k2 }, selectedVariant: C2 }), [e2, u2, f2, m2, k2, C2]), ne2 = o2.productCustomizations?.options ?? e2.options, re2 = o2.productCustomizations?.modifiers ?? e2.modifiers;
|
|
4362
4368
|
return (0, import_react.useMemo)(() => ({ options: ne2, modifiers: re2, quantity: k2, selectedOptions: u2, selectedModifiers: f2, selectedSubscriptionPlanId: m2, selectedVariant: C2, selectedVariantId: C2?.id ?? null, selectionsAvailability: S2, maxPurchasableQuantity: O2, isSelectionValid: te2.valid, selectionValidationErrors: te2.fields, hasAttemptedSubmit: v2, setHasAttemptedSubmit: y2, selectOption: w2, selectModifier: T2, clearModifierSelection: E2, selectSubscriptionPlan: D2, selectQuantity: ee2 }), [ne2, re2, k2, u2, f2, m2, C2, S2, O2, te2, v2, w2, T2, E2, D2, ee2]);
|
|
4363
4369
|
}
|
|
4364
|
-
function
|
|
4365
|
-
let o2 =
|
|
4370
|
+
function gu({ product: e2, inventoryItems: r2, hasLoadedVariants: i2, requestVariants: a2 }) {
|
|
4371
|
+
let o2 = hu(e2, r2), { selectOption: s2, selectModifier: c2, selectSubscriptionPlan: l2, selectQuantity: u2, selectionsAvailability: d2, ...f2 } = o2, p2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4366
4372
|
a2(), s2(e3, t2);
|
|
4367
4373
|
}, [a2, s2]), m2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4368
4374
|
a2(), c2(e3, t2);
|
|
4369
4375
|
}, [a2, c2]), h2 = (0, import_react.useCallback)((e3) => {
|
|
4370
4376
|
a2(), u2(e3);
|
|
4371
|
-
}, [a2, u2]), g2 = (0, import_react.useMemo)(() => i2 ? d2 :
|
|
4377
|
+
}, [a2, u2]), g2 = (0, import_react.useMemo)(() => i2 ? d2 : Ql(e2.options, /* @__PURE__ */ new Map(), {}), [i2, d2, e2.options]);
|
|
4372
4378
|
return (0, import_react.useMemo)(() => ({ ...f2, selectOption: p2, selectModifier: m2, selectSubscriptionPlan: l2, selectQuantity: h2, selectionsAvailability: g2 }), [o2, p2, m2, l2, h2, g2]);
|
|
4373
4379
|
}
|
|
4374
|
-
var
|
|
4375
|
-
function
|
|
4380
|
+
var _u = { subscriptionPlans: null, description: null, infoSections: null };
|
|
4381
|
+
function vu() {
|
|
4376
4382
|
return (0, import_product_context_provider.useProductContext)();
|
|
4377
4383
|
}
|
|
4378
|
-
function
|
|
4379
|
-
let r2 =
|
|
4380
|
-
return (0, import_react.useMemo)(() => ({ source:
|
|
4384
|
+
function yu({ product: e2, defaultLocationId: t2 }) {
|
|
4385
|
+
let r2 = vl(e2, t2), i2 = gu(r2), a2 = Yl(r2.product, i2), o2 = nl({ product: r2.product, userInputs: i2, hasLoadedVariants: r2.hasLoadedVariants }), s2 = Vc(r2.product, i2, o2);
|
|
4386
|
+
return (0, import_react.useMemo)(() => ({ source: rl.PRODUCT_ITEM, ...s2, ...a2, ..._u }), [s2, a2]);
|
|
4381
4387
|
}
|
|
4382
|
-
function
|
|
4383
|
-
let n2 =
|
|
4388
|
+
function bu({ productItem: e2, children: t2 }) {
|
|
4389
|
+
let n2 = yu(e2);
|
|
4384
4390
|
return (0, import_jsx_runtime.jsx)(import_product_context_provider.default, { value: n2, children: t2 });
|
|
4385
4391
|
}
|
|
4386
|
-
function
|
|
4392
|
+
function xu({ productItem: e2, children: t2 }) {
|
|
4387
4393
|
let [n2] = (0, import_react.useState)(() => new Pr());
|
|
4388
|
-
return e2 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(Lr, { client: n2, children: (0, import_jsx_runtime.jsx)(
|
|
4394
|
+
return e2 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(Lr, { client: n2, children: (0, import_jsx_runtime.jsx)(bu, { productItem: e2, children: t2 }, e2.product.id) });
|
|
4389
4395
|
}
|
|
4390
|
-
var
|
|
4396
|
+
var Su = jn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
4391
4397
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4392
4398
|
0 && (module.exports = {
|
|
4393
4399
|
ProductItemContextProvider,
|
|
@@ -4395,4 +4401,4 @@ var bu = jn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
|
4395
4401
|
useProductItemContext,
|
|
4396
4402
|
useProductItemContextValue
|
|
4397
4403
|
});
|
|
4398
|
-
//# sourceMappingURL=context-product-item
|
|
4404
|
+
//# sourceMappingURL=context-product-item.js.map
|