@wix/stores 1.0.973 → 1.0.975
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-category-by-id/runtime.d.ts +33 -4
- package/_sdk-exports/context-category-by-id/runtime.js +2 -2
- package/_sdk-exports/context-category-by-slug/runtime.d.ts +33 -4
- package/_sdk-exports/context-category-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-category-info/runtime.d.ts +6 -1
- package/_sdk-exports/context-category-list/runtime.d.ts +5 -1
- package/_sdk-exports/context-product/runtime.d.ts +13 -13
- package/_sdk-exports/context-product-by-id/runtime.d.ts +19 -11
- package/_sdk-exports/context-product-by-id/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug/runtime.d.ts +17 -11
- package/_sdk-exports/context-product-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-product-item/runtime.d.ts +35 -2
- package/_sdk-exports/context-product-item/runtime.js +2 -2
- package/_sdk-exports/context-product-list/runtime.d.ts +29 -1
- package/_sdk-exports/context-promotion-item/runtime.d.ts +5 -1
- package/build/cjs/context-category-by-id.d.ts +33 -4
- package/build/cjs/context-category-by-id.js +1187 -822
- package/build/cjs/context-category-by-id.js.map +1 -1
- package/build/cjs/context-category-by-slug.d.ts +33 -4
- package/build/cjs/context-category-by-slug.js +1382 -1017
- package/build/cjs/context-category-by-slug.js.map +1 -1
- package/build/cjs/context-category-info.d.ts +6 -1
- package/build/cjs/context-category-list.d.ts +5 -1
- package/build/cjs/context-product-by-id.d.ts +19 -11
- package/build/cjs/context-product-by-id.js +438 -434
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.d.ts +17 -11
- package/build/cjs/context-product-by-slug.js +449 -445
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.d.ts +35 -2
- package/build/cjs/context-product-item.js +622 -621
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/cjs/context-product-list.d.ts +29 -1
- package/build/cjs/context-product.d.ts +13 -13
- package/build/cjs/context-promotion-item.d.ts +5 -1
- package/build/es/context-category-by-id.d.mts +33 -4
- package/build/es/context-category-by-id.mjs +1194 -829
- package/build/es/context-category-by-id.mjs.map +1 -1
- package/build/es/context-category-by-slug.d.mts +33 -4
- package/build/es/context-category-by-slug.mjs +1382 -1017
- package/build/es/context-category-by-slug.mjs.map +1 -1
- package/build/es/context-category-info.d.mts +6 -1
- package/build/es/context-category-list.d.mts +5 -1
- package/build/es/context-product-by-id.d.mts +19 -11
- package/build/es/context-product-by-id.mjs +438 -434
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.d.mts +17 -11
- package/build/es/context-product-by-slug.mjs +449 -445
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.d.mts +35 -2
- package/build/es/context-product-item.mjs +622 -621
- package/build/es/context-product-item.mjs.map +1 -1
- package/build/es/context-product-list.d.mts +29 -1
- package/build/es/context-product.d.mts +13 -13
- package/build/es/context-promotion-item.d.mts +5 -1
- package/build/internal/cjs/context-category-by-id.d.ts +33 -4
- package/build/internal/cjs/context-category-by-slug.d.ts +33 -4
- package/build/internal/cjs/context-category-info.d.ts +6 -1
- package/build/internal/cjs/context-category-list.d.ts +5 -1
- package/build/internal/cjs/context-product-by-id.d.ts +19 -11
- package/build/internal/cjs/context-product-by-slug.d.ts +17 -11
- package/build/internal/cjs/context-product-item.d.ts +35 -2
- package/build/internal/cjs/context-product-list.d.ts +29 -1
- package/build/internal/cjs/context-product.d.ts +13 -13
- package/build/internal/cjs/context-promotion-item.d.ts +5 -1
- package/build/internal/es/context-category-by-id.d.mts +33 -4
- package/build/internal/es/context-category-by-slug.d.mts +33 -4
- package/build/internal/es/context-category-info.d.mts +6 -1
- package/build/internal/es/context-category-list.d.mts +5 -1
- package/build/internal/es/context-product-by-id.d.mts +19 -11
- package/build/internal/es/context-product-by-slug.d.mts +17 -11
- package/build/internal/es/context-product-item.d.mts +35 -2
- package/build/internal/es/context-product-list.d.mts +29 -1
- package/build/internal/es/context-product.d.mts +13 -13
- package/build/internal/es/context-promotion-item.d.mts +5 -1
- package/package.json +2 -2
|
@@ -30,11 +30,11 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// context-category-by-id.ts
|
|
31
31
|
var context_category_by_id_exports = {};
|
|
32
32
|
__export(context_category_by_id_exports, {
|
|
33
|
-
CategoryByIdContextProvider: () =>
|
|
34
|
-
CategoryByIdContextValues: () =>
|
|
35
|
-
default: () =>
|
|
36
|
-
injectAccessTokenGetter: () =>
|
|
37
|
-
useCategoryByIdContext: () =>
|
|
33
|
+
CategoryByIdContextProvider: () => Zl,
|
|
34
|
+
CategoryByIdContextValues: () => Jl,
|
|
35
|
+
default: () => Zl,
|
|
36
|
+
injectAccessTokenGetter: () => Ql,
|
|
37
|
+
useCategoryByIdContext: () => ql
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(context_category_by_id_exports);
|
|
40
40
|
|
|
@@ -45,20 +45,20 @@ var import_jsx_runtime = require("react/jsx-runtime");
|
|
|
45
45
|
var import_product_list_context_provider = __toESM(require("@wix/stores/product-list-context-provider"));
|
|
46
46
|
var import_category_info_context_provider = __toESM(require("@wix/stores/category-info-context-provider"));
|
|
47
47
|
var import_services_manager_react = require("@wix/services-manager-react");
|
|
48
|
-
var
|
|
49
|
-
var
|
|
50
|
-
var
|
|
51
|
-
var
|
|
48
|
+
var f = Object.create;
|
|
49
|
+
var p = Object.defineProperty;
|
|
50
|
+
var m = Object.getOwnPropertyDescriptor;
|
|
51
|
+
var h = Object.getOwnPropertyNames;
|
|
52
52
|
var ee = Object.getPrototypeOf;
|
|
53
|
-
var
|
|
54
|
-
var
|
|
53
|
+
var g = Object.prototype.hasOwnProperty;
|
|
54
|
+
var _ = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
|
|
55
55
|
var te = (e2, t2, n2, r2) => {
|
|
56
|
-
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 =
|
|
56
|
+
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 = h(t2), a2 = 0, o2 = i2.length, s2; a2 < o2; a2++) s2 = i2[a2], !g.call(e2, s2) && s2 !== n2 && p(e2, s2, { get: ((e3) => t2[e3]).bind(null, s2), enumerable: !(r2 = m(t2, s2)) || r2.enumerable });
|
|
57
57
|
return e2;
|
|
58
58
|
};
|
|
59
|
-
var ne = (e2, t2, n2) => (n2 = e2 == null ? {} :
|
|
60
|
-
var
|
|
61
|
-
function
|
|
59
|
+
var ne = (e2, t2, n2) => (n2 = e2 == null ? {} : f(ee(e2)), te(t2 || !e2 || !e2.__esModule || !g.call(e2, `default`) ? p(n2, `default`, { value: e2, enumerable: true }) : n2, e2));
|
|
60
|
+
var v = {};
|
|
61
|
+
function y(e2, t2 = false, n2 = (e3) => e3) {
|
|
62
62
|
return () => ({ __type: `event-definition`, type: e2, isDomainEvent: t2, transformations: n2 });
|
|
63
63
|
}
|
|
64
64
|
var re = (e2) => {
|
|
@@ -134,12 +134,12 @@ function ge(e2) {
|
|
|
134
134
|
return Object.entries(e2).filter(([e3, t2]) => !!t2).map(([e3, t2]) => `${e3}=${t2}`).join(`,`);
|
|
135
135
|
}
|
|
136
136
|
function _e(e2) {
|
|
137
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
138
|
-
globalThis.__wix_context__ = void 0,
|
|
137
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
138
|
+
globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
139
139
|
try {
|
|
140
140
|
return e2();
|
|
141
141
|
} finally {
|
|
142
|
-
globalThis.__wix_context__ = t2,
|
|
142
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
143
143
|
}
|
|
144
144
|
}
|
|
145
145
|
var ve = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
|
|
@@ -433,7 +433,7 @@ function $e(e2) {
|
|
|
433
433
|
if (n3.length > 0 && !n3.some(({ type: t3 }) => t3 === e3.eventType)) throw Error(`Unexpected event type: ${e3.eventType}. Expected one of: ${n3.map((e4) => e4.type).join(`, `)}`);
|
|
434
434
|
let r2 = t2.get(e3.eventType) ?? [];
|
|
435
435
|
await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Qe(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
|
|
436
|
-
}, apps: { AppInstalled:
|
|
436
|
+
}, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
|
|
437
437
|
}
|
|
438
438
|
var et = (e2) => e2.__type === `service-plugin-definition`;
|
|
439
439
|
function tt(e2) {
|
|
@@ -478,30 +478,30 @@ function tt(e2) {
|
|
|
478
478
|
return s2.transformations.toREST(await c2(s2.transformations.fromREST(e3)));
|
|
479
479
|
} } };
|
|
480
480
|
}
|
|
481
|
-
var
|
|
481
|
+
var b = `X-Wix-Consistent`;
|
|
482
482
|
function nt(e2) {
|
|
483
483
|
let t2 = e2.headers || { Authorization: `` }, n2 = { getAuthHeaders: (e3) => Promise.resolve({ headers: {} }) }, r2 = e2.auth, i2 = typeof r2 == `function` ? r2 : () => r2 ?? n2, a2 = () => i2().getAuthHeaders(e2.host), o2 = () => e2.fetch ?? fetch, s2 = async (n3, r3) => {
|
|
484
|
-
let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [
|
|
484
|
+
let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [b]: t2[b] } : {} }, l3 = e2.host?.getErrorHandler?.();
|
|
485
485
|
try {
|
|
486
486
|
if (typeof n3 == `string` || n3 instanceof URL) {
|
|
487
487
|
let e3 = await i3(n3, { ...r3, headers: c3 });
|
|
488
488
|
l3?.handleError(e3, { requestOptions: { url: n3.toString(), method: r3?.method } });
|
|
489
489
|
let a3 = rt(e3);
|
|
490
|
-
return a3 && (t2[
|
|
490
|
+
return a3 && (t2[b] = a3), e3;
|
|
491
491
|
}
|
|
492
492
|
{
|
|
493
493
|
for (let [e4, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e4, t3);
|
|
494
494
|
let e3 = await i3(n3, r3);
|
|
495
495
|
l3?.handleError(e3, { requestOptions: { url: n3.url, method: r3?.method } });
|
|
496
496
|
let a3 = rt(e3);
|
|
497
|
-
return a3 && (t2[
|
|
497
|
+
return a3 && (t2[b] = a3), e3;
|
|
498
498
|
}
|
|
499
499
|
} catch (e3) {
|
|
500
500
|
throw l3?.handleError(e3, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e3;
|
|
501
501
|
}
|
|
502
502
|
}, { client: c2, initModule: l2 } = tt(i2), { client: u2, initModule: d2 } = $e(i2), f2 = async (n3, r3) => {
|
|
503
|
-
let i3 = o2(), s3 = await a2(), c3 = ue(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [
|
|
504
|
-
return u3 && (t2[
|
|
503
|
+
let i3 = o2(), s3 = await a2(), c3 = ue(r3), l3 = await i3(n3, { ...r3, headers: { ...c3, ...t2, ...s3?.headers, ...r3?.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [b]: t2[b] } : {} } }), u3 = rt(l3);
|
|
504
|
+
return u3 && (t2[b] = u3), l3;
|
|
505
505
|
}, p2 = (t3, n3) => {
|
|
506
506
|
if (Ze(t3)) return d2(t3);
|
|
507
507
|
if (et(t3)) return l2(t3);
|
|
@@ -522,7 +522,7 @@ function nt(e2) {
|
|
|
522
522
|
let t3 = i2();
|
|
523
523
|
return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e2.host), t3;
|
|
524
524
|
}, setHeaders: m2, use: p2, enableContext(e3, t3 = { elevated: false }) {
|
|
525
|
-
e3 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ?
|
|
525
|
+
e3 === `global` ? globalThis.__wix_context__ == null ? t3.elevated ? globalThis.__wix_context__ = { elevatedClient: this } : globalThis.__wix_context__ = { client: this } : t3.elevated ? globalThis.__wix_context__.elevatedClient = this : globalThis.__wix_context__.client = this : t3.elevated ? v.elevatedClient = this : v.client = this;
|
|
526
526
|
}, fetch: (t3, n3) => {
|
|
527
527
|
let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
|
|
528
528
|
return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
|
|
@@ -544,7 +544,7 @@ var ct = it;
|
|
|
544
544
|
function lt(e2, t2) {
|
|
545
545
|
return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
|
|
546
546
|
}
|
|
547
|
-
function
|
|
547
|
+
function x(e2, { transformSystemFields: t2 = true } = {}) {
|
|
548
548
|
return t2 ? lt(e2, ct) : e2;
|
|
549
549
|
}
|
|
550
550
|
var ut = `sort.fieldName`;
|
|
@@ -572,13 +572,13 @@ function pt(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
|
|
575
|
+
function S(e2, t2 = []) {
|
|
576
576
|
return ft(e2, it, t2);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function C(e2, t2 = []) {
|
|
579
579
|
return ft(e2, at, t2);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function w(e2) {
|
|
582
582
|
return e2 ? new Date(e2) : void 0;
|
|
583
583
|
}
|
|
584
584
|
var mt = /* @__PURE__ */ new WeakMap();
|
|
@@ -630,7 +630,7 @@ function wt(e2, t2, n2) {
|
|
|
630
630
|
function Tt(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
|
|
631
631
|
t2 && Ct(e2, t2, i2), n2 && wt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => St(e3, r2, i2));
|
|
632
632
|
}
|
|
633
|
-
function
|
|
633
|
+
function T(e2, t2) {
|
|
634
634
|
if (!bt(e2)) return e2;
|
|
635
635
|
for (let { paths: n2, transformFn: r2 } of t2) Tt(e2, yt(n2), r2);
|
|
636
636
|
return e2;
|
|
@@ -654,7 +654,7 @@ function jt(e2) {
|
|
|
654
654
|
var Mt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
655
655
|
var Nt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
656
656
|
var Pt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
657
|
-
function
|
|
657
|
+
function E(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
658
658
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
659
659
|
if (Mt(e2)) return Ft(e2, t2, n2);
|
|
660
660
|
if (Nt(e2)) return Lt(e2);
|
|
@@ -704,7 +704,7 @@ function Ht() {
|
|
|
704
704
|
}, graphql() {
|
|
705
705
|
throw Error(`graphql is not available in this context`);
|
|
706
706
|
} };
|
|
707
|
-
let t2 = typeof $wixContext < `u` ? $wixContext.client :
|
|
707
|
+
let t2 = typeof $wixContext < `u` ? $wixContext.client : v.client === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.client : v.client, n2 = typeof $wixContext < `u` ? $wixContext.elevatedClient : v.elevatedClient === void 0 ? globalThis.__wix_context__ === void 0 ? void 0 : globalThis.__wix_context__.elevatedClient : v.elevatedClient;
|
|
708
708
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
709
709
|
if (r2) {
|
|
710
710
|
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`);
|
|
@@ -724,12 +724,12 @@ function Ht() {
|
|
|
724
724
|
} };
|
|
725
725
|
}
|
|
726
726
|
function Ut(e2) {
|
|
727
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
728
|
-
globalThis.__wix_context__ = void 0,
|
|
727
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
728
|
+
globalThis.__wix_context__ = void 0, v.client = void 0, v.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
729
729
|
try {
|
|
730
730
|
return e2();
|
|
731
731
|
} finally {
|
|
732
|
-
globalThis.__wix_context__ = t2,
|
|
732
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
733
733
|
}
|
|
734
734
|
}
|
|
735
735
|
function Wt(e2, t2) {
|
|
@@ -745,16 +745,16 @@ function Gt(e2) {
|
|
|
745
745
|
};
|
|
746
746
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
747
747
|
}
|
|
748
|
-
function
|
|
748
|
+
function D(e2, t2 = false) {
|
|
749
749
|
return Wt(e2, t2);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function O(e2, t2) {
|
|
752
752
|
let n2 = Kt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
753
753
|
return t2 && r2 ? new URLSearchParams({ ".r": Jt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
754
754
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
755
755
|
}), e3), new URLSearchParams());
|
|
756
756
|
}
|
|
757
|
-
function
|
|
757
|
+
function k(e2) {
|
|
758
758
|
let t2 = cn(on(e2.host), e2.domainToMappings);
|
|
759
759
|
return _n(mn(e2.protoPath, e2.data || {}), t2);
|
|
760
760
|
}
|
|
@@ -845,13 +845,13 @@ function _n(e2, t2) {
|
|
|
845
845
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
846
846
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
847
847
|
}
|
|
848
|
-
function
|
|
848
|
+
function A(e2) {
|
|
849
849
|
return Gt(e2);
|
|
850
850
|
}
|
|
851
851
|
function vn(e2) {
|
|
852
852
|
return isFinite(e2) ? e2 : e2.toString();
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function j(e2) {
|
|
855
855
|
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
856
856
|
}
|
|
857
857
|
var yn = `x-wix-linguist`;
|
|
@@ -912,7 +912,7 @@ var jn = (e2, t2) => {
|
|
|
912
912
|
return nt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
913
913
|
};
|
|
914
914
|
var Mn = (e2) => jn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
|
|
915
|
-
var
|
|
915
|
+
var M = class {
|
|
916
916
|
constructor() {
|
|
917
917
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
918
918
|
}
|
|
@@ -929,7 +929,7 @@ var Nn = class {
|
|
|
929
929
|
onUnsubscribe() {
|
|
930
930
|
}
|
|
931
931
|
};
|
|
932
|
-
var
|
|
932
|
+
var Nn = new class extends M {
|
|
933
933
|
#e;
|
|
934
934
|
#t;
|
|
935
935
|
#n;
|
|
@@ -967,9 +967,9 @@ var Pn = new class extends Nn {
|
|
|
967
967
|
return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
|
|
968
968
|
}
|
|
969
969
|
}();
|
|
970
|
-
var
|
|
971
|
-
var
|
|
972
|
-
#e =
|
|
970
|
+
var Pn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
|
|
971
|
+
var N = new class {
|
|
972
|
+
#e = Pn;
|
|
973
973
|
setTimeoutProvider(e2) {
|
|
974
974
|
this.#e = e2;
|
|
975
975
|
}
|
|
@@ -986,33 +986,33 @@ var j = new class {
|
|
|
986
986
|
this.#e.clearInterval(e2);
|
|
987
987
|
}
|
|
988
988
|
}();
|
|
989
|
-
function
|
|
989
|
+
function Fn(e2) {
|
|
990
990
|
setTimeout(e2, 0);
|
|
991
991
|
}
|
|
992
|
-
var
|
|
993
|
-
function
|
|
992
|
+
var In = typeof window > `u` || `Deno` in globalThis;
|
|
993
|
+
function P() {
|
|
994
994
|
}
|
|
995
|
-
function
|
|
995
|
+
function Ln(e2, t2) {
|
|
996
996
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
997
997
|
}
|
|
998
|
-
function
|
|
998
|
+
function Rn(e2) {
|
|
999
999
|
return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
|
|
1000
1000
|
}
|
|
1001
|
-
function
|
|
1001
|
+
function zn(e2, t2) {
|
|
1002
1002
|
return Math.max(e2 + (t2 || 0) - Date.now(), 0);
|
|
1003
1003
|
}
|
|
1004
|
-
function
|
|
1004
|
+
function F(e2, t2) {
|
|
1005
1005
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
1006
1006
|
}
|
|
1007
|
-
function
|
|
1007
|
+
function I(e2, t2) {
|
|
1008
1008
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
1009
1009
|
}
|
|
1010
|
-
function
|
|
1010
|
+
function Bn(e2, t2) {
|
|
1011
1011
|
let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
|
|
1012
1012
|
if (o2) {
|
|
1013
1013
|
if (r2) {
|
|
1014
|
-
if (t2.queryHash !==
|
|
1015
|
-
} else if (!
|
|
1014
|
+
if (t2.queryHash !== Hn(o2, t2.options)) return false;
|
|
1015
|
+
} else if (!Wn(t2.queryKey, o2)) return false;
|
|
1016
1016
|
}
|
|
1017
1017
|
if (n2 !== `all`) {
|
|
1018
1018
|
let e3 = t2.isActive();
|
|
@@ -1020,104 +1020,104 @@ function Vn(e2, t2) {
|
|
|
1020
1020
|
}
|
|
1021
1021
|
return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function Vn(e2, t2) {
|
|
1024
1024
|
let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
|
|
1025
1025
|
if (a2) {
|
|
1026
1026
|
if (!t2.options.mutationKey) return false;
|
|
1027
1027
|
if (n2) {
|
|
1028
|
-
if (
|
|
1029
|
-
} else if (!
|
|
1028
|
+
if (Un(t2.options.mutationKey) !== Un(a2)) return false;
|
|
1029
|
+
} else if (!Wn(t2.options.mutationKey, a2)) return false;
|
|
1030
1030
|
}
|
|
1031
1031
|
return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1034
|
-
return (t2?.queryKeyHashFn ||
|
|
1033
|
+
function Hn(e2, t2) {
|
|
1034
|
+
return (t2?.queryKeyHashFn || Un)(e2);
|
|
1035
1035
|
}
|
|
1036
|
-
function
|
|
1037
|
-
return JSON.stringify(e2, (e3, t2) =>
|
|
1036
|
+
function Un(e2) {
|
|
1037
|
+
return JSON.stringify(e2, (e3, t2) => Yn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1040
|
-
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) =>
|
|
1039
|
+
function Wn(e2, t2) {
|
|
1040
|
+
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) => Wn(e2[n2], t2[n2])) : false;
|
|
1041
1041
|
}
|
|
1042
|
-
var
|
|
1043
|
-
function
|
|
1042
|
+
var Gn = Object.prototype.hasOwnProperty;
|
|
1043
|
+
function Kn(e2, t2, n2 = 0) {
|
|
1044
1044
|
if (e2 === t2) return e2;
|
|
1045
1045
|
if (n2 > 500) return t2;
|
|
1046
|
-
let r2 =
|
|
1047
|
-
if (!r2 && !(
|
|
1046
|
+
let r2 = Jn(e2) && Jn(t2);
|
|
1047
|
+
if (!r2 && !(Yn(e2) && Yn(t2))) return t2;
|
|
1048
1048
|
let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
|
|
1049
1049
|
for (let l2 = 0; l2 < o2; l2++) {
|
|
1050
1050
|
let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
|
|
1051
1051
|
if (u2 === d2) {
|
|
1052
|
-
s2[o3] = u2, (r2 ? l2 < i2 :
|
|
1052
|
+
s2[o3] = u2, (r2 ? l2 < i2 : Gn.call(e2, o3)) && c2++;
|
|
1053
1053
|
continue;
|
|
1054
1054
|
}
|
|
1055
1055
|
if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
|
|
1056
1056
|
s2[o3] = d2;
|
|
1057
1057
|
continue;
|
|
1058
1058
|
}
|
|
1059
|
-
let f2 =
|
|
1059
|
+
let f2 = Kn(u2, d2, n2 + 1);
|
|
1060
1060
|
s2[o3] = f2, f2 === u2 && c2++;
|
|
1061
1061
|
}
|
|
1062
1062
|
return i2 === o2 && c2 === i2 ? e2 : s2;
|
|
1063
1063
|
}
|
|
1064
|
-
function
|
|
1064
|
+
function qn(e2, t2) {
|
|
1065
1065
|
if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
|
|
1066
1066
|
for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
|
|
1067
1067
|
return true;
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1069
|
+
function Jn(e2) {
|
|
1070
1070
|
return Array.isArray(e2) && e2.length === Object.keys(e2).length;
|
|
1071
1071
|
}
|
|
1072
|
-
function
|
|
1073
|
-
if (!
|
|
1072
|
+
function Yn(e2) {
|
|
1073
|
+
if (!Xn(e2)) return false;
|
|
1074
1074
|
let t2 = e2.constructor;
|
|
1075
1075
|
if (t2 === void 0) return true;
|
|
1076
1076
|
let n2 = t2.prototype;
|
|
1077
|
-
return !(!
|
|
1077
|
+
return !(!Xn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
|
|
1078
1078
|
}
|
|
1079
|
-
function
|
|
1079
|
+
function Xn(e2) {
|
|
1080
1080
|
return Object.prototype.toString.call(e2) === `[object Object]`;
|
|
1081
1081
|
}
|
|
1082
|
-
function
|
|
1082
|
+
function Zn(e2) {
|
|
1083
1083
|
return new Promise((t2) => {
|
|
1084
|
-
|
|
1084
|
+
N.setTimeout(t2, e2);
|
|
1085
1085
|
});
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 :
|
|
1087
|
+
function Qn(e2, t2, n2) {
|
|
1088
|
+
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Kn(e2, t2);
|
|
1089
1089
|
}
|
|
1090
|
-
function
|
|
1090
|
+
function $n(e2) {
|
|
1091
1091
|
return e2;
|
|
1092
1092
|
}
|
|
1093
|
-
function
|
|
1093
|
+
function er(e2, t2, n2 = 0) {
|
|
1094
1094
|
let r2 = [...e2, t2];
|
|
1095
1095
|
return n2 && r2.length > n2 ? r2.slice(1) : r2;
|
|
1096
1096
|
}
|
|
1097
|
-
function
|
|
1097
|
+
function tr(e2, t2, n2 = 0) {
|
|
1098
1098
|
let r2 = [t2, ...e2];
|
|
1099
1099
|
return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
|
|
1100
1100
|
}
|
|
1101
|
-
var
|
|
1102
|
-
function nr(e2, t2) {
|
|
1103
|
-
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1104
|
-
}
|
|
1101
|
+
var nr = Symbol();
|
|
1105
1102
|
function rr(e2, t2) {
|
|
1103
|
+
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1104
|
+
}
|
|
1105
|
+
function ir(e2, t2) {
|
|
1106
1106
|
return typeof e2 == `function` ? e2(...t2) : !!e2;
|
|
1107
1107
|
}
|
|
1108
|
-
function
|
|
1108
|
+
function ar(e2, t2, n2) {
|
|
1109
1109
|
let r2 = false, i2;
|
|
1110
1110
|
return Object.defineProperty(e2, "signal", { enumerable: true, get: () => (i2 ??= t2(), r2 ? i2 : (r2 = true, i2.aborted ? n2() : i2.addEventListener(`abort`, n2, { once: true }), i2)) }), e2;
|
|
1111
1111
|
}
|
|
1112
|
-
var
|
|
1113
|
-
let e2 = () =>
|
|
1112
|
+
var or = /* @__PURE__ */ (() => {
|
|
1113
|
+
let e2 = () => In;
|
|
1114
1114
|
return { isServer() {
|
|
1115
1115
|
return e2();
|
|
1116
1116
|
}, setIsServer(t2) {
|
|
1117
1117
|
e2 = t2;
|
|
1118
1118
|
} };
|
|
1119
1119
|
})();
|
|
1120
|
-
function
|
|
1120
|
+
function sr() {
|
|
1121
1121
|
let e2, t2, n2 = new Promise((n3, r3) => {
|
|
1122
1122
|
e2 = n3, t2 = r3;
|
|
1123
1123
|
});
|
|
@@ -1132,13 +1132,13 @@ function ar() {
|
|
|
1132
1132
|
r2({ status: `rejected`, reason: e3 }), t2(e3);
|
|
1133
1133
|
}, n2;
|
|
1134
1134
|
}
|
|
1135
|
-
var
|
|
1136
|
-
function
|
|
1135
|
+
var cr = Fn;
|
|
1136
|
+
function lr() {
|
|
1137
1137
|
let e2 = [], t2 = 0, n2 = (e3) => {
|
|
1138
1138
|
e3();
|
|
1139
1139
|
}, r2 = (e3) => {
|
|
1140
1140
|
e3();
|
|
1141
|
-
}, i2 =
|
|
1141
|
+
}, i2 = cr, a2 = (r3) => {
|
|
1142
1142
|
t2 ? e2.push(r3) : i2(() => {
|
|
1143
1143
|
n2(r3);
|
|
1144
1144
|
});
|
|
@@ -1173,8 +1173,8 @@ function sr() {
|
|
|
1173
1173
|
i2 = e3;
|
|
1174
1174
|
} };
|
|
1175
1175
|
}
|
|
1176
|
-
var
|
|
1177
|
-
var
|
|
1176
|
+
var L = lr();
|
|
1177
|
+
var ur = new class extends M {
|
|
1178
1178
|
#e = true;
|
|
1179
1179
|
#t;
|
|
1180
1180
|
#n;
|
|
@@ -1206,28 +1206,28 @@ var cr = new class extends Nn {
|
|
|
1206
1206
|
return this.#e;
|
|
1207
1207
|
}
|
|
1208
1208
|
}();
|
|
1209
|
-
function
|
|
1209
|
+
function dr(e2) {
|
|
1210
1210
|
return Math.min(1e3 * 2 ** e2, 3e4);
|
|
1211
1211
|
}
|
|
1212
|
-
function
|
|
1213
|
-
return (e2 ?? `online`) !== `online` ||
|
|
1212
|
+
function fr(e2) {
|
|
1213
|
+
return (e2 ?? `online`) !== `online` || ur.isOnline();
|
|
1214
1214
|
}
|
|
1215
|
-
var
|
|
1215
|
+
var pr = class extends Error {
|
|
1216
1216
|
constructor(e2) {
|
|
1217
1217
|
super(`CancelledError`), this.revert = e2?.revert, this.silent = e2?.silent;
|
|
1218
1218
|
}
|
|
1219
1219
|
};
|
|
1220
|
-
function
|
|
1221
|
-
let t2 = false, n2 = 0, r2, i2 =
|
|
1220
|
+
function mr(e2) {
|
|
1221
|
+
let t2 = false, n2 = 0, r2, i2 = sr(), a2 = () => i2.status !== `pending`, o2 = (t3) => {
|
|
1222
1222
|
if (!a2()) {
|
|
1223
|
-
let n3 = new
|
|
1223
|
+
let n3 = new pr(t3);
|
|
1224
1224
|
f2(n3), e2.onCancel?.(n3);
|
|
1225
1225
|
}
|
|
1226
1226
|
}, s2 = () => {
|
|
1227
1227
|
t2 = true;
|
|
1228
1228
|
}, c2 = () => {
|
|
1229
1229
|
t2 = false;
|
|
1230
|
-
}, l2 = () =>
|
|
1230
|
+
}, l2 = () => Nn.isFocused() && (e2.networkMode === `always` || ur.isOnline()) && e2.canRun(), u2 = () => fr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
|
|
1231
1231
|
a2() || (r2?.(), i2.resolve(e3));
|
|
1232
1232
|
}, f2 = (e3) => {
|
|
1233
1233
|
a2() || (r2?.(), i2.reject(e3));
|
|
@@ -1247,56 +1247,56 @@ function fr(e2) {
|
|
|
1247
1247
|
}
|
|
1248
1248
|
Promise.resolve(r3).then(d2).catch((r4) => {
|
|
1249
1249
|
if (a2()) return;
|
|
1250
|
-
let i4 = e2.retry ?? (
|
|
1250
|
+
let i4 = e2.retry ?? (or.isServer() ? 0 : 3), o3 = e2.retryDelay ?? dr, s3 = typeof o3 == `function` ? o3(n2, r4) : o3, c3 = i4 === true || typeof i4 == `number` && n2 < i4 || typeof i4 == `function` && i4(n2, r4);
|
|
1251
1251
|
if (t2 || !c3) {
|
|
1252
1252
|
f2(r4);
|
|
1253
1253
|
return;
|
|
1254
1254
|
}
|
|
1255
|
-
n2++, e2.onFail?.(n2, r4),
|
|
1255
|
+
n2++, e2.onFail?.(n2, r4), Zn(s3).then(() => l2() ? void 0 : p2()).then(() => {
|
|
1256
1256
|
t2 ? f2(r4) : m2();
|
|
1257
1257
|
});
|
|
1258
1258
|
});
|
|
1259
1259
|
};
|
|
1260
1260
|
return { promise: i2, status: () => i2.status, cancel: o2, continue: () => (r2?.(), i2), cancelRetry: s2, continueRetry: c2, canStart: u2, start: () => (u2() ? m2() : p2().then(m2), i2) };
|
|
1261
1261
|
}
|
|
1262
|
-
var
|
|
1262
|
+
var hr = class {
|
|
1263
1263
|
#e;
|
|
1264
1264
|
destroy() {
|
|
1265
1265
|
this.clearGcTimeout();
|
|
1266
1266
|
}
|
|
1267
1267
|
scheduleGc() {
|
|
1268
|
-
this.clearGcTimeout(),
|
|
1268
|
+
this.clearGcTimeout(), Rn(this.gcTime) && (this.#e = N.setTimeout(() => {
|
|
1269
1269
|
this.optionalRemove();
|
|
1270
1270
|
}, this.gcTime));
|
|
1271
1271
|
}
|
|
1272
1272
|
updateGcTime(e2) {
|
|
1273
|
-
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (
|
|
1273
|
+
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (or.isServer() ? 1 / 0 : 3e5));
|
|
1274
1274
|
}
|
|
1275
1275
|
clearGcTimeout() {
|
|
1276
|
-
this.#e !== void 0 && (
|
|
1276
|
+
this.#e !== void 0 && (N.clearTimeout(this.#e), this.#e = void 0);
|
|
1277
1277
|
}
|
|
1278
1278
|
};
|
|
1279
|
-
function
|
|
1279
|
+
function gr(e2) {
|
|
1280
1280
|
return { onFetch: (t2, n2) => {
|
|
1281
1281
|
let r2 = t2.options, i2 = t2.fetchOptions?.meta?.fetchMore?.direction, a2 = t2.state.data?.pages || [], o2 = t2.state.data?.pageParams || [], s2 = { pages: [], pageParams: [] }, c2 = 0, l2 = async () => {
|
|
1282
1282
|
let n3 = false, l3 = (e3) => {
|
|
1283
|
-
|
|
1284
|
-
}, u2 =
|
|
1283
|
+
ar(e3, () => t2.signal, () => n3 = true);
|
|
1284
|
+
}, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
|
|
1285
1285
|
if (n3) return Promise.reject(t2.signal.reason);
|
|
1286
1286
|
if (r3 == null && e3.pages.length) return Promise.resolve(e3);
|
|
1287
1287
|
let a3 = (() => {
|
|
1288
1288
|
let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
|
|
1289
1289
|
return l3(e4), e4;
|
|
1290
|
-
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ?
|
|
1290
|
+
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
|
|
1291
1291
|
return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
|
|
1292
1292
|
};
|
|
1293
1293
|
if (i2 && a2.length) {
|
|
1294
|
-
let e3 = i2 === `backward`, t3 = e3 ?
|
|
1294
|
+
let e3 = i2 === `backward`, t3 = e3 ? vr : _r, n4 = { pages: a2, pageParams: o2 };
|
|
1295
1295
|
s2 = await d2(n4, t3(r2, n4), e3);
|
|
1296
1296
|
} else {
|
|
1297
1297
|
let t3 = e2 ?? a2.length;
|
|
1298
1298
|
do {
|
|
1299
|
-
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam :
|
|
1299
|
+
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam : _r(r2, s2);
|
|
1300
1300
|
if (c2 > 0 && e3 == null) break;
|
|
1301
1301
|
s2 = await d2(s2, e3), c2++;
|
|
1302
1302
|
} while (c2 < t3);
|
|
@@ -1306,20 +1306,20 @@ function mr(e2) {
|
|
|
1306
1306
|
t2.fetchFn = t2.options.persister ? () => t2.options.persister?.(l2, { client: t2.client, queryKey: t2.queryKey, meta: t2.options.meta, signal: t2.signal }, n2) : l2;
|
|
1307
1307
|
} };
|
|
1308
1308
|
}
|
|
1309
|
-
function
|
|
1309
|
+
function _r(e2, { pages: t2, pageParams: n2 }) {
|
|
1310
1310
|
let r2 = t2.length - 1;
|
|
1311
1311
|
return t2.length > 0 ? e2.getNextPageParam(t2[r2], t2, n2[r2], n2) : void 0;
|
|
1312
1312
|
}
|
|
1313
|
-
function
|
|
1313
|
+
function vr(e2, { pages: t2, pageParams: n2 }) {
|
|
1314
1314
|
return t2.length > 0 ? e2.getPreviousPageParam?.(t2[0], t2, n2[0], n2) : void 0;
|
|
1315
1315
|
}
|
|
1316
|
-
function
|
|
1317
|
-
return t2 ?
|
|
1316
|
+
function yr(e2, t2) {
|
|
1317
|
+
return t2 ? _r(e2, t2) != null : false;
|
|
1318
1318
|
}
|
|
1319
|
-
function
|
|
1320
|
-
return !t2 || !e2.getPreviousPageParam ? false :
|
|
1319
|
+
function br(e2, t2) {
|
|
1320
|
+
return !t2 || !e2.getPreviousPageParam ? false : vr(e2, t2) != null;
|
|
1321
1321
|
}
|
|
1322
|
-
var
|
|
1322
|
+
var xr = class extends hr {
|
|
1323
1323
|
#e;
|
|
1324
1324
|
#t;
|
|
1325
1325
|
#n;
|
|
@@ -1329,7 +1329,7 @@ var yr = class extends pr {
|
|
|
1329
1329
|
#o;
|
|
1330
1330
|
#s;
|
|
1331
1331
|
constructor(e2) {
|
|
1332
|
-
super(), this.#s = false, this.#o = e2.defaultOptions, this.setOptions(e2.options), this.observers = [], this.#i = e2.client, this.#r = this.#i.getQueryCache(), this.queryKey = e2.queryKey, this.queryHash = e2.queryHash, this.#t =
|
|
1332
|
+
super(), this.#s = false, this.#o = e2.defaultOptions, this.setOptions(e2.options), this.observers = [], this.#i = e2.client, this.#r = this.#i.getQueryCache(), this.queryKey = e2.queryKey, this.queryHash = e2.queryHash, this.#t = wr(this.options), this.state = e2.state ?? this.#t, this.scheduleGc();
|
|
1333
1333
|
}
|
|
1334
1334
|
get meta() {
|
|
1335
1335
|
return this.options.meta;
|
|
@@ -1342,15 +1342,15 @@ var yr = class extends pr {
|
|
|
1342
1342
|
}
|
|
1343
1343
|
setOptions(e2) {
|
|
1344
1344
|
if (this.options = { ...this.#o, ...e2 }, e2?._type && (this.#e = e2._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
1345
|
-
let e3 =
|
|
1346
|
-
e3.data !== void 0 && (this.setState(
|
|
1345
|
+
let e3 = wr(this.options);
|
|
1346
|
+
e3.data !== void 0 && (this.setState(Cr(e3.data, e3.dataUpdatedAt)), this.#t = e3);
|
|
1347
1347
|
}
|
|
1348
1348
|
}
|
|
1349
1349
|
optionalRemove() {
|
|
1350
1350
|
!this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
|
|
1351
1351
|
}
|
|
1352
1352
|
setData(e2, t2) {
|
|
1353
|
-
let n2 =
|
|
1353
|
+
let n2 = Qn(this.state.data, e2, this.options);
|
|
1354
1354
|
return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
|
|
1355
1355
|
}
|
|
1356
1356
|
setState(e2) {
|
|
@@ -1358,7 +1358,7 @@ var yr = class extends pr {
|
|
|
1358
1358
|
}
|
|
1359
1359
|
cancel(e2) {
|
|
1360
1360
|
let t2 = this.#a?.promise;
|
|
1361
|
-
return this.#a?.cancel(e2), t2 ? t2.then(
|
|
1361
|
+
return this.#a?.cancel(e2), t2 ? t2.then(P).catch(P) : Promise.resolve();
|
|
1362
1362
|
}
|
|
1363
1363
|
destroy() {
|
|
1364
1364
|
super.destroy(), this.cancel({ silent: true });
|
|
@@ -1370,22 +1370,22 @@ var yr = class extends pr {
|
|
|
1370
1370
|
this.destroy(), this.setState(this.resetState);
|
|
1371
1371
|
}
|
|
1372
1372
|
isActive() {
|
|
1373
|
-
return this.observers.some((e2) =>
|
|
1373
|
+
return this.observers.some((e2) => I(e2.options.enabled, this) !== false);
|
|
1374
1374
|
}
|
|
1375
1375
|
isDisabled() {
|
|
1376
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
1376
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
|
|
1377
1377
|
}
|
|
1378
1378
|
isFetched() {
|
|
1379
1379
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
1380
1380
|
}
|
|
1381
1381
|
isStatic() {
|
|
1382
|
-
return this.getObserversCount() > 0 && this.observers.some((e2) =>
|
|
1382
|
+
return this.getObserversCount() > 0 && this.observers.some((e2) => F(e2.options.staleTime, this) === `static`);
|
|
1383
1383
|
}
|
|
1384
1384
|
isStale() {
|
|
1385
1385
|
return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
1386
1386
|
}
|
|
1387
1387
|
isStaleByTime(e2 = 0) {
|
|
1388
|
-
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !
|
|
1388
|
+
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !zn(this.state.dataUpdatedAt, e2);
|
|
1389
1389
|
}
|
|
1390
1390
|
onFocus() {
|
|
1391
1391
|
this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
|
|
@@ -1420,7 +1420,7 @@ var yr = class extends pr {
|
|
|
1420
1420
|
let n2 = new AbortController(), r2 = (e3) => {
|
|
1421
1421
|
Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
|
|
1422
1422
|
}, i2 = () => {
|
|
1423
|
-
let e3 =
|
|
1423
|
+
let e3 = rr(this.options, t2), n3 = (() => {
|
|
1424
1424
|
let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
|
|
1425
1425
|
return r2(e4), e4;
|
|
1426
1426
|
})();
|
|
@@ -1429,8 +1429,8 @@ var yr = class extends pr {
|
|
|
1429
1429
|
let e3 = { fetchOptions: t2, options: this.options, queryKey: this.queryKey, client: this.#i, state: this.state, fetchFn: i2 };
|
|
1430
1430
|
return r2(e3), e3;
|
|
1431
1431
|
})();
|
|
1432
|
-
(this.#e === `infinite` ?
|
|
1433
|
-
e3 instanceof
|
|
1432
|
+
(this.#e === `infinite` ? gr(this.options.pages) : this.options.behavior)?.onFetch(a2, this), this.#n = this.state, (this.state.fetchStatus === `idle` || this.state.fetchMeta !== a2.fetchOptions?.meta) && this.#l({ type: `fetch`, meta: a2.fetchOptions?.meta }), this.#a = mr({ initialPromise: t2?.initialPromise, fn: a2.fetchFn, onCancel: (e3) => {
|
|
1433
|
+
e3 instanceof pr && e3.revert && this.setState({ ...this.#n, fetchStatus: `idle` }), n2.abort();
|
|
1434
1434
|
}, onFail: (e3, t3) => {
|
|
1435
1435
|
this.#l({ type: `failed`, failureCount: e3, error: t3 });
|
|
1436
1436
|
}, onPause: () => {
|
|
@@ -1443,7 +1443,7 @@ var yr = class extends pr {
|
|
|
1443
1443
|
if (e3 === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
1444
1444
|
return this.setData(e3), this.#r.config.onSuccess?.(e3, this), this.#r.config.onSettled?.(e3, this.state.error, this), e3;
|
|
1445
1445
|
} catch (e3) {
|
|
1446
|
-
if (e3 instanceof
|
|
1446
|
+
if (e3 instanceof pr) {
|
|
1447
1447
|
if (e3.silent) return this.#a.promise;
|
|
1448
1448
|
if (e3.revert) {
|
|
1449
1449
|
if (this.state.data === void 0) throw e3;
|
|
@@ -1465,9 +1465,9 @@ var yr = class extends pr {
|
|
|
1465
1465
|
case `continue`:
|
|
1466
1466
|
return { ...t3, fetchStatus: `fetching` };
|
|
1467
1467
|
case `fetch`:
|
|
1468
|
-
return { ...t3, ...
|
|
1468
|
+
return { ...t3, ...Sr(t3.data, this.options), fetchMeta: e2.meta ?? null };
|
|
1469
1469
|
case `success`:
|
|
1470
|
-
let n2 = { ...t3, ...
|
|
1470
|
+
let n2 = { ...t3, ...Cr(e2.data, e2.dataUpdatedAt), dataUpdateCount: t3.dataUpdateCount + 1, ...!e2.manual && { fetchStatus: `idle`, fetchFailureCount: 0, fetchFailureReason: null } };
|
|
1471
1471
|
return this.#n = e2.manual ? n2 : void 0, n2;
|
|
1472
1472
|
case `error`:
|
|
1473
1473
|
let r2 = e2.error;
|
|
@@ -1478,26 +1478,26 @@ var yr = class extends pr {
|
|
|
1478
1478
|
return { ...t3, ...e2.state };
|
|
1479
1479
|
}
|
|
1480
1480
|
};
|
|
1481
|
-
this.state = t2(this.state),
|
|
1481
|
+
this.state = t2(this.state), L.batch(() => {
|
|
1482
1482
|
this.observers.forEach((e3) => {
|
|
1483
1483
|
e3.onQueryUpdate();
|
|
1484
1484
|
}), this.#r.notify({ query: this, type: `updated`, action: e2 });
|
|
1485
1485
|
});
|
|
1486
1486
|
}
|
|
1487
1487
|
};
|
|
1488
|
-
function
|
|
1489
|
-
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus:
|
|
1488
|
+
function Sr(e2, t2) {
|
|
1489
|
+
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: fr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1490
1490
|
}
|
|
1491
|
-
function
|
|
1491
|
+
function Cr(e2, t2) {
|
|
1492
1492
|
return { data: e2, dataUpdatedAt: t2 ?? Date.now(), error: null, isInvalidated: false, status: `success` };
|
|
1493
1493
|
}
|
|
1494
|
-
function
|
|
1494
|
+
function wr(e2) {
|
|
1495
1495
|
let t2 = typeof e2.initialData == `function` ? e2.initialData() : e2.initialData, n2 = t2 !== void 0, r2 = n2 ? typeof e2.initialDataUpdatedAt == `function` ? e2.initialDataUpdatedAt() : e2.initialDataUpdatedAt : 0;
|
|
1496
1496
|
return { data: t2, dataUpdateCount: 0, dataUpdatedAt: n2 ? r2 ?? Date.now() : 0, error: null, errorUpdateCount: 0, errorUpdatedAt: 0, fetchFailureCount: 0, fetchFailureReason: null, fetchMeta: null, isInvalidated: false, status: n2 ? `success` : `pending`, fetchStatus: `idle` };
|
|
1497
1497
|
}
|
|
1498
|
-
var
|
|
1498
|
+
var Tr = class extends M {
|
|
1499
1499
|
constructor(e2, t2) {
|
|
1500
|
-
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o =
|
|
1500
|
+
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = sr(), this.bindMethods(), this.setOptions(t2);
|
|
1501
1501
|
}
|
|
1502
1502
|
#e;
|
|
1503
1503
|
#t = void 0;
|
|
@@ -1518,32 +1518,32 @@ var Cr = class extends Nn {
|
|
|
1518
1518
|
this.refetch = this.refetch.bind(this);
|
|
1519
1519
|
}
|
|
1520
1520
|
onSubscribe() {
|
|
1521
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1521
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Dr(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1522
1522
|
}
|
|
1523
1523
|
onUnsubscribe() {
|
|
1524
1524
|
this.hasListeners() || this.destroy();
|
|
1525
1525
|
}
|
|
1526
1526
|
shouldFetchOnReconnect() {
|
|
1527
|
-
return
|
|
1527
|
+
return Or(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1528
1528
|
}
|
|
1529
1529
|
shouldFetchOnWindowFocus() {
|
|
1530
|
-
return
|
|
1530
|
+
return Or(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1531
1531
|
}
|
|
1532
1532
|
destroy() {
|
|
1533
1533
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1534
1534
|
}
|
|
1535
1535
|
setOptions(e2) {
|
|
1536
1536
|
let t2 = this.options, n2 = this.#t;
|
|
1537
|
-
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof
|
|
1538
|
-
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !
|
|
1537
|
+
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof I(this.options.enabled, this.#t) != `boolean`) throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);
|
|
1538
|
+
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !qn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
|
|
1539
1539
|
let r2 = this.hasListeners();
|
|
1540
|
-
r2 &&
|
|
1540
|
+
r2 && kr(this.#t, n2, this.options, t2) && this.#h(), this.updateResult(), r2 && (this.#t !== n2 || I(this.options.enabled, this.#t) !== I(t2.enabled, this.#t) || F(this.options.staleTime, this.#t) !== F(t2.staleTime, this.#t)) && this.#g();
|
|
1541
1541
|
let i2 = this.#_();
|
|
1542
|
-
r2 && (this.#t !== n2 ||
|
|
1542
|
+
r2 && (this.#t !== n2 || I(this.options.enabled, this.#t) !== I(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
|
|
1543
1543
|
}
|
|
1544
1544
|
getOptimisticResult(e2) {
|
|
1545
1545
|
let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
|
|
1546
|
-
return
|
|
1546
|
+
return jr(this, n2) && (this.#r = n2, this.#a = this.options, this.#i = this.#t.state), n2;
|
|
1547
1547
|
}
|
|
1548
1548
|
getCurrentResult() {
|
|
1549
1549
|
return this.#r;
|
|
@@ -1570,14 +1570,14 @@ var Cr = class extends Nn {
|
|
|
1570
1570
|
#h(e2) {
|
|
1571
1571
|
this.#S();
|
|
1572
1572
|
let t2 = this.#t.fetch(this.options, e2);
|
|
1573
|
-
return e2?.throwOnError || (t2 = t2.catch(
|
|
1573
|
+
return e2?.throwOnError || (t2 = t2.catch(P)), t2;
|
|
1574
1574
|
}
|
|
1575
1575
|
#g() {
|
|
1576
1576
|
this.#b();
|
|
1577
|
-
let e2 =
|
|
1578
|
-
if (
|
|
1579
|
-
let t2 =
|
|
1580
|
-
this.#d =
|
|
1577
|
+
let e2 = F(this.options.staleTime, this.#t);
|
|
1578
|
+
if (or.isServer() || this.#r.isStale || !Rn(e2)) return;
|
|
1579
|
+
let t2 = zn(this.#r.dataUpdatedAt, e2) + 1;
|
|
1580
|
+
this.#d = N.setTimeout(() => {
|
|
1581
1581
|
this.#r.isStale || this.updateResult();
|
|
1582
1582
|
}, t2);
|
|
1583
1583
|
}
|
|
@@ -1585,47 +1585,47 @@ var Cr = class extends Nn {
|
|
|
1585
1585
|
return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
|
|
1586
1586
|
}
|
|
1587
1587
|
#v(e2) {
|
|
1588
|
-
this.#x(), this.#p = e2, !
|
|
1589
|
-
(this.options.refetchIntervalInBackground ||
|
|
1588
|
+
this.#x(), this.#p = e2, !or.isServer() && I(this.options.enabled, this.#t) !== false && Rn(this.#p) && this.#p !== 0 && (this.#f = N.setInterval(() => {
|
|
1589
|
+
(this.options.refetchIntervalInBackground || Nn.isFocused()) && this.#h();
|
|
1590
1590
|
}, this.#p));
|
|
1591
1591
|
}
|
|
1592
1592
|
#y() {
|
|
1593
1593
|
this.#g(), this.#v(this.#_());
|
|
1594
1594
|
}
|
|
1595
1595
|
#b() {
|
|
1596
|
-
this.#d !== void 0 && (
|
|
1596
|
+
this.#d !== void 0 && (N.clearTimeout(this.#d), this.#d = void 0);
|
|
1597
1597
|
}
|
|
1598
1598
|
#x() {
|
|
1599
|
-
this.#f !== void 0 && (
|
|
1599
|
+
this.#f !== void 0 && (N.clearInterval(this.#f), this.#f = void 0);
|
|
1600
1600
|
}
|
|
1601
1601
|
createResult(e2, t2) {
|
|
1602
1602
|
let n2 = this.#t, r2 = this.options, i2 = this.#r, a2 = this.#i, o2 = this.#a, s2 = e2 === n2 ? this.#n : e2.state, { state: c2 } = e2, l2 = { ...c2 }, u2 = false, d2;
|
|
1603
1603
|
if (t2._optimisticResults) {
|
|
1604
|
-
let i3 = this.hasListeners(), a3 = !i3 &&
|
|
1605
|
-
(a3 || o3) && (l2 = { ...l2, ...
|
|
1604
|
+
let i3 = this.hasListeners(), a3 = !i3 && Dr(e2, t2), o3 = i3 && kr(e2, n2, t2, r2);
|
|
1605
|
+
(a3 || o3) && (l2 = { ...l2, ...Sr(c2.data, e2.options) }), t2._optimisticResults === `isRestoring` && (l2.fetchStatus = `idle`);
|
|
1606
1606
|
}
|
|
1607
1607
|
let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
|
|
1608
1608
|
d2 = l2.data;
|
|
1609
|
-
let
|
|
1609
|
+
let h2 = false;
|
|
1610
1610
|
if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
|
|
1611
1611
|
let e3;
|
|
1612
|
-
i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data,
|
|
1612
|
+
i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data, h2 = true) : e3 = typeof t2.placeholderData == `function` ? t2.placeholderData(this.#u?.state.data, this.#u) : t2.placeholderData, e3 !== void 0 && (m2 = `success`, d2 = Qn(i2?.data, e3, t2), u2 = true);
|
|
1613
1613
|
}
|
|
1614
|
-
if (t2.select && d2 !== void 0 && !
|
|
1614
|
+
if (t2.select && d2 !== void 0 && !h2) {
|
|
1615
1615
|
if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
|
|
1616
1616
|
else try {
|
|
1617
|
-
this.#c = t2.select, d2 = t2.select(d2), d2 =
|
|
1617
|
+
this.#c = t2.select, d2 = t2.select(d2), d2 = Qn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
|
|
1618
1618
|
} catch (e3) {
|
|
1619
1619
|
this.#s = e3;
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
|
1622
1622
|
this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
|
|
1623
|
-
let
|
|
1623
|
+
let ee2 = l2.fetchStatus === `fetching`, g2 = m2 === `pending`, _2 = m2 === `error`, te2 = g2 && ee2, ne2 = d2 !== void 0, v2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: g2, isSuccess: m2 === `success`, isError: _2, isInitialLoading: te2, isLoading: te2, data: d2, dataUpdatedAt: l2.dataUpdatedAt, error: f2, errorUpdatedAt: p2, failureCount: l2.fetchFailureCount, failureReason: l2.fetchFailureReason, errorUpdateCount: l2.errorUpdateCount, isFetched: e2.isFetched(), isFetchedAfterMount: l2.dataUpdateCount > s2.dataUpdateCount || l2.errorUpdateCount > s2.errorUpdateCount, isFetching: ee2, isRefetching: ee2 && !g2, isLoadingError: _2 && !ne2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: _2 && ne2, isStale: Ar(e2, t2), refetch: this.refetch, promise: this.#o, isEnabled: I(t2.enabled, e2) !== false };
|
|
1624
1624
|
if (this.options.experimental_prefetchInRender) {
|
|
1625
1625
|
let t3 = v2.data !== void 0, r3 = v2.status === `error` && !t3, i3 = (e3) => {
|
|
1626
1626
|
r3 ? e3.reject(v2.error) : t3 && e3.resolve(v2.data);
|
|
1627
1627
|
}, a3 = () => {
|
|
1628
|
-
let e3 = this.#o = v2.promise =
|
|
1628
|
+
let e3 = this.#o = v2.promise = sr();
|
|
1629
1629
|
i3(e3);
|
|
1630
1630
|
}, o3 = this.#o;
|
|
1631
1631
|
switch (o3.status) {
|
|
@@ -1643,7 +1643,7 @@ var Cr = class extends Nn {
|
|
|
1643
1643
|
}
|
|
1644
1644
|
updateResult() {
|
|
1645
1645
|
let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
|
|
1646
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1646
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !qn(t2, e2) && (this.#r = t2, this.#C({ listeners: (() => {
|
|
1647
1647
|
if (!e2) return true;
|
|
1648
1648
|
let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
|
|
1649
1649
|
if (n2 === `all` || !n2 && !this.#m.size) return true;
|
|
@@ -1664,36 +1664,36 @@ var Cr = class extends Nn {
|
|
|
1664
1664
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1665
1665
|
}
|
|
1666
1666
|
#C(e2) {
|
|
1667
|
-
|
|
1667
|
+
L.batch(() => {
|
|
1668
1668
|
e2.listeners && this.listeners.forEach((e3) => {
|
|
1669
1669
|
e3(this.#r);
|
|
1670
1670
|
}), this.#e.getQueryCache().notify({ query: this.#t, type: `observerResultsUpdated` });
|
|
1671
1671
|
});
|
|
1672
1672
|
}
|
|
1673
1673
|
};
|
|
1674
|
-
function
|
|
1675
|
-
return
|
|
1674
|
+
function Er(e2, t2) {
|
|
1675
|
+
return I(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || I(t2.retryOnMount, e2) !== false);
|
|
1676
1676
|
}
|
|
1677
|
-
function
|
|
1678
|
-
return
|
|
1677
|
+
function Dr(e2, t2) {
|
|
1678
|
+
return Er(e2, t2) || e2.state.data !== void 0 && Or(e2, t2, t2.refetchOnMount);
|
|
1679
1679
|
}
|
|
1680
|
-
function
|
|
1681
|
-
if (
|
|
1680
|
+
function Or(e2, t2, n2) {
|
|
1681
|
+
if (I(t2.enabled, e2) !== false && F(t2.staleTime, e2) !== `static`) {
|
|
1682
1682
|
let r2 = typeof n2 == `function` ? n2(e2) : n2;
|
|
1683
|
-
return r2 === `always` || r2 !== false &&
|
|
1683
|
+
return r2 === `always` || r2 !== false && Ar(e2, t2);
|
|
1684
1684
|
}
|
|
1685
1685
|
return false;
|
|
1686
1686
|
}
|
|
1687
|
-
function
|
|
1688
|
-
return (e2 !== t2 ||
|
|
1687
|
+
function kr(e2, t2, n2, r2) {
|
|
1688
|
+
return (e2 !== t2 || I(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && Ar(e2, n2);
|
|
1689
1689
|
}
|
|
1690
|
-
function
|
|
1691
|
-
return
|
|
1690
|
+
function Ar(e2, t2) {
|
|
1691
|
+
return I(t2.enabled, e2) !== false && e2.isStaleByTime(F(t2.staleTime, e2));
|
|
1692
1692
|
}
|
|
1693
|
-
function
|
|
1694
|
-
return !
|
|
1693
|
+
function jr(e2, t2) {
|
|
1694
|
+
return !qn(e2.getCurrentResult(), t2);
|
|
1695
1695
|
}
|
|
1696
|
-
var
|
|
1696
|
+
var Mr = class extends Tr {
|
|
1697
1697
|
constructor(e2, t2) {
|
|
1698
1698
|
super(e2, t2);
|
|
1699
1699
|
}
|
|
@@ -1714,16 +1714,16 @@ var Ar = class extends Cr {
|
|
|
1714
1714
|
}
|
|
1715
1715
|
createResult(e2, t2) {
|
|
1716
1716
|
let { state: n2 } = e2, r2 = super.createResult(e2, t2), { isFetching: i2, isRefetching: a2, isError: o2, isRefetchError: s2 } = r2, c2 = n2.fetchMeta?.fetchMore?.direction, l2 = o2 && c2 === `forward`, u2 = i2 && c2 === `forward`, d2 = o2 && c2 === `backward`, f2 = i2 && c2 === `backward`;
|
|
1717
|
-
return { ...r2, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage:
|
|
1717
|
+
return { ...r2, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage: yr(t2, n2.data), hasPreviousPage: br(t2, n2.data), isFetchNextPageError: l2, isFetchingNextPage: u2, isFetchPreviousPageError: d2, isFetchingPreviousPage: f2, isRefetchError: s2 && !l2 && !d2, isRefetching: a2 && !u2 && !f2 };
|
|
1718
1718
|
}
|
|
1719
1719
|
};
|
|
1720
|
-
var
|
|
1720
|
+
var Nr = class extends hr {
|
|
1721
1721
|
#e;
|
|
1722
1722
|
#t;
|
|
1723
1723
|
#n;
|
|
1724
1724
|
#r;
|
|
1725
1725
|
constructor(e2) {
|
|
1726
|
-
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state ||
|
|
1726
|
+
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state || Pr(), this.setOptions(e2.options), this.scheduleGc();
|
|
1727
1727
|
}
|
|
1728
1728
|
setOptions(e2) {
|
|
1729
1729
|
this.options = e2, this.updateGcTime(this.options.gcTime);
|
|
@@ -1747,7 +1747,7 @@ var jr = class extends pr {
|
|
|
1747
1747
|
let t2 = () => {
|
|
1748
1748
|
this.#i({ type: `continue` });
|
|
1749
1749
|
}, n2 = { client: this.#e, meta: this.options.meta, mutationKey: this.options.mutationKey };
|
|
1750
|
-
this.#r =
|
|
1750
|
+
this.#r = mr({ fn: () => this.options.mutationFn ? this.options.mutationFn(e2, n2) : Promise.reject(Error(`No mutationFn found`)), onFail: (e3, t3) => {
|
|
1751
1751
|
this.#i({ type: `failed`, failureCount: e3, error: t3 });
|
|
1752
1752
|
}, onPause: () => {
|
|
1753
1753
|
this.#i({ type: `pause` });
|
|
@@ -1805,17 +1805,17 @@ var jr = class extends pr {
|
|
|
1805
1805
|
return { ...t3, data: void 0, error: e2.error, failureCount: t3.failureCount + 1, failureReason: e2.error, isPaused: false, status: `error` };
|
|
1806
1806
|
}
|
|
1807
1807
|
};
|
|
1808
|
-
this.state = t2(this.state),
|
|
1808
|
+
this.state = t2(this.state), L.batch(() => {
|
|
1809
1809
|
this.#t.forEach((t3) => {
|
|
1810
1810
|
t3.onMutationUpdate(e2);
|
|
1811
1811
|
}), this.#n.notify({ mutation: this, type: `updated`, action: e2 });
|
|
1812
1812
|
});
|
|
1813
1813
|
}
|
|
1814
1814
|
};
|
|
1815
|
-
function
|
|
1815
|
+
function Pr() {
|
|
1816
1816
|
return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
|
|
1817
1817
|
}
|
|
1818
|
-
var
|
|
1818
|
+
var Fr = class extends M {
|
|
1819
1819
|
constructor(e2 = {}) {
|
|
1820
1820
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1821
1821
|
}
|
|
@@ -1823,12 +1823,12 @@ var Nr = class extends Nn {
|
|
|
1823
1823
|
#t;
|
|
1824
1824
|
#n;
|
|
1825
1825
|
build(e2, t2, n2) {
|
|
1826
|
-
let r2 = new
|
|
1826
|
+
let r2 = new Nr({ client: e2, mutationCache: this, mutationId: ++this.#n, options: e2.defaultMutationOptions(t2), state: n2 });
|
|
1827
1827
|
return this.add(r2), r2;
|
|
1828
1828
|
}
|
|
1829
1829
|
add(e2) {
|
|
1830
1830
|
this.#e.add(e2);
|
|
1831
|
-
let t2 =
|
|
1831
|
+
let t2 = Ir(e2);
|
|
1832
1832
|
if (typeof t2 == `string`) {
|
|
1833
1833
|
let n2 = this.#t.get(t2);
|
|
1834
1834
|
n2 ? n2.push(e2) : this.#t.set(t2, [e2]);
|
|
@@ -1837,7 +1837,7 @@ var Nr = class extends Nn {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
remove(e2) {
|
|
1839
1839
|
if (this.#e.delete(e2)) {
|
|
1840
|
-
let t2 =
|
|
1840
|
+
let t2 = Ir(e2);
|
|
1841
1841
|
if (typeof t2 == `string`) {
|
|
1842
1842
|
let n2 = this.#t.get(t2);
|
|
1843
1843
|
if (n2) {
|
|
@@ -1851,7 +1851,7 @@ var Nr = class extends Nn {
|
|
|
1851
1851
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1852
1852
|
}
|
|
1853
1853
|
canRun(e2) {
|
|
1854
|
-
let t2 =
|
|
1854
|
+
let t2 = Ir(e2);
|
|
1855
1855
|
if (typeof t2 == `string`) {
|
|
1856
1856
|
let n2 = this.#t.get(t2)?.find((e3) => e3.state.status === `pending`);
|
|
1857
1857
|
return !n2 || n2 === e2;
|
|
@@ -1859,11 +1859,11 @@ var Nr = class extends Nn {
|
|
|
1859
1859
|
return true;
|
|
1860
1860
|
}
|
|
1861
1861
|
runNext(e2) {
|
|
1862
|
-
let t2 =
|
|
1862
|
+
let t2 = Ir(e2);
|
|
1863
1863
|
return typeof t2 == `string` ? this.#t.get(t2)?.find((t3) => t3 !== e2 && t3.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1864
1864
|
}
|
|
1865
1865
|
clear() {
|
|
1866
|
-
|
|
1866
|
+
L.batch(() => {
|
|
1867
1867
|
this.#e.forEach((e2) => {
|
|
1868
1868
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1869
1869
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -1874,13 +1874,13 @@ var Nr = class extends Nn {
|
|
|
1874
1874
|
}
|
|
1875
1875
|
find(e2) {
|
|
1876
1876
|
let t2 = { exact: true, ...e2 };
|
|
1877
|
-
return this.getAll().find((e3) =>
|
|
1877
|
+
return this.getAll().find((e3) => Vn(t2, e3));
|
|
1878
1878
|
}
|
|
1879
1879
|
findAll(e2 = {}) {
|
|
1880
|
-
return this.getAll().filter((t2) =>
|
|
1880
|
+
return this.getAll().filter((t2) => Vn(e2, t2));
|
|
1881
1881
|
}
|
|
1882
1882
|
notify(e2) {
|
|
1883
|
-
|
|
1883
|
+
L.batch(() => {
|
|
1884
1884
|
this.listeners.forEach((t2) => {
|
|
1885
1885
|
t2(e2);
|
|
1886
1886
|
});
|
|
@@ -1888,20 +1888,136 @@ var Nr = class extends Nn {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
resumePausedMutations() {
|
|
1890
1890
|
let e2 = this.getAll().filter((e3) => e3.state.isPaused);
|
|
1891
|
-
return
|
|
1891
|
+
return L.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(P))));
|
|
1892
1892
|
}
|
|
1893
1893
|
};
|
|
1894
|
-
function
|
|
1894
|
+
function Ir(e2) {
|
|
1895
1895
|
return e2.options.scope?.id;
|
|
1896
1896
|
}
|
|
1897
|
-
|
|
1897
|
+
function Lr(e2, t2) {
|
|
1898
|
+
let n2 = new Set(t2);
|
|
1899
|
+
return e2.filter((e3) => !n2.has(e3));
|
|
1900
|
+
}
|
|
1901
|
+
function Rr(e2, t2, n2) {
|
|
1902
|
+
let r2 = e2.slice(0);
|
|
1903
|
+
return r2[t2] = n2, r2;
|
|
1904
|
+
}
|
|
1905
|
+
var zr = class extends M {
|
|
1906
|
+
#e;
|
|
1907
|
+
#t;
|
|
1908
|
+
#n;
|
|
1909
|
+
#r;
|
|
1910
|
+
#i;
|
|
1911
|
+
#a;
|
|
1912
|
+
#o;
|
|
1913
|
+
#s;
|
|
1914
|
+
#c;
|
|
1915
|
+
#l = [];
|
|
1916
|
+
constructor(e2, t2, n2) {
|
|
1917
|
+
super(), this.#e = e2, this.#r = n2, this.#n = [], this.#i = [], this.#t = [], this.setQueries(t2);
|
|
1918
|
+
}
|
|
1919
|
+
onSubscribe() {
|
|
1920
|
+
this.listeners.size === 1 && this.#i.forEach((e2) => {
|
|
1921
|
+
e2.subscribe((t2) => {
|
|
1922
|
+
this.#m(e2, t2);
|
|
1923
|
+
});
|
|
1924
|
+
});
|
|
1925
|
+
}
|
|
1926
|
+
onUnsubscribe() {
|
|
1927
|
+
this.listeners.size || this.destroy();
|
|
1928
|
+
}
|
|
1929
|
+
destroy() {
|
|
1930
|
+
this.listeners = /* @__PURE__ */ new Set(), this.#i.forEach((e2) => {
|
|
1931
|
+
e2.destroy();
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
setQueries(e2, t2) {
|
|
1935
|
+
this.#n = e2, this.#r = t2, L.batch(() => {
|
|
1936
|
+
let e3 = this.#i, t3 = this.#p(this.#n);
|
|
1937
|
+
t3.forEach((e4) => e4.observer.setOptions(e4.defaultedQueryOptions));
|
|
1938
|
+
let n2 = t3.map((e4) => e4.observer), r2 = n2.map((e4) => e4.getCurrentResult()), i2 = e3.length !== n2.length, a2 = n2.some((t4, n3) => t4 !== e3[n3]), o2 = i2 || a2, s2 = o2 ? true : r2.some((e4, t4) => {
|
|
1939
|
+
let n3 = this.#t[t4];
|
|
1940
|
+
return !n3 || !qn(e4, n3);
|
|
1941
|
+
});
|
|
1942
|
+
(o2 || s2) && (o2 && (this.#l = t3, this.#i = n2), this.#t = r2, this.hasListeners() && (o2 && (Lr(e3, n2).forEach((e4) => {
|
|
1943
|
+
e4.destroy();
|
|
1944
|
+
}), Lr(n2, e3).forEach((e4) => {
|
|
1945
|
+
e4.subscribe((t4) => {
|
|
1946
|
+
this.#m(e4, t4);
|
|
1947
|
+
});
|
|
1948
|
+
})), this.#h()));
|
|
1949
|
+
});
|
|
1950
|
+
}
|
|
1951
|
+
getCurrentResult() {
|
|
1952
|
+
return this.#t;
|
|
1953
|
+
}
|
|
1954
|
+
getQueries() {
|
|
1955
|
+
return this.#i.map((e2) => e2.getCurrentQuery());
|
|
1956
|
+
}
|
|
1957
|
+
getObservers() {
|
|
1958
|
+
return this.#i;
|
|
1959
|
+
}
|
|
1960
|
+
getOptimisticResult(e2, t2) {
|
|
1961
|
+
let n2 = this.#p(e2), r2 = n2.map((e3) => e3.observer.getOptimisticResult(e3.defaultedQueryOptions)), i2 = n2.map((e3) => e3.defaultedQueryOptions.queryHash);
|
|
1962
|
+
return [r2, (e3) => this.#d(e3 ?? r2, t2, i2), () => this.#u(r2, n2)];
|
|
1963
|
+
}
|
|
1964
|
+
#u(e2, t2) {
|
|
1965
|
+
return t2.map((n2, r2) => {
|
|
1966
|
+
let i2 = e2[r2];
|
|
1967
|
+
return n2.defaultedQueryOptions.notifyOnChangeProps ? i2 : n2.observer.trackResult(i2, (e3) => {
|
|
1968
|
+
t2.forEach((t3) => {
|
|
1969
|
+
t3.observer.trackProp(e3);
|
|
1970
|
+
});
|
|
1971
|
+
});
|
|
1972
|
+
});
|
|
1973
|
+
}
|
|
1974
|
+
#d(e2, t2, n2) {
|
|
1975
|
+
if (t2) {
|
|
1976
|
+
let r2 = this.#c, i2 = n2 !== void 0 && r2 !== void 0 && (r2.length !== n2.length || n2.some((e3, t3) => e3 !== r2[t3]));
|
|
1977
|
+
return (!this.#a || this.#t !== this.#s || i2 || t2 !== this.#o) && (this.#o = t2, this.#s = this.#t, n2 !== void 0 && (this.#c = n2), this.#a = Kn(this.#a, t2(e2))), this.#a;
|
|
1978
|
+
}
|
|
1979
|
+
return e2;
|
|
1980
|
+
}
|
|
1981
|
+
#f() {
|
|
1982
|
+
return this.#r?.combine !== void 0 && this.#i.some((e2, t2) => e2.options.suspense && this.#t[t2]?.data === void 0);
|
|
1983
|
+
}
|
|
1984
|
+
#p(e2) {
|
|
1985
|
+
let t2 = /* @__PURE__ */ new Map();
|
|
1986
|
+
this.#i.forEach((e3) => {
|
|
1987
|
+
let n3 = e3.options.queryHash;
|
|
1988
|
+
if (!n3) return;
|
|
1989
|
+
let r2 = t2.get(n3);
|
|
1990
|
+
r2 ? r2.push(e3) : t2.set(n3, [e3]);
|
|
1991
|
+
});
|
|
1992
|
+
let n2 = [];
|
|
1993
|
+
return e2.forEach((e3) => {
|
|
1994
|
+
let r2 = this.#e.defaultQueryOptions(e3), i2 = t2.get(r2.queryHash)?.shift() ?? new Tr(this.#e, r2);
|
|
1995
|
+
n2.push({ defaultedQueryOptions: r2, observer: i2 });
|
|
1996
|
+
}), n2;
|
|
1997
|
+
}
|
|
1998
|
+
#m(e2, t2) {
|
|
1999
|
+
let n2 = this.#i.indexOf(e2);
|
|
2000
|
+
n2 !== -1 && (this.#t = Rr(this.#t, n2, t2), this.#h());
|
|
2001
|
+
}
|
|
2002
|
+
#h() {
|
|
2003
|
+
if (this.hasListeners()) {
|
|
2004
|
+
let e2 = this.#u(this.#t, this.#l), t2 = this.#f(), n2 = this.#a, r2 = t2 ? n2 : this.#d(e2, this.#r?.combine);
|
|
2005
|
+
(t2 || n2 !== r2) && L.batch(() => {
|
|
2006
|
+
this.listeners.forEach((e3) => {
|
|
2007
|
+
e3(this.#t);
|
|
2008
|
+
});
|
|
2009
|
+
});
|
|
2010
|
+
}
|
|
2011
|
+
}
|
|
2012
|
+
};
|
|
2013
|
+
var Br = class extends M {
|
|
1898
2014
|
constructor(e2 = {}) {
|
|
1899
2015
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
|
|
1900
2016
|
}
|
|
1901
2017
|
#e;
|
|
1902
2018
|
build(e2, t2, n2) {
|
|
1903
|
-
let r2 = t2.queryKey, i2 = t2.queryHash ??
|
|
1904
|
-
return a2 || (a2 = new
|
|
2019
|
+
let r2 = t2.queryKey, i2 = t2.queryHash ?? Hn(r2, t2), a2 = this.get(i2);
|
|
2020
|
+
return a2 || (a2 = new xr({ client: e2, queryKey: r2, queryHash: i2, options: e2.defaultQueryOptions(t2), state: n2, defaultOptions: e2.getQueryDefaults(r2) }), this.add(a2)), a2;
|
|
1905
2021
|
}
|
|
1906
2022
|
add(e2) {
|
|
1907
2023
|
this.#e.has(e2.queryHash) || (this.#e.set(e2.queryHash, e2), this.notify({ type: `added`, query: e2 }));
|
|
@@ -1911,7 +2027,7 @@ var Fr = class extends Nn {
|
|
|
1911
2027
|
t2 && (e2.destroy(), t2 === e2 && this.#e.delete(e2.queryHash), this.notify({ type: `removed`, query: e2 }));
|
|
1912
2028
|
}
|
|
1913
2029
|
clear() {
|
|
1914
|
-
|
|
2030
|
+
L.batch(() => {
|
|
1915
2031
|
this.getAll().forEach((e2) => {
|
|
1916
2032
|
this.remove(e2);
|
|
1917
2033
|
});
|
|
@@ -1925,35 +2041,35 @@ var Fr = class extends Nn {
|
|
|
1925
2041
|
}
|
|
1926
2042
|
find(e2) {
|
|
1927
2043
|
let t2 = { exact: true, ...e2 };
|
|
1928
|
-
return this.getAll().find((e3) =>
|
|
2044
|
+
return this.getAll().find((e3) => Bn(t2, e3));
|
|
1929
2045
|
}
|
|
1930
2046
|
findAll(e2 = {}) {
|
|
1931
2047
|
let t2 = this.getAll();
|
|
1932
|
-
return Object.keys(e2).length > 0 ? t2.filter((t3) =>
|
|
2048
|
+
return Object.keys(e2).length > 0 ? t2.filter((t3) => Bn(e2, t3)) : t2;
|
|
1933
2049
|
}
|
|
1934
2050
|
notify(e2) {
|
|
1935
|
-
|
|
2051
|
+
L.batch(() => {
|
|
1936
2052
|
this.listeners.forEach((t2) => {
|
|
1937
2053
|
t2(e2);
|
|
1938
2054
|
});
|
|
1939
2055
|
});
|
|
1940
2056
|
}
|
|
1941
2057
|
onFocus() {
|
|
1942
|
-
|
|
2058
|
+
L.batch(() => {
|
|
1943
2059
|
this.getAll().forEach((e2) => {
|
|
1944
2060
|
e2.onFocus();
|
|
1945
2061
|
});
|
|
1946
2062
|
});
|
|
1947
2063
|
}
|
|
1948
2064
|
onOnline() {
|
|
1949
|
-
|
|
2065
|
+
L.batch(() => {
|
|
1950
2066
|
this.getAll().forEach((e2) => {
|
|
1951
2067
|
e2.onOnline();
|
|
1952
2068
|
});
|
|
1953
2069
|
});
|
|
1954
2070
|
}
|
|
1955
2071
|
};
|
|
1956
|
-
var
|
|
2072
|
+
var Vr = class {
|
|
1957
2073
|
#e;
|
|
1958
2074
|
#t;
|
|
1959
2075
|
#n;
|
|
@@ -1963,12 +2079,12 @@ var Ir = class {
|
|
|
1963
2079
|
#o;
|
|
1964
2080
|
#s;
|
|
1965
2081
|
constructor(e2 = {}) {
|
|
1966
|
-
this.#e = e2.queryCache || new
|
|
2082
|
+
this.#e = e2.queryCache || new Br(), this.#t = e2.mutationCache || new Fr(), this.#n = e2.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1967
2083
|
}
|
|
1968
2084
|
mount() {
|
|
1969
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
2085
|
+
this.#a++, this.#a === 1 && (this.#o = Nn.subscribe(async (e2) => {
|
|
1970
2086
|
e2 && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1971
|
-
}), this.#s =
|
|
2087
|
+
}), this.#s = ur.subscribe(async (e2) => {
|
|
1972
2088
|
e2 && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1973
2089
|
}));
|
|
1974
2090
|
}
|
|
@@ -1987,17 +2103,17 @@ var Ir = class {
|
|
|
1987
2103
|
}
|
|
1988
2104
|
ensureQueryData(e2) {
|
|
1989
2105
|
let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
|
|
1990
|
-
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(
|
|
2106
|
+
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(F(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
|
|
1991
2107
|
}
|
|
1992
2108
|
getQueriesData(e2) {
|
|
1993
2109
|
return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
|
|
1994
2110
|
}
|
|
1995
2111
|
setQueryData(e2, t2, n2) {
|
|
1996
|
-
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 =
|
|
2112
|
+
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = Ln(t2, i2);
|
|
1997
2113
|
if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
|
|
1998
2114
|
}
|
|
1999
2115
|
setQueriesData(e2, t2, n2) {
|
|
2000
|
-
return
|
|
2116
|
+
return L.batch(() => this.#e.findAll(e2).map(({ queryKey: e3 }) => [e3, this.setQueryData(e3, t2, n2)]));
|
|
2001
2117
|
}
|
|
2002
2118
|
getQueryState(e2) {
|
|
2003
2119
|
let t2 = this.defaultQueryOptions({ queryKey: e2 });
|
|
@@ -2005,7 +2121,7 @@ var Ir = class {
|
|
|
2005
2121
|
}
|
|
2006
2122
|
removeQueries(e2) {
|
|
2007
2123
|
let t2 = this.#e;
|
|
2008
|
-
|
|
2124
|
+
L.batch(() => {
|
|
2009
2125
|
t2.findAll(e2).forEach((e3) => {
|
|
2010
2126
|
t2.remove(e3);
|
|
2011
2127
|
});
|
|
@@ -2013,46 +2129,46 @@ var Ir = class {
|
|
|
2013
2129
|
}
|
|
2014
2130
|
resetQueries(e2, t2) {
|
|
2015
2131
|
let n2 = this.#e;
|
|
2016
|
-
return
|
|
2132
|
+
return L.batch(() => (n2.findAll(e2).forEach((e3) => {
|
|
2017
2133
|
e3.reset();
|
|
2018
2134
|
}), this.refetchQueries({ type: `active`, ...e2 }, t2)));
|
|
2019
2135
|
}
|
|
2020
2136
|
cancelQueries(e2, t2 = {}) {
|
|
2021
|
-
let n2 = { revert: true, ...t2 }, r2 =
|
|
2022
|
-
return Promise.all(r2).then(
|
|
2137
|
+
let n2 = { revert: true, ...t2 }, r2 = L.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
|
|
2138
|
+
return Promise.all(r2).then(P).catch(P);
|
|
2023
2139
|
}
|
|
2024
2140
|
invalidateQueries(e2, t2 = {}) {
|
|
2025
|
-
return
|
|
2141
|
+
return L.batch(() => (this.#e.findAll(e2).forEach((e3) => {
|
|
2026
2142
|
e3.invalidate();
|
|
2027
2143
|
}), e2?.refetchType === `none` ? Promise.resolve() : this.refetchQueries({ ...e2, type: e2?.refetchType ?? e2?.type ?? `active` }, t2)));
|
|
2028
2144
|
}
|
|
2029
2145
|
refetchQueries(e2, t2 = {}) {
|
|
2030
|
-
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 =
|
|
2146
|
+
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = L.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
|
|
2031
2147
|
let t3 = e3.fetch(void 0, n2);
|
|
2032
|
-
return n2.throwOnError || (t3 = t3.catch(
|
|
2148
|
+
return n2.throwOnError || (t3 = t3.catch(P)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
|
|
2033
2149
|
}));
|
|
2034
|
-
return Promise.all(r2).then(
|
|
2150
|
+
return Promise.all(r2).then(P);
|
|
2035
2151
|
}
|
|
2036
2152
|
fetchQuery(e2) {
|
|
2037
2153
|
let t2 = this.defaultQueryOptions(e2);
|
|
2038
2154
|
t2.retry === void 0 && (t2.retry = false);
|
|
2039
2155
|
let n2 = this.#e.build(this, t2);
|
|
2040
|
-
return n2.isStaleByTime(
|
|
2156
|
+
return n2.isStaleByTime(F(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
|
|
2041
2157
|
}
|
|
2042
2158
|
prefetchQuery(e2) {
|
|
2043
|
-
return this.fetchQuery(e2).then(
|
|
2159
|
+
return this.fetchQuery(e2).then(P).catch(P);
|
|
2044
2160
|
}
|
|
2045
2161
|
fetchInfiniteQuery(e2) {
|
|
2046
2162
|
return e2._type = `infinite`, this.fetchQuery(e2);
|
|
2047
2163
|
}
|
|
2048
2164
|
prefetchInfiniteQuery(e2) {
|
|
2049
|
-
return this.fetchInfiniteQuery(e2).then(
|
|
2165
|
+
return this.fetchInfiniteQuery(e2).then(P).catch(P);
|
|
2050
2166
|
}
|
|
2051
2167
|
ensureInfiniteQueryData(e2) {
|
|
2052
2168
|
return e2._type = `infinite`, this.ensureQueryData(e2);
|
|
2053
2169
|
}
|
|
2054
2170
|
resumePausedMutations() {
|
|
2055
|
-
return
|
|
2171
|
+
return ur.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
2056
2172
|
}
|
|
2057
2173
|
getQueryCache() {
|
|
2058
2174
|
return this.#e;
|
|
@@ -2067,27 +2183,27 @@ var Ir = class {
|
|
|
2067
2183
|
this.#n = e2;
|
|
2068
2184
|
}
|
|
2069
2185
|
setQueryDefaults(e2, t2) {
|
|
2070
|
-
this.#r.set(
|
|
2186
|
+
this.#r.set(Un(e2), { queryKey: e2, defaultOptions: t2 });
|
|
2071
2187
|
}
|
|
2072
2188
|
getQueryDefaults(e2) {
|
|
2073
2189
|
let t2 = [...this.#r.values()], n2 = {};
|
|
2074
2190
|
return t2.forEach((t3) => {
|
|
2075
|
-
|
|
2191
|
+
Wn(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
|
|
2076
2192
|
}), n2;
|
|
2077
2193
|
}
|
|
2078
2194
|
setMutationDefaults(e2, t2) {
|
|
2079
|
-
this.#i.set(
|
|
2195
|
+
this.#i.set(Un(e2), { mutationKey: e2, defaultOptions: t2 });
|
|
2080
2196
|
}
|
|
2081
2197
|
getMutationDefaults(e2) {
|
|
2082
2198
|
let t2 = [...this.#i.values()], n2 = {};
|
|
2083
2199
|
return t2.forEach((t3) => {
|
|
2084
|
-
|
|
2200
|
+
Wn(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
|
|
2085
2201
|
}), n2;
|
|
2086
2202
|
}
|
|
2087
2203
|
defaultQueryOptions(e2) {
|
|
2088
2204
|
if (e2._defaulted) return e2;
|
|
2089
2205
|
let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
|
|
2090
|
-
return t2.queryHash ||=
|
|
2206
|
+
return t2.queryHash ||= Hn(t2.queryKey, t2), t2.refetchOnReconnect === void 0 && (t2.refetchOnReconnect = t2.networkMode !== `always`), t2.throwOnError === void 0 && (t2.throwOnError = !!t2.suspense), !t2.networkMode && t2.persister && (t2.networkMode = `offlineFirst`), t2.queryFn === nr && (t2.enabled = false), t2;
|
|
2091
2207
|
}
|
|
2092
2208
|
defaultMutationOptions(e2) {
|
|
2093
2209
|
return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
|
|
@@ -2096,20 +2212,20 @@ var Ir = class {
|
|
|
2096
2212
|
this.#e.clear(), this.#t.clear();
|
|
2097
2213
|
}
|
|
2098
2214
|
};
|
|
2099
|
-
var
|
|
2100
|
-
var
|
|
2101
|
-
let n2 = e.useContext(
|
|
2215
|
+
var Hr = e.createContext(void 0);
|
|
2216
|
+
var Ur = (t2) => {
|
|
2217
|
+
let n2 = e.useContext(Hr);
|
|
2102
2218
|
if (t2) return t2;
|
|
2103
2219
|
if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
|
|
2104
2220
|
return n2;
|
|
2105
2221
|
};
|
|
2106
|
-
var
|
|
2222
|
+
var Wr = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
|
|
2107
2223
|
t2.unmount();
|
|
2108
|
-
}), [t2]), (0, import_jsx_runtime.jsx)(
|
|
2109
|
-
var
|
|
2110
|
-
var
|
|
2111
|
-
|
|
2112
|
-
function
|
|
2224
|
+
}), [t2]), (0, import_jsx_runtime.jsx)(Hr.Provider, { value: t2, children: n2 }));
|
|
2225
|
+
var Gr = e.createContext(false);
|
|
2226
|
+
var Kr = () => e.useContext(Gr);
|
|
2227
|
+
Gr.Provider;
|
|
2228
|
+
function qr() {
|
|
2113
2229
|
let e2 = false;
|
|
2114
2230
|
return { clearReset: () => {
|
|
2115
2231
|
e2 = false;
|
|
@@ -2117,61 +2233,87 @@ function Hr() {
|
|
|
2117
2233
|
e2 = true;
|
|
2118
2234
|
}, isReset: () => e2 };
|
|
2119
2235
|
}
|
|
2120
|
-
var
|
|
2121
|
-
var
|
|
2122
|
-
var
|
|
2123
|
-
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ?
|
|
2236
|
+
var Jr = e.createContext(qr());
|
|
2237
|
+
var Yr = () => e.useContext(Jr);
|
|
2238
|
+
var Xr = (e2, t2, n2) => {
|
|
2239
|
+
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
|
|
2124
2240
|
(e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
|
|
2125
2241
|
};
|
|
2126
|
-
var
|
|
2242
|
+
var Zr = (t2) => {
|
|
2127
2243
|
e.useEffect(() => {
|
|
2128
2244
|
t2.clearReset();
|
|
2129
2245
|
}, [t2]);
|
|
2130
2246
|
};
|
|
2131
|
-
var
|
|
2132
|
-
var
|
|
2247
|
+
var Qr = ({ result: e2, errorResetBoundary: t2, throwOnError: n2, query: r2, suspense: i2 }) => e2.isError && !t2.isReset() && !e2.isFetching && r2 && (i2 && e2.data === void 0 || ir(n2, [e2.error, r2]));
|
|
2248
|
+
var $r = (e2) => {
|
|
2133
2249
|
if (e2.suspense) {
|
|
2134
2250
|
let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
|
|
2135
2251
|
e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
|
|
2136
2252
|
}
|
|
2137
2253
|
};
|
|
2138
|
-
var
|
|
2139
|
-
var
|
|
2140
|
-
var
|
|
2254
|
+
var ei = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
|
|
2255
|
+
var ti = (e2, t2) => e2?.suspense && t2.isPending;
|
|
2256
|
+
var ni = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
|
|
2141
2257
|
n2.clearReset();
|
|
2142
2258
|
});
|
|
2143
|
-
function
|
|
2144
|
-
let i2 =
|
|
2259
|
+
function ri({ queries: t2, ...n2 }, r2) {
|
|
2260
|
+
let i2 = Ur(r2), a2 = Kr(), o2 = Yr(), s2 = e.useMemo(() => t2.map((e2) => {
|
|
2261
|
+
let t3 = i2.defaultQueryOptions(e2);
|
|
2262
|
+
return t3._optimisticResults = a2 ? `isRestoring` : `optimistic`, t3;
|
|
2263
|
+
}), [t2, i2, a2]);
|
|
2264
|
+
s2.forEach((e2) => {
|
|
2265
|
+
$r(e2);
|
|
2266
|
+
let t3 = i2.getQueryCache().get(e2.queryHash);
|
|
2267
|
+
Xr(e2, o2, t3);
|
|
2268
|
+
}), Zr(o2);
|
|
2269
|
+
let [c2] = e.useState(() => new zr(i2, s2, n2)), [l2, u2, d2] = c2.getOptimisticResult(s2, n2.combine), f2 = !a2 && n2.subscribed !== false;
|
|
2270
|
+
e.useSyncExternalStore(e.useCallback((e2) => f2 ? c2.subscribe(L.batchCalls(e2)) : P, [c2, f2]), () => c2.getCurrentResult(), () => c2.getCurrentResult()), e.useEffect(() => {
|
|
2271
|
+
c2.setQueries(s2, n2);
|
|
2272
|
+
}, [s2, n2, c2]);
|
|
2273
|
+
let p2 = l2.some((e2, t3) => ti(s2[t3], e2)) ? l2.flatMap((e2, t3) => {
|
|
2274
|
+
let n3 = s2[t3];
|
|
2275
|
+
return n3 && ti(n3, e2) ? ni(n3, new Tr(i2, n3), o2) : [];
|
|
2276
|
+
}) : [];
|
|
2277
|
+
if (p2.length > 0) throw Promise.all(p2);
|
|
2278
|
+
let m2 = l2.find((e2, t3) => {
|
|
2279
|
+
let n3 = s2[t3];
|
|
2280
|
+
return n3 && Qr({ result: e2, errorResetBoundary: o2, throwOnError: n3.throwOnError, query: i2.getQueryCache().get(n3.queryHash), suspense: n3.suspense });
|
|
2281
|
+
});
|
|
2282
|
+
if (m2?.error) throw m2.error;
|
|
2283
|
+
return u2(d2());
|
|
2284
|
+
}
|
|
2285
|
+
function ii(t2, n2, r2) {
|
|
2286
|
+
let i2 = Kr(), a2 = Yr(), o2 = Ur(r2), s2 = o2.defaultQueryOptions(t2);
|
|
2145
2287
|
o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
|
|
2146
2288
|
let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
|
|
2147
|
-
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0,
|
|
2289
|
+
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, $r(s2), Xr(s2, a2, c2), Zr(a2);
|
|
2148
2290
|
let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
|
|
2149
2291
|
if (e.useSyncExternalStore(e.useCallback((e2) => {
|
|
2150
|
-
let t3 = p2 ? d2.subscribe(
|
|
2292
|
+
let t3 = p2 ? d2.subscribe(L.batchCalls(e2)) : P;
|
|
2151
2293
|
return d2.updateResult(), t3;
|
|
2152
2294
|
}, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
|
|
2153
2295
|
d2.setOptions(s2);
|
|
2154
|
-
}, [s2, d2]),
|
|
2155
|
-
if (
|
|
2156
|
-
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !
|
|
2296
|
+
}, [s2, d2]), ti(s2, f2)) throw ni(s2, d2, a2);
|
|
2297
|
+
if (Qr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
|
|
2298
|
+
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !or.isServer() && ei(f2, i2) && (u2 ? ni(s2, d2, a2) : c2?.promise)?.catch(P).finally(() => {
|
|
2157
2299
|
d2.updateResult();
|
|
2158
2300
|
}), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
|
|
2159
2301
|
}
|
|
2160
|
-
function
|
|
2161
|
-
return
|
|
2302
|
+
function ai(e2, t2) {
|
|
2303
|
+
return ii(e2, Mr, t2);
|
|
2162
2304
|
}
|
|
2163
|
-
function
|
|
2305
|
+
function oi(e2) {
|
|
2164
2306
|
return e2;
|
|
2165
2307
|
}
|
|
2166
|
-
var
|
|
2167
|
-
var
|
|
2168
|
-
`${
|
|
2169
|
-
var
|
|
2308
|
+
var si = oi(`@wix/site-service-url`);
|
|
2309
|
+
var ci = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
|
|
2310
|
+
`${ci}`, `${ci}`;
|
|
2311
|
+
var li = function(e2) {
|
|
2170
2312
|
return e2.SIDE_CART = `ecom_side_cart`, e2.CART = `shopping_cart`, e2.CHECKOUT = `checkout`, e2.PRODUCT_PAGE = `product-page-builder`, e2.CATEGORY_PAGE = `category-page-builder`, e2;
|
|
2171
2313
|
}({});
|
|
2172
|
-
var
|
|
2173
|
-
let e2 = (0, import_services_manager_react.useService)(
|
|
2174
|
-
let r2 = e2.appSectionRelativeUrl(
|
|
2314
|
+
var ui = () => {
|
|
2315
|
+
let e2 = (0, import_services_manager_react.useService)(si), t2 = (0, import_react.useCallback)((t3, n2) => {
|
|
2316
|
+
let r2 = e2.appSectionRelativeUrl(ci, t3, true);
|
|
2175
2317
|
if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n2)}`;
|
|
2176
2318
|
}, [e2]);
|
|
2177
2319
|
return { getPageRelativeUrl: t2, getPageAbsoluteUrl: (0, import_react.useCallback)((n2, r2) => {
|
|
@@ -2179,19 +2321,19 @@ var ii = () => {
|
|
|
2179
2321
|
if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
|
|
2180
2322
|
}, [t2, e2]) };
|
|
2181
2323
|
};
|
|
2182
|
-
function
|
|
2183
|
-
let { getPageAbsoluteUrl: t2 } =
|
|
2324
|
+
function di(e2) {
|
|
2325
|
+
let { getPageAbsoluteUrl: t2 } = ui(), n2 = (0, import_react.useMemo)(() => {
|
|
2184
2326
|
if (!e2.slug) return;
|
|
2185
|
-
let n3 = t2(
|
|
2327
|
+
let n3 = t2(li.CATEGORY_PAGE, e2.slug);
|
|
2186
2328
|
return n3 ? { href: n3 } : void 0;
|
|
2187
2329
|
}, [e2.slug, t2]);
|
|
2188
2330
|
return (0, import_react.useMemo)(() => ({ id: e2.id, name: e2.name, slug: e2.slug, link: n2, description: e2.description, richContentDescription: e2.richContentDescription, image: e2.image, breadcrumbs: e2.breadcrumbs }), [e2, n2]);
|
|
2189
2331
|
}
|
|
2190
|
-
function
|
|
2332
|
+
function fi(e2) {
|
|
2191
2333
|
let { category: t2 } = e2;
|
|
2192
|
-
return
|
|
2334
|
+
return di(t2);
|
|
2193
2335
|
}
|
|
2194
|
-
function
|
|
2336
|
+
function pi(e2) {
|
|
2195
2337
|
if (e2.status === `fulfilled`) return e2.value;
|
|
2196
2338
|
throw e2.status === `rejected` ? e2.reason : e2.status === `pending` ? e2 : (e2.status = `pending`, e2.then((t2) => {
|
|
2197
2339
|
e2.status = `fulfilled`, e2.value = t2;
|
|
@@ -2199,61 +2341,61 @@ function si(e2) {
|
|
|
2199
2341
|
e2.status = `rejected`, e2.reason = t2;
|
|
2200
2342
|
}), e2);
|
|
2201
2343
|
}
|
|
2202
|
-
var
|
|
2203
|
-
function
|
|
2204
|
-
return
|
|
2205
|
-
|
|
2344
|
+
var mi = /* @__PURE__ */ new Set();
|
|
2345
|
+
function hi(e2) {
|
|
2346
|
+
return mi.add(e2), () => {
|
|
2347
|
+
mi.delete(e2);
|
|
2206
2348
|
};
|
|
2207
2349
|
}
|
|
2208
|
-
function
|
|
2350
|
+
function gi(e2) {
|
|
2209
2351
|
let t2 = globalThis.window;
|
|
2210
2352
|
if (!t2?.history) return;
|
|
2211
2353
|
let n2 = t2.location.href;
|
|
2212
|
-
t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 &&
|
|
2354
|
+
t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && mi.forEach((e3) => e3());
|
|
2213
2355
|
}
|
|
2214
|
-
function
|
|
2215
|
-
let e2 = (0, import_services_manager_react.useService)(
|
|
2356
|
+
function _i() {
|
|
2357
|
+
let e2 = (0, import_services_manager_react.useService)(si), t2 = (0, import_react.useCallback)(() => e2.currentUrl, [e2]), i2 = (0, import_react.useSyncExternalStore)(hi, t2, t2), a2 = (0, import_react.useMemo)(() => new URL(i2), [i2]), s2 = (0, import_react.useCallback)((t3) => {
|
|
2216
2358
|
let n2 = new URL(e2.currentUrl);
|
|
2217
|
-
n2.search = t3,
|
|
2359
|
+
n2.search = t3, gi(n2);
|
|
2218
2360
|
}, [e2]);
|
|
2219
|
-
return { url:
|
|
2361
|
+
return { url: a2, siteUrl: e2.siteUrl.replace(/\/$/, ``), search: a2.search, pushSearch: s2 };
|
|
2220
2362
|
}
|
|
2221
|
-
function
|
|
2363
|
+
function vi(e2) {
|
|
2222
2364
|
return e2.priceMin === void 0 && e2.priceMax === void 0 && Object.values(e2.customizationIdToChoiceIds ?? {}).every((e3) => e3.length === 0);
|
|
2223
2365
|
}
|
|
2224
|
-
function
|
|
2366
|
+
function yi(e2, t2, n2) {
|
|
2225
2367
|
let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
|
|
2226
2368
|
return i2.includes(n2) ? e2 : { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: [...i2, n2] } };
|
|
2227
2369
|
}
|
|
2228
|
-
function
|
|
2370
|
+
function bi(e2, t2, n2) {
|
|
2229
2371
|
let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
|
|
2230
2372
|
return i2.includes(n2) ? { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: i2.filter((e3) => e3 !== n2) } } : e2;
|
|
2231
2373
|
}
|
|
2232
|
-
function
|
|
2374
|
+
function xi(e2, t2, n2) {
|
|
2233
2375
|
return e2.priceMin === t2 && e2.priceMax === n2 ? e2 : { ...e2, priceMin: t2, priceMax: n2 };
|
|
2234
2376
|
}
|
|
2235
|
-
function
|
|
2377
|
+
function Si(e2) {
|
|
2236
2378
|
return e2.priceMin === void 0 && e2.priceMax === void 0 ? e2 : { ...e2, priceMin: void 0, priceMax: void 0 };
|
|
2237
2379
|
}
|
|
2238
|
-
function
|
|
2380
|
+
function Ci(e2) {
|
|
2239
2381
|
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
2240
2382
|
}
|
|
2241
|
-
function
|
|
2383
|
+
function wi(e2) {
|
|
2242
2384
|
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
2243
2385
|
}
|
|
2244
|
-
function
|
|
2386
|
+
function Ti(e2) {
|
|
2245
2387
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
2246
2388
|
}
|
|
2247
|
-
function
|
|
2248
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
2389
|
+
function R(e2, t2) {
|
|
2390
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Ci(e2) ? e2.$and : [e2], ...Ci(t2) ? t2.$and : [t2]] };
|
|
2249
2391
|
}
|
|
2250
|
-
function
|
|
2251
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
2392
|
+
function Ei(e2, t2) {
|
|
2393
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...wi(e2) ? e2.$or : [e2], ...wi(t2) ? t2.$or : [t2]] };
|
|
2252
2394
|
}
|
|
2253
|
-
function
|
|
2254
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
2395
|
+
function Di(e2) {
|
|
2396
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Ti(e2) ? e2.$not : { $not: e2 };
|
|
2255
2397
|
}
|
|
2256
|
-
var
|
|
2398
|
+
var Oi = class {
|
|
2257
2399
|
_items;
|
|
2258
2400
|
_fetchNextPage;
|
|
2259
2401
|
_fetchPrevPage;
|
|
@@ -2283,7 +2425,7 @@ var Si = class {
|
|
|
2283
2425
|
return await this._fetchPrevPage();
|
|
2284
2426
|
}
|
|
2285
2427
|
};
|
|
2286
|
-
var
|
|
2428
|
+
var ki = class extends Oi {
|
|
2287
2429
|
_nextCursor;
|
|
2288
2430
|
_prevCursor;
|
|
2289
2431
|
cursors;
|
|
@@ -2297,7 +2439,7 @@ var Ci = class extends Si {
|
|
|
2297
2439
|
return !!this._prevCursor;
|
|
2298
2440
|
}
|
|
2299
2441
|
};
|
|
2300
|
-
var
|
|
2442
|
+
var Ai = class extends Oi {
|
|
2301
2443
|
_totalCount;
|
|
2302
2444
|
_offset;
|
|
2303
2445
|
_tooManyToCount;
|
|
@@ -2320,76 +2462,76 @@ var wi = class extends Si {
|
|
|
2320
2462
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
2321
2463
|
}
|
|
2322
2464
|
};
|
|
2323
|
-
function
|
|
2465
|
+
function ji(e2) {
|
|
2324
2466
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
2325
2467
|
try {
|
|
2326
2468
|
let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [ot]: a2, [st]: o2 } = e2.responseTransformer(i2);
|
|
2327
2469
|
if (e2.pagingMethod === `OFFSET`) {
|
|
2328
2470
|
let e3 = n2;
|
|
2329
|
-
return new
|
|
2471
|
+
return new Ai({ 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 });
|
|
2330
2472
|
}
|
|
2331
2473
|
let s2 = n2.cursorPaging;
|
|
2332
|
-
return new
|
|
2474
|
+
return new ki({ 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 });
|
|
2333
2475
|
} catch (t3) {
|
|
2334
2476
|
throw e2.errorTransformer(t3);
|
|
2335
2477
|
}
|
|
2336
2478
|
}, skipTo(e3) {
|
|
2337
2479
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
2338
2480
|
}, eq(r2, i2) {
|
|
2339
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
2340
|
-
return t2({ ...n2, filter:
|
|
2481
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [z(e2.transformationPaths, r2)]: a2 };
|
|
2482
|
+
return t2({ ...n2, filter: R(n2.filter, o2) });
|
|
2341
2483
|
}, ne(r2, i2) {
|
|
2342
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
2343
|
-
return t2({ ...n2, filter:
|
|
2484
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [z(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
2485
|
+
return t2({ ...n2, filter: R(n2.filter, o2) });
|
|
2344
2486
|
}, ge(r2, i2) {
|
|
2345
|
-
let a2 = { [
|
|
2346
|
-
return t2({ ...n2, filter:
|
|
2487
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
2488
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2347
2489
|
}, gt(r2, i2) {
|
|
2348
|
-
let a2 = { [
|
|
2349
|
-
return t2({ ...n2, filter:
|
|
2490
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
2491
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2350
2492
|
}, le(r2, i2) {
|
|
2351
|
-
let a2 = { [
|
|
2352
|
-
return t2({ ...n2, filter:
|
|
2493
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
2494
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2353
2495
|
}, lt(r2, i2) {
|
|
2354
|
-
let a2 = { [
|
|
2355
|
-
return t2({ ...n2, filter:
|
|
2496
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
2497
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2356
2498
|
}, isNotEmpty(e3) {
|
|
2357
2499
|
return this.ne(e3, null);
|
|
2358
2500
|
}, isEmpty(e3) {
|
|
2359
2501
|
return this.eq(e3, null);
|
|
2360
2502
|
}, startsWith(r2, i2) {
|
|
2361
|
-
let a2 = { [
|
|
2362
|
-
return t2({ ...n2, filter:
|
|
2503
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
2504
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2363
2505
|
}, endsWith(r2, i2) {
|
|
2364
|
-
let a2 = { [
|
|
2365
|
-
return t2({ ...n2, filter:
|
|
2506
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
2507
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2366
2508
|
}, contains(r2, i2) {
|
|
2367
|
-
let a2 = { [
|
|
2368
|
-
return t2({ ...n2, filter:
|
|
2509
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
2510
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2369
2511
|
}, hasSome(r2, ...i2) {
|
|
2370
|
-
let a2 = { [
|
|
2371
|
-
return t2({ ...n2, filter:
|
|
2512
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
2513
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2372
2514
|
}, hasAll(r2, ...i2) {
|
|
2373
|
-
let a2 = { [
|
|
2374
|
-
return t2({ ...n2, filter:
|
|
2515
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
2516
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2375
2517
|
}, between(e3, t3, n3) {
|
|
2376
2518
|
return this.ge(e3, t3).lt(e3, n3);
|
|
2377
2519
|
}, in(r2, i2) {
|
|
2378
|
-
let a2 = { [
|
|
2379
|
-
return t2({ ...n2, filter:
|
|
2520
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
2521
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2380
2522
|
}, exists(r2, i2 = true) {
|
|
2381
|
-
let a2 = { [
|
|
2382
|
-
return t2({ ...n2, filter:
|
|
2523
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
2524
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2383
2525
|
}, or(e3) {
|
|
2384
|
-
return t2({ ...n2, filter:
|
|
2526
|
+
return t2({ ...n2, filter: Ei(n2.filter, e3.query.filter) });
|
|
2385
2527
|
}, and(e3) {
|
|
2386
|
-
return t2({ ...n2, filter:
|
|
2528
|
+
return t2({ ...n2, filter: R(n2.filter, e3.query.filter) });
|
|
2387
2529
|
}, not(e3) {
|
|
2388
|
-
return t2({ ...n2, filter:
|
|
2530
|
+
return t2({ ...n2, filter: Di(e3.query.filter) });
|
|
2389
2531
|
}, ascending(...r2) {
|
|
2390
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
2532
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: z(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
2391
2533
|
}, descending(...r2) {
|
|
2392
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
2534
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: z(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
2393
2535
|
}, skip(e3) {
|
|
2394
2536
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
2395
2537
|
}, limit(r2) {
|
|
@@ -2402,28 +2544,28 @@ function Ti(e2) {
|
|
|
2402
2544
|
} });
|
|
2403
2545
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
2404
2546
|
}
|
|
2405
|
-
function
|
|
2547
|
+
function z(e2, t2) {
|
|
2406
2548
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
2407
2549
|
return n2 ? t2.replace(n2, e2[n2]) : lt(t2, { ...e2, ...ct });
|
|
2408
2550
|
}
|
|
2409
|
-
function
|
|
2410
|
-
let r2 = (r3, i3) =>
|
|
2551
|
+
function Mi(e2, t2, n2 = {}) {
|
|
2552
|
+
let r2 = (r3, i3) => Mi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [x(e2, t2)]: n2 };
|
|
2411
2553
|
return { get filter() {
|
|
2412
2554
|
return i2();
|
|
2413
2555
|
}, 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) };
|
|
2414
2556
|
}
|
|
2415
|
-
function
|
|
2416
|
-
return Object.assign((t2) =>
|
|
2557
|
+
function Ni(e2) {
|
|
2558
|
+
return Object.assign((t2) => Mi(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 } }) });
|
|
2417
2559
|
}
|
|
2418
|
-
function
|
|
2419
|
-
return (t2) => ({ asc: () => ({ sort: { fieldName:
|
|
2560
|
+
function Pi(e2) {
|
|
2561
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: x(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: x(t2, e2), order: `DESC` } }) });
|
|
2420
2562
|
}
|
|
2421
|
-
function
|
|
2563
|
+
function Fi(e2) {
|
|
2422
2564
|
return () => {
|
|
2423
2565
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
2424
2566
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
2425
2567
|
}, withFields(...r2) {
|
|
2426
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
2568
|
+
return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
|
|
2427
2569
|
}, withSorting(...e3) {
|
|
2428
2570
|
return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
|
|
2429
2571
|
}, withPaging(e3) {
|
|
@@ -2434,49 +2576,49 @@ function ki(e2) {
|
|
|
2434
2576
|
return n2;
|
|
2435
2577
|
};
|
|
2436
2578
|
}
|
|
2437
|
-
function
|
|
2438
|
-
return { QueryBuilder:
|
|
2439
|
-
}
|
|
2440
|
-
var
|
|
2441
|
-
var
|
|
2442
|
-
var
|
|
2443
|
-
var
|
|
2444
|
-
var
|
|
2445
|
-
var
|
|
2446
|
-
function
|
|
2579
|
+
function B(e2) {
|
|
2580
|
+
return { QueryBuilder: Fi(e2), Filter: Ni(e2), Sort: Pi(e2) };
|
|
2581
|
+
}
|
|
2582
|
+
var Ii = `filter`;
|
|
2583
|
+
var Li = `sort`;
|
|
2584
|
+
var Ri = `cursorPaging`;
|
|
2585
|
+
var zi = `paging`;
|
|
2586
|
+
var Bi = [Ii, Li, Ri];
|
|
2587
|
+
var Vi = [Ii, Li, zi];
|
|
2588
|
+
function Hi(e2, t2) {
|
|
2447
2589
|
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
2448
2590
|
}
|
|
2449
|
-
function
|
|
2450
|
-
return
|
|
2591
|
+
function Ui(e2) {
|
|
2592
|
+
return Hi(e2, Bi);
|
|
2451
2593
|
}
|
|
2452
|
-
function
|
|
2453
|
-
return
|
|
2594
|
+
function Wi(e2) {
|
|
2595
|
+
return Hi(e2, Vi);
|
|
2454
2596
|
}
|
|
2455
|
-
function
|
|
2597
|
+
function Gi(e2) {
|
|
2456
2598
|
let { hasOptionsParameter: t2 } = e2;
|
|
2457
2599
|
return function(...n2) {
|
|
2458
|
-
return t2 ?
|
|
2600
|
+
return t2 ? qi(n2, e2) : Ki(n2, e2);
|
|
2459
2601
|
};
|
|
2460
2602
|
}
|
|
2461
|
-
function
|
|
2603
|
+
function Ki(e2, t2) {
|
|
2462
2604
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
2463
2605
|
}
|
|
2464
|
-
function
|
|
2606
|
+
function qi(e2, t2) {
|
|
2465
2607
|
switch (e2.length) {
|
|
2466
2608
|
case 0:
|
|
2467
2609
|
return t2.builderQueryFunction();
|
|
2468
2610
|
case 1:
|
|
2469
|
-
return
|
|
2611
|
+
return Ui(e2[0]) || Wi(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
2470
2612
|
default:
|
|
2471
2613
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
2472
2614
|
}
|
|
2473
2615
|
}
|
|
2474
|
-
function
|
|
2616
|
+
function V(e2) {
|
|
2475
2617
|
if (!e2) return;
|
|
2476
2618
|
let t2 = ``;
|
|
2477
2619
|
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;
|
|
2478
2620
|
}
|
|
2479
|
-
function
|
|
2621
|
+
function H(e2) {
|
|
2480
2622
|
if (!e2) return;
|
|
2481
2623
|
let t2 = ``;
|
|
2482
2624
|
e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
|
|
@@ -2491,24 +2633,24 @@ function Hi(e2) {
|
|
|
2491
2633
|
}
|
|
2492
2634
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
2493
2635
|
}
|
|
2494
|
-
function
|
|
2495
|
-
return
|
|
2636
|
+
function Ji(e2) {
|
|
2637
|
+
return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/customization`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/customizations`, destPath: `/v3/customizations` }, { srcPath: `/stores/v3/bulk/customizations`, destPath: `/v3/bulk/customizations` }], "editor._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/customization`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/customization`, destPath: `` }], _: [{ srcPath: `/_api/customization`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/customization`, destPath: `` }] } }));
|
|
2496
2638
|
}
|
|
2497
|
-
var
|
|
2498
|
-
function
|
|
2639
|
+
var Yi = `@wix/auto_sdk_stores_customizations-v-3`;
|
|
2640
|
+
function Xi(e2) {
|
|
2499
2641
|
function t2({ host: t3 }) {
|
|
2500
|
-
return { entityFqdn: `wix.stores.catalog.v3.customization`, method: `GET`, methodFqn: `wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations`, packageName:
|
|
2642
|
+
return { entityFqdn: `wix.stores.catalog.v3.customization`, method: `GET`, methodFqn: `wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations`, packageName: Yi, migrationOptions: { optInTransformResponse: true }, url: Ji({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), params: O(e2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `customizations.createdDate` }, { path: `customizations.updatedDate` }, { path: `customizations.choicesSettings.choices.image.urlExpirationDate` }, { path: `customizations.choicesSettings.choices.displayImage.urlExpirationDate` }] }, { transformFn: j, paths: [{ path: `customizations.choicesSettings.choices.image.focalPoint.x` }, { path: `customizations.choicesSettings.choices.image.focalPoint.y` }] }]), fallback: [{ method: `POST`, url: Ji({ protoPath: `/v3/customizations/query`, data: e2, host: t3 }), data: e2 }] };
|
|
2501
2643
|
}
|
|
2502
2644
|
return t2;
|
|
2503
2645
|
}
|
|
2504
|
-
var
|
|
2646
|
+
var Zi = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(Zi || {});
|
|
2505
2647
|
var U = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(U || {});
|
|
2506
|
-
var
|
|
2507
|
-
var
|
|
2508
|
-
function
|
|
2648
|
+
var Qi = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(Qi || {});
|
|
2649
|
+
var $i = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))($i || {});
|
|
2650
|
+
function ea(e2) {
|
|
2509
2651
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2510
|
-
return
|
|
2511
|
-
let i2 =
|
|
2652
|
+
return ji({ func: async (r2) => {
|
|
2653
|
+
let i2 = Xi({ ...r2, ...e2 ?? {} });
|
|
2512
2654
|
n2?.onSiteCall?.();
|
|
2513
2655
|
try {
|
|
2514
2656
|
let e3 = await t2.request(i2);
|
|
@@ -2518,45 +2660,45 @@ function Ji(e2) {
|
|
|
2518
2660
|
}
|
|
2519
2661
|
}, requestTransformer: (t3) => {
|
|
2520
2662
|
let n3 = [t3, e2];
|
|
2521
|
-
return
|
|
2663
|
+
return S({ ...n3?.[1], query: n3?.[0] });
|
|
2522
2664
|
}, responseTransformer: ({ data: e3 }) => {
|
|
2523
|
-
let t3 =
|
|
2665
|
+
let t3 = C(T(e3, [{ transformFn: V, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
|
|
2524
2666
|
return { items: t3?.customizations, pagingMetadata: t3?.pagingMetadata };
|
|
2525
2667
|
}, errorTransformer: (e3) => {
|
|
2526
|
-
throw
|
|
2668
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2527
2669
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2528
2670
|
}
|
|
2529
|
-
async function
|
|
2530
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
2671
|
+
async function ta(e2, t2) {
|
|
2672
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Xi(S({ query: e2, ...t2 }));
|
|
2531
2673
|
r2?.onSiteCall?.();
|
|
2532
2674
|
try {
|
|
2533
2675
|
let e3 = await n2.request(i2);
|
|
2534
|
-
return r2?.onSuccess?.(e3),
|
|
2676
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
|
|
2535
2677
|
} catch (e3) {
|
|
2536
|
-
let t3 =
|
|
2678
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2537
2679
|
throw r2?.onError?.(e3), t3;
|
|
2538
2680
|
}
|
|
2539
2681
|
}
|
|
2540
|
-
({ ...
|
|
2541
|
-
function
|
|
2542
|
-
return (t2) =>
|
|
2682
|
+
({ ...B() });
|
|
2683
|
+
function na(e2) {
|
|
2684
|
+
return (t2) => ea(t2, { httpClient: e2 });
|
|
2543
2685
|
}
|
|
2544
|
-
function
|
|
2545
|
-
return (t2, n2) =>
|
|
2686
|
+
function ra(e2) {
|
|
2687
|
+
return (t2, n2) => ta(t2, n2, { httpClient: e2 });
|
|
2546
2688
|
}
|
|
2547
|
-
var
|
|
2548
|
-
var
|
|
2549
|
-
var
|
|
2550
|
-
function
|
|
2551
|
-
let t2 =
|
|
2689
|
+
var ia = y(`wix.stores.catalog.v3.customization_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
|
|
2690
|
+
var aa = y(`wix.stores.catalog.v3.customization_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }] }])))();
|
|
2691
|
+
var oa = y(`wix.stores.catalog.v3.customization_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: V, paths: [{ path: `entity.choicesSettings.choices.image` }, { path: `entity.choicesSettings.choices.displayImage` }, { path: `modifiedFields.choicesSettings.choices.image` }, { path: `modifiedFields.choicesSettings.choices.displayImage` }] }])))();
|
|
2692
|
+
function sa(e2) {
|
|
2693
|
+
let t2 = Gi({ builderQueryFunction: (t3) => na(e2)(t3), typedQueryFunction: (t3, n3) => ra(e2)(t3, n3), hasOptionsParameter: true });
|
|
2552
2694
|
function n2(e3, n3) {
|
|
2553
2695
|
return t2(...arguments);
|
|
2554
2696
|
}
|
|
2555
2697
|
return n2;
|
|
2556
2698
|
}
|
|
2557
|
-
var
|
|
2558
|
-
|
|
2559
|
-
function
|
|
2699
|
+
var ca = D(sa);
|
|
2700
|
+
A(ia), A(aa), A(oa);
|
|
2701
|
+
function la(e2) {
|
|
2560
2702
|
let t2 = {}, n2 = { get search() {
|
|
2561
2703
|
return t2;
|
|
2562
2704
|
}, expression(e3) {
|
|
@@ -2564,19 +2706,19 @@ function ra(e2) {
|
|
|
2564
2706
|
}, mode(e3) {
|
|
2565
2707
|
return t2 = { ...t2, mode: e3 }, n2;
|
|
2566
2708
|
}, fields(r2) {
|
|
2567
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
2709
|
+
return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
|
|
2568
2710
|
}, fuzzy(e3 = true) {
|
|
2569
2711
|
return t2 = { ...t2, fuzzy: e3 }, n2;
|
|
2570
2712
|
} };
|
|
2571
2713
|
return n2;
|
|
2572
2714
|
}
|
|
2573
|
-
function
|
|
2715
|
+
function ua(e2) {
|
|
2574
2716
|
return (t2) => {
|
|
2575
|
-
let n2 =
|
|
2717
|
+
let n2 = la(e2);
|
|
2576
2718
|
return t2 === void 0 ? n2 : n2.expression(t2);
|
|
2577
2719
|
};
|
|
2578
2720
|
}
|
|
2579
|
-
function
|
|
2721
|
+
function da(e2) {
|
|
2580
2722
|
let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
|
|
2581
2723
|
return t2;
|
|
2582
2724
|
}, sortBy(e3, r2) {
|
|
@@ -2592,7 +2734,7 @@ function aa(e2) {
|
|
|
2592
2734
|
} };
|
|
2593
2735
|
return n2;
|
|
2594
2736
|
}
|
|
2595
|
-
function
|
|
2737
|
+
function fa(e2) {
|
|
2596
2738
|
let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
|
|
2597
2739
|
return t2;
|
|
2598
2740
|
}, withBuckets(...e3) {
|
|
@@ -2600,7 +2742,7 @@ function oa(e2) {
|
|
|
2600
2742
|
} };
|
|
2601
2743
|
return n2;
|
|
2602
2744
|
}
|
|
2603
|
-
function
|
|
2745
|
+
function pa(e2) {
|
|
2604
2746
|
let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
|
|
2605
2747
|
return t2;
|
|
2606
2748
|
}, interval(e3) {
|
|
@@ -2608,7 +2750,7 @@ function sa(e2) {
|
|
|
2608
2750
|
} };
|
|
2609
2751
|
return n2;
|
|
2610
2752
|
}
|
|
2611
|
-
function
|
|
2753
|
+
function ma(e2) {
|
|
2612
2754
|
let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
|
|
2613
2755
|
return t2;
|
|
2614
2756
|
}, type(e3) {
|
|
@@ -2616,7 +2758,7 @@ function ca(e2) {
|
|
|
2616
2758
|
} };
|
|
2617
2759
|
return n2;
|
|
2618
2760
|
}
|
|
2619
|
-
function
|
|
2761
|
+
function ha(e2) {
|
|
2620
2762
|
let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
|
|
2621
2763
|
return t2;
|
|
2622
2764
|
}, addNestedAggregation(e3) {
|
|
@@ -2625,30 +2767,30 @@ function la(e2) {
|
|
|
2625
2767
|
} };
|
|
2626
2768
|
return n2;
|
|
2627
2769
|
}
|
|
2628
|
-
function
|
|
2770
|
+
function ga(e2, t2) {
|
|
2629
2771
|
let n2 = { name: e2 }, r2 = { get aggregation() {
|
|
2630
2772
|
return n2;
|
|
2631
2773
|
}, ofType(e3) {
|
|
2632
2774
|
return n2 = { ...n2, type: e3 }, r2;
|
|
2633
2775
|
}, onField(e3) {
|
|
2634
|
-
return n2 = { ...n2, fieldPath:
|
|
2776
|
+
return n2 = { ...n2, fieldPath: x(e3, t2) }, r2;
|
|
2635
2777
|
}, asValueAggregation() {
|
|
2636
|
-
return
|
|
2778
|
+
return da(n2);
|
|
2637
2779
|
}, asRangeAggregation() {
|
|
2638
|
-
return
|
|
2780
|
+
return fa(n2);
|
|
2639
2781
|
}, asDateHistogramAggregation() {
|
|
2640
|
-
return
|
|
2782
|
+
return pa(n2);
|
|
2641
2783
|
}, asScalarAggregation() {
|
|
2642
|
-
return
|
|
2784
|
+
return ma(n2);
|
|
2643
2785
|
}, asNestedAggregation() {
|
|
2644
|
-
return
|
|
2786
|
+
return ha(n2);
|
|
2645
2787
|
} };
|
|
2646
2788
|
return r2;
|
|
2647
2789
|
}
|
|
2648
|
-
function
|
|
2649
|
-
return (t2) =>
|
|
2790
|
+
function _a(e2) {
|
|
2791
|
+
return (t2) => ga(t2, e2);
|
|
2650
2792
|
}
|
|
2651
|
-
function
|
|
2793
|
+
function va() {
|
|
2652
2794
|
return () => {
|
|
2653
2795
|
let e2 = {}, t2 = { withFilter(n2) {
|
|
2654
2796
|
return e2 = { ...e2, filter: n2.filter }, t2;
|
|
@@ -2668,85 +2810,195 @@ function fa() {
|
|
|
2668
2810
|
return t2;
|
|
2669
2811
|
};
|
|
2670
2812
|
}
|
|
2671
|
-
function
|
|
2672
|
-
return { SearchBuilder:
|
|
2813
|
+
function ya(e2) {
|
|
2814
|
+
return { SearchBuilder: va(), Filter: Ni(e2), Sort: Pi(e2), SearchParams: ua(e2), Aggregation: _a(e2) };
|
|
2673
2815
|
}
|
|
2674
|
-
function
|
|
2816
|
+
function W(e2) {
|
|
2675
2817
|
if (e2) return e2.url;
|
|
2676
2818
|
}
|
|
2677
|
-
function
|
|
2678
|
-
return
|
|
2819
|
+
function G(e2) {
|
|
2820
|
+
return k(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: `` }] } }));
|
|
2679
2821
|
}
|
|
2680
|
-
var
|
|
2681
|
-
function
|
|
2822
|
+
var ba = `@wix/auto_sdk_stores_products-v-3`;
|
|
2823
|
+
function xa(e2) {
|
|
2824
|
+
function t2({ host: t3 }) {
|
|
2825
|
+
let n2 = T(e2, [{ transformFn: vn, paths: [{ path: `search.aggregations.range.buckets.from` }, { path: `search.aggregations.range.buckets.to` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.from` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.to` }] }]);
|
|
2826
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.SearchProducts`, packageName: ba, migrationOptions: { optInTransformResponse: true }, url: G({ protoPath: `/v3/products/search`, data: n2, host: t3 }), params: O(n2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: j, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `aggregationData.results.scalar.value` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.scalar.value` }, { path: `aggregationData.results.nested.results.results.*.scalar.value` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }, { path: `aggregationData.results.ranges.results.from` }, { path: `aggregationData.results.ranges.results.to` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to` }, { path: `aggregationData.results.nested.results.results.*.range.from` }, { path: `aggregationData.results.nested.results.results.*.range.to` }] }]), fallback: [{ method: `POST`, url: G({ protoPath: `/v3/products/search`, data: n2, host: t3 }), data: n2 }] };
|
|
2827
|
+
}
|
|
2828
|
+
return t2;
|
|
2829
|
+
}
|
|
2830
|
+
function Sa(e2) {
|
|
2682
2831
|
function t2({ host: t3 }) {
|
|
2683
|
-
let n2 = w(e2, [{ transformFn: vn, paths: [{ path: `search.aggregations.range.buckets.from` }, { path: `search.aggregations.range.buckets.to` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.from` }, { path: `search.aggregations.nested.nestedAggregations.range.buckets.to` }] }]);
|
|
2684
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.SearchProducts`, packageName: ga, migrationOptions: { optInTransformResponse: true }, url: ha({ protoPath: `/v3/products/search`, data: n2, host: t3 }), params: D(n2, true), transformResponse: (e3) => w(e3, [{ transformFn: C, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: A, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `aggregationData.results.scalar.value` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.scalar.value` }, { path: `aggregationData.results.nested.results.results.*.scalar.value` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }, { path: `aggregationData.results.ranges.results.from` }, { path: `aggregationData.results.ranges.results.to` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.from` }, { path: `aggregationData.results.groupedByValue.results.nestedResults.ranges.results.to` }, { path: `aggregationData.results.nested.results.results.*.range.from` }, { path: `aggregationData.results.nested.results.results.*.range.to` }] }]), fallback: [{ method: `POST`, url: ha({ protoPath: `/v3/products/search`, data: n2, host: t3 }), data: n2 }] };
|
|
2832
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.QueryProducts`, packageName: ba, migrationOptions: { optInTransformResponse: true }, url: G({ protoPath: `/v3/products/query`, data: e2, host: t3 }), params: O(e2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `products.createdDate` }, { path: `products.updatedDate` }, { path: `products.description.metadata.createdTimestamp` }, { path: `products.description.metadata.updatedTimestamp` }, { path: `products.media.main.image.urlExpirationDate` }, { path: `products.media.main.video.urlExpirationDate` }, { path: `products.media.main.video.resolutions.urlExpirationDate` }, { path: `products.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.main.video.posters.urlExpirationDate` }, { path: `products.media.itemsInfo.items.image.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `products.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `products.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `products.infoSections.description.metadata.createdTimestamp` }, { path: `products.infoSections.description.metadata.updatedTimestamp` }, { path: `products.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `products.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: j, paths: [{ path: `products.physicalProperties.pricePerUnit.quantity` }, { path: `products.physicalProperties.shippingWeightRange.minValue` }, { path: `products.physicalProperties.shippingWeightRange.maxValue` }, { path: `products.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `products.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `products.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `products.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `products.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.description.nodes.galleryData.items.image.media.duration` }, { path: `products.description.nodes.galleryData.items.video.media.duration` }, { path: `products.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.description.nodes.galleryData.options.item.ratio` }, { path: `products.description.nodes.imageData.image.duration` }, { path: `products.description.nodes.imageData.crop.x` }, { path: `products.description.nodes.imageData.crop.y` }, { path: `products.description.nodes.imageData.crop.width` }, { path: `products.description.nodes.imageData.crop.height` }, { path: `products.description.nodes.mapData.mapSettings.lat` }, { path: `products.description.nodes.mapData.mapSettings.lng` }, { path: `products.description.nodes.pollData.poll.image.duration` }, { path: `products.description.nodes.pollData.poll.options.image.duration` }, { path: `products.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.description.nodes.appEmbedData.image.duration` }, { path: `products.description.nodes.videoData.video.duration` }, { path: `products.description.nodes.videoData.thumbnail.duration` }, { path: `products.description.nodes.audioData.audio.duration` }, { path: `products.description.nodes.audioData.coverImage.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.description.nodes.shapeData.shape.duration` }, { path: `products.description.nodes.cardData.background.gradient.centerX` }, { path: `products.description.nodes.cardData.background.gradient.centerY` }, { path: `products.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.description.nodes.tocData.fontSize` }, { path: `products.description.nodes.tocData.itemSpacing` }, { path: `products.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `products.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `products.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `products.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `products.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `products.infoSections.description.nodes.imageData.image.duration` }, { path: `products.infoSections.description.nodes.imageData.crop.x` }, { path: `products.infoSections.description.nodes.imageData.crop.y` }, { path: `products.infoSections.description.nodes.imageData.crop.width` }, { path: `products.infoSections.description.nodes.imageData.crop.height` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `products.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `products.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `products.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `products.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `products.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `products.infoSections.description.nodes.videoData.video.duration` }, { path: `products.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `products.infoSections.description.nodes.audioData.audio.duration` }, { path: `products.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `products.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `products.infoSections.description.nodes.shapeData.shape.duration` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `products.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `products.infoSections.description.nodes.tocData.fontSize` }, { path: `products.infoSections.description.nodes.tocData.itemSpacing` }, { path: `products.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `products.variantsInfo.variants.physicalProperties.weight` }, { path: `products.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `products.minVariantPriceInfo.weight` }] }]), fallback: [{ method: `POST`, url: G({ protoPath: `/v3/products/query`, data: e2, host: t3 }), data: e2 }] };
|
|
2685
2833
|
}
|
|
2686
2834
|
return t2;
|
|
2687
2835
|
}
|
|
2688
|
-
function
|
|
2836
|
+
function Ca(e2) {
|
|
2689
2837
|
function t2({ host: t3 }) {
|
|
2690
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.CountProducts`, packageName:
|
|
2838
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.CountProducts`, packageName: ba, migrationOptions: { optInTransformResponse: true }, url: G({ protoPath: `/v3/products/count`, data: e2, host: t3 }), params: O(e2, true), fallback: [{ method: `POST`, url: G({ protoPath: `/v3/products/count`, data: e2, host: t3 }), data: e2 }] };
|
|
2691
2839
|
}
|
|
2692
2840
|
return t2;
|
|
2693
2841
|
}
|
|
2694
|
-
var
|
|
2695
|
-
var
|
|
2696
|
-
var
|
|
2697
|
-
var
|
|
2698
|
-
var
|
|
2699
|
-
var
|
|
2700
|
-
var
|
|
2701
|
-
async function
|
|
2702
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
2842
|
+
var wa = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(wa || {});
|
|
2843
|
+
var K = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(K || {});
|
|
2844
|
+
var Ta = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(Ta || {});
|
|
2845
|
+
var Ea = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(Ea || {});
|
|
2846
|
+
var Da = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Da || {});
|
|
2847
|
+
var Oa = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(Oa || {});
|
|
2848
|
+
var q = ((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))(q || {});
|
|
2849
|
+
async function ka(e2, t2) {
|
|
2850
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = xa(S({ search: e2, fields: t2?.fields }, []));
|
|
2851
|
+
r2?.onSiteCall?.();
|
|
2852
|
+
try {
|
|
2853
|
+
let e3 = await n2.request(i2);
|
|
2854
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: W, paths: [{ path: `products.url` }] }, { transformFn: V, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: H, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
|
|
2855
|
+
} catch (e3) {
|
|
2856
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
|
|
2857
|
+
throw r2?.onError?.(e3), t3;
|
|
2858
|
+
}
|
|
2859
|
+
}
|
|
2860
|
+
({ ...ya() }, { ...B() });
|
|
2861
|
+
function Aa(e2) {
|
|
2862
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2863
|
+
return ji({ func: async (r2) => {
|
|
2864
|
+
let i2 = Sa({ ...r2, ...e2 ?? {} });
|
|
2865
|
+
n2?.onSiteCall?.();
|
|
2866
|
+
try {
|
|
2867
|
+
let e3 = await t2.request(i2);
|
|
2868
|
+
return n2?.onSuccess?.(e3), e3;
|
|
2869
|
+
} catch (e3) {
|
|
2870
|
+
throw n2?.onError?.(e3), e3;
|
|
2871
|
+
}
|
|
2872
|
+
}, requestTransformer: (t3) => {
|
|
2873
|
+
let n3 = [t3, e2];
|
|
2874
|
+
return S({ ...n3?.[1], query: n3?.[0] }, []);
|
|
2875
|
+
}, responseTransformer: ({ data: e3 }) => {
|
|
2876
|
+
let t3 = C(T(e3, [{ transformFn: W, paths: [{ path: `products.url` }] }, { transformFn: V, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: H, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
|
|
2877
|
+
return { items: t3?.products, pagingMetadata: t3?.pagingMetadata };
|
|
2878
|
+
}, errorTransformer: (e3) => {
|
|
2879
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2880
|
+
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2881
|
+
}
|
|
2882
|
+
async function ja(e2, t2) {
|
|
2883
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Sa(S({ query: e2, ...t2 }, []));
|
|
2703
2884
|
r2?.onSiteCall?.();
|
|
2704
2885
|
try {
|
|
2705
2886
|
let e3 = await n2.request(i2);
|
|
2706
|
-
return r2?.onSuccess?.(e3),
|
|
2887
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: W, paths: [{ path: `products.url` }] }, { transformFn: V, paths: [{ path: `products.media.main.image` }, { path: `products.media.itemsInfo.items.image` }, { path: `products.options.choicesSettings.choices.image` }, { path: `products.options.choicesSettings.choices.displayImage` }, { path: `products.options.choicesSettings.choices.linkedMedia.image` }, { path: `products.modifiers.choicesSettings.choices.image` }, { path: `products.modifiers.choicesSettings.choices.displayImage` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `products.variantsInfo.variants.media.image` }, { path: `products.variantSummary.minPriceVariant.media.image` }] }, { transformFn: H, paths: [{ path: `products.media.main.video` }, { path: `products.media.itemsInfo.items.video` }, { path: `products.options.choicesSettings.choices.linkedMedia.video` }, { path: `products.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `products.variantsInfo.variants.media.video` }, { path: `products.variantSummary.minPriceVariant.media.video` }] }]), [`products.description`, `products.infoSections.description`]);
|
|
2707
2888
|
} catch (e3) {
|
|
2708
|
-
let t3 =
|
|
2889
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2709
2890
|
throw r2?.onError?.(e3), t3;
|
|
2710
2891
|
}
|
|
2711
2892
|
}
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = va(x({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
|
|
2893
|
+
async function Ma(e2) {
|
|
2894
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ca(S({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
|
|
2715
2895
|
n2?.onSiteCall?.();
|
|
2716
2896
|
try {
|
|
2717
2897
|
let e3 = await t2.request(r2);
|
|
2718
|
-
return n2?.onSuccess?.(e3),
|
|
2898
|
+
return n2?.onSuccess?.(e3), C(e3.data, []);
|
|
2719
2899
|
} catch (e3) {
|
|
2720
|
-
let t3 =
|
|
2900
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
|
|
2721
2901
|
throw n2?.onError?.(e3), t3;
|
|
2722
2902
|
}
|
|
2723
2903
|
}
|
|
2724
|
-
function Ea(e2) {
|
|
2725
|
-
return (t2, n2) => wa(t2, n2, { httpClient: e2 });
|
|
2726
|
-
}
|
|
2727
|
-
function Da(e2) {
|
|
2728
|
-
return (t2) => Ta(t2, { httpClient: e2 });
|
|
2729
|
-
}
|
|
2730
|
-
var Oa = v(`wix.stores.catalog.v3.product_created`, true, (e2) => S(w(e2, [{ transformFn: C, 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: ma, paths: [{ path: `entity.url` }] }, { transformFn: A, 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: H, 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: Hi, 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` }] }])))();
|
|
2731
|
-
var ka = v(`wix.stores.catalog.v3.product_deleted`, true, (e2) => S(w(e2, [{ transformFn: C, 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: ma, paths: [{ path: `entity.url` }] }, { transformFn: A, 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: H, 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: Hi, 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` }] }])))();
|
|
2732
|
-
var Aa = v(`wix.stores.catalog.v3.product_updated`, true, (e2) => S(w(e2, [{ transformFn: C, 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: ma, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: A, 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: H, 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: Hi, 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` }] }])))();
|
|
2733
|
-
var ja = E(Ea);
|
|
2734
|
-
var Ma = E(Da);
|
|
2735
|
-
k(Oa), k(ka), k(Aa);
|
|
2736
2904
|
function Na(e2) {
|
|
2737
|
-
return
|
|
2905
|
+
return (t2, n2) => ka(t2, n2, { httpClient: e2 });
|
|
2906
|
+
}
|
|
2907
|
+
function Pa(e2) {
|
|
2908
|
+
return (t2) => Aa(t2, { httpClient: e2 });
|
|
2738
2909
|
}
|
|
2739
|
-
var Pa = `@wix/auto_sdk_stores_stores-locations-v-3`;
|
|
2740
2910
|
function Fa(e2) {
|
|
2911
|
+
return (t2, n2) => ja(t2, n2, { httpClient: e2 });
|
|
2912
|
+
}
|
|
2913
|
+
function Ia(e2) {
|
|
2914
|
+
return (t2) => Ma(t2, { httpClient: e2 });
|
|
2915
|
+
}
|
|
2916
|
+
var La = y(`wix.stores.catalog.v3.product_created`, true, (e2) => C(T(e2, [{ transformFn: w, 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: W, paths: [{ path: `entity.url` }] }, { transformFn: j, 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: V, 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: H, 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` }] }])))();
|
|
2917
|
+
var Ra = y(`wix.stores.catalog.v3.product_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, 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: W, paths: [{ path: `entity.url` }] }, { transformFn: j, 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: V, 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: H, 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` }] }])))();
|
|
2918
|
+
var za = y(`wix.stores.catalog.v3.product_updated`, true, (e2) => C(T(e2, [{ transformFn: w, 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: W, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: j, 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: V, 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: H, 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` }] }])))();
|
|
2919
|
+
function Ba(e2) {
|
|
2920
|
+
let t2 = Gi({ builderQueryFunction: (t3) => Pa(e2)(t3), typedQueryFunction: (t3, n3) => Fa(e2)(t3, n3), hasOptionsParameter: true });
|
|
2921
|
+
function n2(e3, n3) {
|
|
2922
|
+
return t2(...arguments);
|
|
2923
|
+
}
|
|
2924
|
+
return n2;
|
|
2925
|
+
}
|
|
2926
|
+
var Va = D(Na);
|
|
2927
|
+
var Ha = D(Ia);
|
|
2928
|
+
var Ua = D(Ba);
|
|
2929
|
+
A(La), A(Ra), A(za);
|
|
2930
|
+
function Wa(e2) {
|
|
2931
|
+
return k(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/product-group`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/product-group`, destPath: `` }], _: [{ srcPath: `/_api/product-group`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/product-group`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/product-groups`, destPath: `/v3/product-groups` }, { srcPath: `/stores/v3/bulk/product-groups`, destPath: `/v3/bulk/product-groups` }], "*.dev.wix-code.com": [{ srcPath: `/_api/product-group`, destPath: `` }] } }));
|
|
2932
|
+
}
|
|
2933
|
+
var Ga = `@wix/auto_sdk_stores_product-groups-v-3`;
|
|
2934
|
+
function Ka(e2) {
|
|
2935
|
+
function t2({ host: t3 }) {
|
|
2936
|
+
return { entityFqdn: `wix.stores.catalog.v3.product_group`, method: `GET`, methodFqn: `wix.stores.catalog.product_group.v3.ProductGroupService.QueryProductGroups`, packageName: Ga, migrationOptions: { optInTransformResponse: true }, url: Wa({ protoPath: `/v3/product-groups/query`, data: e2, host: t3 }), params: O(e2, true), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `productGroups.createdDate` }, { path: `productGroups.updatedDate` }, { path: `productGroups.media.image.urlExpirationDate` }] }]), fallback: [{ method: `POST`, url: Wa({ protoPath: `/v3/product-groups/query`, data: e2, host: t3 }), data: e2 }] };
|
|
2937
|
+
}
|
|
2938
|
+
return t2;
|
|
2939
|
+
}
|
|
2940
|
+
var qa = ((e2) => (e2.GROUPING_CUSTOMIZATION = `GROUPING_CUSTOMIZATION`, e2.THUMBNAIL = `THUMBNAIL`, e2))(qa || {});
|
|
2941
|
+
function Ja(e2) {
|
|
2942
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2943
|
+
return ji({ func: async (r2) => {
|
|
2944
|
+
let i2 = Ka({ ...r2, ...e2 ?? {} });
|
|
2945
|
+
n2?.onSiteCall?.();
|
|
2946
|
+
try {
|
|
2947
|
+
let e3 = await t2.request(i2);
|
|
2948
|
+
return n2?.onSuccess?.(e3), e3;
|
|
2949
|
+
} catch (e3) {
|
|
2950
|
+
throw n2?.onError?.(e3), e3;
|
|
2951
|
+
}
|
|
2952
|
+
}, requestTransformer: (t3) => {
|
|
2953
|
+
let n3 = [t3, e2];
|
|
2954
|
+
return S({ ...n3?.[1], query: n3?.[0] });
|
|
2955
|
+
}, responseTransformer: ({ data: e3 }) => {
|
|
2956
|
+
let t3 = C(T(e3, [{ transformFn: V, paths: [{ path: `productGroups.media.image` }] }]));
|
|
2957
|
+
return { items: t3?.productGroups, pagingMetadata: t3?.pagingMetadata };
|
|
2958
|
+
}, errorTransformer: (e3) => {
|
|
2959
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2960
|
+
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2961
|
+
}
|
|
2962
|
+
async function Ya(e2, t2) {
|
|
2963
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ka(S({ query: e2, ...t2 }));
|
|
2964
|
+
r2?.onSiteCall?.();
|
|
2965
|
+
try {
|
|
2966
|
+
let e3 = await n2.request(i2);
|
|
2967
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `productGroups.media.image` }] }]));
|
|
2968
|
+
} catch (e3) {
|
|
2969
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2970
|
+
throw r2?.onError?.(e3), t3;
|
|
2971
|
+
}
|
|
2972
|
+
}
|
|
2973
|
+
({ ...B() }, { ...ya() });
|
|
2974
|
+
function Xa(e2) {
|
|
2975
|
+
return (t2) => Ja(t2, { httpClient: e2 });
|
|
2976
|
+
}
|
|
2977
|
+
function Za(e2) {
|
|
2978
|
+
return (t2, n2) => Ya(t2, n2, { httpClient: e2 });
|
|
2979
|
+
}
|
|
2980
|
+
function Qa(e2) {
|
|
2981
|
+
let t2 = Gi({ builderQueryFunction: (t3) => Xa(e2)(t3), typedQueryFunction: (t3, n3) => Za(e2)(t3, n3), hasOptionsParameter: true });
|
|
2982
|
+
function n2(e3, n3) {
|
|
2983
|
+
return t2(...arguments);
|
|
2984
|
+
}
|
|
2985
|
+
return n2;
|
|
2986
|
+
}
|
|
2987
|
+
var $a = D(Qa);
|
|
2988
|
+
function eo(e2) {
|
|
2989
|
+
return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/location`, destPath: `` }], _: [{ srcPath: `/_api/location`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/location`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/locations`, destPath: `/v3/locations` }] } }));
|
|
2990
|
+
}
|
|
2991
|
+
var to = `@wix/auto_sdk_stores_stores-locations-v-3`;
|
|
2992
|
+
function no(e2) {
|
|
2741
2993
|
function t2({ host: t3 }) {
|
|
2742
|
-
return { entityFqdn: `wix.stores.catalog.v3.stores_location`, method: `POST`, methodFqn: `wix.stores.catalog.location.v3.StoresLocationService.QueryStoresLocations`, packageName:
|
|
2994
|
+
return { entityFqdn: `wix.stores.catalog.v3.stores_location`, method: `POST`, methodFqn: `wix.stores.catalog.location.v3.StoresLocationService.QueryStoresLocations`, packageName: to, migrationOptions: { optInTransformResponse: true }, url: eo({ protoPath: `/v3/locations/query`, data: e2, host: t3 }), data: e2, transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `storesLocations.createdDate` }, { path: `storesLocations.updatedDate` }] }]) };
|
|
2743
2995
|
}
|
|
2744
2996
|
return t2;
|
|
2745
2997
|
}
|
|
2746
|
-
function
|
|
2998
|
+
function ro() {
|
|
2747
2999
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
2748
|
-
return
|
|
2749
|
-
let r2 =
|
|
3000
|
+
return ji({ func: async (n2) => {
|
|
3001
|
+
let r2 = no(n2);
|
|
2750
3002
|
t2?.onSiteCall?.();
|
|
2751
3003
|
try {
|
|
2752
3004
|
let n3 = await e2.request(r2);
|
|
@@ -2756,359 +3008,472 @@ function Ia() {
|
|
|
2756
3008
|
}
|
|
2757
3009
|
}, requestTransformer: (e3) => {
|
|
2758
3010
|
let t3 = [e3, {}];
|
|
2759
|
-
return
|
|
3011
|
+
return S({ ...t3?.[1], query: t3?.[0] });
|
|
2760
3012
|
}, responseTransformer: ({ data: e3 }) => {
|
|
2761
|
-
let t3 =
|
|
3013
|
+
let t3 = C(T(e3, []));
|
|
2762
3014
|
return { items: t3?.storesLocations, pagingMetadata: t3?.pagingMetadata };
|
|
2763
3015
|
}, errorTransformer: (e3) => {
|
|
2764
|
-
throw
|
|
3016
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2765
3017
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2766
3018
|
}
|
|
2767
|
-
async function
|
|
2768
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3019
|
+
async function io(e2) {
|
|
3020
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = no(S({ query: e2 }));
|
|
2769
3021
|
n2?.onSiteCall?.();
|
|
2770
3022
|
try {
|
|
2771
3023
|
let e3 = await t2.request(r2);
|
|
2772
|
-
return n2?.onSuccess?.(e3),
|
|
3024
|
+
return n2?.onSuccess?.(e3), C(e3.data);
|
|
2773
3025
|
} catch (e3) {
|
|
2774
|
-
let t3 =
|
|
3026
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
2775
3027
|
throw n2?.onError?.(e3), t3;
|
|
2776
3028
|
}
|
|
2777
3029
|
}
|
|
2778
|
-
({ ...
|
|
2779
|
-
function
|
|
2780
|
-
return () =>
|
|
3030
|
+
({ ...B() });
|
|
3031
|
+
function ao(e2) {
|
|
3032
|
+
return () => ro({ httpClient: e2 });
|
|
2781
3033
|
}
|
|
2782
|
-
function
|
|
2783
|
-
return (t2) =>
|
|
3034
|
+
function oo(e2) {
|
|
3035
|
+
return (t2) => io(t2, { httpClient: e2 });
|
|
2784
3036
|
}
|
|
2785
|
-
function
|
|
2786
|
-
let t2 =
|
|
3037
|
+
function so(e2) {
|
|
3038
|
+
let t2 = Gi({ builderQueryFunction: () => ao(e2)(), typedQueryFunction: (t3) => oo(e2)(t3), hasOptionsParameter: false });
|
|
2787
3039
|
function n2(e3) {
|
|
2788
3040
|
return t2(...arguments);
|
|
2789
3041
|
}
|
|
2790
3042
|
return n2;
|
|
2791
3043
|
}
|
|
2792
|
-
var
|
|
2793
|
-
function
|
|
2794
|
-
return
|
|
3044
|
+
var co = D(so);
|
|
3045
|
+
function lo(e2) {
|
|
3046
|
+
return k(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/promotion`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/promotion`, destPath: `` }], _: [{ srcPath: `/_api/promotion`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/promotion`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/promotions`, destPath: `/v3/promotions` }, { srcPath: `/stores/v3/bulk/promotions`, destPath: `/v3/bulk/promotions` }], "*.dev.wix-code.com": [{ srcPath: `/_api/promotion`, destPath: `` }] } }));
|
|
2795
3047
|
}
|
|
2796
|
-
var
|
|
2797
|
-
function
|
|
3048
|
+
var uo = `@wix/auto_sdk_stores_promotions-v-3`;
|
|
3049
|
+
function fo(e2) {
|
|
2798
3050
|
function t2({ host: t3 }) {
|
|
2799
|
-
return { entityFqdn: `wix.stores.catalog.v3.promotion`, method: `GET`, methodFqn: `wix.stores.catalog.promotion.v3.PromotionsService.ResolvePromotions`, packageName:
|
|
3051
|
+
return { entityFqdn: `wix.stores.catalog.v3.promotion`, method: `GET`, methodFqn: `wix.stores.catalog.promotion.v3.PromotionsService.ResolvePromotions`, packageName: uo, migrationOptions: { optInTransformResponse: true }, url: lo({ protoPath: `/v3/promotions/resolve`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `promotions.promotion.createdDate` }, { path: `promotions.promotion.updatedDate` }, { path: `promotions.promotion.media.image.urlExpirationDate` }] }]) };
|
|
2800
3052
|
}
|
|
2801
3053
|
return t2;
|
|
2802
3054
|
}
|
|
2803
|
-
({ ...
|
|
2804
|
-
async function
|
|
2805
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3055
|
+
({ ...B() }, { ...ya() });
|
|
3056
|
+
async function po(e2) {
|
|
3057
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = fo(S({ categoryId: e2 }));
|
|
2806
3058
|
n2?.onSiteCall?.();
|
|
2807
3059
|
try {
|
|
2808
3060
|
let e3 = await t2.request(r2);
|
|
2809
|
-
return n2?.onSuccess?.(e3),
|
|
3061
|
+
return n2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `promotions.promotion.media.image` }] }]));
|
|
2810
3062
|
} catch (e3) {
|
|
2811
|
-
let t3 =
|
|
3063
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
|
|
2812
3064
|
throw n2?.onError?.(e3), t3;
|
|
2813
3065
|
}
|
|
2814
3066
|
}
|
|
2815
|
-
function
|
|
2816
|
-
return (t2) =>
|
|
2817
|
-
}
|
|
2818
|
-
var
|
|
2819
|
-
var
|
|
2820
|
-
var
|
|
2821
|
-
var
|
|
2822
|
-
var
|
|
2823
|
-
|
|
2824
|
-
var
|
|
3067
|
+
function mo(e2) {
|
|
3068
|
+
return (t2) => po(t2, { httpClient: e2 });
|
|
3069
|
+
}
|
|
3070
|
+
var ho = y(`wix.stores.catalog.v3.promotion_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.media.image` }] }])))();
|
|
3071
|
+
var go = y(`wix.stores.catalog.v3.promotion_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.media.image` }] }])))();
|
|
3072
|
+
var _o = y(`wix.stores.catalog.v3.promotion_tags_modified`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `data.promotion.createdDate` }, { path: `data.promotion.updatedDate` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `data.promotion.media.image` }] }])))();
|
|
3073
|
+
var vo = y(`wix.stores.catalog.v3.promotion_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }, { transformFn: V, paths: [{ path: `entity.media.image` }, { path: `modifiedFields.media.image` }] }])))();
|
|
3074
|
+
var yo = D(mo);
|
|
3075
|
+
A(ho), A(go), A(_o), A(vo);
|
|
3076
|
+
var J = function(e2) {
|
|
2825
3077
|
return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${U.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${U.SWATCH_CHOICES}`, e2;
|
|
2826
3078
|
}({});
|
|
2827
|
-
var
|
|
3079
|
+
var bo = function(e2) {
|
|
2828
3080
|
return e2.TEXT_CHOICES = `Text Choices`, e2.SWATCH_CHOICES = `Swatch Choices`, e2.PRICE = `Price`, e2;
|
|
2829
3081
|
}({});
|
|
2830
|
-
var
|
|
2831
|
-
var
|
|
2832
|
-
var
|
|
3082
|
+
var xo = `minPrice`;
|
|
3083
|
+
var So = `maxPrice`;
|
|
3084
|
+
var Co = (e2, t2) => {
|
|
2833
3085
|
let n2 = new Map(e2.values.map((e3) => [e3.name, e3.id]));
|
|
2834
3086
|
return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
|
|
2835
3087
|
};
|
|
2836
|
-
var
|
|
3088
|
+
var wo = (e2) => {
|
|
2837
3089
|
if (e2 === null || e2.trim() === ``) return;
|
|
2838
3090
|
let t2 = Number(e2);
|
|
2839
3091
|
return Number.isFinite(t2) ? t2 : void 0;
|
|
2840
3092
|
};
|
|
2841
|
-
var
|
|
3093
|
+
var To = (e2, t2) => {
|
|
2842
3094
|
let n2 = {};
|
|
2843
3095
|
for (let r2 of t2) {
|
|
2844
|
-
let t3 = e2.get(r2.name), i2 =
|
|
3096
|
+
let t3 = e2.get(r2.name), i2 = Co(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
|
|
2845
3097
|
i2.length > 0 && (n2[r2.id] = i2);
|
|
2846
3098
|
}
|
|
2847
3099
|
return n2;
|
|
2848
3100
|
};
|
|
2849
|
-
function
|
|
3101
|
+
function Eo(e2, t2) {
|
|
2850
3102
|
let n2 = new URLSearchParams(e2);
|
|
2851
|
-
return { customizationIdToChoiceIds:
|
|
3103
|
+
return { customizationIdToChoiceIds: To(n2, t2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES)), priceMin: wo(n2.get(xo)), priceMax: wo(n2.get(So)) };
|
|
2852
3104
|
}
|
|
2853
|
-
var
|
|
3105
|
+
var Do = (e2, t2) => {
|
|
2854
3106
|
let n2 = new Map(e2.values.map((e3) => [e3.id, e3.name]));
|
|
2855
3107
|
return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
|
|
2856
3108
|
};
|
|
2857
|
-
var
|
|
3109
|
+
var Oo = (e2, t2) => {
|
|
2858
3110
|
t2.forEach((t3) => {
|
|
2859
3111
|
e2.delete(t3.name);
|
|
2860
|
-
}), e2.delete(
|
|
3112
|
+
}), e2.delete(xo), e2.delete(So);
|
|
2861
3113
|
};
|
|
2862
|
-
var
|
|
2863
|
-
var
|
|
3114
|
+
var ko = (e2) => e2.map(encodeURIComponent).join(`,`);
|
|
3115
|
+
var Ao = (e2, t2) => {
|
|
2864
3116
|
let n2 = new Map(e2.map((e3) => [e3.id, e3]));
|
|
2865
3117
|
return Object.entries(t2 ?? {}).flatMap(([e3, t3]) => {
|
|
2866
3118
|
let r2 = n2.get(e3);
|
|
2867
3119
|
if (!r2) return [];
|
|
2868
|
-
let i2 =
|
|
2869
|
-
return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${
|
|
3120
|
+
let i2 = Do(r2, t3);
|
|
3121
|
+
return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${ko(i2)}`];
|
|
2870
3122
|
});
|
|
2871
3123
|
};
|
|
2872
|
-
var
|
|
2873
|
-
t2.priceMin !== void 0 && t2.priceMin !== n2?.minPrice && e2.set(
|
|
3124
|
+
var jo = (e2, t2, n2) => {
|
|
3125
|
+
t2.priceMin !== void 0 && t2.priceMin !== n2?.minPrice && e2.set(xo, String(t2.priceMin)), t2.priceMax !== void 0 && t2.priceMax !== n2?.maxPrice && e2.set(So, String(t2.priceMax));
|
|
2874
3126
|
};
|
|
2875
|
-
function
|
|
2876
|
-
let r2 = new URLSearchParams(e2), i2 = n2.filter((e3) => e3.type ===
|
|
2877
|
-
|
|
2878
|
-
let o2 =
|
|
3127
|
+
function Mo(e2, t2, n2) {
|
|
3128
|
+
let r2 = new URLSearchParams(e2), i2 = n2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES), a2 = n2.find((e3) => e3.type === J.PRICE);
|
|
3129
|
+
Oo(r2, i2), jo(r2, t2, a2);
|
|
3130
|
+
let o2 = Ao(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
|
|
2879
3131
|
return s2 ? `?${s2}` : ``;
|
|
2880
3132
|
}
|
|
2881
|
-
function
|
|
2882
|
-
let { search: t2, pushSearch: n2 } =
|
|
2883
|
-
r2 !== i2 && n2(
|
|
3133
|
+
function No(e2) {
|
|
3134
|
+
let { search: t2, pushSearch: n2 } = _i(), i2 = (0, import_react.useMemo)(() => Eo(t2, e2), [t2, e2]), a2 = (r2) => {
|
|
3135
|
+
r2 !== i2 && n2(Mo(t2, r2, e2));
|
|
2884
3136
|
};
|
|
2885
3137
|
return { filterSelection: i2, selectFilterChoice: (e3, t3) => {
|
|
2886
|
-
a2(
|
|
3138
|
+
a2(yi(i2, e3, t3));
|
|
2887
3139
|
}, deselectFilterChoice: (e3, t3) => {
|
|
2888
|
-
a2(
|
|
3140
|
+
a2(bi(i2, e3, t3));
|
|
2889
3141
|
}, setPriceRange: (e3, t3) => {
|
|
2890
|
-
a2(
|
|
3142
|
+
a2(xi(i2, e3, t3));
|
|
2891
3143
|
}, clearPriceRange: () => {
|
|
2892
|
-
a2(
|
|
3144
|
+
a2(Si(i2));
|
|
2893
3145
|
}, clearAllFilters: () => {
|
|
2894
|
-
|
|
3146
|
+
vi(i2) || a2({});
|
|
2895
3147
|
} };
|
|
2896
3148
|
}
|
|
2897
|
-
var
|
|
3149
|
+
var Po = function(e2) {
|
|
2898
3150
|
return e2.createdDate = `createdDate`, e2.actualPriceRangeMinValueAmount = `actualPriceRange.minValue.amount`, e2.name = `name`, e2;
|
|
2899
3151
|
}({});
|
|
2900
3152
|
var Y = function(e2) {
|
|
2901
3153
|
return e2.recommended = `recommended`, e2.newest = `newest`, e2.price_ascending = `price_ascending`, e2.price_descending = `price_descending`, e2.name_ascending = `name_ascending`, e2.name_descending = `name_descending`, e2;
|
|
2902
3154
|
}({});
|
|
2903
|
-
var
|
|
2904
|
-
function
|
|
2905
|
-
return
|
|
3155
|
+
var Fo = [{ type: Y.recommended }, { type: Y.newest, fieldName: Po.createdDate, order: K.DESC }, { type: Y.price_ascending, fieldName: Po.actualPriceRangeMinValueAmount, order: K.ASC }, { type: Y.price_descending, fieldName: Po.actualPriceRangeMinValueAmount, order: K.DESC }, { type: Y.name_ascending, fieldName: Po.name, order: K.ASC }, { type: Y.name_descending, fieldName: Po.name, order: K.DESC }];
|
|
3156
|
+
function Io(e2) {
|
|
3157
|
+
return Fo.find((t2) => t2.type === e2);
|
|
2906
3158
|
}
|
|
2907
|
-
var
|
|
2908
|
-
var
|
|
2909
|
-
var
|
|
2910
|
-
function
|
|
2911
|
-
let t2 =
|
|
2912
|
-
return t2 ? t2.type :
|
|
3159
|
+
var Lo = Y.recommended;
|
|
3160
|
+
var Ro = Fo.map(({ type: e2 }) => e2);
|
|
3161
|
+
var zo = `sort`;
|
|
3162
|
+
function Bo(e2) {
|
|
3163
|
+
let t2 = Io(new URLSearchParams(e2).get(zo));
|
|
3164
|
+
return t2 ? t2.type : Lo;
|
|
2913
3165
|
}
|
|
2914
|
-
function
|
|
3166
|
+
function Vo(e2, t2) {
|
|
2915
3167
|
let n2 = new URLSearchParams(e2);
|
|
2916
|
-
return t2 ===
|
|
3168
|
+
return t2 === Lo ? n2.delete(zo) : n2.set(zo, t2), n2.toString();
|
|
2917
3169
|
}
|
|
2918
|
-
function
|
|
2919
|
-
let { search: e2, pushSearch: t2 } =
|
|
2920
|
-
return { sortTypes:
|
|
2921
|
-
r2 !== n2 && t2(
|
|
3170
|
+
function Ho() {
|
|
3171
|
+
let { search: e2, pushSearch: t2 } = _i(), n2 = (0, import_react.useMemo)(() => Bo(e2), [e2]);
|
|
3172
|
+
return { sortTypes: Ro, selectedSortType: n2, selectSortType: (r2) => {
|
|
3173
|
+
r2 !== n2 && t2(Vo(e2, r2));
|
|
2922
3174
|
} };
|
|
2923
3175
|
}
|
|
2924
|
-
var
|
|
2925
|
-
var
|
|
2926
|
-
var
|
|
2927
|
-
var
|
|
2928
|
-
function
|
|
2929
|
-
let t2 = e2?.match(
|
|
3176
|
+
var Uo = `https://static.wixstatic.com/media`;
|
|
3177
|
+
var Wo = `https://video.wixstatic.com/video`;
|
|
3178
|
+
var Go = /image:\/\/v1\/([^/#]+)/;
|
|
3179
|
+
var Ko = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
|
|
3180
|
+
function qo(e2) {
|
|
3181
|
+
let t2 = e2?.match(Ko);
|
|
2930
3182
|
if (!t2) return null;
|
|
2931
3183
|
let [, n2, r2] = t2, i2 = new URLSearchParams(r2 ?? ``), a2 = i2.get(`posterUri`);
|
|
2932
|
-
return { id: n2, url: `${
|
|
3184
|
+
return { id: n2, url: `${Wo}/${n2}/file`, ...a2 ? { poster: { uri: a2, url: `${Uo}/${a2}`, width: Number(i2.get(`posterWidth`)) || 0, height: Number(i2.get(`posterHeight`)) || 0 } } : {} };
|
|
2933
3185
|
}
|
|
2934
|
-
function
|
|
2935
|
-
return e2 ? e2.match(
|
|
3186
|
+
function Jo(e2) {
|
|
3187
|
+
return e2 ? e2.match(Go)?.[1] ?? null : null;
|
|
2936
3188
|
}
|
|
2937
|
-
function
|
|
3189
|
+
function Yo(e2) {
|
|
2938
3190
|
if (!e2) return null;
|
|
2939
3191
|
let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
|
|
2940
3192
|
return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
|
|
2941
3193
|
}
|
|
2942
|
-
function
|
|
3194
|
+
function Xo(e2) {
|
|
2943
3195
|
return e2.map((e3) => ({ id: e3._id, key: e3.key, name: e3.name ?? void 0, optionRenderType: e3.optionRenderType, choices: (e3.choicesSettings?.choices ?? []).map((e4) => {
|
|
2944
|
-
let t2 =
|
|
2945
|
-
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t2 ? { displayImageUri: t2 } : {}, inStock: e4.inStock, visible: e4.visible ?? void 0, mediaIds:
|
|
3196
|
+
let t2 = Jo(e4.displayImage) ?? void 0;
|
|
3197
|
+
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t2 ? { displayImageUri: t2 } : {}, inStock: e4.inStock, visible: e4.visible ?? void 0, mediaIds: Zo(e4.media) };
|
|
2946
3198
|
}) }));
|
|
2947
3199
|
}
|
|
2948
|
-
var
|
|
3200
|
+
var Zo = (e2) => {
|
|
2949
3201
|
let t2 = (e2?.items ?? []).map((e3) => e3.mediaId);
|
|
2950
3202
|
return t2.length > 0 ? t2 : void 0;
|
|
2951
3203
|
};
|
|
2952
|
-
function
|
|
3204
|
+
function Qo(e2) {
|
|
2953
3205
|
let t2 = e2.map((e3) => {
|
|
2954
|
-
let t3 = e3._id, n2 = e3.modifierRenderType ===
|
|
3206
|
+
let t3 = e3._id, n2 = e3.modifierRenderType === wa.FREE_TEXT;
|
|
2955
3207
|
return [t3, { id: t3, key: e3.key, name: e3.name ?? void 0, mandatory: e3.mandatory !== false, modifierRenderType: e3.modifierRenderType, freeTextSettings: n2 ? e3.freeTextSettings : void 0, choices: n2 ? void 0 : (e3.choicesSettings?.choices ?? []).map((e4) => {
|
|
2956
|
-
let t4 =
|
|
2957
|
-
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds:
|
|
3208
|
+
let t4 = Jo(e4.displayImage) ?? void 0;
|
|
3209
|
+
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: Zo(e4.media) };
|
|
2958
3210
|
}) }];
|
|
2959
3211
|
});
|
|
2960
3212
|
return Object.fromEntries(t2);
|
|
2961
3213
|
}
|
|
2962
|
-
function
|
|
2963
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3214
|
+
function $o(e2) {
|
|
3215
|
+
return e2.filter((e3) => e3.visible !== false).map(es);
|
|
2964
3216
|
}
|
|
2965
|
-
var
|
|
3217
|
+
var es = (e2) => {
|
|
2966
3218
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
2967
3219
|
let t3 = e3.optionChoiceIds;
|
|
2968
3220
|
return [t3?.optionId, t3?.choiceId];
|
|
2969
3221
|
}));
|
|
2970
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
3222
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: ns(e2), subscriptionPrices: rs(e2) };
|
|
2971
3223
|
};
|
|
2972
|
-
function
|
|
3224
|
+
function ts(e2) {
|
|
2973
3225
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
2974
3226
|
}
|
|
2975
|
-
var
|
|
3227
|
+
var ns = (e2) => {
|
|
2976
3228
|
let t2 = e2.price;
|
|
2977
|
-
return { actualPrice:
|
|
3229
|
+
return { actualPrice: xs(t2?.actualPrice), compareAtPrice: X(t2?.compareAtPrice), priceAfterDiscount: X(t2?.priceAfterDiscount), pricePerUnit: ts(e2.physicalProperties?.pricePerUnit) };
|
|
2978
3230
|
};
|
|
2979
|
-
var
|
|
2980
|
-
var
|
|
2981
|
-
var
|
|
2982
|
-
function
|
|
2983
|
-
let t2 =
|
|
2984
|
-
return { id: e2._id, slug: e2.slug ?? void 0, url: e2.url ? { href: e2.url } : void 0, name: e2.name, description: c2, media:
|
|
3231
|
+
var rs = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: xs(e3.price) }));
|
|
3232
|
+
var is = { nodes: [] };
|
|
3233
|
+
var as = `@stores/product-groups`;
|
|
3234
|
+
function os(e2) {
|
|
3235
|
+
let t2 = Xo(e2.options ?? []), n2 = Qo(e2.modifiers ?? []), r2 = us(e2.subscriptionDetails?.subscriptions ?? []), i2 = $o(e2.variantsInfo?.variants ?? []), a2 = { subscriptions: r2, allowOneTimePurchases: e2.subscriptionDetails?.allowOneTimePurchases ?? false }, o2 = e2.additionalRibbons ?? [], s2 = { primary: e2.ribbon?.name ?? void 0, additional: o2.map((e3) => e3.name ?? void 0).filter((e3) => !!e3) }, c2 = e2.description ? ds(e2.description) : is, l2 = e2.discountInfo?.discountRuleNames, u2 = cs(e2);
|
|
3236
|
+
return { id: e2._id, slug: e2.slug ?? void 0, url: e2.url ? { href: e2.url } : void 0, name: e2.name, description: c2, media: bs(e2), mainMedia: ys(e2.media?.main), ribbons: s2, breadcrumbs: fs(e2), mainCategoryId: e2.mainCategoryId ?? void 0, categories: ps(e2), infoSections: ss(e2), currency: e2.currency, options: t2, modifiers: n2, variants: i2, minPriceVariant: _s(e2), priceRange: vs(e2), subscriptionDetails: a2, inventory: { availabilityStatus: e2.inventory?.availabilityStatus, preorderAvailability: e2.inventory?.preorderAvailability }, discountRuleNames: l2, productGroupId: u2 };
|
|
2985
3237
|
}
|
|
2986
|
-
function
|
|
2987
|
-
return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ?
|
|
3238
|
+
function ss(e2) {
|
|
3239
|
+
return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? ds(e3.description) : void 0 }));
|
|
2988
3240
|
}
|
|
2989
|
-
function
|
|
2990
|
-
let t2 = e2.extendedFields?.namespaces?.[
|
|
3241
|
+
function cs(e2) {
|
|
3242
|
+
let t2 = e2.extendedFields?.namespaces?.[as]?.productGroupId;
|
|
2991
3243
|
return typeof t2 == `string` ? t2 : void 0;
|
|
2992
3244
|
}
|
|
2993
|
-
function
|
|
3245
|
+
function ls(e2) {
|
|
2994
3246
|
return e2 === `WEEK` || e2 === `MONTH` || e2 === `YEAR` ? e2 : void 0;
|
|
2995
3247
|
}
|
|
2996
|
-
function
|
|
2997
|
-
return e2.filter((e3) => e3.visible !== false).map((e3) => ({ id: e3._id, name: e3.title, description: e3.description ?? void 0, frequency:
|
|
3248
|
+
function us(e2) {
|
|
3249
|
+
return e2.filter((e3) => e3.visible !== false).map((e3) => ({ id: e3._id, name: e3.title, description: e3.description ?? void 0, frequency: ls(e3.frequency), interval: e3.interval, billingCycles: e3.billingCycles ?? void 0 }));
|
|
2998
3250
|
}
|
|
2999
|
-
function
|
|
3251
|
+
function ds(e2) {
|
|
3000
3252
|
return { ...e2, nodes: e2.nodes ?? [] };
|
|
3001
3253
|
}
|
|
3002
|
-
function
|
|
3254
|
+
function fs(e2) {
|
|
3003
3255
|
return (e2.breadcrumbsInfo?.breadcrumbs ?? []).map((e3) => ({ id: e3.categoryId, name: e3.categoryName, slug: e3.categorySlug }));
|
|
3004
3256
|
}
|
|
3005
|
-
function
|
|
3257
|
+
function ps(e2) {
|
|
3006
3258
|
return (e2.directCategoriesInfo?.categories ?? []).flatMap((e3) => e3._id ? [{ id: e3._id }] : []);
|
|
3007
3259
|
}
|
|
3008
|
-
function
|
|
3260
|
+
function ms(e2) {
|
|
3009
3261
|
return { ...e2.displayName ? { title: e2.displayName } : {}, ...e2.altText ? { alt: e2.altText } : {} };
|
|
3010
3262
|
}
|
|
3011
|
-
function
|
|
3263
|
+
function hs(e2, t2) {
|
|
3012
3264
|
let n2 = e2.image ?? e2.url;
|
|
3013
3265
|
if (!n2) return;
|
|
3014
|
-
let r2 =
|
|
3015
|
-
return { id:
|
|
3266
|
+
let r2 = Yo(e2.image), { title: i2, alt: a2 } = ms(e2);
|
|
3267
|
+
return { id: Jo(e2.image) ?? e2._id ?? t2, media: { type: `image`, src: n2, ...r2 ? { width: r2.width, height: r2.height } : {}, ...i2 ? { title: i2 } : {}, ...a2 ? { parameters: { alt: a2 } } : {} } };
|
|
3016
3268
|
}
|
|
3017
|
-
function
|
|
3018
|
-
let n2 =
|
|
3269
|
+
function gs(e2, t2) {
|
|
3270
|
+
let n2 = qo(e2.video), r2 = n2?.url ?? e2.url;
|
|
3019
3271
|
if (!r2) return;
|
|
3020
|
-
let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } =
|
|
3272
|
+
let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = ms(e2);
|
|
3021
3273
|
return { id: n2?.id ?? e2._id ?? t2, media: { type: `video`, src: r2, ...a2 === void 0 ? {} : { width: a2 }, ...o2 === void 0 ? {} : { height: o2 }, ...s2 ? { title: s2 } : {}, ...c2 || i2 ? { parameters: { ...c2 ? { alt: c2 } : {}, ...i2 ? { thumbnail: i2 } : {} } } : {} } };
|
|
3022
3274
|
}
|
|
3023
|
-
function
|
|
3275
|
+
function _s(e2) {
|
|
3024
3276
|
let t2 = e2.variantSummary?.minPriceVariant;
|
|
3025
|
-
return t2 ?
|
|
3277
|
+
return t2 ? $o([t2])[0] : void 0;
|
|
3026
3278
|
}
|
|
3027
|
-
function
|
|
3279
|
+
function vs(e2) {
|
|
3028
3280
|
return { minActualPrice: X(e2.actualPriceRange?.minValue), maxActualPrice: X(e2.actualPriceRange?.maxValue), minCompareAtPrice: X(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: X(e2.compareAtPriceRange?.maxValue) };
|
|
3029
3281
|
}
|
|
3030
|
-
function
|
|
3282
|
+
function ys(e2) {
|
|
3031
3283
|
if (!e2) return;
|
|
3032
|
-
let { title: t2, alt: n2 } =
|
|
3284
|
+
let { title: t2, alt: n2 } = ms(e2);
|
|
3033
3285
|
if (e2.mediaType === `VIDEO`) {
|
|
3034
|
-
let r3 =
|
|
3286
|
+
let r3 = qo(e2.video)?.poster;
|
|
3035
3287
|
return r3 ? { ...r3, name: t2, alt: n2 } : void 0;
|
|
3036
3288
|
}
|
|
3037
3289
|
let r2 = e2.image ?? e2.url;
|
|
3038
3290
|
if (!r2) return;
|
|
3039
|
-
let i2 =
|
|
3040
|
-
return { uri:
|
|
3291
|
+
let i2 = Yo(e2.image);
|
|
3292
|
+
return { uri: Jo(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
|
|
3041
3293
|
}
|
|
3042
|
-
function
|
|
3294
|
+
function bs(e2) {
|
|
3043
3295
|
return (e2.media?.itemsInfo?.items ?? (e2.media?.main ? [e2.media.main] : [])).flatMap((e3, t2) => {
|
|
3044
|
-
let n2 = e3.mediaType === `VIDEO` ?
|
|
3296
|
+
let n2 = e3.mediaType === `VIDEO` ? gs(e3, String(t2)) : hs(e3, String(t2));
|
|
3045
3297
|
return n2 ? [n2] : [];
|
|
3046
3298
|
});
|
|
3047
3299
|
}
|
|
3048
|
-
var
|
|
3049
|
-
var X = (e2) => e2?.amount == null ? void 0 :
|
|
3300
|
+
var xs = (e2) => Number.parseFloat(e2?.amount);
|
|
3301
|
+
var X = (e2) => e2?.amount == null ? void 0 : xs(e2);
|
|
3050
3302
|
var Z = function(e2) {
|
|
3051
3303
|
return e2.PRICE = `PRICE`, e2.OPTIONS = `OPTIONS`, e2.MODIFIERS = `MODIFIERS`, e2;
|
|
3052
3304
|
}({});
|
|
3053
|
-
var
|
|
3305
|
+
var Ss = `allCategoriesInfo.categories`;
|
|
3054
3306
|
var Q = { minPrice: `min_price`, maxPrice: `max_price`, optionsWithChoice: `options_with_choice`, modifiersWithChoice: `modifiers_with_choice`, options: `options`, modifiers: `modifiers` };
|
|
3055
3307
|
var $ = { minPrice: `actualPriceRange.minValue.amount`, maxPrice: `actualPriceRange.maxValue.amount`, option: `options.id`, optionChoice: `options.choicesSettings.choices.choiceId`, modifier: `modifiers.id`, modifierChoice: `modifiers.choicesSettings.choices.choiceId` };
|
|
3056
|
-
var
|
|
3057
|
-
var
|
|
3308
|
+
var Cs = { options: 1e3, modifiers: 1e3, choices: 2e4 };
|
|
3309
|
+
var ws = ({ priceMin: e2, priceMax: t2 }) => {
|
|
3058
3310
|
let n2 = [];
|
|
3059
3311
|
return e2 !== void 0 && n2.push({ [$.minPrice]: { $gte: e2 } }), t2 !== void 0 && n2.push({ [$.maxPrice]: { $lte: t2 } }), n2;
|
|
3060
3312
|
};
|
|
3061
|
-
var
|
|
3313
|
+
var Ts = (e2, t2) => {
|
|
3062
3314
|
let n2 = new Map(e2.values.map((e3) => [e3.id, e3]));
|
|
3063
3315
|
return t2.flatMap((e3) => {
|
|
3064
3316
|
let t3 = n2.get(e3);
|
|
3065
3317
|
return t3 ? [t3.id, ...t3.childIds ?? []] : [e3];
|
|
3066
3318
|
});
|
|
3067
3319
|
};
|
|
3068
|
-
var
|
|
3069
|
-
var
|
|
3070
|
-
let n2 = new Map(e2.filter((e3) => e3.type ===
|
|
3320
|
+
var Es = (e2, t2) => ({ [e2.customizationType === Zi.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: Ts(e2, t2) } });
|
|
3321
|
+
var Ds = (e2, t2) => {
|
|
3322
|
+
let n2 = new Map(e2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
|
|
3071
3323
|
return Object.entries(t2.customizationIdToChoiceIds ?? {}).flatMap(([e3, t3]) => {
|
|
3072
3324
|
let r2 = n2.get(e3);
|
|
3073
|
-
return !r2 || t3.length === 0 ? [] : [
|
|
3325
|
+
return !r2 || t3.length === 0 ? [] : [Es(r2, t3)];
|
|
3074
3326
|
});
|
|
3075
3327
|
};
|
|
3076
|
-
function
|
|
3077
|
-
let r2 = [{ [
|
|
3328
|
+
function Os(e2, t2, n2) {
|
|
3329
|
+
let r2 = [{ [Ss]: { $matchItems: [{ id: e2 }] } }, ...ws(n2), ...Ds(t2, n2)];
|
|
3078
3330
|
return r2.length === 1 ? r2[0] : { $and: r2 };
|
|
3079
3331
|
}
|
|
3080
|
-
function
|
|
3081
|
-
let t2 =
|
|
3332
|
+
function ks(e2) {
|
|
3333
|
+
let t2 = Io(e2);
|
|
3082
3334
|
if (t2?.fieldName) return [{ fieldName: t2.fieldName, order: t2.order }];
|
|
3083
3335
|
}
|
|
3084
|
-
var
|
|
3085
|
-
|
|
3086
|
-
let
|
|
3087
|
-
return
|
|
3336
|
+
var As = [q.URL, q.CURRENCY, q.MEDIA_ITEMS_INFO, q.MIN_PRICE_VARIANT, q.DISCOUNT_INFO, q.PRODUCT_CHOICES_MEDIA_REFERENCES, q.BREADCRUMBS_INFO];
|
|
3337
|
+
async function js(e2) {
|
|
3338
|
+
let t2 = (await Ua({ fields: As }).eq(`_id`, e2).limit(1).find()).items[0];
|
|
3339
|
+
return t2 ? os(t2) : null;
|
|
3340
|
+
}
|
|
3341
|
+
var Ms = async (e2, t2) => {
|
|
3342
|
+
let n2 = await Va({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: As });
|
|
3343
|
+
return { products: (n2.products ?? []).map(os), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
|
|
3088
3344
|
};
|
|
3089
|
-
async function
|
|
3090
|
-
if (a2 !== void 0) return
|
|
3091
|
-
let o2 =
|
|
3092
|
-
return { products: (l2.products ?? []).map(
|
|
3345
|
+
async function Ns({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
|
|
3346
|
+
if (a2 !== void 0) return Ms(a2, i2);
|
|
3347
|
+
let o2 = Os(e2, t2, n2), s2 = ks(r2), c2 = { filter: o2, cursorPaging: { limit: i2 }, ...s2 && { sort: s2 } }, [l2, u2] = await Promise.all([Va(c2, { fields: As }), Ha({ filter: o2 })]);
|
|
3348
|
+
return { products: (l2.products ?? []).map(os), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
|
|
3093
3349
|
}
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3350
|
+
function Ps(e2) {
|
|
3351
|
+
if (e2 === `IN_STOCK` || e2 === `OUT_OF_STOCK` || e2 === `PARTIALLY_OUT_OF_STOCK`) return e2;
|
|
3352
|
+
}
|
|
3353
|
+
function Fs(e2) {
|
|
3354
|
+
if (!(!e2 || e2.customizationRenderType !== `TEXT_CHOICES` && e2.customizationRenderType !== `SWATCH_CHOICES`)) {
|
|
3355
|
+
if (e2.customizationType === `PRODUCT_OPTION`) return `PRODUCT_OPTION`;
|
|
3356
|
+
if (e2.customizationType === `MODIFIER`) return `MODIFIER`;
|
|
3357
|
+
}
|
|
3358
|
+
}
|
|
3359
|
+
function Is(e2) {
|
|
3360
|
+
return !e2._id || !e2.key ? null : { choiceId: e2._id, key: e2.key, name: e2.name, colorCode: e2.colorCode };
|
|
3361
|
+
}
|
|
3362
|
+
function Ls(e2) {
|
|
3363
|
+
if (e2.status !== `ACTIVE` || !e2.productId || !e2.slug || !e2.choice) return null;
|
|
3364
|
+
let t2 = Is(e2.choice);
|
|
3365
|
+
return t2 ? { productId: e2.productId, choice: t2, slug: e2.slug, inventoryAvailabilityStatus: Ps(e2.inventoryAvailabilityStatus) } : null;
|
|
3366
|
+
}
|
|
3367
|
+
function Rs(e2) {
|
|
3368
|
+
let t2 = e2.groupingCustomizationId, n2 = Fs(e2.groupingCustomization);
|
|
3369
|
+
if (!t2 || !n2) return;
|
|
3370
|
+
let r2 = (e2.members ?? []).map((e3) => Ls(e3)).filter((e3) => e3 !== null);
|
|
3371
|
+
if (r2.length !== 0) return { groupingCustomizationId: t2, customizationType: n2, members: r2 };
|
|
3372
|
+
}
|
|
3373
|
+
function zs(e2) {
|
|
3374
|
+
let t2 = /* @__PURE__ */ new Map();
|
|
3375
|
+
for (let n2 of e2) {
|
|
3376
|
+
let e3 = n2._id;
|
|
3377
|
+
if (!e3) continue;
|
|
3378
|
+
let r2 = Rs(n2);
|
|
3379
|
+
r2 && t2.set(e3, r2);
|
|
3380
|
+
}
|
|
3381
|
+
return t2;
|
|
3382
|
+
}
|
|
3383
|
+
async function Bs(e2) {
|
|
3384
|
+
if (e2.length === 0) return /* @__PURE__ */ new Map();
|
|
3385
|
+
try {
|
|
3386
|
+
return zs((await $a({ fields: [qa.GROUPING_CUSTOMIZATION] }).in(`_id`, e2).limit(100).find()).items);
|
|
3387
|
+
} catch {
|
|
3388
|
+
return /* @__PURE__ */ new Map();
|
|
3389
|
+
}
|
|
3390
|
+
}
|
|
3391
|
+
function Vs(e2, t2) {
|
|
3392
|
+
let n2 = /* @__PURE__ */ new Set();
|
|
3393
|
+
for (let r2 of e2) {
|
|
3394
|
+
let e3 = r2.productGroupId;
|
|
3395
|
+
e3 && !t2.has(e3) && n2.add(e3);
|
|
3396
|
+
}
|
|
3397
|
+
return n2;
|
|
3398
|
+
}
|
|
3399
|
+
async function Hs(e2, t2) {
|
|
3400
|
+
let n2 = Vs(e2, t2);
|
|
3401
|
+
return n2.size === 0 ? /* @__PURE__ */ new Map() : Bs([...n2]);
|
|
3402
|
+
}
|
|
3403
|
+
var Us = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
|
|
3404
|
+
function Ws(e2) {
|
|
3405
|
+
if (vi(e2)) return ``;
|
|
3406
|
+
let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => Us(e3, t3)).toSorted().join(`;`), n2 = [];
|
|
3098
3407
|
return e2.priceMin !== void 0 && n2.push(`min:${e2.priceMin}`), e2.priceMax !== void 0 && n2.push(`max:${e2.priceMax}`), t2 && n2.push(t2), n2.join(`&`);
|
|
3099
3408
|
}
|
|
3100
|
-
function
|
|
3101
|
-
let
|
|
3102
|
-
await
|
|
3103
|
-
|
|
3104
|
-
|
|
3409
|
+
function Gs(e2, t2, a2, o2, s2, c2) {
|
|
3410
|
+
let l2 = Ws(a2), u2 = `${l2}:${o2}:${s2}`, d2 = l2 === c2.filterSelectionKey && o2 === c2.sortType && s2 === c2.productsPerPage ? { pages: [c2.page], pageParams: [void 0] } : void 0, f2 = (0, import_react.useRef)(new Map(Object.entries(c2.productGroupByGroupId))), { data: p2, isFetching: m2, isError: h2, hasNextPage: ee2, fetchNextPage: g2 } = ai({ queryKey: [`category-products`, e2, l2, o2, s2], queryFn: async ({ pageParam: n2 }) => {
|
|
3411
|
+
let r2 = await Ns({ categoryId: e2, filters: t2, filterSelection: a2, sortType: o2, productsPerPage: s2, cursor: n2 });
|
|
3412
|
+
return (await Hs(r2.products, f2.current)).forEach((e3, t3) => f2.current.set(t3, e3)), r2;
|
|
3413
|
+
}, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: d2, staleTime: 1 / 0, placeholderData: $n, retry: false }), _2 = (0, import_react.useCallback)(async () => {
|
|
3414
|
+
await g2({ cancelRefetch: false });
|
|
3415
|
+
}, [g2]);
|
|
3416
|
+
return { products: (0, import_react.useMemo)(() => (p2?.pages ?? []).flatMap((e3) => e3.products), [p2]), productGroupByGroupId: f2.current, productListKey: u2, productCount: p2?.pages[0]?.productCount ?? 0, isLoadingProducts: m2, hasProductsError: h2, hasMoreProducts: ee2, loadMoreProducts: _2 };
|
|
3417
|
+
}
|
|
3418
|
+
function Ks(e2, t2) {
|
|
3419
|
+
let n2 = new Set(e2.map((e3) => e3.id));
|
|
3420
|
+
return [...new Set(t2.values())].filter((e3) => !n2.has(e3));
|
|
3421
|
+
}
|
|
3422
|
+
function qs(e2, t2, n2) {
|
|
3423
|
+
let r2 = new Map([...e2, ...t2].map((e3) => [e3.id, e3])), i2 = /* @__PURE__ */ new Map();
|
|
3424
|
+
return n2.forEach((e3, t3) => {
|
|
3425
|
+
let n3 = r2.get(e3);
|
|
3426
|
+
n3 && i2.set(t3, n3);
|
|
3427
|
+
}), i2;
|
|
3428
|
+
}
|
|
3429
|
+
function Js(e2) {
|
|
3430
|
+
return ri({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, e3], queryFn: () => js(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
|
|
3431
|
+
}
|
|
3432
|
+
function Ys(e2, t2) {
|
|
3433
|
+
return qs(e2, Js((0, import_react.useMemo)(() => Ks(e2, t2), [e2, t2])), t2);
|
|
3434
|
+
}
|
|
3435
|
+
function Xs({ products: e2, productListKey: t2 }) {
|
|
3436
|
+
let [i2, o2] = (0, import_react.useState)(() => /* @__PURE__ */ new Map()), [s2, c2] = (0, import_react.useState)(t2);
|
|
3437
|
+
s2 !== t2 && (c2(t2), o2(/* @__PURE__ */ new Map()));
|
|
3438
|
+
let l2 = Ys(e2, i2);
|
|
3439
|
+
return { displayedProducts: (0, import_react.useMemo)(() => e2.map((e3, t3) => l2.get(t3) ?? e3), [e2, l2]), selectProductGroupMember: (0, import_react.useCallback)((t3, n2) => {
|
|
3440
|
+
let r2 = e2[t3];
|
|
3441
|
+
r2 && o2((e3) => Zs(e3, t3, n2, r2.id));
|
|
3442
|
+
}, [e2]) };
|
|
3443
|
+
}
|
|
3444
|
+
function Zs(e2, t2, n2, r2) {
|
|
3445
|
+
let i2 = new Map(e2);
|
|
3446
|
+
return n2 === r2 ? i2.delete(t2) : i2.set(t2, n2), i2;
|
|
3447
|
+
}
|
|
3448
|
+
function Qs({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
|
|
3449
|
+
let o2 = (0, import_react.useRef)([]);
|
|
3450
|
+
return (0, import_react.useMemo)(() => {
|
|
3451
|
+
if (t2.size === 0) return e2.map((e3) => ({ product: e3, defaultLocationId: n2 }));
|
|
3452
|
+
let r2 = $s({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
|
|
3453
|
+
return o2.current = r2, r2;
|
|
3454
|
+
}, [e2, t2, n2, a2]);
|
|
3455
|
+
}
|
|
3456
|
+
function $s({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
|
|
3457
|
+
return e2.map((e3, a2) => {
|
|
3458
|
+
let o2 = t2[a2];
|
|
3459
|
+
return o2?.product === e3 ? o2 : ec({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
|
|
3460
|
+
});
|
|
3105
3461
|
}
|
|
3106
|
-
function
|
|
3107
|
-
let
|
|
3108
|
-
return {
|
|
3462
|
+
function ec({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
|
|
3463
|
+
let a2 = tc({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
|
|
3464
|
+
return { product: e2, defaultLocationId: r2, ...a2 && { productGroupData: a2 } };
|
|
3109
3465
|
}
|
|
3110
|
-
|
|
3111
|
-
|
|
3466
|
+
function tc({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
|
|
3467
|
+
if (e2) return { productGroup: e2, selectProductGroupMember: (r2) => {
|
|
3468
|
+
e2.members.some((e3) => e3.productId === r2) && n2(t2, r2);
|
|
3469
|
+
} };
|
|
3470
|
+
}
|
|
3471
|
+
function nc(e2, t2) {
|
|
3472
|
+
let { category: n2, filters: i2, currency: a2, promotions: o2, initialProductList: s2, defaultLocationId: c2 } = e2, l2 = No(i2), u2 = Ho(), { products: d2, productGroupByGroupId: f2, productListKey: p2, ...m2 } = Gs(n2.id, i2, l2.filterSelection, u2.selectedSortType, t2, s2), h2 = Xs({ products: d2, productListKey: p2 });
|
|
3473
|
+
return { filters: i2, currency: a2, productItems: Qs({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: (0, import_react.useMemo)(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
|
|
3474
|
+
}
|
|
3475
|
+
var rc = oi(`@wix/site-service-warmup-data`);
|
|
3476
|
+
async function ic(e2, t2, n2) {
|
|
3112
3477
|
let r2 = typeof window > `u`;
|
|
3113
3478
|
if (!r2 && e2) try {
|
|
3114
3479
|
let n3 = await e2.get(t2);
|
|
@@ -3122,108 +3487,108 @@ async function gs(e2, t2, n2) {
|
|
|
3122
3487
|
}
|
|
3123
3488
|
return i2;
|
|
3124
3489
|
}
|
|
3125
|
-
function
|
|
3490
|
+
function ac(e2, t2) {
|
|
3126
3491
|
let n2 = (0, import_services_manager_react.useGetService)(), [r2] = (0, import_react.useState)(() => {
|
|
3127
3492
|
let r3;
|
|
3128
3493
|
try {
|
|
3129
|
-
r3 = n2(
|
|
3494
|
+
r3 = n2(rc);
|
|
3130
3495
|
} catch {
|
|
3131
3496
|
r3 = null;
|
|
3132
3497
|
}
|
|
3133
|
-
return
|
|
3498
|
+
return ic(r3, e2, t2);
|
|
3134
3499
|
});
|
|
3135
3500
|
return r2;
|
|
3136
3501
|
}
|
|
3137
|
-
async function
|
|
3138
|
-
return (await
|
|
3502
|
+
async function oc() {
|
|
3503
|
+
return (await co().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
|
|
3139
3504
|
}
|
|
3140
|
-
function
|
|
3141
|
-
return
|
|
3505
|
+
function sc(e2) {
|
|
3506
|
+
return k(Object.assign(e2, { domainToMappings: { "*.dev.wix-code.com": [{ srcPath: `/_api/categories`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }], "manage._base_domain_": [{ srcPath: `/_api/categories`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/categories-service`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/categories-service`, destPath: `` }], _: [{ srcPath: `/categories/v1/bulk/categories`, destPath: `/v1/bulk/categories` }, { srcPath: `/categories/v1/categories`, destPath: `/v1/categories` }] } }));
|
|
3142
3507
|
}
|
|
3143
|
-
var
|
|
3144
|
-
function
|
|
3508
|
+
var cc = `@wix/auto_sdk_categories_categories`;
|
|
3509
|
+
function lc(e2) {
|
|
3145
3510
|
function t2({ host: t3 }) {
|
|
3146
|
-
return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategory`, packageName:
|
|
3511
|
+
return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategory`, packageName: cc, migrationOptions: { optInTransformResponse: true }, url: sc({ protoPath: `/v1/categories/{categoryId}`, data: e2, host: t3 }), params: O(e2), transformResponse: (e3) => T(e3, [{ transformFn: w, paths: [{ path: `category.createdDate` }, { path: `category.updatedDate` }, { path: `category.image.urlExpirationDate` }, { path: `category.richContentDescription.metadata.createdTimestamp` }, { path: `category.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: j, paths: [{ path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `category.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `category.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `category.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `category.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `category.richContentDescription.nodes.imageData.image.duration` }, { path: `category.richContentDescription.nodes.imageData.crop.x` }, { path: `category.richContentDescription.nodes.imageData.crop.y` }, { path: `category.richContentDescription.nodes.imageData.crop.width` }, { path: `category.richContentDescription.nodes.imageData.crop.height` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `category.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `category.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `category.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `category.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `category.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `category.richContentDescription.nodes.videoData.video.duration` }, { path: `category.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `category.richContentDescription.nodes.audioData.audio.duration` }, { path: `category.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `category.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `category.richContentDescription.nodes.shapeData.shape.duration` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `category.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `category.richContentDescription.nodes.tocData.fontSize` }, { path: `category.richContentDescription.nodes.tocData.itemSpacing` }, { path: `category.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }]) };
|
|
3147
3512
|
}
|
|
3148
3513
|
return t2;
|
|
3149
3514
|
}
|
|
3150
|
-
var
|
|
3151
|
-
async function
|
|
3152
|
-
let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 =
|
|
3515
|
+
var uc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(uc || {});
|
|
3516
|
+
async function dc(e2, t2, n2) {
|
|
3517
|
+
let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = lc(S({ categoryId: e2, treeReference: t2, fields: n2?.fields }, []));
|
|
3153
3518
|
i2?.onSiteCall?.();
|
|
3154
3519
|
try {
|
|
3155
3520
|
let e3 = await r2.request(a2);
|
|
3156
|
-
return i2?.onSuccess?.(e3),
|
|
3521
|
+
return i2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`])?.category;
|
|
3157
3522
|
} catch (e3) {
|
|
3158
|
-
let t3 =
|
|
3523
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`categoryId`, `treeReference`, `options`]);
|
|
3159
3524
|
throw i2?.onError?.(e3), t3;
|
|
3160
3525
|
}
|
|
3161
3526
|
}
|
|
3162
|
-
({ ...
|
|
3163
|
-
function
|
|
3164
|
-
return (t2, n2, r2) =>
|
|
3165
|
-
}
|
|
3166
|
-
var
|
|
3167
|
-
var
|
|
3168
|
-
var
|
|
3169
|
-
var
|
|
3170
|
-
var
|
|
3171
|
-
var
|
|
3172
|
-
var
|
|
3173
|
-
var
|
|
3174
|
-
|
|
3175
|
-
function
|
|
3527
|
+
({ ...B() }, { ...ya() });
|
|
3528
|
+
function fc(e2) {
|
|
3529
|
+
return (t2, n2, r2) => dc(t2, n2, r2, { httpClient: e2 });
|
|
3530
|
+
}
|
|
3531
|
+
var pc = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3532
|
+
var mc = y(`wix.categories.v1.category_created`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `entity.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
|
|
3533
|
+
var hc = y(`wix.categories.v1.category_deleted`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `undefined.createdDate` }, { path: `undefined.updatedDate` }, { path: `undefined.richContentDescription.metadata.createdTimestamp` }, { path: `undefined.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: V, paths: [{ path: `undefined.image` }] }, { transformFn: j, paths: [{ path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `undefined.richContentDescription.nodes.imageData.image.duration` }, { path: `undefined.richContentDescription.nodes.imageData.crop.x` }, { path: `undefined.richContentDescription.nodes.imageData.crop.y` }, { path: `undefined.richContentDescription.nodes.imageData.crop.width` }, { path: `undefined.richContentDescription.nodes.imageData.crop.height` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `undefined.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `undefined.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `undefined.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `undefined.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `undefined.richContentDescription.nodes.videoData.video.duration` }, { path: `undefined.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `undefined.richContentDescription.nodes.audioData.audio.duration` }, { path: `undefined.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.shapeData.shape.duration` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `undefined.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `undefined.richContentDescription.nodes.tocData.fontSize` }, { path: `undefined.richContentDescription.nodes.tocData.itemSpacing` }, { path: `undefined.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
|
|
3534
|
+
var gc = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3535
|
+
var _c = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3536
|
+
var vc = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3537
|
+
var yc = y(`wix.categories.v1.category_updated`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.richContentDescription.metadata.createdTimestamp` }, { path: `entity.richContentDescription.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.richContentDescription.metadata.createdTimestamp` }, { path: `modifiedFields.richContentDescription.metadata.updatedTimestamp` }] }, { transformFn: V, paths: [{ path: `entity.image` }, { path: `modifiedFields.image` }] }, { transformFn: j, paths: [{ path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `entity.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `entity.richContentDescription.nodes.imageData.image.duration` }, { path: `entity.richContentDescription.nodes.imageData.crop.x` }, { path: `entity.richContentDescription.nodes.imageData.crop.y` }, { path: `entity.richContentDescription.nodes.imageData.crop.width` }, { path: `entity.richContentDescription.nodes.imageData.crop.height` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `entity.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `entity.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `entity.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `entity.richContentDescription.nodes.videoData.video.duration` }, { path: `entity.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `entity.richContentDescription.nodes.audioData.audio.duration` }, { path: `entity.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.shapeData.shape.duration` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.richContentDescription.nodes.tocData.fontSize` }, { path: `entity.richContentDescription.nodes.tocData.itemSpacing` }, { path: `entity.richContentDescription.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.richContentDescription.nodes.imageData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.x` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.y` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.width` }, { path: `modifiedFields.richContentDescription.nodes.imageData.crop.height` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.richContentDescription.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.video.duration` }, { path: `modifiedFields.richContentDescription.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.audio.duration` }, { path: `modifiedFields.richContentDescription.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.shapeData.shape.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.richContentDescription.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.richContentDescription.nodes.tocData.fontSize` }, { path: `modifiedFields.richContentDescription.nodes.tocData.itemSpacing` }, { path: `modifiedFields.richContentDescription.nodes.smartBlockCellData.shape.duration` }] }])))();
|
|
3538
|
+
var bc = D(fc);
|
|
3539
|
+
A(pc), A(mc), A(hc), A(gc), A(_c), A(vc), A(yc);
|
|
3540
|
+
function xc(e2) {
|
|
3176
3541
|
if (!e2) return null;
|
|
3177
3542
|
let t2 = e2.match(/image:\/\/v1\/([^/#]+)/);
|
|
3178
3543
|
return t2?.[1] ? t2[1] : e2.match(/\/media\/([^/]+)/)?.[1] ?? null;
|
|
3179
3544
|
}
|
|
3180
|
-
function
|
|
3545
|
+
function Sc(e2) {
|
|
3181
3546
|
return `https://static.wixstatic.com/media/${e2}`;
|
|
3182
3547
|
}
|
|
3183
|
-
function
|
|
3548
|
+
function Cc(e2) {
|
|
3184
3549
|
if (!e2) return null;
|
|
3185
3550
|
let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
|
|
3186
3551
|
return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
|
|
3187
3552
|
}
|
|
3188
|
-
var
|
|
3189
|
-
var
|
|
3190
|
-
var
|
|
3553
|
+
var wc = (e2) => `/category/${e2}`;
|
|
3554
|
+
var Tc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
|
|
3555
|
+
var Ec = (e2) => {
|
|
3191
3556
|
if (!e2) return;
|
|
3192
|
-
let t2 =
|
|
3193
|
-
return { uri:
|
|
3557
|
+
let t2 = Cc(e2);
|
|
3558
|
+
return { uri: xc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
|
|
3194
3559
|
};
|
|
3195
|
-
var
|
|
3560
|
+
var Dc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
|
|
3196
3561
|
let t2 = e3.categorySlug ?? ``;
|
|
3197
|
-
return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href:
|
|
3562
|
+
return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: wc(t2) };
|
|
3198
3563
|
});
|
|
3199
|
-
var
|
|
3200
|
-
var
|
|
3564
|
+
var Oc = (e2) => ({ type: e2.type, props: e2.props ?? void 0, meta: e2.meta ?? void 0, children: e2.children, custom: e2.custom, disabled: e2.disabled });
|
|
3565
|
+
var kc = (e2) => {
|
|
3201
3566
|
if (e2) return { preventAutoRedirect: e2.preventAutoRedirect, keywords: e2.keywords?.map((e3) => ({ term: e3.term, isMain: e3.isMain, origin: e3.origin ?? void 0 })) };
|
|
3202
3567
|
};
|
|
3203
|
-
var
|
|
3204
|
-
if (e2) return { tags: e2.tags?.map(
|
|
3568
|
+
var Ac = (e2) => {
|
|
3569
|
+
if (e2) return { tags: e2.tags?.map(Oc), settings: kc(e2.settings) };
|
|
3205
3570
|
};
|
|
3206
|
-
function
|
|
3207
|
-
return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData:
|
|
3571
|
+
function jc(e2) {
|
|
3572
|
+
return { id: e2._id ?? ``, name: e2.name ?? ``, slug: e2.slug ?? ``, description: e2.description ?? void 0, itemCounter: e2.itemCounter, parentCategoryId: e2.parentCategory?._id ?? void 0, seoData: Ac(e2.seoData), richContentDescription: e2.richContentDescription ? Tc(e2.richContentDescription) : void 0, image: Ec(e2.image), breadcrumbs: Dc(e2.breadcrumbsInfo?.breadcrumbs ?? []) };
|
|
3208
3573
|
}
|
|
3209
|
-
var
|
|
3210
|
-
var
|
|
3211
|
-
var
|
|
3574
|
+
var Mc = { appNamespace: `@wix/stores`, treeKey: null };
|
|
3575
|
+
var Nc = [uc.BREADCRUMBS_INFO, uc.DESCRIPTION, uc.RICH_CONTENT_DESCRIPTION];
|
|
3576
|
+
var Pc = (e2, t2) => {
|
|
3212
3577
|
if (!e2?._id || e2.visible === false) throw Error(t2);
|
|
3213
|
-
return
|
|
3578
|
+
return jc(e2);
|
|
3214
3579
|
};
|
|
3215
|
-
async function
|
|
3216
|
-
return
|
|
3580
|
+
async function Fc(e2) {
|
|
3581
|
+
return Pc(await bc(e2, Mc, { fields: Nc }), `Category not found for id: ${e2}`);
|
|
3217
3582
|
}
|
|
3218
|
-
var
|
|
3583
|
+
var Ic = (e2, t2, n2) => {
|
|
3219
3584
|
let r2 = [];
|
|
3220
3585
|
for (let i2 of e2.keys()) if (!t2.has(i2)) {
|
|
3221
3586
|
let e3 = n2.find((e4) => e4._id === i2);
|
|
3222
|
-
e3 && r2.push(
|
|
3587
|
+
e3 && r2.push(Kc(e3, 0));
|
|
3223
3588
|
}
|
|
3224
3589
|
return r2;
|
|
3225
3590
|
};
|
|
3226
|
-
var
|
|
3591
|
+
var Lc = (e2) => {
|
|
3227
3592
|
let t2 = /* @__PURE__ */ new Map();
|
|
3228
3593
|
for (let { _id: n2, primaryChoiceIds: r2 } of e2) if (n2) for (let e3 of r2 ?? []) {
|
|
3229
3594
|
let r3 = t2.get(e3) ?? [];
|
|
@@ -3231,8 +3596,8 @@ var Ys = (e2) => {
|
|
|
3231
3596
|
}
|
|
3232
3597
|
return t2;
|
|
3233
3598
|
};
|
|
3234
|
-
var
|
|
3235
|
-
let r2 =
|
|
3599
|
+
var Rc = (e2, t2, n2) => {
|
|
3600
|
+
let r2 = Ic(t2, new Set(e2.map((e3) => e3.id)), n2), i2 = [...e2, ...r2], a2 = new Map(i2.map((e3) => [e3.id, e3])), o2 = new Set([...t2.values()].flat());
|
|
3236
3601
|
return i2.flatMap((e3) => {
|
|
3237
3602
|
if (o2.has(e3.id)) return [];
|
|
3238
3603
|
let n3 = t2.get(e3.id);
|
|
@@ -3243,77 +3608,77 @@ var Xs = (e2, t2, n2) => {
|
|
|
3243
3608
|
return [{ ...e3, count: e3.count + i3, linkedChoiceIds: r3 }];
|
|
3244
3609
|
});
|
|
3245
3610
|
};
|
|
3246
|
-
function
|
|
3247
|
-
return
|
|
3611
|
+
function zc(e2, t2) {
|
|
3612
|
+
return Rc(e2, Lc(t2), t2);
|
|
3248
3613
|
}
|
|
3249
|
-
var
|
|
3614
|
+
var Bc = (e2) => {
|
|
3250
3615
|
let t2 = e2.trim();
|
|
3251
3616
|
if (t2 === ``) return null;
|
|
3252
3617
|
let n2 = Number(t2);
|
|
3253
3618
|
return Number.isFinite(n2) ? n2 : null;
|
|
3254
3619
|
};
|
|
3255
|
-
var
|
|
3620
|
+
var Vc = (e2, t2) => {
|
|
3256
3621
|
let n2 = t2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3, t3) => [e3._id ?? ``, t3])), i2 = (e3) => r2.get(e3.id) ?? 2 ** 53 - 1;
|
|
3257
3622
|
return e2.toSorted((e3, t3) => i2(e3) - i2(t3));
|
|
3258
3623
|
};
|
|
3259
|
-
var
|
|
3260
|
-
var
|
|
3261
|
-
var
|
|
3262
|
-
let r2 =
|
|
3624
|
+
var Hc = (e2, t2, n2) => t2 === U.TEXT_CHOICES ? Wc(e2, (e3) => e3.name) : n2 ? Uc(e2, (e3) => e3.count) : [...e2];
|
|
3625
|
+
var Uc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
|
|
3626
|
+
var Wc = (e2, t2) => e2.toSorted((e3, n2) => {
|
|
3627
|
+
let r2 = Bc(t2(e3)), i2 = Bc(t2(n2));
|
|
3263
3628
|
return r2 !== null && i2 !== null ? r2 - i2 : r2 === null ? i2 === null ? t2(e3).toLowerCase().localeCompare(t2(n2).toLowerCase()) : 1 : -1;
|
|
3264
3629
|
});
|
|
3265
|
-
function
|
|
3630
|
+
function Gc(e2, t2, n2) {
|
|
3266
3631
|
switch (t2.choicesSettings?.sortOrder) {
|
|
3267
|
-
case
|
|
3268
|
-
return
|
|
3269
|
-
case
|
|
3270
|
-
return
|
|
3271
|
-
case
|
|
3272
|
-
return
|
|
3273
|
-
case
|
|
3632
|
+
case Qi.BY_NAME:
|
|
3633
|
+
return Wc(e2, (e3) => e3.name);
|
|
3634
|
+
case Qi.BY_PRODUCT_COUNT:
|
|
3635
|
+
return Uc(e2, (e3) => e3.count);
|
|
3636
|
+
case Qi.MANUAL:
|
|
3637
|
+
return Vc(e2, t2);
|
|
3638
|
+
case Qi.DEFAULT:
|
|
3274
3639
|
default:
|
|
3275
|
-
return
|
|
3640
|
+
return Hc(e2, t2.customizationRenderType, n2);
|
|
3276
3641
|
}
|
|
3277
3642
|
}
|
|
3278
|
-
var
|
|
3279
|
-
function
|
|
3643
|
+
var Kc = (e2, t2) => ({ id: e2._id ?? ``, name: e2.name ?? ``, type: e2.choiceType, values: e2.colorCode === void 0 ? [] : [e2.colorCode], count: t2, linkedChoiceIds: [], displayImage: e2.displayImage });
|
|
3644
|
+
function qc(e2, t2) {
|
|
3280
3645
|
let n2 = e2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3) => [e3._id, e3])), i2 = [...t2].flatMap(([e3, t3]) => {
|
|
3281
3646
|
let n3 = r2.get(e3);
|
|
3282
|
-
return n3 ? [
|
|
3647
|
+
return n3 ? [Kc(n3, t3)] : [];
|
|
3283
3648
|
}), a2 = n2.some((e3) => (e3.primaryChoiceIds?.length ?? 0) > 0);
|
|
3284
|
-
return
|
|
3649
|
+
return Gc(a2 ? zc(i2, n2) : i2, e2, a2);
|
|
3285
3650
|
}
|
|
3286
|
-
var
|
|
3287
|
-
let t2 =
|
|
3651
|
+
var Jc = (e2) => {
|
|
3652
|
+
let t2 = xc(e2);
|
|
3288
3653
|
if (!t2) return;
|
|
3289
|
-
let n2 =
|
|
3290
|
-
return { id: t2, url:
|
|
3654
|
+
let n2 = Cc(e2);
|
|
3655
|
+
return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
|
|
3291
3656
|
};
|
|
3292
|
-
var
|
|
3293
|
-
let t2 = e2.displayImage === void 0 ? void 0 :
|
|
3294
|
-
return { ...
|
|
3657
|
+
var Yc = (e2) => {
|
|
3658
|
+
let t2 = e2.displayImage === void 0 ? void 0 : Jc(e2.displayImage);
|
|
3659
|
+
return { ...Zc(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
|
|
3295
3660
|
};
|
|
3296
|
-
var
|
|
3297
|
-
var
|
|
3298
|
-
var
|
|
3299
|
-
var
|
|
3661
|
+
var Xc = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Yc) });
|
|
3662
|
+
var Zc = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
|
|
3663
|
+
var Qc = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Zc) });
|
|
3664
|
+
var $c = (e2, t2, n2, r2) => {
|
|
3300
3665
|
let i2 = new Map(t2.map((e3) => [e3._id, e3]));
|
|
3301
3666
|
return n2.flatMap((t3) => {
|
|
3302
3667
|
let n3 = i2.get(t3);
|
|
3303
|
-
return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices:
|
|
3668
|
+
return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: qc(n3, r2) }] : [];
|
|
3304
3669
|
});
|
|
3305
3670
|
};
|
|
3306
|
-
var
|
|
3307
|
-
var
|
|
3308
|
-
function
|
|
3671
|
+
var el = (e2) => Wc(e2.filter((e3) => e3.renderType === U.SWATCH_CHOICES).map(Xc), (e3) => e3.name);
|
|
3672
|
+
var tl = (e2) => Wc(e2.filter((e3) => e3.renderType === U.TEXT_CHOICES).map(Qc), (e3) => e3.name);
|
|
3673
|
+
function nl(e2, t2, n2, r2) {
|
|
3309
3674
|
if (n2.length === 0) return [];
|
|
3310
|
-
let i2 =
|
|
3311
|
-
return [...
|
|
3675
|
+
let i2 = $c(e2, t2, n2, r2);
|
|
3676
|
+
return [...el(i2), ...tl(i2)];
|
|
3312
3677
|
}
|
|
3313
|
-
function
|
|
3314
|
-
if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type:
|
|
3678
|
+
function rl(e2, t2) {
|
|
3679
|
+
if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: J.PRICE, name: bo.PRICE, minPrice: e2, maxPrice: t2 };
|
|
3315
3680
|
}
|
|
3316
|
-
var
|
|
3681
|
+
var il = _((e2, t2) => {
|
|
3317
3682
|
function n2(e3, t3, n3) {
|
|
3318
3683
|
var r2 = -1, i2 = e3.length;
|
|
3319
3684
|
t3 < 0 && (t3 = -t3 > i2 ? 0 : i2 + t3), n3 = n3 > i2 ? i2 : n3, n3 < 0 && (n3 += i2), i2 = t3 > n3 ? 0 : n3 - t3 >>> 0, t3 >>>= 0;
|
|
@@ -3322,24 +3687,24 @@ var gc = g((e2, t2) => {
|
|
|
3322
3687
|
}
|
|
3323
3688
|
t2.exports = n2;
|
|
3324
3689
|
});
|
|
3325
|
-
var
|
|
3690
|
+
var al = _((e2, t2) => {
|
|
3326
3691
|
function n2(e3, t3) {
|
|
3327
3692
|
return e3 === t3 || e3 !== e3 && t3 !== t3;
|
|
3328
3693
|
}
|
|
3329
3694
|
t2.exports = n2;
|
|
3330
3695
|
});
|
|
3331
|
-
var
|
|
3696
|
+
var ol = _((e2, t2) => {
|
|
3332
3697
|
t2.exports = typeof window == `object` && window && window.Object === Object && window;
|
|
3333
3698
|
});
|
|
3334
|
-
var
|
|
3335
|
-
var n2 =
|
|
3699
|
+
var sl = _((e2, t2) => {
|
|
3700
|
+
var n2 = ol(), r2 = typeof self == `object` && self && self.Object === Object && self;
|
|
3336
3701
|
t2.exports = n2 || r2 || Function(`return this`)();
|
|
3337
3702
|
});
|
|
3338
|
-
var
|
|
3339
|
-
t2.exports =
|
|
3703
|
+
var cl = _((e2, t2) => {
|
|
3704
|
+
t2.exports = sl().Symbol;
|
|
3340
3705
|
});
|
|
3341
|
-
var
|
|
3342
|
-
var n2 =
|
|
3706
|
+
var ll = _((e2, t2) => {
|
|
3707
|
+
var n2 = cl(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
|
|
3343
3708
|
function s2(e3) {
|
|
3344
3709
|
var t3 = i2.call(e3, o2), n3 = e3[o2];
|
|
3345
3710
|
try {
|
|
@@ -3352,29 +3717,29 @@ var xc = g((e2, t2) => {
|
|
|
3352
3717
|
}
|
|
3353
3718
|
t2.exports = s2;
|
|
3354
3719
|
});
|
|
3355
|
-
var
|
|
3720
|
+
var ul = _((e2, t2) => {
|
|
3356
3721
|
var n2 = Object.prototype.toString;
|
|
3357
3722
|
function r2(e3) {
|
|
3358
3723
|
return n2.call(e3);
|
|
3359
3724
|
}
|
|
3360
3725
|
t2.exports = r2;
|
|
3361
3726
|
});
|
|
3362
|
-
var
|
|
3363
|
-
var n2 =
|
|
3727
|
+
var dl = _((e2, t2) => {
|
|
3728
|
+
var n2 = cl(), r2 = ll(), i2 = ul(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
|
|
3364
3729
|
function c2(e3) {
|
|
3365
3730
|
return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
|
|
3366
3731
|
}
|
|
3367
3732
|
t2.exports = c2;
|
|
3368
3733
|
});
|
|
3369
|
-
var
|
|
3734
|
+
var fl = _((e2, t2) => {
|
|
3370
3735
|
function n2(e3) {
|
|
3371
3736
|
var t3 = typeof e3;
|
|
3372
3737
|
return e3 != null && (t3 == `object` || t3 == `function`);
|
|
3373
3738
|
}
|
|
3374
3739
|
t2.exports = n2;
|
|
3375
3740
|
});
|
|
3376
|
-
var
|
|
3377
|
-
var n2 =
|
|
3741
|
+
var pl = _((e2, t2) => {
|
|
3742
|
+
var n2 = dl(), r2 = fl(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
|
|
3378
3743
|
function c2(e3) {
|
|
3379
3744
|
if (!r2(e3)) return false;
|
|
3380
3745
|
var t3 = n2(e3);
|
|
@@ -3382,20 +3747,20 @@ var Tc = g((e2, t2) => {
|
|
|
3382
3747
|
}
|
|
3383
3748
|
t2.exports = c2;
|
|
3384
3749
|
});
|
|
3385
|
-
var
|
|
3750
|
+
var ml = _((e2, t2) => {
|
|
3386
3751
|
function n2(e3) {
|
|
3387
3752
|
return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
|
|
3388
3753
|
}
|
|
3389
3754
|
t2.exports = n2;
|
|
3390
3755
|
});
|
|
3391
|
-
var
|
|
3392
|
-
var n2 =
|
|
3756
|
+
var hl = _((e2, t2) => {
|
|
3757
|
+
var n2 = pl(), r2 = ml();
|
|
3393
3758
|
function i2(e3) {
|
|
3394
3759
|
return e3 != null && r2(e3.length) && !n2(e3);
|
|
3395
3760
|
}
|
|
3396
3761
|
t2.exports = i2;
|
|
3397
3762
|
});
|
|
3398
|
-
var
|
|
3763
|
+
var gl = _((e2, t2) => {
|
|
3399
3764
|
var n2 = /^(?:0|[1-9]\d*)$/;
|
|
3400
3765
|
function r2(e3, t3) {
|
|
3401
3766
|
var r3 = typeof e3;
|
|
@@ -3403,8 +3768,8 @@ var Oc = g((e2, t2) => {
|
|
|
3403
3768
|
}
|
|
3404
3769
|
t2.exports = r2;
|
|
3405
3770
|
});
|
|
3406
|
-
var
|
|
3407
|
-
var n2 =
|
|
3771
|
+
var _l = _((e2, t2) => {
|
|
3772
|
+
var n2 = al(), r2 = hl(), i2 = gl(), a2 = fl();
|
|
3408
3773
|
function o2(e3, t3, o3) {
|
|
3409
3774
|
if (!a2(o3)) return false;
|
|
3410
3775
|
var s2 = typeof t3;
|
|
@@ -3412,7 +3777,7 @@ var kc = g((e2, t2) => {
|
|
|
3412
3777
|
}
|
|
3413
3778
|
t2.exports = o2;
|
|
3414
3779
|
});
|
|
3415
|
-
var
|
|
3780
|
+
var vl = _((e2, t2) => {
|
|
3416
3781
|
var n2 = /\s/;
|
|
3417
3782
|
function r2(e3) {
|
|
3418
3783
|
for (var t3 = e3.length; t3-- && n2.test(e3.charAt(t3)); ) ;
|
|
@@ -3420,28 +3785,28 @@ var Ac = g((e2, t2) => {
|
|
|
3420
3785
|
}
|
|
3421
3786
|
t2.exports = r2;
|
|
3422
3787
|
});
|
|
3423
|
-
var
|
|
3424
|
-
var n2 =
|
|
3788
|
+
var yl = _((e2, t2) => {
|
|
3789
|
+
var n2 = vl(), r2 = /^\s+/;
|
|
3425
3790
|
function i2(e3) {
|
|
3426
3791
|
return e3 && e3.slice(0, n2(e3) + 1).replace(r2, ``);
|
|
3427
3792
|
}
|
|
3428
3793
|
t2.exports = i2;
|
|
3429
3794
|
});
|
|
3430
|
-
var
|
|
3795
|
+
var bl = _((e2, t2) => {
|
|
3431
3796
|
function n2(e3) {
|
|
3432
3797
|
return typeof e3 == `object` && !!e3;
|
|
3433
3798
|
}
|
|
3434
3799
|
t2.exports = n2;
|
|
3435
3800
|
});
|
|
3436
|
-
var
|
|
3437
|
-
var n2 =
|
|
3801
|
+
var xl = _((e2, t2) => {
|
|
3802
|
+
var n2 = dl(), r2 = bl(), i2 = `[object Symbol]`;
|
|
3438
3803
|
function a2(e3) {
|
|
3439
3804
|
return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
|
|
3440
3805
|
}
|
|
3441
3806
|
t2.exports = a2;
|
|
3442
3807
|
});
|
|
3443
|
-
var
|
|
3444
|
-
var n2 =
|
|
3808
|
+
var Sl = _((e2, t2) => {
|
|
3809
|
+
var n2 = yl(), r2 = fl(), i2 = xl(), a2 = NaN, o2 = /^[-+]0x[0-9a-f]+$/i, s2 = /^0b[01]+$/i, c2 = /^0o[0-7]+$/i, l2 = parseInt;
|
|
3445
3810
|
function u2(e3) {
|
|
3446
3811
|
if (typeof e3 == `number`) return e3;
|
|
3447
3812
|
if (i2(e3)) return a2;
|
|
@@ -3456,23 +3821,23 @@ var Pc = g((e2, t2) => {
|
|
|
3456
3821
|
}
|
|
3457
3822
|
t2.exports = u2;
|
|
3458
3823
|
});
|
|
3459
|
-
var
|
|
3460
|
-
var n2 =
|
|
3824
|
+
var Cl = _((e2, t2) => {
|
|
3825
|
+
var n2 = Sl(), r2 = 1 / 0, i2 = 17976931348623157e292;
|
|
3461
3826
|
function a2(e3) {
|
|
3462
3827
|
return e3 ? (e3 = n2(e3), e3 === r2 || e3 === -r2 ? (e3 < 0 ? -1 : 1) * i2 : e3 === e3 ? e3 : 0) : e3 === 0 ? e3 : 0;
|
|
3463
3828
|
}
|
|
3464
3829
|
t2.exports = a2;
|
|
3465
3830
|
});
|
|
3466
|
-
var
|
|
3467
|
-
var n2 =
|
|
3831
|
+
var wl = _((e2, t2) => {
|
|
3832
|
+
var n2 = Cl();
|
|
3468
3833
|
function r2(e3) {
|
|
3469
3834
|
var t3 = n2(e3), r3 = t3 % 1;
|
|
3470
3835
|
return t3 === t3 ? r3 ? t3 - r3 : t3 : 0;
|
|
3471
3836
|
}
|
|
3472
3837
|
t2.exports = r2;
|
|
3473
3838
|
});
|
|
3474
|
-
var
|
|
3475
|
-
var n2 =
|
|
3839
|
+
var Tl = ne(_((e2, t2) => {
|
|
3840
|
+
var n2 = il(), r2 = _l(), i2 = wl(), a2 = Math.ceil, o2 = Math.max;
|
|
3476
3841
|
function s2(e3, t3, s3) {
|
|
3477
3842
|
t3 = (s3 ? r2(e3, t3, s3) : t3 === void 0) ? 1 : o2(i2(t3), 0);
|
|
3478
3843
|
var c2 = e3 == null ? 0 : e3.length;
|
|
@@ -3482,86 +3847,86 @@ var Lc = ne(g((e2, t2) => {
|
|
|
3482
3847
|
}
|
|
3483
3848
|
t2.exports = s2;
|
|
3484
3849
|
})(), 1);
|
|
3485
|
-
var
|
|
3486
|
-
var
|
|
3487
|
-
async function
|
|
3488
|
-
let t2 = (0,
|
|
3489
|
-
return (await Promise.all(t2.map(
|
|
3490
|
-
}
|
|
3491
|
-
var
|
|
3492
|
-
var
|
|
3493
|
-
var
|
|
3494
|
-
function
|
|
3850
|
+
var El = [$i.CHOICE_DISPLAY_IMAGE];
|
|
3851
|
+
var Dl = `customizationRenderType`;
|
|
3852
|
+
async function Ol(e2) {
|
|
3853
|
+
let t2 = (0, Tl.default)(e2, 100);
|
|
3854
|
+
return (await Promise.all(t2.map(kl))).flat();
|
|
3855
|
+
}
|
|
3856
|
+
var kl = async (e2) => (await ca({ fields: El }).hasSome(`_id`, e2).ne(Dl, U.FREE_TEXT).limit(100).find()).items;
|
|
3857
|
+
var Al = (e2, t2, n2) => ({ name: e2, type: Oa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
|
|
3858
|
+
var jl = (e2, t2, n2) => ({ name: e2, type: Oa.VALUE, fieldPath: t2, value: { limit: n2, sortType: Ta.COUNT, sortDirection: Ea.DESC } });
|
|
3859
|
+
function Ml(e2) {
|
|
3495
3860
|
let t2 = [];
|
|
3496
|
-
return e2.includes(Z.PRICE) && t2.push(
|
|
3861
|
+
return e2.includes(Z.PRICE) && t2.push(Al(Q.minPrice, $.minPrice, Da.MIN), Al(Q.maxPrice, $.maxPrice, Da.MAX)), e2.includes(Z.OPTIONS) && t2.push(jl(Q.options, $.option, Cs.options), jl(Q.optionsWithChoice, $.optionChoice, Cs.choices)), e2.includes(Z.MODIFIERS) && t2.push(jl(Q.modifiers, $.modifier, Cs.modifiers), jl(Q.modifiersWithChoice, $.modifierChoice, Cs.choices)), t2;
|
|
3497
3862
|
}
|
|
3498
|
-
var
|
|
3863
|
+
var Nl = (e2) => {
|
|
3499
3864
|
let t2 = e2?.values?.results ?? [], n2 = /* @__PURE__ */ new Map();
|
|
3500
3865
|
for (let e3 of t2) e3.value !== void 0 && e3.count !== void 0 && n2.set(e3.value, e3.count);
|
|
3501
3866
|
return n2;
|
|
3502
3867
|
};
|
|
3503
|
-
var
|
|
3504
|
-
var
|
|
3868
|
+
var Pl = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
|
|
3869
|
+
var Fl = (e2) => {
|
|
3505
3870
|
let t2 = /* @__PURE__ */ new Map();
|
|
3506
3871
|
for (let n2 of e2) n2.name !== void 0 && t2.set(n2.name, n2);
|
|
3507
3872
|
return t2;
|
|
3508
3873
|
};
|
|
3509
|
-
async function
|
|
3510
|
-
let n2 = await
|
|
3511
|
-
return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds:
|
|
3874
|
+
async function Il(e2, t2) {
|
|
3875
|
+
let n2 = await Va({ filter: { [Ss]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Ml(t2) }, { fields: [q.CURRENCY] }), r2 = Fl(n2.aggregationData?.results ?? []);
|
|
3876
|
+
return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds: Pl(r2.get(Q.options)), optionChoiceIdToCount: Nl(r2.get(Q.optionsWithChoice)), modifierIds: Pl(r2.get(Q.modifiers)), modifierChoiceIdToCount: Nl(r2.get(Q.modifiersWithChoice)), currency: n2.products?.[0]?.currency ?? void 0 };
|
|
3512
3877
|
}
|
|
3513
|
-
var
|
|
3514
|
-
async function
|
|
3515
|
-
let n2 = await
|
|
3516
|
-
return { filters: [
|
|
3878
|
+
var Ll = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
|
|
3879
|
+
async function Rl(e2, t2 = Ll) {
|
|
3880
|
+
let n2 = await Il(e2, t2), r2 = await Ol([...n2.optionIds, ...n2.modifierIds]);
|
|
3881
|
+
return { filters: [rl(n2.minPrice, n2.maxPrice), ...nl(Zi.PRODUCT_OPTION, r2, n2.optionIds, n2.optionChoiceIdToCount), ...nl(Zi.MODIFIER, r2, n2.modifierIds, n2.modifierChoiceIdToCount)].filter((e3) => e3 !== void 0), currency: n2.currency };
|
|
3517
3882
|
}
|
|
3518
|
-
var
|
|
3519
|
-
let t2 =
|
|
3883
|
+
var zl = (e2) => {
|
|
3884
|
+
let t2 = xc(e2 ?? void 0);
|
|
3520
3885
|
if (!t2) return;
|
|
3521
|
-
let n2 =
|
|
3522
|
-
return { id: t2, url:
|
|
3886
|
+
let n2 = Cc(e2);
|
|
3887
|
+
return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
|
|
3523
3888
|
};
|
|
3524
|
-
var
|
|
3525
|
-
if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image:
|
|
3889
|
+
var Bl = ({ promotion: e2, position: t2 }) => {
|
|
3890
|
+
if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image: zl(e2.media?.image), altText: e2.media?.altText ?? void 0, position: t2 };
|
|
3526
3891
|
};
|
|
3527
|
-
async function
|
|
3528
|
-
return ((await
|
|
3892
|
+
async function Vl(e2) {
|
|
3893
|
+
return ((await yo(e2)).promotions ?? []).map(Bl).filter((e3) => e3 !== void 0);
|
|
3529
3894
|
}
|
|
3530
|
-
var
|
|
3531
|
-
let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 =
|
|
3532
|
-
return { page:
|
|
3895
|
+
var Hl = async (e2, t2, n2, r2) => {
|
|
3896
|
+
let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 = Eo(n2, i2), o2 = Bo(n2), s2 = await Ns({ categoryId: e2, filters: i2, filterSelection: a2, sortType: o2, productsPerPage: r2 }), c2 = await Hs(s2.products, /* @__PURE__ */ new Map());
|
|
3897
|
+
return { page: s2, productGroupByGroupId: Object.fromEntries(c2), filterSelectionKey: Ws(a2), sortType: o2, productsPerPage: r2 };
|
|
3533
3898
|
};
|
|
3534
|
-
async function
|
|
3535
|
-
let r2 =
|
|
3899
|
+
async function Ul(e2, t2, n2) {
|
|
3900
|
+
let r2 = Rl(e2), [i2, a2, o2] = await Promise.all([Hl(e2, r2, t2, n2), r2, Vl(e2)]), { filters: s2, currency: c2 } = a2;
|
|
3536
3901
|
return { filters: s2, currency: c2, promotions: o2, initialProductList: i2 };
|
|
3537
3902
|
}
|
|
3538
|
-
var
|
|
3539
|
-
async function
|
|
3540
|
-
let [r2, i2, a2] = await Promise.all([
|
|
3903
|
+
var Wl = `wixstores-storefront-builder:category-by-id-context-data`;
|
|
3904
|
+
async function Gl(e2, t2, n2) {
|
|
3905
|
+
let [r2, i2, a2] = await Promise.all([Fc(e2), oc(), Ul(e2, t2, n2)]);
|
|
3541
3906
|
return { category: r2, defaultLocationId: i2, ...a2 };
|
|
3542
3907
|
}
|
|
3543
|
-
function
|
|
3544
|
-
let { search: n2 } =
|
|
3545
|
-
return
|
|
3908
|
+
function Kl(e2, t2) {
|
|
3909
|
+
let { search: n2 } = _i();
|
|
3910
|
+
return ac(`${Wl}:${e2}:${t2}:${n2}`, () => Gl(e2, n2, t2));
|
|
3546
3911
|
}
|
|
3547
|
-
function
|
|
3912
|
+
function ql() {
|
|
3548
3913
|
throw Error(`useCategoryByIdContext must not be used directly`);
|
|
3549
3914
|
}
|
|
3550
|
-
function
|
|
3915
|
+
function Jl({ categoryValue: e2, productListValue: t2, children: n2 }) {
|
|
3551
3916
|
return (0, import_jsx_runtime.jsx)(import_category_info_context_provider.default, { value: e2, children: (0, import_jsx_runtime.jsx)(import_product_list_context_provider.default, { value: t2, children: n2 }) });
|
|
3552
3917
|
}
|
|
3553
|
-
var
|
|
3554
|
-
let r2 =
|
|
3555
|
-
return (0, import_jsx_runtime.jsx)(
|
|
3918
|
+
var Yl = ({ children: e2, dataPromise: t2, productsPerPage: n2 }) => {
|
|
3919
|
+
let r2 = pi(t2), i2 = fi(r2), a2 = nc(r2, n2);
|
|
3920
|
+
return (0, import_jsx_runtime.jsx)(Jl, { categoryValue: i2, productListValue: a2, children: e2 });
|
|
3556
3921
|
};
|
|
3557
|
-
var
|
|
3558
|
-
let [
|
|
3559
|
-
return (0, import_jsx_runtime.jsx)(
|
|
3922
|
+
var Xl = ({ children: e2, categoryId: n2, productsPerPage: r2 }) => {
|
|
3923
|
+
let [i2] = (0, import_react.useState)(() => new Vr()), o2 = Kl(n2, r2);
|
|
3924
|
+
return (0, import_jsx_runtime.jsx)(Wr, { client: i2, children: (0, import_jsx_runtime.jsx)(import_react.Suspense, { fallback: null, children: (0, import_jsx_runtime.jsx)(Yl, { dataPromise: o2, productsPerPage: r2, children: e2 }) }) });
|
|
3560
3925
|
};
|
|
3561
|
-
function
|
|
3562
|
-
return t2 ? (0, import_jsx_runtime.jsx)(
|
|
3926
|
+
function Zl({ children: e2, categoryId: t2, productsPerPage: n2 = 20 }) {
|
|
3927
|
+
return t2 ? (0, import_jsx_runtime.jsx)(Xl, { categoryId: t2, productsPerPage: n2, children: e2 }, t2) : null;
|
|
3563
3928
|
}
|
|
3564
|
-
var
|
|
3929
|
+
var Ql = Mn(`733f4f74-23d2-4b03-a0b1-1efdd5e3825b`);
|
|
3565
3930
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3566
3931
|
0 && (module.exports = {
|
|
3567
3932
|
CategoryByIdContextProvider,
|