@wix/stores 1.0.963 → 1.0.965
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_sdk-exports/context-category-by-slug-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-by-id-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug-context-provider/runtime.js +2 -2
- package/_sdk-exports/context-product-item-context-provider/runtime.js +2 -2
- package/build/cjs/context-category-by-slug-context-provider.js +3 -3
- package/build/cjs/context-category-by-slug-context-provider.js.map +1 -1
- package/build/cjs/context-product-by-id-context-provider.js +414 -412
- package/build/cjs/context-product-by-id-context-provider.js.map +1 -1
- package/build/cjs/context-product-by-slug-context-provider.js +428 -425
- package/build/cjs/context-product-by-slug-context-provider.js.map +1 -1
- package/build/cjs/context-product-item-context-provider.js +251 -249
- package/build/cjs/context-product-item-context-provider.js.map +1 -1
- package/build/es/context-category-by-slug-context-provider.mjs +3 -3
- package/build/es/context-category-by-slug-context-provider.mjs.map +1 -1
- package/build/es/context-product-by-id-context-provider.mjs +414 -412
- package/build/es/context-product-by-id-context-provider.mjs.map +1 -1
- package/build/es/context-product-by-slug-context-provider.mjs +428 -425
- package/build/es/context-product-by-slug-context-provider.mjs.map +1 -1
- package/build/es/context-product-item-context-provider.mjs +251 -249
- package/build/es/context-product-item-context-provider.mjs.map +1 -1
- package/package.json +4 -4
|
@@ -504,14 +504,14 @@ var Ze = qe;
|
|
|
504
504
|
function Qe(e2, t2) {
|
|
505
505
|
return e2?.split(`.`).map((e3) => t2?.[e3] ?? e3).join(`.`);
|
|
506
506
|
}
|
|
507
|
-
function
|
|
507
|
+
function j(e2, { transformSystemFields: t2 = true } = {}) {
|
|
508
508
|
return t2 ? Qe(e2, Ze) : e2;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function
|
|
512
|
-
return (e2 ===
|
|
510
|
+
var $e = `sort.fieldName`;
|
|
511
|
+
function et(e2, t2, n2) {
|
|
512
|
+
return (e2 === $e || e2.endsWith(`.${$e}`)) && typeof t2 == `string` ? Qe(t2, n2) : t2;
|
|
513
513
|
}
|
|
514
|
-
function
|
|
514
|
+
function tt(e2, t2, n2) {
|
|
515
515
|
let r2 = (e3) => n2.includes(e3), i2 = (e3, n3) => {
|
|
516
516
|
if (Array.isArray(e3)) e3.forEach((e4) => {
|
|
517
517
|
i2(e4, n3);
|
|
@@ -521,22 +521,22 @@ function nt(e2, t2, n2) {
|
|
|
521
521
|
Object.keys(a2).forEach((e4) => {
|
|
522
522
|
let o2 = n3 === `` ? e4 : `${n3}.${e4}`;
|
|
523
523
|
if (r2(o2)) return;
|
|
524
|
-
let s2 =
|
|
525
|
-
s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] =
|
|
524
|
+
let s2 = nt(e4, t2);
|
|
525
|
+
s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = et(o2, a2[s2], t2), i2(a2[s2], o2);
|
|
526
526
|
});
|
|
527
527
|
}
|
|
528
528
|
};
|
|
529
529
|
return i2(e2, ``), e2;
|
|
530
530
|
}
|
|
531
|
-
function
|
|
531
|
+
function nt(e2, t2) {
|
|
532
532
|
let n2;
|
|
533
533
|
return n2 = e2.includes(`.`) ? e2.split(`.`).map((e3) => t2[e3] ?? e3).join(`.`) : t2[e2] ?? e2, n2;
|
|
534
534
|
}
|
|
535
|
-
function
|
|
536
|
-
return
|
|
535
|
+
function rt(e2, t2 = []) {
|
|
536
|
+
return tt(e2, qe, t2);
|
|
537
537
|
}
|
|
538
538
|
function M(e2, t2 = []) {
|
|
539
|
-
return
|
|
539
|
+
return tt(e2, Je, t2);
|
|
540
540
|
}
|
|
541
541
|
function it(e2) {
|
|
542
542
|
return e2?.toISOString();
|
|
@@ -624,51 +624,51 @@ function wt(e2) {
|
|
|
624
624
|
var Tt = (e2) => `validationError` in (e2.response?.data?.details ?? {});
|
|
625
625
|
var Et = (e2) => `applicationError` in (e2.response?.data?.details ?? {});
|
|
626
626
|
var Dt = (e2) => (e2.response?.status ?? -1) >= 400 && (e2.response?.status ?? -1) < 500;
|
|
627
|
-
function
|
|
627
|
+
function Ot(e2, t2 = { explicitPathsToArguments: {}, spreadPathsToArguments: {}, singleArgumentUnchanged: false }, n2 = []) {
|
|
628
628
|
if (typeof e2 != `object` || !e2) throw e2;
|
|
629
|
-
if (Tt(e2)) return
|
|
630
|
-
if (Et(e2)) return
|
|
629
|
+
if (Tt(e2)) return kt(e2, t2, n2);
|
|
630
|
+
if (Et(e2)) return jt(e2);
|
|
631
631
|
if (Dt(e2)) {
|
|
632
632
|
let t3 = e2.response?.status, n3 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n3, i2 = { applicationError: { description: n3, code: yt(n3), data: {} }, requestId: e2.requestId };
|
|
633
|
-
return
|
|
633
|
+
return At(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
634
634
|
}
|
|
635
|
-
return
|
|
635
|
+
return Mt(e2);
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
639
|
-
return
|
|
637
|
+
var kt = (e2, t2, n2) => {
|
|
638
|
+
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 };
|
|
639
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: e2.response?.status, requestId: i2 } });
|
|
640
640
|
};
|
|
641
|
-
var
|
|
642
|
-
var
|
|
641
|
+
var At = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
|
|
642
|
+
var jt = (e2) => {
|
|
643
643
|
let t2 = e2.response?.status, n2 = e2.response?.statusText ?? `UNKNOWN`, r2 = e2.response?.data?.message ?? n2, i2 = e2.response?.data?.details?.applicationError?.description ?? n2, a2 = e2.response?.data?.details?.applicationError?.code ?? yt(n2), o2 = e2.response?.data?.details?.applicationError?.data ?? {}, s2 = r2 === i2 ? r2 : `${r2}: ${i2}`, c2 = { applicationError: { description: i2, code: a2, data: o2 }, requestId: e2.requestId };
|
|
644
|
-
return
|
|
644
|
+
return At(e2, { message: JSON.stringify({ message: s2, details: c2 }, null, 2), extraProperties: { details: c2, status: t2, requestId: e2.requestId } });
|
|
645
645
|
};
|
|
646
|
-
var
|
|
647
|
-
var
|
|
646
|
+
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: yt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
|
|
647
|
+
var Nt = ({ spreadPathsToArguments: e2, explicitPathsToArguments: t2, singleArgumentUnchanged: n2 }, r2, i2) => {
|
|
648
648
|
let a2 = { ...e2, ...t2 }, o2 = Object.keys(a2);
|
|
649
649
|
return r2?.filter((e3) => !r2.some((t3) => t3.field.length > e3.field.length && t3.field.startsWith(e3.field) && o2.includes(t3.field))).map((e3) => {
|
|
650
650
|
let r3 = t2[e3.field];
|
|
651
|
-
if (r3) return { ...e3, field:
|
|
651
|
+
if (r3) return { ...e3, field: Pt(r3, i2) };
|
|
652
652
|
let s2 = o2?.sort((e4, t3) => t3.length - e4.length)?.find((t3) => e3.field.startsWith(t3));
|
|
653
653
|
if (s2) {
|
|
654
654
|
let t3 = a2[s2];
|
|
655
|
-
if (t3) return { ...e3, field: e3.field.replace(s2,
|
|
655
|
+
if (t3) return { ...e3, field: e3.field.replace(s2, Pt(t3, i2)) };
|
|
656
656
|
}
|
|
657
657
|
return n2 ? { ...e3, field: `${i2[0]}.${e3.field}` } : e3;
|
|
658
658
|
});
|
|
659
659
|
};
|
|
660
|
-
var
|
|
661
|
-
let n2 =
|
|
660
|
+
var Pt = (e2, t2) => {
|
|
661
|
+
let n2 = Ft(e2);
|
|
662
662
|
return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var Ft = (e2) => {
|
|
665
665
|
let t2 = e2.match(/\$\[(?<argIndex>\d+)\]/);
|
|
666
666
|
return t2 && t2.groups && Number(t2.groups.argIndex);
|
|
667
667
|
};
|
|
668
|
-
function
|
|
668
|
+
function It() {
|
|
669
669
|
let e2 = typeof $wixContext < `u` && $wixContext.initWixModules ? $wixContext.initWixModules : globalThis.__wix_context__ !== void 0 && globalThis.__wix_context__.initWixModules ? globalThis.__wix_context__.initWixModules : void 0;
|
|
670
670
|
if (e2) return { initWixModules(t3, n3) {
|
|
671
|
-
return
|
|
671
|
+
return Lt(() => e2(t3, n3));
|
|
672
672
|
}, fetchWithAuth() {
|
|
673
673
|
throw Error(`fetchWithAuth is not available in this context`);
|
|
674
674
|
}, graphql() {
|
|
@@ -678,10 +678,10 @@ function Ft() {
|
|
|
678
678
|
if (t2 || n2) return { initWixModules(e3, r2) {
|
|
679
679
|
if (r2) {
|
|
680
680
|
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`);
|
|
681
|
-
return
|
|
681
|
+
return Lt(() => n2.use(e3));
|
|
682
682
|
}
|
|
683
683
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
684
|
-
return
|
|
684
|
+
return Lt(() => t2.use(e3));
|
|
685
685
|
}, fetchWithAuth: (e3, n3) => {
|
|
686
686
|
if (!t2) throw Error(`Wix context is not available. Make sure to initialize the Wix context before using SDK modules`);
|
|
687
687
|
return t2.fetchWithAuth(e3, n3);
|
|
@@ -693,7 +693,7 @@ function Ft() {
|
|
|
693
693
|
return t2.graphql(e3, n3, r2);
|
|
694
694
|
} };
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function Lt(e2) {
|
|
697
697
|
let t2 = globalThis.__wix_context__, n2 = { client: y.client, elevatedClient: y.elevatedClient }, r2;
|
|
698
698
|
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);
|
|
699
699
|
try {
|
|
@@ -702,108 +702,108 @@ function It(e2) {
|
|
|
702
702
|
globalThis.__wix_context__ = t2, y.client = n2.client, y.elevatedClient = n2.elevatedClient, typeof $wixContext < `u` && ($wixContext.client = r2.client, $wixContext.elevatedClient = r2.elevatedClient);
|
|
703
703
|
}
|
|
704
704
|
}
|
|
705
|
-
function
|
|
705
|
+
function Rt(e2, t2) {
|
|
706
706
|
return (...n2) => {
|
|
707
|
-
let r2 =
|
|
707
|
+
let r2 = It();
|
|
708
708
|
return r2 ? r2.initWixModules(e2, t2).apply(void 0, n2) : e2.apply(void 0, n2);
|
|
709
709
|
};
|
|
710
710
|
}
|
|
711
|
-
function
|
|
711
|
+
function zt(e2) {
|
|
712
712
|
let t2 = (...t3) => {
|
|
713
|
-
let n2 =
|
|
713
|
+
let n2 = It();
|
|
714
714
|
return n2 ? n2.initWixModules(e2).apply(void 0, t3) : () => ({ slug: e2.type });
|
|
715
715
|
};
|
|
716
716
|
return t2.__type = e2.__type, t2.type = e2.type, t2.isDomainEvent = e2.isDomainEvent, t2.transformations = e2.transformations, t2;
|
|
717
717
|
}
|
|
718
|
-
function
|
|
719
|
-
return
|
|
718
|
+
function Bt(e2, t2 = false) {
|
|
719
|
+
return Rt(e2, t2);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
let n2 =
|
|
723
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
721
|
+
function Vt(e2, t2) {
|
|
722
|
+
let n2 = Ut(e2), r2 = Object.entries(n2).some(([e3, t3]) => e3.includes(`.`) || Array.isArray(t3) && t3.some((e4) => typeof e4 == `object`));
|
|
723
|
+
return t2 && r2 ? new URLSearchParams({ ".r": Gt(JSON.stringify(e2)) }) : Object.entries(n2).reduce((e3, [t3, n3]) => ((Array.isArray(n3) ? n3 : [n3]).forEach((r3) => {
|
|
724
724
|
r3 == null || Array.isArray(n3) && typeof r3 == `object` || e3.append(t3, r3);
|
|
725
725
|
}), e3), new URLSearchParams());
|
|
726
726
|
}
|
|
727
|
-
function
|
|
728
|
-
let t2 =
|
|
729
|
-
return
|
|
727
|
+
function Ht(e2) {
|
|
728
|
+
let t2 = an(nn(e2.host), e2.domainToMappings);
|
|
729
|
+
return mn(dn(e2.protoPath, e2.data || {}), t2);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Ut(e2, t2 = ``) {
|
|
732
732
|
let n2 = {};
|
|
733
733
|
return Object.entries(e2).forEach(([e3, r2]) => {
|
|
734
|
-
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 =
|
|
734
|
+
let i2 = typeof r2 == `object` && !!r2 && !Array.isArray(r2), a2 = Wt(t2, e3);
|
|
735
735
|
if (i2) {
|
|
736
|
-
let e4 =
|
|
736
|
+
let e4 = Ut(r2, a2);
|
|
737
737
|
Object.assign(n2, e4);
|
|
738
738
|
} else n2[a2] = r2;
|
|
739
739
|
}), n2;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Wt(e2, t2) {
|
|
742
742
|
return `${e2}${e2 ? `.` : ``}${t2}`;
|
|
743
743
|
}
|
|
744
|
-
var
|
|
744
|
+
var Gt = (e2) => {
|
|
745
745
|
let t2 = new TextEncoder().encode(e2);
|
|
746
746
|
return (typeof btoa < `u` ? btoa(String.fromCodePoint(...t2)) : Buffer.from(e2, `utf-8`).toString(`base64`)).replace(/=/g, ``).replace(/\+/g, `-`).replace(/\//g, `_`);
|
|
747
747
|
};
|
|
748
|
-
var
|
|
749
|
-
var
|
|
750
|
-
var
|
|
751
|
-
var
|
|
752
|
-
var
|
|
753
|
-
var
|
|
754
|
-
var
|
|
755
|
-
var
|
|
756
|
-
var
|
|
757
|
-
var
|
|
758
|
-
function tn(e2) {
|
|
759
|
-
return nn(e2).replace(Jt, `._base_domain_`).replace($t, `._api_base_domain_`).replace(en, `*.dev.wix-code.com`);
|
|
760
|
-
}
|
|
748
|
+
var Kt = [`wix.com`, `editorx.com`];
|
|
749
|
+
var qt = `_`;
|
|
750
|
+
var Jt = `*.`;
|
|
751
|
+
var Yt = RegExp(`\\.(${Kt.join(`|`)})$`);
|
|
752
|
+
var Xt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
753
|
+
var Zt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
754
|
+
var Qt = `dev.wix-code.com`;
|
|
755
|
+
var $t = /{(.*)}/;
|
|
756
|
+
var en = RegExp(`\\.(${Xt.join(`|`)})$`);
|
|
757
|
+
var tn = RegExp(`.*\\.${Qt}$`);
|
|
761
758
|
function nn(e2) {
|
|
762
|
-
return
|
|
759
|
+
return rn(e2).replace(Yt, `._base_domain_`).replace(en, `._api_base_domain_`).replace(tn, `*.dev.wix-code.com`);
|
|
763
760
|
}
|
|
764
|
-
function rn(e2
|
|
761
|
+
function rn(e2) {
|
|
762
|
+
return Zt[e2] ?? e2;
|
|
763
|
+
}
|
|
764
|
+
function an(e2, t2) {
|
|
765
765
|
let n2 = t2[e2];
|
|
766
766
|
if (n2) return n2;
|
|
767
|
-
let r2 =
|
|
767
|
+
let r2 = on(e2, t2) ?? sn(e2, t2);
|
|
768
768
|
if (!r2) {
|
|
769
|
-
if (
|
|
770
|
-
let e3 = t2[
|
|
769
|
+
if (ln(e2)) {
|
|
770
|
+
let e3 = t2[un];
|
|
771
771
|
if (e3) return e3;
|
|
772
772
|
}
|
|
773
|
-
let n3 = t2[
|
|
773
|
+
let n3 = t2[qt];
|
|
774
774
|
if (n3) return n3;
|
|
775
775
|
}
|
|
776
776
|
return r2 ?? [];
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function on(e2, t2) {
|
|
779
779
|
return Object.entries(t2).find(([t3]) => {
|
|
780
780
|
let [, ...n2] = e2.split(`.`);
|
|
781
781
|
return n2.join(`.`) === t3;
|
|
782
782
|
})?.[1];
|
|
783
783
|
}
|
|
784
|
-
function
|
|
785
|
-
let [n2] = Object.entries(t2).filter(([t3]) =>
|
|
784
|
+
function sn(e2, t2) {
|
|
785
|
+
let [n2] = Object.entries(t2).filter(([t3]) => cn(e2, t3)).sort(([e3], [t3]) => t3.length - e3.length);
|
|
786
786
|
if (!n2) return;
|
|
787
787
|
let [, r2] = n2;
|
|
788
788
|
return r2;
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
if (!t2.startsWith(
|
|
790
|
+
function cn(e2, t2) {
|
|
791
|
+
if (!t2.startsWith(Jt)) return false;
|
|
792
792
|
let n2 = t2.slice(1);
|
|
793
793
|
return e2.length > n2.length && e2.endsWith(n2);
|
|
794
794
|
}
|
|
795
|
-
function
|
|
795
|
+
function ln(e2) {
|
|
796
796
|
return !!e2.match(/\._base_domain_$/);
|
|
797
797
|
}
|
|
798
|
-
var
|
|
799
|
-
function un(e2, t2) {
|
|
800
|
-
return e2.split(`/`).map((e3) => dn(e3, t2)).join(`/`);
|
|
801
|
-
}
|
|
798
|
+
var un = `www._base_domain_`;
|
|
802
799
|
function dn(e2, t2) {
|
|
803
|
-
|
|
804
|
-
return r2 ? fn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
800
|
+
return e2.split(`/`).map((e3) => fn(e3, t2)).join(`/`);
|
|
805
801
|
}
|
|
806
|
-
function fn(e2, t2
|
|
802
|
+
function fn(e2, t2) {
|
|
803
|
+
let n2 = e2.match($t) || [], r2 = n2[1];
|
|
804
|
+
return r2 ? pn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
805
|
+
}
|
|
806
|
+
function pn(e2, t2, n2, r2) {
|
|
807
807
|
let i2 = e2;
|
|
808
808
|
for (let e3 of t2.split(`.`)) {
|
|
809
809
|
if (!i2) return n2;
|
|
@@ -811,17 +811,17 @@ function fn(e2, t2, n2, r2) {
|
|
|
811
811
|
}
|
|
812
812
|
return `${i2}${r2}`;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function mn(e2, t2) {
|
|
815
815
|
let n2 = t2?.find((t3) => e2.startsWith(t3.destPath));
|
|
816
816
|
return n2 ? n2.srcPath + e2.slice(n2.destPath.length) : e2;
|
|
817
817
|
}
|
|
818
|
-
function
|
|
819
|
-
return
|
|
818
|
+
function F(e2) {
|
|
819
|
+
return zt(e2);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function hn(e2) {
|
|
822
822
|
return isFinite(e2) ? e2 : e2.toString();
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function I(e2) {
|
|
825
825
|
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
826
826
|
}
|
|
827
827
|
function gn(e2) {
|
|
@@ -3357,7 +3357,7 @@ function J(e2, t2) {
|
|
|
3357
3357
|
return n2 ? t2.replace(n2, e2[n2]) : Qe(t2, { ...e2, ...Ze });
|
|
3358
3358
|
}
|
|
3359
3359
|
function Io(e2, t2, n2 = {}) {
|
|
3360
|
-
let r2 = (r3, i3) => Io(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [
|
|
3360
|
+
let r2 = (r3, i3) => Io(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [j(e2, t2)]: n2 };
|
|
3361
3361
|
return { get filter() {
|
|
3362
3362
|
return i2();
|
|
3363
3363
|
}, 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) };
|
|
@@ -3366,14 +3366,14 @@ function Lo(e2) {
|
|
|
3366
3366
|
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 } }) });
|
|
3367
3367
|
}
|
|
3368
3368
|
function Ro(e2) {
|
|
3369
|
-
return (t2) => ({ asc: () => ({ sort: { fieldName:
|
|
3369
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: j(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: j(t2, e2), order: `DESC` } }) });
|
|
3370
3370
|
}
|
|
3371
3371
|
function zo(e2) {
|
|
3372
3372
|
return () => {
|
|
3373
3373
|
let t2 = {}, n2 = { withFilter(e3) {
|
|
3374
3374
|
return t2 = { ...t2, filter: e3.filter }, n2;
|
|
3375
3375
|
}, withFields(...r2) {
|
|
3376
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
3376
|
+
return t2 = { ...t2, fields: r2.map((t3) => j(t3, e2)) }, n2;
|
|
3377
3377
|
}, withSorting(...e3) {
|
|
3378
3378
|
return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
|
|
3379
3379
|
}, withPaging(e3) {
|
|
@@ -3443,7 +3443,7 @@ function es(e2) {
|
|
|
3443
3443
|
}, mode(e3) {
|
|
3444
3444
|
return t2 = { ...t2, mode: e3 }, n2;
|
|
3445
3445
|
}, fields(r2) {
|
|
3446
|
-
return t2 = { ...t2, fields: r2.map((t3) =>
|
|
3446
|
+
return t2 = { ...t2, fields: r2.map((t3) => j(t3, e2)) }, n2;
|
|
3447
3447
|
}, fuzzy(e3 = true) {
|
|
3448
3448
|
return t2 = { ...t2, fuzzy: e3 }, n2;
|
|
3449
3449
|
} };
|
|
@@ -3510,7 +3510,7 @@ function ss(e2, t2) {
|
|
|
3510
3510
|
}, ofType(e3) {
|
|
3511
3511
|
return n2 = { ...n2, type: e3 }, r2;
|
|
3512
3512
|
}, onField(e3) {
|
|
3513
|
-
return n2 = { ...n2, fieldPath:
|
|
3513
|
+
return n2 = { ...n2, fieldPath: j(e3, t2) }, r2;
|
|
3514
3514
|
}, asValueAggregation() {
|
|
3515
3515
|
return ns(n2);
|
|
3516
3516
|
}, asRangeAggregation() {
|
|
@@ -3551,24 +3551,24 @@ function us(e2) {
|
|
|
3551
3551
|
return { SearchBuilder: ls(), Filter: Lo(e2), Sort: Ro(e2), SearchParams: ts(e2), Aggregation: cs(e2) };
|
|
3552
3552
|
}
|
|
3553
3553
|
function ds(e2) {
|
|
3554
|
-
return
|
|
3554
|
+
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` }] } }));
|
|
3555
3555
|
}
|
|
3556
3556
|
var fs = `@wix/auto_sdk_ecom_back-in-stock-notifications`;
|
|
3557
3557
|
function ps(e2) {
|
|
3558
3558
|
function t2({ host: t3 }) {
|
|
3559
|
-
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn:
|
|
3559
|
+
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `request.createdDate` }, { path: `itemDetails.image.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `itemDetails.image.focalPoint.x` }, { path: `itemDetails.image.focalPoint.y` }] }]);
|
|
3560
3560
|
return { entityFqdn: `wix.ecom.v1.back_in_stock_notification_request`, method: `POST`, methodFqn: `com.wixpress.ecom.back.in.stock.BackInStockNotificationRequestService.CreateBackInStockNotificationRequest`, packageName: fs, migrationOptions: { optInTransformResponse: true }, url: ds({ protoPath: `/v1/back-in-stock-notification-requests`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `request.createdDate` }] }]) };
|
|
3561
3561
|
}
|
|
3562
3562
|
return t2;
|
|
3563
3563
|
}
|
|
3564
3564
|
async function ms(e2, t2) {
|
|
3565
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ps(P(
|
|
3565
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = ps(P(rt({ request: e2, itemDetails: t2 }), [{ transformFn: $o, paths: [{ path: `itemDetails.image` }] }]));
|
|
3566
3566
|
r2?.onSiteCall?.();
|
|
3567
3567
|
try {
|
|
3568
3568
|
let e3 = await n2.request(i2);
|
|
3569
3569
|
return r2?.onSuccess?.(e3), M(e3.data)?.request;
|
|
3570
3570
|
} catch (e3) {
|
|
3571
|
-
let t3 =
|
|
3571
|
+
let t3 = Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { request: `$[0]`, itemDetails: `$[1]` }, singleArgumentUnchanged: false }, [`request`, `itemDetails`]);
|
|
3572
3572
|
throw r2?.onError?.(e3), t3;
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
@@ -3579,8 +3579,8 @@ function hs(e2) {
|
|
|
3579
3579
|
var gs = b(`wix.ecom.v1.back_in_stock_notification_request_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3580
3580
|
var _s = b(`wix.ecom.v1.back_in_stock_notification_request_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `undefined.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3581
3581
|
var vs = b(`wix.ecom.v1.back_in_stock_notification_request_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3582
|
-
var ys =
|
|
3583
|
-
|
|
3582
|
+
var ys = Bt(hs);
|
|
3583
|
+
F(gs), F(_s), F(vs);
|
|
3584
3584
|
function bs(e2) {
|
|
3585
3585
|
if (!e2) return;
|
|
3586
3586
|
let { pathname: t2 } = new URL(e2);
|
|
@@ -3590,58 +3590,58 @@ function X(e2) {
|
|
|
3590
3590
|
if (e2) return e2.url;
|
|
3591
3591
|
}
|
|
3592
3592
|
function xs(e2) {
|
|
3593
|
-
return
|
|
3593
|
+
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: `` }] } }));
|
|
3594
3594
|
}
|
|
3595
3595
|
var Ss = `@wix/auto_sdk_ecom_cart-v-2`;
|
|
3596
3596
|
function Cs(e2) {
|
|
3597
3597
|
function t2({ host: t3 }) {
|
|
3598
|
-
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn:
|
|
3599
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ss, migrationOptions: { optInTransformResponse: true }, url: xs({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn:
|
|
3598
|
+
let n2 = P(e2, [{ transformFn: it, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }, { path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }, { transformFn: 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` }] }]);
|
|
3599
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CartService.CreateCart`, packageName: Ss, migrationOptions: { optInTransformResponse: true }, url: xs({ protoPath: `/v2/carts`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: I, 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` }] }]) };
|
|
3600
3600
|
}
|
|
3601
3601
|
return t2;
|
|
3602
3602
|
}
|
|
3603
3603
|
var ws = ((e2) => (e2.UNSPECIFIED = `UNSPECIFIED`, e2.WEB = `WEB`, e2.POS = `POS`, e2.EBAY = `EBAY`, e2.AMAZON = `AMAZON`, e2.OTHER_PLATFORM = `OTHER_PLATFORM`, e2.WIX_APP_STORE = `WIX_APP_STORE`, e2.WIX_INVOICES = `WIX_INVOICES`, e2.BACKOFFICE_MERCHANT = `BACKOFFICE_MERCHANT`, e2.WISH = `WISH`, e2.CLASS_PASS = `CLASS_PASS`, e2.GLOBAL_E = `GLOBAL_E`, e2.FACEBOOK = `FACEBOOK`, e2.ETSY = `ETSY`, e2.TIKTOK = `TIKTOK`, e2.FAIRE_COM = `FAIRE_COM`, e2.PAYPAL_AGENTIC_CHECKOUT = `PAYPAL_AGENTIC_CHECKOUT`, e2.STRIPE_AGENTIC_CHECKOUT = `STRIPE_AGENTIC_CHECKOUT`, e2.WIX_INVOICES_PLATFORM = `WIX_INVOICES_PLATFORM`, e2.UCP_AGENTIC_CHECKOUT = `UCP_AGENTIC_CHECKOUT`, e2))(ws || {});
|
|
3604
3604
|
async function Ts(e2) {
|
|
3605
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Cs(P(
|
|
3605
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Cs(P(rt({ cart: e2?.cart, catalogItems: e2?.catalogItems, customItems: e2?.customItems, coupons: e2?.coupons, deliveryMethod: e2?.deliveryMethod, giftCards: e2?.giftCards }), [{ transformFn: $o, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }, { path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `cart.lineItems.attributes.url` }, { path: `customItems.attributes.url` }] }, { transformFn: gn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3606
3606
|
n2?.onSiteCall?.();
|
|
3607
3607
|
try {
|
|
3608
3608
|
let e3 = await t2.request(r2);
|
|
3609
3609
|
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: Y, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]))?.cart;
|
|
3610
3610
|
} catch (e3) {
|
|
3611
|
-
let t3 =
|
|
3611
|
+
let t3 = Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { cart: `$[0].cart`, catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems`, coupons: `$[0].coupons`, deliveryMethod: `$[0].deliveryMethod`, giftCards: `$[0].giftCards` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3612
3612
|
throw n2?.onError?.(e3), t3;
|
|
3613
3613
|
}
|
|
3614
3614
|
}
|
|
3615
3615
|
function Es(e2) {
|
|
3616
3616
|
return (t2) => Ts(t2, { httpClient: e2 });
|
|
3617
3617
|
}
|
|
3618
|
-
var Ds =
|
|
3618
|
+
var Ds = Bt(Es);
|
|
3619
3619
|
function Os(e2) {
|
|
3620
|
-
return
|
|
3620
|
+
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: `` }] } }));
|
|
3621
3621
|
}
|
|
3622
3622
|
var ks = `@wix/auto_sdk_ecom_current-cart-v-2`;
|
|
3623
3623
|
function As(e2) {
|
|
3624
3624
|
function t2({ host: t3 }) {
|
|
3625
|
-
let n2 = P(e2, [{ transformFn:
|
|
3626
|
-
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: ks, migrationOptions: { optInTransformResponse: true }, url: Os({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn:
|
|
3625
|
+
let n2 = P(e2, [{ transformFn: hn, paths: [{ path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }, { transformFn: it, paths: [{ path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }]);
|
|
3626
|
+
return { entityFqdn: `wix.ecom.v2.cart`, method: `POST`, methodFqn: `wix.ecom.cart.v2.CurrentCartService.AddLineItemsToCurrentCart`, packageName: ks, migrationOptions: { optInTransformResponse: true }, url: Os({ protoPath: `/v2/carts/current/add-line-items`, data: n2, host: t3 }), data: n2, transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `cart.createdDate` }, { path: `cart.updatedDate` }, { path: `cart.lineItems.source.catalogOverrideFields.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.image.urlExpirationDate` }, { path: `cart.lineItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }, { path: `cart.lineItems.attributes.serviceProperties.scheduledDate` }, { path: `cart.lineItems.attributes.serviceProperties.endDate` }] }, { transformFn: I, 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` }] }]) };
|
|
3627
3627
|
}
|
|
3628
3628
|
return t2;
|
|
3629
3629
|
}
|
|
3630
3630
|
async function js(e2) {
|
|
3631
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = As(P(
|
|
3631
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = As(P(rt({ catalogItems: e2?.catalogItems, customItems: e2?.customItems }), [{ transformFn: $o, paths: [{ path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `customItems.attributes.url` }] }]));
|
|
3632
3632
|
n2?.onSiteCall?.();
|
|
3633
3633
|
try {
|
|
3634
3634
|
let e3 = await t2.request(r2);
|
|
3635
3635
|
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: Y, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3636
3636
|
} catch (e3) {
|
|
3637
|
-
let t3 =
|
|
3637
|
+
let t3 = Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems` }, singleArgumentUnchanged: false }, [`options`]);
|
|
3638
3638
|
throw n2?.onError?.(e3), t3;
|
|
3639
3639
|
}
|
|
3640
3640
|
}
|
|
3641
3641
|
function Ms(e2) {
|
|
3642
3642
|
return (t2) => js(t2, { httpClient: e2 });
|
|
3643
3643
|
}
|
|
3644
|
-
var Ns =
|
|
3644
|
+
var Ns = Bt(Ms);
|
|
3645
3645
|
var Ps = `BACK_IN_STOCK_NOTIFICATION_REQUEST_ALREADY_EXISTS`;
|
|
3646
3646
|
function Fs(e2) {
|
|
3647
3647
|
return e2?.details?.applicationError?.code ?? `UNKNOWN`;
|
|
@@ -3714,12 +3714,12 @@ function Js(e2) {
|
|
|
3714
3714
|
return e2.id ? `wix:video://v1/${e2.id}${t2}${n2}` : e2.url;
|
|
3715
3715
|
}
|
|
3716
3716
|
function Ys(e2) {
|
|
3717
|
-
return
|
|
3717
|
+
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: `` }] } }));
|
|
3718
3718
|
}
|
|
3719
3719
|
var Xs = `@wix/auto_sdk_stores_inventory-items-v-3`;
|
|
3720
3720
|
function Zs(e2) {
|
|
3721
3721
|
function t2({ host: t3 }) {
|
|
3722
|
-
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: Xs, migrationOptions: { optInTransformResponse: true }, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params:
|
|
3722
|
+
return { entityFqdn: `wix.stores.catalog.v3.inventory_item`, method: `GET`, methodFqn: `com.wix.stores.catalog.inventory.api.v3.InventoryService.QueryInventoryItems`, packageName: Xs, migrationOptions: { optInTransformResponse: true }, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), params: Vt(e2, true), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `inventoryItems.createdDate` }, { path: `inventoryItems.updatedDate` }] }]), fallback: [{ method: `POST`, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), data: e2 }] };
|
|
3723
3723
|
}
|
|
3724
3724
|
return t2;
|
|
3725
3725
|
}
|
|
@@ -3737,22 +3737,22 @@ function Qs() {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
}, requestTransformer: (e3) => {
|
|
3739
3739
|
let t3 = [e3, {}];
|
|
3740
|
-
return
|
|
3740
|
+
return rt({ ...t3?.[1], query: t3?.[0] });
|
|
3741
3741
|
}, responseTransformer: ({ data: e3 }) => {
|
|
3742
3742
|
let t3 = M(P(e3, []));
|
|
3743
3743
|
return { items: t3?.inventoryItems, pagingMetadata: t3?.pagingMetadata };
|
|
3744
3744
|
}, errorTransformer: (e3) => {
|
|
3745
|
-
throw
|
|
3745
|
+
throw Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false });
|
|
3746
3746
|
}, pagingMethod: `CURSOR`, transformationPaths: {} });
|
|
3747
3747
|
}
|
|
3748
3748
|
async function $s(e2) {
|
|
3749
|
-
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Zs(
|
|
3749
|
+
let { httpClient: t2, sideEffects: n2 } = arguments[1], r2 = Zs(rt({ query: e2 }));
|
|
3750
3750
|
n2?.onSiteCall?.();
|
|
3751
3751
|
try {
|
|
3752
3752
|
let e3 = await t2.request(r2);
|
|
3753
3753
|
return n2?.onSuccess?.(e3), M(e3.data);
|
|
3754
3754
|
} catch (e3) {
|
|
3755
|
-
let t3 =
|
|
3755
|
+
let t3 = Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
3756
3756
|
throw n2?.onError?.(e3), t3;
|
|
3757
3757
|
}
|
|
3758
3758
|
}
|
|
@@ -3775,15 +3775,15 @@ function sc(e2) {
|
|
|
3775
3775
|
}
|
|
3776
3776
|
return n2;
|
|
3777
3777
|
}
|
|
3778
|
-
var cc =
|
|
3779
|
-
|
|
3778
|
+
var cc = Bt(sc);
|
|
3779
|
+
F(nc), F(rc), F(ic), F(ac), F(oc);
|
|
3780
3780
|
function lc(e2) {
|
|
3781
|
-
return
|
|
3781
|
+
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: `` }] } }));
|
|
3782
3782
|
}
|
|
3783
3783
|
var uc = `@wix/auto_sdk_stores_products-v-3`;
|
|
3784
3784
|
function dc(e2) {
|
|
3785
3785
|
function t2({ host: t3 }) {
|
|
3786
|
-
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: uc, migrationOptions: { optInTransformResponse: true }, url: lc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Bt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: hn, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3786
|
+
return { entityFqdn: `wix.stores.catalog.v3.product`, method: `GET`, methodFqn: `wix.stores.catalog.v3.CatalogApi.GetProduct`, packageName: uc, migrationOptions: { optInTransformResponse: true }, url: lc({ protoPath: `/v3/products/{productId}`, data: e2, host: t3 }), params: Vt(e2), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `product.createdDate` }, { path: `product.updatedDate` }, { path: `product.description.metadata.createdTimestamp` }, { path: `product.description.metadata.updatedTimestamp` }, { path: `product.media.main.image.urlExpirationDate` }, { path: `product.media.main.video.urlExpirationDate` }, { path: `product.media.main.video.resolutions.urlExpirationDate` }, { path: `product.media.main.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.main.video.posters.urlExpirationDate` }, { path: `product.media.itemsInfo.items.image.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.resolutions.poster.urlExpirationDate` }, { path: `product.media.itemsInfo.items.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.options.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.resolutions.poster.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video.posters.urlExpirationDate` }, { path: `product.modifiers.choicesSettings.choices.displayImage.urlExpirationDate` }, { path: `product.infoSections.description.metadata.createdTimestamp` }, { path: `product.infoSections.description.metadata.updatedTimestamp` }, { path: `product.variantsInfo.variants.media.image.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantsInfo.variants.media.video.posters.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.image.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.resolutions.poster.urlExpirationDate` }, { path: `product.variantSummary.minPriceVariant.media.video.posters.urlExpirationDate` }] }, { transformFn: I, paths: [{ path: `product.physicalProperties.pricePerUnit.quantity` }, { path: `product.physicalProperties.shippingWeightRange.minValue` }, { path: `product.physicalProperties.shippingWeightRange.maxValue` }, { path: `product.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `product.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `product.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `product.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `product.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.description.nodes.galleryData.items.image.media.duration` }, { path: `product.description.nodes.galleryData.items.video.media.duration` }, { path: `product.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.description.nodes.galleryData.options.item.ratio` }, { path: `product.description.nodes.imageData.image.duration` }, { path: `product.description.nodes.imageData.crop.x` }, { path: `product.description.nodes.imageData.crop.y` }, { path: `product.description.nodes.imageData.crop.width` }, { path: `product.description.nodes.imageData.crop.height` }, { path: `product.description.nodes.mapData.mapSettings.lat` }, { path: `product.description.nodes.mapData.mapSettings.lng` }, { path: `product.description.nodes.pollData.poll.image.duration` }, { path: `product.description.nodes.pollData.poll.options.image.duration` }, { path: `product.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.description.nodes.appEmbedData.image.duration` }, { path: `product.description.nodes.videoData.video.duration` }, { path: `product.description.nodes.videoData.thumbnail.duration` }, { path: `product.description.nodes.audioData.audio.duration` }, { path: `product.description.nodes.audioData.coverImage.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.description.nodes.shapeData.shape.duration` }, { path: `product.description.nodes.cardData.background.gradient.centerX` }, { path: `product.description.nodes.cardData.background.gradient.centerY` }, { path: `product.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.description.nodes.tocData.fontSize` }, { path: `product.description.nodes.tocData.itemSpacing` }, { path: `product.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `product.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `product.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `product.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `product.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `product.infoSections.description.nodes.imageData.image.duration` }, { path: `product.infoSections.description.nodes.imageData.crop.x` }, { path: `product.infoSections.description.nodes.imageData.crop.y` }, { path: `product.infoSections.description.nodes.imageData.crop.width` }, { path: `product.infoSections.description.nodes.imageData.crop.height` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `product.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `product.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `product.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `product.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `product.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `product.infoSections.description.nodes.videoData.video.duration` }, { path: `product.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `product.infoSections.description.nodes.audioData.audio.duration` }, { path: `product.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `product.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `product.infoSections.description.nodes.shapeData.shape.duration` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `product.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `product.infoSections.description.nodes.tocData.fontSize` }, { path: `product.infoSections.description.nodes.tocData.itemSpacing` }, { path: `product.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `product.variantsInfo.variants.physicalProperties.weight` }, { path: `product.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `product.minVariantPriceInfo.weight` }] }]) };
|
|
3787
3787
|
}
|
|
3788
3788
|
return t2;
|
|
3789
3789
|
}
|
|
@@ -3792,13 +3792,13 @@ var pc = ((e2) => (e2.IN_STOCK = `IN_STOCK`, e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e
|
|
|
3792
3792
|
var mc = ((e2) => (e2.ALL_VARIANTS = `ALL_VARIANTS`, e2.NO_VARIANTS = `NO_VARIANTS`, e2.SOME_VARIANTS = `SOME_VARIANTS`, e2))(mc || {});
|
|
3793
3793
|
var hc = ((e2) => (e2.URL = `URL`, e2.CURRENCY = `CURRENCY`, e2.INFO_SECTION = `INFO_SECTION`, e2.MERCHANT_DATA = `MERCHANT_DATA`, e2.PLAIN_DESCRIPTION = `PLAIN_DESCRIPTION`, e2.INFO_SECTION_PLAIN_DESCRIPTION = `INFO_SECTION_PLAIN_DESCRIPTION`, e2.SUBSCRIPTION_PRICES_INFO = `SUBSCRIPTION_PRICES_INFO`, e2.BREADCRUMBS_INFO = `BREADCRUMBS_INFO`, e2.WEIGHT_MEASUREMENT_UNIT_INFO = `WEIGHT_MEASUREMENT_UNIT_INFO`, e2.VARIANT_OPTION_CHOICE_NAMES = `VARIANT_OPTION_CHOICE_NAMES`, e2.MEDIA_ITEMS_INFO = `MEDIA_ITEMS_INFO`, e2.DESCRIPTION = `DESCRIPTION`, e2.DIRECT_CATEGORIES_INFO = `DIRECT_CATEGORIES_INFO`, e2.ALL_CATEGORIES_INFO = `ALL_CATEGORIES_INFO`, e2.INFO_SECTION_DESCRIPTION = `INFO_SECTION_DESCRIPTION`, e2.THUMBNAIL = `THUMBNAIL`, e2.PRODUCT_CHOICES_MEDIA_REFERENCES = `PRODUCT_CHOICES_MEDIA_REFERENCES`, e2.PRODUCT_CHOICES_DISPLAY_IMAGE = `PRODUCT_CHOICES_DISPLAY_IMAGE`, e2.MIN_PRICE_VARIANT = `MIN_PRICE_VARIANT`, e2.DISCOUNT_INFO = `DISCOUNT_INFO`, e2))(hc || {});
|
|
3794
3794
|
async function gc(e2, t2) {
|
|
3795
|
-
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = dc(
|
|
3795
|
+
let { httpClient: n2, sideEffects: r2 } = arguments[2], i2 = dc(rt({ productId: e2, fields: t2?.fields }, []));
|
|
3796
3796
|
r2?.onSiteCall?.();
|
|
3797
3797
|
try {
|
|
3798
3798
|
let e3 = await n2.request(i2);
|
|
3799
3799
|
return r2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: X, paths: [{ path: `product.url` }] }, { transformFn: Y, paths: [{ path: `product.media.main.image` }, { path: `product.media.itemsInfo.items.image` }, { path: `product.options.choicesSettings.choices.image` }, { path: `product.options.choicesSettings.choices.displayImage` }, { path: `product.options.choicesSettings.choices.linkedMedia.image` }, { path: `product.modifiers.choicesSettings.choices.image` }, { path: `product.modifiers.choicesSettings.choices.displayImage` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `product.variantsInfo.variants.media.image` }, { path: `product.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `product.media.main.video` }, { path: `product.media.itemsInfo.items.video` }, { path: `product.options.choicesSettings.choices.linkedMedia.video` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `product.variantsInfo.variants.media.video` }, { path: `product.variantSummary.minPriceVariant.media.video` }] }]), [`product.description`, `product.infoSections.description`])?.product;
|
|
3800
3800
|
} catch (e3) {
|
|
3801
|
-
let t3 =
|
|
3801
|
+
let t3 = Ot(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { productId: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`productId`, `options`]);
|
|
3802
3802
|
throw r2?.onError?.(e3), t3;
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
@@ -3806,11 +3806,11 @@ async function gc(e2, t2) {
|
|
|
3806
3806
|
function _c(e2) {
|
|
3807
3807
|
return (t2, n2) => gc(t2, n2, { httpClient: e2 });
|
|
3808
3808
|
}
|
|
3809
|
-
var vc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3810
|
-
var yc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3811
|
-
var bc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: X, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3812
|
-
var xc =
|
|
3813
|
-
|
|
3809
|
+
var vc = b(`wix.stores.catalog.v3.product_created`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3810
|
+
var yc = b(`wix.stores.catalog.v3.product_deleted`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }] }, { transformFn: X, paths: [{ path: `entity.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3811
|
+
var bc = b(`wix.stores.catalog.v3.product_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `entity.description.metadata.createdTimestamp` }, { path: `entity.description.metadata.updatedTimestamp` }, { path: `entity.infoSections.description.metadata.createdTimestamp` }, { path: `entity.infoSections.description.metadata.updatedTimestamp` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }, { path: `modifiedFields.description.metadata.createdTimestamp` }, { path: `modifiedFields.description.metadata.updatedTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.createdTimestamp` }, { path: `modifiedFields.infoSections.description.metadata.updatedTimestamp` }] }, { transformFn: X, paths: [{ path: `entity.url` }, { path: `modifiedFields.url` }] }, { transformFn: I, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }, { path: `modifiedFields.physicalProperties.pricePerUnit.quantity` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.minValue` }, { path: `modifiedFields.physicalProperties.shippingWeightRange.maxValue` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `modifiedFields.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `modifiedFields.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `modifiedFields.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `modifiedFields.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.description.nodes.imageData.image.duration` }, { path: `modifiedFields.description.nodes.imageData.crop.x` }, { path: `modifiedFields.description.nodes.imageData.crop.y` }, { path: `modifiedFields.description.nodes.imageData.crop.width` }, { path: `modifiedFields.description.nodes.imageData.crop.height` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.description.nodes.videoData.video.duration` }, { path: `modifiedFields.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.description.nodes.tocData.fontSize` }, { path: `modifiedFields.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `modifiedFields.infoSections.description.nodes.imageData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.x` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.y` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.width` }, { path: `modifiedFields.infoSections.description.nodes.imageData.crop.height` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `modifiedFields.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.video.duration` }, { path: `modifiedFields.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.audio.duration` }, { path: `modifiedFields.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.shapeData.shape.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `modifiedFields.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `modifiedFields.infoSections.description.nodes.tocData.fontSize` }, { path: `modifiedFields.infoSections.description.nodes.tocData.itemSpacing` }, { path: `modifiedFields.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `modifiedFields.variantsInfo.variants.physicalProperties.weight` }, { path: `modifiedFields.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `modifiedFields.minVariantPriceInfo.weight` }] }, { transformFn: Y, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3812
|
+
var xc = Bt(_c);
|
|
3813
|
+
F(vc), F(yc), F(bc);
|
|
3814
3814
|
function Sc(e2) {
|
|
3815
3815
|
return wc(e2) ?? 99999;
|
|
3816
3816
|
}
|
|
@@ -3889,9 +3889,10 @@ function Vc(e2, t2, r2, i2 = false) {
|
|
|
3889
3889
|
}, [o2, d2, r2, t2, s2, c2, l2, i2]);
|
|
3890
3890
|
}
|
|
3891
3891
|
var Hc = `one-time`;
|
|
3892
|
-
var Uc = H(`@wix/
|
|
3892
|
+
var Uc = H(`@wix/site-service-locale`);
|
|
3893
3893
|
function Wc() {
|
|
3894
|
-
|
|
3894
|
+
let { language: e2 } = l(Uc);
|
|
3895
|
+
return e2;
|
|
3895
3896
|
}
|
|
3896
3897
|
var Gc = (e2) => {
|
|
3897
3898
|
let t2 = e2?.maximumFractionDigits ?? 2;
|
|
@@ -3994,125 +3995,126 @@ function vl(e2) {
|
|
|
3994
3995
|
let t2 = e2;
|
|
3995
3996
|
return { type: `cart`, message: t2?.message, details: t2?.details };
|
|
3996
3997
|
}
|
|
3997
|
-
var yl = H(`@wix/
|
|
3998
|
-
var bl = H(`@wix/site-service-
|
|
3999
|
-
var xl = H(`@wix/site-service-
|
|
4000
|
-
var Sl = (
|
|
3998
|
+
var yl = H(`@wix/site-service-lightbox`);
|
|
3999
|
+
var bl = H(`@wix/site-service-router`);
|
|
4000
|
+
var xl = H(`@wix/site-service-editor-context`);
|
|
4001
|
+
var Sl = H(`@wix/site-service-pages`);
|
|
4002
|
+
var Cl = (e2) => {
|
|
4001
4003
|
if (!e2) return ``;
|
|
4002
4004
|
let t2 = new URLSearchParams(e2).toString();
|
|
4003
4005
|
return t2 ? `?${t2}` : ``;
|
|
4004
4006
|
};
|
|
4005
|
-
var
|
|
4007
|
+
var wl = (e2, t2, n2) => {
|
|
4006
4008
|
let r2 = `./${e2.replace(/^\//, ``)}`;
|
|
4007
4009
|
return n2 ? r2 : new URL(r2, `${t2.replace(/\/$/, ``)}/`).href;
|
|
4008
4010
|
};
|
|
4009
|
-
var
|
|
4010
|
-
let e2 = l(
|
|
4011
|
-
return { navigateToPage: t(async (t2,
|
|
4011
|
+
var Tl = () => {
|
|
4012
|
+
let { navigateTo: e2 } = l(bl), { open: n2 } = l(yl), r2 = l(Qr), i2 = l(xl), a2 = l(Sl), { getPageRelativeUrl: o2, getPageAbsoluteUrl: s2 } = ti();
|
|
4013
|
+
return { navigateToPage: t(async (t2, n3) => {
|
|
4012
4014
|
try {
|
|
4013
|
-
let a3 =
|
|
4015
|
+
let a3 = r2.appSectionRelativeUrl(ei, t2);
|
|
4014
4016
|
if (!a3) return false;
|
|
4015
|
-
let o3 = `${a3}${
|
|
4016
|
-
return await e2
|
|
4017
|
+
let o3 = `${a3}${Cl(n3)}`;
|
|
4018
|
+
return await e2({ href: wl(o3, r2.siteUrl, i2.previewMode) }), true;
|
|
4017
4019
|
} catch {
|
|
4018
4020
|
return false;
|
|
4019
4021
|
}
|
|
4020
|
-
}, [e2,
|
|
4022
|
+
}, [e2, r2, i2]), navigateToProductPage: t(async (t2) => {
|
|
4021
4023
|
try {
|
|
4022
|
-
let n3 =
|
|
4024
|
+
let n3 = i2.previewMode ? o2(U.PRODUCT_PAGE, t2) : s2(U.PRODUCT_PAGE, t2);
|
|
4023
4025
|
if (!n3) throw Error(`Failed to resolve app section relative URL for the product page`);
|
|
4024
|
-
await e2
|
|
4026
|
+
await e2({ href: n3 });
|
|
4025
4027
|
} catch (e3) {
|
|
4026
4028
|
console.error(`navigateToProductPage: failed to navigate to product "${t2}"`, e3);
|
|
4027
4029
|
}
|
|
4028
|
-
}, [e2,
|
|
4030
|
+
}, [e2, i2, o2, s2]), openLightbox: t(async (e3) => {
|
|
4029
4031
|
try {
|
|
4030
|
-
let
|
|
4031
|
-
return
|
|
4032
|
+
let t2 = Object.entries(a2.pages).find(([, t3]) => t3.popup && t3.appPageId === e3)?.[0];
|
|
4033
|
+
return t2 ? (await n2({ pageId: t2 }), true) : false;
|
|
4032
4034
|
} catch {
|
|
4033
4035
|
return false;
|
|
4034
4036
|
}
|
|
4035
|
-
}, [
|
|
4037
|
+
}, [n2, a2]) };
|
|
4036
4038
|
};
|
|
4037
|
-
async function
|
|
4039
|
+
async function El(e2) {
|
|
4038
4040
|
await Ns({ catalogItems: [e2] });
|
|
4039
4041
|
}
|
|
4040
|
-
var
|
|
4041
|
-
var
|
|
4042
|
+
var Dl = H(`@wix/site-service-public-api-caller`);
|
|
4043
|
+
var Ol = () => {
|
|
4042
4044
|
let e2 = c();
|
|
4043
4045
|
return { reloadCart: t(async () => {
|
|
4044
4046
|
if (typeof window < `u`) try {
|
|
4045
|
-
await e2(
|
|
4047
|
+
await e2(Dl).callPublicApi(ei, `cart.reloadCart`, []);
|
|
4046
4048
|
} catch {
|
|
4047
4049
|
}
|
|
4048
4050
|
}, [e2]) };
|
|
4049
4051
|
};
|
|
4050
|
-
var
|
|
4052
|
+
var kl = function(e2) {
|
|
4051
4053
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2.SUCCESS = `success`, e2;
|
|
4052
4054
|
}({});
|
|
4053
|
-
var
|
|
4055
|
+
var Al = function(e2) {
|
|
4054
4056
|
return e2.NONE = `none`, e2.NAVIGATE_TO_CART = `navigate-to-cart`, e2.OPEN_SIDE_CART = `open-side-cart`, e2;
|
|
4055
4057
|
}({});
|
|
4056
|
-
var
|
|
4057
|
-
let [e2, n2] = r(
|
|
4058
|
+
var jl = () => {
|
|
4059
|
+
let [e2, n2] = r(kl.IDLE), { navigateToPage: i2, openLightbox: a2 } = Tl(), { reloadCart: o2 } = Ol(), s2 = t(async (e3) => {
|
|
4058
4060
|
switch (e3) {
|
|
4059
|
-
case
|
|
4061
|
+
case Al.NAVIGATE_TO_CART:
|
|
4060
4062
|
await i2(U.CART);
|
|
4061
4063
|
return;
|
|
4062
|
-
case
|
|
4064
|
+
case Al.OPEN_SIDE_CART:
|
|
4063
4065
|
await a2(U.SIDE_CART);
|
|
4064
4066
|
return;
|
|
4065
|
-
case
|
|
4067
|
+
case Al.NONE:
|
|
4066
4068
|
default:
|
|
4067
4069
|
return;
|
|
4068
4070
|
}
|
|
4069
4071
|
}, [i2, a2]);
|
|
4070
4072
|
return { addToCart: t(async (e3, t2) => {
|
|
4071
|
-
n2(
|
|
4073
|
+
n2(kl.IN_PROGRESS);
|
|
4072
4074
|
try {
|
|
4073
|
-
await
|
|
4075
|
+
await El(e3);
|
|
4074
4076
|
} catch (e4) {
|
|
4075
|
-
return n2(
|
|
4077
|
+
return n2(kl.IDLE), { ok: false, error: vl(e4) };
|
|
4076
4078
|
}
|
|
4077
4079
|
try {
|
|
4078
|
-
await o2(), n2(
|
|
4080
|
+
await o2(), n2(kl.SUCCESS), await s2(t2), setTimeout(() => n2(kl.IDLE), 2e3);
|
|
4079
4081
|
} catch {
|
|
4080
|
-
n2(
|
|
4082
|
+
n2(kl.IDLE);
|
|
4081
4083
|
}
|
|
4082
4084
|
return { ok: true };
|
|
4083
4085
|
}, [o2, s2]), addToCartState: e2, reloadCart: o2 };
|
|
4084
4086
|
};
|
|
4085
|
-
async function
|
|
4087
|
+
async function Ml(e2) {
|
|
4086
4088
|
let t2 = await Ds({ cart: { source: { channelType: ws.WEB } }, catalogItems: [e2] });
|
|
4087
4089
|
if (!t2._id) throw Error(`missing checkout id`);
|
|
4088
4090
|
return t2._id;
|
|
4089
4091
|
}
|
|
4090
|
-
var
|
|
4092
|
+
var Nl = function(e2) {
|
|
4091
4093
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2;
|
|
4092
4094
|
}({});
|
|
4093
|
-
var
|
|
4094
|
-
let { navigateToPage: e2 } =
|
|
4095
|
+
var Pl = () => {
|
|
4096
|
+
let { navigateToPage: e2 } = Tl(), [n2, i2] = r(Nl.IDLE);
|
|
4095
4097
|
return { buyNowState: n2, buyNow: t(async (t2) => {
|
|
4096
|
-
i2(
|
|
4098
|
+
i2(Nl.IN_PROGRESS);
|
|
4097
4099
|
try {
|
|
4098
|
-
let n3 = await
|
|
4100
|
+
let n3 = await Ml(t2);
|
|
4099
4101
|
return await e2(U.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error: vl(Error(`Failed to navigate to checkout`)) };
|
|
4100
4102
|
} catch (e3) {
|
|
4101
4103
|
return { ok: false, error: vl(e3) };
|
|
4102
4104
|
} finally {
|
|
4103
|
-
i2(
|
|
4105
|
+
i2(Nl.IDLE);
|
|
4104
4106
|
}
|
|
4105
4107
|
}, [e2]) };
|
|
4106
4108
|
};
|
|
4107
|
-
function
|
|
4109
|
+
function Fl(e2) {
|
|
4108
4110
|
let { product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 } = e2;
|
|
4109
|
-
return { catalogReference: { appId: $r, catalogItemId: t2.id, options:
|
|
4111
|
+
return { catalogReference: { appId: $r, catalogItemId: t2.id, options: Il({ product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 }) }, quantity: r2.quantity };
|
|
4110
4112
|
}
|
|
4111
|
-
var
|
|
4112
|
-
let i2 =
|
|
4113
|
-
return Object.keys(o2).length > 0 && (l2.customTextFields = o2),
|
|
4113
|
+
var Il = ({ product: e2, selectedVariant: t2, userSelections: n2, isPreOrder: r2 }) => {
|
|
4114
|
+
let i2 = Ll(e2, t2.choices), { choiceBasedModifiers: a2, customTextFields: o2 } = Rl(e2, n2.selectedModifiers), s2 = { ...i2, ...a2 }, { selectedSubscriptionPlanId: c2 } = n2, l2 = { variantId: t2.id, options: s2 };
|
|
4115
|
+
return Object.keys(o2).length > 0 && (l2.customTextFields = o2), zl(c2) && (l2.subscriptionOptionId = c2), r2 && (l2.preOrderRequested = true), l2;
|
|
4114
4116
|
};
|
|
4115
|
-
var
|
|
4117
|
+
var Ll = (e2, t2) => {
|
|
4116
4118
|
let n2 = {};
|
|
4117
4119
|
for (let [r2, i2] of Object.entries(t2)) {
|
|
4118
4120
|
let t3 = e2.options.find((e3) => e3.id === r2), a2 = t3?.choices.find((e3) => e3.choiceId === i2);
|
|
@@ -4120,7 +4122,7 @@ var Il = (e2, t2) => {
|
|
|
4120
4122
|
}
|
|
4121
4123
|
return n2;
|
|
4122
4124
|
};
|
|
4123
|
-
var
|
|
4125
|
+
var Rl = (e2, t2) => {
|
|
4124
4126
|
let n2 = {}, r2 = {};
|
|
4125
4127
|
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType === fc.FREE_TEXT) {
|
|
4126
4128
|
let e3 = i2.freeTextSettings?.key;
|
|
@@ -4131,48 +4133,48 @@ var Ll = (e2, t2) => {
|
|
|
4131
4133
|
}
|
|
4132
4134
|
return { choiceBasedModifiers: n2, customTextFields: r2 };
|
|
4133
4135
|
};
|
|
4134
|
-
var
|
|
4135
|
-
function
|
|
4136
|
-
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } =
|
|
4136
|
+
var zl = (e2) => e2 !== void 0 && e2 !== `one-time`;
|
|
4137
|
+
function Bl(e2, r2, i2) {
|
|
4138
|
+
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } = jl(), { buyNow: p2, buyNowState: m2 } = Pl(), h2 = i2.isPreOrderState || i2.isInStock, g2 = t(async (t2) => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: _l } : d2(Fl({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState }), t2 ?? Al.NONE), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, d2]), _2 = t(async () => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: _l } : p2(Fl({ 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]);
|
|
4137
4139
|
return n(() => ({ addToCartState: f2, buyNowState: m2, handleAddToCart: g2, handleBuyNow: _2 }), [f2, m2, g2, _2]);
|
|
4138
4140
|
}
|
|
4139
|
-
var
|
|
4140
|
-
var
|
|
4141
|
-
var
|
|
4141
|
+
var Vl = (e2, t2) => e2.every((e3) => !e3.mandatory || Hl(e3, t2[e3.id]));
|
|
4142
|
+
var Hl = (e2, t2) => e2.modifierRenderType === fc.FREE_TEXT ? !!t2 : e2.choices?.some((e3) => e3.choiceId === t2);
|
|
4143
|
+
var Ul = function(e2) {
|
|
4142
4144
|
return e2.DIRECT_ADD = `direct-add`, e2.NAVIGATE_TO_PRODUCT_PAGE = `navigate-to-product-page`, e2;
|
|
4143
4145
|
}({});
|
|
4144
|
-
function
|
|
4145
|
-
return
|
|
4146
|
+
function Wl(e2, t2) {
|
|
4147
|
+
return Gl(e2, t2) ? Ul.NAVIGATE_TO_PRODUCT_PAGE : Ul.DIRECT_ADD;
|
|
4146
4148
|
}
|
|
4147
|
-
var
|
|
4148
|
-
var
|
|
4149
|
-
function
|
|
4150
|
-
let { navigateToProductPage: i2 } =
|
|
4149
|
+
var Gl = (e2, t2) => e2.subscriptionDetails.subscriptions.length > 0 || !Kl(e2, t2);
|
|
4150
|
+
var Kl = (e2, t2) => e2.options.length === 0 && Object.keys(e2.modifiers).length === 0 || t2.selectedVariant !== null && Vl(Object.values(t2.modifiers), t2.selectedModifiers);
|
|
4151
|
+
function ql(e2, r2) {
|
|
4152
|
+
let { navigateToProductPage: i2 } = Tl(), { addToCartState: a2, buyNowState: o2, handleAddToCart: s2, handleBuyNow: c2 } = Bl(e2, r2, Dc(e2, r2.selectedVariant)), l2 = Wl(e2, r2), u2 = t(async () => e2.slug ? (await i2(e2.slug), { ok: true }) : { ok: false, error: _l }, [e2.slug, i2]), d2 = t((e3) => {
|
|
4151
4153
|
switch (l2) {
|
|
4152
|
-
case
|
|
4154
|
+
case Ul.DIRECT_ADD:
|
|
4153
4155
|
return s2(e3);
|
|
4154
|
-
case
|
|
4156
|
+
case Ul.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4155
4157
|
return u2();
|
|
4156
4158
|
}
|
|
4157
4159
|
}, [l2, s2, u2]), f2 = t(() => {
|
|
4158
4160
|
switch (l2) {
|
|
4159
|
-
case
|
|
4161
|
+
case Ul.DIRECT_ADD:
|
|
4160
4162
|
return c2();
|
|
4161
|
-
case
|
|
4163
|
+
case Ul.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4162
4164
|
return u2();
|
|
4163
4165
|
}
|
|
4164
4166
|
}, [l2, c2, u2]);
|
|
4165
4167
|
return n(() => ({ addToCartState: a2, buyNowState: o2, handleAddToCart: d2, handleBuyNow: f2 }), [a2, o2, d2, f2]);
|
|
4166
4168
|
}
|
|
4167
|
-
function
|
|
4169
|
+
function Jl(e2) {
|
|
4168
4170
|
return Object.values(e2).toSorted().join(`_`);
|
|
4169
4171
|
}
|
|
4170
|
-
function
|
|
4172
|
+
function Yl(e2) {
|
|
4171
4173
|
let t2 = /* @__PURE__ */ new Map();
|
|
4172
|
-
for (let n2 of e2) t2.set(
|
|
4174
|
+
for (let n2 of e2) t2.set(Jl(n2.choices), n2);
|
|
4173
4175
|
return t2;
|
|
4174
4176
|
}
|
|
4175
|
-
function
|
|
4177
|
+
function Xl(e2, t2, n2) {
|
|
4176
4178
|
let r2 = Object.keys(n2).length > 0, i2 = {};
|
|
4177
4179
|
for (let a2 of e2) {
|
|
4178
4180
|
i2[a2.id] = {};
|
|
@@ -4185,18 +4187,18 @@ function Yl(e2, t2, n2) {
|
|
|
4185
4187
|
i2[a2.id][e3.choiceId] = { isInStock: false, isVisible: false };
|
|
4186
4188
|
continue;
|
|
4187
4189
|
}
|
|
4188
|
-
let { isInStock: o2, isVisible: s2 } =
|
|
4190
|
+
let { isInStock: o2, isVisible: s2 } = Zl({ ...n2, [a2.id]: e3.choiceId }, t2);
|
|
4189
4191
|
i2[a2.id][e3.choiceId] = { isInStock: o2, isVisible: s2 };
|
|
4190
4192
|
}
|
|
4191
4193
|
}
|
|
4192
4194
|
return i2;
|
|
4193
4195
|
}
|
|
4194
|
-
function
|
|
4196
|
+
function Zl(e2, t2) {
|
|
4195
4197
|
let n2 = false, r2 = false;
|
|
4196
4198
|
for (let i2 of t2.values()) if (Object.entries(e2).every(([e3, t3]) => i2.choices[e3] === t3) && (r2 = true, (i2.availabilityStatus === Z.IN_STOCK || i2.availabilityStatus === Z.PREORDER) && (n2 = true), n2)) break;
|
|
4197
4199
|
return { isInStock: n2, isVisible: r2 };
|
|
4198
4200
|
}
|
|
4199
|
-
function
|
|
4201
|
+
function Ql(e2, t2) {
|
|
4200
4202
|
let n2 = /* @__PURE__ */ new Map();
|
|
4201
4203
|
for (let e3 of t2) n2.set(e3.variantId, e3);
|
|
4202
4204
|
return e2.map((e3) => {
|
|
@@ -4204,34 +4206,34 @@ function Zl(e2, t2) {
|
|
|
4204
4206
|
return { ...e3, availabilityStatus: t3?.availabilityStatus, preorderInfo: t3?.preorderInfo, inventoryQuantity: t3?.quantity, trackQuantity: t3?.trackQuantity };
|
|
4205
4207
|
});
|
|
4206
4208
|
}
|
|
4207
|
-
function
|
|
4208
|
-
let r2 = { options:
|
|
4209
|
+
function $l({ product: e2, selections: t2, selectedVariant: n2 }) {
|
|
4210
|
+
let r2 = { options: eu(e2.options, t2.selectedOptions, n2), modifiers: nu(e2.modifiers, t2.selectedModifiers), quantity: tu(t2.quantity, n2), subscriptionPlanId: ru(e2.subscriptionDetails, t2.selectedSubscriptionPlanId) };
|
|
4209
4211
|
return { valid: Object.values(r2.options).length === 0 && Object.values(r2.modifiers).length === 0 && !r2.quantity && !r2.subscriptionPlanId, fields: r2 };
|
|
4210
4212
|
}
|
|
4211
|
-
function
|
|
4213
|
+
function eu(e2, t2, n2) {
|
|
4212
4214
|
if (n2 !== null) return {};
|
|
4213
4215
|
let r2 = {};
|
|
4214
4216
|
for (let n3 of e2) t2[n3.id] || (r2[n3.id] = `missing`);
|
|
4215
4217
|
return r2;
|
|
4216
4218
|
}
|
|
4217
|
-
function
|
|
4219
|
+
function tu(e2, t2) {
|
|
4218
4220
|
if (e2 < 1) return `below-min`;
|
|
4219
4221
|
if (e2 > Sc(t2)) return `above-max`;
|
|
4220
4222
|
}
|
|
4221
|
-
function tu(e2, t2) {
|
|
4222
|
-
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !Vl(e3, t2[e3.id]));
|
|
4223
|
-
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4224
|
-
}
|
|
4225
4223
|
function nu(e2, t2) {
|
|
4226
|
-
|
|
4224
|
+
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !Hl(e3, t2[e3.id]));
|
|
4225
|
+
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4227
4226
|
}
|
|
4228
4227
|
function ru(e2, t2) {
|
|
4228
|
+
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` : iu(e2, t2) ? void 0 : `missing` : `missing`;
|
|
4229
|
+
}
|
|
4230
|
+
function iu(e2, t2) {
|
|
4229
4231
|
return e2.subscriptions.some((e3) => e3.id === t2);
|
|
4230
4232
|
}
|
|
4231
4233
|
var $ = function(e2) {
|
|
4232
4234
|
return e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2;
|
|
4233
4235
|
}({});
|
|
4234
|
-
function
|
|
4236
|
+
function au(e2, t2) {
|
|
4235
4237
|
if (!t2) return;
|
|
4236
4238
|
let n2 = t2.members.find((t3) => t3.productId === e2.id);
|
|
4237
4239
|
if (!n2) return;
|
|
@@ -4239,43 +4241,43 @@ function iu(e2, t2) {
|
|
|
4239
4241
|
if (t2.customizationType === $.PRODUCT_OPTION) return e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId) ? { ...r2, customizationType: $.PRODUCT_OPTION } : void 0;
|
|
4240
4242
|
if (e2.modifiers[t2.groupingCustomizationId]) return { ...r2, customizationType: $.MODIFIER };
|
|
4241
4243
|
}
|
|
4242
|
-
function
|
|
4244
|
+
function ou(e2, t2) {
|
|
4243
4245
|
return e2.members.find((e3) => e3.choice.choiceId === t2);
|
|
4244
4246
|
}
|
|
4245
|
-
function
|
|
4247
|
+
function su(e2, t2, n2) {
|
|
4246
4248
|
return !!e2 && t2 === e2.groupingCustomizationId && n2 !== e2.currentProductChoiceId;
|
|
4247
4249
|
}
|
|
4248
|
-
function
|
|
4250
|
+
function cu(e2, t2) {
|
|
4249
4251
|
if (!t2) return;
|
|
4250
4252
|
if (t2.customizationType === $.PRODUCT_OPTION) {
|
|
4251
4253
|
let n3 = e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId);
|
|
4252
4254
|
if (!n3) return;
|
|
4253
|
-
let r3 =
|
|
4255
|
+
let r3 = lu(n3, t2);
|
|
4254
4256
|
return { options: e2.options.map((e3) => e3.id === n3.id ? r3 : e3) };
|
|
4255
4257
|
}
|
|
4256
4258
|
let n2 = e2.modifiers[t2.groupingCustomizationId];
|
|
4257
4259
|
if (!n2) return;
|
|
4258
|
-
let r2 =
|
|
4260
|
+
let r2 = uu(n2, t2);
|
|
4259
4261
|
return { modifiers: { ...e2.modifiers, [t2.groupingCustomizationId]: r2 } };
|
|
4260
4262
|
}
|
|
4261
|
-
function
|
|
4263
|
+
function lu(e2, t2) {
|
|
4262
4264
|
return { ...e2, isGroupedOption: true, choices: t2.members.map((e3) => ({ ...e3.choice, inStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK` })) };
|
|
4263
4265
|
}
|
|
4264
|
-
function
|
|
4266
|
+
function uu(e2, t2) {
|
|
4265
4267
|
return { ...e2, choices: t2.members.map(({ choice: e3 }) => e3) };
|
|
4266
4268
|
}
|
|
4267
|
-
function
|
|
4269
|
+
function du(e2, t2) {
|
|
4268
4270
|
if (!t2 || t2.customizationType !== $.PRODUCT_OPTION) return e2;
|
|
4269
4271
|
let n2 = Object.fromEntries(t2.members.map((e3) => [e3.choice.choiceId, { isInStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK`, isVisible: true }]));
|
|
4270
4272
|
return { ...e2, [t2.groupingCustomizationId]: { ...n2, ...e2[t2.groupingCustomizationId] } };
|
|
4271
4273
|
}
|
|
4272
|
-
function
|
|
4273
|
-
let { navigateToProductPage: i2 } =
|
|
4274
|
+
function fu(e2, r2) {
|
|
4275
|
+
let { navigateToProductPage: i2 } = Tl(), a2 = n(() => au(e2, r2), [e2, r2]);
|
|
4274
4276
|
return { productGrouping: a2, selectGroupSiblingChoice: t((e3) => {
|
|
4275
4277
|
if (!a2) return;
|
|
4276
|
-
let t2 =
|
|
4278
|
+
let t2 = ou(a2, e3);
|
|
4277
4279
|
t2 && i2(t2.slug);
|
|
4278
|
-
}, [a2, i2]), productCustomizations: n(() =>
|
|
4280
|
+
}, [a2, i2]), productCustomizations: n(() => cu(e2, a2), [e2, a2]), addGroupChoicesAvailability: t((e3) => du(e3, a2), [a2]), initialSelection: n(() => {
|
|
4279
4281
|
if (!a2) return { options: {}, modifiers: {} };
|
|
4280
4282
|
let { customizationType: t2, groupingCustomizationId: n2, currentProductChoiceId: r3 } = a2;
|
|
4281
4283
|
if (t2 === $.MODIFIER && e2.modifiers[n2].mandatory === false) return { options: {}, modifiers: {} };
|
|
@@ -4283,25 +4285,25 @@ function du(e2, r2) {
|
|
|
4283
4285
|
return t2 === $.PRODUCT_OPTION ? { options: i3, modifiers: {} } : { options: {}, modifiers: i3 };
|
|
4284
4286
|
}, [a2, e2.modifiers]) };
|
|
4285
4287
|
}
|
|
4286
|
-
function
|
|
4287
|
-
let o2 =
|
|
4288
|
+
function pu(e2, i2, a2) {
|
|
4289
|
+
let o2 = fu(e2, a2), { productGrouping: s2, selectGroupSiblingChoice: c2, addGroupChoicesAvailability: l2 } = o2, [u2, d2] = r(() => o2.initialSelection.options), [f2, p2] = r(() => o2.initialSelection.modifiers), [m2, h2] = r(void 0), [g2, _2] = r(1), [v2, y2] = r(false), b2 = n(() => Yl(Ql(e2.variants, i2)), [e2.variants, i2]), x2 = n(() => {
|
|
4288
4290
|
let t2 = /* @__PURE__ */ new Map();
|
|
4289
4291
|
return (n2) => {
|
|
4290
|
-
let r2 =
|
|
4292
|
+
let r2 = Jl(n2), i3 = t2.get(r2);
|
|
4291
4293
|
if (i3) return i3;
|
|
4292
|
-
let a3 = l2(
|
|
4294
|
+
let a3 = l2(Xl(e2.options, b2, n2));
|
|
4293
4295
|
return t2.set(r2, a3), a3;
|
|
4294
4296
|
};
|
|
4295
|
-
}, [b2, e2.options, l2]), S2 = n(() => x2(u2), [x2, u2]), C2 = n(() => Object.keys(u2).length === e2.options.length ? b2.get(
|
|
4297
|
+
}, [b2, e2.options, l2]), S2 = n(() => x2(u2), [x2, u2]), C2 = n(() => Object.keys(u2).length === e2.options.length ? b2.get(Jl(u2)) ?? null : null, [b2, u2, e2.options.length]), w2 = t((e3, t2) => {
|
|
4296
4298
|
if (u2[e3] !== t2) {
|
|
4297
|
-
if (
|
|
4299
|
+
if (su(s2, e3, t2)) {
|
|
4298
4300
|
c2(t2);
|
|
4299
4301
|
return;
|
|
4300
4302
|
}
|
|
4301
4303
|
d2((n2) => ({ ...n2, [e3]: t2 })), _2(1);
|
|
4302
4304
|
}
|
|
4303
4305
|
}, [u2, s2, c2]), T2 = t((e3, t2) => {
|
|
4304
|
-
if (
|
|
4306
|
+
if (su(s2, e3, t2)) {
|
|
4305
4307
|
c2(t2);
|
|
4306
4308
|
return;
|
|
4307
4309
|
}
|
|
@@ -4316,41 +4318,41 @@ function fu(e2, i2, a2) {
|
|
|
4316
4318
|
h2(e3);
|
|
4317
4319
|
}, []), O2 = n(() => Sc(C2), [C2]), k2 = n(() => Cc(g2, O2), [g2, O2]), ee2 = t((e3) => {
|
|
4318
4320
|
_2(e3);
|
|
4319
|
-
}, []), te2 = n(() =>
|
|
4321
|
+
}, []), te2 = n(() => $l({ product: e2, selections: { selectedOptions: u2, selectedModifiers: f2, selectedSubscriptionPlanId: m2, quantity: k2 }, selectedVariant: C2 }), [e2, u2, f2, m2, k2, C2]), ne2 = o2.productCustomizations?.options ?? e2.options, re2 = o2.productCustomizations?.modifiers ?? e2.modifiers;
|
|
4320
4322
|
return n(() => ({ options: ne2, modifiers: re2, quantity: k2, selectedOptions: u2, selectedModifiers: f2, selectedSubscriptionPlanId: m2, selectedVariant: C2, selectedVariantId: C2?.id ?? null, selectionsAvailability: S2, maxPurchasableQuantity: O2, isSelectionValid: te2.valid, selectionValidationErrors: te2.fields, hasAttemptedSubmit: v2, setHasAttemptedSubmit: y2, selectOption: w2, selectModifier: T2, clearModifierSelection: E2, selectSubscriptionPlan: D2, selectQuantity: ee2 }), [ne2, re2, k2, u2, f2, m2, C2, S2, O2, te2, v2, w2, T2, E2, D2, ee2]);
|
|
4321
4323
|
}
|
|
4322
|
-
function
|
|
4323
|
-
let o2 =
|
|
4324
|
+
function mu({ product: e2, inventoryItems: r2, hasLoadedVariants: i2, requestVariants: a2 }) {
|
|
4325
|
+
let o2 = pu(e2, r2), { selectOption: s2, selectModifier: c2, selectSubscriptionPlan: l2, selectQuantity: u2, selectionsAvailability: d2, ...f2 } = o2, p2 = t((e3, t2) => {
|
|
4324
4326
|
a2(), s2(e3, t2);
|
|
4325
4327
|
}, [a2, s2]), m2 = t((e3, t2) => {
|
|
4326
4328
|
a2(), c2(e3, t2);
|
|
4327
4329
|
}, [a2, c2]), h2 = t((e3) => {
|
|
4328
4330
|
a2(), u2(e3);
|
|
4329
|
-
}, [a2, u2]), g2 = n(() => i2 ? d2 :
|
|
4331
|
+
}, [a2, u2]), g2 = n(() => i2 ? d2 : Xl(e2.options, /* @__PURE__ */ new Map(), {}), [i2, d2, e2.options]);
|
|
4330
4332
|
return n(() => ({ ...f2, selectOption: p2, selectModifier: m2, selectSubscriptionPlan: l2, selectQuantity: h2, selectionsAvailability: g2 }), [o2, p2, m2, l2, h2, g2]);
|
|
4331
4333
|
}
|
|
4332
|
-
var
|
|
4333
|
-
function
|
|
4334
|
+
var hu = { subscriptionPlans: null, description: null, infoSections: null };
|
|
4335
|
+
function gu() {
|
|
4334
4336
|
return s();
|
|
4335
4337
|
}
|
|
4336
|
-
function
|
|
4337
|
-
let r2 = gl(e2, t2), i2 =
|
|
4338
|
-
return n(() => ({ source: tl.PRODUCT_ITEM, ...s2, ...a2, ...
|
|
4338
|
+
function _u({ product: e2, defaultLocationId: t2 }) {
|
|
4339
|
+
let r2 = gl(e2, t2), i2 = mu(r2), a2 = ql(r2.product, i2), o2 = el({ product: r2.product, userInputs: i2, hasLoadedVariants: r2.hasLoadedVariants }), s2 = Vc(r2.product, i2, o2);
|
|
4340
|
+
return n(() => ({ source: tl.PRODUCT_ITEM, ...s2, ...a2, ...hu }), [s2, a2]);
|
|
4339
4341
|
}
|
|
4340
|
-
function
|
|
4341
|
-
let n2 =
|
|
4342
|
+
function vu({ productItem: e2, children: t2 }) {
|
|
4343
|
+
let n2 = _u(e2);
|
|
4342
4344
|
return a(o, { value: n2, children: t2 });
|
|
4343
4345
|
}
|
|
4344
|
-
function
|
|
4346
|
+
function yu({ productItem: e2, children: t2 }) {
|
|
4345
4347
|
let [n2] = r(() => new Pr());
|
|
4346
|
-
return e2 === void 0 ? a(i, { children: t2 }) : a(Lr, { client: n2, children: a(
|
|
4348
|
+
return e2 === void 0 ? a(i, { children: t2 }) : a(Lr, { client: n2, children: a(vu, { productItem: e2, children: t2 }, e2.product.id) });
|
|
4347
4349
|
}
|
|
4348
|
-
var
|
|
4350
|
+
var bu = jn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
4349
4351
|
export {
|
|
4350
|
-
|
|
4351
|
-
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4352
|
+
yu as ProductItemContextProvider,
|
|
4353
|
+
yu as default,
|
|
4354
|
+
bu as injectAccessTokenGetter,
|
|
4355
|
+
gu as useProductItemContext,
|
|
4356
|
+
_u as useProductItemContextValue
|
|
4355
4357
|
};
|
|
4356
4358
|
//# sourceMappingURL=context-product-item-context-provider.mjs.map
|