@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
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
// _sdk-exports/context-category-by-id/runtime.js
|
|
2
2
|
import * as e from "react";
|
|
3
|
-
import { Suspense as t, useCallback as n, useMemo as r,
|
|
4
|
-
import { jsx as
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import { useGetService as
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
3
|
+
import { Suspense as t, useCallback as n, useMemo as r, useRef as i, useState as a, useSyncExternalStore as o } from "react";
|
|
4
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
5
|
+
import c from "@wix/stores/product-list-context-provider";
|
|
6
|
+
import l from "@wix/stores/category-info-context-provider";
|
|
7
|
+
import { useGetService as u, useService as d } from "@wix/services-manager-react";
|
|
8
|
+
var f = Object.create;
|
|
9
|
+
var p = Object.defineProperty;
|
|
10
|
+
var m = Object.getOwnPropertyDescriptor;
|
|
11
|
+
var h = Object.getOwnPropertyNames;
|
|
12
12
|
var ee = Object.getPrototypeOf;
|
|
13
|
-
var
|
|
14
|
-
var
|
|
13
|
+
var g = Object.prototype.hasOwnProperty;
|
|
14
|
+
var _ = (e2, t2) => () => (t2 || (e2((t2 = { exports: {} }).exports, t2), e2 = null), t2.exports);
|
|
15
15
|
var te = (e2, t2, n2, r2) => {
|
|
16
|
-
if (t2 && typeof t2 == `object` || typeof t2 == `function`) for (var i2 =
|
|
16
|
+
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 });
|
|
17
17
|
return e2;
|
|
18
18
|
};
|
|
19
|
-
var ne = (e2, t2, n2) => (n2 = e2 == null ? {} :
|
|
20
|
-
var
|
|
21
|
-
function
|
|
19
|
+
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));
|
|
20
|
+
var v = {};
|
|
21
|
+
function y(e2, t2 = false, n2 = (e3) => e3) {
|
|
22
22
|
return () => ({ __type: `event-definition`, type: e2, isDomainEvent: t2, transformations: n2 });
|
|
23
23
|
}
|
|
24
24
|
var re = (e2) => {
|
|
@@ -94,12 +94,12 @@ function ge(e2) {
|
|
|
94
94
|
return Object.entries(e2).filter(([e3, t2]) => !!t2).map(([e3, t2]) => `${e3}=${t2}`).join(`,`);
|
|
95
95
|
}
|
|
96
96
|
function _e(e2) {
|
|
97
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
98
|
-
globalThis.__wix_context__ = void 0,
|
|
97
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
98
|
+
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);
|
|
99
99
|
try {
|
|
100
100
|
return e2();
|
|
101
101
|
} finally {
|
|
102
|
-
globalThis.__wix_context__ = t2,
|
|
102
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
var ve = { id: `_id`, createdDate: `_createdDate`, updatedDate: `_updatedDate` };
|
|
@@ -393,7 +393,7 @@ function $e(e2) {
|
|
|
393
393
|
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(`, `)}`);
|
|
394
394
|
let r2 = t2.get(e3.eventType) ?? [];
|
|
395
395
|
await Promise.all(r2.map(({ eventDefinition: t3, handler: n4 }) => Qe(t3, n4, e3.payload, { instanceId: e3.instanceId, identity: e3.identity })));
|
|
396
|
-
}, apps: { AppInstalled:
|
|
396
|
+
}, apps: { AppInstalled: y(`AppInstalled`)(), AppRemoved: y(`AppRemoved`)() } } };
|
|
397
397
|
}
|
|
398
398
|
var et = (e2) => e2.__type === `service-plugin-definition`;
|
|
399
399
|
function tt(e2) {
|
|
@@ -438,30 +438,30 @@ function tt(e2) {
|
|
|
438
438
|
return s2.transformations.toREST(await c2(s2.transformations.fromREST(e3)));
|
|
439
439
|
} } };
|
|
440
440
|
}
|
|
441
|
-
var
|
|
441
|
+
var b = `X-Wix-Consistent`;
|
|
442
442
|
function nt(e2) {
|
|
443
443
|
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) => {
|
|
444
|
-
let i3 = o2(), s3 = await a2(), c3 = { ...r3?.headers ?? {}, ...s3.headers, ...e2.host?.essentials?.passThroughHeaders, ...t2[`X-Wix-Consistent`] ? { [
|
|
444
|
+
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?.();
|
|
445
445
|
try {
|
|
446
446
|
if (typeof n3 == `string` || n3 instanceof URL) {
|
|
447
447
|
let e3 = await i3(n3, { ...r3, headers: c3 });
|
|
448
448
|
l3?.handleError(e3, { requestOptions: { url: n3.toString(), method: r3?.method } });
|
|
449
449
|
let a3 = rt(e3);
|
|
450
|
-
return a3 && (t2[
|
|
450
|
+
return a3 && (t2[b] = a3), e3;
|
|
451
451
|
}
|
|
452
452
|
{
|
|
453
453
|
for (let [e4, t3] of Object.entries(c3)) typeof t3 == `string` && n3.headers.set(e4, t3);
|
|
454
454
|
let e3 = await i3(n3, r3);
|
|
455
455
|
l3?.handleError(e3, { requestOptions: { url: n3.url, method: r3?.method } });
|
|
456
456
|
let a3 = rt(e3);
|
|
457
|
-
return a3 && (t2[
|
|
457
|
+
return a3 && (t2[b] = a3), e3;
|
|
458
458
|
}
|
|
459
459
|
} catch (e3) {
|
|
460
460
|
throw l3?.handleError(e3, { requestOptions: { url: typeof n3 == `string` || n3 instanceof URL ? n3.toString() : n3.url, method: r3?.method } }), e3;
|
|
461
461
|
}
|
|
462
462
|
}, { client: c2, initModule: l2 } = tt(i2), { client: u2, initModule: d2 } = $e(i2), f2 = async (n3, r3) => {
|
|
463
|
-
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`] ? { [
|
|
464
|
-
return u3 && (t2[
|
|
463
|
+
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);
|
|
464
|
+
return u3 && (t2[b] = u3), l3;
|
|
465
465
|
}, p2 = (t3, n3) => {
|
|
466
466
|
if (Ze(t3)) return d2(t3);
|
|
467
467
|
if (et(t3)) return l2(t3);
|
|
@@ -482,7 +482,7 @@ function nt(e2) {
|
|
|
482
482
|
let t3 = i2();
|
|
483
483
|
return t3.getAuthHeaders = t3.getAuthHeaders.bind(void 0, e2.host), t3;
|
|
484
484
|
}, setHeaders: m2, use: p2, enableContext(e3, t3 = { elevated: false }) {
|
|
485
|
-
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 ?
|
|
485
|
+
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;
|
|
486
486
|
}, fetch: (t3, n3) => {
|
|
487
487
|
let r3 = e2.host?.apiBaseUrl ?? `www.wixapis.com`, i3 = new URL(t3, `https://${r3}`);
|
|
488
488
|
return i3.host = r3, i3.protocol = `https`, f2(i3.toString(), n3);
|
|
@@ -504,7 +504,7 @@ var ct = it;
|
|
|
504
504
|
function lt(e2, t2) {
|
|
505
505
|
return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function x(e2, { transformSystemFields: t2 = true } = {}) {
|
|
508
508
|
return t2 ? lt(e2, ct) : e2;
|
|
509
509
|
}
|
|
510
510
|
var ut = `sort.fieldName`;
|
|
@@ -532,13 +532,13 @@ function pt(e2, t2) {
|
|
|
532
532
|
let n2;
|
|
533
533
|
return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
535
|
+
function S(e2, t2 = []) {
|
|
536
536
|
return ft(e2, it, t2);
|
|
537
537
|
}
|
|
538
|
-
function
|
|
538
|
+
function C(e2, t2 = []) {
|
|
539
539
|
return ft(e2, at, t2);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
541
|
+
function w(e2) {
|
|
542
542
|
return e2 ? new Date(e2) : void 0;
|
|
543
543
|
}
|
|
544
544
|
var mt = /* @__PURE__ */ new WeakMap();
|
|
@@ -590,7 +590,7 @@ function wt(e2, t2, n2) {
|
|
|
590
590
|
function Tt(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
|
|
591
591
|
t2 && Ct(e2, t2, i2), n2 && wt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => St(e3, r2, i2));
|
|
592
592
|
}
|
|
593
|
-
function
|
|
593
|
+
function T(e2, t2) {
|
|
594
594
|
if (!bt(e2)) return e2;
|
|
595
595
|
for (let { paths: n2, transformFn: r2 } of t2) Tt(e2, yt(n2), r2);
|
|
596
596
|
return e2;
|
|
@@ -614,7 +614,7 @@ function jt(e2) {
|
|
|
614
614
|
var Mt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
615
615
|
var Nt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
616
616
|
var Pt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
617
|
-
function
|
|
617
|
+
function E(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
618
618
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
619
619
|
if (Mt(e2)) return Ft(e2, t2, n2);
|
|
620
620
|
if (Nt(e2)) return Lt(e2);
|
|
@@ -664,7 +664,7 @@ function Ht() {
|
|
|
664
664
|
}, graphql() {
|
|
665
665
|
throw Error(`graphql is not available in this context`);
|
|
666
666
|
} };
|
|
667
|
-
let t2 = typeof $wixContext < `u` ? $wixContext.client :
|
|
667
|
+
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;
|
|
668
668
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
669
669
|
if (r2) {
|
|
670
670
|
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`);
|
|
@@ -684,12 +684,12 @@ function Ht() {
|
|
|
684
684
|
} };
|
|
685
685
|
}
|
|
686
686
|
function Ut(e2) {
|
|
687
|
-
let t2 = globalThis.__wix_context__, n2 = { client:
|
|
688
|
-
globalThis.__wix_context__ = void 0,
|
|
687
|
+
let t2 = globalThis.__wix_context__, n2 = { client: v.client, elevatedClient: v.elevatedClient }, r2;
|
|
688
|
+
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);
|
|
689
689
|
try {
|
|
690
690
|
return e2();
|
|
691
691
|
} finally {
|
|
692
|
-
globalThis.__wix_context__ = t2,
|
|
692
|
+
globalThis.__wix_context__ = t2, v.client = n2.client, v.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
693
693
|
}
|
|
694
694
|
}
|
|
695
695
|
function Wt(e2, t2) {
|
|
@@ -705,16 +705,16 @@ function Gt(e2) {
|
|
|
705
705
|
};
|
|
706
706
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
707
707
|
}
|
|
708
|
-
function
|
|
708
|
+
function D(e2, t2 = false) {
|
|
709
709
|
return Wt(e2, t2);
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function O(e2, t2) {
|
|
712
712
|
let n2 = Kt(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
713
713
|
return t2 && r2 ? new URLSearchParams({ ".r": Jt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
714
714
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
715
715
|
}), e3), new URLSearchParams());
|
|
716
716
|
}
|
|
717
|
-
function
|
|
717
|
+
function k(e2) {
|
|
718
718
|
let t2 = cn(on(e2.host), e2.domainToMappings);
|
|
719
719
|
return _n(mn(e2.protoPath, e2.data || {}), t2);
|
|
720
720
|
}
|
|
@@ -805,13 +805,13 @@ function _n(e2, t2) {
|
|
|
805
805
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
806
806
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
807
807
|
}
|
|
808
|
-
function
|
|
808
|
+
function A(e2) {
|
|
809
809
|
return Gt(e2);
|
|
810
810
|
}
|
|
811
811
|
function vn(e2) {
|
|
812
812
|
return isFinite(e2) ? e2 : e2.toString();
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function j(e2) {
|
|
815
815
|
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
816
816
|
}
|
|
817
817
|
var yn = `x-wix-linguist`;
|
|
@@ -872,7 +872,7 @@ var jn = (e2, t2) => {
|
|
|
872
872
|
return nt({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
873
873
|
};
|
|
874
874
|
var Mn = (e2) => jn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
|
|
875
|
-
var
|
|
875
|
+
var M = class {
|
|
876
876
|
constructor() {
|
|
877
877
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
878
878
|
}
|
|
@@ -889,7 +889,7 @@ var Nn = class {
|
|
|
889
889
|
onUnsubscribe() {
|
|
890
890
|
}
|
|
891
891
|
};
|
|
892
|
-
var
|
|
892
|
+
var Nn = new class extends M {
|
|
893
893
|
#e;
|
|
894
894
|
#t;
|
|
895
895
|
#n;
|
|
@@ -927,9 +927,9 @@ var Pn = new class extends Nn {
|
|
|
927
927
|
return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
|
|
928
928
|
}
|
|
929
929
|
}();
|
|
930
|
-
var
|
|
931
|
-
var
|
|
932
|
-
#e =
|
|
930
|
+
var Pn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
|
|
931
|
+
var N = new class {
|
|
932
|
+
#e = Pn;
|
|
933
933
|
setTimeoutProvider(e2) {
|
|
934
934
|
this.#e = e2;
|
|
935
935
|
}
|
|
@@ -946,33 +946,33 @@ var j = new class {
|
|
|
946
946
|
this.#e.clearInterval(e2);
|
|
947
947
|
}
|
|
948
948
|
}();
|
|
949
|
-
function
|
|
949
|
+
function Fn(e2) {
|
|
950
950
|
setTimeout(e2, 0);
|
|
951
951
|
}
|
|
952
|
-
var
|
|
953
|
-
function
|
|
952
|
+
var In = typeof window > `u` || `Deno` in globalThis;
|
|
953
|
+
function P() {
|
|
954
954
|
}
|
|
955
|
-
function
|
|
955
|
+
function Ln(e2, t2) {
|
|
956
956
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
957
957
|
}
|
|
958
|
-
function
|
|
958
|
+
function Rn(e2) {
|
|
959
959
|
return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function zn(e2, t2) {
|
|
962
962
|
return Math.max(e2 + (t2 || 0) - Date.now(), 0);
|
|
963
963
|
}
|
|
964
|
-
function
|
|
964
|
+
function F(e2, t2) {
|
|
965
965
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
966
966
|
}
|
|
967
|
-
function
|
|
967
|
+
function I(e2, t2) {
|
|
968
968
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
969
969
|
}
|
|
970
|
-
function
|
|
970
|
+
function Bn(e2, t2) {
|
|
971
971
|
let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
|
|
972
972
|
if (o2) {
|
|
973
973
|
if (r2) {
|
|
974
|
-
if (t2.queryHash !==
|
|
975
|
-
} else if (!
|
|
974
|
+
if (t2.queryHash !== Hn(o2, t2.options)) return false;
|
|
975
|
+
} else if (!Wn(t2.queryKey, o2)) return false;
|
|
976
976
|
}
|
|
977
977
|
if (n2 !== `all`) {
|
|
978
978
|
let e3 = t2.isActive();
|
|
@@ -980,104 +980,104 @@ function Vn(e2, t2) {
|
|
|
980
980
|
}
|
|
981
981
|
return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
|
|
982
982
|
}
|
|
983
|
-
function
|
|
983
|
+
function Vn(e2, t2) {
|
|
984
984
|
let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
|
|
985
985
|
if (a2) {
|
|
986
986
|
if (!t2.options.mutationKey) return false;
|
|
987
987
|
if (n2) {
|
|
988
|
-
if (
|
|
989
|
-
} else if (!
|
|
988
|
+
if (Un(t2.options.mutationKey) !== Un(a2)) return false;
|
|
989
|
+
} else if (!Wn(t2.options.mutationKey, a2)) return false;
|
|
990
990
|
}
|
|
991
991
|
return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
|
|
992
992
|
}
|
|
993
|
-
function
|
|
994
|
-
return (t2?.queryKeyHashFn ||
|
|
993
|
+
function Hn(e2, t2) {
|
|
994
|
+
return (t2?.queryKeyHashFn || Un)(e2);
|
|
995
995
|
}
|
|
996
|
-
function
|
|
997
|
-
return JSON.stringify(e2, (e3, t2) =>
|
|
996
|
+
function Un(e2) {
|
|
997
|
+
return JSON.stringify(e2, (e3, t2) => Yn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
|
|
998
998
|
}
|
|
999
|
-
function
|
|
1000
|
-
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) =>
|
|
999
|
+
function Wn(e2, t2) {
|
|
1000
|
+
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;
|
|
1001
1001
|
}
|
|
1002
|
-
var
|
|
1003
|
-
function
|
|
1002
|
+
var Gn = Object.prototype.hasOwnProperty;
|
|
1003
|
+
function Kn(e2, t2, n2 = 0) {
|
|
1004
1004
|
if (e2 === t2) return e2;
|
|
1005
1005
|
if (n2 > 500) return t2;
|
|
1006
|
-
let r2 =
|
|
1007
|
-
if (!r2 && !(
|
|
1006
|
+
let r2 = Jn(e2) && Jn(t2);
|
|
1007
|
+
if (!r2 && !(Yn(e2) && Yn(t2))) return t2;
|
|
1008
1008
|
let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
|
|
1009
1009
|
for (let l2 = 0; l2 < o2; l2++) {
|
|
1010
1010
|
let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
|
|
1011
1011
|
if (u2 === d2) {
|
|
1012
|
-
s2[o3] = u2, (r2 ? l2 < i2 :
|
|
1012
|
+
s2[o3] = u2, (r2 ? l2 < i2 : Gn.call(e2, o3)) && c2++;
|
|
1013
1013
|
continue;
|
|
1014
1014
|
}
|
|
1015
1015
|
if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
|
|
1016
1016
|
s2[o3] = d2;
|
|
1017
1017
|
continue;
|
|
1018
1018
|
}
|
|
1019
|
-
let f2 =
|
|
1019
|
+
let f2 = Kn(u2, d2, n2 + 1);
|
|
1020
1020
|
s2[o3] = f2, f2 === u2 && c2++;
|
|
1021
1021
|
}
|
|
1022
1022
|
return i2 === o2 && c2 === i2 ? e2 : s2;
|
|
1023
1023
|
}
|
|
1024
|
-
function
|
|
1024
|
+
function qn(e2, t2) {
|
|
1025
1025
|
if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
|
|
1026
1026
|
for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
|
|
1027
1027
|
return true;
|
|
1028
1028
|
}
|
|
1029
|
-
function
|
|
1029
|
+
function Jn(e2) {
|
|
1030
1030
|
return Array.isArray(e2) && e2.length === Object.keys(e2).length;
|
|
1031
1031
|
}
|
|
1032
|
-
function
|
|
1033
|
-
if (!
|
|
1032
|
+
function Yn(e2) {
|
|
1033
|
+
if (!Xn(e2)) return false;
|
|
1034
1034
|
let t2 = e2.constructor;
|
|
1035
1035
|
if (t2 === void 0) return true;
|
|
1036
1036
|
let n2 = t2.prototype;
|
|
1037
|
-
return !(!
|
|
1037
|
+
return !(!Xn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Xn(e2) {
|
|
1040
1040
|
return Object.prototype.toString.call(e2) === `[object Object]`;
|
|
1041
1041
|
}
|
|
1042
|
-
function
|
|
1042
|
+
function Zn(e2) {
|
|
1043
1043
|
return new Promise((t2) => {
|
|
1044
|
-
|
|
1044
|
+
N.setTimeout(t2, e2);
|
|
1045
1045
|
});
|
|
1046
1046
|
}
|
|
1047
|
-
function
|
|
1048
|
-
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 :
|
|
1047
|
+
function Qn(e2, t2, n2) {
|
|
1048
|
+
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : Kn(e2, t2);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function $n(e2) {
|
|
1051
1051
|
return e2;
|
|
1052
1052
|
}
|
|
1053
|
-
function
|
|
1053
|
+
function er(e2, t2, n2 = 0) {
|
|
1054
1054
|
let r2 = [...e2, t2];
|
|
1055
1055
|
return n2 && r2.length > n2 ? r2.slice(1) : r2;
|
|
1056
1056
|
}
|
|
1057
|
-
function
|
|
1057
|
+
function tr(e2, t2, n2 = 0) {
|
|
1058
1058
|
let r2 = [t2, ...e2];
|
|
1059
1059
|
return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
|
|
1060
1060
|
}
|
|
1061
|
-
var
|
|
1062
|
-
function nr(e2, t2) {
|
|
1063
|
-
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1064
|
-
}
|
|
1061
|
+
var nr = Symbol();
|
|
1065
1062
|
function rr(e2, t2) {
|
|
1063
|
+
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1064
|
+
}
|
|
1065
|
+
function ir(e2, t2) {
|
|
1066
1066
|
return typeof e2 == `function` ? e2(...t2) : !!e2;
|
|
1067
1067
|
}
|
|
1068
|
-
function
|
|
1068
|
+
function ar(e2, t2, n2) {
|
|
1069
1069
|
let r2 = false, i2;
|
|
1070
1070
|
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;
|
|
1071
1071
|
}
|
|
1072
|
-
var
|
|
1073
|
-
let e2 = () =>
|
|
1072
|
+
var or = /* @__PURE__ */ (() => {
|
|
1073
|
+
let e2 = () => In;
|
|
1074
1074
|
return { isServer() {
|
|
1075
1075
|
return e2();
|
|
1076
1076
|
}, setIsServer(t2) {
|
|
1077
1077
|
e2 = t2;
|
|
1078
1078
|
} };
|
|
1079
1079
|
})();
|
|
1080
|
-
function
|
|
1080
|
+
function sr() {
|
|
1081
1081
|
let e2, t2, n2 = new Promise((n3, r3) => {
|
|
1082
1082
|
e2 = n3, t2 = r3;
|
|
1083
1083
|
});
|
|
@@ -1092,13 +1092,13 @@ function ar() {
|
|
|
1092
1092
|
r2({ status: `rejected`, reason: e3 }), t2(e3);
|
|
1093
1093
|
}, n2;
|
|
1094
1094
|
}
|
|
1095
|
-
var
|
|
1096
|
-
function
|
|
1095
|
+
var cr = Fn;
|
|
1096
|
+
function lr() {
|
|
1097
1097
|
let e2 = [], t2 = 0, n2 = (e3) => {
|
|
1098
1098
|
e3();
|
|
1099
1099
|
}, r2 = (e3) => {
|
|
1100
1100
|
e3();
|
|
1101
|
-
}, i2 =
|
|
1101
|
+
}, i2 = cr, a2 = (r3) => {
|
|
1102
1102
|
t2 ? e2.push(r3) : i2(() => {
|
|
1103
1103
|
n2(r3);
|
|
1104
1104
|
});
|
|
@@ -1133,8 +1133,8 @@ function sr() {
|
|
|
1133
1133
|
i2 = e3;
|
|
1134
1134
|
} };
|
|
1135
1135
|
}
|
|
1136
|
-
var
|
|
1137
|
-
var
|
|
1136
|
+
var L = lr();
|
|
1137
|
+
var ur = new class extends M {
|
|
1138
1138
|
#e = true;
|
|
1139
1139
|
#t;
|
|
1140
1140
|
#n;
|
|
@@ -1166,28 +1166,28 @@ var cr = new class extends Nn {
|
|
|
1166
1166
|
return this.#e;
|
|
1167
1167
|
}
|
|
1168
1168
|
}();
|
|
1169
|
-
function
|
|
1169
|
+
function dr(e2) {
|
|
1170
1170
|
return Math.min(1e3 * 2 ** e2, 3e4);
|
|
1171
1171
|
}
|
|
1172
|
-
function
|
|
1173
|
-
return (e2 ?? `online`) !== `online` ||
|
|
1172
|
+
function fr(e2) {
|
|
1173
|
+
return (e2 ?? `online`) !== `online` || ur.isOnline();
|
|
1174
1174
|
}
|
|
1175
|
-
var
|
|
1175
|
+
var pr = class extends Error {
|
|
1176
1176
|
constructor(e2) {
|
|
1177
1177
|
super(`CancelledError`), this.revert = e2?.revert, this.silent = e2?.silent;
|
|
1178
1178
|
}
|
|
1179
1179
|
};
|
|
1180
|
-
function
|
|
1181
|
-
let t2 = false, n2 = 0, r2, i2 =
|
|
1180
|
+
function mr(e2) {
|
|
1181
|
+
let t2 = false, n2 = 0, r2, i2 = sr(), a2 = () => i2.status !== `pending`, o2 = (t3) => {
|
|
1182
1182
|
if (!a2()) {
|
|
1183
|
-
let n3 = new
|
|
1183
|
+
let n3 = new pr(t3);
|
|
1184
1184
|
f2(n3), e2.onCancel?.(n3);
|
|
1185
1185
|
}
|
|
1186
1186
|
}, s2 = () => {
|
|
1187
1187
|
t2 = true;
|
|
1188
1188
|
}, c2 = () => {
|
|
1189
1189
|
t2 = false;
|
|
1190
|
-
}, l2 = () =>
|
|
1190
|
+
}, l2 = () => Nn.isFocused() && (e2.networkMode === `always` || ur.isOnline()) && e2.canRun(), u2 = () => fr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
|
|
1191
1191
|
a2() || (r2?.(), i2.resolve(e3));
|
|
1192
1192
|
}, f2 = (e3) => {
|
|
1193
1193
|
a2() || (r2?.(), i2.reject(e3));
|
|
@@ -1207,56 +1207,56 @@ function fr(e2) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
Promise.resolve(r3).then(d2).catch((r4) => {
|
|
1209
1209
|
if (a2()) return;
|
|
1210
|
-
let i4 = e2.retry ?? (
|
|
1210
|
+
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);
|
|
1211
1211
|
if (t2 || !c3) {
|
|
1212
1212
|
f2(r4);
|
|
1213
1213
|
return;
|
|
1214
1214
|
}
|
|
1215
|
-
n2++, e2.onFail?.(n2, r4),
|
|
1215
|
+
n2++, e2.onFail?.(n2, r4), Zn(s3).then(() => l2() ? void 0 : p2()).then(() => {
|
|
1216
1216
|
t2 ? f2(r4) : m2();
|
|
1217
1217
|
});
|
|
1218
1218
|
});
|
|
1219
1219
|
};
|
|
1220
1220
|
return { promise: i2, status: () => i2.status, cancel: o2, continue: () => (r2?.(), i2), cancelRetry: s2, continueRetry: c2, canStart: u2, start: () => (u2() ? m2() : p2().then(m2), i2) };
|
|
1221
1221
|
}
|
|
1222
|
-
var
|
|
1222
|
+
var hr = class {
|
|
1223
1223
|
#e;
|
|
1224
1224
|
destroy() {
|
|
1225
1225
|
this.clearGcTimeout();
|
|
1226
1226
|
}
|
|
1227
1227
|
scheduleGc() {
|
|
1228
|
-
this.clearGcTimeout(),
|
|
1228
|
+
this.clearGcTimeout(), Rn(this.gcTime) && (this.#e = N.setTimeout(() => {
|
|
1229
1229
|
this.optionalRemove();
|
|
1230
1230
|
}, this.gcTime));
|
|
1231
1231
|
}
|
|
1232
1232
|
updateGcTime(e2) {
|
|
1233
|
-
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (
|
|
1233
|
+
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (or.isServer() ? 1 / 0 : 3e5));
|
|
1234
1234
|
}
|
|
1235
1235
|
clearGcTimeout() {
|
|
1236
|
-
this.#e !== void 0 && (
|
|
1236
|
+
this.#e !== void 0 && (N.clearTimeout(this.#e), this.#e = void 0);
|
|
1237
1237
|
}
|
|
1238
1238
|
};
|
|
1239
|
-
function
|
|
1239
|
+
function gr(e2) {
|
|
1240
1240
|
return { onFetch: (t2, n2) => {
|
|
1241
1241
|
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 () => {
|
|
1242
1242
|
let n3 = false, l3 = (e3) => {
|
|
1243
|
-
|
|
1244
|
-
}, u2 =
|
|
1243
|
+
ar(e3, () => t2.signal, () => n3 = true);
|
|
1244
|
+
}, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
|
|
1245
1245
|
if (n3) return Promise.reject(t2.signal.reason);
|
|
1246
1246
|
if (r3 == null && e3.pages.length) return Promise.resolve(e3);
|
|
1247
1247
|
let a3 = (() => {
|
|
1248
1248
|
let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
|
|
1249
1249
|
return l3(e4), e4;
|
|
1250
|
-
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ?
|
|
1250
|
+
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
|
|
1251
1251
|
return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
|
|
1252
1252
|
};
|
|
1253
1253
|
if (i2 && a2.length) {
|
|
1254
|
-
let e3 = i2 === `backward`, t3 = e3 ?
|
|
1254
|
+
let e3 = i2 === `backward`, t3 = e3 ? vr : _r, n4 = { pages: a2, pageParams: o2 };
|
|
1255
1255
|
s2 = await d2(n4, t3(r2, n4), e3);
|
|
1256
1256
|
} else {
|
|
1257
1257
|
let t3 = e2 ?? a2.length;
|
|
1258
1258
|
do {
|
|
1259
|
-
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam :
|
|
1259
|
+
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam : _r(r2, s2);
|
|
1260
1260
|
if (c2 > 0 && e3 == null) break;
|
|
1261
1261
|
s2 = await d2(s2, e3), c2++;
|
|
1262
1262
|
} while (c2 < t3);
|
|
@@ -1266,20 +1266,20 @@ function mr(e2) {
|
|
|
1266
1266
|
t2.fetchFn = t2.options.persister ? () => t2.options.persister?.(l2, { client: t2.client, queryKey: t2.queryKey, meta: t2.options.meta, signal: t2.signal }, n2) : l2;
|
|
1267
1267
|
} };
|
|
1268
1268
|
}
|
|
1269
|
-
function
|
|
1269
|
+
function _r(e2, { pages: t2, pageParams: n2 }) {
|
|
1270
1270
|
let r2 = t2.length - 1;
|
|
1271
1271
|
return t2.length > 0 ? e2.getNextPageParam(t2[r2], t2, n2[r2], n2) : void 0;
|
|
1272
1272
|
}
|
|
1273
|
-
function
|
|
1273
|
+
function vr(e2, { pages: t2, pageParams: n2 }) {
|
|
1274
1274
|
return t2.length > 0 ? e2.getPreviousPageParam?.(t2[0], t2, n2[0], n2) : void 0;
|
|
1275
1275
|
}
|
|
1276
|
-
function
|
|
1277
|
-
return t2 ?
|
|
1276
|
+
function yr(e2, t2) {
|
|
1277
|
+
return t2 ? _r(e2, t2) != null : false;
|
|
1278
1278
|
}
|
|
1279
|
-
function
|
|
1280
|
-
return !t2 || !e2.getPreviousPageParam ? false :
|
|
1279
|
+
function br(e2, t2) {
|
|
1280
|
+
return !t2 || !e2.getPreviousPageParam ? false : vr(e2, t2) != null;
|
|
1281
1281
|
}
|
|
1282
|
-
var
|
|
1282
|
+
var xr = class extends hr {
|
|
1283
1283
|
#e;
|
|
1284
1284
|
#t;
|
|
1285
1285
|
#n;
|
|
@@ -1289,7 +1289,7 @@ var yr = class extends pr {
|
|
|
1289
1289
|
#o;
|
|
1290
1290
|
#s;
|
|
1291
1291
|
constructor(e2) {
|
|
1292
|
-
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 =
|
|
1292
|
+
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();
|
|
1293
1293
|
}
|
|
1294
1294
|
get meta() {
|
|
1295
1295
|
return this.options.meta;
|
|
@@ -1302,15 +1302,15 @@ var yr = class extends pr {
|
|
|
1302
1302
|
}
|
|
1303
1303
|
setOptions(e2) {
|
|
1304
1304
|
if (this.options = { ...this.#o, ...e2 }, e2?._type && (this.#e = e2._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
1305
|
-
let e3 =
|
|
1306
|
-
e3.data !== void 0 && (this.setState(
|
|
1305
|
+
let e3 = wr(this.options);
|
|
1306
|
+
e3.data !== void 0 && (this.setState(Cr(e3.data, e3.dataUpdatedAt)), this.#t = e3);
|
|
1307
1307
|
}
|
|
1308
1308
|
}
|
|
1309
1309
|
optionalRemove() {
|
|
1310
1310
|
!this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
|
|
1311
1311
|
}
|
|
1312
1312
|
setData(e2, t2) {
|
|
1313
|
-
let n2 =
|
|
1313
|
+
let n2 = Qn(this.state.data, e2, this.options);
|
|
1314
1314
|
return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
|
|
1315
1315
|
}
|
|
1316
1316
|
setState(e2) {
|
|
@@ -1318,7 +1318,7 @@ var yr = class extends pr {
|
|
|
1318
1318
|
}
|
|
1319
1319
|
cancel(e2) {
|
|
1320
1320
|
let t2 = this.#a?.promise;
|
|
1321
|
-
return this.#a?.cancel(e2), t2 ? t2.then(
|
|
1321
|
+
return this.#a?.cancel(e2), t2 ? t2.then(P).catch(P) : Promise.resolve();
|
|
1322
1322
|
}
|
|
1323
1323
|
destroy() {
|
|
1324
1324
|
super.destroy(), this.cancel({ silent: true });
|
|
@@ -1330,22 +1330,22 @@ var yr = class extends pr {
|
|
|
1330
1330
|
this.destroy(), this.setState(this.resetState);
|
|
1331
1331
|
}
|
|
1332
1332
|
isActive() {
|
|
1333
|
-
return this.observers.some((e2) =>
|
|
1333
|
+
return this.observers.some((e2) => I(e2.options.enabled, this) !== false);
|
|
1334
1334
|
}
|
|
1335
1335
|
isDisabled() {
|
|
1336
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
1336
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
|
|
1337
1337
|
}
|
|
1338
1338
|
isFetched() {
|
|
1339
1339
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
1340
1340
|
}
|
|
1341
1341
|
isStatic() {
|
|
1342
|
-
return this.getObserversCount() > 0 && this.observers.some((e2) =>
|
|
1342
|
+
return this.getObserversCount() > 0 && this.observers.some((e2) => F(e2.options.staleTime, this) === `static`);
|
|
1343
1343
|
}
|
|
1344
1344
|
isStale() {
|
|
1345
1345
|
return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
1346
1346
|
}
|
|
1347
1347
|
isStaleByTime(e2 = 0) {
|
|
1348
|
-
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !
|
|
1348
|
+
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !zn(this.state.dataUpdatedAt, e2);
|
|
1349
1349
|
}
|
|
1350
1350
|
onFocus() {
|
|
1351
1351
|
this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
|
|
@@ -1380,7 +1380,7 @@ var yr = class extends pr {
|
|
|
1380
1380
|
let n2 = new AbortController(), r2 = (e3) => {
|
|
1381
1381
|
Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
|
|
1382
1382
|
}, i2 = () => {
|
|
1383
|
-
let e3 =
|
|
1383
|
+
let e3 = rr(this.options, t2), n3 = (() => {
|
|
1384
1384
|
let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
|
|
1385
1385
|
return r2(e4), e4;
|
|
1386
1386
|
})();
|
|
@@ -1389,8 +1389,8 @@ var yr = class extends pr {
|
|
|
1389
1389
|
let e3 = { fetchOptions: t2, options: this.options, queryKey: this.queryKey, client: this.#i, state: this.state, fetchFn: i2 };
|
|
1390
1390
|
return r2(e3), e3;
|
|
1391
1391
|
})();
|
|
1392
|
-
(this.#e === `infinite` ?
|
|
1393
|
-
e3 instanceof
|
|
1392
|
+
(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) => {
|
|
1393
|
+
e3 instanceof pr && e3.revert && this.setState({ ...this.#n, fetchStatus: `idle` }), n2.abort();
|
|
1394
1394
|
}, onFail: (e3, t3) => {
|
|
1395
1395
|
this.#l({ type: `failed`, failureCount: e3, error: t3 });
|
|
1396
1396
|
}, onPause: () => {
|
|
@@ -1403,7 +1403,7 @@ var yr = class extends pr {
|
|
|
1403
1403
|
if (e3 === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
1404
1404
|
return this.setData(e3), this.#r.config.onSuccess?.(e3, this), this.#r.config.onSettled?.(e3, this.state.error, this), e3;
|
|
1405
1405
|
} catch (e3) {
|
|
1406
|
-
if (e3 instanceof
|
|
1406
|
+
if (e3 instanceof pr) {
|
|
1407
1407
|
if (e3.silent) return this.#a.promise;
|
|
1408
1408
|
if (e3.revert) {
|
|
1409
1409
|
if (this.state.data === void 0) throw e3;
|
|
@@ -1425,9 +1425,9 @@ var yr = class extends pr {
|
|
|
1425
1425
|
case `continue`:
|
|
1426
1426
|
return { ...t3, fetchStatus: `fetching` };
|
|
1427
1427
|
case `fetch`:
|
|
1428
|
-
return { ...t3, ...
|
|
1428
|
+
return { ...t3, ...Sr(t3.data, this.options), fetchMeta: e2.meta ?? null };
|
|
1429
1429
|
case `success`:
|
|
1430
|
-
let n2 = { ...t3, ...
|
|
1430
|
+
let n2 = { ...t3, ...Cr(e2.data, e2.dataUpdatedAt), dataUpdateCount: t3.dataUpdateCount + 1, ...!e2.manual && { fetchStatus: `idle`, fetchFailureCount: 0, fetchFailureReason: null } };
|
|
1431
1431
|
return this.#n = e2.manual ? n2 : void 0, n2;
|
|
1432
1432
|
case `error`:
|
|
1433
1433
|
let r2 = e2.error;
|
|
@@ -1438,26 +1438,26 @@ var yr = class extends pr {
|
|
|
1438
1438
|
return { ...t3, ...e2.state };
|
|
1439
1439
|
}
|
|
1440
1440
|
};
|
|
1441
|
-
this.state = t2(this.state),
|
|
1441
|
+
this.state = t2(this.state), L.batch(() => {
|
|
1442
1442
|
this.observers.forEach((e3) => {
|
|
1443
1443
|
e3.onQueryUpdate();
|
|
1444
1444
|
}), this.#r.notify({ query: this, type: `updated`, action: e2 });
|
|
1445
1445
|
});
|
|
1446
1446
|
}
|
|
1447
1447
|
};
|
|
1448
|
-
function
|
|
1449
|
-
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus:
|
|
1448
|
+
function Sr(e2, t2) {
|
|
1449
|
+
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: fr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1450
1450
|
}
|
|
1451
|
-
function
|
|
1451
|
+
function Cr(e2, t2) {
|
|
1452
1452
|
return { data: e2, dataUpdatedAt: t2 ?? Date.now(), error: null, isInvalidated: false, status: `success` };
|
|
1453
1453
|
}
|
|
1454
|
-
function
|
|
1454
|
+
function wr(e2) {
|
|
1455
1455
|
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;
|
|
1456
1456
|
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` };
|
|
1457
1457
|
}
|
|
1458
|
-
var
|
|
1458
|
+
var Tr = class extends M {
|
|
1459
1459
|
constructor(e2, t2) {
|
|
1460
|
-
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o =
|
|
1460
|
+
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = sr(), this.bindMethods(), this.setOptions(t2);
|
|
1461
1461
|
}
|
|
1462
1462
|
#e;
|
|
1463
1463
|
#t = void 0;
|
|
@@ -1478,32 +1478,32 @@ var Cr = class extends Nn {
|
|
|
1478
1478
|
this.refetch = this.refetch.bind(this);
|
|
1479
1479
|
}
|
|
1480
1480
|
onSubscribe() {
|
|
1481
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1481
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Dr(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1482
1482
|
}
|
|
1483
1483
|
onUnsubscribe() {
|
|
1484
1484
|
this.hasListeners() || this.destroy();
|
|
1485
1485
|
}
|
|
1486
1486
|
shouldFetchOnReconnect() {
|
|
1487
|
-
return
|
|
1487
|
+
return Or(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1488
1488
|
}
|
|
1489
1489
|
shouldFetchOnWindowFocus() {
|
|
1490
|
-
return
|
|
1490
|
+
return Or(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1491
1491
|
}
|
|
1492
1492
|
destroy() {
|
|
1493
1493
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1494
1494
|
}
|
|
1495
1495
|
setOptions(e2) {
|
|
1496
1496
|
let t2 = this.options, n2 = this.#t;
|
|
1497
|
-
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof
|
|
1498
|
-
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !
|
|
1497
|
+
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`);
|
|
1498
|
+
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !qn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
|
|
1499
1499
|
let r2 = this.hasListeners();
|
|
1500
|
-
r2 &&
|
|
1500
|
+
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();
|
|
1501
1501
|
let i2 = this.#_();
|
|
1502
|
-
r2 && (this.#t !== n2 ||
|
|
1502
|
+
r2 && (this.#t !== n2 || I(this.options.enabled, this.#t) !== I(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
|
|
1503
1503
|
}
|
|
1504
1504
|
getOptimisticResult(e2) {
|
|
1505
1505
|
let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
|
|
1506
|
-
return
|
|
1506
|
+
return jr(this, n2) && (this.#r = n2, this.#a = this.options, this.#i = this.#t.state), n2;
|
|
1507
1507
|
}
|
|
1508
1508
|
getCurrentResult() {
|
|
1509
1509
|
return this.#r;
|
|
@@ -1530,14 +1530,14 @@ var Cr = class extends Nn {
|
|
|
1530
1530
|
#h(e2) {
|
|
1531
1531
|
this.#S();
|
|
1532
1532
|
let t2 = this.#t.fetch(this.options, e2);
|
|
1533
|
-
return e2?.throwOnError || (t2 = t2.catch(
|
|
1533
|
+
return e2?.throwOnError || (t2 = t2.catch(P)), t2;
|
|
1534
1534
|
}
|
|
1535
1535
|
#g() {
|
|
1536
1536
|
this.#b();
|
|
1537
|
-
let e2 =
|
|
1538
|
-
if (
|
|
1539
|
-
let t2 =
|
|
1540
|
-
this.#d =
|
|
1537
|
+
let e2 = F(this.options.staleTime, this.#t);
|
|
1538
|
+
if (or.isServer() || this.#r.isStale || !Rn(e2)) return;
|
|
1539
|
+
let t2 = zn(this.#r.dataUpdatedAt, e2) + 1;
|
|
1540
|
+
this.#d = N.setTimeout(() => {
|
|
1541
1541
|
this.#r.isStale || this.updateResult();
|
|
1542
1542
|
}, t2);
|
|
1543
1543
|
}
|
|
@@ -1545,47 +1545,47 @@ var Cr = class extends Nn {
|
|
|
1545
1545
|
return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
|
|
1546
1546
|
}
|
|
1547
1547
|
#v(e2) {
|
|
1548
|
-
this.#x(), this.#p = e2, !
|
|
1549
|
-
(this.options.refetchIntervalInBackground ||
|
|
1548
|
+
this.#x(), this.#p = e2, !or.isServer() && I(this.options.enabled, this.#t) !== false && Rn(this.#p) && this.#p !== 0 && (this.#f = N.setInterval(() => {
|
|
1549
|
+
(this.options.refetchIntervalInBackground || Nn.isFocused()) && this.#h();
|
|
1550
1550
|
}, this.#p));
|
|
1551
1551
|
}
|
|
1552
1552
|
#y() {
|
|
1553
1553
|
this.#g(), this.#v(this.#_());
|
|
1554
1554
|
}
|
|
1555
1555
|
#b() {
|
|
1556
|
-
this.#d !== void 0 && (
|
|
1556
|
+
this.#d !== void 0 && (N.clearTimeout(this.#d), this.#d = void 0);
|
|
1557
1557
|
}
|
|
1558
1558
|
#x() {
|
|
1559
|
-
this.#f !== void 0 && (
|
|
1559
|
+
this.#f !== void 0 && (N.clearInterval(this.#f), this.#f = void 0);
|
|
1560
1560
|
}
|
|
1561
1561
|
createResult(e2, t2) {
|
|
1562
1562
|
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;
|
|
1563
1563
|
if (t2._optimisticResults) {
|
|
1564
|
-
let i3 = this.hasListeners(), a3 = !i3 &&
|
|
1565
|
-
(a3 || o3) && (l2 = { ...l2, ...
|
|
1564
|
+
let i3 = this.hasListeners(), a3 = !i3 && Dr(e2, t2), o3 = i3 && kr(e2, n2, t2, r2);
|
|
1565
|
+
(a3 || o3) && (l2 = { ...l2, ...Sr(c2.data, e2.options) }), t2._optimisticResults === `isRestoring` && (l2.fetchStatus = `idle`);
|
|
1566
1566
|
}
|
|
1567
1567
|
let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
|
|
1568
1568
|
d2 = l2.data;
|
|
1569
|
-
let
|
|
1569
|
+
let h2 = false;
|
|
1570
1570
|
if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
|
|
1571
1571
|
let e3;
|
|
1572
|
-
i2?.isPlaceholderData && t2.placeholderData === o2?.placeholderData ? (e3 = i2.data,
|
|
1572
|
+
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);
|
|
1573
1573
|
}
|
|
1574
|
-
if (t2.select && d2 !== void 0 && !
|
|
1574
|
+
if (t2.select && d2 !== void 0 && !h2) {
|
|
1575
1575
|
if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
|
|
1576
1576
|
else try {
|
|
1577
|
-
this.#c = t2.select, d2 = t2.select(d2), d2 =
|
|
1577
|
+
this.#c = t2.select, d2 = t2.select(d2), d2 = Qn(i2?.data, d2, t2), this.#l = d2, this.#s = null;
|
|
1578
1578
|
} catch (e3) {
|
|
1579
1579
|
this.#s = e3;
|
|
1580
1580
|
}
|
|
1581
1581
|
}
|
|
1582
1582
|
this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
|
|
1583
|
-
let
|
|
1583
|
+
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 };
|
|
1584
1584
|
if (this.options.experimental_prefetchInRender) {
|
|
1585
1585
|
let t3 = v2.data !== void 0, r3 = v2.status === `error` && !t3, i3 = (e3) => {
|
|
1586
1586
|
r3 ? e3.reject(v2.error) : t3 && e3.resolve(v2.data);
|
|
1587
1587
|
}, a3 = () => {
|
|
1588
|
-
let e3 = this.#o = v2.promise =
|
|
1588
|
+
let e3 = this.#o = v2.promise = sr();
|
|
1589
1589
|
i3(e3);
|
|
1590
1590
|
}, o3 = this.#o;
|
|
1591
1591
|
switch (o3.status) {
|
|
@@ -1603,7 +1603,7 @@ var Cr = class extends Nn {
|
|
|
1603
1603
|
}
|
|
1604
1604
|
updateResult() {
|
|
1605
1605
|
let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
|
|
1606
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1606
|
+
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: (() => {
|
|
1607
1607
|
if (!e2) return true;
|
|
1608
1608
|
let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
|
|
1609
1609
|
if (n2 === `all` || !n2 && !this.#m.size) return true;
|
|
@@ -1624,36 +1624,36 @@ var Cr = class extends Nn {
|
|
|
1624
1624
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1625
1625
|
}
|
|
1626
1626
|
#C(e2) {
|
|
1627
|
-
|
|
1627
|
+
L.batch(() => {
|
|
1628
1628
|
e2.listeners && this.listeners.forEach((e3) => {
|
|
1629
1629
|
e3(this.#r);
|
|
1630
1630
|
}), this.#e.getQueryCache().notify({ query: this.#t, type: `observerResultsUpdated` });
|
|
1631
1631
|
});
|
|
1632
1632
|
}
|
|
1633
1633
|
};
|
|
1634
|
-
function
|
|
1635
|
-
return
|
|
1634
|
+
function Er(e2, t2) {
|
|
1635
|
+
return I(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || I(t2.retryOnMount, e2) !== false);
|
|
1636
1636
|
}
|
|
1637
|
-
function
|
|
1638
|
-
return
|
|
1637
|
+
function Dr(e2, t2) {
|
|
1638
|
+
return Er(e2, t2) || e2.state.data !== void 0 && Or(e2, t2, t2.refetchOnMount);
|
|
1639
1639
|
}
|
|
1640
|
-
function
|
|
1641
|
-
if (
|
|
1640
|
+
function Or(e2, t2, n2) {
|
|
1641
|
+
if (I(t2.enabled, e2) !== false && F(t2.staleTime, e2) !== `static`) {
|
|
1642
1642
|
let r2 = typeof n2 == `function` ? n2(e2) : n2;
|
|
1643
|
-
return r2 === `always` || r2 !== false &&
|
|
1643
|
+
return r2 === `always` || r2 !== false && Ar(e2, t2);
|
|
1644
1644
|
}
|
|
1645
1645
|
return false;
|
|
1646
1646
|
}
|
|
1647
|
-
function
|
|
1648
|
-
return (e2 !== t2 ||
|
|
1647
|
+
function kr(e2, t2, n2, r2) {
|
|
1648
|
+
return (e2 !== t2 || I(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && Ar(e2, n2);
|
|
1649
1649
|
}
|
|
1650
|
-
function
|
|
1651
|
-
return
|
|
1650
|
+
function Ar(e2, t2) {
|
|
1651
|
+
return I(t2.enabled, e2) !== false && e2.isStaleByTime(F(t2.staleTime, e2));
|
|
1652
1652
|
}
|
|
1653
|
-
function
|
|
1654
|
-
return !
|
|
1653
|
+
function jr(e2, t2) {
|
|
1654
|
+
return !qn(e2.getCurrentResult(), t2);
|
|
1655
1655
|
}
|
|
1656
|
-
var
|
|
1656
|
+
var Mr = class extends Tr {
|
|
1657
1657
|
constructor(e2, t2) {
|
|
1658
1658
|
super(e2, t2);
|
|
1659
1659
|
}
|
|
@@ -1674,16 +1674,16 @@ var Ar = class extends Cr {
|
|
|
1674
1674
|
}
|
|
1675
1675
|
createResult(e2, t2) {
|
|
1676
1676
|
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`;
|
|
1677
|
-
return { ...r2, fetchNextPage: this.fetchNextPage, fetchPreviousPage: this.fetchPreviousPage, hasNextPage:
|
|
1677
|
+
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 };
|
|
1678
1678
|
}
|
|
1679
1679
|
};
|
|
1680
|
-
var
|
|
1680
|
+
var Nr = class extends hr {
|
|
1681
1681
|
#e;
|
|
1682
1682
|
#t;
|
|
1683
1683
|
#n;
|
|
1684
1684
|
#r;
|
|
1685
1685
|
constructor(e2) {
|
|
1686
|
-
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state ||
|
|
1686
|
+
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();
|
|
1687
1687
|
}
|
|
1688
1688
|
setOptions(e2) {
|
|
1689
1689
|
this.options = e2, this.updateGcTime(this.options.gcTime);
|
|
@@ -1707,7 +1707,7 @@ var jr = class extends pr {
|
|
|
1707
1707
|
let t2 = () => {
|
|
1708
1708
|
this.#i({ type: `continue` });
|
|
1709
1709
|
}, n2 = { client: this.#e, meta: this.options.meta, mutationKey: this.options.mutationKey };
|
|
1710
|
-
this.#r =
|
|
1710
|
+
this.#r = mr({ fn: () => this.options.mutationFn ? this.options.mutationFn(e2, n2) : Promise.reject(Error(`No mutationFn found`)), onFail: (e3, t3) => {
|
|
1711
1711
|
this.#i({ type: `failed`, failureCount: e3, error: t3 });
|
|
1712
1712
|
}, onPause: () => {
|
|
1713
1713
|
this.#i({ type: `pause` });
|
|
@@ -1765,17 +1765,17 @@ var jr = class extends pr {
|
|
|
1765
1765
|
return { ...t3, data: void 0, error: e2.error, failureCount: t3.failureCount + 1, failureReason: e2.error, isPaused: false, status: `error` };
|
|
1766
1766
|
}
|
|
1767
1767
|
};
|
|
1768
|
-
this.state = t2(this.state),
|
|
1768
|
+
this.state = t2(this.state), L.batch(() => {
|
|
1769
1769
|
this.#t.forEach((t3) => {
|
|
1770
1770
|
t3.onMutationUpdate(e2);
|
|
1771
1771
|
}), this.#n.notify({ mutation: this, type: `updated`, action: e2 });
|
|
1772
1772
|
});
|
|
1773
1773
|
}
|
|
1774
1774
|
};
|
|
1775
|
-
function
|
|
1775
|
+
function Pr() {
|
|
1776
1776
|
return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
|
|
1777
1777
|
}
|
|
1778
|
-
var
|
|
1778
|
+
var Fr = class extends M {
|
|
1779
1779
|
constructor(e2 = {}) {
|
|
1780
1780
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1781
1781
|
}
|
|
@@ -1783,12 +1783,12 @@ var Nr = class extends Nn {
|
|
|
1783
1783
|
#t;
|
|
1784
1784
|
#n;
|
|
1785
1785
|
build(e2, t2, n2) {
|
|
1786
|
-
let r2 = new
|
|
1786
|
+
let r2 = new Nr({ client: e2, mutationCache: this, mutationId: ++this.#n, options: e2.defaultMutationOptions(t2), state: n2 });
|
|
1787
1787
|
return this.add(r2), r2;
|
|
1788
1788
|
}
|
|
1789
1789
|
add(e2) {
|
|
1790
1790
|
this.#e.add(e2);
|
|
1791
|
-
let t2 =
|
|
1791
|
+
let t2 = Ir(e2);
|
|
1792
1792
|
if (typeof t2 == `string`) {
|
|
1793
1793
|
let n2 = this.#t.get(t2);
|
|
1794
1794
|
n2 ? n2.push(e2) : this.#t.set(t2, [e2]);
|
|
@@ -1797,7 +1797,7 @@ var Nr = class extends Nn {
|
|
|
1797
1797
|
}
|
|
1798
1798
|
remove(e2) {
|
|
1799
1799
|
if (this.#e.delete(e2)) {
|
|
1800
|
-
let t2 =
|
|
1800
|
+
let t2 = Ir(e2);
|
|
1801
1801
|
if (typeof t2 == `string`) {
|
|
1802
1802
|
let n2 = this.#t.get(t2);
|
|
1803
1803
|
if (n2) {
|
|
@@ -1811,7 +1811,7 @@ var Nr = class extends Nn {
|
|
|
1811
1811
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1812
1812
|
}
|
|
1813
1813
|
canRun(e2) {
|
|
1814
|
-
let t2 =
|
|
1814
|
+
let t2 = Ir(e2);
|
|
1815
1815
|
if (typeof t2 == `string`) {
|
|
1816
1816
|
let n2 = this.#t.get(t2)?.find((e3) => e3.state.status === `pending`);
|
|
1817
1817
|
return !n2 || n2 === e2;
|
|
@@ -1819,11 +1819,11 @@ var Nr = class extends Nn {
|
|
|
1819
1819
|
return true;
|
|
1820
1820
|
}
|
|
1821
1821
|
runNext(e2) {
|
|
1822
|
-
let t2 =
|
|
1822
|
+
let t2 = Ir(e2);
|
|
1823
1823
|
return typeof t2 == `string` ? this.#t.get(t2)?.find((t3) => t3 !== e2 && t3.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1824
1824
|
}
|
|
1825
1825
|
clear() {
|
|
1826
|
-
|
|
1826
|
+
L.batch(() => {
|
|
1827
1827
|
this.#e.forEach((e2) => {
|
|
1828
1828
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1829
1829
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -1834,13 +1834,13 @@ var Nr = class extends Nn {
|
|
|
1834
1834
|
}
|
|
1835
1835
|
find(e2) {
|
|
1836
1836
|
let t2 = { exact: true, ...e2 };
|
|
1837
|
-
return this.getAll().find((e3) =>
|
|
1837
|
+
return this.getAll().find((e3) => Vn(t2, e3));
|
|
1838
1838
|
}
|
|
1839
1839
|
findAll(e2 = {}) {
|
|
1840
|
-
return this.getAll().filter((t2) =>
|
|
1840
|
+
return this.getAll().filter((t2) => Vn(e2, t2));
|
|
1841
1841
|
}
|
|
1842
1842
|
notify(e2) {
|
|
1843
|
-
|
|
1843
|
+
L.batch(() => {
|
|
1844
1844
|
this.listeners.forEach((t2) => {
|
|
1845
1845
|
t2(e2);
|
|
1846
1846
|
});
|
|
@@ -1848,20 +1848,136 @@ var Nr = class extends Nn {
|
|
|
1848
1848
|
}
|
|
1849
1849
|
resumePausedMutations() {
|
|
1850
1850
|
let e2 = this.getAll().filter((e3) => e3.state.isPaused);
|
|
1851
|
-
return
|
|
1851
|
+
return L.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(P))));
|
|
1852
1852
|
}
|
|
1853
1853
|
};
|
|
1854
|
-
function
|
|
1854
|
+
function Ir(e2) {
|
|
1855
1855
|
return e2.options.scope?.id;
|
|
1856
1856
|
}
|
|
1857
|
-
|
|
1857
|
+
function Lr(e2, t2) {
|
|
1858
|
+
let n2 = new Set(t2);
|
|
1859
|
+
return e2.filter((e3) => !n2.has(e3));
|
|
1860
|
+
}
|
|
1861
|
+
function Rr(e2, t2, n2) {
|
|
1862
|
+
let r2 = e2.slice(0);
|
|
1863
|
+
return r2[t2] = n2, r2;
|
|
1864
|
+
}
|
|
1865
|
+
var zr = class extends M {
|
|
1866
|
+
#e;
|
|
1867
|
+
#t;
|
|
1868
|
+
#n;
|
|
1869
|
+
#r;
|
|
1870
|
+
#i;
|
|
1871
|
+
#a;
|
|
1872
|
+
#o;
|
|
1873
|
+
#s;
|
|
1874
|
+
#c;
|
|
1875
|
+
#l = [];
|
|
1876
|
+
constructor(e2, t2, n2) {
|
|
1877
|
+
super(), this.#e = e2, this.#r = n2, this.#n = [], this.#i = [], this.#t = [], this.setQueries(t2);
|
|
1878
|
+
}
|
|
1879
|
+
onSubscribe() {
|
|
1880
|
+
this.listeners.size === 1 && this.#i.forEach((e2) => {
|
|
1881
|
+
e2.subscribe((t2) => {
|
|
1882
|
+
this.#m(e2, t2);
|
|
1883
|
+
});
|
|
1884
|
+
});
|
|
1885
|
+
}
|
|
1886
|
+
onUnsubscribe() {
|
|
1887
|
+
this.listeners.size || this.destroy();
|
|
1888
|
+
}
|
|
1889
|
+
destroy() {
|
|
1890
|
+
this.listeners = /* @__PURE__ */ new Set(), this.#i.forEach((e2) => {
|
|
1891
|
+
e2.destroy();
|
|
1892
|
+
});
|
|
1893
|
+
}
|
|
1894
|
+
setQueries(e2, t2) {
|
|
1895
|
+
this.#n = e2, this.#r = t2, L.batch(() => {
|
|
1896
|
+
let e3 = this.#i, t3 = this.#p(this.#n);
|
|
1897
|
+
t3.forEach((e4) => e4.observer.setOptions(e4.defaultedQueryOptions));
|
|
1898
|
+
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) => {
|
|
1899
|
+
let n3 = this.#t[t4];
|
|
1900
|
+
return !n3 || !qn(e4, n3);
|
|
1901
|
+
});
|
|
1902
|
+
(o2 || s2) && (o2 && (this.#l = t3, this.#i = n2), this.#t = r2, this.hasListeners() && (o2 && (Lr(e3, n2).forEach((e4) => {
|
|
1903
|
+
e4.destroy();
|
|
1904
|
+
}), Lr(n2, e3).forEach((e4) => {
|
|
1905
|
+
e4.subscribe((t4) => {
|
|
1906
|
+
this.#m(e4, t4);
|
|
1907
|
+
});
|
|
1908
|
+
})), this.#h()));
|
|
1909
|
+
});
|
|
1910
|
+
}
|
|
1911
|
+
getCurrentResult() {
|
|
1912
|
+
return this.#t;
|
|
1913
|
+
}
|
|
1914
|
+
getQueries() {
|
|
1915
|
+
return this.#i.map((e2) => e2.getCurrentQuery());
|
|
1916
|
+
}
|
|
1917
|
+
getObservers() {
|
|
1918
|
+
return this.#i;
|
|
1919
|
+
}
|
|
1920
|
+
getOptimisticResult(e2, t2) {
|
|
1921
|
+
let n2 = this.#p(e2), r2 = n2.map((e3) => e3.observer.getOptimisticResult(e3.defaultedQueryOptions)), i2 = n2.map((e3) => e3.defaultedQueryOptions.queryHash);
|
|
1922
|
+
return [r2, (e3) => this.#d(e3 ?? r2, t2, i2), () => this.#u(r2, n2)];
|
|
1923
|
+
}
|
|
1924
|
+
#u(e2, t2) {
|
|
1925
|
+
return t2.map((n2, r2) => {
|
|
1926
|
+
let i2 = e2[r2];
|
|
1927
|
+
return n2.defaultedQueryOptions.notifyOnChangeProps ? i2 : n2.observer.trackResult(i2, (e3) => {
|
|
1928
|
+
t2.forEach((t3) => {
|
|
1929
|
+
t3.observer.trackProp(e3);
|
|
1930
|
+
});
|
|
1931
|
+
});
|
|
1932
|
+
});
|
|
1933
|
+
}
|
|
1934
|
+
#d(e2, t2, n2) {
|
|
1935
|
+
if (t2) {
|
|
1936
|
+
let r2 = this.#c, i2 = n2 !== void 0 && r2 !== void 0 && (r2.length !== n2.length || n2.some((e3, t3) => e3 !== r2[t3]));
|
|
1937
|
+
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;
|
|
1938
|
+
}
|
|
1939
|
+
return e2;
|
|
1940
|
+
}
|
|
1941
|
+
#f() {
|
|
1942
|
+
return this.#r?.combine !== void 0 && this.#i.some((e2, t2) => e2.options.suspense && this.#t[t2]?.data === void 0);
|
|
1943
|
+
}
|
|
1944
|
+
#p(e2) {
|
|
1945
|
+
let t2 = /* @__PURE__ */ new Map();
|
|
1946
|
+
this.#i.forEach((e3) => {
|
|
1947
|
+
let n3 = e3.options.queryHash;
|
|
1948
|
+
if (!n3) return;
|
|
1949
|
+
let r2 = t2.get(n3);
|
|
1950
|
+
r2 ? r2.push(e3) : t2.set(n3, [e3]);
|
|
1951
|
+
});
|
|
1952
|
+
let n2 = [];
|
|
1953
|
+
return e2.forEach((e3) => {
|
|
1954
|
+
let r2 = this.#e.defaultQueryOptions(e3), i2 = t2.get(r2.queryHash)?.shift() ?? new Tr(this.#e, r2);
|
|
1955
|
+
n2.push({ defaultedQueryOptions: r2, observer: i2 });
|
|
1956
|
+
}), n2;
|
|
1957
|
+
}
|
|
1958
|
+
#m(e2, t2) {
|
|
1959
|
+
let n2 = this.#i.indexOf(e2);
|
|
1960
|
+
n2 !== -1 && (this.#t = Rr(this.#t, n2, t2), this.#h());
|
|
1961
|
+
}
|
|
1962
|
+
#h() {
|
|
1963
|
+
if (this.hasListeners()) {
|
|
1964
|
+
let e2 = this.#u(this.#t, this.#l), t2 = this.#f(), n2 = this.#a, r2 = t2 ? n2 : this.#d(e2, this.#r?.combine);
|
|
1965
|
+
(t2 || n2 !== r2) && L.batch(() => {
|
|
1966
|
+
this.listeners.forEach((e3) => {
|
|
1967
|
+
e3(this.#t);
|
|
1968
|
+
});
|
|
1969
|
+
});
|
|
1970
|
+
}
|
|
1971
|
+
}
|
|
1972
|
+
};
|
|
1973
|
+
var Br = class extends M {
|
|
1858
1974
|
constructor(e2 = {}) {
|
|
1859
1975
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
|
|
1860
1976
|
}
|
|
1861
1977
|
#e;
|
|
1862
1978
|
build(e2, t2, n2) {
|
|
1863
|
-
let r2 = t2.queryKey, i2 = t2.queryHash ??
|
|
1864
|
-
return a2 || (a2 = new
|
|
1979
|
+
let r2 = t2.queryKey, i2 = t2.queryHash ?? Hn(r2, t2), a2 = this.get(i2);
|
|
1980
|
+
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;
|
|
1865
1981
|
}
|
|
1866
1982
|
add(e2) {
|
|
1867
1983
|
this.#e.has(e2.queryHash) || (this.#e.set(e2.queryHash, e2), this.notify({ type: `added`, query: e2 }));
|
|
@@ -1871,7 +1987,7 @@ var Fr = class extends Nn {
|
|
|
1871
1987
|
t2 && (e2.destroy(), t2 === e2 && this.#e.delete(e2.queryHash), this.notify({ type: `removed`, query: e2 }));
|
|
1872
1988
|
}
|
|
1873
1989
|
clear() {
|
|
1874
|
-
|
|
1990
|
+
L.batch(() => {
|
|
1875
1991
|
this.getAll().forEach((e2) => {
|
|
1876
1992
|
this.remove(e2);
|
|
1877
1993
|
});
|
|
@@ -1885,35 +2001,35 @@ var Fr = class extends Nn {
|
|
|
1885
2001
|
}
|
|
1886
2002
|
find(e2) {
|
|
1887
2003
|
let t2 = { exact: true, ...e2 };
|
|
1888
|
-
return this.getAll().find((e3) =>
|
|
2004
|
+
return this.getAll().find((e3) => Bn(t2, e3));
|
|
1889
2005
|
}
|
|
1890
2006
|
findAll(e2 = {}) {
|
|
1891
2007
|
let t2 = this.getAll();
|
|
1892
|
-
return Object.keys(e2).length > 0 ? t2.filter((t3) =>
|
|
2008
|
+
return Object.keys(e2).length > 0 ? t2.filter((t3) => Bn(e2, t3)) : t2;
|
|
1893
2009
|
}
|
|
1894
2010
|
notify(e2) {
|
|
1895
|
-
|
|
2011
|
+
L.batch(() => {
|
|
1896
2012
|
this.listeners.forEach((t2) => {
|
|
1897
2013
|
t2(e2);
|
|
1898
2014
|
});
|
|
1899
2015
|
});
|
|
1900
2016
|
}
|
|
1901
2017
|
onFocus() {
|
|
1902
|
-
|
|
2018
|
+
L.batch(() => {
|
|
1903
2019
|
this.getAll().forEach((e2) => {
|
|
1904
2020
|
e2.onFocus();
|
|
1905
2021
|
});
|
|
1906
2022
|
});
|
|
1907
2023
|
}
|
|
1908
2024
|
onOnline() {
|
|
1909
|
-
|
|
2025
|
+
L.batch(() => {
|
|
1910
2026
|
this.getAll().forEach((e2) => {
|
|
1911
2027
|
e2.onOnline();
|
|
1912
2028
|
});
|
|
1913
2029
|
});
|
|
1914
2030
|
}
|
|
1915
2031
|
};
|
|
1916
|
-
var
|
|
2032
|
+
var Vr = class {
|
|
1917
2033
|
#e;
|
|
1918
2034
|
#t;
|
|
1919
2035
|
#n;
|
|
@@ -1923,12 +2039,12 @@ var Ir = class {
|
|
|
1923
2039
|
#o;
|
|
1924
2040
|
#s;
|
|
1925
2041
|
constructor(e2 = {}) {
|
|
1926
|
-
this.#e = e2.queryCache || new
|
|
2042
|
+
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;
|
|
1927
2043
|
}
|
|
1928
2044
|
mount() {
|
|
1929
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
2045
|
+
this.#a++, this.#a === 1 && (this.#o = Nn.subscribe(async (e2) => {
|
|
1930
2046
|
e2 && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1931
|
-
}), this.#s =
|
|
2047
|
+
}), this.#s = ur.subscribe(async (e2) => {
|
|
1932
2048
|
e2 && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1933
2049
|
}));
|
|
1934
2050
|
}
|
|
@@ -1947,17 +2063,17 @@ var Ir = class {
|
|
|
1947
2063
|
}
|
|
1948
2064
|
ensureQueryData(e2) {
|
|
1949
2065
|
let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
|
|
1950
|
-
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(
|
|
2066
|
+
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(F(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
|
|
1951
2067
|
}
|
|
1952
2068
|
getQueriesData(e2) {
|
|
1953
2069
|
return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
|
|
1954
2070
|
}
|
|
1955
2071
|
setQueryData(e2, t2, n2) {
|
|
1956
|
-
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 =
|
|
2072
|
+
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = Ln(t2, i2);
|
|
1957
2073
|
if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
|
|
1958
2074
|
}
|
|
1959
2075
|
setQueriesData(e2, t2, n2) {
|
|
1960
|
-
return
|
|
2076
|
+
return L.batch(() => this.#e.findAll(e2).map(({ queryKey: e3 }) => [e3, this.setQueryData(e3, t2, n2)]));
|
|
1961
2077
|
}
|
|
1962
2078
|
getQueryState(e2) {
|
|
1963
2079
|
let t2 = this.defaultQueryOptions({ queryKey: e2 });
|
|
@@ -1965,7 +2081,7 @@ var Ir = class {
|
|
|
1965
2081
|
}
|
|
1966
2082
|
removeQueries(e2) {
|
|
1967
2083
|
let t2 = this.#e;
|
|
1968
|
-
|
|
2084
|
+
L.batch(() => {
|
|
1969
2085
|
t2.findAll(e2).forEach((e3) => {
|
|
1970
2086
|
t2.remove(e3);
|
|
1971
2087
|
});
|
|
@@ -1973,46 +2089,46 @@ var Ir = class {
|
|
|
1973
2089
|
}
|
|
1974
2090
|
resetQueries(e2, t2) {
|
|
1975
2091
|
let n2 = this.#e;
|
|
1976
|
-
return
|
|
2092
|
+
return L.batch(() => (n2.findAll(e2).forEach((e3) => {
|
|
1977
2093
|
e3.reset();
|
|
1978
2094
|
}), this.refetchQueries({ type: `active`, ...e2 }, t2)));
|
|
1979
2095
|
}
|
|
1980
2096
|
cancelQueries(e2, t2 = {}) {
|
|
1981
|
-
let n2 = { revert: true, ...t2 }, r2 =
|
|
1982
|
-
return Promise.all(r2).then(
|
|
2097
|
+
let n2 = { revert: true, ...t2 }, r2 = L.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
|
|
2098
|
+
return Promise.all(r2).then(P).catch(P);
|
|
1983
2099
|
}
|
|
1984
2100
|
invalidateQueries(e2, t2 = {}) {
|
|
1985
|
-
return
|
|
2101
|
+
return L.batch(() => (this.#e.findAll(e2).forEach((e3) => {
|
|
1986
2102
|
e3.invalidate();
|
|
1987
2103
|
}), e2?.refetchType === `none` ? Promise.resolve() : this.refetchQueries({ ...e2, type: e2?.refetchType ?? e2?.type ?? `active` }, t2)));
|
|
1988
2104
|
}
|
|
1989
2105
|
refetchQueries(e2, t2 = {}) {
|
|
1990
|
-
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 =
|
|
2106
|
+
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = L.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
|
|
1991
2107
|
let t3 = e3.fetch(void 0, n2);
|
|
1992
|
-
return n2.throwOnError || (t3 = t3.catch(
|
|
2108
|
+
return n2.throwOnError || (t3 = t3.catch(P)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
|
|
1993
2109
|
}));
|
|
1994
|
-
return Promise.all(r2).then(
|
|
2110
|
+
return Promise.all(r2).then(P);
|
|
1995
2111
|
}
|
|
1996
2112
|
fetchQuery(e2) {
|
|
1997
2113
|
let t2 = this.defaultQueryOptions(e2);
|
|
1998
2114
|
t2.retry === void 0 && (t2.retry = false);
|
|
1999
2115
|
let n2 = this.#e.build(this, t2);
|
|
2000
|
-
return n2.isStaleByTime(
|
|
2116
|
+
return n2.isStaleByTime(F(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
|
|
2001
2117
|
}
|
|
2002
2118
|
prefetchQuery(e2) {
|
|
2003
|
-
return this.fetchQuery(e2).then(
|
|
2119
|
+
return this.fetchQuery(e2).then(P).catch(P);
|
|
2004
2120
|
}
|
|
2005
2121
|
fetchInfiniteQuery(e2) {
|
|
2006
2122
|
return e2._type = `infinite`, this.fetchQuery(e2);
|
|
2007
2123
|
}
|
|
2008
2124
|
prefetchInfiniteQuery(e2) {
|
|
2009
|
-
return this.fetchInfiniteQuery(e2).then(
|
|
2125
|
+
return this.fetchInfiniteQuery(e2).then(P).catch(P);
|
|
2010
2126
|
}
|
|
2011
2127
|
ensureInfiniteQueryData(e2) {
|
|
2012
2128
|
return e2._type = `infinite`, this.ensureQueryData(e2);
|
|
2013
2129
|
}
|
|
2014
2130
|
resumePausedMutations() {
|
|
2015
|
-
return
|
|
2131
|
+
return ur.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
2016
2132
|
}
|
|
2017
2133
|
getQueryCache() {
|
|
2018
2134
|
return this.#e;
|
|
@@ -2027,27 +2143,27 @@ var Ir = class {
|
|
|
2027
2143
|
this.#n = e2;
|
|
2028
2144
|
}
|
|
2029
2145
|
setQueryDefaults(e2, t2) {
|
|
2030
|
-
this.#r.set(
|
|
2146
|
+
this.#r.set(Un(e2), { queryKey: e2, defaultOptions: t2 });
|
|
2031
2147
|
}
|
|
2032
2148
|
getQueryDefaults(e2) {
|
|
2033
2149
|
let t2 = [...this.#r.values()], n2 = {};
|
|
2034
2150
|
return t2.forEach((t3) => {
|
|
2035
|
-
|
|
2151
|
+
Wn(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
|
|
2036
2152
|
}), n2;
|
|
2037
2153
|
}
|
|
2038
2154
|
setMutationDefaults(e2, t2) {
|
|
2039
|
-
this.#i.set(
|
|
2155
|
+
this.#i.set(Un(e2), { mutationKey: e2, defaultOptions: t2 });
|
|
2040
2156
|
}
|
|
2041
2157
|
getMutationDefaults(e2) {
|
|
2042
2158
|
let t2 = [...this.#i.values()], n2 = {};
|
|
2043
2159
|
return t2.forEach((t3) => {
|
|
2044
|
-
|
|
2160
|
+
Wn(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
|
|
2045
2161
|
}), n2;
|
|
2046
2162
|
}
|
|
2047
2163
|
defaultQueryOptions(e2) {
|
|
2048
2164
|
if (e2._defaulted) return e2;
|
|
2049
2165
|
let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
|
|
2050
|
-
return t2.queryHash ||=
|
|
2166
|
+
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;
|
|
2051
2167
|
}
|
|
2052
2168
|
defaultMutationOptions(e2) {
|
|
2053
2169
|
return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
|
|
@@ -2056,20 +2172,20 @@ var Ir = class {
|
|
|
2056
2172
|
this.#e.clear(), this.#t.clear();
|
|
2057
2173
|
}
|
|
2058
2174
|
};
|
|
2059
|
-
var
|
|
2060
|
-
var
|
|
2061
|
-
let n2 = e.useContext(
|
|
2175
|
+
var Hr = e.createContext(void 0);
|
|
2176
|
+
var Ur = (t2) => {
|
|
2177
|
+
let n2 = e.useContext(Hr);
|
|
2062
2178
|
if (t2) return t2;
|
|
2063
2179
|
if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
|
|
2064
2180
|
return n2;
|
|
2065
2181
|
};
|
|
2066
|
-
var
|
|
2182
|
+
var Wr = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
|
|
2067
2183
|
t2.unmount();
|
|
2068
|
-
}), [t2]),
|
|
2069
|
-
var
|
|
2070
|
-
var
|
|
2071
|
-
|
|
2072
|
-
function
|
|
2184
|
+
}), [t2]), s(Hr.Provider, { value: t2, children: n2 }));
|
|
2185
|
+
var Gr = e.createContext(false);
|
|
2186
|
+
var Kr = () => e.useContext(Gr);
|
|
2187
|
+
Gr.Provider;
|
|
2188
|
+
function qr() {
|
|
2073
2189
|
let e2 = false;
|
|
2074
2190
|
return { clearReset: () => {
|
|
2075
2191
|
e2 = false;
|
|
@@ -2077,61 +2193,87 @@ function Hr() {
|
|
|
2077
2193
|
e2 = true;
|
|
2078
2194
|
}, isReset: () => e2 };
|
|
2079
2195
|
}
|
|
2080
|
-
var
|
|
2081
|
-
var
|
|
2082
|
-
var
|
|
2083
|
-
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ?
|
|
2196
|
+
var Jr = e.createContext(qr());
|
|
2197
|
+
var Yr = () => e.useContext(Jr);
|
|
2198
|
+
var Xr = (e2, t2, n2) => {
|
|
2199
|
+
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
|
|
2084
2200
|
(e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
|
|
2085
2201
|
};
|
|
2086
|
-
var
|
|
2202
|
+
var Zr = (t2) => {
|
|
2087
2203
|
e.useEffect(() => {
|
|
2088
2204
|
t2.clearReset();
|
|
2089
2205
|
}, [t2]);
|
|
2090
2206
|
};
|
|
2091
|
-
var
|
|
2092
|
-
var
|
|
2207
|
+
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]));
|
|
2208
|
+
var $r = (e2) => {
|
|
2093
2209
|
if (e2.suspense) {
|
|
2094
2210
|
let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
|
|
2095
2211
|
e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
|
|
2096
2212
|
}
|
|
2097
2213
|
};
|
|
2098
|
-
var
|
|
2099
|
-
var
|
|
2100
|
-
var
|
|
2214
|
+
var ei = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
|
|
2215
|
+
var ti = (e2, t2) => e2?.suspense && t2.isPending;
|
|
2216
|
+
var ni = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
|
|
2101
2217
|
n2.clearReset();
|
|
2102
2218
|
});
|
|
2103
|
-
function
|
|
2104
|
-
let i2 =
|
|
2219
|
+
function ri({ queries: t2, ...n2 }, r2) {
|
|
2220
|
+
let i2 = Ur(r2), a2 = Kr(), o2 = Yr(), s2 = e.useMemo(() => t2.map((e2) => {
|
|
2221
|
+
let t3 = i2.defaultQueryOptions(e2);
|
|
2222
|
+
return t3._optimisticResults = a2 ? `isRestoring` : `optimistic`, t3;
|
|
2223
|
+
}), [t2, i2, a2]);
|
|
2224
|
+
s2.forEach((e2) => {
|
|
2225
|
+
$r(e2);
|
|
2226
|
+
let t3 = i2.getQueryCache().get(e2.queryHash);
|
|
2227
|
+
Xr(e2, o2, t3);
|
|
2228
|
+
}), Zr(o2);
|
|
2229
|
+
let [c2] = e.useState(() => new zr(i2, s2, n2)), [l2, u2, d2] = c2.getOptimisticResult(s2, n2.combine), f2 = !a2 && n2.subscribed !== false;
|
|
2230
|
+
e.useSyncExternalStore(e.useCallback((e2) => f2 ? c2.subscribe(L.batchCalls(e2)) : P, [c2, f2]), () => c2.getCurrentResult(), () => c2.getCurrentResult()), e.useEffect(() => {
|
|
2231
|
+
c2.setQueries(s2, n2);
|
|
2232
|
+
}, [s2, n2, c2]);
|
|
2233
|
+
let p2 = l2.some((e2, t3) => ti(s2[t3], e2)) ? l2.flatMap((e2, t3) => {
|
|
2234
|
+
let n3 = s2[t3];
|
|
2235
|
+
return n3 && ti(n3, e2) ? ni(n3, new Tr(i2, n3), o2) : [];
|
|
2236
|
+
}) : [];
|
|
2237
|
+
if (p2.length > 0) throw Promise.all(p2);
|
|
2238
|
+
let m2 = l2.find((e2, t3) => {
|
|
2239
|
+
let n3 = s2[t3];
|
|
2240
|
+
return n3 && Qr({ result: e2, errorResetBoundary: o2, throwOnError: n3.throwOnError, query: i2.getQueryCache().get(n3.queryHash), suspense: n3.suspense });
|
|
2241
|
+
});
|
|
2242
|
+
if (m2?.error) throw m2.error;
|
|
2243
|
+
return u2(d2());
|
|
2244
|
+
}
|
|
2245
|
+
function ii(t2, n2, r2) {
|
|
2246
|
+
let i2 = Kr(), a2 = Yr(), o2 = Ur(r2), s2 = o2.defaultQueryOptions(t2);
|
|
2105
2247
|
o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
|
|
2106
2248
|
let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
|
|
2107
|
-
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0,
|
|
2249
|
+
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, $r(s2), Xr(s2, a2, c2), Zr(a2);
|
|
2108
2250
|
let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
|
|
2109
2251
|
if (e.useSyncExternalStore(e.useCallback((e2) => {
|
|
2110
|
-
let t3 = p2 ? d2.subscribe(
|
|
2252
|
+
let t3 = p2 ? d2.subscribe(L.batchCalls(e2)) : P;
|
|
2111
2253
|
return d2.updateResult(), t3;
|
|
2112
2254
|
}, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
|
|
2113
2255
|
d2.setOptions(s2);
|
|
2114
|
-
}, [s2, d2]),
|
|
2115
|
-
if (
|
|
2116
|
-
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !
|
|
2256
|
+
}, [s2, d2]), ti(s2, f2)) throw ni(s2, d2, a2);
|
|
2257
|
+
if (Qr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
|
|
2258
|
+
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(() => {
|
|
2117
2259
|
d2.updateResult();
|
|
2118
2260
|
}), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
|
|
2119
2261
|
}
|
|
2120
|
-
function
|
|
2121
|
-
return
|
|
2262
|
+
function ai(e2, t2) {
|
|
2263
|
+
return ii(e2, Mr, t2);
|
|
2122
2264
|
}
|
|
2123
|
-
function
|
|
2265
|
+
function oi(e2) {
|
|
2124
2266
|
return e2;
|
|
2125
2267
|
}
|
|
2126
|
-
var
|
|
2127
|
-
var
|
|
2128
|
-
`${
|
|
2129
|
-
var
|
|
2268
|
+
var si = oi(`@wix/site-service-url`);
|
|
2269
|
+
var ci = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
|
|
2270
|
+
`${ci}`, `${ci}`;
|
|
2271
|
+
var li = function(e2) {
|
|
2130
2272
|
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;
|
|
2131
2273
|
}({});
|
|
2132
|
-
var
|
|
2133
|
-
let e2 =
|
|
2134
|
-
let r2 = e2.appSectionRelativeUrl(
|
|
2274
|
+
var ui = () => {
|
|
2275
|
+
let e2 = d(si), t2 = n((t3, n2) => {
|
|
2276
|
+
let r2 = e2.appSectionRelativeUrl(ci, t3, true);
|
|
2135
2277
|
if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n2)}`;
|
|
2136
2278
|
}, [e2]);
|
|
2137
2279
|
return { getPageRelativeUrl: t2, getPageAbsoluteUrl: n((n2, r2) => {
|
|
@@ -2139,19 +2281,19 @@ var ii = () => {
|
|
|
2139
2281
|
if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
|
|
2140
2282
|
}, [t2, e2]) };
|
|
2141
2283
|
};
|
|
2142
|
-
function
|
|
2143
|
-
let { getPageAbsoluteUrl: t2 } =
|
|
2284
|
+
function di(e2) {
|
|
2285
|
+
let { getPageAbsoluteUrl: t2 } = ui(), n2 = r(() => {
|
|
2144
2286
|
if (!e2.slug) return;
|
|
2145
|
-
let n3 = t2(
|
|
2287
|
+
let n3 = t2(li.CATEGORY_PAGE, e2.slug);
|
|
2146
2288
|
return n3 ? { href: n3 } : void 0;
|
|
2147
2289
|
}, [e2.slug, t2]);
|
|
2148
2290
|
return r(() => ({ 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]);
|
|
2149
2291
|
}
|
|
2150
|
-
function
|
|
2292
|
+
function fi(e2) {
|
|
2151
2293
|
let { category: t2 } = e2;
|
|
2152
|
-
return
|
|
2294
|
+
return di(t2);
|
|
2153
2295
|
}
|
|
2154
|
-
function
|
|
2296
|
+
function pi(e2) {
|
|
2155
2297
|
if (e2.status === `fulfilled`) return e2.value;
|
|
2156
2298
|
throw e2.status === `rejected` ? e2.reason : e2.status === `pending` ? e2 : (e2.status = `pending`, e2.then((t2) => {
|
|
2157
2299
|
e2.status = `fulfilled`, e2.value = t2;
|
|
@@ -2159,61 +2301,61 @@ function si(e2) {
|
|
|
2159
2301
|
e2.status = `rejected`, e2.reason = t2;
|
|
2160
2302
|
}), e2);
|
|
2161
2303
|
}
|
|
2162
|
-
var
|
|
2163
|
-
function
|
|
2164
|
-
return
|
|
2165
|
-
|
|
2304
|
+
var mi = /* @__PURE__ */ new Set();
|
|
2305
|
+
function hi(e2) {
|
|
2306
|
+
return mi.add(e2), () => {
|
|
2307
|
+
mi.delete(e2);
|
|
2166
2308
|
};
|
|
2167
2309
|
}
|
|
2168
|
-
function
|
|
2310
|
+
function gi(e2) {
|
|
2169
2311
|
let t2 = globalThis.window;
|
|
2170
2312
|
if (!t2?.history) return;
|
|
2171
2313
|
let n2 = t2.location.href;
|
|
2172
|
-
t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 &&
|
|
2314
|
+
t2.history.replaceState({ scrollY: t2.scrollY }, ``, e2.href), t2.location.href !== n2 && mi.forEach((e3) => e3());
|
|
2173
2315
|
}
|
|
2174
|
-
function
|
|
2175
|
-
let e2 =
|
|
2316
|
+
function _i() {
|
|
2317
|
+
let e2 = d(si), t2 = n(() => e2.currentUrl, [e2]), i2 = o(hi, t2, t2), a2 = r(() => new URL(i2), [i2]), s2 = n((t3) => {
|
|
2176
2318
|
let n2 = new URL(e2.currentUrl);
|
|
2177
|
-
n2.search = t3,
|
|
2319
|
+
n2.search = t3, gi(n2);
|
|
2178
2320
|
}, [e2]);
|
|
2179
|
-
return { url:
|
|
2321
|
+
return { url: a2, siteUrl: e2.siteUrl.replace(/\/$/, ``), search: a2.search, pushSearch: s2 };
|
|
2180
2322
|
}
|
|
2181
|
-
function
|
|
2323
|
+
function vi(e2) {
|
|
2182
2324
|
return e2.priceMin === void 0 && e2.priceMax === void 0 && Object.values(e2.customizationIdToChoiceIds ?? {}).every((e3) => e3.length === 0);
|
|
2183
2325
|
}
|
|
2184
|
-
function
|
|
2326
|
+
function yi(e2, t2, n2) {
|
|
2185
2327
|
let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
|
|
2186
2328
|
return i2.includes(n2) ? e2 : { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: [...i2, n2] } };
|
|
2187
2329
|
}
|
|
2188
|
-
function
|
|
2330
|
+
function bi(e2, t2, n2) {
|
|
2189
2331
|
let r2 = e2.customizationIdToChoiceIds ?? {}, i2 = r2[t2] ?? [];
|
|
2190
2332
|
return i2.includes(n2) ? { ...e2, customizationIdToChoiceIds: { ...r2, [t2]: i2.filter((e3) => e3 !== n2) } } : e2;
|
|
2191
2333
|
}
|
|
2192
|
-
function
|
|
2334
|
+
function xi(e2, t2, n2) {
|
|
2193
2335
|
return e2.priceMin === t2 && e2.priceMax === n2 ? e2 : { ...e2, priceMin: t2, priceMax: n2 };
|
|
2194
2336
|
}
|
|
2195
|
-
function
|
|
2337
|
+
function Si(e2) {
|
|
2196
2338
|
return e2.priceMin === void 0 && e2.priceMax === void 0 ? e2 : { ...e2, priceMin: void 0, priceMax: void 0 };
|
|
2197
2339
|
}
|
|
2198
|
-
function
|
|
2340
|
+
function Ci(e2) {
|
|
2199
2341
|
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
2200
2342
|
}
|
|
2201
|
-
function
|
|
2343
|
+
function wi(e2) {
|
|
2202
2344
|
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
2203
2345
|
}
|
|
2204
|
-
function
|
|
2346
|
+
function Ti(e2) {
|
|
2205
2347
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
2206
2348
|
}
|
|
2207
|
-
function
|
|
2208
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
2349
|
+
function R(e2, t2) {
|
|
2350
|
+
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]] };
|
|
2209
2351
|
}
|
|
2210
|
-
function
|
|
2211
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
2352
|
+
function Ei(e2, t2) {
|
|
2353
|
+
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]] };
|
|
2212
2354
|
}
|
|
2213
|
-
function
|
|
2214
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
2355
|
+
function Di(e2) {
|
|
2356
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Ti(e2) ? e2.$not : { $not: e2 };
|
|
2215
2357
|
}
|
|
2216
|
-
var
|
|
2358
|
+
var Oi = class {
|
|
2217
2359
|
_items;
|
|
2218
2360
|
_fetchNextPage;
|
|
2219
2361
|
_fetchPrevPage;
|
|
@@ -2243,7 +2385,7 @@ var Si = class {
|
|
|
2243
2385
|
return await this._fetchPrevPage();
|
|
2244
2386
|
}
|
|
2245
2387
|
};
|
|
2246
|
-
var
|
|
2388
|
+
var ki = class extends Oi {
|
|
2247
2389
|
_nextCursor;
|
|
2248
2390
|
_prevCursor;
|
|
2249
2391
|
cursors;
|
|
@@ -2257,7 +2399,7 @@ var Ci = class extends Si {
|
|
|
2257
2399
|
return !!this._prevCursor;
|
|
2258
2400
|
}
|
|
2259
2401
|
};
|
|
2260
|
-
var
|
|
2402
|
+
var Ai = class extends Oi {
|
|
2261
2403
|
_totalCount;
|
|
2262
2404
|
_offset;
|
|
2263
2405
|
_tooManyToCount;
|
|
@@ -2280,76 +2422,76 @@ var wi = class extends Si {
|
|
|
2280
2422
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
2281
2423
|
}
|
|
2282
2424
|
};
|
|
2283
|
-
function
|
|
2425
|
+
function ji(e2) {
|
|
2284
2426
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
2285
2427
|
try {
|
|
2286
2428
|
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);
|
|
2287
2429
|
if (e2.pagingMethod === `OFFSET`) {
|
|
2288
2430
|
let e3 = n2;
|
|
2289
|
-
return new
|
|
2431
|
+
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 });
|
|
2290
2432
|
}
|
|
2291
2433
|
let s2 = n2.cursorPaging;
|
|
2292
|
-
return new
|
|
2434
|
+
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 });
|
|
2293
2435
|
} catch (t3) {
|
|
2294
2436
|
throw e2.errorTransformer(t3);
|
|
2295
2437
|
}
|
|
2296
2438
|
}, skipTo(e3) {
|
|
2297
2439
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
2298
2440
|
}, eq(r2, i2) {
|
|
2299
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
2300
|
-
return t2({ ...n2, filter:
|
|
2441
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [z(e2.transformationPaths, r2)]: a2 };
|
|
2442
|
+
return t2({ ...n2, filter: R(n2.filter, o2) });
|
|
2301
2443
|
}, ne(r2, i2) {
|
|
2302
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
2303
|
-
return t2({ ...n2, filter:
|
|
2444
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [z(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
2445
|
+
return t2({ ...n2, filter: R(n2.filter, o2) });
|
|
2304
2446
|
}, ge(r2, i2) {
|
|
2305
|
-
let a2 = { [
|
|
2306
|
-
return t2({ ...n2, filter:
|
|
2447
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
2448
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2307
2449
|
}, gt(r2, i2) {
|
|
2308
|
-
let a2 = { [
|
|
2309
|
-
return t2({ ...n2, filter:
|
|
2450
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
2451
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2310
2452
|
}, le(r2, i2) {
|
|
2311
|
-
let a2 = { [
|
|
2312
|
-
return t2({ ...n2, filter:
|
|
2453
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
2454
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2313
2455
|
}, lt(r2, i2) {
|
|
2314
|
-
let a2 = { [
|
|
2315
|
-
return t2({ ...n2, filter:
|
|
2456
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
2457
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2316
2458
|
}, isNotEmpty(e3) {
|
|
2317
2459
|
return this.ne(e3, null);
|
|
2318
2460
|
}, isEmpty(e3) {
|
|
2319
2461
|
return this.eq(e3, null);
|
|
2320
2462
|
}, startsWith(r2, i2) {
|
|
2321
|
-
let a2 = { [
|
|
2322
|
-
return t2({ ...n2, filter:
|
|
2463
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
2464
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2323
2465
|
}, endsWith(r2, i2) {
|
|
2324
|
-
let a2 = { [
|
|
2325
|
-
return t2({ ...n2, filter:
|
|
2466
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
2467
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2326
2468
|
}, contains(r2, i2) {
|
|
2327
|
-
let a2 = { [
|
|
2328
|
-
return t2({ ...n2, filter:
|
|
2469
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
2470
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2329
2471
|
}, hasSome(r2, ...i2) {
|
|
2330
|
-
let a2 = { [
|
|
2331
|
-
return t2({ ...n2, filter:
|
|
2472
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
2473
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2332
2474
|
}, hasAll(r2, ...i2) {
|
|
2333
|
-
let a2 = { [
|
|
2334
|
-
return t2({ ...n2, filter:
|
|
2475
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
2476
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2335
2477
|
}, between(e3, t3, n3) {
|
|
2336
2478
|
return this.ge(e3, t3).lt(e3, n3);
|
|
2337
2479
|
}, in(r2, i2) {
|
|
2338
|
-
let a2 = { [
|
|
2339
|
-
return t2({ ...n2, filter:
|
|
2480
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
2481
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2340
2482
|
}, exists(r2, i2 = true) {
|
|
2341
|
-
let a2 = { [
|
|
2342
|
-
return t2({ ...n2, filter:
|
|
2483
|
+
let a2 = { [z(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
2484
|
+
return t2({ ...n2, filter: R(n2.filter, a2) });
|
|
2343
2485
|
}, or(e3) {
|
|
2344
|
-
return t2({ ...n2, filter:
|
|
2486
|
+
return t2({ ...n2, filter: Ei(n2.filter, e3.query.filter) });
|
|
2345
2487
|
}, and(e3) {
|
|
2346
|
-
return t2({ ...n2, filter:
|
|
2488
|
+
return t2({ ...n2, filter: R(n2.filter, e3.query.filter) });
|
|
2347
2489
|
}, not(e3) {
|
|
2348
|
-
return t2({ ...n2, filter:
|
|
2490
|
+
return t2({ ...n2, filter: Di(e3.query.filter) });
|
|
2349
2491
|
}, ascending(...r2) {
|
|
2350
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
2492
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: z(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
2351
2493
|
}, descending(...r2) {
|
|
2352
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
2494
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: z(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
2353
2495
|
}, skip(e3) {
|
|
2354
2496
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
2355
2497
|
}, limit(r2) {
|
|
@@ -2362,28 +2504,28 @@ function Ti(e2) {
|
|
|
2362
2504
|
} });
|
|
2363
2505
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
2364
2506
|
}
|
|
2365
|
-
function
|
|
2507
|
+
function z(e2, t2) {
|
|
2366
2508
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
2367
2509
|
return n2 ? t2.replace(n2, e2[n2]) : lt(t2, { ...e2, ...ct });
|
|
2368
2510
|
}
|
|
2369
|
-
function
|
|
2370
|
-
let r2 = (r3, i3) =>
|
|
2511
|
+
function Mi(e2, t2, n2 = {}) {
|
|
2512
|
+
let r2 = (r3, i3) => Mi(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [x(e2, t2)]: n2 };
|
|
2371
2513
|
return { get filter() {
|
|
2372
2514
|
return i2();
|
|
2373
2515
|
}, 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) };
|
|
2374
2516
|
}
|
|
2375
|
-
function
|
|
2376
|
-
return Object.assign((t2) =>
|
|
2517
|
+
function Ni(e2) {
|
|
2518
|
+
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 } }) });
|
|
2377
2519
|
}
|
|
2378
|
-
function
|
|
2379
|
-
return (t2) => ({ asc: () => ({ sort: { fieldName:
|
|
2520
|
+
function Pi(e2) {
|
|
2521
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: x(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: x(t2, e2), order: `DESC` } }) });
|
|
2380
2522
|
}
|
|
2381
|
-
function
|
|
2523
|
+
function Fi(e2) {
|
|
2382
2524
|
return () => {
|
|
2383
2525
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
2384
2526
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
2385
2527
|
}, withFields(...r2) {
|
|
2386
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
2528
|
+
return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
|
|
2387
2529
|
}, withSorting(...e3) {
|
|
2388
2530
|
return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
|
|
2389
2531
|
}, withPaging(e3) {
|
|
@@ -2394,49 +2536,49 @@ function ki(e2) {
|
|
|
2394
2536
|
return n2;
|
|
2395
2537
|
};
|
|
2396
2538
|
}
|
|
2397
|
-
function
|
|
2398
|
-
return { QueryBuilder:
|
|
2399
|
-
}
|
|
2400
|
-
var
|
|
2401
|
-
var
|
|
2402
|
-
var
|
|
2403
|
-
var
|
|
2404
|
-
var
|
|
2405
|
-
var
|
|
2406
|
-
function
|
|
2539
|
+
function B(e2) {
|
|
2540
|
+
return { QueryBuilder: Fi(e2), Filter: Ni(e2), Sort: Pi(e2) };
|
|
2541
|
+
}
|
|
2542
|
+
var Ii = `filter`;
|
|
2543
|
+
var Li = `sort`;
|
|
2544
|
+
var Ri = `cursorPaging`;
|
|
2545
|
+
var zi = `paging`;
|
|
2546
|
+
var Bi = [Ii, Li, Ri];
|
|
2547
|
+
var Vi = [Ii, Li, zi];
|
|
2548
|
+
function Hi(e2, t2) {
|
|
2407
2549
|
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
2408
2550
|
}
|
|
2409
|
-
function
|
|
2410
|
-
return
|
|
2551
|
+
function Ui(e2) {
|
|
2552
|
+
return Hi(e2, Bi);
|
|
2411
2553
|
}
|
|
2412
|
-
function
|
|
2413
|
-
return
|
|
2554
|
+
function Wi(e2) {
|
|
2555
|
+
return Hi(e2, Vi);
|
|
2414
2556
|
}
|
|
2415
|
-
function
|
|
2557
|
+
function Gi(e2) {
|
|
2416
2558
|
let { hasOptionsParameter: t2 } = e2;
|
|
2417
2559
|
return function(...n2) {
|
|
2418
|
-
return t2 ?
|
|
2560
|
+
return t2 ? qi(n2, e2) : Ki(n2, e2);
|
|
2419
2561
|
};
|
|
2420
2562
|
}
|
|
2421
|
-
function
|
|
2563
|
+
function Ki(e2, t2) {
|
|
2422
2564
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
2423
2565
|
}
|
|
2424
|
-
function
|
|
2566
|
+
function qi(e2, t2) {
|
|
2425
2567
|
switch (e2.length) {
|
|
2426
2568
|
case 0:
|
|
2427
2569
|
return t2.builderQueryFunction();
|
|
2428
2570
|
case 1:
|
|
2429
|
-
return
|
|
2571
|
+
return Ui(e2[0]) || Wi(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
2430
2572
|
default:
|
|
2431
2573
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
2432
2574
|
}
|
|
2433
2575
|
}
|
|
2434
|
-
function
|
|
2576
|
+
function V(e2) {
|
|
2435
2577
|
if (!e2) return;
|
|
2436
2578
|
let t2 = ``;
|
|
2437
2579
|
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;
|
|
2438
2580
|
}
|
|
2439
|
-
function
|
|
2581
|
+
function H(e2) {
|
|
2440
2582
|
if (!e2) return;
|
|
2441
2583
|
let t2 = ``;
|
|
2442
2584
|
e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
|
|
@@ -2451,24 +2593,24 @@ function Hi(e2) {
|
|
|
2451
2593
|
}
|
|
2452
2594
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
2453
2595
|
}
|
|
2454
|
-
function
|
|
2455
|
-
return
|
|
2596
|
+
function Ji(e2) {
|
|
2597
|
+
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: `` }] } }));
|
|
2456
2598
|
}
|
|
2457
|
-
var
|
|
2458
|
-
function
|
|
2599
|
+
var Yi = `@wix/auto_sdk_stores_customizations-v-3`;
|
|
2600
|
+
function Xi(e2) {
|
|
2459
2601
|
function t2({ host: t3 }) {
|
|
2460
|
-
return { entityFqdn: `wix.stores.catalog.v3.customization`, method: `GET`, methodFqn: `wix.stores.catalog.customization.v3.CustomizationService.QueryCustomizations`, packageName:
|
|
2602
|
+
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 }] };
|
|
2461
2603
|
}
|
|
2462
2604
|
return t2;
|
|
2463
2605
|
}
|
|
2464
|
-
var
|
|
2606
|
+
var Zi = ((e2) => (e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2))(Zi || {});
|
|
2465
2607
|
var U = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(U || {});
|
|
2466
|
-
var
|
|
2467
|
-
var
|
|
2468
|
-
function
|
|
2608
|
+
var Qi = ((e2) => (e2.DEFAULT = `DEFAULT`, e2.BY_NAME = `BY_NAME`, e2.BY_PRODUCT_COUNT = `BY_PRODUCT_COUNT`, e2.MANUAL = `MANUAL`, e2))(Qi || {});
|
|
2609
|
+
var $i = ((e2) => (e2.ASSIGNED_PRODUCTS_COUNT = `ASSIGNED_PRODUCTS_COUNT`, e2.CHOICE_DISPLAY_IMAGE = `CHOICE_DISPLAY_IMAGE`, e2))($i || {});
|
|
2610
|
+
function ea(e2) {
|
|
2469
2611
|
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2470
|
-
return
|
|
2471
|
-
let i2 =
|
|
2612
|
+
return ji({ func: async (r2) => {
|
|
2613
|
+
let i2 = Xi({ ...r2, ...e2 ?? {} });
|
|
2472
2614
|
n2?.onSiteCall?.();
|
|
2473
2615
|
try {
|
|
2474
2616
|
let e3 = await t2.request(i2);
|
|
@@ -2478,45 +2620,45 @@ function Ji(e2) {
|
|
|
2478
2620
|
}
|
|
2479
2621
|
}, requestTransformer: (t3) => {
|
|
2480
2622
|
let n3 = [t3, e2];
|
|
2481
|
-
return
|
|
2623
|
+
return S({ ...n3?.[1], query: n3?.[0] });
|
|
2482
2624
|
}, responseTransformer: ({ data: e3 }) => {
|
|
2483
|
-
let t3 =
|
|
2625
|
+
let t3 = C(T(e3, [{ transformFn: V, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
|
|
2484
2626
|
return { items: t3?.customizations, pagingMetadata: t3?.pagingMetadata };
|
|
2485
2627
|
}, errorTransformer: (e3) => {
|
|
2486
|
-
throw
|
|
2628
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2487
2629
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2488
2630
|
}
|
|
2489
|
-
async function
|
|
2490
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
2631
|
+
async function ta(e2, t2) {
|
|
2632
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Xi(S({ query: e2, ...t2 }));
|
|
2491
2633
|
r2?.onSiteCall?.();
|
|
2492
2634
|
try {
|
|
2493
2635
|
let e3 = await n2.request(i2);
|
|
2494
|
-
return r2?.onSuccess?.(e3),
|
|
2636
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `customizations.choicesSettings.choices.image` }, { path: `customizations.choicesSettings.choices.displayImage` }] }]));
|
|
2495
2637
|
} catch (e3) {
|
|
2496
|
-
let t3 =
|
|
2638
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2497
2639
|
throw r2?.onError?.(e3), t3;
|
|
2498
2640
|
}
|
|
2499
2641
|
}
|
|
2500
|
-
({ ...
|
|
2501
|
-
function
|
|
2502
|
-
return (t2) =>
|
|
2642
|
+
({ ...B() });
|
|
2643
|
+
function na(e2) {
|
|
2644
|
+
return (t2) => ea(t2, { httpClient: e2 });
|
|
2503
2645
|
}
|
|
2504
|
-
function
|
|
2505
|
-
return (t2, n2) =>
|
|
2646
|
+
function ra(e2) {
|
|
2647
|
+
return (t2, n2) => ta(t2, n2, { httpClient: e2 });
|
|
2506
2648
|
}
|
|
2507
|
-
var
|
|
2508
|
-
var
|
|
2509
|
-
var
|
|
2510
|
-
function
|
|
2511
|
-
let t2 =
|
|
2649
|
+
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` }] }])))();
|
|
2650
|
+
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` }] }])))();
|
|
2651
|
+
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` }] }])))();
|
|
2652
|
+
function sa(e2) {
|
|
2653
|
+
let t2 = Gi({ builderQueryFunction: (t3) => na(e2)(t3), typedQueryFunction: (t3, n3) => ra(e2)(t3, n3), hasOptionsParameter: true });
|
|
2512
2654
|
function n2(e3, n3) {
|
|
2513
2655
|
return t2(...arguments);
|
|
2514
2656
|
}
|
|
2515
2657
|
return n2;
|
|
2516
2658
|
}
|
|
2517
|
-
var
|
|
2518
|
-
|
|
2519
|
-
function
|
|
2659
|
+
var ca = D(sa);
|
|
2660
|
+
A(ia), A(aa), A(oa);
|
|
2661
|
+
function la(e2) {
|
|
2520
2662
|
let t2 = {}, n2 = { get search() {
|
|
2521
2663
|
return t2;
|
|
2522
2664
|
}, expression(e3) {
|
|
@@ -2524,19 +2666,19 @@ function ra(e2) {
|
|
|
2524
2666
|
}, mode(e3) {
|
|
2525
2667
|
return t2 = { ...t2, mode: e3 }, n2;
|
|
2526
2668
|
}, fields(r2) {
|
|
2527
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
2669
|
+
return t2 = { ...t2, fields: r2.map((t3) => x(t3, e2)) }, n2;
|
|
2528
2670
|
}, fuzzy(e3 = true) {
|
|
2529
2671
|
return t2 = { ...t2, fuzzy: e3 }, n2;
|
|
2530
2672
|
} };
|
|
2531
2673
|
return n2;
|
|
2532
2674
|
}
|
|
2533
|
-
function
|
|
2675
|
+
function ua(e2) {
|
|
2534
2676
|
return (t2) => {
|
|
2535
|
-
let n2 =
|
|
2677
|
+
let n2 = la(e2);
|
|
2536
2678
|
return t2 === void 0 ? n2 : n2.expression(t2);
|
|
2537
2679
|
};
|
|
2538
2680
|
}
|
|
2539
|
-
function
|
|
2681
|
+
function da(e2) {
|
|
2540
2682
|
let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
|
|
2541
2683
|
return t2;
|
|
2542
2684
|
}, sortBy(e3, r2) {
|
|
@@ -2552,7 +2694,7 @@ function aa(e2) {
|
|
|
2552
2694
|
} };
|
|
2553
2695
|
return n2;
|
|
2554
2696
|
}
|
|
2555
|
-
function
|
|
2697
|
+
function fa(e2) {
|
|
2556
2698
|
let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
|
|
2557
2699
|
return t2;
|
|
2558
2700
|
}, withBuckets(...e3) {
|
|
@@ -2560,7 +2702,7 @@ function oa(e2) {
|
|
|
2560
2702
|
} };
|
|
2561
2703
|
return n2;
|
|
2562
2704
|
}
|
|
2563
|
-
function
|
|
2705
|
+
function pa(e2) {
|
|
2564
2706
|
let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
|
|
2565
2707
|
return t2;
|
|
2566
2708
|
}, interval(e3) {
|
|
@@ -2568,7 +2710,7 @@ function sa(e2) {
|
|
|
2568
2710
|
} };
|
|
2569
2711
|
return n2;
|
|
2570
2712
|
}
|
|
2571
|
-
function
|
|
2713
|
+
function ma(e2) {
|
|
2572
2714
|
let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
|
|
2573
2715
|
return t2;
|
|
2574
2716
|
}, type(e3) {
|
|
@@ -2576,7 +2718,7 @@ function ca(e2) {
|
|
|
2576
2718
|
} };
|
|
2577
2719
|
return n2;
|
|
2578
2720
|
}
|
|
2579
|
-
function
|
|
2721
|
+
function ha(e2) {
|
|
2580
2722
|
let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
|
|
2581
2723
|
return t2;
|
|
2582
2724
|
}, addNestedAggregation(e3) {
|
|
@@ -2585,30 +2727,30 @@ function la(e2) {
|
|
|
2585
2727
|
} };
|
|
2586
2728
|
return n2;
|
|
2587
2729
|
}
|
|
2588
|
-
function
|
|
2730
|
+
function ga(e2, t2) {
|
|
2589
2731
|
let n2 = { name: e2 }, r2 = { get aggregation() {
|
|
2590
2732
|
return n2;
|
|
2591
2733
|
}, ofType(e3) {
|
|
2592
2734
|
return n2 = { ...n2, type: e3 }, r2;
|
|
2593
2735
|
}, onField(e3) {
|
|
2594
|
-
return n2 = { ...n2, fieldPath:
|
|
2736
|
+
return n2 = { ...n2, fieldPath: x(e3, t2) }, r2;
|
|
2595
2737
|
}, asValueAggregation() {
|
|
2596
|
-
return
|
|
2738
|
+
return da(n2);
|
|
2597
2739
|
}, asRangeAggregation() {
|
|
2598
|
-
return
|
|
2740
|
+
return fa(n2);
|
|
2599
2741
|
}, asDateHistogramAggregation() {
|
|
2600
|
-
return
|
|
2742
|
+
return pa(n2);
|
|
2601
2743
|
}, asScalarAggregation() {
|
|
2602
|
-
return
|
|
2744
|
+
return ma(n2);
|
|
2603
2745
|
}, asNestedAggregation() {
|
|
2604
|
-
return
|
|
2746
|
+
return ha(n2);
|
|
2605
2747
|
} };
|
|
2606
2748
|
return r2;
|
|
2607
2749
|
}
|
|
2608
|
-
function
|
|
2609
|
-
return (t2) =>
|
|
2750
|
+
function _a(e2) {
|
|
2751
|
+
return (t2) => ga(t2, e2);
|
|
2610
2752
|
}
|
|
2611
|
-
function
|
|
2753
|
+
function va() {
|
|
2612
2754
|
return () => {
|
|
2613
2755
|
let e2 = {}, t2 = { withFilter(n2) {
|
|
2614
2756
|
return e2 = { ...e2, filter: n2.filter }, t2;
|
|
@@ -2628,85 +2770,195 @@ function fa() {
|
|
|
2628
2770
|
return t2;
|
|
2629
2771
|
};
|
|
2630
2772
|
}
|
|
2631
|
-
function
|
|
2632
|
-
return { SearchBuilder:
|
|
2773
|
+
function ya(e2) {
|
|
2774
|
+
return { SearchBuilder: va(), Filter: Ni(e2), Sort: Pi(e2), SearchParams: ua(e2), Aggregation: _a(e2) };
|
|
2633
2775
|
}
|
|
2634
|
-
function
|
|
2776
|
+
function W(e2) {
|
|
2635
2777
|
if (e2) return e2.url;
|
|
2636
2778
|
}
|
|
2637
|
-
function
|
|
2638
|
-
return
|
|
2779
|
+
function G(e2) {
|
|
2780
|
+
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: `` }] } }));
|
|
2639
2781
|
}
|
|
2640
|
-
var
|
|
2641
|
-
function
|
|
2782
|
+
var ba = `@wix/auto_sdk_stores_products-v-3`;
|
|
2783
|
+
function xa(e2) {
|
|
2784
|
+
function t2({ host: t3 }) {
|
|
2785
|
+
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` }] }]);
|
|
2786
|
+
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 }] };
|
|
2787
|
+
}
|
|
2788
|
+
return t2;
|
|
2789
|
+
}
|
|
2790
|
+
function Sa(e2) {
|
|
2642
2791
|
function t2({ host: t3 }) {
|
|
2643
|
-
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` }] }]);
|
|
2644
|
-
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 }] };
|
|
2792
|
+
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 }] };
|
|
2645
2793
|
}
|
|
2646
2794
|
return t2;
|
|
2647
2795
|
}
|
|
2648
|
-
function
|
|
2796
|
+
function Ca(e2) {
|
|
2649
2797
|
function t2({ host: t3 }) {
|
|
2650
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.CountProducts`, packageName:
|
|
2798
|
+
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 }] };
|
|
2651
2799
|
}
|
|
2652
2800
|
return t2;
|
|
2653
2801
|
}
|
|
2654
|
-
var
|
|
2655
|
-
var
|
|
2656
|
-
var
|
|
2657
|
-
var
|
|
2658
|
-
var
|
|
2659
|
-
var
|
|
2660
|
-
var
|
|
2661
|
-
async function
|
|
2662
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
2802
|
+
var wa = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(wa || {});
|
|
2803
|
+
var K = ((e2) => (e2.ASC = `ASC`, e2.DESC = `DESC`, e2))(K || {});
|
|
2804
|
+
var Ta = ((e2) => (e2.COUNT = `COUNT`, e2.VALUE = `VALUE`, e2))(Ta || {});
|
|
2805
|
+
var Ea = ((e2) => (e2.DESC = `DESC`, e2.ASC = `ASC`, e2))(Ea || {});
|
|
2806
|
+
var Da = ((e2) => (e2.COUNT_DISTINCT = `COUNT_DISTINCT`, e2.MIN = `MIN`, e2.MAX = `MAX`, e2))(Da || {});
|
|
2807
|
+
var Oa = ((e2) => (e2.VALUE = `VALUE`, e2.RANGE = `RANGE`, e2.SCALAR = `SCALAR`, e2.DATE_HISTOGRAM = `DATE_HISTOGRAM`, e2.NESTED = `NESTED`, e2))(Oa || {});
|
|
2808
|
+
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 || {});
|
|
2809
|
+
async function ka(e2, t2) {
|
|
2810
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = xa(S({ search: e2, fields: t2?.fields }, []));
|
|
2811
|
+
r2?.onSiteCall?.();
|
|
2812
|
+
try {
|
|
2813
|
+
let e3 = await n2.request(i2);
|
|
2814
|
+
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`]);
|
|
2815
|
+
} catch (e3) {
|
|
2816
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { search: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`search`, `options`]);
|
|
2817
|
+
throw r2?.onError?.(e3), t3;
|
|
2818
|
+
}
|
|
2819
|
+
}
|
|
2820
|
+
({ ...ya() }, { ...B() });
|
|
2821
|
+
function Aa(e2) {
|
|
2822
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2823
|
+
return ji({ func: async (r2) => {
|
|
2824
|
+
let i2 = Sa({ ...r2, ...e2 ?? {} });
|
|
2825
|
+
n2?.onSiteCall?.();
|
|
2826
|
+
try {
|
|
2827
|
+
let e3 = await t2.request(i2);
|
|
2828
|
+
return n2?.onSuccess?.(e3), e3;
|
|
2829
|
+
} catch (e3) {
|
|
2830
|
+
throw n2?.onError?.(e3), e3;
|
|
2831
|
+
}
|
|
2832
|
+
}, requestTransformer: (t3) => {
|
|
2833
|
+
let n3 = [t3, e2];
|
|
2834
|
+
return S({ ...n3?.[1], query: n3?.[0] }, []);
|
|
2835
|
+
}, responseTransformer: ({ data: e3 }) => {
|
|
2836
|
+
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`]);
|
|
2837
|
+
return { items: t3?.products, pagingMetadata: t3?.pagingMetadata };
|
|
2838
|
+
}, errorTransformer: (e3) => {
|
|
2839
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2840
|
+
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2841
|
+
}
|
|
2842
|
+
async function ja(e2, t2) {
|
|
2843
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Sa(S({ query: e2, ...t2 }, []));
|
|
2663
2844
|
r2?.onSiteCall?.();
|
|
2664
2845
|
try {
|
|
2665
2846
|
let e3 = await n2.request(i2);
|
|
2666
|
-
return r2?.onSuccess?.(e3),
|
|
2847
|
+
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`]);
|
|
2667
2848
|
} catch (e3) {
|
|
2668
|
-
let t3 =
|
|
2849
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2669
2850
|
throw r2?.onError?.(e3), t3;
|
|
2670
2851
|
}
|
|
2671
2852
|
}
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = va(x({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
|
|
2853
|
+
async function Ma(e2) {
|
|
2854
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ca(S({ filter: e2?.filter, search: e2?.search, returnNonVisibleProducts: e2?.returnNonVisibleProducts }, []));
|
|
2675
2855
|
n2?.onSiteCall?.();
|
|
2676
2856
|
try {
|
|
2677
2857
|
let e3 = await t2.request(r2);
|
|
2678
|
-
return n2?.onSuccess?.(e3),
|
|
2858
|
+
return n2?.onSuccess?.(e3), C(e3.data, []);
|
|
2679
2859
|
} catch (e3) {
|
|
2680
|
-
let t3 =
|
|
2860
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { filter: `$[0].filter`, search: `$[0].search`, returnNonVisibleProducts: `$[0].returnNonVisibleProducts` }, singleArgumentUnchanged: false }, [`options`]);
|
|
2681
2861
|
throw n2?.onError?.(e3), t3;
|
|
2682
2862
|
}
|
|
2683
2863
|
}
|
|
2684
|
-
function Ea(e2) {
|
|
2685
|
-
return (t2, n2) => wa(t2, n2, { httpClient: e2 });
|
|
2686
|
-
}
|
|
2687
|
-
function Da(e2) {
|
|
2688
|
-
return (t2) => Ta(t2, { httpClient: e2 });
|
|
2689
|
-
}
|
|
2690
|
-
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` }] }])))();
|
|
2691
|
-
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` }] }])))();
|
|
2692
|
-
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` }] }])))();
|
|
2693
|
-
var ja = E(Ea);
|
|
2694
|
-
var Ma = E(Da);
|
|
2695
|
-
k(Oa), k(ka), k(Aa);
|
|
2696
2864
|
function Na(e2) {
|
|
2697
|
-
return
|
|
2865
|
+
return (t2, n2) => ka(t2, n2, { httpClient: e2 });
|
|
2866
|
+
}
|
|
2867
|
+
function Pa(e2) {
|
|
2868
|
+
return (t2) => Aa(t2, { httpClient: e2 });
|
|
2698
2869
|
}
|
|
2699
|
-
var Pa = `@wix/auto_sdk_stores_stores-locations-v-3`;
|
|
2700
2870
|
function Fa(e2) {
|
|
2871
|
+
return (t2, n2) => ja(t2, n2, { httpClient: e2 });
|
|
2872
|
+
}
|
|
2873
|
+
function Ia(e2) {
|
|
2874
|
+
return (t2) => Ma(t2, { httpClient: e2 });
|
|
2875
|
+
}
|
|
2876
|
+
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` }] }])))();
|
|
2877
|
+
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` }] }])))();
|
|
2878
|
+
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` }] }])))();
|
|
2879
|
+
function Ba(e2) {
|
|
2880
|
+
let t2 = Gi({ builderQueryFunction: (t3) => Pa(e2)(t3), typedQueryFunction: (t3, n3) => Fa(e2)(t3, n3), hasOptionsParameter: true });
|
|
2881
|
+
function n2(e3, n3) {
|
|
2882
|
+
return t2(...arguments);
|
|
2883
|
+
}
|
|
2884
|
+
return n2;
|
|
2885
|
+
}
|
|
2886
|
+
var Va = D(Na);
|
|
2887
|
+
var Ha = D(Ia);
|
|
2888
|
+
var Ua = D(Ba);
|
|
2889
|
+
A(La), A(Ra), A(za);
|
|
2890
|
+
function Wa(e2) {
|
|
2891
|
+
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: `` }] } }));
|
|
2892
|
+
}
|
|
2893
|
+
var Ga = `@wix/auto_sdk_stores_product-groups-v-3`;
|
|
2894
|
+
function Ka(e2) {
|
|
2895
|
+
function t2({ host: t3 }) {
|
|
2896
|
+
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 }] };
|
|
2897
|
+
}
|
|
2898
|
+
return t2;
|
|
2899
|
+
}
|
|
2900
|
+
var qa = ((e2) => (e2.GROUPING_CUSTOMIZATION = `GROUPING_CUSTOMIZATION`, e2.THUMBNAIL = `THUMBNAIL`, e2))(qa || {});
|
|
2901
|
+
function Ja(e2) {
|
|
2902
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1];
|
|
2903
|
+
return ji({ func: async (r2) => {
|
|
2904
|
+
let i2 = Ka({ ...r2, ...e2 ?? {} });
|
|
2905
|
+
n2?.onSiteCall?.();
|
|
2906
|
+
try {
|
|
2907
|
+
let e3 = await t2.request(i2);
|
|
2908
|
+
return n2?.onSuccess?.(e3), e3;
|
|
2909
|
+
} catch (e3) {
|
|
2910
|
+
throw n2?.onError?.(e3), e3;
|
|
2911
|
+
}
|
|
2912
|
+
}, requestTransformer: (t3) => {
|
|
2913
|
+
let n3 = [t3, e2];
|
|
2914
|
+
return S({ ...n3?.[1], query: n3?.[0] });
|
|
2915
|
+
}, responseTransformer: ({ data: e3 }) => {
|
|
2916
|
+
let t3 = C(T(e3, [{ transformFn: V, paths: [{ path: `productGroups.media.image` }] }]));
|
|
2917
|
+
return { items: t3?.productGroups, pagingMetadata: t3?.pagingMetadata };
|
|
2918
|
+
}, errorTransformer: (e3) => {
|
|
2919
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2920
|
+
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2921
|
+
}
|
|
2922
|
+
async function Ya(e2, t2) {
|
|
2923
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = Ka(S({ query: e2, ...t2 }));
|
|
2924
|
+
r2?.onSiteCall?.();
|
|
2925
|
+
try {
|
|
2926
|
+
let e3 = await n2.request(i2);
|
|
2927
|
+
return r2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `productGroups.media.image` }] }]));
|
|
2928
|
+
} catch (e3) {
|
|
2929
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`, `options`]);
|
|
2930
|
+
throw r2?.onError?.(e3), t3;
|
|
2931
|
+
}
|
|
2932
|
+
}
|
|
2933
|
+
({ ...B() }, { ...ya() });
|
|
2934
|
+
function Xa(e2) {
|
|
2935
|
+
return (t2) => Ja(t2, { httpClient: e2 });
|
|
2936
|
+
}
|
|
2937
|
+
function Za(e2) {
|
|
2938
|
+
return (t2, n2) => Ya(t2, n2, { httpClient: e2 });
|
|
2939
|
+
}
|
|
2940
|
+
function Qa(e2) {
|
|
2941
|
+
let t2 = Gi({ builderQueryFunction: (t3) => Xa(e2)(t3), typedQueryFunction: (t3, n3) => Za(e2)(t3, n3), hasOptionsParameter: true });
|
|
2942
|
+
function n2(e3, n3) {
|
|
2943
|
+
return t2(...arguments);
|
|
2944
|
+
}
|
|
2945
|
+
return n2;
|
|
2946
|
+
}
|
|
2947
|
+
var $a = D(Qa);
|
|
2948
|
+
function eo(e2) {
|
|
2949
|
+
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` }] } }));
|
|
2950
|
+
}
|
|
2951
|
+
var to = `@wix/auto_sdk_stores_stores-locations-v-3`;
|
|
2952
|
+
function no(e2) {
|
|
2701
2953
|
function t2({ host: t3 }) {
|
|
2702
|
-
return { entityFqdn: `wix.stores.catalog.v3.stores_location`, method: `POST`, methodFqn: `wix.stores.catalog.location.v3.StoresLocationService.QueryStoresLocations`, packageName:
|
|
2954
|
+
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` }] }]) };
|
|
2703
2955
|
}
|
|
2704
2956
|
return t2;
|
|
2705
2957
|
}
|
|
2706
|
-
function
|
|
2958
|
+
function ro() {
|
|
2707
2959
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
2708
|
-
return
|
|
2709
|
-
let r2 =
|
|
2960
|
+
return ji({ func: async (n2) => {
|
|
2961
|
+
let r2 = no(n2);
|
|
2710
2962
|
t2?.onSiteCall?.();
|
|
2711
2963
|
try {
|
|
2712
2964
|
let n3 = await e2.request(r2);
|
|
@@ -2716,359 +2968,472 @@ function Ia() {
|
|
|
2716
2968
|
}
|
|
2717
2969
|
}, requestTransformer: (e3) => {
|
|
2718
2970
|
let t3 = [e3, {}];
|
|
2719
|
-
return
|
|
2971
|
+
return S({ ...t3?.[1], query: t3?.[0] });
|
|
2720
2972
|
}, responseTransformer: ({ data: e3 }) => {
|
|
2721
|
-
let t3 =
|
|
2973
|
+
let t3 = C(T(e3, []));
|
|
2722
2974
|
return { items: t3?.storesLocations, pagingMetadata: t3?.pagingMetadata };
|
|
2723
2975
|
}, errorTransformer: (e3) => {
|
|
2724
|
-
throw
|
|
2976
|
+
throw E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
2725
2977
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
2726
2978
|
}
|
|
2727
|
-
async function
|
|
2728
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
2979
|
+
async function io(e2) {
|
|
2980
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = no(S({ query: e2 }));
|
|
2729
2981
|
n2?.onSiteCall?.();
|
|
2730
2982
|
try {
|
|
2731
2983
|
let e3 = await t2.request(r2);
|
|
2732
|
-
return n2?.onSuccess?.(e3),
|
|
2984
|
+
return n2?.onSuccess?.(e3), C(e3.data);
|
|
2733
2985
|
} catch (e3) {
|
|
2734
|
-
let t3 =
|
|
2986
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
2735
2987
|
throw n2?.onError?.(e3), t3;
|
|
2736
2988
|
}
|
|
2737
2989
|
}
|
|
2738
|
-
({ ...
|
|
2739
|
-
function
|
|
2740
|
-
return () =>
|
|
2990
|
+
({ ...B() });
|
|
2991
|
+
function ao(e2) {
|
|
2992
|
+
return () => ro({ httpClient: e2 });
|
|
2741
2993
|
}
|
|
2742
|
-
function
|
|
2743
|
-
return (t2) =>
|
|
2994
|
+
function oo(e2) {
|
|
2995
|
+
return (t2) => io(t2, { httpClient: e2 });
|
|
2744
2996
|
}
|
|
2745
|
-
function
|
|
2746
|
-
let t2 =
|
|
2997
|
+
function so(e2) {
|
|
2998
|
+
let t2 = Gi({ builderQueryFunction: () => ao(e2)(), typedQueryFunction: (t3) => oo(e2)(t3), hasOptionsParameter: false });
|
|
2747
2999
|
function n2(e3) {
|
|
2748
3000
|
return t2(...arguments);
|
|
2749
3001
|
}
|
|
2750
3002
|
return n2;
|
|
2751
3003
|
}
|
|
2752
|
-
var
|
|
2753
|
-
function
|
|
2754
|
-
return
|
|
3004
|
+
var co = D(so);
|
|
3005
|
+
function lo(e2) {
|
|
3006
|
+
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: `` }] } }));
|
|
2755
3007
|
}
|
|
2756
|
-
var
|
|
2757
|
-
function
|
|
3008
|
+
var uo = `@wix/auto_sdk_stores_promotions-v-3`;
|
|
3009
|
+
function fo(e2) {
|
|
2758
3010
|
function t2({ host: t3 }) {
|
|
2759
|
-
return { entityFqdn: `wix.stores.catalog.v3.promotion`, method: `GET`, methodFqn: `wix.stores.catalog.promotion.v3.PromotionsService.ResolvePromotions`, packageName:
|
|
3011
|
+
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` }] }]) };
|
|
2760
3012
|
}
|
|
2761
3013
|
return t2;
|
|
2762
3014
|
}
|
|
2763
|
-
({ ...
|
|
2764
|
-
async function
|
|
2765
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3015
|
+
({ ...B() }, { ...ya() });
|
|
3016
|
+
async function po(e2) {
|
|
3017
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = fo(S({ categoryId: e2 }));
|
|
2766
3018
|
n2?.onSiteCall?.();
|
|
2767
3019
|
try {
|
|
2768
3020
|
let e3 = await t2.request(r2);
|
|
2769
|
-
return n2?.onSuccess?.(e3),
|
|
3021
|
+
return n2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `promotions.promotion.media.image` }] }]));
|
|
2770
3022
|
} catch (e3) {
|
|
2771
|
-
let t3 =
|
|
3023
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]` }, singleArgumentUnchanged: false }, [`categoryId`]);
|
|
2772
3024
|
throw n2?.onError?.(e3), t3;
|
|
2773
3025
|
}
|
|
2774
3026
|
}
|
|
2775
|
-
function
|
|
2776
|
-
return (t2) =>
|
|
2777
|
-
}
|
|
2778
|
-
var
|
|
2779
|
-
var
|
|
2780
|
-
var
|
|
2781
|
-
var
|
|
2782
|
-
var
|
|
2783
|
-
|
|
2784
|
-
var
|
|
3027
|
+
function mo(e2) {
|
|
3028
|
+
return (t2) => po(t2, { httpClient: e2 });
|
|
3029
|
+
}
|
|
3030
|
+
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` }] }])))();
|
|
3031
|
+
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` }] }])))();
|
|
3032
|
+
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` }] }])))();
|
|
3033
|
+
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` }] }])))();
|
|
3034
|
+
var yo = D(mo);
|
|
3035
|
+
A(ho), A(go), A(_o), A(vo);
|
|
3036
|
+
var J = function(e2) {
|
|
2785
3037
|
return e2.PRICE = `PRICE`, e2.TEXT_CHOICES = `${U.TEXT_CHOICES}`, e2.SWATCH_CHOICES = `${U.SWATCH_CHOICES}`, e2;
|
|
2786
3038
|
}({});
|
|
2787
|
-
var
|
|
3039
|
+
var bo = function(e2) {
|
|
2788
3040
|
return e2.TEXT_CHOICES = `Text Choices`, e2.SWATCH_CHOICES = `Swatch Choices`, e2.PRICE = `Price`, e2;
|
|
2789
3041
|
}({});
|
|
2790
|
-
var
|
|
2791
|
-
var
|
|
2792
|
-
var
|
|
3042
|
+
var xo = `minPrice`;
|
|
3043
|
+
var So = `maxPrice`;
|
|
3044
|
+
var Co = (e2, t2) => {
|
|
2793
3045
|
let n2 = new Map(e2.values.map((e3) => [e3.name, e3.id]));
|
|
2794
3046
|
return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
|
|
2795
3047
|
};
|
|
2796
|
-
var
|
|
3048
|
+
var wo = (e2) => {
|
|
2797
3049
|
if (e2 === null || e2.trim() === ``) return;
|
|
2798
3050
|
let t2 = Number(e2);
|
|
2799
3051
|
return Number.isFinite(t2) ? t2 : void 0;
|
|
2800
3052
|
};
|
|
2801
|
-
var
|
|
3053
|
+
var To = (e2, t2) => {
|
|
2802
3054
|
let n2 = {};
|
|
2803
3055
|
for (let r2 of t2) {
|
|
2804
|
-
let t3 = e2.get(r2.name), i2 =
|
|
3056
|
+
let t3 = e2.get(r2.name), i2 = Co(r2, t3 ? t3.split(`,`).filter(Boolean) : []);
|
|
2805
3057
|
i2.length > 0 && (n2[r2.id] = i2);
|
|
2806
3058
|
}
|
|
2807
3059
|
return n2;
|
|
2808
3060
|
};
|
|
2809
|
-
function
|
|
3061
|
+
function Eo(e2, t2) {
|
|
2810
3062
|
let n2 = new URLSearchParams(e2);
|
|
2811
|
-
return { customizationIdToChoiceIds:
|
|
3063
|
+
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)) };
|
|
2812
3064
|
}
|
|
2813
|
-
var
|
|
3065
|
+
var Do = (e2, t2) => {
|
|
2814
3066
|
let n2 = new Map(e2.values.map((e3) => [e3.id, e3.name]));
|
|
2815
3067
|
return t2.map((e3) => n2.get(e3)).filter((e3) => e3 !== void 0);
|
|
2816
3068
|
};
|
|
2817
|
-
var
|
|
3069
|
+
var Oo = (e2, t2) => {
|
|
2818
3070
|
t2.forEach((t3) => {
|
|
2819
3071
|
e2.delete(t3.name);
|
|
2820
|
-
}), e2.delete(
|
|
3072
|
+
}), e2.delete(xo), e2.delete(So);
|
|
2821
3073
|
};
|
|
2822
|
-
var
|
|
2823
|
-
var
|
|
3074
|
+
var ko = (e2) => e2.map(encodeURIComponent).join(`,`);
|
|
3075
|
+
var Ao = (e2, t2) => {
|
|
2824
3076
|
let n2 = new Map(e2.map((e3) => [e3.id, e3]));
|
|
2825
3077
|
return Object.entries(t2 ?? {}).flatMap(([e3, t3]) => {
|
|
2826
3078
|
let r2 = n2.get(e3);
|
|
2827
3079
|
if (!r2) return [];
|
|
2828
|
-
let i2 =
|
|
2829
|
-
return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${
|
|
3080
|
+
let i2 = Do(r2, t3);
|
|
3081
|
+
return i2.length === 0 ? [] : [`${encodeURIComponent(r2.name)}=${ko(i2)}`];
|
|
2830
3082
|
});
|
|
2831
3083
|
};
|
|
2832
|
-
var
|
|
2833
|
-
t2.priceMin !== void 0 && t2.priceMin !== n2?.minPrice && e2.set(
|
|
3084
|
+
var jo = (e2, t2, n2) => {
|
|
3085
|
+
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));
|
|
2834
3086
|
};
|
|
2835
|
-
function
|
|
2836
|
-
let r2 = new URLSearchParams(e2), i2 = n2.filter((e3) => e3.type ===
|
|
2837
|
-
|
|
2838
|
-
let o2 =
|
|
3087
|
+
function Mo(e2, t2, n2) {
|
|
3088
|
+
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);
|
|
3089
|
+
Oo(r2, i2), jo(r2, t2, a2);
|
|
3090
|
+
let o2 = Ao(i2, t2.customizationIdToChoiceIds), s2 = [r2.toString(), ...o2].filter(Boolean).join(`&`);
|
|
2839
3091
|
return s2 ? `?${s2}` : ``;
|
|
2840
3092
|
}
|
|
2841
|
-
function
|
|
2842
|
-
let { search: t2, pushSearch: n2 } =
|
|
2843
|
-
r2 !== i2 && n2(
|
|
3093
|
+
function No(e2) {
|
|
3094
|
+
let { search: t2, pushSearch: n2 } = _i(), i2 = r(() => Eo(t2, e2), [t2, e2]), a2 = (r2) => {
|
|
3095
|
+
r2 !== i2 && n2(Mo(t2, r2, e2));
|
|
2844
3096
|
};
|
|
2845
3097
|
return { filterSelection: i2, selectFilterChoice: (e3, t3) => {
|
|
2846
|
-
a2(
|
|
3098
|
+
a2(yi(i2, e3, t3));
|
|
2847
3099
|
}, deselectFilterChoice: (e3, t3) => {
|
|
2848
|
-
a2(
|
|
3100
|
+
a2(bi(i2, e3, t3));
|
|
2849
3101
|
}, setPriceRange: (e3, t3) => {
|
|
2850
|
-
a2(
|
|
3102
|
+
a2(xi(i2, e3, t3));
|
|
2851
3103
|
}, clearPriceRange: () => {
|
|
2852
|
-
a2(
|
|
3104
|
+
a2(Si(i2));
|
|
2853
3105
|
}, clearAllFilters: () => {
|
|
2854
|
-
|
|
3106
|
+
vi(i2) || a2({});
|
|
2855
3107
|
} };
|
|
2856
3108
|
}
|
|
2857
|
-
var
|
|
3109
|
+
var Po = function(e2) {
|
|
2858
3110
|
return e2.createdDate = `createdDate`, e2.actualPriceRangeMinValueAmount = `actualPriceRange.minValue.amount`, e2.name = `name`, e2;
|
|
2859
3111
|
}({});
|
|
2860
3112
|
var Y = function(e2) {
|
|
2861
3113
|
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;
|
|
2862
3114
|
}({});
|
|
2863
|
-
var
|
|
2864
|
-
function
|
|
2865
|
-
return
|
|
3115
|
+
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 }];
|
|
3116
|
+
function Io(e2) {
|
|
3117
|
+
return Fo.find((t2) => t2.type === e2);
|
|
2866
3118
|
}
|
|
2867
|
-
var
|
|
2868
|
-
var
|
|
2869
|
-
var
|
|
2870
|
-
function
|
|
2871
|
-
let t2 =
|
|
2872
|
-
return t2 ? t2.type :
|
|
3119
|
+
var Lo = Y.recommended;
|
|
3120
|
+
var Ro = Fo.map(({ type: e2 }) => e2);
|
|
3121
|
+
var zo = `sort`;
|
|
3122
|
+
function Bo(e2) {
|
|
3123
|
+
let t2 = Io(new URLSearchParams(e2).get(zo));
|
|
3124
|
+
return t2 ? t2.type : Lo;
|
|
2873
3125
|
}
|
|
2874
|
-
function
|
|
3126
|
+
function Vo(e2, t2) {
|
|
2875
3127
|
let n2 = new URLSearchParams(e2);
|
|
2876
|
-
return t2 ===
|
|
3128
|
+
return t2 === Lo ? n2.delete(zo) : n2.set(zo, t2), n2.toString();
|
|
2877
3129
|
}
|
|
2878
|
-
function
|
|
2879
|
-
let { search: e2, pushSearch: t2 } =
|
|
2880
|
-
return { sortTypes:
|
|
2881
|
-
r2 !== n2 && t2(
|
|
3130
|
+
function Ho() {
|
|
3131
|
+
let { search: e2, pushSearch: t2 } = _i(), n2 = r(() => Bo(e2), [e2]);
|
|
3132
|
+
return { sortTypes: Ro, selectedSortType: n2, selectSortType: (r2) => {
|
|
3133
|
+
r2 !== n2 && t2(Vo(e2, r2));
|
|
2882
3134
|
} };
|
|
2883
3135
|
}
|
|
2884
|
-
var
|
|
2885
|
-
var
|
|
2886
|
-
var
|
|
2887
|
-
var
|
|
2888
|
-
function
|
|
2889
|
-
let t2 = e2?.match(
|
|
3136
|
+
var Uo = `https://static.wixstatic.com/media`;
|
|
3137
|
+
var Wo = `https://video.wixstatic.com/video`;
|
|
3138
|
+
var Go = /image:\/\/v1\/([^/#]+)/;
|
|
3139
|
+
var Ko = /^(?:wix:)?video:\/\/v1\/([^/#]+)(?:\/[^#]*)?(?:#(.*))?$/;
|
|
3140
|
+
function qo(e2) {
|
|
3141
|
+
let t2 = e2?.match(Ko);
|
|
2890
3142
|
if (!t2) return null;
|
|
2891
3143
|
let [, n2, r2] = t2, i2 = new URLSearchParams(r2 ?? ``), a2 = i2.get(`posterUri`);
|
|
2892
|
-
return { id: n2, url: `${
|
|
3144
|
+
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 } } : {} };
|
|
2893
3145
|
}
|
|
2894
|
-
function
|
|
2895
|
-
return e2 ? e2.match(
|
|
3146
|
+
function Jo(e2) {
|
|
3147
|
+
return e2 ? e2.match(Go)?.[1] ?? null : null;
|
|
2896
3148
|
}
|
|
2897
|
-
function
|
|
3149
|
+
function Yo(e2) {
|
|
2898
3150
|
if (!e2) return null;
|
|
2899
3151
|
let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
|
|
2900
3152
|
return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
|
|
2901
3153
|
}
|
|
2902
|
-
function
|
|
3154
|
+
function Xo(e2) {
|
|
2903
3155
|
return e2.map((e3) => ({ id: e3._id, key: e3.key, name: e3.name ?? void 0, optionRenderType: e3.optionRenderType, choices: (e3.choicesSettings?.choices ?? []).map((e4) => {
|
|
2904
|
-
let t2 =
|
|
2905
|
-
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:
|
|
3156
|
+
let t2 = Jo(e4.displayImage) ?? void 0;
|
|
3157
|
+
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) };
|
|
2906
3158
|
}) }));
|
|
2907
3159
|
}
|
|
2908
|
-
var
|
|
3160
|
+
var Zo = (e2) => {
|
|
2909
3161
|
let t2 = (e2?.items ?? []).map((e3) => e3.mediaId);
|
|
2910
3162
|
return t2.length > 0 ? t2 : void 0;
|
|
2911
3163
|
};
|
|
2912
|
-
function
|
|
3164
|
+
function Qo(e2) {
|
|
2913
3165
|
let t2 = e2.map((e3) => {
|
|
2914
|
-
let t3 = e3._id, n2 = e3.modifierRenderType ===
|
|
3166
|
+
let t3 = e3._id, n2 = e3.modifierRenderType === wa.FREE_TEXT;
|
|
2915
3167
|
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) => {
|
|
2916
|
-
let t4 =
|
|
2917
|
-
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds:
|
|
3168
|
+
let t4 = Jo(e4.displayImage) ?? void 0;
|
|
3169
|
+
return { choiceId: e4.choiceId, key: e4.key, name: e4.name ?? void 0, colorCode: e4.colorCode, ...t4 ? { displayImageUri: t4 } : {}, mediaIds: Zo(e4.media) };
|
|
2918
3170
|
}) }];
|
|
2919
3171
|
});
|
|
2920
3172
|
return Object.fromEntries(t2);
|
|
2921
3173
|
}
|
|
2922
|
-
function
|
|
2923
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3174
|
+
function $o(e2) {
|
|
3175
|
+
return e2.filter((e3) => e3.visible !== false).map(es);
|
|
2924
3176
|
}
|
|
2925
|
-
var
|
|
3177
|
+
var es = (e2) => {
|
|
2926
3178
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
2927
3179
|
let t3 = e3.optionChoiceIds;
|
|
2928
3180
|
return [t3?.optionId, t3?.choiceId];
|
|
2929
3181
|
}));
|
|
2930
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
3182
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: ns(e2), subscriptionPrices: rs(e2) };
|
|
2931
3183
|
};
|
|
2932
|
-
function
|
|
3184
|
+
function ts(e2) {
|
|
2933
3185
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
2934
3186
|
}
|
|
2935
|
-
var
|
|
3187
|
+
var ns = (e2) => {
|
|
2936
3188
|
let t2 = e2.price;
|
|
2937
|
-
return { actualPrice:
|
|
3189
|
+
return { actualPrice: xs(t2?.actualPrice), compareAtPrice: X(t2?.compareAtPrice), priceAfterDiscount: X(t2?.priceAfterDiscount), pricePerUnit: ts(e2.physicalProperties?.pricePerUnit) };
|
|
2938
3190
|
};
|
|
2939
|
-
var
|
|
2940
|
-
var
|
|
2941
|
-
var
|
|
2942
|
-
function
|
|
2943
|
-
let t2 =
|
|
2944
|
-
return { id: e2._id, slug: e2.slug ?? void 0, url: e2.url ? { href: e2.url } : void 0, name: e2.name, description: c2, media:
|
|
3191
|
+
var rs = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: xs(e3.price) }));
|
|
3192
|
+
var is = { nodes: [] };
|
|
3193
|
+
var as = `@stores/product-groups`;
|
|
3194
|
+
function os(e2) {
|
|
3195
|
+
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);
|
|
3196
|
+
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 };
|
|
2945
3197
|
}
|
|
2946
|
-
function
|
|
2947
|
-
return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ?
|
|
3198
|
+
function ss(e2) {
|
|
3199
|
+
return (e2.infoSections ?? []).map((e3) => ({ _id: e3.uniqueName ?? e3._id, name: e3.title, body: e3.description ? ds(e3.description) : void 0 }));
|
|
2948
3200
|
}
|
|
2949
|
-
function
|
|
2950
|
-
let t2 = e2.extendedFields?.namespaces?.[
|
|
3201
|
+
function cs(e2) {
|
|
3202
|
+
let t2 = e2.extendedFields?.namespaces?.[as]?.productGroupId;
|
|
2951
3203
|
return typeof t2 == `string` ? t2 : void 0;
|
|
2952
3204
|
}
|
|
2953
|
-
function
|
|
3205
|
+
function ls(e2) {
|
|
2954
3206
|
return e2 === `WEEK` || e2 === `MONTH` || e2 === `YEAR` ? e2 : void 0;
|
|
2955
3207
|
}
|
|
2956
|
-
function
|
|
2957
|
-
return e2.filter((e3) => e3.visible !== false).map((e3) => ({ id: e3._id, name: e3.title, description: e3.description ?? void 0, frequency:
|
|
3208
|
+
function us(e2) {
|
|
3209
|
+
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 }));
|
|
2958
3210
|
}
|
|
2959
|
-
function
|
|
3211
|
+
function ds(e2) {
|
|
2960
3212
|
return { ...e2, nodes: e2.nodes ?? [] };
|
|
2961
3213
|
}
|
|
2962
|
-
function
|
|
3214
|
+
function fs(e2) {
|
|
2963
3215
|
return (e2.breadcrumbsInfo?.breadcrumbs ?? []).map((e3) => ({ id: e3.categoryId, name: e3.categoryName, slug: e3.categorySlug }));
|
|
2964
3216
|
}
|
|
2965
|
-
function
|
|
3217
|
+
function ps(e2) {
|
|
2966
3218
|
return (e2.directCategoriesInfo?.categories ?? []).flatMap((e3) => e3._id ? [{ id: e3._id }] : []);
|
|
2967
3219
|
}
|
|
2968
|
-
function
|
|
3220
|
+
function ms(e2) {
|
|
2969
3221
|
return { ...e2.displayName ? { title: e2.displayName } : {}, ...e2.altText ? { alt: e2.altText } : {} };
|
|
2970
3222
|
}
|
|
2971
|
-
function
|
|
3223
|
+
function hs(e2, t2) {
|
|
2972
3224
|
let n2 = e2.image ?? e2.url;
|
|
2973
3225
|
if (!n2) return;
|
|
2974
|
-
let r2 =
|
|
2975
|
-
return { id:
|
|
3226
|
+
let r2 = Yo(e2.image), { title: i2, alt: a2 } = ms(e2);
|
|
3227
|
+
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 } } : {} } };
|
|
2976
3228
|
}
|
|
2977
|
-
function
|
|
2978
|
-
let n2 =
|
|
3229
|
+
function gs(e2, t2) {
|
|
3230
|
+
let n2 = qo(e2.video), r2 = n2?.url ?? e2.url;
|
|
2979
3231
|
if (!r2) return;
|
|
2980
|
-
let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } =
|
|
3232
|
+
let i2 = n2?.poster?.url, a2 = n2?.poster?.width, o2 = n2?.poster?.height, { title: s2, alt: c2 } = ms(e2);
|
|
2981
3233
|
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 } : {} } } : {} } };
|
|
2982
3234
|
}
|
|
2983
|
-
function
|
|
3235
|
+
function _s(e2) {
|
|
2984
3236
|
let t2 = e2.variantSummary?.minPriceVariant;
|
|
2985
|
-
return t2 ?
|
|
3237
|
+
return t2 ? $o([t2])[0] : void 0;
|
|
2986
3238
|
}
|
|
2987
|
-
function
|
|
3239
|
+
function vs(e2) {
|
|
2988
3240
|
return { minActualPrice: X(e2.actualPriceRange?.minValue), maxActualPrice: X(e2.actualPriceRange?.maxValue), minCompareAtPrice: X(e2.compareAtPriceRange?.minValue), maxCompareAtPrice: X(e2.compareAtPriceRange?.maxValue) };
|
|
2989
3241
|
}
|
|
2990
|
-
function
|
|
3242
|
+
function ys(e2) {
|
|
2991
3243
|
if (!e2) return;
|
|
2992
|
-
let { title: t2, alt: n2 } =
|
|
3244
|
+
let { title: t2, alt: n2 } = ms(e2);
|
|
2993
3245
|
if (e2.mediaType === `VIDEO`) {
|
|
2994
|
-
let r3 =
|
|
3246
|
+
let r3 = qo(e2.video)?.poster;
|
|
2995
3247
|
return r3 ? { ...r3, name: t2, alt: n2 } : void 0;
|
|
2996
3248
|
}
|
|
2997
3249
|
let r2 = e2.image ?? e2.url;
|
|
2998
3250
|
if (!r2) return;
|
|
2999
|
-
let i2 =
|
|
3000
|
-
return { uri:
|
|
3251
|
+
let i2 = Yo(e2.image);
|
|
3252
|
+
return { uri: Jo(e2.image) ?? void 0, url: r2, width: i2?.width, height: i2?.height, name: t2, alt: n2 };
|
|
3001
3253
|
}
|
|
3002
|
-
function
|
|
3254
|
+
function bs(e2) {
|
|
3003
3255
|
return (e2.media?.itemsInfo?.items ?? (e2.media?.main ? [e2.media.main] : [])).flatMap((e3, t2) => {
|
|
3004
|
-
let n2 = e3.mediaType === `VIDEO` ?
|
|
3256
|
+
let n2 = e3.mediaType === `VIDEO` ? gs(e3, String(t2)) : hs(e3, String(t2));
|
|
3005
3257
|
return n2 ? [n2] : [];
|
|
3006
3258
|
});
|
|
3007
3259
|
}
|
|
3008
|
-
var
|
|
3009
|
-
var X = (e2) => e2?.amount == null ? void 0 :
|
|
3260
|
+
var xs = (e2) => Number.parseFloat(e2?.amount);
|
|
3261
|
+
var X = (e2) => e2?.amount == null ? void 0 : xs(e2);
|
|
3010
3262
|
var Z = function(e2) {
|
|
3011
3263
|
return e2.PRICE = `PRICE`, e2.OPTIONS = `OPTIONS`, e2.MODIFIERS = `MODIFIERS`, e2;
|
|
3012
3264
|
}({});
|
|
3013
|
-
var
|
|
3265
|
+
var Ss = `allCategoriesInfo.categories`;
|
|
3014
3266
|
var Q = { minPrice: `min_price`, maxPrice: `max_price`, optionsWithChoice: `options_with_choice`, modifiersWithChoice: `modifiers_with_choice`, options: `options`, modifiers: `modifiers` };
|
|
3015
3267
|
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` };
|
|
3016
|
-
var
|
|
3017
|
-
var
|
|
3268
|
+
var Cs = { options: 1e3, modifiers: 1e3, choices: 2e4 };
|
|
3269
|
+
var ws = ({ priceMin: e2, priceMax: t2 }) => {
|
|
3018
3270
|
let n2 = [];
|
|
3019
3271
|
return e2 !== void 0 && n2.push({ [$.minPrice]: { $gte: e2 } }), t2 !== void 0 && n2.push({ [$.maxPrice]: { $lte: t2 } }), n2;
|
|
3020
3272
|
};
|
|
3021
|
-
var
|
|
3273
|
+
var Ts = (e2, t2) => {
|
|
3022
3274
|
let n2 = new Map(e2.values.map((e3) => [e3.id, e3]));
|
|
3023
3275
|
return t2.flatMap((e3) => {
|
|
3024
3276
|
let t3 = n2.get(e3);
|
|
3025
3277
|
return t3 ? [t3.id, ...t3.childIds ?? []] : [e3];
|
|
3026
3278
|
});
|
|
3027
3279
|
};
|
|
3028
|
-
var
|
|
3029
|
-
var
|
|
3030
|
-
let n2 = new Map(e2.filter((e3) => e3.type ===
|
|
3280
|
+
var Es = (e2, t2) => ({ [e2.customizationType === Zi.MODIFIER ? $.modifierChoice : $.optionChoice]: { $hasSome: Ts(e2, t2) } });
|
|
3281
|
+
var Ds = (e2, t2) => {
|
|
3282
|
+
let n2 = new Map(e2.filter((e3) => e3.type === J.TEXT_CHOICES || e3.type === J.SWATCH_CHOICES).map((e3) => [e3.id, e3]));
|
|
3031
3283
|
return Object.entries(t2.customizationIdToChoiceIds ?? {}).flatMap(([e3, t3]) => {
|
|
3032
3284
|
let r2 = n2.get(e3);
|
|
3033
|
-
return !r2 || t3.length === 0 ? [] : [
|
|
3285
|
+
return !r2 || t3.length === 0 ? [] : [Es(r2, t3)];
|
|
3034
3286
|
});
|
|
3035
3287
|
};
|
|
3036
|
-
function
|
|
3037
|
-
let r2 = [{ [
|
|
3288
|
+
function Os(e2, t2, n2) {
|
|
3289
|
+
let r2 = [{ [Ss]: { $matchItems: [{ id: e2 }] } }, ...ws(n2), ...Ds(t2, n2)];
|
|
3038
3290
|
return r2.length === 1 ? r2[0] : { $and: r2 };
|
|
3039
3291
|
}
|
|
3040
|
-
function
|
|
3041
|
-
let t2 =
|
|
3292
|
+
function ks(e2) {
|
|
3293
|
+
let t2 = Io(e2);
|
|
3042
3294
|
if (t2?.fieldName) return [{ fieldName: t2.fieldName, order: t2.order }];
|
|
3043
3295
|
}
|
|
3044
|
-
var
|
|
3045
|
-
|
|
3046
|
-
let
|
|
3047
|
-
return
|
|
3296
|
+
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];
|
|
3297
|
+
async function js(e2) {
|
|
3298
|
+
let t2 = (await Ua({ fields: As }).eq(`_id`, e2).limit(1).find()).items[0];
|
|
3299
|
+
return t2 ? os(t2) : null;
|
|
3300
|
+
}
|
|
3301
|
+
var Ms = async (e2, t2) => {
|
|
3302
|
+
let n2 = await Va({ cursorPaging: { limit: t2, cursor: e2 } }, { fields: As });
|
|
3303
|
+
return { products: (n2.products ?? []).map(os), nextCursor: n2.pagingMetadata?.cursors?.next ?? void 0, hasNext: n2.pagingMetadata?.hasNext ?? false };
|
|
3048
3304
|
};
|
|
3049
|
-
async function
|
|
3050
|
-
if (a2 !== void 0) return
|
|
3051
|
-
let o2 =
|
|
3052
|
-
return { products: (l2.products ?? []).map(
|
|
3305
|
+
async function Ns({ categoryId: e2, filters: t2, filterSelection: n2, sortType: r2, productsPerPage: i2, cursor: a2 }) {
|
|
3306
|
+
if (a2 !== void 0) return Ms(a2, i2);
|
|
3307
|
+
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 })]);
|
|
3308
|
+
return { products: (l2.products ?? []).map(os), productCount: u2?.count ?? 0, nextCursor: l2.pagingMetadata?.cursors?.next ?? void 0, hasNext: l2.pagingMetadata?.hasNext ?? false };
|
|
3053
3309
|
}
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3310
|
+
function Ps(e2) {
|
|
3311
|
+
if (e2 === `IN_STOCK` || e2 === `OUT_OF_STOCK` || e2 === `PARTIALLY_OUT_OF_STOCK`) return e2;
|
|
3312
|
+
}
|
|
3313
|
+
function Fs(e2) {
|
|
3314
|
+
if (!(!e2 || e2.customizationRenderType !== `TEXT_CHOICES` && e2.customizationRenderType !== `SWATCH_CHOICES`)) {
|
|
3315
|
+
if (e2.customizationType === `PRODUCT_OPTION`) return `PRODUCT_OPTION`;
|
|
3316
|
+
if (e2.customizationType === `MODIFIER`) return `MODIFIER`;
|
|
3317
|
+
}
|
|
3318
|
+
}
|
|
3319
|
+
function Is(e2) {
|
|
3320
|
+
return !e2._id || !e2.key ? null : { choiceId: e2._id, key: e2.key, name: e2.name, colorCode: e2.colorCode };
|
|
3321
|
+
}
|
|
3322
|
+
function Ls(e2) {
|
|
3323
|
+
if (e2.status !== `ACTIVE` || !e2.productId || !e2.slug || !e2.choice) return null;
|
|
3324
|
+
let t2 = Is(e2.choice);
|
|
3325
|
+
return t2 ? { productId: e2.productId, choice: t2, slug: e2.slug, inventoryAvailabilityStatus: Ps(e2.inventoryAvailabilityStatus) } : null;
|
|
3326
|
+
}
|
|
3327
|
+
function Rs(e2) {
|
|
3328
|
+
let t2 = e2.groupingCustomizationId, n2 = Fs(e2.groupingCustomization);
|
|
3329
|
+
if (!t2 || !n2) return;
|
|
3330
|
+
let r2 = (e2.members ?? []).map((e3) => Ls(e3)).filter((e3) => e3 !== null);
|
|
3331
|
+
if (r2.length !== 0) return { groupingCustomizationId: t2, customizationType: n2, members: r2 };
|
|
3332
|
+
}
|
|
3333
|
+
function zs(e2) {
|
|
3334
|
+
let t2 = /* @__PURE__ */ new Map();
|
|
3335
|
+
for (let n2 of e2) {
|
|
3336
|
+
let e3 = n2._id;
|
|
3337
|
+
if (!e3) continue;
|
|
3338
|
+
let r2 = Rs(n2);
|
|
3339
|
+
r2 && t2.set(e3, r2);
|
|
3340
|
+
}
|
|
3341
|
+
return t2;
|
|
3342
|
+
}
|
|
3343
|
+
async function Bs(e2) {
|
|
3344
|
+
if (e2.length === 0) return /* @__PURE__ */ new Map();
|
|
3345
|
+
try {
|
|
3346
|
+
return zs((await $a({ fields: [qa.GROUPING_CUSTOMIZATION] }).in(`_id`, e2).limit(100).find()).items);
|
|
3347
|
+
} catch {
|
|
3348
|
+
return /* @__PURE__ */ new Map();
|
|
3349
|
+
}
|
|
3350
|
+
}
|
|
3351
|
+
function Vs(e2, t2) {
|
|
3352
|
+
let n2 = /* @__PURE__ */ new Set();
|
|
3353
|
+
for (let r2 of e2) {
|
|
3354
|
+
let e3 = r2.productGroupId;
|
|
3355
|
+
e3 && !t2.has(e3) && n2.add(e3);
|
|
3356
|
+
}
|
|
3357
|
+
return n2;
|
|
3358
|
+
}
|
|
3359
|
+
async function Hs(e2, t2) {
|
|
3360
|
+
let n2 = Vs(e2, t2);
|
|
3361
|
+
return n2.size === 0 ? /* @__PURE__ */ new Map() : Bs([...n2]);
|
|
3362
|
+
}
|
|
3363
|
+
var Us = (e2, t2) => `${e2}:${[...t2].toSorted().join(`,`)}`;
|
|
3364
|
+
function Ws(e2) {
|
|
3365
|
+
if (vi(e2)) return ``;
|
|
3366
|
+
let t2 = Object.entries(e2.customizationIdToChoiceIds ?? {}).filter(([, e3]) => e3.length > 0).map(([e3, t3]) => Us(e3, t3)).toSorted().join(`;`), n2 = [];
|
|
3058
3367
|
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(`&`);
|
|
3059
3368
|
}
|
|
3060
|
-
function
|
|
3061
|
-
let
|
|
3062
|
-
await
|
|
3063
|
-
|
|
3064
|
-
|
|
3369
|
+
function Gs(e2, t2, a2, o2, s2, c2) {
|
|
3370
|
+
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 = i(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 }) => {
|
|
3371
|
+
let r2 = await Ns({ categoryId: e2, filters: t2, filterSelection: a2, sortType: o2, productsPerPage: s2, cursor: n2 });
|
|
3372
|
+
return (await Hs(r2.products, f2.current)).forEach((e3, t3) => f2.current.set(t3, e3)), r2;
|
|
3373
|
+
}, initialPageParam: void 0, getNextPageParam: (e3) => e3.hasNext ? e3.nextCursor : void 0, initialData: d2, staleTime: 1 / 0, placeholderData: $n, retry: false }), _2 = n(async () => {
|
|
3374
|
+
await g2({ cancelRefetch: false });
|
|
3375
|
+
}, [g2]);
|
|
3376
|
+
return { products: r(() => (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 };
|
|
3377
|
+
}
|
|
3378
|
+
function Ks(e2, t2) {
|
|
3379
|
+
let n2 = new Set(e2.map((e3) => e3.id));
|
|
3380
|
+
return [...new Set(t2.values())].filter((e3) => !n2.has(e3));
|
|
3381
|
+
}
|
|
3382
|
+
function qs(e2, t2, n2) {
|
|
3383
|
+
let r2 = new Map([...e2, ...t2].map((e3) => [e3.id, e3])), i2 = /* @__PURE__ */ new Map();
|
|
3384
|
+
return n2.forEach((e3, t3) => {
|
|
3385
|
+
let n3 = r2.get(e3);
|
|
3386
|
+
n3 && i2.set(t3, n3);
|
|
3387
|
+
}), i2;
|
|
3388
|
+
}
|
|
3389
|
+
function Js(e2) {
|
|
3390
|
+
return ri({ queries: e2.map((e3) => ({ queryKey: [`sibling-product`, e3], queryFn: () => js(e3), staleTime: 1 / 0, retry: false })) }).flatMap(({ data: e3 }) => e3 ? [e3] : []);
|
|
3391
|
+
}
|
|
3392
|
+
function Ys(e2, t2) {
|
|
3393
|
+
return qs(e2, Js(r(() => Ks(e2, t2), [e2, t2])), t2);
|
|
3394
|
+
}
|
|
3395
|
+
function Xs({ products: e2, productListKey: t2 }) {
|
|
3396
|
+
let [i2, o2] = a(() => /* @__PURE__ */ new Map()), [s2, c2] = a(t2);
|
|
3397
|
+
s2 !== t2 && (c2(t2), o2(/* @__PURE__ */ new Map()));
|
|
3398
|
+
let l2 = Ys(e2, i2);
|
|
3399
|
+
return { displayedProducts: r(() => e2.map((e3, t3) => l2.get(t3) ?? e3), [e2, l2]), selectProductGroupMember: n((t3, n2) => {
|
|
3400
|
+
let r2 = e2[t3];
|
|
3401
|
+
r2 && o2((e3) => Zs(e3, t3, n2, r2.id));
|
|
3402
|
+
}, [e2]) };
|
|
3403
|
+
}
|
|
3404
|
+
function Zs(e2, t2, n2, r2) {
|
|
3405
|
+
let i2 = new Map(e2);
|
|
3406
|
+
return n2 === r2 ? i2.delete(t2) : i2.set(t2, n2), i2;
|
|
3407
|
+
}
|
|
3408
|
+
function Qs({ products: e2, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 }) {
|
|
3409
|
+
let o2 = i([]);
|
|
3410
|
+
return r(() => {
|
|
3411
|
+
if (t2.size === 0) return e2.map((e3) => ({ product: e3, defaultLocationId: n2 }));
|
|
3412
|
+
let r2 = $s({ displayedProducts: e2, previousProductItems: o2.current, productGroupByGroupId: t2, defaultLocationId: n2, selectProductGroupMember: a2 });
|
|
3413
|
+
return o2.current = r2, r2;
|
|
3414
|
+
}, [e2, t2, n2, a2]);
|
|
3415
|
+
}
|
|
3416
|
+
function $s({ displayedProducts: e2, previousProductItems: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
|
|
3417
|
+
return e2.map((e3, a2) => {
|
|
3418
|
+
let o2 = t2[a2];
|
|
3419
|
+
return o2?.product === e3 ? o2 : ec({ product: e3, productItemIndex: a2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 });
|
|
3420
|
+
});
|
|
3065
3421
|
}
|
|
3066
|
-
function
|
|
3067
|
-
let
|
|
3068
|
-
return {
|
|
3422
|
+
function ec({ product: e2, productItemIndex: t2, productGroupByGroupId: n2, defaultLocationId: r2, selectProductGroupMember: i2 }) {
|
|
3423
|
+
let a2 = tc({ productGroup: e2.productGroupId ? n2.get(e2.productGroupId) : void 0, productItemIndex: t2, selectProductGroupMember: i2 });
|
|
3424
|
+
return { product: e2, defaultLocationId: r2, ...a2 && { productGroupData: a2 } };
|
|
3069
3425
|
}
|
|
3070
|
-
|
|
3071
|
-
|
|
3426
|
+
function tc({ productGroup: e2, productItemIndex: t2, selectProductGroupMember: n2 }) {
|
|
3427
|
+
if (e2) return { productGroup: e2, selectProductGroupMember: (r2) => {
|
|
3428
|
+
e2.members.some((e3) => e3.productId === r2) && n2(t2, r2);
|
|
3429
|
+
} };
|
|
3430
|
+
}
|
|
3431
|
+
function nc(e2, t2) {
|
|
3432
|
+
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 });
|
|
3433
|
+
return { filters: i2, currency: a2, productItems: Qs({ products: f2.size > 0 ? h2.displayedProducts : d2, productGroupByGroupId: f2, defaultLocationId: c2, selectProductGroupMember: h2.selectProductGroupMember }), promotionItems: r(() => o2.map((e3) => ({ promotion: e3 })), [o2]), ...l2, ...u2, ...m2 };
|
|
3434
|
+
}
|
|
3435
|
+
var rc = oi(`@wix/site-service-warmup-data`);
|
|
3436
|
+
async function ic(e2, t2, n2) {
|
|
3072
3437
|
let r2 = typeof window > `u`;
|
|
3073
3438
|
if (!r2 && e2) try {
|
|
3074
3439
|
let n3 = await e2.get(t2);
|
|
@@ -3082,108 +3447,108 @@ async function gs(e2, t2, n2) {
|
|
|
3082
3447
|
}
|
|
3083
3448
|
return i2;
|
|
3084
3449
|
}
|
|
3085
|
-
function
|
|
3086
|
-
let n2 =
|
|
3450
|
+
function ac(e2, t2) {
|
|
3451
|
+
let n2 = u(), [r2] = a(() => {
|
|
3087
3452
|
let r3;
|
|
3088
3453
|
try {
|
|
3089
|
-
r3 = n2(
|
|
3454
|
+
r3 = n2(rc);
|
|
3090
3455
|
} catch {
|
|
3091
3456
|
r3 = null;
|
|
3092
3457
|
}
|
|
3093
|
-
return
|
|
3458
|
+
return ic(r3, e2, t2);
|
|
3094
3459
|
});
|
|
3095
3460
|
return r2;
|
|
3096
3461
|
}
|
|
3097
|
-
async function
|
|
3098
|
-
return (await
|
|
3462
|
+
async function oc() {
|
|
3463
|
+
return (await co().eq(`defaultLocation`, true).find()).items?.[0]?._id ?? void 0;
|
|
3099
3464
|
}
|
|
3100
|
-
function
|
|
3101
|
-
return
|
|
3465
|
+
function sc(e2) {
|
|
3466
|
+
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` }] } }));
|
|
3102
3467
|
}
|
|
3103
|
-
var
|
|
3104
|
-
function
|
|
3468
|
+
var cc = `@wix/auto_sdk_categories_categories`;
|
|
3469
|
+
function lc(e2) {
|
|
3105
3470
|
function t2({ host: t3 }) {
|
|
3106
|
-
return { entityFqdn: `wix.categories.v1.category`, method: `GET`, methodFqn: `com.wix.categories.api.v1.CategoriesService.GetCategory`, packageName:
|
|
3471
|
+
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` }] }]) };
|
|
3107
3472
|
}
|
|
3108
3473
|
return t2;
|
|
3109
3474
|
}
|
|
3110
|
-
var
|
|
3111
|
-
async function
|
|
3112
|
-
let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 =
|
|
3475
|
+
var uc = ((e2) => (e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.RICH_CONTENT_DESCRIPTION = `RICH_CONTENT_DESCRIPTION`, e2))(uc || {});
|
|
3476
|
+
async function dc(e2, t2, n2) {
|
|
3477
|
+
let { httpClient: r2, sideEffects: i2 } = arguments[3], a2 = lc(S({ categoryId: e2, treeReference: t2, fields: n2?.fields }, []));
|
|
3113
3478
|
i2?.onSiteCall?.();
|
|
3114
3479
|
try {
|
|
3115
3480
|
let e3 = await r2.request(a2);
|
|
3116
|
-
return i2?.onSuccess?.(e3),
|
|
3481
|
+
return i2?.onSuccess?.(e3), C(T(e3.data, [{ transformFn: V, paths: [{ path: `category.image` }] }]), [`category.richContentDescription`])?.category;
|
|
3117
3482
|
} catch (e3) {
|
|
3118
|
-
let t3 =
|
|
3483
|
+
let t3 = E(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { categoryId: `$[0]`, treeReference: `$[1]`, fields: `$[2].fields` }, singleArgumentUnchanged: false }, [`categoryId`, `treeReference`, `options`]);
|
|
3119
3484
|
throw i2?.onError?.(e3), t3;
|
|
3120
3485
|
}
|
|
3121
3486
|
}
|
|
3122
|
-
({ ...
|
|
3123
|
-
function
|
|
3124
|
-
return (t2, n2, r2) =>
|
|
3125
|
-
}
|
|
3126
|
-
var
|
|
3127
|
-
var
|
|
3128
|
-
var
|
|
3129
|
-
var
|
|
3130
|
-
var
|
|
3131
|
-
var
|
|
3132
|
-
var
|
|
3133
|
-
var
|
|
3134
|
-
|
|
3135
|
-
function
|
|
3487
|
+
({ ...B() }, { ...ya() });
|
|
3488
|
+
function fc(e2) {
|
|
3489
|
+
return (t2, n2, r2) => dc(t2, n2, r2, { httpClient: e2 });
|
|
3490
|
+
}
|
|
3491
|
+
var pc = y(`wix.categories.v1.category_category_moved`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3492
|
+
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` }] }])))();
|
|
3493
|
+
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` }] }])))();
|
|
3494
|
+
var gc = y(`wix.categories.v1.category_item_added_to_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3495
|
+
var _c = y(`wix.categories.v1.category_item_removed_from_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3496
|
+
var vc = y(`wix.categories.v1.category_items_arranged_in_category`, true, (e2) => C(T(e2, [{ transformFn: w, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3497
|
+
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` }] }])))();
|
|
3498
|
+
var bc = D(fc);
|
|
3499
|
+
A(pc), A(mc), A(hc), A(gc), A(_c), A(vc), A(yc);
|
|
3500
|
+
function xc(e2) {
|
|
3136
3501
|
if (!e2) return null;
|
|
3137
3502
|
let t2 = e2.match(/image:\/\/v1\/([^/#]+)/);
|
|
3138
3503
|
return t2?.[1] ? t2[1] : e2.match(/\/media\/([^/]+)/)?.[1] ?? null;
|
|
3139
3504
|
}
|
|
3140
|
-
function
|
|
3505
|
+
function Sc(e2) {
|
|
3141
3506
|
return `https://static.wixstatic.com/media/${e2}`;
|
|
3142
3507
|
}
|
|
3143
|
-
function
|
|
3508
|
+
function Cc(e2) {
|
|
3144
3509
|
if (!e2) return null;
|
|
3145
3510
|
let t2 = e2.match(/#originWidth=(\d+)&originHeight=(\d+)/);
|
|
3146
3511
|
return t2 ? { width: parseInt(t2[1], 10), height: parseInt(t2[2], 10) } : null;
|
|
3147
3512
|
}
|
|
3148
|
-
var
|
|
3149
|
-
var
|
|
3150
|
-
var
|
|
3513
|
+
var wc = (e2) => `/category/${e2}`;
|
|
3514
|
+
var Tc = (e2) => ({ ...e2, nodes: e2.nodes ?? [] });
|
|
3515
|
+
var Ec = (e2) => {
|
|
3151
3516
|
if (!e2) return;
|
|
3152
|
-
let t2 =
|
|
3153
|
-
return { uri:
|
|
3517
|
+
let t2 = Cc(e2);
|
|
3518
|
+
return { uri: xc(e2) ?? void 0, url: e2, width: t2?.width, height: t2?.height };
|
|
3154
3519
|
};
|
|
3155
|
-
var
|
|
3520
|
+
var Dc = (e2) => e2.filter((e3) => e3.categoryId).map((e3) => {
|
|
3156
3521
|
let t2 = e3.categorySlug ?? ``;
|
|
3157
|
-
return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href:
|
|
3522
|
+
return { id: e3.categoryId ?? ``, name: e3.categoryName ?? ``, slug: t2, href: wc(t2) };
|
|
3158
3523
|
});
|
|
3159
|
-
var
|
|
3160
|
-
var
|
|
3524
|
+
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 });
|
|
3525
|
+
var kc = (e2) => {
|
|
3161
3526
|
if (e2) return { preventAutoRedirect: e2.preventAutoRedirect, keywords: e2.keywords?.map((e3) => ({ term: e3.term, isMain: e3.isMain, origin: e3.origin ?? void 0 })) };
|
|
3162
3527
|
};
|
|
3163
|
-
var
|
|
3164
|
-
if (e2) return { tags: e2.tags?.map(
|
|
3528
|
+
var Ac = (e2) => {
|
|
3529
|
+
if (e2) return { tags: e2.tags?.map(Oc), settings: kc(e2.settings) };
|
|
3165
3530
|
};
|
|
3166
|
-
function
|
|
3167
|
-
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:
|
|
3531
|
+
function jc(e2) {
|
|
3532
|
+
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 ?? []) };
|
|
3168
3533
|
}
|
|
3169
|
-
var
|
|
3170
|
-
var
|
|
3171
|
-
var
|
|
3534
|
+
var Mc = { appNamespace: `@wix/stores`, treeKey: null };
|
|
3535
|
+
var Nc = [uc.BREADCRUMBS_INFO, uc.DESCRIPTION, uc.RICH_CONTENT_DESCRIPTION];
|
|
3536
|
+
var Pc = (e2, t2) => {
|
|
3172
3537
|
if (!e2?._id || e2.visible === false) throw Error(t2);
|
|
3173
|
-
return
|
|
3538
|
+
return jc(e2);
|
|
3174
3539
|
};
|
|
3175
|
-
async function
|
|
3176
|
-
return
|
|
3540
|
+
async function Fc(e2) {
|
|
3541
|
+
return Pc(await bc(e2, Mc, { fields: Nc }), `Category not found for id: ${e2}`);
|
|
3177
3542
|
}
|
|
3178
|
-
var
|
|
3543
|
+
var Ic = (e2, t2, n2) => {
|
|
3179
3544
|
let r2 = [];
|
|
3180
3545
|
for (let i2 of e2.keys()) if (!t2.has(i2)) {
|
|
3181
3546
|
let e3 = n2.find((e4) => e4._id === i2);
|
|
3182
|
-
e3 && r2.push(
|
|
3547
|
+
e3 && r2.push(Kc(e3, 0));
|
|
3183
3548
|
}
|
|
3184
3549
|
return r2;
|
|
3185
3550
|
};
|
|
3186
|
-
var
|
|
3551
|
+
var Lc = (e2) => {
|
|
3187
3552
|
let t2 = /* @__PURE__ */ new Map();
|
|
3188
3553
|
for (let { _id: n2, primaryChoiceIds: r2 } of e2) if (n2) for (let e3 of r2 ?? []) {
|
|
3189
3554
|
let r3 = t2.get(e3) ?? [];
|
|
@@ -3191,8 +3556,8 @@ var Ys = (e2) => {
|
|
|
3191
3556
|
}
|
|
3192
3557
|
return t2;
|
|
3193
3558
|
};
|
|
3194
|
-
var
|
|
3195
|
-
let r2 =
|
|
3559
|
+
var Rc = (e2, t2, n2) => {
|
|
3560
|
+
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());
|
|
3196
3561
|
return i2.flatMap((e3) => {
|
|
3197
3562
|
if (o2.has(e3.id)) return [];
|
|
3198
3563
|
let n3 = t2.get(e3.id);
|
|
@@ -3203,77 +3568,77 @@ var Xs = (e2, t2, n2) => {
|
|
|
3203
3568
|
return [{ ...e3, count: e3.count + i3, linkedChoiceIds: r3 }];
|
|
3204
3569
|
});
|
|
3205
3570
|
};
|
|
3206
|
-
function
|
|
3207
|
-
return
|
|
3571
|
+
function zc(e2, t2) {
|
|
3572
|
+
return Rc(e2, Lc(t2), t2);
|
|
3208
3573
|
}
|
|
3209
|
-
var
|
|
3574
|
+
var Bc = (e2) => {
|
|
3210
3575
|
let t2 = e2.trim();
|
|
3211
3576
|
if (t2 === ``) return null;
|
|
3212
3577
|
let n2 = Number(t2);
|
|
3213
3578
|
return Number.isFinite(n2) ? n2 : null;
|
|
3214
3579
|
};
|
|
3215
|
-
var
|
|
3580
|
+
var Vc = (e2, t2) => {
|
|
3216
3581
|
let n2 = t2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3, t3) => [e3._id ?? ``, t3])), i2 = (e3) => r2.get(e3.id) ?? 2 ** 53 - 1;
|
|
3217
3582
|
return e2.toSorted((e3, t3) => i2(e3) - i2(t3));
|
|
3218
3583
|
};
|
|
3219
|
-
var
|
|
3220
|
-
var
|
|
3221
|
-
var
|
|
3222
|
-
let r2 =
|
|
3584
|
+
var Hc = (e2, t2, n2) => t2 === U.TEXT_CHOICES ? Wc(e2, (e3) => e3.name) : n2 ? Uc(e2, (e3) => e3.count) : [...e2];
|
|
3585
|
+
var Uc = (e2, t2) => e2.toSorted((e3, n2) => t2(n2) - t2(e3));
|
|
3586
|
+
var Wc = (e2, t2) => e2.toSorted((e3, n2) => {
|
|
3587
|
+
let r2 = Bc(t2(e3)), i2 = Bc(t2(n2));
|
|
3223
3588
|
return r2 !== null && i2 !== null ? r2 - i2 : r2 === null ? i2 === null ? t2(e3).toLowerCase().localeCompare(t2(n2).toLowerCase()) : 1 : -1;
|
|
3224
3589
|
});
|
|
3225
|
-
function
|
|
3590
|
+
function Gc(e2, t2, n2) {
|
|
3226
3591
|
switch (t2.choicesSettings?.sortOrder) {
|
|
3227
|
-
case
|
|
3228
|
-
return
|
|
3229
|
-
case
|
|
3230
|
-
return
|
|
3231
|
-
case
|
|
3232
|
-
return
|
|
3233
|
-
case
|
|
3592
|
+
case Qi.BY_NAME:
|
|
3593
|
+
return Wc(e2, (e3) => e3.name);
|
|
3594
|
+
case Qi.BY_PRODUCT_COUNT:
|
|
3595
|
+
return Uc(e2, (e3) => e3.count);
|
|
3596
|
+
case Qi.MANUAL:
|
|
3597
|
+
return Vc(e2, t2);
|
|
3598
|
+
case Qi.DEFAULT:
|
|
3234
3599
|
default:
|
|
3235
|
-
return
|
|
3600
|
+
return Hc(e2, t2.customizationRenderType, n2);
|
|
3236
3601
|
}
|
|
3237
3602
|
}
|
|
3238
|
-
var
|
|
3239
|
-
function
|
|
3603
|
+
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 });
|
|
3604
|
+
function qc(e2, t2) {
|
|
3240
3605
|
let n2 = e2.choicesSettings?.choices ?? [], r2 = new Map(n2.map((e3) => [e3._id, e3])), i2 = [...t2].flatMap(([e3, t3]) => {
|
|
3241
3606
|
let n3 = r2.get(e3);
|
|
3242
|
-
return n3 ? [
|
|
3607
|
+
return n3 ? [Kc(n3, t3)] : [];
|
|
3243
3608
|
}), a2 = n2.some((e3) => (e3.primaryChoiceIds?.length ?? 0) > 0);
|
|
3244
|
-
return
|
|
3609
|
+
return Gc(a2 ? zc(i2, n2) : i2, e2, a2);
|
|
3245
3610
|
}
|
|
3246
|
-
var
|
|
3247
|
-
let t2 =
|
|
3611
|
+
var Jc = (e2) => {
|
|
3612
|
+
let t2 = xc(e2);
|
|
3248
3613
|
if (!t2) return;
|
|
3249
|
-
let n2 =
|
|
3250
|
-
return { id: t2, url:
|
|
3614
|
+
let n2 = Cc(e2);
|
|
3615
|
+
return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
|
|
3251
3616
|
};
|
|
3252
|
-
var
|
|
3253
|
-
let t2 = e2.displayImage === void 0 ? void 0 :
|
|
3254
|
-
return { ...
|
|
3617
|
+
var Yc = (e2) => {
|
|
3618
|
+
let t2 = e2.displayImage === void 0 ? void 0 : Jc(e2.displayImage);
|
|
3619
|
+
return { ...Zc(e2), ...e2.values[0] === void 0 ? {} : { colorHexCode: e2.values[0] }, ...t2 ? { displayImage: t2 } : {} };
|
|
3255
3620
|
};
|
|
3256
|
-
var
|
|
3257
|
-
var
|
|
3258
|
-
var
|
|
3259
|
-
var
|
|
3621
|
+
var Xc = (e2) => ({ type: J.SWATCH_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Yc) });
|
|
3622
|
+
var Zc = (e2) => ({ id: e2.id, name: e2.name, ...e2.linkedChoiceIds.length > 0 ? { childIds: e2.linkedChoiceIds } : {} });
|
|
3623
|
+
var Qc = (e2) => ({ type: J.TEXT_CHOICES, id: e2.id, customizationType: e2.type, name: e2.name, values: e2.choices.map(Zc) });
|
|
3624
|
+
var $c = (e2, t2, n2, r2) => {
|
|
3260
3625
|
let i2 = new Map(t2.map((e3) => [e3._id, e3]));
|
|
3261
3626
|
return n2.flatMap((t3) => {
|
|
3262
3627
|
let n3 = i2.get(t3);
|
|
3263
|
-
return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices:
|
|
3628
|
+
return n3 ? [{ id: t3, name: n3.name ?? ``, renderType: n3.customizationRenderType, type: e2, choices: qc(n3, r2) }] : [];
|
|
3264
3629
|
});
|
|
3265
3630
|
};
|
|
3266
|
-
var
|
|
3267
|
-
var
|
|
3268
|
-
function
|
|
3631
|
+
var el = (e2) => Wc(e2.filter((e3) => e3.renderType === U.SWATCH_CHOICES).map(Xc), (e3) => e3.name);
|
|
3632
|
+
var tl = (e2) => Wc(e2.filter((e3) => e3.renderType === U.TEXT_CHOICES).map(Qc), (e3) => e3.name);
|
|
3633
|
+
function nl(e2, t2, n2, r2) {
|
|
3269
3634
|
if (n2.length === 0) return [];
|
|
3270
|
-
let i2 =
|
|
3271
|
-
return [...
|
|
3635
|
+
let i2 = $c(e2, t2, n2, r2);
|
|
3636
|
+
return [...el(i2), ...tl(i2)];
|
|
3272
3637
|
}
|
|
3273
|
-
function
|
|
3274
|
-
if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type:
|
|
3638
|
+
function rl(e2, t2) {
|
|
3639
|
+
if (!(e2 === void 0 || t2 === void 0 || e2 >= t2)) return { type: J.PRICE, name: bo.PRICE, minPrice: e2, maxPrice: t2 };
|
|
3275
3640
|
}
|
|
3276
|
-
var
|
|
3641
|
+
var il = _((e2, t2) => {
|
|
3277
3642
|
function n2(e3, t3, n3) {
|
|
3278
3643
|
var r2 = -1, i2 = e3.length;
|
|
3279
3644
|
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;
|
|
@@ -3282,24 +3647,24 @@ var gc = g((e2, t2) => {
|
|
|
3282
3647
|
}
|
|
3283
3648
|
t2.exports = n2;
|
|
3284
3649
|
});
|
|
3285
|
-
var
|
|
3650
|
+
var al = _((e2, t2) => {
|
|
3286
3651
|
function n2(e3, t3) {
|
|
3287
3652
|
return e3 === t3 || e3 !== e3 && t3 !== t3;
|
|
3288
3653
|
}
|
|
3289
3654
|
t2.exports = n2;
|
|
3290
3655
|
});
|
|
3291
|
-
var
|
|
3656
|
+
var ol = _((e2, t2) => {
|
|
3292
3657
|
t2.exports = typeof window == `object` && window && window.Object === Object && window;
|
|
3293
3658
|
});
|
|
3294
|
-
var
|
|
3295
|
-
var n2 =
|
|
3659
|
+
var sl = _((e2, t2) => {
|
|
3660
|
+
var n2 = ol(), r2 = typeof self == `object` && self && self.Object === Object && self;
|
|
3296
3661
|
t2.exports = n2 || r2 || Function(`return this`)();
|
|
3297
3662
|
});
|
|
3298
|
-
var
|
|
3299
|
-
t2.exports =
|
|
3663
|
+
var cl = _((e2, t2) => {
|
|
3664
|
+
t2.exports = sl().Symbol;
|
|
3300
3665
|
});
|
|
3301
|
-
var
|
|
3302
|
-
var n2 =
|
|
3666
|
+
var ll = _((e2, t2) => {
|
|
3667
|
+
var n2 = cl(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
|
|
3303
3668
|
function s2(e3) {
|
|
3304
3669
|
var t3 = i2.call(e3, o2), n3 = e3[o2];
|
|
3305
3670
|
try {
|
|
@@ -3312,29 +3677,29 @@ var xc = g((e2, t2) => {
|
|
|
3312
3677
|
}
|
|
3313
3678
|
t2.exports = s2;
|
|
3314
3679
|
});
|
|
3315
|
-
var
|
|
3680
|
+
var ul = _((e2, t2) => {
|
|
3316
3681
|
var n2 = Object.prototype.toString;
|
|
3317
3682
|
function r2(e3) {
|
|
3318
3683
|
return n2.call(e3);
|
|
3319
3684
|
}
|
|
3320
3685
|
t2.exports = r2;
|
|
3321
3686
|
});
|
|
3322
|
-
var
|
|
3323
|
-
var n2 =
|
|
3687
|
+
var dl = _((e2, t2) => {
|
|
3688
|
+
var n2 = cl(), r2 = ll(), i2 = ul(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
|
|
3324
3689
|
function c2(e3) {
|
|
3325
3690
|
return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
|
|
3326
3691
|
}
|
|
3327
3692
|
t2.exports = c2;
|
|
3328
3693
|
});
|
|
3329
|
-
var
|
|
3694
|
+
var fl = _((e2, t2) => {
|
|
3330
3695
|
function n2(e3) {
|
|
3331
3696
|
var t3 = typeof e3;
|
|
3332
3697
|
return e3 != null && (t3 == `object` || t3 == `function`);
|
|
3333
3698
|
}
|
|
3334
3699
|
t2.exports = n2;
|
|
3335
3700
|
});
|
|
3336
|
-
var
|
|
3337
|
-
var n2 =
|
|
3701
|
+
var pl = _((e2, t2) => {
|
|
3702
|
+
var n2 = dl(), r2 = fl(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
|
|
3338
3703
|
function c2(e3) {
|
|
3339
3704
|
if (!r2(e3)) return false;
|
|
3340
3705
|
var t3 = n2(e3);
|
|
@@ -3342,20 +3707,20 @@ var Tc = g((e2, t2) => {
|
|
|
3342
3707
|
}
|
|
3343
3708
|
t2.exports = c2;
|
|
3344
3709
|
});
|
|
3345
|
-
var
|
|
3710
|
+
var ml = _((e2, t2) => {
|
|
3346
3711
|
function n2(e3) {
|
|
3347
3712
|
return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
|
|
3348
3713
|
}
|
|
3349
3714
|
t2.exports = n2;
|
|
3350
3715
|
});
|
|
3351
|
-
var
|
|
3352
|
-
var n2 =
|
|
3716
|
+
var hl = _((e2, t2) => {
|
|
3717
|
+
var n2 = pl(), r2 = ml();
|
|
3353
3718
|
function i2(e3) {
|
|
3354
3719
|
return e3 != null && r2(e3.length) && !n2(e3);
|
|
3355
3720
|
}
|
|
3356
3721
|
t2.exports = i2;
|
|
3357
3722
|
});
|
|
3358
|
-
var
|
|
3723
|
+
var gl = _((e2, t2) => {
|
|
3359
3724
|
var n2 = /^(?:0|[1-9]\d*)$/;
|
|
3360
3725
|
function r2(e3, t3) {
|
|
3361
3726
|
var r3 = typeof e3;
|
|
@@ -3363,8 +3728,8 @@ var Oc = g((e2, t2) => {
|
|
|
3363
3728
|
}
|
|
3364
3729
|
t2.exports = r2;
|
|
3365
3730
|
});
|
|
3366
|
-
var
|
|
3367
|
-
var n2 =
|
|
3731
|
+
var _l = _((e2, t2) => {
|
|
3732
|
+
var n2 = al(), r2 = hl(), i2 = gl(), a2 = fl();
|
|
3368
3733
|
function o2(e3, t3, o3) {
|
|
3369
3734
|
if (!a2(o3)) return false;
|
|
3370
3735
|
var s2 = typeof t3;
|
|
@@ -3372,7 +3737,7 @@ var kc = g((e2, t2) => {
|
|
|
3372
3737
|
}
|
|
3373
3738
|
t2.exports = o2;
|
|
3374
3739
|
});
|
|
3375
|
-
var
|
|
3740
|
+
var vl = _((e2, t2) => {
|
|
3376
3741
|
var n2 = /\s/;
|
|
3377
3742
|
function r2(e3) {
|
|
3378
3743
|
for (var t3 = e3.length; t3-- && n2.test(e3.charAt(t3)); ) ;
|
|
@@ -3380,28 +3745,28 @@ var Ac = g((e2, t2) => {
|
|
|
3380
3745
|
}
|
|
3381
3746
|
t2.exports = r2;
|
|
3382
3747
|
});
|
|
3383
|
-
var
|
|
3384
|
-
var n2 =
|
|
3748
|
+
var yl = _((e2, t2) => {
|
|
3749
|
+
var n2 = vl(), r2 = /^\s+/;
|
|
3385
3750
|
function i2(e3) {
|
|
3386
3751
|
return e3 && e3.slice(0, n2(e3) + 1).replace(r2, ``);
|
|
3387
3752
|
}
|
|
3388
3753
|
t2.exports = i2;
|
|
3389
3754
|
});
|
|
3390
|
-
var
|
|
3755
|
+
var bl = _((e2, t2) => {
|
|
3391
3756
|
function n2(e3) {
|
|
3392
3757
|
return typeof e3 == `object` && !!e3;
|
|
3393
3758
|
}
|
|
3394
3759
|
t2.exports = n2;
|
|
3395
3760
|
});
|
|
3396
|
-
var
|
|
3397
|
-
var n2 =
|
|
3761
|
+
var xl = _((e2, t2) => {
|
|
3762
|
+
var n2 = dl(), r2 = bl(), i2 = `[object Symbol]`;
|
|
3398
3763
|
function a2(e3) {
|
|
3399
3764
|
return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
|
|
3400
3765
|
}
|
|
3401
3766
|
t2.exports = a2;
|
|
3402
3767
|
});
|
|
3403
|
-
var
|
|
3404
|
-
var n2 =
|
|
3768
|
+
var Sl = _((e2, t2) => {
|
|
3769
|
+
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;
|
|
3405
3770
|
function u2(e3) {
|
|
3406
3771
|
if (typeof e3 == `number`) return e3;
|
|
3407
3772
|
if (i2(e3)) return a2;
|
|
@@ -3416,23 +3781,23 @@ var Pc = g((e2, t2) => {
|
|
|
3416
3781
|
}
|
|
3417
3782
|
t2.exports = u2;
|
|
3418
3783
|
});
|
|
3419
|
-
var
|
|
3420
|
-
var n2 =
|
|
3784
|
+
var Cl = _((e2, t2) => {
|
|
3785
|
+
var n2 = Sl(), r2 = 1 / 0, i2 = 17976931348623157e292;
|
|
3421
3786
|
function a2(e3) {
|
|
3422
3787
|
return e3 ? (e3 = n2(e3), e3 === r2 || e3 === -r2 ? (e3 < 0 ? -1 : 1) * i2 : e3 === e3 ? e3 : 0) : e3 === 0 ? e3 : 0;
|
|
3423
3788
|
}
|
|
3424
3789
|
t2.exports = a2;
|
|
3425
3790
|
});
|
|
3426
|
-
var
|
|
3427
|
-
var n2 =
|
|
3791
|
+
var wl = _((e2, t2) => {
|
|
3792
|
+
var n2 = Cl();
|
|
3428
3793
|
function r2(e3) {
|
|
3429
3794
|
var t3 = n2(e3), r3 = t3 % 1;
|
|
3430
3795
|
return t3 === t3 ? r3 ? t3 - r3 : t3 : 0;
|
|
3431
3796
|
}
|
|
3432
3797
|
t2.exports = r2;
|
|
3433
3798
|
});
|
|
3434
|
-
var
|
|
3435
|
-
var n2 =
|
|
3799
|
+
var Tl = ne(_((e2, t2) => {
|
|
3800
|
+
var n2 = il(), r2 = _l(), i2 = wl(), a2 = Math.ceil, o2 = Math.max;
|
|
3436
3801
|
function s2(e3, t3, s3) {
|
|
3437
3802
|
t3 = (s3 ? r2(e3, t3, s3) : t3 === void 0) ? 1 : o2(i2(t3), 0);
|
|
3438
3803
|
var c2 = e3 == null ? 0 : e3.length;
|
|
@@ -3442,91 +3807,91 @@ var Lc = ne(g((e2, t2) => {
|
|
|
3442
3807
|
}
|
|
3443
3808
|
t2.exports = s2;
|
|
3444
3809
|
})(), 1);
|
|
3445
|
-
var
|
|
3446
|
-
var
|
|
3447
|
-
async function
|
|
3448
|
-
let t2 = (0,
|
|
3449
|
-
return (await Promise.all(t2.map(
|
|
3450
|
-
}
|
|
3451
|
-
var
|
|
3452
|
-
var
|
|
3453
|
-
var
|
|
3454
|
-
function
|
|
3810
|
+
var El = [$i.CHOICE_DISPLAY_IMAGE];
|
|
3811
|
+
var Dl = `customizationRenderType`;
|
|
3812
|
+
async function Ol(e2) {
|
|
3813
|
+
let t2 = (0, Tl.default)(e2, 100);
|
|
3814
|
+
return (await Promise.all(t2.map(kl))).flat();
|
|
3815
|
+
}
|
|
3816
|
+
var kl = async (e2) => (await ca({ fields: El }).hasSome(`_id`, e2).ne(Dl, U.FREE_TEXT).limit(100).find()).items;
|
|
3817
|
+
var Al = (e2, t2, n2) => ({ name: e2, type: Oa.SCALAR, fieldPath: t2, scalar: { type: n2 } });
|
|
3818
|
+
var jl = (e2, t2, n2) => ({ name: e2, type: Oa.VALUE, fieldPath: t2, value: { limit: n2, sortType: Ta.COUNT, sortDirection: Ea.DESC } });
|
|
3819
|
+
function Ml(e2) {
|
|
3455
3820
|
let t2 = [];
|
|
3456
|
-
return e2.includes(Z.PRICE) && t2.push(
|
|
3821
|
+
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;
|
|
3457
3822
|
}
|
|
3458
|
-
var
|
|
3823
|
+
var Nl = (e2) => {
|
|
3459
3824
|
let t2 = e2?.values?.results ?? [], n2 = /* @__PURE__ */ new Map();
|
|
3460
3825
|
for (let e3 of t2) e3.value !== void 0 && e3.count !== void 0 && n2.set(e3.value, e3.count);
|
|
3461
3826
|
return n2;
|
|
3462
3827
|
};
|
|
3463
|
-
var
|
|
3464
|
-
var
|
|
3828
|
+
var Pl = (e2) => (e2?.values?.results ?? []).flatMap((e3) => e3.value === void 0 ? [] : [e3.value]);
|
|
3829
|
+
var Fl = (e2) => {
|
|
3465
3830
|
let t2 = /* @__PURE__ */ new Map();
|
|
3466
3831
|
for (let n2 of e2) n2.name !== void 0 && t2.set(n2.name, n2);
|
|
3467
3832
|
return t2;
|
|
3468
3833
|
};
|
|
3469
|
-
async function
|
|
3470
|
-
let n2 = await
|
|
3471
|
-
return { minPrice: r2.get(Q.minPrice)?.scalar?.value, maxPrice: r2.get(Q.maxPrice)?.scalar?.value, optionIds:
|
|
3834
|
+
async function Il(e2, t2) {
|
|
3835
|
+
let n2 = await Va({ filter: { [Ss]: { $matchItems: [{ id: e2 }] } }, cursorPaging: { limit: 1 }, aggregations: Ml(t2) }, { fields: [q.CURRENCY] }), r2 = Fl(n2.aggregationData?.results ?? []);
|
|
3836
|
+
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 };
|
|
3472
3837
|
}
|
|
3473
|
-
var
|
|
3474
|
-
async function
|
|
3475
|
-
let n2 = await
|
|
3476
|
-
return { filters: [
|
|
3838
|
+
var Ll = [Z.PRICE, Z.OPTIONS, Z.MODIFIERS];
|
|
3839
|
+
async function Rl(e2, t2 = Ll) {
|
|
3840
|
+
let n2 = await Il(e2, t2), r2 = await Ol([...n2.optionIds, ...n2.modifierIds]);
|
|
3841
|
+
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 };
|
|
3477
3842
|
}
|
|
3478
|
-
var
|
|
3479
|
-
let t2 =
|
|
3843
|
+
var zl = (e2) => {
|
|
3844
|
+
let t2 = xc(e2 ?? void 0);
|
|
3480
3845
|
if (!t2) return;
|
|
3481
|
-
let n2 =
|
|
3482
|
-
return { id: t2, url:
|
|
3846
|
+
let n2 = Cc(e2);
|
|
3847
|
+
return { id: t2, url: Sc(t2), ...n2 ? { width: n2.width, height: n2.height } : {} };
|
|
3483
3848
|
};
|
|
3484
|
-
var
|
|
3485
|
-
if (e2?._id && t2 !== void 0) return { id: e2._id, name: e2.name, destinationUrl: e2.destinationUrl ? { href: e2.destinationUrl } : void 0, image:
|
|
3849
|
+
var Bl = ({ promotion: e2, position: t2 }) => {
|
|
3850
|
+
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 };
|
|
3486
3851
|
};
|
|
3487
|
-
async function
|
|
3488
|
-
return ((await
|
|
3852
|
+
async function Vl(e2) {
|
|
3853
|
+
return ((await yo(e2)).promotions ?? []).map(Bl).filter((e3) => e3 !== void 0);
|
|
3489
3854
|
}
|
|
3490
|
-
var
|
|
3491
|
-
let i2 = [...new URLSearchParams(n2).keys()].length > 0 ? (await t2).filters : [], a2 =
|
|
3492
|
-
return { page:
|
|
3855
|
+
var Hl = async (e2, t2, n2, r2) => {
|
|
3856
|
+
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());
|
|
3857
|
+
return { page: s2, productGroupByGroupId: Object.fromEntries(c2), filterSelectionKey: Ws(a2), sortType: o2, productsPerPage: r2 };
|
|
3493
3858
|
};
|
|
3494
|
-
async function
|
|
3495
|
-
let r2 =
|
|
3859
|
+
async function Ul(e2, t2, n2) {
|
|
3860
|
+
let r2 = Rl(e2), [i2, a2, o2] = await Promise.all([Hl(e2, r2, t2, n2), r2, Vl(e2)]), { filters: s2, currency: c2 } = a2;
|
|
3496
3861
|
return { filters: s2, currency: c2, promotions: o2, initialProductList: i2 };
|
|
3497
3862
|
}
|
|
3498
|
-
var
|
|
3499
|
-
async function
|
|
3500
|
-
let [r2, i2, a2] = await Promise.all([
|
|
3863
|
+
var Wl = `wixstores-storefront-builder:category-by-id-context-data`;
|
|
3864
|
+
async function Gl(e2, t2, n2) {
|
|
3865
|
+
let [r2, i2, a2] = await Promise.all([Fc(e2), oc(), Ul(e2, t2, n2)]);
|
|
3501
3866
|
return { category: r2, defaultLocationId: i2, ...a2 };
|
|
3502
3867
|
}
|
|
3503
|
-
function
|
|
3504
|
-
let { search: n2 } =
|
|
3505
|
-
return
|
|
3868
|
+
function Kl(e2, t2) {
|
|
3869
|
+
let { search: n2 } = _i();
|
|
3870
|
+
return ac(`${Wl}:${e2}:${t2}:${n2}`, () => Gl(e2, n2, t2));
|
|
3506
3871
|
}
|
|
3507
|
-
function
|
|
3872
|
+
function ql() {
|
|
3508
3873
|
throw Error(`useCategoryByIdContext must not be used directly`);
|
|
3509
3874
|
}
|
|
3510
|
-
function
|
|
3511
|
-
return
|
|
3875
|
+
function Jl({ categoryValue: e2, productListValue: t2, children: n2 }) {
|
|
3876
|
+
return s(l, { value: e2, children: s(c, { value: t2, children: n2 }) });
|
|
3512
3877
|
}
|
|
3513
|
-
var
|
|
3514
|
-
let r2 =
|
|
3515
|
-
return
|
|
3878
|
+
var Yl = ({ children: e2, dataPromise: t2, productsPerPage: n2 }) => {
|
|
3879
|
+
let r2 = pi(t2), i2 = fi(r2), a2 = nc(r2, n2);
|
|
3880
|
+
return s(Jl, { categoryValue: i2, productListValue: a2, children: e2 });
|
|
3516
3881
|
};
|
|
3517
|
-
var
|
|
3518
|
-
let [
|
|
3519
|
-
return
|
|
3882
|
+
var Xl = ({ children: e2, categoryId: n2, productsPerPage: r2 }) => {
|
|
3883
|
+
let [i2] = a(() => new Vr()), o2 = Kl(n2, r2);
|
|
3884
|
+
return s(Wr, { client: i2, children: s(t, { fallback: null, children: s(Yl, { dataPromise: o2, productsPerPage: r2, children: e2 }) }) });
|
|
3520
3885
|
};
|
|
3521
|
-
function
|
|
3522
|
-
return t2 ?
|
|
3886
|
+
function Zl({ children: e2, categoryId: t2, productsPerPage: n2 = 20 }) {
|
|
3887
|
+
return t2 ? s(Xl, { categoryId: t2, productsPerPage: n2, children: e2 }, t2) : null;
|
|
3523
3888
|
}
|
|
3524
|
-
var
|
|
3889
|
+
var Ql = Mn(`733f4f74-23d2-4b03-a0b1-1efdd5e3825b`);
|
|
3525
3890
|
export {
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3891
|
+
Zl as CategoryByIdContextProvider,
|
|
3892
|
+
Jl as CategoryByIdContextValues,
|
|
3893
|
+
Zl as default,
|
|
3894
|
+
Ql as injectAccessTokenGetter,
|
|
3895
|
+
ql as useCategoryByIdContext
|
|
3531
3896
|
};
|
|
3532
3897
|
//# sourceMappingURL=context-category-by-id.mjs.map
|