@wix/stores 1.0.977 → 1.0.979
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/build/cjs/context-category-by-id.js +219 -208
- package/build/cjs/context-category-by-id.js.map +1 -1
- package/build/cjs/context-category-by-slug.js +1203 -1192
- package/build/cjs/context-category-by-slug.js.map +1 -1
- package/build/cjs/context-category-info.js +259 -249
- package/build/cjs/context-category-info.js.map +1 -1
- package/build/cjs/context-category-list.js +1 -1
- package/build/cjs/context-category-list.js.map +1 -1
- package/build/cjs/context-product-by-id.js +40 -32
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.js +49 -41
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.js +1043 -1035
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/cjs/context-product-list.js +1 -1
- package/build/cjs/context-product-list.js.map +1 -1
- package/build/cjs/context-product.js +1 -1
- package/build/cjs/context-product.js.map +1 -1
- package/build/cjs/context-promotion-item.js +1 -1
- package/build/cjs/context-promotion-item.js.map +1 -1
- package/build/es/context-category-by-id.mjs +219 -208
- package/build/es/context-category-by-id.mjs.map +1 -1
- package/build/es/context-category-by-slug.mjs +1203 -1192
- package/build/es/context-category-by-slug.mjs.map +1 -1
- package/build/es/context-category-info.mjs +263 -253
- package/build/es/context-category-info.mjs.map +1 -1
- package/build/es/context-category-list.mjs +1 -1
- package/build/es/context-category-list.mjs.map +1 -1
- package/build/es/context-product-by-id.mjs +40 -32
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.mjs +49 -41
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.mjs +1043 -1035
- package/build/es/context-product-item.mjs.map +1 -1
- package/build/es/context-product-list.mjs +1 -1
- package/build/es/context-product-list.mjs.map +1 -1
- package/build/es/context-product.mjs +1 -1
- package/build/es/context-product.mjs.map +1 -1
- package/build/es/context-promotion-item.mjs +1 -1
- package/build/es/context-promotion-item.mjs.map +1 -1
- package/{_sdk-exports → context-runtime}/context-category-by-id/runtime.js +2 -2
- package/context-runtime/context-category-by-slug/runtime.js +2 -0
- package/context-runtime/context-category-info/runtime.js +2 -0
- package/{_sdk-exports → context-runtime}/context-product-by-id/runtime.js +2 -2
- package/{_sdk-exports → context-runtime}/context-product-by-slug/runtime.js +2 -2
- package/context-runtime/context-product-item/runtime.js +2 -0
- package/package.json +4 -4
- package/_sdk-exports/context-category-by-slug/runtime.js +0 -2
- package/_sdk-exports/context-category-info/runtime.js +0 -2
- package/_sdk-exports/context-product-item/runtime.js +0 -2
- /package/{_sdk-exports → context-runtime}/context-category-by-id/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-category-by-slug/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-category-info/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-category-list/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-category-list/runtime.js +0 -0
- /package/{_sdk-exports → context-runtime}/context-product/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-product/runtime.js +0 -0
- /package/{_sdk-exports → context-runtime}/context-product-by-id/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-product-by-slug/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-product-item/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-product-list/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-product-list/runtime.js +0 -0
- /package/{_sdk-exports → context-runtime}/context-promotion-item/runtime.d.ts +0 -0
- /package/{_sdk-exports → context-runtime}/context-promotion-item/runtime.js +0 -0
|
@@ -30,15 +30,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
30
30
|
// context-product-item.ts
|
|
31
31
|
var context_product_item_exports = {};
|
|
32
32
|
__export(context_product_item_exports, {
|
|
33
|
-
ProductItemContextProvider: () =>
|
|
34
|
-
default: () =>
|
|
35
|
-
injectAccessTokenGetter: () =>
|
|
36
|
-
useProductItemContext: () =>
|
|
37
|
-
useProductItemContextValue: () =>
|
|
33
|
+
ProductItemContextProvider: () => Cu,
|
|
34
|
+
default: () => Cu,
|
|
35
|
+
injectAccessTokenGetter: () => wu,
|
|
36
|
+
useProductItemContext: () => bu,
|
|
37
|
+
useProductItemContextValue: () => xu
|
|
38
38
|
});
|
|
39
39
|
module.exports = __toCommonJS(context_product_item_exports);
|
|
40
40
|
|
|
41
|
-
//
|
|
41
|
+
// context-runtime/context-product-item/runtime.js
|
|
42
42
|
var e = __toESM(require("react"));
|
|
43
43
|
var import_react = require("react");
|
|
44
44
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
@@ -572,143 +572,143 @@ function rt(e2, t2) {
|
|
|
572
572
|
let n2;
|
|
573
573
|
return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
|
|
574
574
|
}
|
|
575
|
-
function
|
|
575
|
+
function it(e2, t2 = []) {
|
|
576
576
|
return nt(e2, qe, t2);
|
|
577
577
|
}
|
|
578
|
-
function
|
|
578
|
+
function j(e2, t2 = []) {
|
|
579
579
|
return nt(e2, Je, t2);
|
|
580
580
|
}
|
|
581
|
-
function
|
|
581
|
+
function at(e2) {
|
|
582
582
|
return e2?.toISOString();
|
|
583
583
|
}
|
|
584
|
-
function
|
|
584
|
+
function M(e2) {
|
|
585
585
|
return e2 ? new Date(e2) : void 0;
|
|
586
586
|
}
|
|
587
|
-
var
|
|
588
|
-
function
|
|
587
|
+
var ot = /* @__PURE__ */ new WeakMap();
|
|
588
|
+
function st() {
|
|
589
589
|
return { leaves: void 0, fields: void 0, mapFields: void 0, anyField: void 0 };
|
|
590
590
|
}
|
|
591
|
-
function
|
|
591
|
+
function ct(e2, t2) {
|
|
592
592
|
let n2 = e2.get(t2);
|
|
593
|
-
return n2 || (n2 =
|
|
593
|
+
return n2 || (n2 = st(), e2.set(t2, n2)), n2;
|
|
594
594
|
}
|
|
595
|
-
function
|
|
596
|
-
return t2 === `*` ? (e2.anyField ??=
|
|
595
|
+
function lt(e2, t2) {
|
|
596
|
+
return t2 === `*` ? (e2.anyField ??= st(), e2.anyField) : t2.endsWith(`{}`) ? (e2.mapFields ??= /* @__PURE__ */ new Map(), ct(e2.mapFields, t2.slice(0, -2))) : (e2.fields ??= /* @__PURE__ */ new Map(), ct(e2.fields, t2));
|
|
597
597
|
}
|
|
598
|
-
function
|
|
599
|
-
let t2 =
|
|
598
|
+
function ut(e2) {
|
|
599
|
+
let t2 = st();
|
|
600
600
|
for (let n2 of e2) {
|
|
601
|
-
let e3 = n2.path.split(`.`).reduce(
|
|
601
|
+
let e3 = n2.path.split(`.`).reduce(lt, t2);
|
|
602
602
|
e3.leaves ??= [], e3.leaves.push(n2);
|
|
603
603
|
}
|
|
604
604
|
return t2;
|
|
605
605
|
}
|
|
606
|
-
function ut(e2) {
|
|
607
|
-
let t2 = at.get(e2);
|
|
608
|
-
return t2 || (t2 = lt(e2), at.set(e2, t2)), t2;
|
|
609
|
-
}
|
|
610
606
|
function dt(e2) {
|
|
611
|
-
|
|
607
|
+
let t2 = ot.get(e2);
|
|
608
|
+
return t2 || (t2 = ut(e2), ot.set(e2, t2)), t2;
|
|
612
609
|
}
|
|
613
|
-
function ft(e2
|
|
614
|
-
return
|
|
610
|
+
function ft(e2) {
|
|
611
|
+
return typeof e2 == `object` && !!e2;
|
|
615
612
|
}
|
|
616
|
-
function pt(e2, t2, n2) {
|
|
617
|
-
|
|
613
|
+
function pt(e2, { isRepeated: t2, isMap: n2 }, r2) {
|
|
614
|
+
return t2 ? Array.isArray(e2) ? e2.map(r2) : e2 : n2 ? ft(e2) ? Object.fromEntries(Object.entries(e2).map(([e3, t3]) => [e3, r2(t3)])) : e2 : r2(e2);
|
|
618
615
|
}
|
|
619
616
|
function mt(e2, t2, n2) {
|
|
617
|
+
ft(e2) && _t(e2, t2, n2);
|
|
618
|
+
}
|
|
619
|
+
function ht(e2, t2, n2) {
|
|
620
620
|
for (let [r2, i2] of t2) {
|
|
621
621
|
if (!(r2 in e2)) continue;
|
|
622
|
-
if (i2.leaves) for (let t4 of i2.leaves) e2[r2] =
|
|
622
|
+
if (i2.leaves) for (let t4 of i2.leaves) e2[r2] = pt(e2[r2], t4, n2);
|
|
623
623
|
let t3 = e2[r2];
|
|
624
|
-
Array.isArray(t3) ? t3.forEach((e3) =>
|
|
624
|
+
Array.isArray(t3) ? t3.forEach((e3) => mt(e3, i2, n2)) : mt(t3, i2, n2);
|
|
625
625
|
}
|
|
626
626
|
}
|
|
627
|
-
function
|
|
627
|
+
function gt(e2, t2, n2) {
|
|
628
628
|
for (let [r2, i2] of t2) {
|
|
629
629
|
let t3 = e2[r2];
|
|
630
|
-
|
|
630
|
+
ft(t3) && Object.values(t3).forEach((e3) => mt(e3, i2, n2));
|
|
631
631
|
}
|
|
632
632
|
}
|
|
633
|
-
function
|
|
634
|
-
t2 &&
|
|
633
|
+
function _t(e2, { fields: t2, mapFields: n2, anyField: r2 }, i2) {
|
|
634
|
+
t2 && ht(e2, t2, i2), n2 && gt(e2, n2, i2), r2 && Object.values(e2).forEach((e3) => mt(e3, r2, i2));
|
|
635
635
|
}
|
|
636
|
-
function
|
|
637
|
-
if (!
|
|
638
|
-
for (let { paths: n2, transformFn: r2 } of t2)
|
|
636
|
+
function N(e2, t2) {
|
|
637
|
+
if (!ft(e2)) return e2;
|
|
638
|
+
for (let { paths: n2, transformFn: r2 } of t2) _t(e2, dt(n2), r2);
|
|
639
639
|
return e2;
|
|
640
640
|
}
|
|
641
|
-
function
|
|
641
|
+
function vt(e2, t2) {
|
|
642
642
|
let { protocol: n2 } = new URL(e2);
|
|
643
643
|
return n2 === `${t2}:` ? `${Ke}${e2}` : e2;
|
|
644
644
|
}
|
|
645
|
-
function
|
|
645
|
+
function yt(e2) {
|
|
646
646
|
return Object.fromEntries(Object.entries(e2).filter(([, e3]) => e3 !== void 0));
|
|
647
647
|
}
|
|
648
|
-
function
|
|
649
|
-
return
|
|
648
|
+
function bt(e2) {
|
|
649
|
+
return Tt(e2).map((e3) => e3.toLocaleUpperCase()).join(`_`);
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
var
|
|
653
|
-
var
|
|
654
|
-
var
|
|
655
|
-
function
|
|
651
|
+
var xt = /([\p{Ll}\d])(\p{Lu})/gu;
|
|
652
|
+
var St = /(\p{Lu})([\p{Lu}][\p{Ll}])/gu;
|
|
653
|
+
var Ct = `$1\0$2`;
|
|
654
|
+
var wt = /[^\p{L}\d]+/giu;
|
|
655
|
+
function Tt(e2) {
|
|
656
656
|
let t2 = e2.trim();
|
|
657
|
-
t2 = t2.replace(
|
|
657
|
+
t2 = t2.replace(xt, Ct).replace(St, Ct), t2 = t2.replace(wt, `\0`);
|
|
658
658
|
let n2 = 0, r2 = t2.length;
|
|
659
659
|
for (; t2.charAt(n2) === `\0`; ) n2++;
|
|
660
660
|
if (n2 === r2) return [];
|
|
661
661
|
for (; t2.charAt(r2 - 1) === `\0`; ) r2--;
|
|
662
662
|
return t2.slice(n2, r2).split(/\0/g);
|
|
663
663
|
}
|
|
664
|
-
var
|
|
665
|
-
var
|
|
666
|
-
var
|
|
667
|
-
function
|
|
664
|
+
var Et = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
665
|
+
var Dt = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
666
|
+
var Ot = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
667
|
+
function P(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
668
668
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
669
|
-
if (
|
|
670
|
-
if (
|
|
671
|
-
if (
|
|
672
|
-
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code:
|
|
673
|
-
return
|
|
669
|
+
if (Et(e2)) return kt(e2, t2, n2);
|
|
670
|
+
if (Dt(e2)) return jt(e2);
|
|
671
|
+
if (Ot(e2)) {
|
|
672
|
+
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: bt(n3), data: {} }, requestId: e2.requestId };
|
|
673
|
+
return At(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
674
674
|
}
|
|
675
|
-
return
|
|
675
|
+
return Mt(e2);
|
|
676
676
|
}
|
|
677
|
-
var
|
|
678
|
-
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
679
|
-
return
|
|
677
|
+
var kt = (e2, t2, n2) => {
|
|
678
|
+
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Nt(t2, a2, n2)?.sort((e3, t3) => e3.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e3, description: t3 }) => `"${e3}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
679
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
|
|
680
680
|
};
|
|
681
|
-
var
|
|
682
|
-
var
|
|
683
|
-
let t2 = e2.response?.status, n2 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n2, i2 = e2.response?.data?.details?.applicationError?.description ?? n2, a2 = e2.response?.data?.details?.applicationError?.code ??
|
|
684
|
-
return
|
|
681
|
+
var At = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
|
|
682
|
+
var jt = (e2) => {
|
|
683
|
+
let t2 = e2.response?.status, n2 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n2, i2 = e2.response?.data?.details?.applicationError?.description ?? n2, a2 = e2.response?.data?.details?.applicationError?.code ?? bt(n2), o2 = e2.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e2.requestId };
|
|
684
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
|
|
685
685
|
};
|
|
686
|
-
var
|
|
687
|
-
var
|
|
686
|
+
var Mt = (e2) => At(e2, { message: e2.requestId ? `System error occurred, request-id: ${e2.requestId}` : `System error occurred: ${JSON.stringify(e2)}`, extraProperties: { requestId: e2.requestId, status: e2.response?.status, code: bt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
|
|
687
|
+
var Nt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
688
688
|
let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
|
|
689
689
|
return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
|
|
690
690
|
let r3 = t2[e3.field];
|
|
691
|
-
if (r3) return { ...e3, field:
|
|
691
|
+
if (r3) return { ...e3, field: Pt(r3, i2) };
|
|
692
692
|
let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
|
|
693
693
|
if (s2) {
|
|
694
694
|
let t3 = a2[s2];
|
|
695
|
-
if (t3) return { ...e3, field: e3.field.replace(s2,
|
|
695
|
+
if (t3) return { ...e3, field: e3.field.replace(s2, Pt(t3, i2)) };
|
|
696
696
|
}
|
|
697
697
|
return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
|
|
698
698
|
});
|
|
699
699
|
};
|
|
700
|
-
var
|
|
701
|
-
let n2 =
|
|
700
|
+
var Pt = (e2, t2) => {
|
|
701
|
+
let n2 = Ft(e2);
|
|
702
702
|
return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
|
|
703
703
|
};
|
|
704
|
-
var
|
|
704
|
+
var Ft = (e2) => {
|
|
705
705
|
let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
|
|
706
706
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
707
707
|
};
|
|
708
|
-
function
|
|
708
|
+
function It() {
|
|
709
709
|
let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
710
710
|
if (e2) return { initWixModules(t3, n3) {
|
|
711
|
-
return
|
|
711
|
+
return Lt(() => e2(t3, n3));
|
|
712
712
|
}, fetchWithAuth() {
|
|
713
713
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
714
714
|
}, graphql() {
|
|
@@ -718,10 +718,10 @@ function Ft() {
|
|
|
718
718
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
719
719
|
if (r2) {
|
|
720
720
|
if (!n2) throw Error(`An elevated client is required to use elevated modules. Make sure to initialize the Wix context with an elevated client before using elevated SDK modules`);
|
|
721
|
-
return
|
|
721
|
+
return Lt(() => n2.use(e3));
|
|
722
722
|
}
|
|
723
723
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
724
|
-
return
|
|
724
|
+
return Lt(() => t2.use(e3));
|
|
725
725
|
}, fetchWithAuth: (e3, n3) => {
|
|
726
726
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
727
727
|
return t2.fetchWithAuth(e3, n3);
|
|
@@ -733,7 +733,7 @@ function Ft() {
|
|
|
733
733
|
return t2.graphql(e3, n3, r2);
|
|
734
734
|
} };
|
|
735
735
|
}
|
|
736
|
-
function
|
|
736
|
+
function Lt(e2) {
|
|
737
737
|
let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
|
|
738
738
|
globalThis.__wix_context__ = void 0, y.client = void 0, y.elevatedClient = void 0, typeof $wixContext < `u` && (r2 = { client: $wixContext?.client, elevatedClient: $wixContext?.elevatedClient }, delete $wixContext.client, delete $wixContext.elevatedClient);
|
|
739
739
|
try {
|
|
@@ -742,108 +742,108 @@ function It(e2) {
|
|
|
742
742
|
globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function Rt(e2, t2) {
|
|
746
746
|
return (...n2) => {
|
|
747
|
-
let r2 =
|
|
747
|
+
let r2 = It();
|
|
748
748
|
return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
|
|
749
749
|
};
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function zt(e2) {
|
|
752
752
|
let t2 = (...t3) => {
|
|
753
|
-
let n2 =
|
|
753
|
+
let n2 = It();
|
|
754
754
|
return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
|
|
755
755
|
};
|
|
756
756
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
757
757
|
}
|
|
758
|
-
function
|
|
759
|
-
return
|
|
758
|
+
function Bt(e2, t2 = false) {
|
|
759
|
+
return Rt(e2, t2);
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
let n2 =
|
|
763
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
761
|
+
function Vt(e2, t2) {
|
|
762
|
+
let n2 = Ut(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
763
|
+
return t2 && r2 ? new URLSearchParams({ ".r": Gt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
764
764
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
765
765
|
}), e3), new URLSearchParams());
|
|
766
766
|
}
|
|
767
|
-
function
|
|
768
|
-
let t2 =
|
|
769
|
-
return
|
|
767
|
+
function Ht(e2) {
|
|
768
|
+
let t2 = an(nn(e2.host), e2.domainToMappings);
|
|
769
|
+
return mn(dn(e2.protoPath, e2.data || {}), t2);
|
|
770
770
|
}
|
|
771
|
-
function
|
|
771
|
+
function Ut(e2, t2 = ``) {
|
|
772
772
|
let n2 = {};
|
|
773
773
|
return Object.entries(e2).forEach(([e3, r2]) => {
|
|
774
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
774
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Wt(t2, e3);
|
|
775
775
|
if (i2) {
|
|
776
|
-
let e4 =
|
|
776
|
+
let e4 = Ut(r2, a2);
|
|
777
777
|
Object.assign(n2, e4);
|
|
778
778
|
} else n2[a2] = r2;
|
|
779
779
|
}), n2;
|
|
780
780
|
}
|
|
781
|
-
function
|
|
781
|
+
function Wt(e2, t2) {
|
|
782
782
|
return `${e2}${e2 ? `.` : ``}${t2}`;
|
|
783
783
|
}
|
|
784
|
-
var
|
|
784
|
+
var Gt = (e2) => {
|
|
785
785
|
let t2 = new TextEncoder().encode(e2);
|
|
786
786
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
787
787
|
};
|
|
788
|
-
var
|
|
789
|
-
var
|
|
790
|
-
var
|
|
791
|
-
var
|
|
792
|
-
var
|
|
793
|
-
var
|
|
794
|
-
var
|
|
795
|
-
var
|
|
796
|
-
var
|
|
797
|
-
var
|
|
798
|
-
function tn(e2) {
|
|
799
|
-
return nn(e2).replace(Jt, `._base_domain_`).replace($t, `._api_base_domain_`).replace(en, `*.dev.wix-code.com`);
|
|
800
|
-
}
|
|
788
|
+
var Kt = [`wix.com`, `editorx.com`];
|
|
789
|
+
var qt = `_`;
|
|
790
|
+
var Jt = `*.`;
|
|
791
|
+
var Yt = RegExp(`\\.(${Kt.join(`|`)})$`);
|
|
792
|
+
var Xt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
793
|
+
var Zt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
794
|
+
var Qt = `dev.wix-code.com`;
|
|
795
|
+
var $t = /{(.*)}/;
|
|
796
|
+
var en = RegExp(`\\.(${Xt.join(`|`)})$`);
|
|
797
|
+
var tn = RegExp(`.*\\.${Qt}$`);
|
|
801
798
|
function nn(e2) {
|
|
802
|
-
return
|
|
799
|
+
return rn(e2).replace(Yt, `._base_domain_`).replace(en, `._api_base_domain_`).replace(tn, `*.dev.wix-code.com`);
|
|
803
800
|
}
|
|
804
|
-
function rn(e2
|
|
801
|
+
function rn(e2) {
|
|
802
|
+
return Zt[e2] ?? e2;
|
|
803
|
+
}
|
|
804
|
+
function an(e2, t2) {
|
|
805
805
|
let n2 = t2[e2];
|
|
806
806
|
if (n2) return n2;
|
|
807
|
-
let r2 =
|
|
807
|
+
let r2 = on(e2, t2) ?? sn(e2, t2);
|
|
808
808
|
if (!r2) {
|
|
809
|
-
if (
|
|
810
|
-
let e3 = t2[
|
|
809
|
+
if (ln(e2)) {
|
|
810
|
+
let e3 = t2[un];
|
|
811
811
|
if (e3) return e3;
|
|
812
812
|
}
|
|
813
|
-
let n3 = t2[
|
|
813
|
+
let n3 = t2[qt];
|
|
814
814
|
if (n3) return n3;
|
|
815
815
|
}
|
|
816
816
|
return r2 ?? [];
|
|
817
817
|
}
|
|
818
|
-
function
|
|
818
|
+
function on(e2, t2) {
|
|
819
819
|
return Object.entries(t2).find(([t3]) => {
|
|
820
820
|
let [, ...n2] = e2.split(`.`);
|
|
821
821
|
return n2.join(`.`) === t3;
|
|
822
822
|
})?.[1];
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
824
|
+
function sn(e2, t2) {
|
|
825
|
+
let [n2] = Object.entries(t2).filter(([t3]) => cn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
|
|
826
826
|
if (!n2) return;
|
|
827
827
|
let [, r2] = n2;
|
|
828
828
|
return r2;
|
|
829
829
|
}
|
|
830
|
-
function
|
|
831
|
-
if (!t2.startsWith(
|
|
830
|
+
function cn(e2, t2) {
|
|
831
|
+
if (!t2.startsWith(Jt)) return false;
|
|
832
832
|
let n2 = t2.slice(1);
|
|
833
833
|
return e2.length > n2.length && e2.endsWith(n2);
|
|
834
834
|
}
|
|
835
|
-
function
|
|
835
|
+
function ln(e2) {
|
|
836
836
|
return !!e2.match(/\._base_domain_$/);
|
|
837
837
|
}
|
|
838
|
-
var
|
|
839
|
-
function un(e2, t2) {
|
|
840
|
-
return e2.split(`/`).map((e3) => dn(e3, t2)).join(`/`);
|
|
841
|
-
}
|
|
838
|
+
var un = `www._base_domain_`;
|
|
842
839
|
function dn(e2, t2) {
|
|
843
|
-
|
|
844
|
-
return r2 ? fn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
840
|
+
return e2.split(`/`).map((e3) => fn(e3, t2)).join(`/`);
|
|
845
841
|
}
|
|
846
|
-
function fn(e2, t2
|
|
842
|
+
function fn(e2, t2) {
|
|
843
|
+
let n2 = e2.match($t) || [], r2 = n2[1];
|
|
844
|
+
return r2 ? pn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
845
|
+
}
|
|
846
|
+
function pn(e2, t2, n2, r2) {
|
|
847
847
|
let i2 = e2;
|
|
848
848
|
for (let e3 of t2.split(`.`)) {
|
|
849
849
|
if (!i2) return n2;
|
|
@@ -851,49 +851,49 @@ function fn(e2, t2, n2, r2) {
|
|
|
851
851
|
}
|
|
852
852
|
return `${i2}${r2}`;
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function mn(e2, t2) {
|
|
855
855
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
856
856
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
857
857
|
}
|
|
858
|
-
function
|
|
859
|
-
return
|
|
860
|
-
}
|
|
861
|
-
function mn(e2) {
|
|
862
|
-
return isFinite(e2) ? e2 : e2.toString();
|
|
858
|
+
function F(e2) {
|
|
859
|
+
return zt(e2);
|
|
863
860
|
}
|
|
864
861
|
function hn(e2) {
|
|
865
|
-
return e2
|
|
862
|
+
return isFinite(e2) ? e2 : e2.toString();
|
|
866
863
|
}
|
|
867
864
|
function gn(e2) {
|
|
868
|
-
return e2
|
|
865
|
+
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
869
866
|
}
|
|
870
867
|
function _n(e2) {
|
|
871
|
-
return e2 &&
|
|
872
|
-
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
var
|
|
877
|
-
|
|
878
|
-
|
|
868
|
+
return e2 && yt({ city: e2.city, hint: e2.hint, subdivision: e2.subdivision, country: e2.country, postalCode: e2.postalCode, formattedAddress: e2.formatted, geocode: e2.location, addressLine: e2.addressLine1, addressLine2: e2.addressLine2, streetAddress: e2.streetAddress && { name: e2.streetAddress.name, number: e2.streetAddress.number, apt: e2.streetAddress.apt, formattedAddressLine: e2.streetAddress.formattedAddressLine } });
|
|
869
|
+
}
|
|
870
|
+
function vn(e2) {
|
|
871
|
+
return e2 && yt({ formatted: e2.formattedAddress, location: e2.geocode, addressLine1: e2.addressLine, addressLine2: e2.addressLine2, streetAddress: e2.streetAddress && { name: e2.streetAddress.name, number: e2.streetAddress.number, apt: e2.streetAddress.apt, formattedAddressLine: e2.streetAddress.formattedAddressLine }, hint: e2.hint, city: e2.city, subdivision: e2.subdivision, country: e2.country, postalCode: e2.postalCode, countryFullname: e2.countryFullname, subdivisionFullname: e2.subdivisionFullname });
|
|
872
|
+
}
|
|
873
|
+
var yn = `x-wix-linguist`;
|
|
874
|
+
var bn = `00000000-0000-0000-0000-000000000000`;
|
|
875
|
+
var xn = `false`;
|
|
876
|
+
var Sn = () => {
|
|
877
|
+
let e2 = Tn(`language`), t2 = Tn(`locale`);
|
|
878
|
+
if (e2) return { [yn]: [e2, t2 || e2, xn, bn].join(`|`) };
|
|
879
879
|
};
|
|
880
|
-
function
|
|
880
|
+
function Cn() {
|
|
881
881
|
let e2 = null, t2 = null;
|
|
882
882
|
return { promise: new Promise((n2, r2) => {
|
|
883
883
|
e2 = n2, t2 = r2;
|
|
884
884
|
}), resolve: e2, reject: t2 };
|
|
885
885
|
}
|
|
886
|
-
var
|
|
887
|
-
var
|
|
888
|
-
var
|
|
889
|
-
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 =
|
|
890
|
-
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language:
|
|
891
|
-
return
|
|
886
|
+
var wn = () => (typeof window < `u` ? window.commonConfig : void 0) ?? globalThis.commonConfig;
|
|
887
|
+
var Tn = (e2) => wn()?.[e2];
|
|
888
|
+
var En = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host: (t2) => {
|
|
889
|
+
let { applicationId: n2, componentId: r2 } = t2 ?? {}, i2 = typeof window < `u` ? window.wixEmbedsAPI : void 0, a2 = e2(t2), o2 = On();
|
|
890
|
+
return { ...a2, apiBaseUrl: o2, getMonitoringClient: i2?.getMonitoringClientFunction?.(n2, r2), essentials: { language: Tn(`language`), locale: Tn(`locale`), get passThroughHeaders() {
|
|
891
|
+
return Sn();
|
|
892
892
|
} } };
|
|
893
893
|
}, auth: (e3) => {
|
|
894
894
|
let t2 = typeof window < `u` ? window.wixEmbedsAPI : void 0;
|
|
895
|
-
!e3 &&
|
|
896
|
-
let n2 = false, { resolve: r2, promise: i2 } =
|
|
895
|
+
!e3 && Dn() && (e3 = t2?.getAccessTokenFunction?.());
|
|
896
|
+
let n2 = false, { resolve: r2, promise: i2 } = Cn();
|
|
897
897
|
return { getAuthHeaders: async () => {
|
|
898
898
|
if (!e3 && n2 && (e3 = await i2), !e3) throw Error(`Failed to resolve auth token`);
|
|
899
899
|
return { headers: { Authorization: await e3() } };
|
|
@@ -901,34 +901,34 @@ var Tn = ({ createHost: e2 }) => ({ __type: `host`, create: (e3) => ({}), host:
|
|
|
901
901
|
r2(e4);
|
|
902
902
|
}) };
|
|
903
903
|
} });
|
|
904
|
-
function
|
|
904
|
+
function Dn() {
|
|
905
905
|
return typeof document < `u` && document.currentScript?.tagName === `SCRIPT`;
|
|
906
906
|
}
|
|
907
|
-
function
|
|
907
|
+
function On() {
|
|
908
908
|
let e2 = (typeof window < `u` ? window.wixEmbedsAPI : void 0)?.getExternalBaseUrl?.();
|
|
909
909
|
if (!e2) return;
|
|
910
910
|
let t2 = new URL(e2);
|
|
911
911
|
return t2?.pathname && t2.pathname !== `/` ? `${t2.hostname}${t2.pathname}` : t2.hostname;
|
|
912
912
|
}
|
|
913
|
-
var
|
|
913
|
+
var kn = ({ clientSdk: e2, applicationId: t2 }) => ({ invoke: async ({ namespace: n2, method: r2, args: i2 }) => {
|
|
914
914
|
if (!e2) throw Error(`Wix Site SDK only works in a Wix site environment. Learn more: https://dev.wix.com/docs/sdk/host-modules/site/introduction`);
|
|
915
915
|
return e2.invoke({ namespace: n2, method: r2, args: i2, applicationId: t2, accessToken: `accessToken` });
|
|
916
916
|
}, getAccessToken: () => {
|
|
917
917
|
throw Error(`Not implemented`);
|
|
918
918
|
}, observeState: () => ({ disconnect: () => {
|
|
919
919
|
} }) });
|
|
920
|
-
var
|
|
920
|
+
var An = En({ createHost: function(e2) {
|
|
921
921
|
let t2 = (typeof $wixContext < `u` ? $wixContext.clientSdk : void 0) ?? e2?.clientSdk ?? (typeof window < `u` ? window?.clientSdk : void 0), { applicationId: n2 } = e2 || {};
|
|
922
922
|
if (!n2) throw Error(`"createHost" was called without a required field "applicationId"`);
|
|
923
|
-
return { channel:
|
|
923
|
+
return { channel: kn({ clientSdk: t2, applicationId: n2 }), close: () => {
|
|
924
924
|
} };
|
|
925
925
|
} });
|
|
926
|
-
var
|
|
927
|
-
let n2 =
|
|
926
|
+
var jn = (e2, t2) => {
|
|
927
|
+
let n2 = An.host({ applicationId: e2, componentId: t2 }), r2 = An.auth();
|
|
928
928
|
return We({ auth: r2, host: n2 }).enableContext(`module`), r2.getAccessTokenInjector();
|
|
929
929
|
};
|
|
930
|
-
var
|
|
931
|
-
var
|
|
930
|
+
var Mn = (e2) => jn(`215238eb-22a5-4c36-9e7b-e7c08025e04e`, e2);
|
|
931
|
+
var Nn = class {
|
|
932
932
|
constructor() {
|
|
933
933
|
this.listeners = /* @__PURE__ */ new Set(), this.subscribe = this.subscribe.bind(this);
|
|
934
934
|
}
|
|
@@ -945,7 +945,7 @@ var Mn = class {
|
|
|
945
945
|
onUnsubscribe() {
|
|
946
946
|
}
|
|
947
947
|
};
|
|
948
|
-
var
|
|
948
|
+
var Pn = new class extends Nn {
|
|
949
949
|
#e;
|
|
950
950
|
#t;
|
|
951
951
|
#n;
|
|
@@ -983,9 +983,9 @@ var Nn = new class extends Mn {
|
|
|
983
983
|
return typeof this.#e == `boolean` ? this.#e : globalThis.document?.visibilityState !== `hidden`;
|
|
984
984
|
}
|
|
985
985
|
}();
|
|
986
|
-
var
|
|
987
|
-
var
|
|
988
|
-
#e =
|
|
986
|
+
var Fn = { setTimeout: (e2, t2) => setTimeout(e2, t2), clearTimeout: (e2) => clearTimeout(e2), setInterval: (e2, t2) => setInterval(e2, t2), clearInterval: (e2) => clearInterval(e2) };
|
|
987
|
+
var I = new class {
|
|
988
|
+
#e = Fn;
|
|
989
989
|
setTimeoutProvider(e2) {
|
|
990
990
|
this.#e = e2;
|
|
991
991
|
}
|
|
@@ -1002,33 +1002,33 @@ var L = new class {
|
|
|
1002
1002
|
this.#e.clearInterval(e2);
|
|
1003
1003
|
}
|
|
1004
1004
|
}();
|
|
1005
|
-
function
|
|
1005
|
+
function In(e2) {
|
|
1006
1006
|
setTimeout(e2, 0);
|
|
1007
1007
|
}
|
|
1008
|
-
var
|
|
1009
|
-
function
|
|
1008
|
+
var Ln = typeof window > `u` || `Deno` in globalThis;
|
|
1009
|
+
function L() {
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1011
|
+
function Rn(e2, t2) {
|
|
1012
1012
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function zn(e2) {
|
|
1015
1015
|
return typeof e2 == `number` && e2 >= 0 && e2 !== 1 / 0;
|
|
1016
1016
|
}
|
|
1017
|
-
function
|
|
1017
|
+
function Bn(e2, t2) {
|
|
1018
1018
|
return Math.max(e2 + (t2 || 0) - Date.now(), 0);
|
|
1019
1019
|
}
|
|
1020
|
-
function
|
|
1020
|
+
function R(e2, t2) {
|
|
1021
1021
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
1022
1022
|
}
|
|
1023
|
-
function
|
|
1023
|
+
function z(e2, t2) {
|
|
1024
1024
|
return typeof e2 == `function` ? e2(t2) : e2;
|
|
1025
1025
|
}
|
|
1026
|
-
function
|
|
1026
|
+
function Vn(e2, t2) {
|
|
1027
1027
|
let { type: n2 = `all`, exact: r2, fetchStatus: i2, predicate: a2, queryKey: o2, stale: s2 } = e2;
|
|
1028
1028
|
if (o2) {
|
|
1029
1029
|
if (r2) {
|
|
1030
|
-
if (t2.queryHash !==
|
|
1031
|
-
} else if (!
|
|
1030
|
+
if (t2.queryHash !== Un(o2, t2.options)) return false;
|
|
1031
|
+
} else if (!Gn(t2.queryKey, o2)) return false;
|
|
1032
1032
|
}
|
|
1033
1033
|
if (n2 !== `all`) {
|
|
1034
1034
|
let e3 = t2.isActive();
|
|
@@ -1036,101 +1036,101 @@ function Bn(e2, t2) {
|
|
|
1036
1036
|
}
|
|
1037
1037
|
return !(typeof s2 == `boolean` && t2.isStale() !== s2 || i2 && i2 !== t2.state.fetchStatus || a2 && !a2(t2));
|
|
1038
1038
|
}
|
|
1039
|
-
function
|
|
1039
|
+
function Hn(e2, t2) {
|
|
1040
1040
|
let { exact: n2, status: r2, predicate: i2, mutationKey: a2 } = e2;
|
|
1041
1041
|
if (a2) {
|
|
1042
1042
|
if (!t2.options.mutationKey) return false;
|
|
1043
1043
|
if (n2) {
|
|
1044
|
-
if (
|
|
1045
|
-
} else if (!
|
|
1044
|
+
if (Wn(t2.options.mutationKey) !== Wn(a2)) return false;
|
|
1045
|
+
} else if (!Gn(t2.options.mutationKey, a2)) return false;
|
|
1046
1046
|
}
|
|
1047
1047
|
return !(r2 && t2.state.status !== r2 || i2 && !i2(t2));
|
|
1048
1048
|
}
|
|
1049
|
-
function
|
|
1050
|
-
return (t2?.queryKeyHashFn ||
|
|
1049
|
+
function Un(e2, t2) {
|
|
1050
|
+
return (t2?.queryKeyHashFn || Wn)(e2);
|
|
1051
1051
|
}
|
|
1052
|
-
function
|
|
1053
|
-
return JSON.stringify(e2, (e3, t2) =>
|
|
1052
|
+
function Wn(e2) {
|
|
1053
|
+
return JSON.stringify(e2, (e3, t2) => Xn(t2) ? Object.keys(t2).sort().reduce((e4, n2) => (e4[n2] = t2[n2], e4), {}) : t2);
|
|
1054
1054
|
}
|
|
1055
|
-
function
|
|
1056
|
-
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) =>
|
|
1055
|
+
function Gn(e2, t2) {
|
|
1056
|
+
return e2 === t2 ? true : typeof e2 == typeof t2 && e2 && t2 && typeof e2 == `object` && typeof t2 == `object` ? Object.keys(t2).every((n2) => Gn(e2[n2], t2[n2])) : false;
|
|
1057
1057
|
}
|
|
1058
|
-
var
|
|
1059
|
-
function
|
|
1058
|
+
var Kn = Object.prototype.hasOwnProperty;
|
|
1059
|
+
function qn(e2, t2, n2 = 0) {
|
|
1060
1060
|
if (e2 === t2) return e2;
|
|
1061
1061
|
if (n2 > 500) return t2;
|
|
1062
|
-
let r2 =
|
|
1063
|
-
if (!r2 && !(
|
|
1062
|
+
let r2 = Yn(e2) && Yn(t2);
|
|
1063
|
+
if (!r2 && !(Xn(e2) && Xn(t2))) return t2;
|
|
1064
1064
|
let i2 = (r2 ? e2 : Object.keys(e2)).length, a2 = r2 ? t2 : Object.keys(t2), o2 = a2.length, s2 = r2 ? Array(o2) : {}, c2 = 0;
|
|
1065
1065
|
for (let l2 = 0; l2 < o2; l2++) {
|
|
1066
1066
|
let o3 = r2 ? l2 : a2[l2], u2 = e2[o3], d2 = t2[o3];
|
|
1067
1067
|
if (u2 === d2) {
|
|
1068
|
-
s2[o3] = u2, (r2 ? l2 < i2 :
|
|
1068
|
+
s2[o3] = u2, (r2 ? l2 < i2 : Kn.call(e2, o3)) && c2++;
|
|
1069
1069
|
continue;
|
|
1070
1070
|
}
|
|
1071
1071
|
if (u2 === null || d2 === null || typeof u2 != `object` || typeof d2 != `object`) {
|
|
1072
1072
|
s2[o3] = d2;
|
|
1073
1073
|
continue;
|
|
1074
1074
|
}
|
|
1075
|
-
let f2 =
|
|
1075
|
+
let f2 = qn(u2, d2, n2 + 1);
|
|
1076
1076
|
s2[o3] = f2, f2 === u2 && c2++;
|
|
1077
1077
|
}
|
|
1078
1078
|
return i2 === o2 && c2 === i2 ? e2 : s2;
|
|
1079
1079
|
}
|
|
1080
|
-
function
|
|
1080
|
+
function Jn(e2, t2) {
|
|
1081
1081
|
if (!t2 || Object.keys(e2).length !== Object.keys(t2).length) return false;
|
|
1082
1082
|
for (let n2 in e2) if (e2[n2] !== t2[n2]) return false;
|
|
1083
1083
|
return true;
|
|
1084
1084
|
}
|
|
1085
|
-
function
|
|
1085
|
+
function Yn(e2) {
|
|
1086
1086
|
return Array.isArray(e2) && e2.length === Object.keys(e2).length;
|
|
1087
1087
|
}
|
|
1088
|
-
function
|
|
1089
|
-
if (!
|
|
1088
|
+
function Xn(e2) {
|
|
1089
|
+
if (!Zn(e2)) return false;
|
|
1090
1090
|
let t2 = e2.constructor;
|
|
1091
1091
|
if (t2 === void 0) return true;
|
|
1092
1092
|
let n2 = t2.prototype;
|
|
1093
|
-
return !(!
|
|
1093
|
+
return !(!Zn(n2) || !n2.hasOwnProperty(`isPrototypeOf`) || Object.getPrototypeOf(e2) !== Object.prototype);
|
|
1094
1094
|
}
|
|
1095
|
-
function
|
|
1095
|
+
function Zn(e2) {
|
|
1096
1096
|
return Object.prototype.toString.call(e2) === `[object Object]`;
|
|
1097
1097
|
}
|
|
1098
|
-
function
|
|
1098
|
+
function Qn(e2) {
|
|
1099
1099
|
return new Promise((t2) => {
|
|
1100
|
-
|
|
1100
|
+
I.setTimeout(t2, e2);
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 :
|
|
1103
|
+
function $n(e2, t2, n2) {
|
|
1104
|
+
return typeof n2.structuralSharing == `function` ? n2.structuralSharing(e2, t2) : n2.structuralSharing === false ? t2 : qn(e2, t2);
|
|
1105
1105
|
}
|
|
1106
|
-
function
|
|
1106
|
+
function er(e2, t2, n2 = 0) {
|
|
1107
1107
|
let r2 = [...e2, t2];
|
|
1108
1108
|
return n2 && r2.length > n2 ? r2.slice(1) : r2;
|
|
1109
1109
|
}
|
|
1110
|
-
function
|
|
1110
|
+
function tr(e2, t2, n2 = 0) {
|
|
1111
1111
|
let r2 = [t2, ...e2];
|
|
1112
1112
|
return n2 && r2.length > n2 ? r2.slice(0, -1) : r2;
|
|
1113
1113
|
}
|
|
1114
|
-
var
|
|
1115
|
-
function nr(e2, t2) {
|
|
1116
|
-
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === tr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1117
|
-
}
|
|
1114
|
+
var nr = Symbol();
|
|
1118
1115
|
function rr(e2, t2) {
|
|
1116
|
+
return !e2.queryFn && t2?.initialPromise ? () => t2.initialPromise : !e2.queryFn || e2.queryFn === nr ? () => Promise.reject(Error(`Missing queryFn: '${e2.queryHash}'`)) : e2.queryFn;
|
|
1117
|
+
}
|
|
1118
|
+
function ir(e2, t2) {
|
|
1119
1119
|
return typeof e2 == `function` ? e2(...t2) : !!e2;
|
|
1120
1120
|
}
|
|
1121
|
-
function
|
|
1121
|
+
function ar(e2, t2, n2) {
|
|
1122
1122
|
let r2 = false, i2;
|
|
1123
1123
|
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;
|
|
1124
1124
|
}
|
|
1125
|
-
var
|
|
1126
|
-
let e2 = () =>
|
|
1125
|
+
var or = /* @__PURE__ */ (() => {
|
|
1126
|
+
let e2 = () => Ln;
|
|
1127
1127
|
return { isServer() {
|
|
1128
1128
|
return e2();
|
|
1129
1129
|
}, setIsServer(t2) {
|
|
1130
1130
|
e2 = t2;
|
|
1131
1131
|
} };
|
|
1132
1132
|
})();
|
|
1133
|
-
function
|
|
1133
|
+
function sr() {
|
|
1134
1134
|
let e2, t2, n2 = new Promise((n3, r3) => {
|
|
1135
1135
|
e2 = n3, t2 = r3;
|
|
1136
1136
|
});
|
|
@@ -1145,13 +1145,13 @@ function or() {
|
|
|
1145
1145
|
r2({ status: `rejected`, reason: e3 }), t2(e3);
|
|
1146
1146
|
}, n2;
|
|
1147
1147
|
}
|
|
1148
|
-
var
|
|
1149
|
-
function
|
|
1148
|
+
var cr = In;
|
|
1149
|
+
function lr() {
|
|
1150
1150
|
let e2 = [], t2 = 0, n2 = (e3) => {
|
|
1151
1151
|
e3();
|
|
1152
1152
|
}, r2 = (e3) => {
|
|
1153
1153
|
e3();
|
|
1154
|
-
}, i2 =
|
|
1154
|
+
}, i2 = cr, a2 = (r3) => {
|
|
1155
1155
|
t2 ? e2.push(r3) : i2(() => {
|
|
1156
1156
|
n2(r3);
|
|
1157
1157
|
});
|
|
@@ -1186,8 +1186,8 @@ function cr() {
|
|
|
1186
1186
|
i2 = e3;
|
|
1187
1187
|
} };
|
|
1188
1188
|
}
|
|
1189
|
-
var
|
|
1190
|
-
var
|
|
1189
|
+
var B = lr();
|
|
1190
|
+
var ur = new class extends Nn {
|
|
1191
1191
|
#e = true;
|
|
1192
1192
|
#t;
|
|
1193
1193
|
#n;
|
|
@@ -1219,28 +1219,28 @@ var lr = new class extends Mn {
|
|
|
1219
1219
|
return this.#e;
|
|
1220
1220
|
}
|
|
1221
1221
|
}();
|
|
1222
|
-
function
|
|
1222
|
+
function dr(e2) {
|
|
1223
1223
|
return Math.min(1e3 * 2 ** e2, 3e4);
|
|
1224
1224
|
}
|
|
1225
|
-
function
|
|
1226
|
-
return (e2 ?? `online`) !== `online` ||
|
|
1225
|
+
function fr(e2) {
|
|
1226
|
+
return (e2 ?? `online`) !== `online` || ur.isOnline();
|
|
1227
1227
|
}
|
|
1228
|
-
var
|
|
1228
|
+
var pr = class extends Error {
|
|
1229
1229
|
constructor(e2) {
|
|
1230
1230
|
super(`CancelledError`), this.revert = e2?.revert, this.silent = e2?.silent;
|
|
1231
1231
|
}
|
|
1232
1232
|
};
|
|
1233
|
-
function
|
|
1234
|
-
let t2 = false, n2 = 0, r2, i2 =
|
|
1233
|
+
function mr(e2) {
|
|
1234
|
+
let t2 = false, n2 = 0, r2, i2 = sr(), a2 = () => i2.status !== `pending`, o2 = (t3) => {
|
|
1235
1235
|
if (!a2()) {
|
|
1236
|
-
let n3 = new
|
|
1236
|
+
let n3 = new pr(t3);
|
|
1237
1237
|
f2(n3), e2.onCancel?.(n3);
|
|
1238
1238
|
}
|
|
1239
1239
|
}, s2 = () => {
|
|
1240
1240
|
t2 = true;
|
|
1241
1241
|
}, c2 = () => {
|
|
1242
1242
|
t2 = false;
|
|
1243
|
-
}, l2 = () =>
|
|
1243
|
+
}, l2 = () => Pn.isFocused() && (e2.networkMode === `always` || ur.isOnline()) && e2.canRun(), u2 = () => fr(e2.networkMode) && e2.canRun(), d2 = (e3) => {
|
|
1244
1244
|
a2() || (r2?.(), i2.resolve(e3));
|
|
1245
1245
|
}, f2 = (e3) => {
|
|
1246
1246
|
a2() || (r2?.(), i2.reject(e3));
|
|
@@ -1260,56 +1260,56 @@ function pr(e2) {
|
|
|
1260
1260
|
}
|
|
1261
1261
|
Promise.resolve(r3).then(d2).catch((r4) => {
|
|
1262
1262
|
if (a2()) return;
|
|
1263
|
-
let i4 = e2.retry ?? (
|
|
1263
|
+
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);
|
|
1264
1264
|
if (t2 || !c3) {
|
|
1265
1265
|
f2(r4);
|
|
1266
1266
|
return;
|
|
1267
1267
|
}
|
|
1268
|
-
n2++, e2.onFail?.(n2, r4),
|
|
1268
|
+
n2++, e2.onFail?.(n2, r4), Qn(s3).then(() => l2() ? void 0 : p2()).then(() => {
|
|
1269
1269
|
t2 ? f2(r4) : m2();
|
|
1270
1270
|
});
|
|
1271
1271
|
});
|
|
1272
1272
|
};
|
|
1273
1273
|
return { promise: i2, status: () => i2.status, cancel: o2, continue: () => (r2?.(), i2), cancelRetry: s2, continueRetry: c2, canStart: u2, start: () => (u2() ? m2() : p2().then(m2), i2) };
|
|
1274
1274
|
}
|
|
1275
|
-
var
|
|
1275
|
+
var hr = class {
|
|
1276
1276
|
#e;
|
|
1277
1277
|
destroy() {
|
|
1278
1278
|
this.clearGcTimeout();
|
|
1279
1279
|
}
|
|
1280
1280
|
scheduleGc() {
|
|
1281
|
-
this.clearGcTimeout(),
|
|
1281
|
+
this.clearGcTimeout(), zn(this.gcTime) && (this.#e = I.setTimeout(() => {
|
|
1282
1282
|
this.optionalRemove();
|
|
1283
1283
|
}, this.gcTime));
|
|
1284
1284
|
}
|
|
1285
1285
|
updateGcTime(e2) {
|
|
1286
|
-
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (
|
|
1286
|
+
this.gcTime = Math.max(this.gcTime || 0, e2 ?? (or.isServer() ? 1 / 0 : 3e5));
|
|
1287
1287
|
}
|
|
1288
1288
|
clearGcTimeout() {
|
|
1289
|
-
this.#e !== void 0 && (
|
|
1289
|
+
this.#e !== void 0 && (I.clearTimeout(this.#e), this.#e = void 0);
|
|
1290
1290
|
}
|
|
1291
1291
|
};
|
|
1292
|
-
function
|
|
1292
|
+
function gr(e2) {
|
|
1293
1293
|
return { onFetch: (t2, n2) => {
|
|
1294
1294
|
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 () => {
|
|
1295
1295
|
let n3 = false, l3 = (e3) => {
|
|
1296
|
-
|
|
1297
|
-
}, u2 =
|
|
1296
|
+
ar(e3, () => t2.signal, () => n3 = true);
|
|
1297
|
+
}, u2 = rr(t2.options, t2.fetchOptions), d2 = async (e3, r3, i3) => {
|
|
1298
1298
|
if (n3) return Promise.reject(t2.signal.reason);
|
|
1299
1299
|
if (r3 == null && e3.pages.length) return Promise.resolve(e3);
|
|
1300
1300
|
let a3 = (() => {
|
|
1301
1301
|
let e4 = { client: t2.client, queryKey: t2.queryKey, pageParam: r3, direction: i3 ? `backward` : `forward`, meta: t2.options.meta };
|
|
1302
1302
|
return l3(e4), e4;
|
|
1303
|
-
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ?
|
|
1303
|
+
})(), o3 = await u2(a3), { maxPages: s3 } = t2.options, c3 = i3 ? tr : er;
|
|
1304
1304
|
return { pages: c3(e3.pages, o3, s3), pageParams: c3(e3.pageParams, r3, s3) };
|
|
1305
1305
|
};
|
|
1306
1306
|
if (i2 && a2.length) {
|
|
1307
|
-
let e3 = i2 === `backward`, t3 = e3 ?
|
|
1307
|
+
let e3 = i2 === `backward`, t3 = e3 ? vr : _r, n4 = { pages: a2, pageParams: o2 };
|
|
1308
1308
|
s2 = await d2(n4, t3(r2, n4), e3);
|
|
1309
1309
|
} else {
|
|
1310
1310
|
let t3 = e2 ?? a2.length;
|
|
1311
1311
|
do {
|
|
1312
|
-
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam :
|
|
1312
|
+
let e3 = c2 === 0 ? o2[0] ?? r2.initialPageParam : _r(r2, s2);
|
|
1313
1313
|
if (c2 > 0 && e3 == null) break;
|
|
1314
1314
|
s2 = await d2(s2, e3), c2++;
|
|
1315
1315
|
} while (c2 < t3);
|
|
@@ -1319,14 +1319,14 @@ function hr(e2) {
|
|
|
1319
1319
|
t2.fetchFn = t2.options.persister ? () => t2.options.persister?.(l2, { client: t2.client, queryKey: t2.queryKey, meta: t2.options.meta, signal: t2.signal }, n2) : l2;
|
|
1320
1320
|
} };
|
|
1321
1321
|
}
|
|
1322
|
-
function
|
|
1322
|
+
function _r(e2, { pages: t2, pageParams: n2 }) {
|
|
1323
1323
|
let r2 = t2.length - 1;
|
|
1324
1324
|
return t2.length > 0 ? e2.getNextPageParam(t2[r2], t2, n2[r2], n2) : void 0;
|
|
1325
1325
|
}
|
|
1326
|
-
function
|
|
1326
|
+
function vr(e2, { pages: t2, pageParams: n2 }) {
|
|
1327
1327
|
return t2.length > 0 ? e2.getPreviousPageParam?.(t2[0], t2, n2[0], n2) : void 0;
|
|
1328
1328
|
}
|
|
1329
|
-
var
|
|
1329
|
+
var yr = class extends hr {
|
|
1330
1330
|
#e;
|
|
1331
1331
|
#t;
|
|
1332
1332
|
#n;
|
|
@@ -1336,7 +1336,7 @@ var vr = class extends mr {
|
|
|
1336
1336
|
#o;
|
|
1337
1337
|
#s;
|
|
1338
1338
|
constructor(e2) {
|
|
1339
|
-
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 =
|
|
1339
|
+
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 = Sr(this.options), this.state = e2.state ?? this.#t, this.scheduleGc();
|
|
1340
1340
|
}
|
|
1341
1341
|
get meta() {
|
|
1342
1342
|
return this.options.meta;
|
|
@@ -1349,15 +1349,15 @@ var vr = class extends mr {
|
|
|
1349
1349
|
}
|
|
1350
1350
|
setOptions(e2) {
|
|
1351
1351
|
if (this.options = { ...this.#o, ...e2 }, e2?._type && (this.#e = e2._type), this.updateGcTime(this.options.gcTime), this.state && this.state.data === void 0) {
|
|
1352
|
-
let e3 =
|
|
1353
|
-
e3.data !== void 0 && (this.setState(
|
|
1352
|
+
let e3 = Sr(this.options);
|
|
1353
|
+
e3.data !== void 0 && (this.setState(xr(e3.data, e3.dataUpdatedAt)), this.#t = e3);
|
|
1354
1354
|
}
|
|
1355
1355
|
}
|
|
1356
1356
|
optionalRemove() {
|
|
1357
1357
|
!this.observers.length && this.state.fetchStatus === `idle` && this.#r.remove(this);
|
|
1358
1358
|
}
|
|
1359
1359
|
setData(e2, t2) {
|
|
1360
|
-
let n2 =
|
|
1360
|
+
let n2 = $n(this.state.data, e2, this.options);
|
|
1361
1361
|
return this.#l({ data: n2, type: `success`, dataUpdatedAt: t2?.updatedAt, manual: t2?.manual }), n2;
|
|
1362
1362
|
}
|
|
1363
1363
|
setState(e2) {
|
|
@@ -1365,7 +1365,7 @@ var vr = class extends mr {
|
|
|
1365
1365
|
}
|
|
1366
1366
|
cancel(e2) {
|
|
1367
1367
|
let t2 = this.#a?.promise;
|
|
1368
|
-
return this.#a?.cancel(e2), t2 ? t2.then(
|
|
1368
|
+
return this.#a?.cancel(e2), t2 ? t2.then(L).catch(L) : Promise.resolve();
|
|
1369
1369
|
}
|
|
1370
1370
|
destroy() {
|
|
1371
1371
|
super.destroy(), this.cancel({ silent: true });
|
|
@@ -1377,22 +1377,22 @@ var vr = class extends mr {
|
|
|
1377
1377
|
this.destroy(), this.setState(this.resetState);
|
|
1378
1378
|
}
|
|
1379
1379
|
isActive() {
|
|
1380
|
-
return this.observers.some((e2) =>
|
|
1380
|
+
return this.observers.some((e2) => z(e2.options.enabled, this) !== false);
|
|
1381
1381
|
}
|
|
1382
1382
|
isDisabled() {
|
|
1383
|
-
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn ===
|
|
1383
|
+
return this.getObserversCount() > 0 ? !this.isActive() : this.options.queryFn === nr || !this.isFetched();
|
|
1384
1384
|
}
|
|
1385
1385
|
isFetched() {
|
|
1386
1386
|
return this.state.dataUpdateCount + this.state.errorUpdateCount > 0;
|
|
1387
1387
|
}
|
|
1388
1388
|
isStatic() {
|
|
1389
|
-
return this.getObserversCount() > 0 && this.observers.some((e2) =>
|
|
1389
|
+
return this.getObserversCount() > 0 && this.observers.some((e2) => R(e2.options.staleTime, this) === `static`);
|
|
1390
1390
|
}
|
|
1391
1391
|
isStale() {
|
|
1392
1392
|
return this.getObserversCount() > 0 ? this.observers.some((e2) => e2.getCurrentResult().isStale) : this.state.data === void 0 || this.state.isInvalidated;
|
|
1393
1393
|
}
|
|
1394
1394
|
isStaleByTime(e2 = 0) {
|
|
1395
|
-
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !
|
|
1395
|
+
return this.state.data === void 0 ? true : e2 === `static` ? false : this.state.isInvalidated ? true : !Bn(this.state.dataUpdatedAt, e2);
|
|
1396
1396
|
}
|
|
1397
1397
|
onFocus() {
|
|
1398
1398
|
this.observers.find((e2) => e2.shouldFetchOnWindowFocus())?.refetch({ cancelRefetch: false }), this.#a?.continue();
|
|
@@ -1427,7 +1427,7 @@ var vr = class extends mr {
|
|
|
1427
1427
|
let n2 = new AbortController(), r2 = (e3) => {
|
|
1428
1428
|
Object.defineProperty(e3, "signal", { enumerable: true, get: () => (this.#s = true, n2.signal) });
|
|
1429
1429
|
}, i2 = () => {
|
|
1430
|
-
let e3 =
|
|
1430
|
+
let e3 = rr(this.options, t2), n3 = (() => {
|
|
1431
1431
|
let e4 = { client: this.#i, queryKey: this.queryKey, meta: this.meta };
|
|
1432
1432
|
return r2(e4), e4;
|
|
1433
1433
|
})();
|
|
@@ -1436,8 +1436,8 @@ var vr = class extends mr {
|
|
|
1436
1436
|
let e3 = { fetchOptions: t2, options: this.options, queryKey: this.queryKey, client: this.#i, state: this.state, fetchFn: i2 };
|
|
1437
1437
|
return r2(e3), e3;
|
|
1438
1438
|
})();
|
|
1439
|
-
(this.#e === `infinite` ?
|
|
1440
|
-
e3 instanceof
|
|
1439
|
+
(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) => {
|
|
1440
|
+
e3 instanceof pr && e3.revert && this.setState({ ...this.#n, fetchStatus: `idle` }), n2.abort();
|
|
1441
1441
|
}, onFail: (e3, t3) => {
|
|
1442
1442
|
this.#l({ type: `failed`, failureCount: e3, error: t3 });
|
|
1443
1443
|
}, onPause: () => {
|
|
@@ -1450,7 +1450,7 @@ var vr = class extends mr {
|
|
|
1450
1450
|
if (e3 === void 0) throw Error(`${this.queryHash} data is undefined`);
|
|
1451
1451
|
return this.setData(e3), this.#r.config.onSuccess?.(e3, this), this.#r.config.onSettled?.(e3, this.state.error, this), e3;
|
|
1452
1452
|
} catch (e3) {
|
|
1453
|
-
if (e3 instanceof
|
|
1453
|
+
if (e3 instanceof pr) {
|
|
1454
1454
|
if (e3.silent) return this.#a.promise;
|
|
1455
1455
|
if (e3.revert) {
|
|
1456
1456
|
if (this.state.data === void 0) throw e3;
|
|
@@ -1472,9 +1472,9 @@ var vr = class extends mr {
|
|
|
1472
1472
|
case `continue`:
|
|
1473
1473
|
return { ...t3, fetchStatus: `fetching` };
|
|
1474
1474
|
case `fetch`:
|
|
1475
|
-
return { ...t3, ...
|
|
1475
|
+
return { ...t3, ...br(t3.data, this.options), fetchMeta: e2.meta ?? null };
|
|
1476
1476
|
case `success`:
|
|
1477
|
-
let n2 = { ...t3, ...
|
|
1477
|
+
let n2 = { ...t3, ...xr(e2.data, e2.dataUpdatedAt), dataUpdateCount: t3.dataUpdateCount + 1, ...!e2.manual && { fetchStatus: `idle`, fetchFailureCount: 0, fetchFailureReason: null } };
|
|
1478
1478
|
return this.#n = e2.manual ? n2 : void 0, n2;
|
|
1479
1479
|
case `error`:
|
|
1480
1480
|
let r2 = e2.error;
|
|
@@ -1485,26 +1485,26 @@ var vr = class extends mr {
|
|
|
1485
1485
|
return { ...t3, ...e2.state };
|
|
1486
1486
|
}
|
|
1487
1487
|
};
|
|
1488
|
-
this.state = t2(this.state),
|
|
1488
|
+
this.state = t2(this.state), B.batch(() => {
|
|
1489
1489
|
this.observers.forEach((e3) => {
|
|
1490
1490
|
e3.onQueryUpdate();
|
|
1491
1491
|
}), this.#r.notify({ query: this, type: `updated`, action: e2 });
|
|
1492
1492
|
});
|
|
1493
1493
|
}
|
|
1494
1494
|
};
|
|
1495
|
-
function yr(e2, t2) {
|
|
1496
|
-
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: dr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1497
|
-
}
|
|
1498
1495
|
function br(e2, t2) {
|
|
1496
|
+
return { fetchFailureCount: 0, fetchFailureReason: null, fetchStatus: fr(t2.networkMode) ? `fetching` : `paused`, ...e2 === void 0 && { error: null, status: `pending` } };
|
|
1497
|
+
}
|
|
1498
|
+
function xr(e2, t2) {
|
|
1499
1499
|
return { data: e2, dataUpdatedAt: t2 ?? Date.now(), error: null, isInvalidated: false, status: `success` };
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function Sr(e2) {
|
|
1502
1502
|
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;
|
|
1503
1503
|
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` };
|
|
1504
1504
|
}
|
|
1505
|
-
var
|
|
1505
|
+
var Cr = class extends Nn {
|
|
1506
1506
|
constructor(e2, t2) {
|
|
1507
|
-
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o =
|
|
1507
|
+
super(), this.options = t2, this.#e = e2, this.#s = null, this.#o = sr(), this.bindMethods(), this.setOptions(t2);
|
|
1508
1508
|
}
|
|
1509
1509
|
#e;
|
|
1510
1510
|
#t = void 0;
|
|
@@ -1525,32 +1525,32 @@ var Sr = class extends Mn {
|
|
|
1525
1525
|
this.refetch = this.refetch.bind(this);
|
|
1526
1526
|
}
|
|
1527
1527
|
onSubscribe() {
|
|
1528
|
-
this.listeners.size === 1 && (this.#t.addObserver(this),
|
|
1528
|
+
this.listeners.size === 1 && (this.#t.addObserver(this), Tr(this.#t, this.options) ? this.#h() : this.updateResult(), this.#y());
|
|
1529
1529
|
}
|
|
1530
1530
|
onUnsubscribe() {
|
|
1531
1531
|
this.hasListeners() || this.destroy();
|
|
1532
1532
|
}
|
|
1533
1533
|
shouldFetchOnReconnect() {
|
|
1534
|
-
return
|
|
1534
|
+
return Er(this.#t, this.options, this.options.refetchOnReconnect);
|
|
1535
1535
|
}
|
|
1536
1536
|
shouldFetchOnWindowFocus() {
|
|
1537
|
-
return
|
|
1537
|
+
return Er(this.#t, this.options, this.options.refetchOnWindowFocus);
|
|
1538
1538
|
}
|
|
1539
1539
|
destroy() {
|
|
1540
1540
|
this.listeners = /* @__PURE__ */ new Set(), this.#b(), this.#x(), this.#t.removeObserver(this);
|
|
1541
1541
|
}
|
|
1542
1542
|
setOptions(e2) {
|
|
1543
1543
|
let t2 = this.options, n2 = this.#t;
|
|
1544
|
-
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof
|
|
1545
|
-
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !
|
|
1544
|
+
if (this.options = this.#e.defaultQueryOptions(e2), this.options.enabled !== void 0 && typeof this.options.enabled != `boolean` && typeof this.options.enabled != `function` && typeof z(this.options.enabled, this.#t) != `boolean`) throw Error(`Expected enabled to be a boolean or a callback that returns a boolean`);
|
|
1545
|
+
this.#S(), this.#t.setOptions(this.options), t2._defaulted && !Jn(this.options, t2) && this.#e.getQueryCache().notify({ type: `observerOptionsUpdated`, query: this.#t, observer: this });
|
|
1546
1546
|
let r2 = this.hasListeners();
|
|
1547
|
-
r2 &&
|
|
1547
|
+
r2 && Dr(this.#t, n2, this.options, t2) && this.#h(), this.updateResult(), r2 && (this.#t !== n2 || z(this.options.enabled, this.#t) !== z(t2.enabled, this.#t) || R(this.options.staleTime, this.#t) !== R(t2.staleTime, this.#t)) && this.#g();
|
|
1548
1548
|
let i2 = this.#_();
|
|
1549
|
-
r2 && (this.#t !== n2 ||
|
|
1549
|
+
r2 && (this.#t !== n2 || z(this.options.enabled, this.#t) !== z(t2.enabled, this.#t) || i2 !== this.#p) && this.#v(i2);
|
|
1550
1550
|
}
|
|
1551
1551
|
getOptimisticResult(e2) {
|
|
1552
1552
|
let t2 = this.#e.getQueryCache().build(this.#e, e2), n2 = this.createResult(t2, e2);
|
|
1553
|
-
return
|
|
1553
|
+
return kr(this, n2) && (this.#r = n2, this.#a = this.options, this.#i = this.#t.state), n2;
|
|
1554
1554
|
}
|
|
1555
1555
|
getCurrentResult() {
|
|
1556
1556
|
return this.#r;
|
|
@@ -1577,14 +1577,14 @@ var Sr = class extends Mn {
|
|
|
1577
1577
|
#h(e2) {
|
|
1578
1578
|
this.#S();
|
|
1579
1579
|
let t2 = this.#t.fetch(this.options, e2);
|
|
1580
|
-
return e2?.throwOnError || (t2 = t2.catch(
|
|
1580
|
+
return e2?.throwOnError || (t2 = t2.catch(L)), t2;
|
|
1581
1581
|
}
|
|
1582
1582
|
#g() {
|
|
1583
1583
|
this.#b();
|
|
1584
|
-
let e2 =
|
|
1585
|
-
if (
|
|
1586
|
-
let t2 =
|
|
1587
|
-
this.#d =
|
|
1584
|
+
let e2 = R(this.options.staleTime, this.#t);
|
|
1585
|
+
if (or.isServer() || this.#r.isStale || !zn(e2)) return;
|
|
1586
|
+
let t2 = Bn(this.#r.dataUpdatedAt, e2) + 1;
|
|
1587
|
+
this.#d = I.setTimeout(() => {
|
|
1588
1588
|
this.#r.isStale || this.updateResult();
|
|
1589
1589
|
}, t2);
|
|
1590
1590
|
}
|
|
@@ -1592,47 +1592,47 @@ var Sr = class extends Mn {
|
|
|
1592
1592
|
return (typeof this.options.refetchInterval == `function` ? this.options.refetchInterval(this.#t) : this.options.refetchInterval) ?? false;
|
|
1593
1593
|
}
|
|
1594
1594
|
#v(e2) {
|
|
1595
|
-
this.#x(), this.#p = e2, !
|
|
1596
|
-
(this.options.refetchIntervalInBackground ||
|
|
1595
|
+
this.#x(), this.#p = e2, !or.isServer() && z(this.options.enabled, this.#t) !== false && zn(this.#p) && this.#p !== 0 && (this.#f = I.setInterval(() => {
|
|
1596
|
+
(this.options.refetchIntervalInBackground || Pn.isFocused()) && this.#h();
|
|
1597
1597
|
}, this.#p));
|
|
1598
1598
|
}
|
|
1599
1599
|
#y() {
|
|
1600
1600
|
this.#g(), this.#v(this.#_());
|
|
1601
1601
|
}
|
|
1602
1602
|
#b() {
|
|
1603
|
-
this.#d !== void 0 && (
|
|
1603
|
+
this.#d !== void 0 && (I.clearTimeout(this.#d), this.#d = void 0);
|
|
1604
1604
|
}
|
|
1605
1605
|
#x() {
|
|
1606
|
-
this.#f !== void 0 && (
|
|
1606
|
+
this.#f !== void 0 && (I.clearInterval(this.#f), this.#f = void 0);
|
|
1607
1607
|
}
|
|
1608
1608
|
createResult(e2, t2) {
|
|
1609
1609
|
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;
|
|
1610
1610
|
if (t2._optimisticResults) {
|
|
1611
|
-
let i3 = this.hasListeners(), a3 = !i3 &&
|
|
1612
|
-
(a3 || o3) && (l2 = { ...l2, ...
|
|
1611
|
+
let i3 = this.hasListeners(), a3 = !i3 && Tr(e2, t2), o3 = i3 && Dr(e2, n2, t2, r2);
|
|
1612
|
+
(a3 || o3) && (l2 = { ...l2, ...br(c2.data, e2.options) }), t2._optimisticResults === `isRestoring` && (l2.fetchStatus = `idle`);
|
|
1613
1613
|
}
|
|
1614
1614
|
let { error: f2, errorUpdatedAt: p2, status: m2 } = l2;
|
|
1615
1615
|
d2 = l2.data;
|
|
1616
1616
|
let h2 = false;
|
|
1617
1617
|
if (t2.placeholderData !== void 0 && d2 === void 0 && m2 === `pending`) {
|
|
1618
1618
|
let e3;
|
|
1619
|
-
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 =
|
|
1619
|
+
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 = $n(i2?.data, e3, t2), u2 = true);
|
|
1620
1620
|
}
|
|
1621
1621
|
if (t2.select && d2 !== void 0 && !h2) {
|
|
1622
1622
|
if (i2 && d2 === a2?.data && t2.select === this.#c) d2 = this.#l;
|
|
1623
1623
|
else try {
|
|
1624
|
-
this.#c = t2.select, d2 = t2.select(d2), d2 =
|
|
1624
|
+
this.#c = t2.select, d2 = t2.select(d2), d2 = $n(i2?.data, d2, t2), this.#l = d2, this.#s = null;
|
|
1625
1625
|
} catch (e3) {
|
|
1626
1626
|
this.#s = e3;
|
|
1627
1627
|
}
|
|
1628
1628
|
}
|
|
1629
1629
|
this.#s && (f2 = this.#s, d2 = this.#l, p2 = Date.now(), m2 = `error`);
|
|
1630
|
-
let g2 = l2.fetchStatus === `fetching`, _2 = m2 === `pending`, v2 = m2 === `error`, y2 = _2 && g2, b2 = d2 !== void 0, x2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: _2, isSuccess: m2 === `success`, isError: v2, isInitialLoading: y2, isLoading: y2, 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: g2, isRefetching: g2 && !_2, isLoadingError: v2 && !b2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: v2 && b2, isStale:
|
|
1630
|
+
let g2 = l2.fetchStatus === `fetching`, _2 = m2 === `pending`, v2 = m2 === `error`, y2 = _2 && g2, b2 = d2 !== void 0, x2 = { status: m2, fetchStatus: l2.fetchStatus, isPending: _2, isSuccess: m2 === `success`, isError: v2, isInitialLoading: y2, isLoading: y2, 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: g2, isRefetching: g2 && !_2, isLoadingError: v2 && !b2, isPaused: l2.fetchStatus === `paused`, isPlaceholderData: u2, isRefetchError: v2 && b2, isStale: Or(e2, t2), refetch: this.refetch, promise: this.#o, isEnabled: z(t2.enabled, e2) !== false };
|
|
1631
1631
|
if (this.options.experimental_prefetchInRender) {
|
|
1632
1632
|
let t3 = x2.data !== void 0, r3 = x2.status === `error` && !t3, i3 = (e3) => {
|
|
1633
1633
|
r3 ? e3.reject(x2.error) : t3 && e3.resolve(x2.data);
|
|
1634
1634
|
}, a3 = () => {
|
|
1635
|
-
let e3 = this.#o = x2.promise =
|
|
1635
|
+
let e3 = this.#o = x2.promise = sr();
|
|
1636
1636
|
i3(e3);
|
|
1637
1637
|
}, o3 = this.#o;
|
|
1638
1638
|
switch (o3.status) {
|
|
@@ -1650,7 +1650,7 @@ var Sr = class extends Mn {
|
|
|
1650
1650
|
}
|
|
1651
1651
|
updateResult() {
|
|
1652
1652
|
let e2 = this.#r, t2 = this.createResult(this.#t, this.options);
|
|
1653
|
-
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !
|
|
1653
|
+
this.#i = this.#t.state, this.#a = this.options, this.#i.data !== void 0 && (this.#u = this.#t), !Jn(t2, e2) && (this.#r = t2, this.#C({ listeners: (() => {
|
|
1654
1654
|
if (!e2) return true;
|
|
1655
1655
|
let { notifyOnChangeProps: t3 } = this.options, n2 = typeof t3 == `function` ? t3() : t3;
|
|
1656
1656
|
if (n2 === `all` || !n2 && !this.#m.size) return true;
|
|
@@ -1671,42 +1671,42 @@ var Sr = class extends Mn {
|
|
|
1671
1671
|
this.updateResult(), this.hasListeners() && this.#y();
|
|
1672
1672
|
}
|
|
1673
1673
|
#C(e2) {
|
|
1674
|
-
|
|
1674
|
+
B.batch(() => {
|
|
1675
1675
|
e2.listeners && this.listeners.forEach((e3) => {
|
|
1676
1676
|
e3(this.#r);
|
|
1677
1677
|
}), this.#e.getQueryCache().notify({ query: this.#t, type: `observerResultsUpdated` });
|
|
1678
1678
|
});
|
|
1679
1679
|
}
|
|
1680
1680
|
};
|
|
1681
|
-
function Cr(e2, t2) {
|
|
1682
|
-
return B(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || B(t2.retryOnMount, e2) !== false);
|
|
1683
|
-
}
|
|
1684
1681
|
function wr(e2, t2) {
|
|
1685
|
-
return
|
|
1682
|
+
return z(t2.enabled, e2) !== false && e2.state.data === void 0 && (e2.state.status !== `error` || z(t2.retryOnMount, e2) !== false);
|
|
1686
1683
|
}
|
|
1687
|
-
function Tr(e2, t2
|
|
1688
|
-
|
|
1684
|
+
function Tr(e2, t2) {
|
|
1685
|
+
return wr(e2, t2) || e2.state.data !== void 0 && Er(e2, t2, t2.refetchOnMount);
|
|
1686
|
+
}
|
|
1687
|
+
function Er(e2, t2, n2) {
|
|
1688
|
+
if (z(t2.enabled, e2) !== false && R(t2.staleTime, e2) !== `static`) {
|
|
1689
1689
|
let r2 = typeof n2 == `function` ? n2(e2) : n2;
|
|
1690
|
-
return r2 === `always` || r2 !== false &&
|
|
1690
|
+
return r2 === `always` || r2 !== false && Or(e2, t2);
|
|
1691
1691
|
}
|
|
1692
1692
|
return false;
|
|
1693
1693
|
}
|
|
1694
|
-
function
|
|
1695
|
-
return (e2 !== t2 ||
|
|
1696
|
-
}
|
|
1697
|
-
function Dr(e2, t2) {
|
|
1698
|
-
return B(t2.enabled, e2) !== false && e2.isStaleByTime(z(t2.staleTime, e2));
|
|
1694
|
+
function Dr(e2, t2, n2, r2) {
|
|
1695
|
+
return (e2 !== t2 || z(r2.enabled, e2) === false) && (!n2.suspense || e2.state.status !== `error`) && Or(e2, n2);
|
|
1699
1696
|
}
|
|
1700
1697
|
function Or(e2, t2) {
|
|
1701
|
-
return
|
|
1698
|
+
return z(t2.enabled, e2) !== false && e2.isStaleByTime(R(t2.staleTime, e2));
|
|
1699
|
+
}
|
|
1700
|
+
function kr(e2, t2) {
|
|
1701
|
+
return !Jn(e2.getCurrentResult(), t2);
|
|
1702
1702
|
}
|
|
1703
|
-
var
|
|
1703
|
+
var Ar = class extends hr {
|
|
1704
1704
|
#e;
|
|
1705
1705
|
#t;
|
|
1706
1706
|
#n;
|
|
1707
1707
|
#r;
|
|
1708
1708
|
constructor(e2) {
|
|
1709
|
-
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state ||
|
|
1709
|
+
super(), this.#e = e2.client, this.mutationId = e2.mutationId, this.#n = e2.mutationCache, this.#t = [], this.state = e2.state || jr(), this.setOptions(e2.options), this.scheduleGc();
|
|
1710
1710
|
}
|
|
1711
1711
|
setOptions(e2) {
|
|
1712
1712
|
this.options = e2, this.updateGcTime(this.options.gcTime);
|
|
@@ -1730,7 +1730,7 @@ var kr = class extends mr {
|
|
|
1730
1730
|
let t2 = () => {
|
|
1731
1731
|
this.#i({ type: `continue` });
|
|
1732
1732
|
}, n2 = { client: this.#e, meta: this.options.meta, mutationKey: this.options.mutationKey };
|
|
1733
|
-
this.#r =
|
|
1733
|
+
this.#r = mr({ fn: () => this.options.mutationFn ? this.options.mutationFn(e2, n2) : Promise.reject(Error(`No mutationFn found`)), onFail: (e3, t3) => {
|
|
1734
1734
|
this.#i({ type: `failed`, failureCount: e3, error: t3 });
|
|
1735
1735
|
}, onPause: () => {
|
|
1736
1736
|
this.#i({ type: `pause` });
|
|
@@ -1788,17 +1788,17 @@ var kr = class extends mr {
|
|
|
1788
1788
|
return { ...t3, data: void 0, error: e2.error, failureCount: t3.failureCount + 1, failureReason: e2.error, isPaused: false, status: `error` };
|
|
1789
1789
|
}
|
|
1790
1790
|
};
|
|
1791
|
-
this.state = t2(this.state),
|
|
1791
|
+
this.state = t2(this.state), B.batch(() => {
|
|
1792
1792
|
this.#t.forEach((t3) => {
|
|
1793
1793
|
t3.onMutationUpdate(e2);
|
|
1794
1794
|
}), this.#n.notify({ mutation: this, type: `updated`, action: e2 });
|
|
1795
1795
|
});
|
|
1796
1796
|
}
|
|
1797
1797
|
};
|
|
1798
|
-
function
|
|
1798
|
+
function jr() {
|
|
1799
1799
|
return { context: void 0, data: void 0, error: null, failureCount: 0, failureReason: null, isPaused: false, status: `idle`, variables: void 0, submittedAt: 0 };
|
|
1800
1800
|
}
|
|
1801
|
-
var
|
|
1801
|
+
var Mr = class extends Nn {
|
|
1802
1802
|
constructor(e2 = {}) {
|
|
1803
1803
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Set(), this.#t = /* @__PURE__ */ new Map(), this.#n = 0;
|
|
1804
1804
|
}
|
|
@@ -1806,12 +1806,12 @@ var jr = class extends Mn {
|
|
|
1806
1806
|
#t;
|
|
1807
1807
|
#n;
|
|
1808
1808
|
build(e2, t2, n2) {
|
|
1809
|
-
let r2 = new
|
|
1809
|
+
let r2 = new Ar({ client: e2, mutationCache: this, mutationId: ++this.#n, options: e2.defaultMutationOptions(t2), state: n2 });
|
|
1810
1810
|
return this.add(r2), r2;
|
|
1811
1811
|
}
|
|
1812
1812
|
add(e2) {
|
|
1813
1813
|
this.#e.add(e2);
|
|
1814
|
-
let t2 =
|
|
1814
|
+
let t2 = Nr(e2);
|
|
1815
1815
|
if (typeof t2 == `string`) {
|
|
1816
1816
|
let n2 = this.#t.get(t2);
|
|
1817
1817
|
n2 ? n2.push(e2) : this.#t.set(t2, [e2]);
|
|
@@ -1820,7 +1820,7 @@ var jr = class extends Mn {
|
|
|
1820
1820
|
}
|
|
1821
1821
|
remove(e2) {
|
|
1822
1822
|
if (this.#e.delete(e2)) {
|
|
1823
|
-
let t2 =
|
|
1823
|
+
let t2 = Nr(e2);
|
|
1824
1824
|
if (typeof t2 == `string`) {
|
|
1825
1825
|
let n2 = this.#t.get(t2);
|
|
1826
1826
|
if (n2) {
|
|
@@ -1834,7 +1834,7 @@ var jr = class extends Mn {
|
|
|
1834
1834
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1835
1835
|
}
|
|
1836
1836
|
canRun(e2) {
|
|
1837
|
-
let t2 =
|
|
1837
|
+
let t2 = Nr(e2);
|
|
1838
1838
|
if (typeof t2 == `string`) {
|
|
1839
1839
|
let n2 = this.#t.get(t2)?.find((e3) => e3.state.status === `pending`);
|
|
1840
1840
|
return !n2 || n2 === e2;
|
|
@@ -1842,11 +1842,11 @@ var jr = class extends Mn {
|
|
|
1842
1842
|
return true;
|
|
1843
1843
|
}
|
|
1844
1844
|
runNext(e2) {
|
|
1845
|
-
let t2 =
|
|
1845
|
+
let t2 = Nr(e2);
|
|
1846
1846
|
return typeof t2 == `string` ? this.#t.get(t2)?.find((t3) => t3 !== e2 && t3.state.isPaused)?.continue() ?? Promise.resolve() : Promise.resolve();
|
|
1847
1847
|
}
|
|
1848
1848
|
clear() {
|
|
1849
|
-
|
|
1849
|
+
B.batch(() => {
|
|
1850
1850
|
this.#e.forEach((e2) => {
|
|
1851
1851
|
this.notify({ type: `removed`, mutation: e2 });
|
|
1852
1852
|
}), this.#e.clear(), this.#t.clear();
|
|
@@ -1857,13 +1857,13 @@ var jr = class extends Mn {
|
|
|
1857
1857
|
}
|
|
1858
1858
|
find(e2) {
|
|
1859
1859
|
let t2 = { exact: true, ...e2 };
|
|
1860
|
-
return this.getAll().find((e3) =>
|
|
1860
|
+
return this.getAll().find((e3) => Hn(t2, e3));
|
|
1861
1861
|
}
|
|
1862
1862
|
findAll(e2 = {}) {
|
|
1863
|
-
return this.getAll().filter((t2) =>
|
|
1863
|
+
return this.getAll().filter((t2) => Hn(e2, t2));
|
|
1864
1864
|
}
|
|
1865
1865
|
notify(e2) {
|
|
1866
|
-
|
|
1866
|
+
B.batch(() => {
|
|
1867
1867
|
this.listeners.forEach((t2) => {
|
|
1868
1868
|
t2(e2);
|
|
1869
1869
|
});
|
|
@@ -1871,20 +1871,20 @@ var jr = class extends Mn {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
resumePausedMutations() {
|
|
1873
1873
|
let e2 = this.getAll().filter((e3) => e3.state.isPaused);
|
|
1874
|
-
return
|
|
1874
|
+
return B.batch(() => Promise.all(e2.map((e3) => e3.continue().catch(L))));
|
|
1875
1875
|
}
|
|
1876
1876
|
};
|
|
1877
|
-
function
|
|
1877
|
+
function Nr(e2) {
|
|
1878
1878
|
return e2.options.scope?.id;
|
|
1879
1879
|
}
|
|
1880
|
-
var
|
|
1880
|
+
var Pr = class extends Nn {
|
|
1881
1881
|
constructor(e2 = {}) {
|
|
1882
1882
|
super(), this.config = e2, this.#e = /* @__PURE__ */ new Map();
|
|
1883
1883
|
}
|
|
1884
1884
|
#e;
|
|
1885
1885
|
build(e2, t2, n2) {
|
|
1886
|
-
let r2 = t2.queryKey, i2 = t2.queryHash ??
|
|
1887
|
-
return a2 || (a2 = new
|
|
1886
|
+
let r2 = t2.queryKey, i2 = t2.queryHash ?? Un(r2, t2), a2 = this.get(i2);
|
|
1887
|
+
return a2 || (a2 = new yr({ client: e2, queryKey: r2, queryHash: i2, options: e2.defaultQueryOptions(t2), state: n2, defaultOptions: e2.getQueryDefaults(r2) }), this.add(a2)), a2;
|
|
1888
1888
|
}
|
|
1889
1889
|
add(e2) {
|
|
1890
1890
|
this.#e.has(e2.queryHash) || (this.#e.set(e2.queryHash, e2), this.notify({ type: `added`, query: e2 }));
|
|
@@ -1894,7 +1894,7 @@ var Nr = class extends Mn {
|
|
|
1894
1894
|
t2 && (e2.destroy(), t2 === e2 && this.#e.delete(e2.queryHash), this.notify({ type: `removed`, query: e2 }));
|
|
1895
1895
|
}
|
|
1896
1896
|
clear() {
|
|
1897
|
-
|
|
1897
|
+
B.batch(() => {
|
|
1898
1898
|
this.getAll().forEach((e2) => {
|
|
1899
1899
|
this.remove(e2);
|
|
1900
1900
|
});
|
|
@@ -1908,35 +1908,35 @@ var Nr = class extends Mn {
|
|
|
1908
1908
|
}
|
|
1909
1909
|
find(e2) {
|
|
1910
1910
|
let t2 = { exact: true, ...e2 };
|
|
1911
|
-
return this.getAll().find((e3) =>
|
|
1911
|
+
return this.getAll().find((e3) => Vn(t2, e3));
|
|
1912
1912
|
}
|
|
1913
1913
|
findAll(e2 = {}) {
|
|
1914
1914
|
let t2 = this.getAll();
|
|
1915
|
-
return Object.keys(e2).length > 0 ? t2.filter((t3) =>
|
|
1915
|
+
return Object.keys(e2).length > 0 ? t2.filter((t3) => Vn(e2, t3)) : t2;
|
|
1916
1916
|
}
|
|
1917
1917
|
notify(e2) {
|
|
1918
|
-
|
|
1918
|
+
B.batch(() => {
|
|
1919
1919
|
this.listeners.forEach((t2) => {
|
|
1920
1920
|
t2(e2);
|
|
1921
1921
|
});
|
|
1922
1922
|
});
|
|
1923
1923
|
}
|
|
1924
1924
|
onFocus() {
|
|
1925
|
-
|
|
1925
|
+
B.batch(() => {
|
|
1926
1926
|
this.getAll().forEach((e2) => {
|
|
1927
1927
|
e2.onFocus();
|
|
1928
1928
|
});
|
|
1929
1929
|
});
|
|
1930
1930
|
}
|
|
1931
1931
|
onOnline() {
|
|
1932
|
-
|
|
1932
|
+
B.batch(() => {
|
|
1933
1933
|
this.getAll().forEach((e2) => {
|
|
1934
1934
|
e2.onOnline();
|
|
1935
1935
|
});
|
|
1936
1936
|
});
|
|
1937
1937
|
}
|
|
1938
1938
|
};
|
|
1939
|
-
var
|
|
1939
|
+
var Fr = class {
|
|
1940
1940
|
#e;
|
|
1941
1941
|
#t;
|
|
1942
1942
|
#n;
|
|
@@ -1946,12 +1946,12 @@ var Pr = class {
|
|
|
1946
1946
|
#o;
|
|
1947
1947
|
#s;
|
|
1948
1948
|
constructor(e2 = {}) {
|
|
1949
|
-
this.#e = e2.queryCache || new
|
|
1949
|
+
this.#e = e2.queryCache || new Pr(), this.#t = e2.mutationCache || new Mr(), this.#n = e2.defaultOptions || {}, this.#r = /* @__PURE__ */ new Map(), this.#i = /* @__PURE__ */ new Map(), this.#a = 0;
|
|
1950
1950
|
}
|
|
1951
1951
|
mount() {
|
|
1952
|
-
this.#a++, this.#a === 1 && (this.#o =
|
|
1952
|
+
this.#a++, this.#a === 1 && (this.#o = Pn.subscribe(async (e2) => {
|
|
1953
1953
|
e2 && (await this.resumePausedMutations(), this.#e.onFocus());
|
|
1954
|
-
}), this.#s =
|
|
1954
|
+
}), this.#s = ur.subscribe(async (e2) => {
|
|
1955
1955
|
e2 && (await this.resumePausedMutations(), this.#e.onOnline());
|
|
1956
1956
|
}));
|
|
1957
1957
|
}
|
|
@@ -1970,17 +1970,17 @@ var Pr = class {
|
|
|
1970
1970
|
}
|
|
1971
1971
|
ensureQueryData(e2) {
|
|
1972
1972
|
let t2 = this.defaultQueryOptions(e2), n2 = this.#e.build(this, t2), r2 = n2.state.data;
|
|
1973
|
-
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(
|
|
1973
|
+
return r2 === void 0 ? this.fetchQuery(e2) : (e2.revalidateIfStale && n2.isStaleByTime(R(t2.staleTime, n2)) && this.prefetchQuery(t2), Promise.resolve(r2));
|
|
1974
1974
|
}
|
|
1975
1975
|
getQueriesData(e2) {
|
|
1976
1976
|
return this.#e.findAll(e2).map(({ queryKey: e3, state: t2 }) => [e3, t2.data]);
|
|
1977
1977
|
}
|
|
1978
1978
|
setQueryData(e2, t2, n2) {
|
|
1979
|
-
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 =
|
|
1979
|
+
let r2 = this.defaultQueryOptions({ queryKey: e2 }), i2 = this.#e.get(r2.queryHash)?.state.data, a2 = Rn(t2, i2);
|
|
1980
1980
|
if (a2 !== void 0) return this.#e.build(this, r2).setData(a2, { ...n2, manual: true });
|
|
1981
1981
|
}
|
|
1982
1982
|
setQueriesData(e2, t2, n2) {
|
|
1983
|
-
return
|
|
1983
|
+
return B.batch(() => this.#e.findAll(e2).map(({ queryKey: e3 }) => [e3, this.setQueryData(e3, t2, n2)]));
|
|
1984
1984
|
}
|
|
1985
1985
|
getQueryState(e2) {
|
|
1986
1986
|
let t2 = this.defaultQueryOptions({ queryKey: e2 });
|
|
@@ -1988,7 +1988,7 @@ var Pr = class {
|
|
|
1988
1988
|
}
|
|
1989
1989
|
removeQueries(e2) {
|
|
1990
1990
|
let t2 = this.#e;
|
|
1991
|
-
|
|
1991
|
+
B.batch(() => {
|
|
1992
1992
|
t2.findAll(e2).forEach((e3) => {
|
|
1993
1993
|
t2.remove(e3);
|
|
1994
1994
|
});
|
|
@@ -1996,46 +1996,46 @@ var Pr = class {
|
|
|
1996
1996
|
}
|
|
1997
1997
|
resetQueries(e2, t2) {
|
|
1998
1998
|
let n2 = this.#e;
|
|
1999
|
-
return
|
|
1999
|
+
return B.batch(() => (n2.findAll(e2).forEach((e3) => {
|
|
2000
2000
|
e3.reset();
|
|
2001
2001
|
}), this.refetchQueries({ type: `active`, ...e2 }, t2)));
|
|
2002
2002
|
}
|
|
2003
2003
|
cancelQueries(e2, t2 = {}) {
|
|
2004
|
-
let n2 = { revert: true, ...t2 }, r2 =
|
|
2005
|
-
return Promise.all(r2).then(
|
|
2004
|
+
let n2 = { revert: true, ...t2 }, r2 = B.batch(() => this.#e.findAll(e2).map((e3) => e3.cancel(n2)));
|
|
2005
|
+
return Promise.all(r2).then(L).catch(L);
|
|
2006
2006
|
}
|
|
2007
2007
|
invalidateQueries(e2, t2 = {}) {
|
|
2008
|
-
return
|
|
2008
|
+
return B.batch(() => (this.#e.findAll(e2).forEach((e3) => {
|
|
2009
2009
|
e3.invalidate();
|
|
2010
2010
|
}), e2?.refetchType === `none` ? Promise.resolve() : this.refetchQueries({ ...e2, type: e2?.refetchType ?? e2?.type ?? `active` }, t2)));
|
|
2011
2011
|
}
|
|
2012
2012
|
refetchQueries(e2, t2 = {}) {
|
|
2013
|
-
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 =
|
|
2013
|
+
let n2 = { ...t2, cancelRefetch: t2.cancelRefetch ?? true }, r2 = B.batch(() => this.#e.findAll(e2).filter((e3) => !e3.isDisabled() && !e3.isStatic()).map((e3) => {
|
|
2014
2014
|
let t3 = e3.fetch(void 0, n2);
|
|
2015
|
-
return n2.throwOnError || (t3 = t3.catch(
|
|
2015
|
+
return n2.throwOnError || (t3 = t3.catch(L)), e3.state.fetchStatus === `paused` ? Promise.resolve() : t3;
|
|
2016
2016
|
}));
|
|
2017
|
-
return Promise.all(r2).then(
|
|
2017
|
+
return Promise.all(r2).then(L);
|
|
2018
2018
|
}
|
|
2019
2019
|
fetchQuery(e2) {
|
|
2020
2020
|
let t2 = this.defaultQueryOptions(e2);
|
|
2021
2021
|
t2.retry === void 0 && (t2.retry = false);
|
|
2022
2022
|
let n2 = this.#e.build(this, t2);
|
|
2023
|
-
return n2.isStaleByTime(
|
|
2023
|
+
return n2.isStaleByTime(R(t2.staleTime, n2)) ? n2.fetch(t2) : Promise.resolve(n2.state.data);
|
|
2024
2024
|
}
|
|
2025
2025
|
prefetchQuery(e2) {
|
|
2026
|
-
return this.fetchQuery(e2).then(
|
|
2026
|
+
return this.fetchQuery(e2).then(L).catch(L);
|
|
2027
2027
|
}
|
|
2028
2028
|
fetchInfiniteQuery(e2) {
|
|
2029
2029
|
return e2._type = `infinite`, this.fetchQuery(e2);
|
|
2030
2030
|
}
|
|
2031
2031
|
prefetchInfiniteQuery(e2) {
|
|
2032
|
-
return this.fetchInfiniteQuery(e2).then(
|
|
2032
|
+
return this.fetchInfiniteQuery(e2).then(L).catch(L);
|
|
2033
2033
|
}
|
|
2034
2034
|
ensureInfiniteQueryData(e2) {
|
|
2035
2035
|
return e2._type = `infinite`, this.ensureQueryData(e2);
|
|
2036
2036
|
}
|
|
2037
2037
|
resumePausedMutations() {
|
|
2038
|
-
return
|
|
2038
|
+
return ur.isOnline() ? this.#t.resumePausedMutations() : Promise.resolve();
|
|
2039
2039
|
}
|
|
2040
2040
|
getQueryCache() {
|
|
2041
2041
|
return this.#e;
|
|
@@ -2050,27 +2050,27 @@ var Pr = class {
|
|
|
2050
2050
|
this.#n = e2;
|
|
2051
2051
|
}
|
|
2052
2052
|
setQueryDefaults(e2, t2) {
|
|
2053
|
-
this.#r.set(
|
|
2053
|
+
this.#r.set(Wn(e2), { queryKey: e2, defaultOptions: t2 });
|
|
2054
2054
|
}
|
|
2055
2055
|
getQueryDefaults(e2) {
|
|
2056
2056
|
let t2 = [...this.#r.values()], n2 = {};
|
|
2057
2057
|
return t2.forEach((t3) => {
|
|
2058
|
-
|
|
2058
|
+
Gn(e2, t3.queryKey) && Object.assign(n2, t3.defaultOptions);
|
|
2059
2059
|
}), n2;
|
|
2060
2060
|
}
|
|
2061
2061
|
setMutationDefaults(e2, t2) {
|
|
2062
|
-
this.#i.set(
|
|
2062
|
+
this.#i.set(Wn(e2), { mutationKey: e2, defaultOptions: t2 });
|
|
2063
2063
|
}
|
|
2064
2064
|
getMutationDefaults(e2) {
|
|
2065
2065
|
let t2 = [...this.#i.values()], n2 = {};
|
|
2066
2066
|
return t2.forEach((t3) => {
|
|
2067
|
-
|
|
2067
|
+
Gn(e2, t3.mutationKey) && Object.assign(n2, t3.defaultOptions);
|
|
2068
2068
|
}), n2;
|
|
2069
2069
|
}
|
|
2070
2070
|
defaultQueryOptions(e2) {
|
|
2071
2071
|
if (e2._defaulted) return e2;
|
|
2072
2072
|
let t2 = { ...this.#n.queries, ...this.getQueryDefaults(e2.queryKey), ...e2, _defaulted: true };
|
|
2073
|
-
return t2.queryHash ||=
|
|
2073
|
+
return t2.queryHash ||= Un(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;
|
|
2074
2074
|
}
|
|
2075
2075
|
defaultMutationOptions(e2) {
|
|
2076
2076
|
return e2?._defaulted ? e2 : { ...this.#n.mutations, ...e2?.mutationKey && this.getMutationDefaults(e2.mutationKey), ...e2, _defaulted: true };
|
|
@@ -2079,20 +2079,20 @@ var Pr = class {
|
|
|
2079
2079
|
this.#e.clear(), this.#t.clear();
|
|
2080
2080
|
}
|
|
2081
2081
|
};
|
|
2082
|
-
var
|
|
2083
|
-
var
|
|
2084
|
-
let n2 = e.useContext(
|
|
2082
|
+
var Ir = e.createContext(void 0);
|
|
2083
|
+
var Lr = (t2) => {
|
|
2084
|
+
let n2 = e.useContext(Ir);
|
|
2085
2085
|
if (t2) return t2;
|
|
2086
2086
|
if (!n2) throw Error(`No QueryClient set, use QueryClientProvider to set one`);
|
|
2087
2087
|
return n2;
|
|
2088
2088
|
};
|
|
2089
|
-
var
|
|
2089
|
+
var Rr = ({ client: t2, children: n2 }) => (e.useEffect(() => (t2.mount(), () => {
|
|
2090
2090
|
t2.unmount();
|
|
2091
|
-
}), [t2]), (0, import_jsx_runtime.jsx)(
|
|
2092
|
-
var
|
|
2093
|
-
var
|
|
2094
|
-
|
|
2095
|
-
function
|
|
2091
|
+
}), [t2]), (0, import_jsx_runtime.jsx)(Ir.Provider, { value: t2, children: n2 }));
|
|
2092
|
+
var zr = e.createContext(false);
|
|
2093
|
+
var Br = () => e.useContext(zr);
|
|
2094
|
+
zr.Provider;
|
|
2095
|
+
function Vr() {
|
|
2096
2096
|
let e2 = false;
|
|
2097
2097
|
return { clearReset: () => {
|
|
2098
2098
|
e2 = false;
|
|
@@ -2100,63 +2100,63 @@ function Br() {
|
|
|
2100
2100
|
e2 = true;
|
|
2101
2101
|
}, isReset: () => e2 };
|
|
2102
2102
|
}
|
|
2103
|
-
var
|
|
2104
|
-
var
|
|
2105
|
-
var
|
|
2106
|
-
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ?
|
|
2103
|
+
var Hr = e.createContext(Vr());
|
|
2104
|
+
var Ur = () => e.useContext(Hr);
|
|
2105
|
+
var Wr = (e2, t2, n2) => {
|
|
2106
|
+
let r2 = n2?.state.error && typeof e2.throwOnError == `function` ? ir(e2.throwOnError, [n2.state.error, n2]) : e2.throwOnError;
|
|
2107
2107
|
(e2.suspense || e2.experimental_prefetchInRender || r2) && (t2.isReset() || (e2.retryOnMount = false));
|
|
2108
2108
|
};
|
|
2109
|
-
var
|
|
2109
|
+
var Gr = (t2) => {
|
|
2110
2110
|
e.useEffect(() => {
|
|
2111
2111
|
t2.clearReset();
|
|
2112
2112
|
}, [t2]);
|
|
2113
2113
|
};
|
|
2114
|
-
var
|
|
2115
|
-
var
|
|
2114
|
+
var Kr = ({ 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]));
|
|
2115
|
+
var qr = (e2) => {
|
|
2116
2116
|
if (e2.suspense) {
|
|
2117
2117
|
let t2 = 1e3, n2 = (e3) => e3 === `static` ? e3 : Math.max(e3 ?? t2, t2), r2 = e2.staleTime;
|
|
2118
2118
|
e2.staleTime = typeof r2 == `function` ? (...e3) => n2(r2(...e3)) : n2(r2), typeof e2.gcTime == `number` && (e2.gcTime = Math.max(e2.gcTime, t2));
|
|
2119
2119
|
}
|
|
2120
2120
|
};
|
|
2121
|
-
var
|
|
2122
|
-
var
|
|
2123
|
-
var
|
|
2121
|
+
var Jr = (e2, t2) => e2.isLoading && e2.isFetching && !t2;
|
|
2122
|
+
var Yr = (e2, t2) => e2?.suspense && t2.isPending;
|
|
2123
|
+
var Xr = (e2, t2, n2) => t2.fetchOptimistic(e2).catch(() => {
|
|
2124
2124
|
n2.clearReset();
|
|
2125
2125
|
});
|
|
2126
|
-
function
|
|
2127
|
-
let i2 =
|
|
2126
|
+
function Zr(t2, n2, r2) {
|
|
2127
|
+
let i2 = Br(), a2 = Ur(), o2 = Lr(r2), s2 = o2.defaultQueryOptions(t2);
|
|
2128
2128
|
o2.getDefaultOptions().queries?._experimental_beforeQuery?.(s2);
|
|
2129
2129
|
let c2 = o2.getQueryCache().get(s2.queryHash), l2 = t2.subscribed !== false;
|
|
2130
|
-
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0,
|
|
2130
|
+
s2._optimisticResults = i2 ? `isRestoring` : l2 ? `optimistic` : void 0, qr(s2), Wr(s2, a2, c2), Gr(a2);
|
|
2131
2131
|
let u2 = !o2.getQueryCache().get(s2.queryHash), [d2] = e.useState(() => new n2(o2, s2)), f2 = d2.getOptimisticResult(s2), p2 = !i2 && l2;
|
|
2132
2132
|
if (e.useSyncExternalStore(e.useCallback((e2) => {
|
|
2133
|
-
let t3 = p2 ? d2.subscribe(
|
|
2133
|
+
let t3 = p2 ? d2.subscribe(B.batchCalls(e2)) : L;
|
|
2134
2134
|
return d2.updateResult(), t3;
|
|
2135
2135
|
}, [d2, p2]), () => d2.getCurrentResult(), () => d2.getCurrentResult()), e.useEffect(() => {
|
|
2136
2136
|
d2.setOptions(s2);
|
|
2137
|
-
}, [s2, d2]),
|
|
2138
|
-
if (
|
|
2139
|
-
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !
|
|
2137
|
+
}, [s2, d2]), Yr(s2, f2)) throw Xr(s2, d2, a2);
|
|
2138
|
+
if (Kr({ result: f2, errorResetBoundary: a2, throwOnError: s2.throwOnError, query: c2, suspense: s2.suspense })) throw f2.error;
|
|
2139
|
+
return o2.getDefaultOptions().queries?._experimental_afterQuery?.(s2, f2), s2.experimental_prefetchInRender && !or.isServer() && Jr(f2, i2) && (u2 ? Xr(s2, d2, a2) : c2?.promise)?.catch(L).finally(() => {
|
|
2140
2140
|
d2.updateResult();
|
|
2141
2141
|
}), s2.notifyOnChangeProps ? f2 : d2.trackResult(f2);
|
|
2142
2142
|
}
|
|
2143
|
-
function
|
|
2144
|
-
return
|
|
2143
|
+
function Qr(e2, t2) {
|
|
2144
|
+
return Zr(e2, Cr, t2);
|
|
2145
2145
|
}
|
|
2146
|
-
function
|
|
2146
|
+
function V(e2) {
|
|
2147
2147
|
return e2;
|
|
2148
2148
|
}
|
|
2149
|
-
var
|
|
2150
|
-
var
|
|
2151
|
-
var
|
|
2152
|
-
`${
|
|
2153
|
-
var
|
|
2149
|
+
var $r = V(`@wix/site-service-url`);
|
|
2150
|
+
var ei = `215238eb-22a5-4c36-9e7b-e7c08025e04e`;
|
|
2151
|
+
var ti = `1380b703-ce81-ff05-f115-39571d94dfcd`;
|
|
2152
|
+
`${ei}`, `${ei}`;
|
|
2153
|
+
var H = function(e2) {
|
|
2154
2154
|
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;
|
|
2155
2155
|
}({});
|
|
2156
|
-
var
|
|
2157
|
-
var
|
|
2158
|
-
let e2 = (0, import_services_manager_react.useService)(
|
|
2159
|
-
let r2 = e2.appSectionRelativeUrl(
|
|
2156
|
+
var ni = { ecom_side_cart: `52b042d1-9e32-450e-88b9-b1abee4242f8` };
|
|
2157
|
+
var ri = () => {
|
|
2158
|
+
let e2 = (0, import_services_manager_react.useService)($r), n2 = (0, import_react.useCallback)((t2, n3) => {
|
|
2159
|
+
let r2 = e2.appSectionRelativeUrl(ei, t2, true);
|
|
2160
2160
|
if (r2) return `./${r2.replace(/^\//, ``).replace(/\/$/, ``)}/${encodeURIComponent(n3)}`;
|
|
2161
2161
|
}, [e2]);
|
|
2162
2162
|
return { getPageRelativeUrl: n2, getPageAbsoluteUrl: (0, import_react.useCallback)((t2, r2) => {
|
|
@@ -2164,18 +2164,18 @@ var ni = () => {
|
|
|
2164
2164
|
if (i2) return new URL(i2, `${e2.siteUrl.replace(/\/$/, ``)}/`).href;
|
|
2165
2165
|
}, [n2, e2]) };
|
|
2166
2166
|
};
|
|
2167
|
-
var
|
|
2167
|
+
var ii = g((e2, t2) => {
|
|
2168
2168
|
t2.exports = typeof window == `object` && window && window.Object === Object && window;
|
|
2169
2169
|
});
|
|
2170
|
-
var
|
|
2171
|
-
var n2 =
|
|
2170
|
+
var U = g((e2, t2) => {
|
|
2171
|
+
var n2 = ii(), r2 = typeof self == `object` && self && self.Object === Object && self;
|
|
2172
2172
|
t2.exports = n2 || r2 || Function(`return this`)();
|
|
2173
2173
|
});
|
|
2174
|
-
var ii = g((e2, t2) => {
|
|
2175
|
-
t2.exports = W().Symbol;
|
|
2176
|
-
});
|
|
2177
2174
|
var ai = g((e2, t2) => {
|
|
2178
|
-
|
|
2175
|
+
t2.exports = U().Symbol;
|
|
2176
|
+
});
|
|
2177
|
+
var oi = g((e2, t2) => {
|
|
2178
|
+
var n2 = ai(), r2 = Object.prototype, i2 = r2.hasOwnProperty, a2 = r2.toString, o2 = n2 ? n2.toStringTag : void 0;
|
|
2179
2179
|
function s2(e3) {
|
|
2180
2180
|
var t3 = i2.call(e3, o2), n3 = e3[o2];
|
|
2181
2181
|
try {
|
|
@@ -2188,35 +2188,35 @@ var ai = g((e2, t2) => {
|
|
|
2188
2188
|
}
|
|
2189
2189
|
t2.exports = s2;
|
|
2190
2190
|
});
|
|
2191
|
-
var
|
|
2191
|
+
var si = g((e2, t2) => {
|
|
2192
2192
|
var n2 = Object.prototype.toString;
|
|
2193
2193
|
function r2(e3) {
|
|
2194
2194
|
return n2.call(e3);
|
|
2195
2195
|
}
|
|
2196
2196
|
t2.exports = r2;
|
|
2197
2197
|
});
|
|
2198
|
-
var
|
|
2199
|
-
var n2 =
|
|
2198
|
+
var ci = g((e2, t2) => {
|
|
2199
|
+
var n2 = ai(), r2 = oi(), i2 = si(), a2 = `[object Null]`, o2 = `[object Undefined]`, s2 = n2 ? n2.toStringTag : void 0;
|
|
2200
2200
|
function c2(e3) {
|
|
2201
2201
|
return e3 == null ? e3 === void 0 ? o2 : a2 : s2 && s2 in Object(e3) ? r2(e3) : i2(e3);
|
|
2202
2202
|
}
|
|
2203
2203
|
t2.exports = c2;
|
|
2204
2204
|
});
|
|
2205
|
-
var
|
|
2205
|
+
var li = g((e2, t2) => {
|
|
2206
2206
|
function n2(e3) {
|
|
2207
2207
|
return typeof e3 == `object` && !!e3;
|
|
2208
2208
|
}
|
|
2209
2209
|
t2.exports = n2;
|
|
2210
2210
|
});
|
|
2211
|
-
var
|
|
2212
|
-
var n2 =
|
|
2211
|
+
var ui = g((e2, t2) => {
|
|
2212
|
+
var n2 = ci(), r2 = li(), i2 = `[object Symbol]`;
|
|
2213
2213
|
function a2(e3) {
|
|
2214
2214
|
return typeof e3 == `symbol` || r2(e3) && n2(e3) == i2;
|
|
2215
2215
|
}
|
|
2216
2216
|
t2.exports = a2;
|
|
2217
2217
|
});
|
|
2218
|
-
var
|
|
2219
|
-
var n2 =
|
|
2218
|
+
var di = g((e2, t2) => {
|
|
2219
|
+
var n2 = ui();
|
|
2220
2220
|
function r2(e3, t3, r3) {
|
|
2221
2221
|
for (var i2 = -1, a2 = e3.length; ++i2 < a2; ) {
|
|
2222
2222
|
var o2 = e3[i2], s2 = t3(o2);
|
|
@@ -2226,78 +2226,78 @@ var ui = g((e2, t2) => {
|
|
|
2226
2226
|
}
|
|
2227
2227
|
t2.exports = r2;
|
|
2228
2228
|
});
|
|
2229
|
-
var
|
|
2229
|
+
var fi = g((e2, t2) => {
|
|
2230
2230
|
function n2(e3, t3) {
|
|
2231
2231
|
return e3 > t3;
|
|
2232
2232
|
}
|
|
2233
2233
|
t2.exports = n2;
|
|
2234
2234
|
});
|
|
2235
|
-
var
|
|
2235
|
+
var pi = g((e2, t2) => {
|
|
2236
2236
|
function n2(e3) {
|
|
2237
2237
|
return e3;
|
|
2238
2238
|
}
|
|
2239
2239
|
t2.exports = n2;
|
|
2240
2240
|
});
|
|
2241
|
-
var
|
|
2242
|
-
var n2 =
|
|
2241
|
+
var mi = g((e2, t2) => {
|
|
2242
|
+
var n2 = di(), r2 = fi(), i2 = pi();
|
|
2243
2243
|
function a2(e3) {
|
|
2244
2244
|
return e3 && e3.length ? n2(e3, i2, r2) : void 0;
|
|
2245
2245
|
}
|
|
2246
2246
|
t2.exports = a2;
|
|
2247
2247
|
});
|
|
2248
|
-
var
|
|
2248
|
+
var hi = g((e2, t2) => {
|
|
2249
2249
|
function n2() {
|
|
2250
2250
|
this.__data__ = [], this.size = 0;
|
|
2251
2251
|
}
|
|
2252
2252
|
t2.exports = n2;
|
|
2253
2253
|
});
|
|
2254
|
-
var
|
|
2254
|
+
var gi = g((e2, t2) => {
|
|
2255
2255
|
function n2(e3, t3) {
|
|
2256
2256
|
return e3 === t3 || e3 !== e3 && t3 !== t3;
|
|
2257
2257
|
}
|
|
2258
2258
|
t2.exports = n2;
|
|
2259
2259
|
});
|
|
2260
|
-
var
|
|
2261
|
-
var n2 =
|
|
2260
|
+
var _i = g((e2, t2) => {
|
|
2261
|
+
var n2 = gi();
|
|
2262
2262
|
function r2(e3, t3) {
|
|
2263
2263
|
for (var r3 = e3.length; r3--; ) if (n2(e3[r3][0], t3)) return r3;
|
|
2264
2264
|
return -1;
|
|
2265
2265
|
}
|
|
2266
2266
|
t2.exports = r2;
|
|
2267
2267
|
});
|
|
2268
|
-
var
|
|
2269
|
-
var n2 =
|
|
2268
|
+
var vi = g((e2, t2) => {
|
|
2269
|
+
var n2 = _i(), r2 = Array.prototype.splice;
|
|
2270
2270
|
function i2(e3) {
|
|
2271
2271
|
var t3 = this.__data__, i3 = n2(t3, e3);
|
|
2272
2272
|
return i3 < 0 ? false : (i3 == t3.length - 1 ? t3.pop() : r2.call(t3, i3, 1), --this.size, true);
|
|
2273
2273
|
}
|
|
2274
2274
|
t2.exports = i2;
|
|
2275
2275
|
});
|
|
2276
|
-
var
|
|
2277
|
-
var n2 =
|
|
2276
|
+
var yi = g((e2, t2) => {
|
|
2277
|
+
var n2 = _i();
|
|
2278
2278
|
function r2(e3) {
|
|
2279
2279
|
var t3 = this.__data__, r3 = n2(t3, e3);
|
|
2280
2280
|
return r3 < 0 ? void 0 : t3[r3][1];
|
|
2281
2281
|
}
|
|
2282
2282
|
t2.exports = r2;
|
|
2283
2283
|
});
|
|
2284
|
-
var
|
|
2285
|
-
var n2 =
|
|
2284
|
+
var bi = g((e2, t2) => {
|
|
2285
|
+
var n2 = _i();
|
|
2286
2286
|
function r2(e3) {
|
|
2287
2287
|
return n2(this.__data__, e3) > -1;
|
|
2288
2288
|
}
|
|
2289
2289
|
t2.exports = r2;
|
|
2290
2290
|
});
|
|
2291
|
-
var
|
|
2292
|
-
var n2 =
|
|
2291
|
+
var xi = g((e2, t2) => {
|
|
2292
|
+
var n2 = _i();
|
|
2293
2293
|
function r2(e3, t3) {
|
|
2294
2294
|
var r3 = this.__data__, i2 = n2(r3, e3);
|
|
2295
2295
|
return i2 < 0 ? (++this.size, r3.push([e3, t3])) : r3[i2][1] = t3, this;
|
|
2296
2296
|
}
|
|
2297
2297
|
t2.exports = r2;
|
|
2298
2298
|
});
|
|
2299
|
-
var
|
|
2300
|
-
var n2 =
|
|
2299
|
+
var Si = g((e2, t2) => {
|
|
2300
|
+
var n2 = hi(), r2 = vi(), i2 = yi(), a2 = bi(), o2 = xi();
|
|
2301
2301
|
function s2(e3) {
|
|
2302
2302
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2303
2303
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2307,41 +2307,41 @@ var xi = g((e2, t2) => {
|
|
|
2307
2307
|
}
|
|
2308
2308
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2309
2309
|
});
|
|
2310
|
-
var
|
|
2311
|
-
var n2 =
|
|
2310
|
+
var Ci = g((e2, t2) => {
|
|
2311
|
+
var n2 = Si();
|
|
2312
2312
|
function r2() {
|
|
2313
2313
|
this.__data__ = new n2(), this.size = 0;
|
|
2314
2314
|
}
|
|
2315
2315
|
t2.exports = r2;
|
|
2316
2316
|
});
|
|
2317
|
-
var
|
|
2317
|
+
var wi = g((e2, t2) => {
|
|
2318
2318
|
function n2(e3) {
|
|
2319
2319
|
var t3 = this.__data__, n3 = t3.delete(e3);
|
|
2320
2320
|
return this.size = t3.size, n3;
|
|
2321
2321
|
}
|
|
2322
2322
|
t2.exports = n2;
|
|
2323
2323
|
});
|
|
2324
|
-
var
|
|
2324
|
+
var Ti = g((e2, t2) => {
|
|
2325
2325
|
function n2(e3) {
|
|
2326
2326
|
return this.__data__.get(e3);
|
|
2327
2327
|
}
|
|
2328
2328
|
t2.exports = n2;
|
|
2329
2329
|
});
|
|
2330
|
-
var
|
|
2330
|
+
var Ei = g((e2, t2) => {
|
|
2331
2331
|
function n2(e3) {
|
|
2332
2332
|
return this.__data__.has(e3);
|
|
2333
2333
|
}
|
|
2334
2334
|
t2.exports = n2;
|
|
2335
2335
|
});
|
|
2336
|
-
var
|
|
2336
|
+
var Di = g((e2, t2) => {
|
|
2337
2337
|
function n2(e3) {
|
|
2338
2338
|
var t3 = typeof e3;
|
|
2339
2339
|
return e3 != null && (t3 == `object` || t3 == `function`);
|
|
2340
2340
|
}
|
|
2341
2341
|
t2.exports = n2;
|
|
2342
2342
|
});
|
|
2343
|
-
var
|
|
2344
|
-
var n2 =
|
|
2343
|
+
var Oi = g((e2, t2) => {
|
|
2344
|
+
var n2 = ci(), r2 = Di(), i2 = `[object AsyncFunction]`, a2 = `[object Function]`, o2 = `[object GeneratorFunction]`, s2 = `[object Proxy]`;
|
|
2345
2345
|
function c2(e3) {
|
|
2346
2346
|
if (!r2(e3)) return false;
|
|
2347
2347
|
var t3 = n2(e3);
|
|
@@ -2349,11 +2349,11 @@ var Di = g((e2, t2) => {
|
|
|
2349
2349
|
}
|
|
2350
2350
|
t2.exports = c2;
|
|
2351
2351
|
});
|
|
2352
|
-
var Oi = g((e2, t2) => {
|
|
2353
|
-
t2.exports = W()[`__core-js_shared__`];
|
|
2354
|
-
});
|
|
2355
2352
|
var ki = g((e2, t2) => {
|
|
2356
|
-
|
|
2353
|
+
t2.exports = U()[`__core-js_shared__`];
|
|
2354
|
+
});
|
|
2355
|
+
var Ai = g((e2, t2) => {
|
|
2356
|
+
var n2 = ki(), r2 = function() {
|
|
2357
2357
|
var e3 = /[^.]+$/.exec(n2 && n2.keys && n2.keys.IE_PROTO || ``);
|
|
2358
2358
|
return e3 ? `Symbol(src)_1.` + e3 : ``;
|
|
2359
2359
|
}();
|
|
@@ -2362,7 +2362,7 @@ var ki = g((e2, t2) => {
|
|
|
2362
2362
|
}
|
|
2363
2363
|
t2.exports = i2;
|
|
2364
2364
|
});
|
|
2365
|
-
var
|
|
2365
|
+
var ji = g((e2, t2) => {
|
|
2366
2366
|
var n2 = Function.prototype.toString;
|
|
2367
2367
|
function r2(e3) {
|
|
2368
2368
|
if (e3 != null) {
|
|
@@ -2379,49 +2379,49 @@ var Ai = g((e2, t2) => {
|
|
|
2379
2379
|
}
|
|
2380
2380
|
t2.exports = r2;
|
|
2381
2381
|
});
|
|
2382
|
-
var
|
|
2383
|
-
var n2 =
|
|
2382
|
+
var Mi = g((e2, t2) => {
|
|
2383
|
+
var n2 = Oi(), r2 = Ai(), i2 = Di(), a2 = ji(), o2 = /[\\^$.*+?()[\]{}|]/g, s2 = /^\[object .+?Constructor\]$/, c2 = Function.prototype, l2 = Object.prototype, u2 = c2.toString, d2 = l2.hasOwnProperty, f2 = RegExp(`^` + u2.call(d2).replace(o2, `\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, `$1.*?`) + `$`);
|
|
2384
2384
|
function p2(e3) {
|
|
2385
2385
|
return !i2(e3) || r2(e3) ? false : (n2(e3) ? f2 : s2).test(a2(e3));
|
|
2386
2386
|
}
|
|
2387
2387
|
t2.exports = p2;
|
|
2388
2388
|
});
|
|
2389
|
-
var
|
|
2389
|
+
var Ni = g((e2, t2) => {
|
|
2390
2390
|
function n2(e3, t3) {
|
|
2391
2391
|
return e3?.[t3];
|
|
2392
2392
|
}
|
|
2393
2393
|
t2.exports = n2;
|
|
2394
2394
|
});
|
|
2395
|
-
var
|
|
2396
|
-
var n2 =
|
|
2395
|
+
var W = g((e2, t2) => {
|
|
2396
|
+
var n2 = Mi(), r2 = Ni();
|
|
2397
2397
|
function i2(e3, t3) {
|
|
2398
2398
|
var i3 = r2(e3, t3);
|
|
2399
2399
|
return n2(i3) ? i3 : void 0;
|
|
2400
2400
|
}
|
|
2401
2401
|
t2.exports = i2;
|
|
2402
2402
|
});
|
|
2403
|
-
var Ni = g((e2, t2) => {
|
|
2404
|
-
t2.exports = G()(W(), `Map`);
|
|
2405
|
-
});
|
|
2406
2403
|
var Pi = g((e2, t2) => {
|
|
2407
|
-
t2.exports =
|
|
2404
|
+
t2.exports = W()(U(), `Map`);
|
|
2408
2405
|
});
|
|
2409
2406
|
var Fi = g((e2, t2) => {
|
|
2410
|
-
|
|
2407
|
+
t2.exports = W()(Object, `create`);
|
|
2408
|
+
});
|
|
2409
|
+
var Ii = g((e2, t2) => {
|
|
2410
|
+
var n2 = Fi();
|
|
2411
2411
|
function r2() {
|
|
2412
2412
|
this.__data__ = n2 ? n2(null) : {}, this.size = 0;
|
|
2413
2413
|
}
|
|
2414
2414
|
t2.exports = r2;
|
|
2415
2415
|
});
|
|
2416
|
-
var
|
|
2416
|
+
var Li = g((e2, t2) => {
|
|
2417
2417
|
function n2(e3) {
|
|
2418
2418
|
var t3 = this.has(e3) && delete this.__data__[e3];
|
|
2419
2419
|
return this.size -= +!!t3, t3;
|
|
2420
2420
|
}
|
|
2421
2421
|
t2.exports = n2;
|
|
2422
2422
|
});
|
|
2423
|
-
var
|
|
2424
|
-
var n2 =
|
|
2423
|
+
var Ri = g((e2, t2) => {
|
|
2424
|
+
var n2 = Fi(), r2 = `__lodash_hash_undefined__`, i2 = Object.prototype.hasOwnProperty;
|
|
2425
2425
|
function a2(e3) {
|
|
2426
2426
|
var t3 = this.__data__;
|
|
2427
2427
|
if (n2) {
|
|
@@ -2432,24 +2432,24 @@ var Li = g((e2, t2) => {
|
|
|
2432
2432
|
}
|
|
2433
2433
|
t2.exports = a2;
|
|
2434
2434
|
});
|
|
2435
|
-
var
|
|
2436
|
-
var n2 =
|
|
2435
|
+
var zi = g((e2, t2) => {
|
|
2436
|
+
var n2 = Fi(), r2 = Object.prototype.hasOwnProperty;
|
|
2437
2437
|
function i2(e3) {
|
|
2438
2438
|
var t3 = this.__data__;
|
|
2439
2439
|
return n2 ? t3[e3] !== void 0 : r2.call(t3, e3);
|
|
2440
2440
|
}
|
|
2441
2441
|
t2.exports = i2;
|
|
2442
2442
|
});
|
|
2443
|
-
var
|
|
2444
|
-
var n2 =
|
|
2443
|
+
var Bi = g((e2, t2) => {
|
|
2444
|
+
var n2 = Fi(), r2 = `__lodash_hash_undefined__`;
|
|
2445
2445
|
function i2(e3, t3) {
|
|
2446
2446
|
var i3 = this.__data__;
|
|
2447
2447
|
return this.size += +!this.has(e3), i3[e3] = n2 && t3 === void 0 ? r2 : t3, this;
|
|
2448
2448
|
}
|
|
2449
2449
|
t2.exports = i2;
|
|
2450
2450
|
});
|
|
2451
|
-
var
|
|
2452
|
-
var n2 =
|
|
2451
|
+
var Vi = g((e2, t2) => {
|
|
2452
|
+
var n2 = Ii(), r2 = Li(), i2 = Ri(), a2 = zi(), o2 = Bi();
|
|
2453
2453
|
function s2(e3) {
|
|
2454
2454
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2455
2455
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2459,60 +2459,60 @@ var Bi = g((e2, t2) => {
|
|
|
2459
2459
|
}
|
|
2460
2460
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2461
2461
|
});
|
|
2462
|
-
var
|
|
2463
|
-
var n2 =
|
|
2462
|
+
var Hi = g((e2, t2) => {
|
|
2463
|
+
var n2 = Vi(), r2 = Si(), i2 = Pi();
|
|
2464
2464
|
function a2() {
|
|
2465
2465
|
this.size = 0, this.__data__ = { hash: new n2(), map: new (i2 || r2)(), string: new n2() };
|
|
2466
2466
|
}
|
|
2467
2467
|
t2.exports = a2;
|
|
2468
2468
|
});
|
|
2469
|
-
var
|
|
2469
|
+
var Ui = g((e2, t2) => {
|
|
2470
2470
|
function n2(e3) {
|
|
2471
2471
|
var t3 = typeof e3;
|
|
2472
2472
|
return t3 == `string` || t3 == `number` || t3 == `symbol` || t3 == `boolean` ? e3 !== `__proto__` : e3 === null;
|
|
2473
2473
|
}
|
|
2474
2474
|
t2.exports = n2;
|
|
2475
2475
|
});
|
|
2476
|
-
var
|
|
2477
|
-
var n2 =
|
|
2476
|
+
var Wi = g((e2, t2) => {
|
|
2477
|
+
var n2 = Ui();
|
|
2478
2478
|
function r2(e3, t3) {
|
|
2479
2479
|
var r3 = e3.__data__;
|
|
2480
2480
|
return n2(t3) ? r3[typeof t3 == `string` ? `string` : `hash`] : r3.map;
|
|
2481
2481
|
}
|
|
2482
2482
|
t2.exports = r2;
|
|
2483
2483
|
});
|
|
2484
|
-
var
|
|
2485
|
-
var n2 =
|
|
2484
|
+
var Gi = g((e2, t2) => {
|
|
2485
|
+
var n2 = Wi();
|
|
2486
2486
|
function r2(e3) {
|
|
2487
2487
|
var t3 = n2(this, e3).delete(e3);
|
|
2488
2488
|
return this.size -= +!!t3, t3;
|
|
2489
2489
|
}
|
|
2490
2490
|
t2.exports = r2;
|
|
2491
2491
|
});
|
|
2492
|
-
var
|
|
2493
|
-
var n2 =
|
|
2492
|
+
var Ki = g((e2, t2) => {
|
|
2493
|
+
var n2 = Wi();
|
|
2494
2494
|
function r2(e3) {
|
|
2495
2495
|
return n2(this, e3).get(e3);
|
|
2496
2496
|
}
|
|
2497
2497
|
t2.exports = r2;
|
|
2498
2498
|
});
|
|
2499
|
-
var
|
|
2500
|
-
var n2 =
|
|
2499
|
+
var qi = g((e2, t2) => {
|
|
2500
|
+
var n2 = Wi();
|
|
2501
2501
|
function r2(e3) {
|
|
2502
2502
|
return n2(this, e3).has(e3);
|
|
2503
2503
|
}
|
|
2504
2504
|
t2.exports = r2;
|
|
2505
2505
|
});
|
|
2506
|
-
var
|
|
2507
|
-
var n2 =
|
|
2506
|
+
var Ji = g((e2, t2) => {
|
|
2507
|
+
var n2 = Wi();
|
|
2508
2508
|
function r2(e3, t3) {
|
|
2509
2509
|
var r3 = n2(this, e3), i2 = r3.size;
|
|
2510
2510
|
return r3.set(e3, t3), this.size += r3.size == i2 ? 0 : 1, this;
|
|
2511
2511
|
}
|
|
2512
2512
|
t2.exports = r2;
|
|
2513
2513
|
});
|
|
2514
|
-
var
|
|
2515
|
-
var n2 =
|
|
2514
|
+
var Yi = g((e2, t2) => {
|
|
2515
|
+
var n2 = Hi(), r2 = Gi(), i2 = Ki(), a2 = qi(), o2 = Ji();
|
|
2516
2516
|
function s2(e3) {
|
|
2517
2517
|
var t3 = -1, n3 = e3 == null ? 0 : e3.length;
|
|
2518
2518
|
for (this.clear(); ++t3 < n3; ) {
|
|
@@ -2522,8 +2522,8 @@ var Ji = g((e2, t2) => {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
s2.prototype.clear = n2, s2.prototype.delete = r2, s2.prototype.get = i2, s2.prototype.has = a2, s2.prototype.set = o2, t2.exports = s2;
|
|
2524
2524
|
});
|
|
2525
|
-
var
|
|
2526
|
-
var n2 =
|
|
2525
|
+
var Xi = g((e2, t2) => {
|
|
2526
|
+
var n2 = Si(), r2 = Pi(), i2 = Yi(), a2 = 200;
|
|
2527
2527
|
function o2(e3, t3) {
|
|
2528
2528
|
var o3 = this.__data__;
|
|
2529
2529
|
if (o3 instanceof n2) {
|
|
@@ -2535,49 +2535,49 @@ var Yi = g((e2, t2) => {
|
|
|
2535
2535
|
}
|
|
2536
2536
|
t2.exports = o2;
|
|
2537
2537
|
});
|
|
2538
|
-
var
|
|
2539
|
-
var n2 =
|
|
2538
|
+
var Zi = g((e2, t2) => {
|
|
2539
|
+
var n2 = Si(), r2 = Ci(), i2 = wi(), a2 = Ti(), o2 = Ei(), s2 = Xi();
|
|
2540
2540
|
function c2(e3) {
|
|
2541
2541
|
var t3 = this.__data__ = new n2(e3);
|
|
2542
2542
|
this.size = t3.size;
|
|
2543
2543
|
}
|
|
2544
2544
|
c2.prototype.clear = r2, c2.prototype.delete = i2, c2.prototype.get = a2, c2.prototype.has = o2, c2.prototype.set = s2, t2.exports = c2;
|
|
2545
2545
|
});
|
|
2546
|
-
var
|
|
2546
|
+
var Qi = g((e2, t2) => {
|
|
2547
2547
|
function n2(e3) {
|
|
2548
2548
|
return this.__data__.set(e3, `__lodash_hash_undefined__`), this;
|
|
2549
2549
|
}
|
|
2550
2550
|
t2.exports = n2;
|
|
2551
2551
|
});
|
|
2552
|
-
var
|
|
2552
|
+
var $i = g((e2, t2) => {
|
|
2553
2553
|
function n2(e3) {
|
|
2554
2554
|
return this.__data__.has(e3);
|
|
2555
2555
|
}
|
|
2556
2556
|
t2.exports = n2;
|
|
2557
2557
|
});
|
|
2558
|
-
var
|
|
2559
|
-
var n2 =
|
|
2558
|
+
var ea = g((e2, t2) => {
|
|
2559
|
+
var n2 = Yi(), r2 = Qi(), i2 = $i();
|
|
2560
2560
|
function a2(e3) {
|
|
2561
2561
|
var t3 = -1, r3 = e3 == null ? 0 : e3.length;
|
|
2562
2562
|
for (this.__data__ = new n2(); ++t3 < r3; ) this.add(e3[t3]);
|
|
2563
2563
|
}
|
|
2564
2564
|
a2.prototype.add = a2.prototype.push = r2, a2.prototype.has = i2, t2.exports = a2;
|
|
2565
2565
|
});
|
|
2566
|
-
var
|
|
2566
|
+
var ta = g((e2, t2) => {
|
|
2567
2567
|
function n2(e3, t3) {
|
|
2568
2568
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length; ++n3 < r2; ) if (t3(e3[n3], n3, e3)) return true;
|
|
2569
2569
|
return false;
|
|
2570
2570
|
}
|
|
2571
2571
|
t2.exports = n2;
|
|
2572
2572
|
});
|
|
2573
|
-
var
|
|
2573
|
+
var na = g((e2, t2) => {
|
|
2574
2574
|
function n2(e3, t3) {
|
|
2575
2575
|
return e3.has(t3);
|
|
2576
2576
|
}
|
|
2577
2577
|
t2.exports = n2;
|
|
2578
2578
|
});
|
|
2579
|
-
var
|
|
2580
|
-
var n2 =
|
|
2579
|
+
var ra = g((e2, t2) => {
|
|
2580
|
+
var n2 = ea(), r2 = ta(), i2 = na(), a2 = 1, o2 = 2;
|
|
2581
2581
|
function s2(e3, t3, s3, c2, l2, u2) {
|
|
2582
2582
|
var d2 = s3 & a2, f2 = e3.length, p2 = t3.length;
|
|
2583
2583
|
if (f2 != p2 && !(d2 && p2 > f2)) return false;
|
|
@@ -2608,10 +2608,10 @@ var na = g((e2, t2) => {
|
|
|
2608
2608
|
}
|
|
2609
2609
|
t2.exports = s2;
|
|
2610
2610
|
});
|
|
2611
|
-
var ra = g((e2, t2) => {
|
|
2612
|
-
t2.exports = W().Uint8Array;
|
|
2613
|
-
});
|
|
2614
2611
|
var ia = g((e2, t2) => {
|
|
2612
|
+
t2.exports = U().Uint8Array;
|
|
2613
|
+
});
|
|
2614
|
+
var aa = g((e2, t2) => {
|
|
2615
2615
|
function n2(e3) {
|
|
2616
2616
|
var t3 = -1, n3 = Array(e3.size);
|
|
2617
2617
|
return e3.forEach(function(e4, r2) {
|
|
@@ -2620,7 +2620,7 @@ var ia = g((e2, t2) => {
|
|
|
2620
2620
|
}
|
|
2621
2621
|
t2.exports = n2;
|
|
2622
2622
|
});
|
|
2623
|
-
var
|
|
2623
|
+
var oa = g((e2, t2) => {
|
|
2624
2624
|
function n2(e3) {
|
|
2625
2625
|
var t3 = -1, n3 = Array(e3.size);
|
|
2626
2626
|
return e3.forEach(function(e4) {
|
|
@@ -2629,8 +2629,8 @@ var aa = g((e2, t2) => {
|
|
|
2629
2629
|
}
|
|
2630
2630
|
t2.exports = n2;
|
|
2631
2631
|
});
|
|
2632
|
-
var
|
|
2633
|
-
var n2 =
|
|
2632
|
+
var sa = g((e2, t2) => {
|
|
2633
|
+
var n2 = ai(), r2 = ia(), i2 = gi(), a2 = ra(), o2 = aa(), s2 = oa(), c2 = 1, l2 = 2, u2 = `[object Boolean]`, d2 = `[object Date]`, f2 = `[object Error]`, p2 = `[object Map]`, m2 = `[object Number]`, h2 = `[object RegExp]`, g2 = `[object Set]`, _2 = `[object String]`, v2 = `[object Symbol]`, y2 = `[object ArrayBuffer]`, b2 = `[object DataView]`, x2 = n2 ? n2.prototype : void 0, S2 = x2 ? x2.valueOf : void 0;
|
|
2634
2634
|
function C2(e3, t3, n3, x3, C3, w2, T2) {
|
|
2635
2635
|
switch (n3) {
|
|
2636
2636
|
case b2:
|
|
@@ -2664,25 +2664,25 @@ var oa = g((e2, t2) => {
|
|
|
2664
2664
|
}
|
|
2665
2665
|
t2.exports = C2;
|
|
2666
2666
|
});
|
|
2667
|
-
var
|
|
2667
|
+
var ca = g((e2, t2) => {
|
|
2668
2668
|
function n2(e3, t3) {
|
|
2669
2669
|
for (var n3 = -1, r2 = t3.length, i2 = e3.length; ++n3 < r2; ) e3[i2 + n3] = t3[n3];
|
|
2670
2670
|
return e3;
|
|
2671
2671
|
}
|
|
2672
2672
|
t2.exports = n2;
|
|
2673
2673
|
});
|
|
2674
|
-
var
|
|
2674
|
+
var G = g((e2, t2) => {
|
|
2675
2675
|
t2.exports = Array.isArray;
|
|
2676
2676
|
});
|
|
2677
|
-
var
|
|
2678
|
-
var n2 =
|
|
2677
|
+
var la = g((e2, t2) => {
|
|
2678
|
+
var n2 = ca(), r2 = G();
|
|
2679
2679
|
function i2(e3, t3, i3) {
|
|
2680
2680
|
var a2 = t3(e3);
|
|
2681
2681
|
return r2(e3) ? a2 : n2(a2, i3(e3));
|
|
2682
2682
|
}
|
|
2683
2683
|
t2.exports = i2;
|
|
2684
2684
|
});
|
|
2685
|
-
var
|
|
2685
|
+
var ua = g((e2, t2) => {
|
|
2686
2686
|
function n2(e3, t3) {
|
|
2687
2687
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length, i2 = 0, a2 = []; ++n3 < r2; ) {
|
|
2688
2688
|
var o2 = e3[n3];
|
|
@@ -2692,53 +2692,53 @@ var la = g((e2, t2) => {
|
|
|
2692
2692
|
}
|
|
2693
2693
|
t2.exports = n2;
|
|
2694
2694
|
});
|
|
2695
|
-
var
|
|
2695
|
+
var da = g((e2, t2) => {
|
|
2696
2696
|
function n2() {
|
|
2697
2697
|
return [];
|
|
2698
2698
|
}
|
|
2699
2699
|
t2.exports = n2;
|
|
2700
2700
|
});
|
|
2701
|
-
var
|
|
2702
|
-
var n2 =
|
|
2701
|
+
var fa = g((e2, t2) => {
|
|
2702
|
+
var n2 = ua(), r2 = da(), i2 = Object.prototype.propertyIsEnumerable, a2 = Object.getOwnPropertySymbols;
|
|
2703
2703
|
t2.exports = a2 ? function(e3) {
|
|
2704
2704
|
return e3 == null ? [] : (e3 = Object(e3), n2(a2(e3), function(t3) {
|
|
2705
2705
|
return i2.call(e3, t3);
|
|
2706
2706
|
}));
|
|
2707
2707
|
} : r2;
|
|
2708
2708
|
});
|
|
2709
|
-
var
|
|
2709
|
+
var pa = g((e2, t2) => {
|
|
2710
2710
|
function n2(e3, t3) {
|
|
2711
2711
|
for (var n3 = -1, r2 = Array(e3); ++n3 < e3; ) r2[n3] = t3(n3);
|
|
2712
2712
|
return r2;
|
|
2713
2713
|
}
|
|
2714
2714
|
t2.exports = n2;
|
|
2715
2715
|
});
|
|
2716
|
-
var
|
|
2717
|
-
var n2 =
|
|
2716
|
+
var ma = g((e2, t2) => {
|
|
2717
|
+
var n2 = ci(), r2 = li(), i2 = `[object Arguments]`;
|
|
2718
2718
|
function a2(e3) {
|
|
2719
2719
|
return r2(e3) && n2(e3) == i2;
|
|
2720
2720
|
}
|
|
2721
2721
|
t2.exports = a2;
|
|
2722
2722
|
});
|
|
2723
|
-
var
|
|
2724
|
-
var n2 =
|
|
2723
|
+
var ha = g((e2, t2) => {
|
|
2724
|
+
var n2 = ma(), r2 = li(), i2 = Object.prototype, a2 = i2.hasOwnProperty, o2 = i2.propertyIsEnumerable;
|
|
2725
2725
|
t2.exports = n2(/* @__PURE__ */ function() {
|
|
2726
2726
|
return arguments;
|
|
2727
2727
|
}()) ? n2 : function(e3) {
|
|
2728
2728
|
return r2(e3) && a2.call(e3, `callee`) && !o2.call(e3, `callee`);
|
|
2729
2729
|
};
|
|
2730
2730
|
});
|
|
2731
|
-
var
|
|
2731
|
+
var ga = g((e2, t2) => {
|
|
2732
2732
|
function n2() {
|
|
2733
2733
|
return false;
|
|
2734
2734
|
}
|
|
2735
2735
|
t2.exports = n2;
|
|
2736
2736
|
});
|
|
2737
|
-
var
|
|
2738
|
-
var n2 =
|
|
2737
|
+
var _a = g((e2, t2) => {
|
|
2738
|
+
var n2 = U(), r2 = ga(), i2 = typeof e2 == `object` && e2 && !e2.nodeType && e2, a2 = i2 && typeof t2 == `object` && t2 && !t2.nodeType && t2, o2 = a2 && a2.exports === i2 ? n2.Buffer : void 0;
|
|
2739
2739
|
t2.exports = (o2 ? o2.isBuffer : void 0) || r2;
|
|
2740
2740
|
});
|
|
2741
|
-
var
|
|
2741
|
+
var va = g((e2, t2) => {
|
|
2742
2742
|
var n2 = /^(?:0|[1-9]\d*)$/;
|
|
2743
2743
|
function r2(e3, t3) {
|
|
2744
2744
|
var r3 = typeof e3;
|
|
@@ -2746,21 +2746,21 @@ var _a = g((e2, t2) => {
|
|
|
2746
2746
|
}
|
|
2747
2747
|
t2.exports = r2;
|
|
2748
2748
|
});
|
|
2749
|
-
var
|
|
2749
|
+
var ya = g((e2, t2) => {
|
|
2750
2750
|
function n2(e3) {
|
|
2751
2751
|
return typeof e3 == `number` && e3 > -1 && e3 % 1 == 0 && e3 <= 9007199254740991;
|
|
2752
2752
|
}
|
|
2753
2753
|
t2.exports = n2;
|
|
2754
2754
|
});
|
|
2755
|
-
var
|
|
2756
|
-
var n2 =
|
|
2755
|
+
var ba = g((e2, t2) => {
|
|
2756
|
+
var n2 = ci(), r2 = ya(), i2 = li(), a2 = `[object Arguments]`, o2 = `[object Array]`, s2 = `[object Boolean]`, c2 = `[object Date]`, l2 = `[object Error]`, u2 = `[object Function]`, d2 = `[object Map]`, f2 = `[object Number]`, p2 = `[object Object]`, m2 = `[object RegExp]`, h2 = `[object Set]`, g2 = `[object String]`, _2 = `[object WeakMap]`, v2 = `[object ArrayBuffer]`, y2 = `[object DataView]`, b2 = `[object Float32Array]`, x2 = `[object Float64Array]`, S2 = `[object Int8Array]`, C2 = `[object Int16Array]`, w2 = `[object Int32Array]`, T2 = `[object Uint8Array]`, E2 = `[object Uint8ClampedArray]`, D2 = `[object Uint16Array]`, O2 = `[object Uint32Array]`, k2 = {};
|
|
2757
2757
|
k2[b2] = k2[x2] = k2[S2] = k2[C2] = k2[w2] = k2[T2] = k2[E2] = k2[D2] = k2[O2] = true, k2[a2] = k2[o2] = k2[v2] = k2[s2] = k2[y2] = k2[c2] = k2[l2] = k2[u2] = k2[d2] = k2[f2] = k2[p2] = k2[m2] = k2[h2] = k2[g2] = k2[_2] = false;
|
|
2758
2758
|
function ee2(e3) {
|
|
2759
2759
|
return i2(e3) && r2(e3.length) && !!k2[n2(e3)];
|
|
2760
2760
|
}
|
|
2761
2761
|
t2.exports = ee2;
|
|
2762
2762
|
});
|
|
2763
|
-
var
|
|
2763
|
+
var xa = g((e2, t2) => {
|
|
2764
2764
|
function n2(e3) {
|
|
2765
2765
|
return function(t3) {
|
|
2766
2766
|
return e3(t3);
|
|
@@ -2768,8 +2768,8 @@ var ba = g((e2, t2) => {
|
|
|
2768
2768
|
}
|
|
2769
2769
|
t2.exports = n2;
|
|
2770
2770
|
});
|
|
2771
|
-
var
|
|
2772
|
-
var n2 =
|
|
2771
|
+
var Sa = g((e2, t2) => {
|
|
2772
|
+
var n2 = ii(), r2 = typeof e2 == `object` && e2 && !e2.nodeType && e2, i2 = r2 && typeof t2 == `object` && t2 && !t2.nodeType && t2, a2 = i2 && i2.exports === r2 && n2.process;
|
|
2773
2773
|
t2.exports = function() {
|
|
2774
2774
|
try {
|
|
2775
2775
|
return i2 && i2.require && i2.require(`util`).types || a2 && a2.binding && a2.binding(`util`);
|
|
@@ -2777,12 +2777,12 @@ var xa = g((e2, t2) => {
|
|
|
2777
2777
|
}
|
|
2778
2778
|
}();
|
|
2779
2779
|
});
|
|
2780
|
-
var
|
|
2781
|
-
var n2 =
|
|
2780
|
+
var Ca = g((e2, t2) => {
|
|
2781
|
+
var n2 = ba(), r2 = xa(), i2 = Sa(), a2 = i2 && i2.isTypedArray;
|
|
2782
2782
|
t2.exports = a2 ? r2(a2) : n2;
|
|
2783
2783
|
});
|
|
2784
|
-
var
|
|
2785
|
-
var n2 =
|
|
2784
|
+
var wa = g((e2, t2) => {
|
|
2785
|
+
var n2 = pa(), r2 = ha(), i2 = G(), a2 = _a(), o2 = va(), s2 = Ca(), c2 = Object.prototype.hasOwnProperty;
|
|
2786
2786
|
function l2(e3, t3) {
|
|
2787
2787
|
var l3 = i2(e3), u2 = !l3 && r2(e3), d2 = !l3 && !u2 && a2(e3), f2 = !l3 && !u2 && !d2 && s2(e3), p2 = l3 || u2 || d2 || f2, m2 = p2 ? n2(e3.length, String) : [], h2 = m2.length;
|
|
2788
2788
|
for (var g2 in e3) (t3 || c2.call(e3, g2)) && !(p2 && (g2 == `length` || d2 && (g2 == `offset` || g2 == `parent`) || f2 && (g2 == `buffer` || g2 == `byteLength` || g2 == `byteOffset`) || o2(g2, h2))) && m2.push(g2);
|
|
@@ -2790,7 +2790,7 @@ var Ca = g((e2, t2) => {
|
|
|
2790
2790
|
}
|
|
2791
2791
|
t2.exports = l2;
|
|
2792
2792
|
});
|
|
2793
|
-
var
|
|
2793
|
+
var Ta = g((e2, t2) => {
|
|
2794
2794
|
var n2 = Object.prototype;
|
|
2795
2795
|
function r2(e3) {
|
|
2796
2796
|
var t3 = e3 && e3.constructor;
|
|
@@ -2798,7 +2798,7 @@ var wa = g((e2, t2) => {
|
|
|
2798
2798
|
}
|
|
2799
2799
|
t2.exports = r2;
|
|
2800
2800
|
});
|
|
2801
|
-
var
|
|
2801
|
+
var Ea = g((e2, t2) => {
|
|
2802
2802
|
function n2(e3, t3) {
|
|
2803
2803
|
return function(n3) {
|
|
2804
2804
|
return e3(t3(n3));
|
|
@@ -2806,11 +2806,11 @@ var Ta = g((e2, t2) => {
|
|
|
2806
2806
|
}
|
|
2807
2807
|
t2.exports = n2;
|
|
2808
2808
|
});
|
|
2809
|
-
var Ea = g((e2, t2) => {
|
|
2810
|
-
t2.exports = Ta()(Object.keys, Object);
|
|
2811
|
-
});
|
|
2812
2809
|
var Da = g((e2, t2) => {
|
|
2813
|
-
|
|
2810
|
+
t2.exports = Ea()(Object.keys, Object);
|
|
2811
|
+
});
|
|
2812
|
+
var Oa = g((e2, t2) => {
|
|
2813
|
+
var n2 = Ta(), r2 = Da(), i2 = Object.prototype.hasOwnProperty;
|
|
2814
2814
|
function a2(e3) {
|
|
2815
2815
|
if (!n2(e3)) return r2(e3);
|
|
2816
2816
|
var t3 = [];
|
|
@@ -2819,29 +2819,29 @@ var Da = g((e2, t2) => {
|
|
|
2819
2819
|
}
|
|
2820
2820
|
t2.exports = a2;
|
|
2821
2821
|
});
|
|
2822
|
-
var
|
|
2823
|
-
var n2 =
|
|
2822
|
+
var ka = g((e2, t2) => {
|
|
2823
|
+
var n2 = Oi(), r2 = ya();
|
|
2824
2824
|
function i2(e3) {
|
|
2825
2825
|
return e3 != null && r2(e3.length) && !n2(e3);
|
|
2826
2826
|
}
|
|
2827
2827
|
t2.exports = i2;
|
|
2828
2828
|
});
|
|
2829
|
-
var
|
|
2830
|
-
var n2 =
|
|
2829
|
+
var Aa = g((e2, t2) => {
|
|
2830
|
+
var n2 = wa(), r2 = Oa(), i2 = ka();
|
|
2831
2831
|
function a2(e3) {
|
|
2832
2832
|
return i2(e3) ? n2(e3) : r2(e3);
|
|
2833
2833
|
}
|
|
2834
2834
|
t2.exports = a2;
|
|
2835
2835
|
});
|
|
2836
|
-
var
|
|
2837
|
-
var n2 =
|
|
2836
|
+
var ja = g((e2, t2) => {
|
|
2837
|
+
var n2 = la(), r2 = fa(), i2 = Aa();
|
|
2838
2838
|
function a2(e3) {
|
|
2839
2839
|
return n2(e3, i2, r2);
|
|
2840
2840
|
}
|
|
2841
2841
|
t2.exports = a2;
|
|
2842
2842
|
});
|
|
2843
|
-
var
|
|
2844
|
-
var n2 =
|
|
2843
|
+
var Ma = g((e2, t2) => {
|
|
2844
|
+
var n2 = ja(), r2 = 1, i2 = Object.prototype.hasOwnProperty;
|
|
2845
2845
|
function a2(e3, t3, a3, o2, s2, c2) {
|
|
2846
2846
|
var l2 = a3 & r2, u2 = n2(e3), d2 = u2.length;
|
|
2847
2847
|
if (d2 != n2(t3).length && !l2) return false;
|
|
@@ -2871,20 +2871,20 @@ var ja = g((e2, t2) => {
|
|
|
2871
2871
|
}
|
|
2872
2872
|
t2.exports = a2;
|
|
2873
2873
|
});
|
|
2874
|
-
var Ma = g((e2, t2) => {
|
|
2875
|
-
t2.exports = G()(W(), `DataView`);
|
|
2876
|
-
});
|
|
2877
2874
|
var Na = g((e2, t2) => {
|
|
2878
|
-
t2.exports =
|
|
2875
|
+
t2.exports = W()(U(), `DataView`);
|
|
2879
2876
|
});
|
|
2880
2877
|
var Pa = g((e2, t2) => {
|
|
2881
|
-
t2.exports =
|
|
2878
|
+
t2.exports = W()(U(), `Promise`);
|
|
2882
2879
|
});
|
|
2883
2880
|
var Fa = g((e2, t2) => {
|
|
2884
|
-
t2.exports =
|
|
2881
|
+
t2.exports = W()(U(), `Set`);
|
|
2885
2882
|
});
|
|
2886
2883
|
var Ia = g((e2, t2) => {
|
|
2887
|
-
|
|
2884
|
+
t2.exports = W()(U(), `WeakMap`);
|
|
2885
|
+
});
|
|
2886
|
+
var La = g((e2, t2) => {
|
|
2887
|
+
var n2 = Na(), r2 = Pi(), i2 = Pa(), a2 = Fa(), o2 = Ia(), s2 = ci(), c2 = ji(), l2 = `[object Map]`, u2 = `[object Object]`, d2 = `[object Promise]`, f2 = `[object Set]`, p2 = `[object WeakMap]`, m2 = `[object DataView]`, h2 = c2(n2), g2 = c2(r2), _2 = c2(i2), v2 = c2(a2), y2 = c2(o2), b2 = s2;
|
|
2888
2888
|
(n2 && b2(new n2(new ArrayBuffer(1))) != m2 || r2 && b2(new r2()) != l2 || i2 && b2(i2.resolve()) != d2 || a2 && b2(new a2()) != f2 || o2 && b2(new o2()) != p2) && (b2 = function(e3) {
|
|
2889
2889
|
var t3 = s2(e3), n3 = t3 == u2 ? e3.constructor : void 0, r3 = n3 ? c2(n3) : ``;
|
|
2890
2890
|
if (r3) switch (r3) {
|
|
@@ -2902,8 +2902,8 @@ var Ia = g((e2, t2) => {
|
|
|
2902
2902
|
return t3;
|
|
2903
2903
|
}), t2.exports = b2;
|
|
2904
2904
|
});
|
|
2905
|
-
var
|
|
2906
|
-
var n2 =
|
|
2905
|
+
var Ra = g((e2, t2) => {
|
|
2906
|
+
var n2 = Zi(), r2 = ra(), i2 = sa(), a2 = Ma(), o2 = La(), s2 = G(), c2 = _a(), l2 = Ca(), u2 = 1, d2 = `[object Arguments]`, f2 = `[object Array]`, p2 = `[object Object]`, m2 = Object.prototype.hasOwnProperty;
|
|
2907
2907
|
function h2(e3, t3, h3, g2, _2, v2) {
|
|
2908
2908
|
var y2 = s2(e3), b2 = s2(t3), x2 = y2 ? f2 : o2(e3), S2 = b2 ? f2 : o2(t3);
|
|
2909
2909
|
x2 = x2 == d2 ? p2 : x2, S2 = S2 == d2 ? p2 : S2;
|
|
@@ -2924,15 +2924,15 @@ var La = g((e2, t2) => {
|
|
|
2924
2924
|
}
|
|
2925
2925
|
t2.exports = h2;
|
|
2926
2926
|
});
|
|
2927
|
-
var
|
|
2928
|
-
var n2 =
|
|
2927
|
+
var za = g((e2, t2) => {
|
|
2928
|
+
var n2 = Ra(), r2 = li();
|
|
2929
2929
|
function i2(e3, t3, a2, o2, s2) {
|
|
2930
2930
|
return e3 === t3 ? true : e3 == null || t3 == null || !r2(e3) && !r2(t3) ? e3 !== e3 && t3 !== t3 : n2(e3, t3, a2, o2, i2, s2);
|
|
2931
2931
|
}
|
|
2932
2932
|
t2.exports = i2;
|
|
2933
2933
|
});
|
|
2934
|
-
var
|
|
2935
|
-
var n2 =
|
|
2934
|
+
var Ba = g((e2, t2) => {
|
|
2935
|
+
var n2 = Zi(), r2 = za(), i2 = 1, a2 = 2;
|
|
2936
2936
|
function o2(e3, t3, o3, s2) {
|
|
2937
2937
|
var c2 = o3.length, l2 = c2, u2 = !s2;
|
|
2938
2938
|
if (e3 == null) return !l2;
|
|
@@ -2955,15 +2955,15 @@ var za = g((e2, t2) => {
|
|
|
2955
2955
|
}
|
|
2956
2956
|
t2.exports = o2;
|
|
2957
2957
|
});
|
|
2958
|
-
var
|
|
2959
|
-
var n2 =
|
|
2958
|
+
var Va = g((e2, t2) => {
|
|
2959
|
+
var n2 = Di();
|
|
2960
2960
|
function r2(e3) {
|
|
2961
2961
|
return e3 === e3 && !n2(e3);
|
|
2962
2962
|
}
|
|
2963
2963
|
t2.exports = r2;
|
|
2964
2964
|
});
|
|
2965
|
-
var
|
|
2966
|
-
var n2 =
|
|
2965
|
+
var Ha = g((e2, t2) => {
|
|
2966
|
+
var n2 = Va(), r2 = Aa();
|
|
2967
2967
|
function i2(e3) {
|
|
2968
2968
|
for (var t3 = r2(e3), i3 = t3.length; i3--; ) {
|
|
2969
2969
|
var a2 = t3[i3], o2 = e3[a2];
|
|
@@ -2973,7 +2973,7 @@ var Va = g((e2, t2) => {
|
|
|
2973
2973
|
}
|
|
2974
2974
|
t2.exports = i2;
|
|
2975
2975
|
});
|
|
2976
|
-
var
|
|
2976
|
+
var Ua = g((e2, t2) => {
|
|
2977
2977
|
function n2(e3, t3) {
|
|
2978
2978
|
return function(n3) {
|
|
2979
2979
|
return n3 != null && n3[e3] === t3 && (t3 !== void 0 || e3 in Object(n3));
|
|
@@ -2981,8 +2981,8 @@ var Ha = g((e2, t2) => {
|
|
|
2981
2981
|
}
|
|
2982
2982
|
t2.exports = n2;
|
|
2983
2983
|
});
|
|
2984
|
-
var
|
|
2985
|
-
var n2 =
|
|
2984
|
+
var Wa = g((e2, t2) => {
|
|
2985
|
+
var n2 = Ba(), r2 = Ha(), i2 = Ua();
|
|
2986
2986
|
function a2(e3) {
|
|
2987
2987
|
var t3 = r2(e3);
|
|
2988
2988
|
return t3.length == 1 && t3[0][2] ? i2(t3[0][0], t3[0][1]) : function(r3) {
|
|
@@ -2991,8 +2991,8 @@ var Ua = g((e2, t2) => {
|
|
|
2991
2991
|
}
|
|
2992
2992
|
t2.exports = a2;
|
|
2993
2993
|
});
|
|
2994
|
-
var
|
|
2995
|
-
var n2 =
|
|
2994
|
+
var Ga = g((e2, t2) => {
|
|
2995
|
+
var n2 = G(), r2 = ui(), i2 = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, a2 = /^\w*$/;
|
|
2996
2996
|
function o2(e3, t3) {
|
|
2997
2997
|
if (n2(e3)) return false;
|
|
2998
2998
|
var o3 = typeof e3;
|
|
@@ -3000,8 +3000,8 @@ var Wa = g((e2, t2) => {
|
|
|
3000
3000
|
}
|
|
3001
3001
|
t2.exports = o2;
|
|
3002
3002
|
});
|
|
3003
|
-
var
|
|
3004
|
-
var n2 =
|
|
3003
|
+
var Ka = g((e2, t2) => {
|
|
3004
|
+
var n2 = Yi(), r2 = `Expected a function`;
|
|
3005
3005
|
function i2(e3, t3) {
|
|
3006
3006
|
if (typeof e3 != `function` || t3 != null && typeof t3 != `function`) throw TypeError(r2);
|
|
3007
3007
|
var a2 = function() {
|
|
@@ -3014,8 +3014,8 @@ var Ga = g((e2, t2) => {
|
|
|
3014
3014
|
}
|
|
3015
3015
|
i2.Cache = n2, t2.exports = i2;
|
|
3016
3016
|
});
|
|
3017
|
-
var
|
|
3018
|
-
var n2 =
|
|
3017
|
+
var qa = g((e2, t2) => {
|
|
3018
|
+
var n2 = Ka(), r2 = 500;
|
|
3019
3019
|
function i2(e3) {
|
|
3020
3020
|
var t3 = n2(e3, function(e4) {
|
|
3021
3021
|
return i3.size === r2 && i3.clear(), e4;
|
|
@@ -3024,8 +3024,8 @@ var Ka = g((e2, t2) => {
|
|
|
3024
3024
|
}
|
|
3025
3025
|
t2.exports = i2;
|
|
3026
3026
|
});
|
|
3027
|
-
var
|
|
3028
|
-
var n2 =
|
|
3027
|
+
var Ja = g((e2, t2) => {
|
|
3028
|
+
var n2 = qa(), r2 = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, i2 = /\\(\\)?/g;
|
|
3029
3029
|
t2.exports = n2(function(e3) {
|
|
3030
3030
|
var t3 = [];
|
|
3031
3031
|
return e3.charCodeAt(0) === 46 && t3.push(``), e3.replace(r2, function(e4, n3, r3, a2) {
|
|
@@ -3033,15 +3033,15 @@ var qa = g((e2, t2) => {
|
|
|
3033
3033
|
}), t3;
|
|
3034
3034
|
});
|
|
3035
3035
|
});
|
|
3036
|
-
var
|
|
3036
|
+
var Ya = g((e2, t2) => {
|
|
3037
3037
|
function n2(e3, t3) {
|
|
3038
3038
|
for (var n3 = -1, r2 = e3 == null ? 0 : e3.length, i2 = Array(r2); ++n3 < r2; ) i2[n3] = t3(e3[n3], n3, e3);
|
|
3039
3039
|
return i2;
|
|
3040
3040
|
}
|
|
3041
3041
|
t2.exports = n2;
|
|
3042
3042
|
});
|
|
3043
|
-
var
|
|
3044
|
-
var n2 =
|
|
3043
|
+
var Xa = g((e2, t2) => {
|
|
3044
|
+
var n2 = ai(), r2 = Ya(), i2 = G(), a2 = ui(), o2 = 1 / 0, s2 = n2 ? n2.prototype : void 0, c2 = s2 ? s2.toString : void 0;
|
|
3045
3045
|
function l2(e3) {
|
|
3046
3046
|
if (typeof e3 == `string`) return e3;
|
|
3047
3047
|
if (i2(e3)) return r2(e3, l2) + ``;
|
|
@@ -3051,22 +3051,22 @@ var Ya = g((e2, t2) => {
|
|
|
3051
3051
|
}
|
|
3052
3052
|
t2.exports = l2;
|
|
3053
3053
|
});
|
|
3054
|
-
var
|
|
3055
|
-
var n2 =
|
|
3054
|
+
var Za = g((e2, t2) => {
|
|
3055
|
+
var n2 = Xa();
|
|
3056
3056
|
function r2(e3) {
|
|
3057
3057
|
return e3 == null ? `` : n2(e3);
|
|
3058
3058
|
}
|
|
3059
3059
|
t2.exports = r2;
|
|
3060
3060
|
});
|
|
3061
|
-
var
|
|
3062
|
-
var n2 =
|
|
3061
|
+
var Qa = g((e2, t2) => {
|
|
3062
|
+
var n2 = G(), r2 = Ga(), i2 = Ja(), a2 = Za();
|
|
3063
3063
|
function o2(e3, t3) {
|
|
3064
3064
|
return n2(e3) ? e3 : r2(e3, t3) ? [e3] : i2(a2(e3));
|
|
3065
3065
|
}
|
|
3066
3066
|
t2.exports = o2;
|
|
3067
3067
|
});
|
|
3068
|
-
var
|
|
3069
|
-
var n2 =
|
|
3068
|
+
var $a = g((e2, t2) => {
|
|
3069
|
+
var n2 = ui(), r2 = 1 / 0;
|
|
3070
3070
|
function i2(e3) {
|
|
3071
3071
|
if (typeof e3 == `string` || n2(e3)) return e3;
|
|
3072
3072
|
var t3 = e3 + ``;
|
|
@@ -3074,8 +3074,8 @@ var Qa = g((e2, t2) => {
|
|
|
3074
3074
|
}
|
|
3075
3075
|
t2.exports = i2;
|
|
3076
3076
|
});
|
|
3077
|
-
var
|
|
3078
|
-
var n2 =
|
|
3077
|
+
var eo = g((e2, t2) => {
|
|
3078
|
+
var n2 = Qa(), r2 = $a();
|
|
3079
3079
|
function i2(e3, t3) {
|
|
3080
3080
|
t3 = n2(t3, e3);
|
|
3081
3081
|
for (var i3 = 0, a2 = t3.length; e3 != null && i3 < a2; ) e3 = e3[r2(t3[i3++])];
|
|
@@ -3083,22 +3083,22 @@ var $a = g((e2, t2) => {
|
|
|
3083
3083
|
}
|
|
3084
3084
|
t2.exports = i2;
|
|
3085
3085
|
});
|
|
3086
|
-
var
|
|
3087
|
-
var n2 =
|
|
3086
|
+
var to = g((e2, t2) => {
|
|
3087
|
+
var n2 = eo();
|
|
3088
3088
|
function r2(e3, t3, r3) {
|
|
3089
3089
|
var i2 = e3 == null ? void 0 : n2(e3, t3);
|
|
3090
3090
|
return i2 === void 0 ? r3 : i2;
|
|
3091
3091
|
}
|
|
3092
3092
|
t2.exports = r2;
|
|
3093
3093
|
});
|
|
3094
|
-
var
|
|
3094
|
+
var no = g((e2, t2) => {
|
|
3095
3095
|
function n2(e3, t3) {
|
|
3096
3096
|
return e3 != null && t3 in Object(e3);
|
|
3097
3097
|
}
|
|
3098
3098
|
t2.exports = n2;
|
|
3099
3099
|
});
|
|
3100
|
-
var
|
|
3101
|
-
var n2 =
|
|
3100
|
+
var ro = g((e2, t2) => {
|
|
3101
|
+
var n2 = Qa(), r2 = ha(), i2 = G(), a2 = va(), o2 = ya(), s2 = $a();
|
|
3102
3102
|
function c2(e3, t3, c3) {
|
|
3103
3103
|
t3 = n2(t3, e3);
|
|
3104
3104
|
for (var l2 = -1, u2 = t3.length, d2 = false; ++l2 < u2; ) {
|
|
@@ -3110,15 +3110,15 @@ var no = g((e2, t2) => {
|
|
|
3110
3110
|
}
|
|
3111
3111
|
t2.exports = c2;
|
|
3112
3112
|
});
|
|
3113
|
-
var
|
|
3114
|
-
var n2 =
|
|
3113
|
+
var io = g((e2, t2) => {
|
|
3114
|
+
var n2 = no(), r2 = ro();
|
|
3115
3115
|
function i2(e3, t3) {
|
|
3116
3116
|
return e3 != null && r2(e3, t3, n2);
|
|
3117
3117
|
}
|
|
3118
3118
|
t2.exports = i2;
|
|
3119
3119
|
});
|
|
3120
|
-
var
|
|
3121
|
-
var n2 =
|
|
3120
|
+
var ao = g((e2, t2) => {
|
|
3121
|
+
var n2 = za(), r2 = to(), i2 = io(), a2 = Ga(), o2 = Va(), s2 = Ua(), c2 = $a(), l2 = 1, u2 = 2;
|
|
3122
3122
|
function d2(e3, t3) {
|
|
3123
3123
|
return a2(e3) && o2(t3) ? s2(c2(e3), t3) : function(a3) {
|
|
3124
3124
|
var o3 = r2(a3, e3);
|
|
@@ -3127,7 +3127,7 @@ var io = g((e2, t2) => {
|
|
|
3127
3127
|
}
|
|
3128
3128
|
t2.exports = d2;
|
|
3129
3129
|
});
|
|
3130
|
-
var
|
|
3130
|
+
var oo = g((e2, t2) => {
|
|
3131
3131
|
function n2(e3) {
|
|
3132
3132
|
return function(t3) {
|
|
3133
3133
|
return t3?.[e3];
|
|
@@ -3135,8 +3135,8 @@ var ao = g((e2, t2) => {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
t2.exports = n2;
|
|
3137
3137
|
});
|
|
3138
|
-
var
|
|
3139
|
-
var n2 =
|
|
3138
|
+
var so = g((e2, t2) => {
|
|
3139
|
+
var n2 = eo();
|
|
3140
3140
|
function r2(e3) {
|
|
3141
3141
|
return function(t3) {
|
|
3142
3142
|
return n2(t3, e3);
|
|
@@ -3144,107 +3144,107 @@ var oo = g((e2, t2) => {
|
|
|
3144
3144
|
}
|
|
3145
3145
|
t2.exports = r2;
|
|
3146
3146
|
});
|
|
3147
|
-
var
|
|
3148
|
-
var n2 =
|
|
3147
|
+
var co = g((e2, t2) => {
|
|
3148
|
+
var n2 = oo(), r2 = so(), i2 = Ga(), a2 = $a();
|
|
3149
3149
|
function o2(e3) {
|
|
3150
3150
|
return i2(e3) ? n2(a2(e3)) : r2(e3);
|
|
3151
3151
|
}
|
|
3152
3152
|
t2.exports = o2;
|
|
3153
3153
|
});
|
|
3154
|
-
var
|
|
3155
|
-
var n2 =
|
|
3154
|
+
var lo = g((e2, t2) => {
|
|
3155
|
+
var n2 = Wa(), r2 = ao(), i2 = pi(), a2 = G(), o2 = co();
|
|
3156
3156
|
function s2(e3) {
|
|
3157
3157
|
return typeof e3 == `function` ? e3 : e3 == null ? i2 : typeof e3 == `object` ? a2(e3) ? r2(e3[0], e3[1]) : n2(e3) : o2(e3);
|
|
3158
3158
|
}
|
|
3159
3159
|
t2.exports = s2;
|
|
3160
3160
|
});
|
|
3161
|
-
var
|
|
3162
|
-
var n2 =
|
|
3161
|
+
var uo = g((e2, t2) => {
|
|
3162
|
+
var n2 = di(), r2 = fi(), i2 = lo();
|
|
3163
3163
|
function a2(e3, t3) {
|
|
3164
3164
|
return e3 && e3.length ? n2(e3, i2(t3, 2), r2) : void 0;
|
|
3165
3165
|
}
|
|
3166
3166
|
t2.exports = a2;
|
|
3167
3167
|
});
|
|
3168
|
-
var
|
|
3168
|
+
var fo = g((e2, t2) => {
|
|
3169
3169
|
function n2(e3, t3) {
|
|
3170
3170
|
return e3 < t3;
|
|
3171
3171
|
}
|
|
3172
3172
|
t2.exports = n2;
|
|
3173
3173
|
});
|
|
3174
|
-
var
|
|
3175
|
-
var n2 =
|
|
3174
|
+
var po = g((e2, t2) => {
|
|
3175
|
+
var n2 = di(), r2 = fo(), i2 = pi();
|
|
3176
3176
|
function a2(e3) {
|
|
3177
3177
|
return e3 && e3.length ? n2(e3, i2, r2) : void 0;
|
|
3178
3178
|
}
|
|
3179
3179
|
t2.exports = a2;
|
|
3180
3180
|
});
|
|
3181
|
-
var
|
|
3182
|
-
var n2 =
|
|
3181
|
+
var mo = g((e2, t2) => {
|
|
3182
|
+
var n2 = di(), r2 = lo(), i2 = fo();
|
|
3183
3183
|
function a2(e3, t3) {
|
|
3184
3184
|
return e3 && e3.length ? n2(e3, r2(t3, 2), i2) : void 0;
|
|
3185
3185
|
}
|
|
3186
3186
|
t2.exports = a2;
|
|
3187
3187
|
});
|
|
3188
|
-
var
|
|
3189
|
-
var
|
|
3190
|
-
var go = v(fo(), 1);
|
|
3188
|
+
var ho = v(mi(), 1);
|
|
3189
|
+
var go = v(uo(), 1);
|
|
3191
3190
|
var _o = v(po(), 1);
|
|
3192
|
-
var vo = (
|
|
3193
|
-
|
|
3191
|
+
var vo = v(mo(), 1);
|
|
3192
|
+
var yo = ({ price: e2 }) => e2.actualPrice;
|
|
3193
|
+
function K(e2) {
|
|
3194
3194
|
return e2.priceAfterDiscount === void 0 ? { currentSellingPrice: e2.actualPrice, priceBeforeDiscount: e2.compareAtPrice, pricePerUnit: e2.pricePerUnit } : { currentSellingPrice: e2.priceAfterDiscount, priceBeforeDiscount: e2.actualPrice, pricePerUnit: e2.pricePerUnit };
|
|
3195
3195
|
}
|
|
3196
|
-
function
|
|
3196
|
+
function bo(e2, t2) {
|
|
3197
3197
|
let n2 = e2.subscriptionPrices.find((e3) => e3.subscriptionId === t2);
|
|
3198
3198
|
if (!n2) throw Error(`Missing subscription price for plan ${t2} on variant ${e2.id}`);
|
|
3199
3199
|
let r2 = n2.price;
|
|
3200
3200
|
return { currentSellingPrice: r2, priceBeforeDiscount: r2 < e2.price.actualPrice ? e2.price.actualPrice : void 0 };
|
|
3201
3201
|
}
|
|
3202
|
-
function
|
|
3203
|
-
let t2 = (0,
|
|
3204
|
-
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0,
|
|
3202
|
+
function xo(e2) {
|
|
3203
|
+
let t2 = (0, vo.default)(e2, yo), n2 = (0, go.default)(e2, yo), r2 = e2.map(({ price: e3 }) => K(e3)), i2 = K(t2.price), a2 = K(n2.price), o2 = r2.flatMap(({ priceBeforeDiscount: e3 }) => e3 === void 0 ? [] : [e3]);
|
|
3204
|
+
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0, _o.default)(o2), maxPriceBeforeDiscount: (0, ho.default)(o2), minPricePerUnit: i2.pricePerUnit, maxPricePerUnit: a2.pricePerUnit };
|
|
3205
3205
|
}
|
|
3206
|
-
function
|
|
3207
|
-
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price:
|
|
3206
|
+
function So(e2, t2) {
|
|
3207
|
+
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: bo(t2, e3.id) }));
|
|
3208
3208
|
}
|
|
3209
|
-
function
|
|
3209
|
+
function Co(e2) {
|
|
3210
3210
|
return { productPrice: { currentSellingPrice: void 0 }, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: { currentSellingPrice: void 0 } })), productPriceRange: { minCurrentSellingPrice: void 0, maxCurrentSellingPrice: void 0 } };
|
|
3211
3211
|
}
|
|
3212
|
-
function
|
|
3213
|
-
if (!e2.minPriceVariant) return
|
|
3214
|
-
let t2 =
|
|
3212
|
+
function wo(e2) {
|
|
3213
|
+
if (!e2.minPriceVariant) return Co(e2);
|
|
3214
|
+
let t2 = K(e2.minPriceVariant.price), n2 = e2.minPriceVariant.price.priceAfterDiscount !== void 0;
|
|
3215
3215
|
return { productPrice: t2, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: {} })), productPriceRange: { minCurrentSellingPrice: t2.currentSellingPrice, maxCurrentSellingPrice: n2 ? void 0 : e2.priceRange.maxActualPrice, minPriceBeforeDiscount: t2.priceBeforeDiscount, maxPriceBeforeDiscount: n2 ? e2.priceRange.maxActualPrice : e2.priceRange.maxCompareAtPrice, minPricePerUnit: t2.pricePerUnit } };
|
|
3216
3216
|
}
|
|
3217
|
-
function
|
|
3218
|
-
if (!n2) return
|
|
3219
|
-
let r2 = (0,
|
|
3220
|
-
return i2 ? { productPrice:
|
|
3217
|
+
function To(e2, t2, n2) {
|
|
3218
|
+
if (!n2) return wo(e2);
|
|
3219
|
+
let r2 = (0, vo.default)(e2.variants, yo), i2 = t2 ?? r2;
|
|
3220
|
+
return i2 ? { productPrice: K(i2.price), subscriptionPlanPrices: So(e2, i2), productPriceRange: xo(e2.variants) } : Co(e2);
|
|
3221
3221
|
}
|
|
3222
|
-
function
|
|
3222
|
+
function Eo(e2, t2) {
|
|
3223
3223
|
let n2 = e2.subscriptionPlanPrices.find(({ subscription: e3 }) => e3.id === t2);
|
|
3224
3224
|
return n2 ? { currentSellingPrice: n2.price.currentSellingPrice, priceBeforeDiscount: n2.price.priceBeforeDiscount, pricePerUnit: e2.productPrice.pricePerUnit } : e2.productPrice;
|
|
3225
3225
|
}
|
|
3226
|
-
function Eo(e2) {
|
|
3227
|
-
return q(e2.price).currentSellingPrice;
|
|
3228
|
-
}
|
|
3229
3226
|
function Do(e2) {
|
|
3230
|
-
return
|
|
3227
|
+
return K(e2.price).currentSellingPrice;
|
|
3231
3228
|
}
|
|
3232
3229
|
function Oo(e2) {
|
|
3233
|
-
return Object.keys(e2).length === 1 && `$
|
|
3230
|
+
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
3234
3231
|
}
|
|
3235
3232
|
function ko(e2) {
|
|
3233
|
+
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
3234
|
+
}
|
|
3235
|
+
function Ao(e2) {
|
|
3236
3236
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
3237
3237
|
}
|
|
3238
|
-
function
|
|
3239
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
3238
|
+
function q(e2, t2) {
|
|
3239
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Oo(e2) ? e2.$and : [e2], ...Oo(t2) ? t2.$and : [t2]] };
|
|
3240
3240
|
}
|
|
3241
|
-
function
|
|
3242
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
3241
|
+
function jo(e2, t2) {
|
|
3242
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...ko(e2) ? e2.$or : [e2], ...ko(t2) ? t2.$or : [t2]] };
|
|
3243
3243
|
}
|
|
3244
|
-
function
|
|
3245
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
3244
|
+
function Mo(e2) {
|
|
3245
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Ao(e2) ? e2.$not : { $not: e2 };
|
|
3246
3246
|
}
|
|
3247
|
-
var
|
|
3247
|
+
var No = class {
|
|
3248
3248
|
_items;
|
|
3249
3249
|
_fetchNextPage;
|
|
3250
3250
|
_fetchPrevPage;
|
|
@@ -3274,7 +3274,7 @@ var Mo = class {
|
|
|
3274
3274
|
return await this._fetchPrevPage();
|
|
3275
3275
|
}
|
|
3276
3276
|
};
|
|
3277
|
-
var
|
|
3277
|
+
var Po = class extends No {
|
|
3278
3278
|
_nextCursor;
|
|
3279
3279
|
_prevCursor;
|
|
3280
3280
|
cursors;
|
|
@@ -3288,7 +3288,7 @@ var No = class extends Mo {
|
|
|
3288
3288
|
return !!this._prevCursor;
|
|
3289
3289
|
}
|
|
3290
3290
|
};
|
|
3291
|
-
var
|
|
3291
|
+
var Fo = class extends No {
|
|
3292
3292
|
_totalCount;
|
|
3293
3293
|
_offset;
|
|
3294
3294
|
_tooManyToCount;
|
|
@@ -3311,76 +3311,76 @@ var Po = class extends Mo {
|
|
|
3311
3311
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
3312
3312
|
}
|
|
3313
3313
|
};
|
|
3314
|
-
function
|
|
3314
|
+
function Io(e2) {
|
|
3315
3315
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
3316
3316
|
try {
|
|
3317
3317
|
let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [Ye]: a2, [Xe]: o2 } = e2.responseTransformer(i2);
|
|
3318
3318
|
if (e2.pagingMethod === `OFFSET`) {
|
|
3319
3319
|
let e3 = n2;
|
|
3320
|
-
return new
|
|
3320
|
+
return new Fo({ 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 });
|
|
3321
3321
|
}
|
|
3322
3322
|
let s2 = n2.cursorPaging;
|
|
3323
|
-
return new
|
|
3323
|
+
return new Po({ 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 });
|
|
3324
3324
|
} catch (t3) {
|
|
3325
3325
|
throw e2.errorTransformer(t3);
|
|
3326
3326
|
}
|
|
3327
3327
|
}, skipTo(e3) {
|
|
3328
3328
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
3329
3329
|
}, eq(r2, i2) {
|
|
3330
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3331
|
-
return t2({ ...n2, filter:
|
|
3330
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [J(e2.transformationPaths, r2)]: a2 };
|
|
3331
|
+
return t2({ ...n2, filter: q(n2.filter, o2) });
|
|
3332
3332
|
}, ne(r2, i2) {
|
|
3333
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3334
|
-
return t2({ ...n2, filter:
|
|
3333
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [J(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
3334
|
+
return t2({ ...n2, filter: q(n2.filter, o2) });
|
|
3335
3335
|
}, ge(r2, i2) {
|
|
3336
|
-
let a2 = { [
|
|
3337
|
-
return t2({ ...n2, filter:
|
|
3336
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
3337
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3338
3338
|
}, gt(r2, i2) {
|
|
3339
|
-
let a2 = { [
|
|
3340
|
-
return t2({ ...n2, filter:
|
|
3339
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
3340
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3341
3341
|
}, le(r2, i2) {
|
|
3342
|
-
let a2 = { [
|
|
3343
|
-
return t2({ ...n2, filter:
|
|
3342
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
3343
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3344
3344
|
}, lt(r2, i2) {
|
|
3345
|
-
let a2 = { [
|
|
3346
|
-
return t2({ ...n2, filter:
|
|
3345
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
3346
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3347
3347
|
}, isNotEmpty(e3) {
|
|
3348
3348
|
return this.ne(e3, null);
|
|
3349
3349
|
}, isEmpty(e3) {
|
|
3350
3350
|
return this.eq(e3, null);
|
|
3351
3351
|
}, startsWith(r2, i2) {
|
|
3352
|
-
let a2 = { [
|
|
3353
|
-
return t2({ ...n2, filter:
|
|
3352
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
3353
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3354
3354
|
}, endsWith(r2, i2) {
|
|
3355
|
-
let a2 = { [
|
|
3356
|
-
return t2({ ...n2, filter:
|
|
3355
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
3356
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3357
3357
|
}, contains(r2, i2) {
|
|
3358
|
-
let a2 = { [
|
|
3359
|
-
return t2({ ...n2, filter:
|
|
3358
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
3359
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3360
3360
|
}, hasSome(r2, ...i2) {
|
|
3361
|
-
let a2 = { [
|
|
3362
|
-
return t2({ ...n2, filter:
|
|
3361
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3362
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3363
3363
|
}, hasAll(r2, ...i2) {
|
|
3364
|
-
let a2 = { [
|
|
3365
|
-
return t2({ ...n2, filter:
|
|
3364
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3365
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3366
3366
|
}, between(e3, t3, n3) {
|
|
3367
3367
|
return this.ge(e3, t3).lt(e3, n3);
|
|
3368
3368
|
}, in(r2, i2) {
|
|
3369
|
-
let a2 = { [
|
|
3370
|
-
return t2({ ...n2, filter:
|
|
3369
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
3370
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3371
3371
|
}, exists(r2, i2 = true) {
|
|
3372
|
-
let a2 = { [
|
|
3373
|
-
return t2({ ...n2, filter:
|
|
3372
|
+
let a2 = { [J(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
3373
|
+
return t2({ ...n2, filter: q(n2.filter, a2) });
|
|
3374
3374
|
}, or(e3) {
|
|
3375
|
-
return t2({ ...n2, filter:
|
|
3375
|
+
return t2({ ...n2, filter: jo(n2.filter, e3.query.filter) });
|
|
3376
3376
|
}, and(e3) {
|
|
3377
|
-
return t2({ ...n2, filter:
|
|
3377
|
+
return t2({ ...n2, filter: q(n2.filter, e3.query.filter) });
|
|
3378
3378
|
}, not(e3) {
|
|
3379
|
-
return t2({ ...n2, filter:
|
|
3379
|
+
return t2({ ...n2, filter: Mo(e3.query.filter) });
|
|
3380
3380
|
}, ascending(...r2) {
|
|
3381
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3381
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
3382
3382
|
}, descending(...r2) {
|
|
3383
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3383
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: J(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
3384
3384
|
}, skip(e3) {
|
|
3385
3385
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
3386
3386
|
}, limit(r2) {
|
|
@@ -3393,23 +3393,23 @@ function Fo(e2) {
|
|
|
3393
3393
|
} });
|
|
3394
3394
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
3395
3395
|
}
|
|
3396
|
-
function
|
|
3396
|
+
function J(e2, t2) {
|
|
3397
3397
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
3398
3398
|
return n2 ? t2.replace(n2, e2[n2]) : Qe(t2, { ...e2, ...Ze });
|
|
3399
3399
|
}
|
|
3400
|
-
function
|
|
3401
|
-
let r2 = (r3, i3) =>
|
|
3400
|
+
function Lo(e2, t2, n2 = {}) {
|
|
3401
|
+
let r2 = (r3, i3) => Lo(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [$e(e2, t2)]: n2 };
|
|
3402
3402
|
return { get filter() {
|
|
3403
3403
|
return i2();
|
|
3404
3404
|
}, 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) };
|
|
3405
3405
|
}
|
|
3406
|
-
function Lo(e2) {
|
|
3407
|
-
return Object.assign((t2) => Io(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 } }) });
|
|
3408
|
-
}
|
|
3409
3406
|
function Ro(e2) {
|
|
3410
|
-
return (t2) => ({
|
|
3407
|
+
return Object.assign((t2) => Lo(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 } }) });
|
|
3411
3408
|
}
|
|
3412
3409
|
function zo(e2) {
|
|
3410
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: $e(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: $e(t2, e2), order: `DESC` } }) });
|
|
3411
|
+
}
|
|
3412
|
+
function Bo(e2) {
|
|
3413
3413
|
return () => {
|
|
3414
3414
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
3415
3415
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
@@ -3425,58 +3425,58 @@ function zo(e2) {
|
|
|
3425
3425
|
return n2;
|
|
3426
3426
|
};
|
|
3427
3427
|
}
|
|
3428
|
-
function
|
|
3429
|
-
return { QueryBuilder:
|
|
3430
|
-
}
|
|
3431
|
-
var Vo = `filter`;
|
|
3432
|
-
var Ho = `sort`;
|
|
3433
|
-
var Uo = `cursorPaging`;
|
|
3434
|
-
var Wo = `paging`;
|
|
3435
|
-
var Go = [Vo, Ho, Uo];
|
|
3436
|
-
var Ko = [Vo, Ho, Wo];
|
|
3437
|
-
function qo(e2, t2) {
|
|
3438
|
-
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3428
|
+
function Vo(e2) {
|
|
3429
|
+
return { QueryBuilder: Bo(e2), Filter: Ro(e2), Sort: zo(e2) };
|
|
3439
3430
|
}
|
|
3440
|
-
|
|
3441
|
-
|
|
3431
|
+
var Ho = `filter`;
|
|
3432
|
+
var Uo = `sort`;
|
|
3433
|
+
var Wo = `cursorPaging`;
|
|
3434
|
+
var Go = `paging`;
|
|
3435
|
+
var Ko = [Ho, Uo, Wo];
|
|
3436
|
+
var qo = [Ho, Uo, Go];
|
|
3437
|
+
function Jo(e2, t2) {
|
|
3438
|
+
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3442
3439
|
}
|
|
3443
3440
|
function Yo(e2) {
|
|
3444
|
-
return
|
|
3441
|
+
return Jo(e2, Ko);
|
|
3445
3442
|
}
|
|
3446
3443
|
function Xo(e2) {
|
|
3444
|
+
return Jo(e2, qo);
|
|
3445
|
+
}
|
|
3446
|
+
function Zo(e2) {
|
|
3447
3447
|
let { hasOptionsParameter: t2 } = e2;
|
|
3448
3448
|
return function(...n2) {
|
|
3449
|
-
return t2 ?
|
|
3449
|
+
return t2 ? $o(n2, e2) : Qo(n2, e2);
|
|
3450
3450
|
};
|
|
3451
3451
|
}
|
|
3452
|
-
function
|
|
3452
|
+
function Qo(e2, t2) {
|
|
3453
3453
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
3454
3454
|
}
|
|
3455
|
-
function
|
|
3455
|
+
function $o(e2, t2) {
|
|
3456
3456
|
switch (e2.length) {
|
|
3457
3457
|
case 0:
|
|
3458
3458
|
return t2.builderQueryFunction();
|
|
3459
3459
|
case 1:
|
|
3460
|
-
return
|
|
3460
|
+
return Yo(e2[0]) || Xo(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
3461
3461
|
default:
|
|
3462
3462
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
3463
3463
|
}
|
|
3464
3464
|
}
|
|
3465
|
-
function
|
|
3465
|
+
function es(e2) {
|
|
3466
3466
|
if (!e2) return;
|
|
3467
|
-
let t2 =
|
|
3467
|
+
let t2 = vt(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = l2 && decodeURIComponent(l2);
|
|
3468
3468
|
if (n2 === `wix:`) {
|
|
3469
3469
|
let t3 = { id: c2, height: Number(o2), width: Number(s2) };
|
|
3470
3470
|
return u2 ? { ...t3, altText: u2, filename: u2, url: e2 } : t3;
|
|
3471
3471
|
}
|
|
3472
3472
|
return { url: e2 };
|
|
3473
3473
|
}
|
|
3474
|
-
function
|
|
3474
|
+
function ts(e2) {
|
|
3475
3475
|
if (!e2) return;
|
|
3476
3476
|
let t2 = ``;
|
|
3477
3477
|
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;
|
|
3478
3478
|
}
|
|
3479
|
-
function
|
|
3479
|
+
function ns(e2) {
|
|
3480
3480
|
let t2 = {}, n2 = { get search() {
|
|
3481
3481
|
return t2;
|
|
3482
3482
|
}, expression(e3) {
|
|
@@ -3490,13 +3490,13 @@ function ts(e2) {
|
|
|
3490
3490
|
} };
|
|
3491
3491
|
return n2;
|
|
3492
3492
|
}
|
|
3493
|
-
function
|
|
3493
|
+
function rs(e2) {
|
|
3494
3494
|
return (t2) => {
|
|
3495
|
-
let n2 =
|
|
3495
|
+
let n2 = ns(e2);
|
|
3496
3496
|
return t2 === void 0 ? n2 : n2.expression(t2);
|
|
3497
3497
|
};
|
|
3498
3498
|
}
|
|
3499
|
-
function
|
|
3499
|
+
function is(e2) {
|
|
3500
3500
|
let t2 = { ...e2, type: `VALUE`, value: { ...e2.value } }, n2 = { get aggregation() {
|
|
3501
3501
|
return t2;
|
|
3502
3502
|
}, sortBy(e3, r2) {
|
|
@@ -3512,7 +3512,7 @@ function rs(e2) {
|
|
|
3512
3512
|
} };
|
|
3513
3513
|
return n2;
|
|
3514
3514
|
}
|
|
3515
|
-
function
|
|
3515
|
+
function as(e2) {
|
|
3516
3516
|
let t2 = { ...e2, type: `RANGE`, range: { buckets: [] } }, n2 = { get aggregation() {
|
|
3517
3517
|
return t2;
|
|
3518
3518
|
}, withBuckets(...e3) {
|
|
@@ -3520,7 +3520,7 @@ function is(e2) {
|
|
|
3520
3520
|
} };
|
|
3521
3521
|
return n2;
|
|
3522
3522
|
}
|
|
3523
|
-
function
|
|
3523
|
+
function os(e2) {
|
|
3524
3524
|
let t2 = { ...e2, type: `DATE_HISTOGRAM`, dateHistogram: {} }, n2 = { get aggregation() {
|
|
3525
3525
|
return t2;
|
|
3526
3526
|
}, interval(e3) {
|
|
@@ -3528,7 +3528,7 @@ function as(e2) {
|
|
|
3528
3528
|
} };
|
|
3529
3529
|
return n2;
|
|
3530
3530
|
}
|
|
3531
|
-
function
|
|
3531
|
+
function ss(e2) {
|
|
3532
3532
|
let t2 = { ...e2, type: `SCALAR`, scalar: {} }, n2 = { get aggregation() {
|
|
3533
3533
|
return t2;
|
|
3534
3534
|
}, type(e3) {
|
|
@@ -3536,7 +3536,7 @@ function os(e2) {
|
|
|
3536
3536
|
} };
|
|
3537
3537
|
return n2;
|
|
3538
3538
|
}
|
|
3539
|
-
function
|
|
3539
|
+
function cs(e2) {
|
|
3540
3540
|
let t2 = { ...e2, type: `NESTED`, nested: { nestedAggregations: [] } }, n2 = { get aggregation() {
|
|
3541
3541
|
return t2;
|
|
3542
3542
|
}, addNestedAggregation(e3) {
|
|
@@ -3545,7 +3545,7 @@ function ss(e2) {
|
|
|
3545
3545
|
} };
|
|
3546
3546
|
return n2;
|
|
3547
3547
|
}
|
|
3548
|
-
function
|
|
3548
|
+
function ls(e2, t2) {
|
|
3549
3549
|
let n2 = { name: e2 }, r2 = { get aggregation() {
|
|
3550
3550
|
return n2;
|
|
3551
3551
|
}, ofType(e3) {
|
|
@@ -3553,22 +3553,22 @@ function cs(e2, t2) {
|
|
|
3553
3553
|
}, onField(e3) {
|
|
3554
3554
|
return n2 = { ...n2, fieldPath: $e(e3, t2) }, r2;
|
|
3555
3555
|
}, asValueAggregation() {
|
|
3556
|
-
return rs(n2);
|
|
3557
|
-
}, asRangeAggregation() {
|
|
3558
3556
|
return is(n2);
|
|
3559
|
-
},
|
|
3557
|
+
}, asRangeAggregation() {
|
|
3560
3558
|
return as(n2);
|
|
3561
|
-
},
|
|
3559
|
+
}, asDateHistogramAggregation() {
|
|
3562
3560
|
return os(n2);
|
|
3563
|
-
},
|
|
3561
|
+
}, asScalarAggregation() {
|
|
3564
3562
|
return ss(n2);
|
|
3563
|
+
}, asNestedAggregation() {
|
|
3564
|
+
return cs(n2);
|
|
3565
3565
|
} };
|
|
3566
3566
|
return r2;
|
|
3567
3567
|
}
|
|
3568
|
-
function
|
|
3569
|
-
return (t2) =>
|
|
3568
|
+
function us(e2) {
|
|
3569
|
+
return (t2) => ls(t2, e2);
|
|
3570
3570
|
}
|
|
3571
|
-
function
|
|
3571
|
+
function ds() {
|
|
3572
3572
|
return () => {
|
|
3573
3573
|
let e2 = {}, t2 = { withFilter(n2) {
|
|
3574
3574
|
return e2 = { ...e2, filter: n2.filter }, t2;
|
|
@@ -3588,158 +3588,158 @@ function us() {
|
|
|
3588
3588
|
return t2;
|
|
3589
3589
|
};
|
|
3590
3590
|
}
|
|
3591
|
-
function ds(e2) {
|
|
3592
|
-
return { SearchBuilder: us(), Filter: Lo(e2), Sort: Ro(e2), SearchParams: ns(e2), Aggregation: ls(e2) };
|
|
3593
|
-
}
|
|
3594
3591
|
function fs(e2) {
|
|
3595
|
-
return
|
|
3592
|
+
return { SearchBuilder: ds(), Filter: Ro(e2), Sort: zo(e2), SearchParams: rs(e2), Aggregation: us(e2) };
|
|
3596
3593
|
}
|
|
3597
|
-
|
|
3598
|
-
|
|
3594
|
+
function ps(e2) {
|
|
3595
|
+
return Ht(Object.assign(e2, { domainToMappings: { "bo._base_domain_": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wixbo.ai": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wix-bo.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], _: [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }], "*.dev.wix-code.com": [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }] } }));
|
|
3596
|
+
}
|
|
3597
|
+
var ms = `@wix/auto_sdk_ecom_back-in-stock-notifications`;
|
|
3598
|
+
function hs(e2) {
|
|
3599
3599
|
function t2({ host: t3 }) {
|
|
3600
|
-
let n2 =
|
|
3601
|
-
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName:
|
|
3600
|
+
let n2 = N(e2, [{ transformFn: at, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `itemDetails.image.focalPoint.x` }, { path: `itemDetails.image.focalPoint.y` }] }]);
|
|
3601
|
+
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName: ms, migrationOptions: { optInTransformResponse: true }, url: ps({ protoPath: `/v1/back-in-stock-notification-requests`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `request.createdDate` }] }]) };
|
|
3602
3602
|
}
|
|
3603
3603
|
return t2;
|
|
3604
3604
|
}
|
|
3605
|
-
async function
|
|
3606
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
3605
|
+
async function gs(e2, t2) {
|
|
3606
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = hs(N(it({ request: e2, itemDetails: t2 }), [{ transformFn: es, paths: [{ path: `itemDetails.image` }] }]));
|
|
3607
3607
|
r2?.onSiteCall?.();
|
|
3608
3608
|
try {
|
|
3609
3609
|
let e3 = await n2.request(i2);
|
|
3610
|
-
return r2?.onSuccess?.(e3),
|
|
3610
|
+
return r2?.onSuccess?.(e3), j(e3.data)?.request;
|
|
3611
3611
|
} catch (e3) {
|
|
3612
|
-
let t3 =
|
|
3612
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { request: `$[0]`, itemDetails: `$[1]` }, singleArgumentUnchanged: false }, [`request`, `itemDetails`]);
|
|
3613
3613
|
throw r2?.onError?.(e3), t3;
|
|
3614
3614
|
}
|
|
3615
3615
|
}
|
|
3616
|
-
({ ...
|
|
3617
|
-
function
|
|
3618
|
-
return (t2, n2) =>
|
|
3616
|
+
({ ...Vo() });
|
|
3617
|
+
function _s(e2) {
|
|
3618
|
+
return (t2, n2) => gs(t2, n2, { httpClient: e2 });
|
|
3619
3619
|
}
|
|
3620
|
-
var
|
|
3621
|
-
var
|
|
3622
|
-
var
|
|
3623
|
-
var
|
|
3624
|
-
|
|
3625
|
-
function
|
|
3620
|
+
var vs = b(`wix.ecom.v1.back_in_stock_notification_request_created`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3621
|
+
var ys = b(`wix.ecom.v1.back_in_stock_notification_request_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `undefined.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3622
|
+
var bs = b(`wix.ecom.v1.back_in_stock_notification_request_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3623
|
+
var xs = Bt(_s);
|
|
3624
|
+
F(vs), F(ys), F(bs);
|
|
3625
|
+
function Ss(e2) {
|
|
3626
3626
|
if (!e2) return;
|
|
3627
3627
|
let { pathname: t2 } = new URL(e2);
|
|
3628
3628
|
return { relativePath: t2, url: e2 };
|
|
3629
3629
|
}
|
|
3630
|
-
function
|
|
3630
|
+
function Cs(e2) {
|
|
3631
3631
|
if (e2) return e2.url;
|
|
3632
3632
|
}
|
|
3633
|
-
function
|
|
3634
|
-
return
|
|
3633
|
+
function ws(e2) {
|
|
3634
|
+
return Ht(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3635
3635
|
}
|
|
3636
|
-
var
|
|
3637
|
-
function
|
|
3636
|
+
var Ts = `@wix/auto_sdk_ecom_cart-v-2`;
|
|
3637
|
+
function Es(e2) {
|
|
3638
3638
|
function t2({ host: t3 }) {
|
|
3639
|
-
let n2 =
|
|
3640
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName:
|
|
3639
|
+
let n2 = N(e2, [{ transformFn: at, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn: hn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }, { path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }]);
|
|
3640
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ts, migrationOptions: { optInTransformResponse: true }, url: ws({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: gn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3641
3641
|
}
|
|
3642
3642
|
return t2;
|
|
3643
3643
|
}
|
|
3644
|
-
var
|
|
3645
|
-
async function
|
|
3646
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3644
|
+
var Ds = ((e2) => (e2.UNSPECIFIED = `UNSPECIFIED`, e2.WEB = `WEB`, e2.POS = `POS`, e2.EBAY = `EBAY`, e2.AMAZON = `AMAZON`, e2.OTHER_PLATFORM = `OTHER_PLATFORM`, e2.WIX_APP_STORE = `WIX_APP_STORE`, e2.WIX_INVOICES = `WIX_INVOICES`, e2.BACKOFFICE_MERCHANT = `BACKOFFICE_MERCHANT`, e2.WISH = `WISH`, e2.CLASS_PASS = `CLASS_PASS`, e2.GLOBAL_E = `GLOBAL_E`, e2.FACEBOOK = `FACEBOOK`, e2.ETSY = `ETSY`, e2.TIKTOK = `TIKTOK`, e2.FAIRE_COM = `FAIRE_COM`, e2.PAYPAL_AGENTIC_CHECKOUT = `PAYPAL_AGENTIC_CHECKOUT`, e2.STRIPE_AGENTIC_CHECKOUT = `STRIPE_AGENTIC_CHECKOUT`, e2.WIX_INVOICES_PLATFORM = `WIX_INVOICES_PLATFORM`, e2.UCP_AGENTIC_CHECKOUT = `UCP_AGENTIC_CHECKOUT`, e2))(Ds || {});
|
|
3645
|
+
async function Os(e2) {
|
|
3646
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Es(N(it({ cart: e2?.cart, catalogItems: e2?.catalogItems, customItems: e2?.customItems, coupons: e2?.coupons, deliveryMethod: e2?.deliveryMethod, giftCards: e2?.giftCards }), [{ transformFn: es, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }, { path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: Ss, paths: [{ path: `cart.lineItems.attributes.url` }, { path: `customItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3647
3647
|
n2?.onSiteCall?.();
|
|
3648
3648
|
try {
|
|
3649
3649
|
let e3 = await t2.request(r2);
|
|
3650
|
-
return n2?.onSuccess?.(e3),
|
|
3650
|
+
return n2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: ts, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: Cs, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: vn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]))?.cart;
|
|
3651
3651
|
} catch (e3) {
|
|
3652
|
-
let t3 =
|
|
3652
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { cart: `$[0].cart`, catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems`, coupons: `$[0].coupons`, deliveryMethod: `$[0].deliveryMethod`, giftCards: `$[0].giftCards` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3653
3653
|
throw n2?.onError?.(e3), t3;
|
|
3654
3654
|
}
|
|
3655
3655
|
}
|
|
3656
|
-
function
|
|
3657
|
-
return (t2) =>
|
|
3656
|
+
function ks(e2) {
|
|
3657
|
+
return (t2) => Os(t2, { httpClient: e2 });
|
|
3658
3658
|
}
|
|
3659
|
-
var
|
|
3660
|
-
function
|
|
3661
|
-
return
|
|
3659
|
+
var As = Bt(ks);
|
|
3660
|
+
function js(e2) {
|
|
3661
|
+
return Ht(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
3662
3662
|
}
|
|
3663
|
-
var
|
|
3664
|
-
function
|
|
3663
|
+
var Ms = `@wix/auto_sdk_ecom_current-cart-v-2`;
|
|
3664
|
+
function Ns(e2) {
|
|
3665
3665
|
function t2({ host: t3 }) {
|
|
3666
|
-
let n2 =
|
|
3667
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName:
|
|
3666
|
+
let n2 = N(e2, [{ transformFn: hn, paths: [{ path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }, { transformFn: at, paths: [{ path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }]);
|
|
3667
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: Ms, migrationOptions: { optInTransformResponse: true }, url: js({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: gn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }] }]) };
|
|
3668
3668
|
}
|
|
3669
3669
|
return t2;
|
|
3670
3670
|
}
|
|
3671
|
-
async function
|
|
3672
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3671
|
+
async function Ps(e2) {
|
|
3672
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Ns(N(it({ catalogItems: e2?.catalogItems, customItems: e2?.customItems }), [{ transformFn: es, paths: [{ path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: Ss, paths: [{ path: `customItems.attributes.url` }] }]));
|
|
3673
3673
|
n2?.onSiteCall?.();
|
|
3674
3674
|
try {
|
|
3675
3675
|
let e3 = await t2.request(r2);
|
|
3676
|
-
return n2?.onSuccess?.(e3),
|
|
3676
|
+
return n2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: ts, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: Cs, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: vn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3677
3677
|
} catch (e3) {
|
|
3678
|
-
let t3 =
|
|
3678
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3679
3679
|
throw n2?.onError?.(e3), t3;
|
|
3680
3680
|
}
|
|
3681
3681
|
}
|
|
3682
|
-
function
|
|
3683
|
-
return (t2) =>
|
|
3682
|
+
function Fs(e2) {
|
|
3683
|
+
return (t2) => Ps(t2, { httpClient: e2 });
|
|
3684
3684
|
}
|
|
3685
|
-
var
|
|
3686
|
-
var
|
|
3687
|
-
function
|
|
3685
|
+
var Is = Bt(Fs);
|
|
3686
|
+
var Ls = `BACK_IN_STOCK_NOTIFICATION_REQUEST_ALREADY_EXISTS`;
|
|
3687
|
+
function Rs(e2) {
|
|
3688
3688
|
return e2?.details?.applicationError?.code ?? `UNKNOWN`;
|
|
3689
3689
|
}
|
|
3690
|
-
function
|
|
3691
|
-
return { code:
|
|
3690
|
+
function zs(e2) {
|
|
3691
|
+
return { code: Rs(e2), message: e2?.message };
|
|
3692
3692
|
}
|
|
3693
|
-
async function
|
|
3693
|
+
async function Bs(e2) {
|
|
3694
3694
|
let { productId: t2, variantId: n2, email: r2, name: i2, price: a2, imageUrl: o2 } = e2;
|
|
3695
3695
|
try {
|
|
3696
|
-
return await
|
|
3696
|
+
return await xs({ catalogReference: { catalogItemId: t2, appId: ei, ...n2 ? { options: { variantId: n2 } } : {} }, email: r2 }, { name: i2, price: String(a2), ...o2 ? { image: o2 } : {} }), `created`;
|
|
3697
3697
|
} catch (e3) {
|
|
3698
|
-
if (
|
|
3699
|
-
throw
|
|
3698
|
+
if (Rs(e3) === Ls) return `already-subscribed`;
|
|
3699
|
+
throw zs(e3);
|
|
3700
3700
|
}
|
|
3701
3701
|
}
|
|
3702
|
-
var
|
|
3703
|
-
var
|
|
3704
|
-
function Hs(e2) {
|
|
3705
|
-
return e2 ? e2.match(Vs)?.[1] ?? null : null;
|
|
3706
|
-
}
|
|
3702
|
+
var Vs = `https://static.wixstatic.com/media`;
|
|
3703
|
+
var Hs = /image:\/\/v1\/([^/#]+)/;
|
|
3707
3704
|
function Us(e2) {
|
|
3705
|
+
return e2 ? e2.match(Hs)?.[1] ?? null : null;
|
|
3706
|
+
}
|
|
3707
|
+
function Ws(e2) {
|
|
3708
3708
|
if (!e2) return;
|
|
3709
3709
|
if (/^https?:\/\//i.test(e2)) return e2;
|
|
3710
|
-
let t2 =
|
|
3711
|
-
return t2 ? `${
|
|
3710
|
+
let t2 = Us(e2);
|
|
3711
|
+
return t2 ? `${Vs}/${t2}` : void 0;
|
|
3712
3712
|
}
|
|
3713
|
-
var
|
|
3714
|
-
function
|
|
3713
|
+
var Gs = (e2) => e2.media.type === `image`;
|
|
3714
|
+
function Ks(e2, t2) {
|
|
3715
3715
|
let n2 = t2.choices[e2.id];
|
|
3716
3716
|
return e2.choices.find((e3) => e3.choiceId === n2);
|
|
3717
3717
|
}
|
|
3718
|
-
function
|
|
3719
|
-
let n2 = e2.options.map((e3) =>
|
|
3718
|
+
function qs(e2, t2) {
|
|
3719
|
+
let n2 = e2.options.map((e3) => Ks(e3, t2)?.mediaIds).filter((e3) => !!(e3 && e3.length > 0));
|
|
3720
3720
|
if (n2.length === 0) return;
|
|
3721
3721
|
let r2 = n2.reduce((e3, t3) => e3.filter((e4) => t3.includes(e4))), i2 = r2.length > 0 ? r2 : n2.flat(), a2 = /* @__PURE__ */ new Map();
|
|
3722
|
-
for (let t3 of e2.media ?? [])
|
|
3722
|
+
for (let t3 of e2.media ?? []) Gs(t3) && a2.set(t3.id, t3);
|
|
3723
3723
|
for (let e3 of i2) {
|
|
3724
3724
|
let t3 = a2.get(e3)?.media.src;
|
|
3725
3725
|
if (t3) return t3;
|
|
3726
3726
|
}
|
|
3727
3727
|
}
|
|
3728
|
-
function
|
|
3729
|
-
let n2 = [t2 ?
|
|
3728
|
+
function Js(e2, t2) {
|
|
3729
|
+
let n2 = [t2 ? qs(e2, t2) : void 0, e2.media?.find(Gs)?.media.src];
|
|
3730
3730
|
for (let e3 of n2) {
|
|
3731
|
-
let t3 =
|
|
3731
|
+
let t3 = Ws(e3);
|
|
3732
3732
|
if (t3) return t3;
|
|
3733
3733
|
}
|
|
3734
3734
|
}
|
|
3735
|
-
function
|
|
3736
|
-
let i2 = (0, import_react.useCallback)((t2) => r2 ?
|
|
3735
|
+
function Ys(e2, r2) {
|
|
3736
|
+
let i2 = (0, import_react.useCallback)((t2) => r2 ? Bs({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price: Do(r2), imageUrl: Js(e2, r2) }) : Promise.reject(Error(`Cannot create a back-in-stock notification without a selected variant`)), [e2, r2]);
|
|
3737
3737
|
return (0, import_react.useMemo)(() => ({ handleNotifyMe: i2 }), [i2]);
|
|
3738
3738
|
}
|
|
3739
|
-
function
|
|
3739
|
+
function Xs(e2, t2) {
|
|
3740
3740
|
return (0, import_react.useMemo)(() => ({ id: e2.id, name: e2.name, description: e2.description, ribbons: e2.ribbons, breadcrumbs: e2.breadcrumbs, mainCategoryId: e2.mainCategoryId, categories: e2.categories, infoSections: e2.infoSections, sku: t2?.sku, discountRules: e2.discountRuleNames?.map((e3) => ({ name: e3 })) }), [e2, t2]);
|
|
3741
3741
|
}
|
|
3742
|
-
function
|
|
3742
|
+
function Zs(e2) {
|
|
3743
3743
|
if (!e2) return;
|
|
3744
3744
|
let t2 = ``;
|
|
3745
3745
|
e2?.filename && (t2 = `/${encodeURIComponent(e2.filename)}`);
|
|
@@ -3754,21 +3754,21 @@ function Xs(e2) {
|
|
|
3754
3754
|
}
|
|
3755
3755
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
3756
3756
|
}
|
|
3757
|
-
function
|
|
3758
|
-
return
|
|
3757
|
+
function Qs(e2) {
|
|
3758
|
+
return Ht(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/inventory`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/inventory`, destPath: `` }], _: [{ srcPath: `/_api/inventory`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/inventory`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/inventory-items`, destPath: `/v3/inventory-items` }, { srcPath: `/stores/v3/bulk/inventory-items`, destPath: `/v3/bulk/inventory-items` }], "*.dev.wix-code.com": [{ srcPath: `/_api/inventory`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/inventory`, destPath: `` }] } }));
|
|
3759
3759
|
}
|
|
3760
|
-
var
|
|
3761
|
-
function
|
|
3760
|
+
var $s = `@wix/auto_sdk_stores_inventory-items-v-3`;
|
|
3761
|
+
function ec(e2) {
|
|
3762
3762
|
function t2({ host: t3 }) {
|
|
3763
|
-
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName:
|
|
3763
|
+
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: $s, migrationOptions: { optInTransformResponse: true }, url: Qs({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params: Vt(e2, true), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `inventoryItems.createdDate` }, { path: `inventoryItems.updatedDate` }] }]), fallback: [{ method: `POST`, url: Qs({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), data: e2 }] };
|
|
3764
3764
|
}
|
|
3765
3765
|
return t2;
|
|
3766
3766
|
}
|
|
3767
|
-
var
|
|
3768
|
-
function
|
|
3767
|
+
var Y = ((e2) => (e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.IN_STOCK = `IN_STOCK`, e2.PREORDER = `PREORDER`, e2))(Y || {});
|
|
3768
|
+
function tc() {
|
|
3769
3769
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
3770
|
-
return
|
|
3771
|
-
let r2 =
|
|
3770
|
+
return Io({ func: async (n2) => {
|
|
3771
|
+
let r2 = ec(n2);
|
|
3772
3772
|
t2?.onSiteCall?.();
|
|
3773
3773
|
try {
|
|
3774
3774
|
let n3 = await e2.request(r2);
|
|
@@ -3778,297 +3778,305 @@ function ec() {
|
|
|
3778
3778
|
}
|
|
3779
3779
|
}, requestTransformer: (e3) => {
|
|
3780
3780
|
let t3 = [e3, {}];
|
|
3781
|
-
return
|
|
3781
|
+
return it({ ...t3?.[1], query: t3?.[0] });
|
|
3782
3782
|
}, responseTransformer: ({ data: e3 }) => {
|
|
3783
|
-
let t3 =
|
|
3783
|
+
let t3 = j(N(e3, []));
|
|
3784
3784
|
return { items: t3?.inventoryItems, pagingMetadata: t3?.pagingMetadata };
|
|
3785
3785
|
}, errorTransformer: (e3) => {
|
|
3786
|
-
throw
|
|
3786
|
+
throw P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
3787
3787
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
3788
3788
|
}
|
|
3789
|
-
async function
|
|
3790
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 =
|
|
3789
|
+
async function nc(e2) {
|
|
3790
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = ec(it({ query: e2 }));
|
|
3791
3791
|
n2?.onSiteCall?.();
|
|
3792
3792
|
try {
|
|
3793
3793
|
let e3 = await t2.request(r2);
|
|
3794
|
-
return n2?.onSuccess?.(e3),
|
|
3794
|
+
return n2?.onSuccess?.(e3), j(e3.data);
|
|
3795
3795
|
} catch (e3) {
|
|
3796
|
-
let t3 =
|
|
3796
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
3797
3797
|
throw n2?.onError?.(e3), t3;
|
|
3798
3798
|
}
|
|
3799
3799
|
}
|
|
3800
|
-
({ ...
|
|
3801
|
-
function nc(e2) {
|
|
3802
|
-
return () => ec({ httpClient: e2 });
|
|
3803
|
-
}
|
|
3800
|
+
({ ...Vo() }, { ...fs() });
|
|
3804
3801
|
function rc(e2) {
|
|
3805
|
-
return (
|
|
3806
|
-
}
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
var
|
|
3811
|
-
var
|
|
3812
|
-
|
|
3813
|
-
|
|
3802
|
+
return () => tc({ httpClient: e2 });
|
|
3803
|
+
}
|
|
3804
|
+
function ic(e2) {
|
|
3805
|
+
return (t2) => nc(t2, { httpClient: e2 });
|
|
3806
|
+
}
|
|
3807
|
+
var ac = b(`wix.stores.catalog.v3.inventory_item_created`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3808
|
+
var oc = b(`wix.stores.catalog.v3.inventory_item_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3809
|
+
var sc = b(`wix.stores.catalog.v3.inventory_item_stock_status_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `metadata.eventTime` }] }])))();
|
|
3810
|
+
var cc = b(`wix.stores.catalog.v3.inventory_item_updated`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }])))();
|
|
3811
|
+
var lc = b(`wix.stores.catalog.v3.inventory_item_updated_with_reason`, true, (e2) => j(N(e2, [{ transformFn: M, paths: [{ path: `data.currentEntity.createdDate` }, { path: `data.currentEntity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3812
|
+
function uc(e2) {
|
|
3813
|
+
let t2 = Zo({ builderQueryFunction: () => rc(e2)(), typedQueryFunction: (t3) => ic(e2)(t3), hasOptionsParameter: false });
|
|
3814
3814
|
function n2(e3) {
|
|
3815
3815
|
return t2(...arguments);
|
|
3816
3816
|
}
|
|
3817
3817
|
return n2;
|
|
3818
3818
|
}
|
|
3819
|
-
var
|
|
3820
|
-
|
|
3821
|
-
function
|
|
3822
|
-
return
|
|
3819
|
+
var dc = Bt(uc);
|
|
3820
|
+
F(ac), F(oc), F(sc), F(cc), F(lc);
|
|
3821
|
+
function fc(e2) {
|
|
3822
|
+
return Ht(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: `` }] } }));
|
|
3823
3823
|
}
|
|
3824
|
-
var
|
|
3825
|
-
function
|
|
3824
|
+
var pc = `@wix/auto_sdk_stores_products-v-3`;
|
|
3825
|
+
function mc(e2) {
|
|
3826
3826
|
function t2({ host: t3 }) {
|
|
3827
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: fc, migrationOptions: { optInTransformResponse: true }, url: dc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Bt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3827
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: pc, migrationOptions: { optInTransformResponse: true }, url: fc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Vt(e2), transformResponse: (e3) => N(e3, [{ transformFn: M, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: gn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3828
3828
|
}
|
|
3829
3829
|
return t2;
|
|
3830
3830
|
}
|
|
3831
|
-
var
|
|
3832
|
-
var
|
|
3833
|
-
var
|
|
3834
|
-
var
|
|
3835
|
-
async function
|
|
3836
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 =
|
|
3831
|
+
var hc = ((e2) => (e2.FREE_TEXT = `FREE_TEXT`, e2.TEXT_CHOICES = `TEXT_CHOICES`, e2.SWATCH_CHOICES = `SWATCH_CHOICES`, e2))(hc || {});
|
|
3832
|
+
var gc = ((e2) => (e2.IN_STOCK = `IN_STOCK`, e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.PARTIALLY_OUT_OF_STOCK = `PARTIALLY_OUT_OF_STOCK`, e2))(gc || {});
|
|
3833
|
+
var _c = ((e2) => (e2.ALL_VARIANTS = `ALL_VARIANTS`, e2.NO_VARIANTS = `NO_VARIANTS`, e2.SOME_VARIANTS = `SOME_VARIANTS`, e2))(_c || {});
|
|
3834
|
+
var vc = ((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))(vc || {});
|
|
3835
|
+
async function yc(e2, t2) {
|
|
3836
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = mc(it({ productId: e2, fields: t2?.fields }, []));
|
|
3837
3837
|
r2?.onSiteCall?.();
|
|
3838
3838
|
try {
|
|
3839
3839
|
let e3 = await n2.request(i2);
|
|
3840
|
-
return r2?.onSuccess?.(e3),
|
|
3840
|
+
return r2?.onSuccess?.(e3), j(N(e3.data, [{ transformFn: Cs, paths: [{ path: `product.url` }] }, { transformFn: ts, paths: [{ path: `product.media.main.image` }, { path: `product.media.itemsInfo.items.image` }, { path: `product.options.choicesSettings.choices.image` }, { path: `product.options.choicesSettings.choices.displayImage` }, { path: `product.options.choicesSettings.choices.linkedMedia.image` }, { path: `product.modifiers.choicesSettings.choices.image` }, { path: `product.modifiers.choicesSettings.choices.displayImage` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `product.variantsInfo.variants.media.image` }, { path: `product.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Zs, paths: [{ path: `product.media.main.video` }, { path: `product.media.itemsInfo.items.video` }, { path: `product.options.choicesSettings.choices.linkedMedia.video` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `product.variantsInfo.variants.media.video` }, { path: `product.variantSummary.minPriceVariant.media.video` }] }]), [`product.description`, `product.infoSections.description`])?.product;
|
|
3841
3841
|
} catch (e3) {
|
|
3842
|
-
let t3 =
|
|
3842
|
+
let t3 = P(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { productId: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`productId`, `options`]);
|
|
3843
3843
|
throw r2?.onError?.(e3), t3;
|
|
3844
3844
|
}
|
|
3845
3845
|
}
|
|
3846
|
-
({ ...
|
|
3847
|
-
function
|
|
3848
|
-
return (t2, n2) =>
|
|
3846
|
+
({ ...fs() }, { ...Vo() });
|
|
3847
|
+
function bc(e2) {
|
|
3848
|
+
return (t2, n2) => yc(t2, n2, { httpClient: e2 });
|
|
3849
3849
|
}
|
|
3850
|
-
var bc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: es, 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: Xs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3851
|
-
var xc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: es, 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: Xs, 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` }] }])))();
|
|
3852
|
-
var Sc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: Ss, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: es, 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: Xs, 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` }] }])))();
|
|
3853
|
-
var
|
|
3854
|
-
|
|
3855
|
-
function
|
|
3856
|
-
return
|
|
3850
|
+
var xc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => j(N(e2, [{ transformFn: M, 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: Cs, paths: [{ path: `entity.url` }] }, { transformFn: gn, 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: ts, 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: Zs, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3851
|
+
var Sc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => j(N(e2, [{ transformFn: M, 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: Cs, paths: [{ path: `entity.url` }] }, { transformFn: gn, 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: ts, 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: Zs, 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` }] }])))();
|
|
3852
|
+
var Cc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => j(N(e2, [{ transformFn: M, 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: Cs, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: gn, 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: ts, 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: Zs, 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` }] }])))();
|
|
3853
|
+
var wc = Bt(bc);
|
|
3854
|
+
F(xc), F(Sc), F(Cc);
|
|
3855
|
+
function Tc(e2) {
|
|
3856
|
+
return Dc(e2) ?? 99999;
|
|
3857
3857
|
}
|
|
3858
|
-
function
|
|
3858
|
+
function Ec(e2, t2) {
|
|
3859
3859
|
return Math.min(e2, Math.max(t2, 1));
|
|
3860
3860
|
}
|
|
3861
|
-
function
|
|
3861
|
+
function Dc(e2) {
|
|
3862
3862
|
if (!e2 || !e2.trackQuantity) return;
|
|
3863
3863
|
let { availabilityStatus: t2, inventoryQuantity: n2, preorderInfo: r2 } = e2, i2 = t2 === `PREORDER` ? r2?.quantity : n2;
|
|
3864
3864
|
if (i2 != null) return Math.max(0, i2);
|
|
3865
3865
|
}
|
|
3866
|
-
function
|
|
3867
|
-
let { availabilityStatus: t2, preorderAvailability: n2 } = e2 ?? {}, r2 = t2 !==
|
|
3868
|
-
return { isInStock: r2, isPreOrderState: n2 ===
|
|
3869
|
-
}
|
|
3870
|
-
function Oc(e2, t2) {
|
|
3871
|
-
return t2 ? { isInStock: t2.availabilityStatus === X.IN_STOCK, isPreOrderState: t2.availabilityStatus === X.PREORDER } : Dc(e2.inventory);
|
|
3866
|
+
function Oc(e2) {
|
|
3867
|
+
let { availabilityStatus: t2, preorderAvailability: n2 } = e2 ?? {}, r2 = t2 !== gc.OUT_OF_STOCK;
|
|
3868
|
+
return { isInStock: r2, isPreOrderState: n2 === _c.ALL_VARIANTS || n2 === _c.SOME_VARIANTS && !r2 };
|
|
3872
3869
|
}
|
|
3873
3870
|
function kc(e2, t2) {
|
|
3871
|
+
return t2 ? { isInStock: t2.availabilityStatus === Y.IN_STOCK, isPreOrderState: t2.availabilityStatus === Y.PREORDER } : Oc(e2.inventory);
|
|
3872
|
+
}
|
|
3873
|
+
function Ac(e2, t2) {
|
|
3874
3874
|
return (0, import_react.useMemo)(() => {
|
|
3875
|
-
let { isInStock: n2, isPreOrderState: r2 } =
|
|
3876
|
-
return { isInStock: n2, isPreOrderState: r2, preOrderMessage: r2 ? t2?.preorderInfo?.message : void 0, remainingItemCount:
|
|
3875
|
+
let { isInStock: n2, isPreOrderState: r2 } = kc(e2, t2);
|
|
3876
|
+
return { isInStock: n2, isPreOrderState: r2, preOrderMessage: r2 ? t2?.preorderInfo?.message : void 0, remainingItemCount: Dc(t2) };
|
|
3877
3877
|
}, [e2.inventory, t2]);
|
|
3878
3878
|
}
|
|
3879
|
-
function
|
|
3879
|
+
function jc(e2) {
|
|
3880
3880
|
return { type: `image`, src: e2.url, width: e2.width, height: e2.height, ...e2.name === void 0 ? {} : { title: e2.name }, ...e2.alt === void 0 ? {} : { parameters: { alt: e2.alt } } };
|
|
3881
3881
|
}
|
|
3882
|
-
var
|
|
3883
|
-
var
|
|
3884
|
-
var
|
|
3885
|
-
function
|
|
3886
|
-
let r2 =
|
|
3882
|
+
var Mc = `11062b_7b9f1e3756b64285ad5cf5e244b4ae77~mv2.png`;
|
|
3883
|
+
var Nc = { uri: Mc, url: `https://static.wixstatic.com/media/${Mc}`, width: 460, height: 460 };
|
|
3884
|
+
var Pc = [jc(Nc)];
|
|
3885
|
+
function Fc(e2, t2, n2) {
|
|
3886
|
+
let r2 = Rc(e2, Ic(e2, t2, n2));
|
|
3887
3887
|
return r2.length > 0 ? r2 : e2.media ?? [];
|
|
3888
3888
|
}
|
|
3889
|
-
function
|
|
3890
|
-
let r2 = e2.options.flatMap((e3) =>
|
|
3889
|
+
function Ic(e2, t2, n2) {
|
|
3890
|
+
let r2 = e2.options.flatMap((e3) => Lc(e3.choices, t2[e3.id])), i2 = Object.values(e2.modifiers).flatMap((e3) => Lc(e3.choices, n2[e3.id]));
|
|
3891
3891
|
return [.../* @__PURE__ */ new Set([...r2, ...i2])];
|
|
3892
3892
|
}
|
|
3893
|
-
function
|
|
3893
|
+
function Lc(e2, t2) {
|
|
3894
3894
|
return e2?.find((e3) => e3.choiceId === t2)?.mediaIds ?? [];
|
|
3895
3895
|
}
|
|
3896
|
-
function
|
|
3896
|
+
function Rc(e2, t2) {
|
|
3897
3897
|
let n2 = new Map((e2.media ?? []).map((e3) => [e3.id, e3]));
|
|
3898
3898
|
return t2.flatMap((e3) => {
|
|
3899
3899
|
let t3 = n2.get(e3);
|
|
3900
3900
|
return t3 ? [t3] : [];
|
|
3901
3901
|
});
|
|
3902
3902
|
}
|
|
3903
|
-
function
|
|
3903
|
+
function zc(e2) {
|
|
3904
3904
|
return e2.map((e3) => e3.id).join(`|`);
|
|
3905
3905
|
}
|
|
3906
|
-
function
|
|
3907
|
-
return e2.length > 0 ? e2.map((e3) => e3.media) :
|
|
3906
|
+
function Bc(e2) {
|
|
3907
|
+
return e2.length > 0 ? e2.map((e3) => e3.media) : Pc;
|
|
3908
3908
|
}
|
|
3909
|
-
function
|
|
3910
|
-
let o2 = (0, import_react.useMemo)(() =>
|
|
3909
|
+
function Vc({ product: e2, selectedOptions: i2, selectedModifiers: a2 }) {
|
|
3910
|
+
let o2 = (0, import_react.useMemo)(() => Bc(e2.media ?? []), [e2.media]), s2 = e2.mainMedia ?? Nc, c2 = (0, import_react.useMemo)(() => Fc(e2, i2, a2), [e2, i2, a2]), l2 = (0, import_react.useMemo)(() => Bc(c2), [c2]), u2 = zc(c2), [d2, f2] = (0, import_react.useState)(u2), [p2, m2] = (0, import_react.useState)(0);
|
|
3911
3911
|
d2 !== u2 && (f2(u2), m2(0));
|
|
3912
3912
|
let h2 = (0, import_react.useCallback)((e3) => m2(e3), []);
|
|
3913
3913
|
return (0, import_react.useMemo)(() => ({ allMedia: o2, mainMedia: s2, media: l2, selectedMediaIndex: p2, selectMedia: h2 }), [o2, s2, l2, p2, h2]);
|
|
3914
3914
|
}
|
|
3915
|
-
function
|
|
3915
|
+
function Hc(e2) {
|
|
3916
3916
|
return Object.entries(e2).map(([e3, t2]) => ({ optionId: e3, choiceId: t2 }));
|
|
3917
3917
|
}
|
|
3918
|
-
function
|
|
3918
|
+
function Uc(e2) {
|
|
3919
3919
|
return Object.entries(e2).map(([e3, t2]) => ({ modifierId: e3, value: t2 }));
|
|
3920
3920
|
}
|
|
3921
|
-
function
|
|
3922
|
-
let { selectedVariant: a2 } = t2, o2 =
|
|
3921
|
+
function Wc(e2, t2, r2, i2 = false) {
|
|
3922
|
+
let { selectedVariant: a2 } = t2, o2 = Xs(e2, a2), s2 = Ac(e2, a2), c2 = Vc({ product: e2, selectedOptions: t2.selectedOptions, selectedModifiers: t2.selectedModifiers }), l2 = Ys(e2, a2), { getPageAbsoluteUrl: u2 } = ri(), d2 = (0, import_react.useMemo)(() => {
|
|
3923
3923
|
if (!e2.slug) return;
|
|
3924
|
-
let t3 = u2(
|
|
3924
|
+
let t3 = u2(H.PRODUCT_PAGE, e2.slug);
|
|
3925
3925
|
return t3 ? { href: t3 } : void 0;
|
|
3926
3926
|
}, [e2.slug, u2]);
|
|
3927
3927
|
return (0, import_react.useMemo)(() => {
|
|
3928
3928
|
let { selectedVariant: e3, setHasAttemptedSubmit: n2, isSelectionValid: a3, selectedOptions: u3, selectedModifiers: f2, selectedSubscriptionPlanId: p2, quantity: m2, productGrouping: h2, ...g2 } = t2;
|
|
3929
|
-
return { ...o2, link: d2, ...r2, ...g2, buyerSelections: { options:
|
|
3929
|
+
return { ...o2, link: d2, ...r2, ...g2, buyerSelections: { options: Hc(u3), modifiers: Uc(f2), subscriptionPlanId: p2, quantity: m2 }, ...s2, ...c2, ...l2, isBackInStockEnabled: i2 };
|
|
3930
3930
|
}, [o2, d2, r2, t2, s2, c2, l2, i2]);
|
|
3931
3931
|
}
|
|
3932
|
-
var
|
|
3933
|
-
var
|
|
3934
|
-
var
|
|
3935
|
-
var
|
|
3936
|
-
function
|
|
3937
|
-
let e2 = (0, import_services_manager_react.useGetService)(), t2 = (0, import_services_manager_react.useService)(
|
|
3932
|
+
var Gc = `one-time`;
|
|
3933
|
+
var Kc = V(`@wix/site-service-locale`);
|
|
3934
|
+
var qc = V;
|
|
3935
|
+
var Jc = qc(`@wix/viewer-service-multilingual`);
|
|
3936
|
+
function Yc() {
|
|
3937
|
+
let e2 = (0, import_services_manager_react.useGetService)(), t2 = (0, import_services_manager_react.useService)(Kc), n2;
|
|
3938
3938
|
try {
|
|
3939
|
-
n2 = e2(
|
|
3939
|
+
n2 = e2(Jc);
|
|
3940
3940
|
} catch {
|
|
3941
3941
|
}
|
|
3942
3942
|
return n2?.multilingualEnabled && n2.currentLocale?.regionalFormat || t2.locale;
|
|
3943
3943
|
}
|
|
3944
|
-
var
|
|
3944
|
+
var Xc = (e2) => {
|
|
3945
3945
|
let t2 = e2?.maximumFractionDigits ?? 2;
|
|
3946
3946
|
return (e3) => e3?.toFixed(t2);
|
|
3947
3947
|
};
|
|
3948
|
-
var
|
|
3948
|
+
var Zc = (e2, t2, n2) => {
|
|
3949
3949
|
let r2 = new Intl.NumberFormat(t2, { style: `currency`, currency: e2, ...n2 });
|
|
3950
3950
|
return (e3) => {
|
|
3951
3951
|
if (e3 != null) return r2.format(e3);
|
|
3952
3952
|
};
|
|
3953
3953
|
};
|
|
3954
|
-
function
|
|
3955
|
-
return e2 ?
|
|
3954
|
+
function Qc(e2, t2, n2) {
|
|
3955
|
+
return e2 ? Zc(e2, t2, n2) : Xc(n2);
|
|
3956
3956
|
}
|
|
3957
|
-
function
|
|
3958
|
-
let r2 =
|
|
3959
|
-
return (0, import_react.useMemo)(() =>
|
|
3957
|
+
function $c(e2, t2) {
|
|
3958
|
+
let r2 = Yc();
|
|
3959
|
+
return (0, import_react.useMemo)(() => Qc(e2, r2, t2), [e2, r2, t2]);
|
|
3960
3960
|
}
|
|
3961
|
-
function
|
|
3961
|
+
function X(e2, t2) {
|
|
3962
3962
|
return e2 === void 0 ? void 0 : { amount: e2, formattedAmount: t2(e2) };
|
|
3963
3963
|
}
|
|
3964
|
-
function
|
|
3965
|
-
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice:
|
|
3964
|
+
function el(e2, t2, n2) {
|
|
3965
|
+
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice: X(t2.currentSellingPrice, n2), originalPrice: X(t2.priceBeforeDiscount, n2), frequency: e2.frequency, interval: e2.interval, duration: e2.billingCycles };
|
|
3966
3966
|
}
|
|
3967
|
-
function
|
|
3967
|
+
function tl(e2) {
|
|
3968
3968
|
return e2 === void 0 ? void 0 : { description: e2.description };
|
|
3969
3969
|
}
|
|
3970
|
-
function tl(e2, t2) {
|
|
3971
|
-
return { currentSellingPrice: Z(e2.currentSellingPrice, t2), priceBeforeDiscount: Z(e2.priceBeforeDiscount, t2), pricePerUnit: el(e2.pricePerUnit) };
|
|
3972
|
-
}
|
|
3973
3970
|
function nl(e2, t2) {
|
|
3974
|
-
return {
|
|
3971
|
+
return { currentSellingPrice: X(e2.currentSellingPrice, t2), priceBeforeDiscount: X(e2.priceBeforeDiscount, t2), pricePerUnit: tl(e2.pricePerUnit) };
|
|
3975
3972
|
}
|
|
3976
|
-
function rl(e2, t2
|
|
3973
|
+
function rl(e2, t2) {
|
|
3974
|
+
return { minCurrentSellingPrice: X(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: X(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: X(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: X(e2.maxPriceBeforeDiscount, t2), minPricePerUnit: tl(e2.minPricePerUnit), maxPricePerUnit: tl(e2.maxPricePerUnit) };
|
|
3975
|
+
}
|
|
3976
|
+
function il(e2, t2, n2, r2) {
|
|
3977
3977
|
if (e2.length === 0) return [];
|
|
3978
|
-
let i2 = e2.map(({ subscription: e3, price: t3 }) =>
|
|
3979
|
-
return t2 ? [{ id:
|
|
3978
|
+
let i2 = e2.map(({ subscription: e3, price: t3 }) => el(e3, t3, r2));
|
|
3979
|
+
return t2 ? [{ id: Gc, name: `One-time purchase`, isOneTimePurchase: true, currentPrice: X(n2.currentSellingPrice, r2) }, ...i2] : i2;
|
|
3980
3980
|
}
|
|
3981
|
-
function
|
|
3982
|
-
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 =
|
|
3981
|
+
function al({ product: e2, userInputs: t2, hasLoadedVariants: r2 }) {
|
|
3982
|
+
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 = $c(e2.currency);
|
|
3983
3983
|
return (0, import_react.useMemo)(() => {
|
|
3984
|
-
let t3 =
|
|
3984
|
+
let t3 = To(e2, i2, r2), n2 = { ...nl(Eo(t3, a2), o2), ...rl(t3.productPriceRange, o2) }, s2 = il(t3.subscriptionPlanPrices, e2.subscriptionDetails.allowOneTimePurchases, t3.productPrice, o2);
|
|
3985
3985
|
return { currency: e2.currency, pricing: n2, subscriptionPlans: s2 };
|
|
3986
3986
|
}, [e2, i2, a2, r2, o2]);
|
|
3987
3987
|
}
|
|
3988
|
-
var
|
|
3988
|
+
var ol = function(e2) {
|
|
3989
3989
|
return e2.PRODUCT_BY_SLUG = `product-by-slug`, e2.PRODUCT_BY_ID = `product-by-id`, e2.PRODUCT_ITEM = `product-item`, e2;
|
|
3990
3990
|
}({});
|
|
3991
|
-
function ol(e2) {
|
|
3992
|
-
let { isInStock: t2, isPreOrderState: n2 } = Dc(e2);
|
|
3993
|
-
return n2 ? X.PREORDER : t2 ? X.IN_STOCK : X.OUT_OF_STOCK;
|
|
3994
|
-
}
|
|
3995
3991
|
function sl(e2) {
|
|
3992
|
+
let { isInStock: t2, isPreOrderState: n2 } = Oc(e2);
|
|
3993
|
+
return n2 ? Y.PREORDER : t2 ? Y.IN_STOCK : Y.OUT_OF_STOCK;
|
|
3994
|
+
}
|
|
3995
|
+
function cl(e2) {
|
|
3996
3996
|
let { minPriceVariant: t2 } = e2, n2 = e2.options.length === 0 || e2.options.length === 1 && e2.options[0].choices.length === 1;
|
|
3997
|
-
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus:
|
|
3997
|
+
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus: sl(e2.inventory), trackQuantity: false }] };
|
|
3998
3998
|
}
|
|
3999
|
-
var
|
|
4000
|
-
var
|
|
4001
|
-
function
|
|
4002
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3999
|
+
var ll = (e2) => Number.parseFloat(e2?.amount);
|
|
4000
|
+
var ul = (e2) => e2?.amount == null ? void 0 : ll(e2);
|
|
4001
|
+
function dl(e2) {
|
|
4002
|
+
return e2.filter((e3) => e3.visible !== false).map(fl);
|
|
4003
4003
|
}
|
|
4004
|
-
var
|
|
4004
|
+
var fl = (e2) => {
|
|
4005
4005
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
4006
4006
|
let t3 = e3.optionChoiceIds;
|
|
4007
4007
|
return [t3?.optionId, t3?.choiceId];
|
|
4008
4008
|
}));
|
|
4009
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
4009
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: ml(e2), subscriptionPrices: hl(e2) };
|
|
4010
4010
|
};
|
|
4011
|
-
function
|
|
4011
|
+
function pl(e2) {
|
|
4012
4012
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
4013
4013
|
}
|
|
4014
|
-
var
|
|
4014
|
+
var ml = (e2) => {
|
|
4015
4015
|
let t2 = e2.price;
|
|
4016
|
-
return { actualPrice:
|
|
4016
|
+
return { actualPrice: ll(t2?.actualPrice), compareAtPrice: ul(t2?.compareAtPrice), priceAfterDiscount: ul(t2?.priceAfterDiscount), pricePerUnit: pl(e2.physicalProperties?.pricePerUnit) };
|
|
4017
4017
|
};
|
|
4018
|
-
var
|
|
4019
|
-
function
|
|
4018
|
+
var hl = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: ll(e3.price) }));
|
|
4019
|
+
function gl(e2) {
|
|
4020
4020
|
return e2.map((e3) => ({ variantId: e3.variantId ?? ``, availabilityStatus: e3.availabilityStatus, quantity: e3.quantity ?? void 0, trackQuantity: e3.trackQuantity ?? false, preorderInfo: e3.preorderInfo ? { message: e3.preorderInfo.message ?? void 0, quantity: e3.preorderInfo.quantity ?? void 0 } : void 0 }));
|
|
4021
4021
|
}
|
|
4022
|
-
async function
|
|
4023
|
-
return
|
|
4022
|
+
async function _l(e2, t2) {
|
|
4023
|
+
return gl((await dc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
4024
4024
|
}
|
|
4025
|
-
var
|
|
4026
|
-
async function
|
|
4027
|
-
let [n2, r2] = await Promise.all([
|
|
4028
|
-
return { variants:
|
|
4025
|
+
var vl = [vc.SUBSCRIPTION_PRICES_INFO, vc.DISCOUNT_INFO];
|
|
4026
|
+
async function yl(e2, t2) {
|
|
4027
|
+
let [n2, r2] = await Promise.all([wc(e2, { fields: vl }), _l(e2, t2)]);
|
|
4028
|
+
return { variants: dl(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
4029
4029
|
}
|
|
4030
|
-
function
|
|
4031
|
-
let
|
|
4032
|
-
|
|
4033
|
-
|
|
4030
|
+
function bl() {
|
|
4031
|
+
let e2 = (0, import_services_manager_react.useGetService)(), t2 = (0, import_services_manager_react.useService)(Kc), n2;
|
|
4032
|
+
try {
|
|
4033
|
+
n2 = e2(Jc);
|
|
4034
|
+
} catch {
|
|
4035
|
+
}
|
|
4036
|
+
return n2?.multilingualEnabled && n2.currentLocale?.languageCode || t2.language;
|
|
4037
|
+
}
|
|
4038
|
+
function xl(e2, n2) {
|
|
4039
|
+
let i2 = bl(), [a2, o2] = (0, import_react.useState)(false), { data: s2, isFetching: c2 } = Qr({ queryKey: [`product-variants`, i2, e2, n2], queryFn: () => yl(e2, n2), enabled: a2, staleTime: 1 / 0, retry: false });
|
|
4040
|
+
return { variantsData: s2, isLoadingVariants: c2, requestVariants: (0, import_react.useCallback)(() => {
|
|
4041
|
+
o2(true);
|
|
4034
4042
|
}, []) };
|
|
4035
4043
|
}
|
|
4036
|
-
function
|
|
4037
|
-
let { variantsData: i2, isLoadingVariants: a2, requestVariants: o2 } =
|
|
4044
|
+
function Sl(e2, t2, r2) {
|
|
4045
|
+
let { variantsData: i2, isLoadingVariants: a2, requestVariants: o2 } = xl(e2.id, t2), { variants: s2, inventoryItems: c2 } = (0, import_react.useMemo)(() => i2 ?? cl(e2), [i2, e2]);
|
|
4038
4046
|
return { product: (0, import_react.useMemo)(() => ({ ...e2, variants: s2 }), [e2, s2]), inventoryItems: c2, productGroupData: r2, hasLoadedVariants: (0, import_react.useMemo)(() => i2 !== void 0, [i2]), isLoadingVariants: a2, requestVariants: o2 };
|
|
4039
4047
|
}
|
|
4040
|
-
var
|
|
4041
|
-
function
|
|
4048
|
+
var Cl = { type: `invalid-purchase`, message: `This item can't be purchased.` };
|
|
4049
|
+
function wl(e2) {
|
|
4042
4050
|
let t2 = e2;
|
|
4043
4051
|
return { type: `cart`, message: t2?.message, details: t2?.details };
|
|
4044
4052
|
}
|
|
4045
|
-
var
|
|
4046
|
-
var
|
|
4047
|
-
var
|
|
4048
|
-
var
|
|
4049
|
-
var
|
|
4053
|
+
var Tl = V(`@wix/site-service-lightbox`);
|
|
4054
|
+
var El = V(`@wix/site-service-router`);
|
|
4055
|
+
var Dl = V(`@wix/site-service-editor-context`);
|
|
4056
|
+
var Ol = V(`@wix/site-service-pages`);
|
|
4057
|
+
var kl = (e2) => {
|
|
4050
4058
|
if (!e2) return ``;
|
|
4051
4059
|
let t2 = new URLSearchParams(e2).toString();
|
|
4052
4060
|
return t2 ? `?${t2}` : ``;
|
|
4053
4061
|
};
|
|
4054
|
-
var
|
|
4062
|
+
var Al = (e2, t2, n2) => {
|
|
4055
4063
|
let r2 = `./${e2.replace(/^\//, ``)}`;
|
|
4056
4064
|
return n2 ? r2 : new URL(r2, `${t2.replace(/\/$/, ``)}/`).href;
|
|
4057
4065
|
};
|
|
4058
|
-
var
|
|
4059
|
-
let { navigateTo: e2 } = (0, import_services_manager_react.useService)(
|
|
4066
|
+
var jl = () => {
|
|
4067
|
+
let { navigateTo: e2 } = (0, import_services_manager_react.useService)(El), { open: n2 } = (0, import_services_manager_react.useService)(Tl), r2 = (0, import_services_manager_react.useService)($r), i2 = (0, import_services_manager_react.useService)(Dl), a2 = (0, import_services_manager_react.useService)(Ol), { getPageRelativeUrl: o2, getPageAbsoluteUrl: s2 } = ri();
|
|
4060
4068
|
return { navigateToPage: (0, import_react.useCallback)(async (t2, n3) => {
|
|
4061
4069
|
try {
|
|
4062
|
-
let a3 = r2.appSectionRelativeUrl(
|
|
4070
|
+
let a3 = r2.appSectionRelativeUrl(ti, t2);
|
|
4063
4071
|
if (!a3) return false;
|
|
4064
|
-
let o3 = `${a3}${
|
|
4065
|
-
return await e2({ href:
|
|
4072
|
+
let o3 = `${a3}${kl(n3)}`;
|
|
4073
|
+
return await e2({ href: Al(o3, r2.siteUrl, i2.previewMode) }), true;
|
|
4066
4074
|
} catch {
|
|
4067
4075
|
return false;
|
|
4068
4076
|
}
|
|
4069
4077
|
}, [e2, r2, i2]), navigateToProductPage: (0, import_react.useCallback)(async (t2) => {
|
|
4070
4078
|
try {
|
|
4071
|
-
let n3 = i2.previewMode ? o2(
|
|
4079
|
+
let n3 = i2.previewMode ? o2(H.PRODUCT_PAGE, t2) : s2(H.PRODUCT_PAGE, t2);
|
|
4072
4080
|
if (!n3) throw Error(`Failed to resolve app section relative URL for the product page`);
|
|
4073
4081
|
await e2({ href: n3 });
|
|
4074
4082
|
} catch (e3) {
|
|
@@ -4076,92 +4084,92 @@ var kl = () => {
|
|
|
4076
4084
|
}
|
|
4077
4085
|
}, [e2, i2, o2, s2]), openLightbox: (0, import_react.useCallback)(async (e3) => {
|
|
4078
4086
|
try {
|
|
4079
|
-
let t2 =
|
|
4087
|
+
let t2 = ni[e3], r3 = Object.entries(a2.pages).find(([, n3]) => n3.popup && (n3.appPageId === e3 || n3.appPageId === t2))?.[0];
|
|
4080
4088
|
return r3 ? (await n2({ pageId: r3 }), true) : false;
|
|
4081
4089
|
} catch {
|
|
4082
4090
|
return false;
|
|
4083
4091
|
}
|
|
4084
4092
|
}, [n2, a2]) };
|
|
4085
4093
|
};
|
|
4086
|
-
async function
|
|
4087
|
-
await
|
|
4094
|
+
async function Ml(e2) {
|
|
4095
|
+
await Is({ catalogItems: [e2] });
|
|
4088
4096
|
}
|
|
4089
|
-
var
|
|
4090
|
-
var
|
|
4097
|
+
var Nl = qc(`@wix/site-service-public-api-caller`);
|
|
4098
|
+
var Pl = () => {
|
|
4091
4099
|
let e2 = (0, import_services_manager_react.useGetService)();
|
|
4092
4100
|
return { reloadCart: (0, import_react.useCallback)(async () => {
|
|
4093
4101
|
if (typeof window < `u`) try {
|
|
4094
|
-
await e2(
|
|
4102
|
+
await e2(Nl).callPublicApi(ti, `cart.reloadCart`, []);
|
|
4095
4103
|
} catch {
|
|
4096
4104
|
}
|
|
4097
4105
|
}, [e2]) };
|
|
4098
4106
|
};
|
|
4099
|
-
var
|
|
4107
|
+
var Z = function(e2) {
|
|
4100
4108
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2.SUCCESS = `success`, e2;
|
|
4101
4109
|
}({});
|
|
4102
|
-
var
|
|
4110
|
+
var Fl = function(e2) {
|
|
4103
4111
|
return e2.NONE = `none`, e2.NAVIGATE_TO_CART = `navigate-to-cart`, e2.OPEN_SIDE_CART = `open-side-cart`, e2;
|
|
4104
4112
|
}({});
|
|
4105
|
-
var
|
|
4106
|
-
let [e2, n2] = (0, import_react.useState)(
|
|
4113
|
+
var Il = () => {
|
|
4114
|
+
let [e2, n2] = (0, import_react.useState)(Z.IDLE), { navigateToPage: i2, openLightbox: a2 } = jl(), { reloadCart: o2 } = Pl(), s2 = (0, import_react.useCallback)(async (e3) => {
|
|
4107
4115
|
switch (e3) {
|
|
4108
|
-
case
|
|
4109
|
-
await i2(
|
|
4116
|
+
case Fl.NAVIGATE_TO_CART:
|
|
4117
|
+
await i2(H.CART);
|
|
4110
4118
|
return;
|
|
4111
|
-
case
|
|
4112
|
-
await a2(
|
|
4119
|
+
case Fl.OPEN_SIDE_CART:
|
|
4120
|
+
await a2(H.SIDE_CART);
|
|
4113
4121
|
return;
|
|
4114
|
-
case
|
|
4122
|
+
case Fl.NONE:
|
|
4115
4123
|
default:
|
|
4116
4124
|
return;
|
|
4117
4125
|
}
|
|
4118
4126
|
}, [i2, a2]);
|
|
4119
4127
|
return { addToCart: (0, import_react.useCallback)(async (e3, t2) => {
|
|
4120
|
-
n2(
|
|
4128
|
+
n2(Z.IN_PROGRESS);
|
|
4121
4129
|
try {
|
|
4122
|
-
await
|
|
4130
|
+
await Ml(e3);
|
|
4123
4131
|
} catch (e4) {
|
|
4124
|
-
return n2(
|
|
4132
|
+
return n2(Z.IDLE), { ok: false, error: wl(e4) };
|
|
4125
4133
|
}
|
|
4126
4134
|
try {
|
|
4127
|
-
await o2(), n2(
|
|
4135
|
+
await o2(), n2(Z.SUCCESS), await s2(t2), setTimeout(() => n2(Z.IDLE), 2e3);
|
|
4128
4136
|
} catch {
|
|
4129
|
-
n2(
|
|
4137
|
+
n2(Z.IDLE);
|
|
4130
4138
|
}
|
|
4131
4139
|
return { ok: true };
|
|
4132
4140
|
}, [o2, s2]), addToCartState: e2, reloadCart: o2 };
|
|
4133
4141
|
};
|
|
4134
|
-
async function
|
|
4135
|
-
let t2 = await
|
|
4142
|
+
async function Ll(e2) {
|
|
4143
|
+
let t2 = await As({ cart: { source: { channelType: Ds.WEB } }, catalogItems: [e2] });
|
|
4136
4144
|
if (!t2._id) throw Error(`missing checkout id`);
|
|
4137
4145
|
return t2._id;
|
|
4138
4146
|
}
|
|
4139
|
-
var
|
|
4147
|
+
var Rl = function(e2) {
|
|
4140
4148
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2;
|
|
4141
4149
|
}({});
|
|
4142
|
-
var
|
|
4143
|
-
let { navigateToPage: e2 } =
|
|
4150
|
+
var zl = () => {
|
|
4151
|
+
let { navigateToPage: e2 } = jl(), [n2, i2] = (0, import_react.useState)(Rl.IDLE);
|
|
4144
4152
|
return { buyNowState: n2, buyNow: (0, import_react.useCallback)(async (t2) => {
|
|
4145
|
-
i2(
|
|
4153
|
+
i2(Rl.IN_PROGRESS);
|
|
4146
4154
|
try {
|
|
4147
|
-
let n3 = await
|
|
4148
|
-
return await e2(
|
|
4155
|
+
let n3 = await Ll(t2);
|
|
4156
|
+
return await e2(H.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error: wl(Error(`Failed to navigate to checkout`)) };
|
|
4149
4157
|
} catch (e3) {
|
|
4150
|
-
return { ok: false, error:
|
|
4158
|
+
return { ok: false, error: wl(e3) };
|
|
4151
4159
|
} finally {
|
|
4152
|
-
i2(
|
|
4160
|
+
i2(Rl.IDLE);
|
|
4153
4161
|
}
|
|
4154
4162
|
}, [e2]) };
|
|
4155
4163
|
};
|
|
4156
|
-
function
|
|
4164
|
+
function Bl(e2) {
|
|
4157
4165
|
let { product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 } = e2;
|
|
4158
|
-
return { catalogReference: { appId:
|
|
4166
|
+
return { catalogReference: { appId: ei, catalogItemId: t2.id, options: Vl({ product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 }) }, quantity: r2.quantity };
|
|
4159
4167
|
}
|
|
4160
|
-
var
|
|
4161
|
-
let i2 =
|
|
4162
|
-
return Object.keys(o2).length > 0 && (l2.customTextFields = o2),
|
|
4168
|
+
var Vl = ({ product: e2, selectedVariant: t2, userSelections: n2, isPreOrder: r2 }) => {
|
|
4169
|
+
let i2 = Hl(e2, t2.choices), { choiceBasedModifiers: a2, customTextFields: o2 } = Ul(e2, n2.selectedModifiers), s2 = { ...i2, ...a2 }, { selectedSubscriptionPlanId: c2 } = n2, l2 = { variantId: t2.id, options: s2 };
|
|
4170
|
+
return Object.keys(o2).length > 0 && (l2.customTextFields = o2), Wl(c2) && (l2.subscriptionOptionId = c2), r2 && (l2.preOrderRequested = true), l2;
|
|
4163
4171
|
};
|
|
4164
|
-
var
|
|
4172
|
+
var Hl = (e2, t2) => {
|
|
4165
4173
|
let n2 = {};
|
|
4166
4174
|
for (let [r2, i2] of Object.entries(t2)) {
|
|
4167
4175
|
let t3 = e2.options.find((e3) => e3.id === r2), a2 = t3?.choices.find((e3) => e3.choiceId === i2);
|
|
@@ -4169,9 +4177,9 @@ var Vl = (e2, t2) => {
|
|
|
4169
4177
|
}
|
|
4170
4178
|
return n2;
|
|
4171
4179
|
};
|
|
4172
|
-
var
|
|
4180
|
+
var Ul = (e2, t2) => {
|
|
4173
4181
|
let n2 = {}, r2 = {};
|
|
4174
|
-
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType ===
|
|
4182
|
+
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType === hc.FREE_TEXT) {
|
|
4175
4183
|
let e3 = i2.freeTextSettings?.key;
|
|
4176
4184
|
e3 && (r2[e3] = t2[i2.id] ?? ``);
|
|
4177
4185
|
} else {
|
|
@@ -4180,23 +4188,23 @@ var Hl = (e2, t2) => {
|
|
|
4180
4188
|
}
|
|
4181
4189
|
return { choiceBasedModifiers: n2, customTextFields: r2 };
|
|
4182
4190
|
};
|
|
4183
|
-
var
|
|
4184
|
-
function
|
|
4185
|
-
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } =
|
|
4191
|
+
var Wl = (e2) => e2 !== void 0 && e2 !== `one-time`;
|
|
4192
|
+
function Gl(e2, r2, i2) {
|
|
4193
|
+
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } = Il(), { buyNow: p2, buyNowState: m2 } = zl(), h2 = i2.isPreOrderState || i2.isInStock, g2 = (0, import_react.useCallback)(async (t2) => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: Cl } : d2(Bl({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState }), t2 ?? Fl.NONE), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, d2]), _2 = (0, import_react.useCallback)(async () => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: Cl } : p2(Bl({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState })), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, p2]);
|
|
4186
4194
|
return (0, import_react.useMemo)(() => ({ addToCartState: f2, buyNowState: m2, handleAddToCart: g2, handleBuyNow: _2 }), [f2, m2, g2, _2]);
|
|
4187
4195
|
}
|
|
4188
|
-
var
|
|
4189
|
-
var
|
|
4196
|
+
var Kl = (e2, t2) => e2.every((e3) => !e3.mandatory || ql(e3, t2[e3.id]));
|
|
4197
|
+
var ql = (e2, t2) => e2.modifierRenderType === hc.FREE_TEXT ? !!t2 : e2.choices?.some((e3) => e3.choiceId === t2);
|
|
4190
4198
|
var Q = function(e2) {
|
|
4191
4199
|
return e2.DIRECT_ADD = `direct-add`, e2.NAVIGATE_TO_PRODUCT_PAGE = `navigate-to-product-page`, e2;
|
|
4192
4200
|
}({});
|
|
4193
|
-
function
|
|
4194
|
-
return
|
|
4201
|
+
function Jl(e2, t2) {
|
|
4202
|
+
return Yl(e2, t2) ? Q.NAVIGATE_TO_PRODUCT_PAGE : Q.DIRECT_ADD;
|
|
4195
4203
|
}
|
|
4196
|
-
var
|
|
4197
|
-
var
|
|
4198
|
-
function
|
|
4199
|
-
let { navigateToProductPage: i2 } =
|
|
4204
|
+
var Yl = (e2, t2) => e2.subscriptionDetails.subscriptions.length > 0 || !Xl(e2, t2);
|
|
4205
|
+
var Xl = (e2, t2) => e2.options.length === 0 && Object.keys(e2.modifiers).length === 0 || t2.selectedVariant !== null && Kl(Object.values(t2.modifiers), t2.selectedModifiers);
|
|
4206
|
+
function Zl(e2, r2) {
|
|
4207
|
+
let { navigateToProductPage: i2 } = jl(), { addToCartState: a2, buyNowState: o2, handleAddToCart: s2, handleBuyNow: c2 } = Gl(e2, r2, Ac(e2, r2.selectedVariant)), l2 = Jl(e2, r2), u2 = (0, import_react.useCallback)(async () => e2.slug ? (await i2(e2.slug), { ok: true }) : { ok: false, error: Cl }, [e2.slug, i2]), d2 = (0, import_react.useCallback)((e3) => {
|
|
4200
4208
|
switch (l2) {
|
|
4201
4209
|
case Q.DIRECT_ADD:
|
|
4202
4210
|
return s2(e3);
|
|
@@ -4213,15 +4221,15 @@ function Xl(e2, r2) {
|
|
|
4213
4221
|
}, [l2, c2, u2]);
|
|
4214
4222
|
return (0, import_react.useMemo)(() => ({ addToCartState: a2, buyNowState: o2, handleAddToCart: d2, handleBuyNow: f2 }), [a2, o2, d2, f2]);
|
|
4215
4223
|
}
|
|
4216
|
-
function
|
|
4224
|
+
function Ql(e2) {
|
|
4217
4225
|
return Object.values(e2).toSorted().join(`_`);
|
|
4218
4226
|
}
|
|
4219
|
-
function
|
|
4227
|
+
function $l(e2) {
|
|
4220
4228
|
let t2 = /* @__PURE__ */ new Map();
|
|
4221
|
-
for (let n2 of e2) t2.set(
|
|
4229
|
+
for (let n2 of e2) t2.set(Ql(n2.choices), n2);
|
|
4222
4230
|
return t2;
|
|
4223
4231
|
}
|
|
4224
|
-
function
|
|
4232
|
+
function eu(e2, t2, n2) {
|
|
4225
4233
|
let r2 = Object.keys(n2).length > 0, i2 = {};
|
|
4226
4234
|
for (let a2 of e2) {
|
|
4227
4235
|
i2[a2.id] = {};
|
|
@@ -4234,18 +4242,18 @@ function $l(e2, t2, n2) {
|
|
|
4234
4242
|
i2[a2.id][e3.choiceId] = { isInStock: false, isVisible: false };
|
|
4235
4243
|
continue;
|
|
4236
4244
|
}
|
|
4237
|
-
let { isInStock: o2, isVisible: s2 } =
|
|
4245
|
+
let { isInStock: o2, isVisible: s2 } = tu({ ...n2, [a2.id]: e3.choiceId }, t2);
|
|
4238
4246
|
i2[a2.id][e3.choiceId] = { isInStock: o2, isVisible: s2 };
|
|
4239
4247
|
}
|
|
4240
4248
|
}
|
|
4241
4249
|
return i2;
|
|
4242
4250
|
}
|
|
4243
|
-
function
|
|
4251
|
+
function tu(e2, t2) {
|
|
4244
4252
|
let n2 = false, r2 = false;
|
|
4245
|
-
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus ===
|
|
4253
|
+
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus === Y.IN_STOCK || i2.availabilityStatus === Y.PREORDER) && (n2 = true), n2)) break;
|
|
4246
4254
|
return { isInStock: n2, isVisible: r2 };
|
|
4247
4255
|
}
|
|
4248
|
-
function
|
|
4256
|
+
function nu(e2, t2) {
|
|
4249
4257
|
let n2 = /* @__PURE__ */ new Map();
|
|
4250
4258
|
for (let e3 of t2) n2.set(e3.variantId, e3);
|
|
4251
4259
|
return e2.map((e3) => {
|
|
@@ -4253,34 +4261,34 @@ function tu(e2, t2) {
|
|
|
4253
4261
|
return { ...e3, availabilityStatus: t3?.availabilityStatus, preorderInfo: t3?.preorderInfo, inventoryQuantity: t3?.quantity, trackQuantity: t3?.trackQuantity };
|
|
4254
4262
|
});
|
|
4255
4263
|
}
|
|
4256
|
-
function
|
|
4257
|
-
let r2 = { options:
|
|
4264
|
+
function ru({ product: e2, selections: t2, selectedVariant: n2 }) {
|
|
4265
|
+
let r2 = { options: iu(e2.options, t2.selectedOptions, n2), modifiers: ou(e2.modifiers, t2.selectedModifiers), quantity: au(t2.quantity, n2), subscriptionPlanId: su(e2.subscriptionDetails, t2.selectedSubscriptionPlanId) };
|
|
4258
4266
|
return { valid: Object.values(r2.options).length === 0 && Object.values(r2.modifiers).length === 0 && !r2.quantity && !r2.subscriptionPlanId, fields: r2 };
|
|
4259
4267
|
}
|
|
4260
|
-
function
|
|
4268
|
+
function iu(e2, t2, n2) {
|
|
4261
4269
|
if (n2 !== null) return {};
|
|
4262
4270
|
let r2 = {};
|
|
4263
4271
|
for (let n3 of e2) t2[n3.id] || (r2[n3.id] = `missing`);
|
|
4264
4272
|
return r2;
|
|
4265
4273
|
}
|
|
4266
|
-
function iu(e2, t2) {
|
|
4267
|
-
if (e2 < 1) return `below-min`;
|
|
4268
|
-
if (e2 > wc(t2)) return `above-max`;
|
|
4269
|
-
}
|
|
4270
4274
|
function au(e2, t2) {
|
|
4271
|
-
|
|
4272
|
-
|
|
4275
|
+
if (e2 < 1) return `below-min`;
|
|
4276
|
+
if (e2 > Tc(t2)) return `above-max`;
|
|
4273
4277
|
}
|
|
4274
4278
|
function ou(e2, t2) {
|
|
4275
|
-
|
|
4279
|
+
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !ql(e3, t2[e3.id]));
|
|
4280
|
+
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4276
4281
|
}
|
|
4277
4282
|
function su(e2, t2) {
|
|
4283
|
+
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` : cu(e2, t2) ? void 0 : `missing` : `missing`;
|
|
4284
|
+
}
|
|
4285
|
+
function cu(e2, t2) {
|
|
4278
4286
|
return e2.subscriptions.some((e3) => e3.id === t2);
|
|
4279
4287
|
}
|
|
4280
4288
|
var $ = function(e2) {
|
|
4281
4289
|
return e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2;
|
|
4282
4290
|
}({});
|
|
4283
|
-
function
|
|
4291
|
+
function lu(e2, t2) {
|
|
4284
4292
|
if (!t2) return;
|
|
4285
4293
|
let n2 = t2.members.find((t3) => t3.productId === e2.id);
|
|
4286
4294
|
if (!n2) return;
|
|
@@ -4288,43 +4296,43 @@ function cu(e2, t2) {
|
|
|
4288
4296
|
if (t2.customizationType === $.PRODUCT_OPTION) return e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId) ? { ...r2, customizationType: $.PRODUCT_OPTION } : void 0;
|
|
4289
4297
|
if (e2.modifiers[t2.groupingCustomizationId]) return { ...r2, customizationType: $.MODIFIER };
|
|
4290
4298
|
}
|
|
4291
|
-
function
|
|
4299
|
+
function uu(e2, t2) {
|
|
4292
4300
|
return e2.members.find((e3) => e3.choice.choiceId === t2);
|
|
4293
4301
|
}
|
|
4294
|
-
function
|
|
4302
|
+
function du(e2, t2, n2) {
|
|
4295
4303
|
return !!e2 && t2 === e2.groupingCustomizationId && n2 !== e2.currentProductChoiceId;
|
|
4296
4304
|
}
|
|
4297
|
-
function
|
|
4305
|
+
function fu(e2, t2) {
|
|
4298
4306
|
if (!t2) return;
|
|
4299
4307
|
if (t2.customizationType === $.PRODUCT_OPTION) {
|
|
4300
4308
|
let n3 = e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId);
|
|
4301
4309
|
if (!n3) return;
|
|
4302
|
-
let r3 =
|
|
4310
|
+
let r3 = pu(n3, t2);
|
|
4303
4311
|
return { options: e2.options.map((e3) => e3.id === n3.id ? r3 : e3) };
|
|
4304
4312
|
}
|
|
4305
4313
|
let n2 = e2.modifiers[t2.groupingCustomizationId];
|
|
4306
4314
|
if (!n2) return;
|
|
4307
|
-
let r2 =
|
|
4315
|
+
let r2 = mu(n2, t2);
|
|
4308
4316
|
return { modifiers: { ...e2.modifiers, [t2.groupingCustomizationId]: r2 } };
|
|
4309
4317
|
}
|
|
4310
|
-
function
|
|
4318
|
+
function pu(e2, t2) {
|
|
4311
4319
|
return { ...e2, isGroupedOption: true, choices: t2.members.map((e3) => ({ ...e3.choice, inStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK` })) };
|
|
4312
4320
|
}
|
|
4313
|
-
function
|
|
4321
|
+
function mu(e2, t2) {
|
|
4314
4322
|
return { ...e2, choices: t2.members.map(({ choice: e3 }) => e3) };
|
|
4315
4323
|
}
|
|
4316
|
-
function
|
|
4324
|
+
function hu(e2, t2) {
|
|
4317
4325
|
if (!t2 || t2.customizationType !== $.PRODUCT_OPTION) return e2;
|
|
4318
4326
|
let n2 = Object.fromEntries(t2.members.map((e3) => [e3.choice.choiceId, { isInStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK`, isVisible: true }]));
|
|
4319
4327
|
return { ...e2, [t2.groupingCustomizationId]: { ...n2, ...e2[t2.groupingCustomizationId] } };
|
|
4320
4328
|
}
|
|
4321
|
-
function
|
|
4322
|
-
let i2 = (0, import_react.useMemo)(() =>
|
|
4329
|
+
function gu(e2, r2) {
|
|
4330
|
+
let i2 = (0, import_react.useMemo)(() => lu(e2, r2?.productGroup), [e2, r2?.productGroup]);
|
|
4323
4331
|
return { productGrouping: i2, selectGroupSiblingChoice: (0, import_react.useCallback)((e3) => {
|
|
4324
4332
|
if (!i2 || e3 === i2.currentProductChoiceId) return;
|
|
4325
|
-
let t2 =
|
|
4333
|
+
let t2 = uu(i2, e3);
|
|
4326
4334
|
t2 && r2?.selectProductGroupMember(t2.productId);
|
|
4327
|
-
}, [i2, r2?.selectProductGroupMember]), productCustomizations: (0, import_react.useMemo)(() =>
|
|
4335
|
+
}, [i2, r2?.selectProductGroupMember]), productCustomizations: (0, import_react.useMemo)(() => fu(e2, i2), [e2, i2]), addGroupChoicesAvailability: (0, import_react.useCallback)((e3) => hu(e3, i2), [i2]), initialSelection: (0, import_react.useMemo)(() => {
|
|
4328
4336
|
if (!i2) return { options: {}, modifiers: {} };
|
|
4329
4337
|
let { customizationType: t2, groupingCustomizationId: n2, currentProductChoiceId: r3 } = i2;
|
|
4330
4338
|
if (t2 === $.MODIFIER && e2.modifiers[n2].mandatory === false) return { options: {}, modifiers: {} };
|
|
@@ -4332,25 +4340,25 @@ function hu(e2, r2) {
|
|
|
4332
4340
|
return t2 === $.PRODUCT_OPTION ? { options: a2, modifiers: {} } : { options: {}, modifiers: a2 };
|
|
4333
4341
|
}, [i2, e2.modifiers]) };
|
|
4334
4342
|
}
|
|
4335
|
-
function
|
|
4336
|
-
let s2 =
|
|
4343
|
+
function _u({ product: e2, inventoryItems: i2, productGroupData: a2, hasLoadedVariants: o2 = true }) {
|
|
4344
|
+
let s2 = gu(e2, a2), { productGrouping: c2, selectGroupSiblingChoice: l2, addGroupChoicesAvailability: u2 } = s2, [d2, f2] = (0, import_react.useState)(() => s2.initialSelection.options), [p2, m2] = (0, import_react.useState)(() => s2.initialSelection.modifiers), [h2, g2] = (0, import_react.useState)(void 0), [_2, v2] = (0, import_react.useState)(1), [y2, b2] = (0, import_react.useState)(false), x2 = (0, import_react.useMemo)(() => $l(nu(e2.variants, i2)), [e2.variants, i2]), S2 = (0, import_react.useMemo)(() => {
|
|
4337
4345
|
let t2 = /* @__PURE__ */ new Map();
|
|
4338
4346
|
return (n2) => {
|
|
4339
|
-
let r2 =
|
|
4347
|
+
let r2 = Ql(n2), i3 = t2.get(r2);
|
|
4340
4348
|
if (i3) return i3;
|
|
4341
|
-
let a3 = u2(
|
|
4349
|
+
let a3 = u2(eu(e2.options, x2, n2));
|
|
4342
4350
|
return t2.set(r2, a3), a3;
|
|
4343
4351
|
};
|
|
4344
|
-
}, [x2, e2.options, u2])(o2 ? d2 : {}), C2 = (0, import_react.useMemo)(() => Object.keys(d2).length === e2.options.length ? x2.get(
|
|
4352
|
+
}, [x2, e2.options, u2])(o2 ? d2 : {}), C2 = (0, import_react.useMemo)(() => Object.keys(d2).length === e2.options.length ? x2.get(Ql(d2)) ?? null : null, [x2, d2, e2.options.length]), w2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4345
4353
|
if (d2[e3] !== t2) {
|
|
4346
|
-
if (
|
|
4354
|
+
if (du(c2, e3, t2)) {
|
|
4347
4355
|
l2(t2);
|
|
4348
4356
|
return;
|
|
4349
4357
|
}
|
|
4350
4358
|
f2((n2) => ({ ...n2, [e3]: t2 })), v2(1);
|
|
4351
4359
|
}
|
|
4352
4360
|
}, [d2, c2, l2]), T2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4353
|
-
if (
|
|
4361
|
+
if (du(c2, e3, t2)) {
|
|
4354
4362
|
l2(t2);
|
|
4355
4363
|
return;
|
|
4356
4364
|
}
|
|
@@ -4363,38 +4371,38 @@ function gu({ product: e2, inventoryItems: i2, productGroupData: a2, hasLoadedVa
|
|
|
4363
4371
|
});
|
|
4364
4372
|
}, []), D2 = (0, import_react.useCallback)((e3) => {
|
|
4365
4373
|
g2(e3);
|
|
4366
|
-
}, []), O2 = (0, import_react.useMemo)(() =>
|
|
4374
|
+
}, []), O2 = (0, import_react.useMemo)(() => Tc(C2), [C2]), k2 = (0, import_react.useMemo)(() => Ec(_2, O2), [_2, O2]), ee2 = (0, import_react.useCallback)((e3) => {
|
|
4367
4375
|
v2(e3);
|
|
4368
|
-
}, []), te2 = (0, import_react.useMemo)(() =>
|
|
4376
|
+
}, []), te2 = (0, import_react.useMemo)(() => ru({ product: e2, selections: { selectedOptions: d2, selectedModifiers: p2, selectedSubscriptionPlanId: h2, quantity: k2 }, selectedVariant: C2 }), [e2, d2, p2, h2, k2, C2]), ne2 = s2.productCustomizations?.options ?? e2.options, re2 = s2.productCustomizations?.modifiers ?? e2.modifiers;
|
|
4369
4377
|
return (0, import_react.useMemo)(() => ({ options: ne2, modifiers: re2, quantity: k2, selectedOptions: d2, selectedModifiers: p2, selectedSubscriptionPlanId: h2, selectedVariant: C2, selectedVariantId: C2?.id ?? null, selectionsAvailability: S2, maxPurchasableQuantity: O2, isSelectionValid: te2.valid, selectionValidationErrors: te2.fields, hasAttemptedSubmit: y2, setHasAttemptedSubmit: b2, selectOption: w2, selectModifier: T2, clearModifierSelection: E2, selectSubscriptionPlan: D2, selectQuantity: ee2, productGrouping: c2 }), [ne2, re2, k2, d2, p2, h2, C2, S2, O2, te2, y2, w2, T2, E2, D2, ee2, c2]);
|
|
4370
4378
|
}
|
|
4371
|
-
function
|
|
4372
|
-
let s2 =
|
|
4373
|
-
|
|
4379
|
+
function vu({ product: e2, inventoryItems: r2, productGroupData: i2, hasLoadedVariants: a2, requestVariants: o2 }) {
|
|
4380
|
+
let s2 = _u({ product: e2, inventoryItems: r2, productGroupData: i2, hasLoadedVariants: a2 }), { selectOption: c2, selectModifier: l2, selectSubscriptionPlan: u2, selectQuantity: d2, productGrouping: f2, ...p2 } = s2, m2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4381
|
+
du(f2, e3, t2) || o2(), c2(e3, t2);
|
|
4374
4382
|
}, [o2, c2, f2]), h2 = (0, import_react.useCallback)((e3, t2) => {
|
|
4375
|
-
|
|
4383
|
+
du(f2, e3, t2) || o2(), l2(e3, t2);
|
|
4376
4384
|
}, [o2, l2, f2]), g2 = (0, import_react.useCallback)((e3) => {
|
|
4377
4385
|
o2(), d2(e3);
|
|
4378
4386
|
}, [o2, d2]);
|
|
4379
4387
|
return (0, import_react.useMemo)(() => ({ ...p2, productGrouping: f2, selectOption: m2, selectModifier: h2, selectSubscriptionPlan: u2, selectQuantity: g2 }), [s2, m2, h2, u2, g2]);
|
|
4380
4388
|
}
|
|
4381
|
-
var
|
|
4382
|
-
function
|
|
4389
|
+
var yu = { subscriptionPlans: null, description: null, infoSections: null };
|
|
4390
|
+
function bu() {
|
|
4383
4391
|
return (0, import_product_context_provider.useProductContext)();
|
|
4384
4392
|
}
|
|
4385
|
-
function
|
|
4386
|
-
let i2 =
|
|
4387
|
-
return (0, import_react.useMemo)(() => ({ source:
|
|
4393
|
+
function xu({ product: e2, defaultLocationId: t2, productGroupData: r2 }) {
|
|
4394
|
+
let i2 = Sl(e2, t2, r2), a2 = vu(i2), o2 = Zl(i2.product, a2), s2 = al({ product: i2.product, userInputs: a2, hasLoadedVariants: i2.hasLoadedVariants }), c2 = Wc(i2.product, a2, s2);
|
|
4395
|
+
return (0, import_react.useMemo)(() => ({ source: ol.PRODUCT_ITEM, ...c2, ...o2, ...yu }), [c2, o2]);
|
|
4388
4396
|
}
|
|
4389
|
-
function
|
|
4390
|
-
let n2 =
|
|
4397
|
+
function Su({ productItem: e2, children: t2 }) {
|
|
4398
|
+
let n2 = xu(e2);
|
|
4391
4399
|
return (0, import_jsx_runtime.jsx)(import_product_context_provider.default, { value: n2, children: t2 });
|
|
4392
4400
|
}
|
|
4393
|
-
function
|
|
4394
|
-
let [n2] = (0, import_react.useState)(() => new
|
|
4395
|
-
return e2 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(
|
|
4401
|
+
function Cu({ productItem: e2, children: t2 }) {
|
|
4402
|
+
let [n2] = (0, import_react.useState)(() => new Fr());
|
|
4403
|
+
return e2 === void 0 ? (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: t2 }) : (0, import_jsx_runtime.jsx)(Rr, { client: n2, children: (0, import_jsx_runtime.jsx)(Su, { productItem: e2, children: t2 }, e2.product.id) });
|
|
4396
4404
|
}
|
|
4397
|
-
var
|
|
4405
|
+
var wu = Mn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
4398
4406
|
// Annotate the CommonJS export names for ESM import in node:
|
|
4399
4407
|
0 && (module.exports = {
|
|
4400
4408
|
ProductItemContextProvider,
|