@wix/stores 1.0.968 → 1.0.969
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/_sdk-exports/context-product-by-id/runtime.js +2 -2
- package/_sdk-exports/context-product-by-slug/runtime.js +2 -2
- package/_sdk-exports/context-product-item/runtime.js +2 -2
- package/build/cjs/context-product-by-id.js +420 -414
- package/build/cjs/context-product-by-id.js.map +1 -1
- package/build/cjs/context-product-by-slug.js +433 -427
- package/build/cjs/context-product-by-slug.js.map +1 -1
- package/build/cjs/context-product-item.js +392 -386
- package/build/cjs/context-product-item.js.map +1 -1
- package/build/es/context-product-by-id.mjs +420 -414
- package/build/es/context-product-by-id.mjs.map +1 -1
- package/build/es/context-product-by-slug.mjs +433 -427
- package/build/es/context-product-by-slug.mjs.map +1 -1
- package/build/es/context-product-item.mjs +392 -386
- package/build/es/context-product-item.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -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 $e(e2, { transformSystemFields: t2 = true } = {}) {
|
|
508
508
|
return t2 ? Qe(e2, Ze) : e2;
|
|
509
509
|
}
|
|
510
|
-
var
|
|
511
|
-
function et(e2, t2, n2) {
|
|
512
|
-
return (e2 === $e || e2.endsWith(`.${$e}`)) && typeof t2 == `string` ? Qe(t2, n2) : t2;
|
|
513
|
-
}
|
|
510
|
+
var et = `sort.fieldName`;
|
|
514
511
|
function tt(e2, t2, n2) {
|
|
512
|
+
return (e2 === et || e2.endsWith(`.${et}`)) && typeof t2 == `string` ? Qe(t2, n2) : t2;
|
|
513
|
+
}
|
|
514
|
+
function nt(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 tt(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 = rt(e4, t2);
|
|
525
|
+
s2 !== e4 && !(s2 in a2) && (a2[s2] = a2[e4], delete a2[e4]), a2[s2] = tt(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 rt(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 j(e2, t2 = []) {
|
|
536
|
+
return nt(e2, qe, t2);
|
|
537
537
|
}
|
|
538
538
|
function M(e2, t2 = []) {
|
|
539
|
-
return
|
|
539
|
+
return nt(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 F(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 Ot(e2, t2, n2);
|
|
630
|
+
if (Et(e2)) return At(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 kt(e2, { message: JSON.stringify({ message: r2, details: i2 }, null, 2), extraProperties: { details: i2, status: t3 } });
|
|
634
634
|
}
|
|
635
|
-
return
|
|
635
|
+
return jt(e2);
|
|
636
636
|
}
|
|
637
|
-
var
|
|
638
|
-
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 =
|
|
639
|
-
return
|
|
637
|
+
var Ot = (e2, t2, n2) => {
|
|
638
|
+
let r2 = e2.response?.data, i2 = e2.requestId, { fieldViolations: a2 } = r2.details.validationError, o2 = Mt(t2, a2, n2)?.sort((e3, t3) => e3.field < t3.field ? -1 : 1), s2 = `INVALID_ARGUMENT: ${o2?.map(({ field: e3, description: t3 }) => `"${e3}" ${t3}`)?.join(`, `)}`, c2 = { validationError: { fieldViolations: o2 }, requestId: i2 };
|
|
639
|
+
return kt(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 kt = (e2, { message: t2, extraProperties: n2 }) => Object.assign(e2, { ...n2, message: t2 });
|
|
642
|
+
var At = (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 kt(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 jt = (e2) => kt(e2, { message: e2.requestId ? `System error occurred, request-id: ${e2.requestId}` : `System error occurred: ${JSON.stringify(e2)}`, extraProperties: { requestId: e2.requestId, status: e2.response?.status, code: yt(e2.response?.statusText ?? `UNKNOWN`), ...!e2.response && { runtimeError: e2 } } });
|
|
647
|
+
var Mt = ({ 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: Nt(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, Nt(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 Nt = (e2, t2) => {
|
|
661
|
+
let n2 = Pt(e2);
|
|
662
662
|
return n2 == null ? e2 : e2.replace(`$[${n2}]`, t2[n2]);
|
|
663
663
|
};
|
|
664
|
-
var
|
|
664
|
+
var Pt = (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 Ft() {
|
|
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 It(() => 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 It() {
|
|
|
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 It(() => 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 It(() => 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 It() {
|
|
|
693
693
|
return t2.graphql(e3, n3, r2);
|
|
694
694
|
} };
|
|
695
695
|
}
|
|
696
|
-
function
|
|
696
|
+
function It(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 Lt(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 Lt(e2, t2) {
|
|
706
706
|
return (...n2) => {
|
|
707
|
-
let r2 =
|
|
707
|
+
let r2 = Ft();
|
|
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 Rt(e2) {
|
|
712
712
|
let t2 = (...t3) => {
|
|
713
|
-
let n2 =
|
|
713
|
+
let n2 = Ft();
|
|
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 zt(e2, t2 = false) {
|
|
719
|
+
return Lt(e2, t2);
|
|
720
720
|
}
|
|
721
|
-
function
|
|
722
|
-
let n2 =
|
|
723
|
-
return t2 && r2 ? new URLSearchParams({ ".r":
|
|
721
|
+
function Bt(e2, t2) {
|
|
722
|
+
let n2 = Ht(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": Wt(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 Vt(e2) {
|
|
728
|
+
let t2 = rn(tn(e2.host), e2.domainToMappings);
|
|
729
|
+
return pn(un(e2.protoPath, e2.data || {}), t2);
|
|
730
730
|
}
|
|
731
|
-
function
|
|
731
|
+
function Ht(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 = Ut(t2, e3);
|
|
735
735
|
if (i2) {
|
|
736
|
-
let e4 =
|
|
736
|
+
let e4 = Ht(r2, a2);
|
|
737
737
|
Object.assign(n2, e4);
|
|
738
738
|
} else n2[a2] = r2;
|
|
739
739
|
}), n2;
|
|
740
740
|
}
|
|
741
|
-
function
|
|
741
|
+
function Ut(e2, t2) {
|
|
742
742
|
return `${e2}${e2 ? `.` : ``}${t2}`;
|
|
743
743
|
}
|
|
744
|
-
var
|
|
744
|
+
var Wt = (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
|
|
759
|
-
return
|
|
748
|
+
var Gt = [`wix.com`, `editorx.com`];
|
|
749
|
+
var Kt = `_`;
|
|
750
|
+
var qt = `*.`;
|
|
751
|
+
var Jt = RegExp(`\\.(${Gt.join(`|`)})$`);
|
|
752
|
+
var Yt = [`42.wixprod.net`, `uw2-edt-1.wixprod.net`, `virginia-edt.wixprod.net`];
|
|
753
|
+
var Xt = { "payments.base44.com": `manage.wix.com`, "create.editorx.com": `editor.editorx.com` };
|
|
754
|
+
var Zt = `dev.wix-code.com`;
|
|
755
|
+
var Qt = /{(.*)}/;
|
|
756
|
+
var $t = RegExp(`\\.(${Yt.join(`|`)})$`);
|
|
757
|
+
var en = RegExp(`.*\\.${Zt}$`);
|
|
758
|
+
function tn(e2) {
|
|
759
|
+
return nn(e2).replace(Jt, `._base_domain_`).replace($t, `._api_base_domain_`).replace(en, `*.dev.wix-code.com`);
|
|
760
760
|
}
|
|
761
|
-
function
|
|
762
|
-
return
|
|
761
|
+
function nn(e2) {
|
|
762
|
+
return Xt[e2] ?? e2;
|
|
763
763
|
}
|
|
764
|
-
function
|
|
764
|
+
function rn(e2, t2) {
|
|
765
765
|
let n2 = t2[e2];
|
|
766
766
|
if (n2) return n2;
|
|
767
|
-
let r2 =
|
|
767
|
+
let r2 = an(e2, t2) ?? on(e2, t2);
|
|
768
768
|
if (!r2) {
|
|
769
|
-
if (
|
|
770
|
-
let e3 = t2[
|
|
769
|
+
if (cn(e2)) {
|
|
770
|
+
let e3 = t2[ln];
|
|
771
771
|
if (e3) return e3;
|
|
772
772
|
}
|
|
773
|
-
let n3 = t2[
|
|
773
|
+
let n3 = t2[Kt];
|
|
774
774
|
if (n3) return n3;
|
|
775
775
|
}
|
|
776
776
|
return r2 ?? [];
|
|
777
777
|
}
|
|
778
|
-
function
|
|
778
|
+
function an(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 on(e2, t2) {
|
|
785
|
+
let [n2] = Object.entries(t2).filter(([t3]) => sn(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 sn(e2, t2) {
|
|
791
|
+
if (!t2.startsWith(qt)) 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 cn(e2) {
|
|
796
796
|
return !!e2.match(/\._base_domain_$/);
|
|
797
797
|
}
|
|
798
|
-
var
|
|
799
|
-
function
|
|
800
|
-
return e2.split(`/`).map((e3) =>
|
|
798
|
+
var ln = `www._base_domain_`;
|
|
799
|
+
function un(e2, t2) {
|
|
800
|
+
return e2.split(`/`).map((e3) => dn(e3, t2)).join(`/`);
|
|
801
801
|
}
|
|
802
|
-
function
|
|
803
|
-
let n2 = e2.match(
|
|
804
|
-
return r2 ?
|
|
802
|
+
function dn(e2, t2) {
|
|
803
|
+
let n2 = e2.match(Qt) || [], r2 = n2[1];
|
|
804
|
+
return r2 ? fn(t2, r2, e2, e2.replace(n2[0], ``)) : e2;
|
|
805
805
|
}
|
|
806
|
-
function
|
|
806
|
+
function fn(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 pn(e2, t2, n2, r2) {
|
|
|
811
811
|
}
|
|
812
812
|
return `${i2}${r2}`;
|
|
813
813
|
}
|
|
814
|
-
function
|
|
814
|
+
function pn(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 I(e2) {
|
|
819
|
+
return Rt(e2);
|
|
820
820
|
}
|
|
821
|
-
function
|
|
821
|
+
function mn(e2) {
|
|
822
822
|
return isFinite(e2) ? e2 : e2.toString();
|
|
823
823
|
}
|
|
824
|
-
function
|
|
824
|
+
function hn(e2) {
|
|
825
825
|
return e2 === `NaN` ? NaN : e2 === `Infinity` ? 1 / 0 : e2 === `-Infinity` ? -1 / 0 : e2;
|
|
826
826
|
}
|
|
827
827
|
function gn(e2) {
|
|
@@ -3149,61 +3149,61 @@ var mo = v(co(), 1);
|
|
|
3149
3149
|
var ho = v(uo(), 1);
|
|
3150
3150
|
var go = v(fo(), 1);
|
|
3151
3151
|
var _o = ({ price: e2 }) => e2.actualPrice;
|
|
3152
|
-
function
|
|
3152
|
+
function q(e2) {
|
|
3153
3153
|
return e2.priceAfterDiscount === void 0 ? { currentSellingPrice: e2.actualPrice, priceBeforeDiscount: e2.compareAtPrice, pricePerUnit: e2.pricePerUnit } : { currentSellingPrice: e2.priceAfterDiscount, priceBeforeDiscount: e2.actualPrice, pricePerUnit: e2.pricePerUnit };
|
|
3154
3154
|
}
|
|
3155
|
-
function
|
|
3155
|
+
function vo(e2, t2) {
|
|
3156
3156
|
let n2 = e2.subscriptionPrices.find((e3) => e3.subscriptionId === t2);
|
|
3157
3157
|
if (!n2) throw Error(`Missing subscription price for plan ${t2} on variant ${e2.id}`);
|
|
3158
3158
|
let r2 = n2.price;
|
|
3159
3159
|
return { currentSellingPrice: r2, priceBeforeDiscount: r2 < e2.price.actualPrice ? e2.price.actualPrice : void 0 };
|
|
3160
3160
|
}
|
|
3161
|
-
function
|
|
3162
|
-
let t2 = (0, go.default)(e2, _o), n2 = (0, mo.default)(e2, _o), r2 = e2.map(({ price: e3 }) =>
|
|
3161
|
+
function yo(e2) {
|
|
3162
|
+
let t2 = (0, go.default)(e2, _o), n2 = (0, mo.default)(e2, _o), r2 = e2.map(({ price: e3 }) => q(e3)), i2 = q(t2.price), a2 = q(n2.price), o2 = r2.flatMap(({ priceBeforeDiscount: e3 }) => e3 === void 0 ? [] : [e3]);
|
|
3163
3163
|
return { minCurrentSellingPrice: i2.currentSellingPrice, maxCurrentSellingPrice: a2.currentSellingPrice, minPriceBeforeDiscount: (0, ho.default)(o2), maxPriceBeforeDiscount: (0, po.default)(o2), minPricePerUnit: i2.pricePerUnit, maxPricePerUnit: a2.pricePerUnit };
|
|
3164
3164
|
}
|
|
3165
|
-
function
|
|
3166
|
-
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price:
|
|
3165
|
+
function bo(e2, t2) {
|
|
3166
|
+
return e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: vo(t2, e3.id) }));
|
|
3167
3167
|
}
|
|
3168
|
-
function
|
|
3168
|
+
function xo(e2) {
|
|
3169
3169
|
return { productPrice: { currentSellingPrice: void 0 }, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: { currentSellingPrice: void 0 } })), productPriceRange: { minCurrentSellingPrice: void 0, maxCurrentSellingPrice: void 0 } };
|
|
3170
3170
|
}
|
|
3171
|
-
function
|
|
3172
|
-
if (!e2.minPriceVariant) return
|
|
3173
|
-
let t2 =
|
|
3171
|
+
function So(e2) {
|
|
3172
|
+
if (!e2.minPriceVariant) return xo(e2);
|
|
3173
|
+
let t2 = q(e2.minPriceVariant.price), n2 = e2.minPriceVariant.price.priceAfterDiscount !== void 0;
|
|
3174
3174
|
return { productPrice: t2, subscriptionPlanPrices: e2.subscriptionDetails.subscriptions.map((e3) => ({ subscription: e3, price: {} })), productPriceRange: { minCurrentSellingPrice: t2.currentSellingPrice, maxCurrentSellingPrice: n2 ? void 0 : e2.priceRange.maxActualPrice, minPriceBeforeDiscount: t2.priceBeforeDiscount, maxPriceBeforeDiscount: n2 ? e2.priceRange.maxActualPrice : e2.priceRange.maxCompareAtPrice, minPricePerUnit: t2.pricePerUnit } };
|
|
3175
3175
|
}
|
|
3176
|
-
function
|
|
3177
|
-
if (!n2) return
|
|
3176
|
+
function Co(e2, t2, n2) {
|
|
3177
|
+
if (!n2) return So(e2);
|
|
3178
3178
|
let r2 = (0, go.default)(e2.variants, _o), i2 = t2 ?? r2;
|
|
3179
|
-
return i2 ? { productPrice:
|
|
3179
|
+
return i2 ? { productPrice: q(i2.price), subscriptionPlanPrices: bo(e2, i2), productPriceRange: yo(e2.variants) } : xo(e2);
|
|
3180
3180
|
}
|
|
3181
|
-
function
|
|
3181
|
+
function wo(e2, t2) {
|
|
3182
3182
|
let n2 = e2.subscriptionPlanPrices.find(({ subscription: e3 }) => e3.id === t2);
|
|
3183
3183
|
return n2 ? { currentSellingPrice: n2.price.currentSellingPrice, priceBeforeDiscount: n2.price.priceBeforeDiscount, pricePerUnit: e2.productPrice.pricePerUnit } : e2.productPrice;
|
|
3184
3184
|
}
|
|
3185
|
-
function
|
|
3186
|
-
return
|
|
3185
|
+
function To(e2) {
|
|
3186
|
+
return q(e2.price).currentSellingPrice;
|
|
3187
3187
|
}
|
|
3188
|
-
function
|
|
3188
|
+
function Eo(e2) {
|
|
3189
3189
|
return Object.keys(e2).length === 1 && `$and` in e2 && Array.isArray(e2.$and);
|
|
3190
3190
|
}
|
|
3191
|
-
function
|
|
3191
|
+
function Do(e2) {
|
|
3192
3192
|
return Object.keys(e2).length === 1 && `$or` in e2 && Array.isArray(e2.$or);
|
|
3193
3193
|
}
|
|
3194
|
-
function
|
|
3194
|
+
function Oo(e2) {
|
|
3195
3195
|
return Object.keys(e2).length === 1 && `$not` in e2 && typeof e2.$not == `object`;
|
|
3196
3196
|
}
|
|
3197
|
-
function
|
|
3198
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...
|
|
3197
|
+
function J(e2, t2) {
|
|
3198
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $and: [...Eo(e2) ? e2.$and : [e2], ...Eo(t2) ? t2.$and : [t2]] };
|
|
3199
3199
|
}
|
|
3200
|
-
function
|
|
3201
|
-
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...
|
|
3200
|
+
function ko(e2, t2) {
|
|
3201
|
+
return e2 === void 0 || Object.keys(e2).length === 0 ? t2 : t2 === void 0 || Object.keys(t2).length === 0 ? e2 : { $or: [...Do(e2) ? e2.$or : [e2], ...Do(t2) ? t2.$or : [t2]] };
|
|
3202
3202
|
}
|
|
3203
|
-
function
|
|
3204
|
-
if (e2 !== void 0 && Object.keys(e2).length !== 0) return
|
|
3203
|
+
function Ao(e2) {
|
|
3204
|
+
if (e2 !== void 0 && Object.keys(e2).length !== 0) return Oo(e2) ? e2.$not : { $not: e2 };
|
|
3205
3205
|
}
|
|
3206
|
-
var
|
|
3206
|
+
var jo = class {
|
|
3207
3207
|
_items;
|
|
3208
3208
|
_fetchNextPage;
|
|
3209
3209
|
_fetchPrevPage;
|
|
@@ -3233,7 +3233,7 @@ var Mo = class {
|
|
|
3233
3233
|
return await this._fetchPrevPage();
|
|
3234
3234
|
}
|
|
3235
3235
|
};
|
|
3236
|
-
var
|
|
3236
|
+
var Mo = class extends jo {
|
|
3237
3237
|
_nextCursor;
|
|
3238
3238
|
_prevCursor;
|
|
3239
3239
|
cursors;
|
|
@@ -3247,7 +3247,7 @@ var No = class extends Mo {
|
|
|
3247
3247
|
return !!this._prevCursor;
|
|
3248
3248
|
}
|
|
3249
3249
|
};
|
|
3250
|
-
var
|
|
3250
|
+
var No = class extends jo {
|
|
3251
3251
|
_totalCount;
|
|
3252
3252
|
_offset;
|
|
3253
3253
|
_tooManyToCount;
|
|
@@ -3270,76 +3270,76 @@ var Po = class extends Mo {
|
|
|
3270
3270
|
return !!(this._limit !== 0 && this.currentPage && this.currentPage > 0);
|
|
3271
3271
|
}
|
|
3272
3272
|
};
|
|
3273
|
-
function
|
|
3273
|
+
function Po(e2) {
|
|
3274
3274
|
let t2 = (n2) => ({ query: n2, async find() {
|
|
3275
3275
|
try {
|
|
3276
3276
|
let r2 = e2.requestTransformer(e2.pagingMethod === `CURSOR` && n2.cursorPaging.cursor ? { cursorPaging: n2.cursorPaging } : n2), i2 = await e2.func(r2), { [Ye]: a2, [Xe]: o2 } = e2.responseTransformer(i2);
|
|
3277
3277
|
if (e2.pagingMethod === `OFFSET`) {
|
|
3278
3278
|
let e3 = n2;
|
|
3279
|
-
return new
|
|
3279
|
+
return new No({ items: a2 ?? [], fetchNextPage: () => t2({ ...e3, paging: { offset: e3.paging.offset + e3.paging.limit, limit: e3.paging.limit } }).find(), fetchPrevPage: () => t2({ ...n2, paging: { offset: Math.max(e3.paging.offset - e3.paging.limit, 0), limit: e3.paging.limit } }).find(), offset: e3.paging.offset, limit: e3.paging.limit, totalCount: o2?.total, tooManyToCount: o2?.tooManyToCount, originQuery: this });
|
|
3280
3280
|
}
|
|
3281
3281
|
let s2 = n2.cursorPaging;
|
|
3282
|
-
return new
|
|
3282
|
+
return new Mo({ items: a2 ?? [], limit: s2.limit, originQuery: this, fetchNextPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.next ?? void 0, limit: s2.limit } }).find(), fetchPrevPage: () => t2({ ...n2, cursorPaging: { cursor: o2?.cursors?.prev ?? void 0, limit: s2.limit } }).find(), prevCursor: o2?.cursors?.prev ?? void 0, nextCursor: o2?.cursors?.next ?? void 0 });
|
|
3283
3283
|
} catch (t3) {
|
|
3284
3284
|
throw e2.errorTransformer(t3);
|
|
3285
3285
|
}
|
|
3286
3286
|
}, skipTo(e3) {
|
|
3287
3287
|
return t2({ ...n2, cursorPaging: { cursor: e3, limit: n2.cursorPaging.limit } });
|
|
3288
3288
|
}, eq(r2, i2) {
|
|
3289
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3290
|
-
return t2({ ...n2, filter:
|
|
3289
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e2.transformationPaths, r2)]: a2 };
|
|
3290
|
+
return t2({ ...n2, filter: J(n2.filter, o2) });
|
|
3291
3291
|
}, ne(r2, i2) {
|
|
3292
|
-
let a2 = i2 === void 0 ? null : i2, o2 = { [
|
|
3293
|
-
return t2({ ...n2, filter:
|
|
3292
|
+
let a2 = i2 === void 0 ? null : i2, o2 = { [Y(e2.transformationPaths, r2)]: { $ne: a2 } };
|
|
3293
|
+
return t2({ ...n2, filter: J(n2.filter, o2) });
|
|
3294
3294
|
}, ge(r2, i2) {
|
|
3295
|
-
let a2 = { [
|
|
3296
|
-
return t2({ ...n2, filter:
|
|
3295
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $gte: i2 } };
|
|
3296
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3297
3297
|
}, gt(r2, i2) {
|
|
3298
|
-
let a2 = { [
|
|
3299
|
-
return t2({ ...n2, filter:
|
|
3298
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $gt: i2 } };
|
|
3299
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3300
3300
|
}, le(r2, i2) {
|
|
3301
|
-
let a2 = { [
|
|
3302
|
-
return t2({ ...n2, filter:
|
|
3301
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $lte: i2 } };
|
|
3302
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3303
3303
|
}, lt(r2, i2) {
|
|
3304
|
-
let a2 = { [
|
|
3305
|
-
return t2({ ...n2, filter:
|
|
3304
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $lt: i2 } };
|
|
3305
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3306
3306
|
}, isNotEmpty(e3) {
|
|
3307
3307
|
return this.ne(e3, null);
|
|
3308
3308
|
}, isEmpty(e3) {
|
|
3309
3309
|
return this.eq(e3, null);
|
|
3310
3310
|
}, startsWith(r2, i2) {
|
|
3311
|
-
let a2 = { [
|
|
3312
|
-
return t2({ ...n2, filter:
|
|
3311
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $startsWith: i2 } };
|
|
3312
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3313
3313
|
}, endsWith(r2, i2) {
|
|
3314
|
-
let a2 = { [
|
|
3315
|
-
return t2({ ...n2, filter:
|
|
3314
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $endsWith: i2 } };
|
|
3315
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3316
3316
|
}, contains(r2, i2) {
|
|
3317
|
-
let a2 = { [
|
|
3318
|
-
return t2({ ...n2, filter:
|
|
3317
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $contains: i2 } };
|
|
3318
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3319
3319
|
}, hasSome(r2, ...i2) {
|
|
3320
|
-
let a2 = { [
|
|
3321
|
-
return t2({ ...n2, filter:
|
|
3320
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $hasSome: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3321
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3322
3322
|
}, hasAll(r2, ...i2) {
|
|
3323
|
-
let a2 = { [
|
|
3324
|
-
return t2({ ...n2, filter:
|
|
3323
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $hasAll: Array.isArray(i2[0]) ? i2[0] : i2 } };
|
|
3324
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3325
3325
|
}, between(e3, t3, n3) {
|
|
3326
3326
|
return this.ge(e3, t3).lt(e3, n3);
|
|
3327
3327
|
}, in(r2, i2) {
|
|
3328
|
-
let a2 = { [
|
|
3329
|
-
return t2({ ...n2, filter:
|
|
3328
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $in: i2 } };
|
|
3329
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3330
3330
|
}, exists(r2, i2 = true) {
|
|
3331
|
-
let a2 = { [
|
|
3332
|
-
return t2({ ...n2, filter:
|
|
3331
|
+
let a2 = { [Y(e2.transformationPaths, r2)]: { $exists: i2 } };
|
|
3332
|
+
return t2({ ...n2, filter: J(n2.filter, a2) });
|
|
3333
3333
|
}, or(e3) {
|
|
3334
|
-
return t2({ ...n2, filter:
|
|
3334
|
+
return t2({ ...n2, filter: ko(n2.filter, e3.query.filter) });
|
|
3335
3335
|
}, and(e3) {
|
|
3336
|
-
return t2({ ...n2, filter:
|
|
3336
|
+
return t2({ ...n2, filter: J(n2.filter, e3.query.filter) });
|
|
3337
3337
|
}, not(e3) {
|
|
3338
|
-
return t2({ ...n2, filter:
|
|
3338
|
+
return t2({ ...n2, filter: Ao(e3.query.filter) });
|
|
3339
3339
|
}, ascending(...r2) {
|
|
3340
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3340
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e2.transformationPaths, t3), order: `ASC` }))] });
|
|
3341
3341
|
}, descending(...r2) {
|
|
3342
|
-
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName:
|
|
3342
|
+
return t2({ ...n2, sort: [...n2.sort ?? [], ...r2.map((t3) => ({ fieldName: Y(e2.transformationPaths, t3), order: `DESC` }))] });
|
|
3343
3343
|
}, skip(e3) {
|
|
3344
3344
|
return t2({ ...n2, paging: { offset: e3, limit: `limit` in n2.paging ? n2.paging.limit : 50 } });
|
|
3345
3345
|
}, limit(r2) {
|
|
@@ -3352,28 +3352,28 @@ function Fo(e2) {
|
|
|
3352
3352
|
} });
|
|
3353
3353
|
return t2({ filter: {}, ...e2.pagingMethod === `OFFSET` ? { paging: { offset: 0, limit: 50 } } : { cursorPaging: { limit: 50 } } });
|
|
3354
3354
|
}
|
|
3355
|
-
function
|
|
3355
|
+
function Y(e2, t2) {
|
|
3356
3356
|
let n2 = Object.entries(e2).find(([e3]) => e3 === t2 || t2.startsWith(`${e3}.`))?.[0];
|
|
3357
3357
|
return n2 ? t2.replace(n2, e2[n2]) : Qe(t2, { ...e2, ...Ze });
|
|
3358
3358
|
}
|
|
3359
|
-
function
|
|
3360
|
-
let r2 = (r3, i3) =>
|
|
3359
|
+
function Fo(e2, t2, n2 = {}) {
|
|
3360
|
+
let r2 = (r3, i3) => Fo(e2, t2, { ...n2, [r3]: i3 }), i2 = () => Object.keys(n2).length === 0 ? {} : { [$e(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) };
|
|
3364
3364
|
}
|
|
3365
|
+
function Io(e2) {
|
|
3366
|
+
return Object.assign((t2) => Fo(t2, e2), { and: (...e3) => ({ filter: { $and: e3.map((e4) => e4.filter) } }), or: (...e3) => ({ filter: { $or: e3.map((e4) => e4.filter) } }), not: (e3) => ({ filter: { $not: e3.filter } }) });
|
|
3367
|
+
}
|
|
3365
3368
|
function Lo(e2) {
|
|
3366
|
-
return
|
|
3369
|
+
return (t2) => ({ asc: () => ({ sort: { fieldName: $e(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: $e(t2, e2), order: `DESC` } }) });
|
|
3367
3370
|
}
|
|
3368
3371
|
function Ro(e2) {
|
|
3369
|
-
return (t2) => ({ asc: () => ({ sort: { fieldName: j(t2, e2), order: `ASC` } }), desc: () => ({ sort: { fieldName: j(t2, e2), order: `DESC` } }) });
|
|
3370
|
-
}
|
|
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) => $e(t3, e2)) }, n2;
|
|
3377
3377
|
}, withSorting(...e3) {
|
|
3378
3378
|
return t2 = { ...t2, sort: e3.map((e4) => e4.sort) }, n2;
|
|
3379
3379
|
}, withPaging(e3) {
|
|
@@ -3384,44 +3384,44 @@ function zo(e2) {
|
|
|
3384
3384
|
return n2;
|
|
3385
3385
|
};
|
|
3386
3386
|
}
|
|
3387
|
-
function
|
|
3388
|
-
return { QueryBuilder:
|
|
3389
|
-
}
|
|
3390
|
-
var
|
|
3391
|
-
var
|
|
3392
|
-
var
|
|
3393
|
-
var
|
|
3394
|
-
var
|
|
3395
|
-
var
|
|
3396
|
-
function
|
|
3387
|
+
function zo(e2) {
|
|
3388
|
+
return { QueryBuilder: Ro(e2), Filter: Io(e2), Sort: Lo(e2) };
|
|
3389
|
+
}
|
|
3390
|
+
var Bo = `filter`;
|
|
3391
|
+
var Vo = `sort`;
|
|
3392
|
+
var Ho = `cursorPaging`;
|
|
3393
|
+
var Uo = `paging`;
|
|
3394
|
+
var Wo = [Bo, Vo, Ho];
|
|
3395
|
+
var Go = [Bo, Vo, Uo];
|
|
3396
|
+
function Ko(e2, t2) {
|
|
3397
3397
|
return !e2 || typeof e2 != `object` ? false : t2.some((t3) => e2.hasOwnProperty(t3));
|
|
3398
3398
|
}
|
|
3399
|
+
function qo(e2) {
|
|
3400
|
+
return Ko(e2, Wo);
|
|
3401
|
+
}
|
|
3399
3402
|
function Jo(e2) {
|
|
3400
|
-
return
|
|
3403
|
+
return Ko(e2, Go);
|
|
3401
3404
|
}
|
|
3402
3405
|
function Yo(e2) {
|
|
3403
|
-
return qo(e2, Ko);
|
|
3404
|
-
}
|
|
3405
|
-
function Xo(e2) {
|
|
3406
3406
|
let { hasOptionsParameter: t2 } = e2;
|
|
3407
3407
|
return function(...n2) {
|
|
3408
|
-
return t2 ?
|
|
3408
|
+
return t2 ? Zo(n2, e2) : Xo(n2, e2);
|
|
3409
3409
|
};
|
|
3410
3410
|
}
|
|
3411
|
-
function
|
|
3411
|
+
function Xo(e2, t2) {
|
|
3412
3412
|
return e2.length === 0 ? t2.builderQueryFunction() : t2.typedQueryFunction(e2[0]);
|
|
3413
3413
|
}
|
|
3414
|
-
function
|
|
3414
|
+
function Zo(e2, t2) {
|
|
3415
3415
|
switch (e2.length) {
|
|
3416
3416
|
case 0:
|
|
3417
3417
|
return t2.builderQueryFunction();
|
|
3418
3418
|
case 1:
|
|
3419
|
-
return
|
|
3419
|
+
return qo(e2[0]) || Jo(e2[0]) ? t2.typedQueryFunction(e2[0]) : t2.builderQueryFunction(e2[0]);
|
|
3420
3420
|
default:
|
|
3421
3421
|
return t2.typedQueryFunction(e2[0], e2[1]);
|
|
3422
3422
|
}
|
|
3423
3423
|
}
|
|
3424
|
-
function
|
|
3424
|
+
function Qo(e2) {
|
|
3425
3425
|
if (!e2) return;
|
|
3426
3426
|
let t2 = _t(e2, `image`), { protocol: n2, hash: r2, pathname: i2 } = new URL(t2), a2 = new URLSearchParams(r2.replace(`#`, ``)), o2 = a2.get(`originHeight`), s2 = a2.get(`originWidth`), [c2, l2] = i2.replace(`image://v1/`, ``).split(`/`), u2 = l2 && decodeURIComponent(l2);
|
|
3427
3427
|
if (n2 === `wix:`) {
|
|
@@ -3430,7 +3430,7 @@ function $o(e2) {
|
|
|
3430
3430
|
}
|
|
3431
3431
|
return { url: e2 };
|
|
3432
3432
|
}
|
|
3433
|
-
function
|
|
3433
|
+
function $o(e2) {
|
|
3434
3434
|
if (!e2) return;
|
|
3435
3435
|
let t2 = ``;
|
|
3436
3436
|
return (e2.filename || e2.altText) && (t2 = `/${encodeURIComponent(e2.filename || e2.altText)}`), e2.id ? `wix:image://v1/${e2.id}${t2}#originWidth=${e2.width}&originHeight=${e2.height}` : e2.url;
|
|
@@ -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) => $e(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: $e(e3, t2) }, r2;
|
|
3514
3514
|
}, asValueAggregation() {
|
|
3515
3515
|
return ns(n2);
|
|
3516
3516
|
}, asRangeAggregation() {
|
|
@@ -3548,39 +3548,39 @@ function ls() {
|
|
|
3548
3548
|
};
|
|
3549
3549
|
}
|
|
3550
3550
|
function us(e2) {
|
|
3551
|
-
return { SearchBuilder: ls(), Filter:
|
|
3551
|
+
return { SearchBuilder: ls(), Filter: Io(e2), Sort: Lo(e2), SearchParams: ts(e2), Aggregation: cs(e2) };
|
|
3552
3552
|
}
|
|
3553
3553
|
function ds(e2) {
|
|
3554
|
-
return
|
|
3554
|
+
return Vt(Object.assign(e2, { domainToMappings: { "bo._base_domain_": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wixbo.ai": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "wix-bo.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/back-in-stock-service`, destPath: `` }], _: [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }], "*.dev.wix-code.com": [{ srcPath: `/v1/back-in-stock-notification-requests`, destPath: `/v1/back-in-stock-notification-requests` }] } }));
|
|
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: mn, 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(j({ request: e2, itemDetails: t2 }), [{ transformFn: Qo, 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 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { request: `$[0]`, itemDetails: `$[1]` }, singleArgumentUnchanged: false }, [`request`, `itemDetails`]);
|
|
3572
3572
|
throw r2?.onError?.(e3), t3;
|
|
3573
3573
|
}
|
|
3574
3574
|
}
|
|
3575
|
-
({ ...
|
|
3575
|
+
({ ...zo() });
|
|
3576
3576
|
function hs(e2) {
|
|
3577
3577
|
return (t2, n2) => ms(t2, n2, { httpClient: e2 });
|
|
3578
3578
|
}
|
|
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 = zt(hs);
|
|
3583
|
+
I(gs), I(_s), I(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 Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
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: mn, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.physicalProperties.weight` }, { path: `cart.lineItems.attributes.physicalProperties.weight` }, { path: `cart.deliveryInfo.address.geocode.latitude` }, { path: `cart.deliveryInfo.address.geocode.longitude` }, { path: `cart.paymentInfo.billingAddress.geocode.latitude` }, { path: `cart.paymentInfo.billingAddress.geocode.longitude` }, { path: `cart.legacyFields.discounts.merchantDiscount.percentage` }, { path: `cart.tcAppliedDiscounts.merchantDiscount.percentage` }, { path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }]);
|
|
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: 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` }] }]) };
|
|
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(j({ cart: e2?.cart, catalogItems: e2?.catalogItems, customItems: e2?.customItems, coupons: e2?.coupons, deliveryMethod: e2?.deliveryMethod, giftCards: e2?.giftCards }), [{ transformFn: Qo, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }, { path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `cart.lineItems.attributes.url` }, { path: `customItems.attributes.url` }] }, { transformFn: gn, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3606
3606
|
n2?.onSiteCall?.();
|
|
3607
3607
|
try {
|
|
3608
3608
|
let e3 = await t2.request(r2);
|
|
3609
|
-
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn:
|
|
3609
|
+
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: $o, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]))?.cart;
|
|
3610
3610
|
} catch (e3) {
|
|
3611
|
-
let t3 =
|
|
3611
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { cart: `$[0].cart`, catalogItems: `$[0].catalogItems`, customItems: `$[0].customItems`, coupons: `$[0].coupons`, deliveryMethod: `$[0].deliveryMethod`, giftCards: `$[0].giftCards` }, singleArgumentUnchanged: false }, [`options`]);
|
|
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 = zt(Es);
|
|
3619
3619
|
function Os(e2) {
|
|
3620
|
-
return
|
|
3620
|
+
return Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/cart-v2`, destPath: `` }], _: [{ srcPath: `/_api/cart-v2`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "apps._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "bo._base_domain_": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wixbo.ai": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "wix-bo.com": [{ srcPath: `/_api/cart-v2`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/ecom/v2/carts`, destPath: `/v2/carts` }], "editor.wixapps.net": [{ srcPath: `/_api/cart-v2`, destPath: `` }] } }));
|
|
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: mn, paths: [{ path: `catalogItems.catalogOverrideFields.physicalProperties.weight` }, { path: `customItems.attributes.physicalProperties.weight` }] }, { transformFn: it, paths: [{ path: `catalogItems.catalogOverrideFields.image.urlExpirationDate` }, { path: `customItems.attributes.image.urlExpirationDate` }, { path: `customItems.attributes.serviceProperties.scheduledDate` }, { path: `customItems.attributes.serviceProperties.endDate` }, { path: `customItems.attributes.subscriptionInfo.subscriptionSettings.startDate` }] }]);
|
|
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: 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` }] }]) };
|
|
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(j({ catalogItems: e2?.catalogItems, customItems: e2?.customItems }), [{ transformFn: Qo, paths: [{ path: `catalogItems.catalogOverrideFields.image` }, { path: `customItems.attributes.image` }] }, { transformFn: bs, paths: [{ path: `customItems.attributes.url` }] }]));
|
|
3632
3632
|
n2?.onSiteCall?.();
|
|
3633
3633
|
try {
|
|
3634
3634
|
let e3 = await t2.request(r2);
|
|
3635
|
-
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn:
|
|
3635
|
+
return n2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: $o, paths: [{ path: `cart.lineItems.source.catalogOverrideFields.image` }, { path: `cart.lineItems.attributes.image` }] }, { transformFn: X, paths: [{ path: `cart.lineItems.attributes.url` }] }, { transformFn: _n, paths: [{ path: `cart.deliveryInfo.address` }, { path: `cart.paymentInfo.billingAddress` }] }]));
|
|
3636
3636
|
} catch (e3) {
|
|
3637
|
-
let t3 =
|
|
3637
|
+
let t3 = F(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 = zt(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`;
|
|
@@ -3692,7 +3692,7 @@ function Gs(e2, t2) {
|
|
|
3692
3692
|
}
|
|
3693
3693
|
}
|
|
3694
3694
|
function Ks(e2, r2) {
|
|
3695
|
-
let i2 = t((t2) => r2 ? Ls({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price:
|
|
3695
|
+
let i2 = t((t2) => r2 ? Ls({ productId: e2.id, variantId: r2.id, email: t2, name: e2.name ?? ``, price: To(r2), imageUrl: Gs(e2, r2) }) : Promise.reject(Error(`Cannot create a back-in-stock notification without a selected variant`)), [e2, r2]);
|
|
3696
3696
|
return n(() => ({ handleNotifyMe: i2 }), [i2]);
|
|
3697
3697
|
}
|
|
3698
3698
|
function qs(e2, t2) {
|
|
@@ -3714,19 +3714,19 @@ 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 Vt(Object.assign(e2, { domainToMappings: { "manage._base_domain_": [{ srcPath: `/inventory`, destPath: `` }], "api._api_base_domain_": [{ srcPath: `/inventory`, destPath: `` }], _: [{ srcPath: `/_api/inventory`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/inventory`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/inventory`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/inventory-items`, destPath: `/v3/inventory-items` }, { srcPath: `/stores/v3/bulk/inventory-items`, destPath: `/v3/bulk/inventory-items` }], "*.dev.wix-code.com": [{ srcPath: `/_api/inventory`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/inventory`, destPath: `` }] } }));
|
|
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: Bt(e2, true), transformResponse: (e3) => P(e3, [{ transformFn: N, paths: [{ path: `inventoryItems.createdDate` }, { path: `inventoryItems.updatedDate` }] }]), fallback: [{ method: `POST`, url: Ys({ protoPath: `/v3/inventory-items/query`, data: e2, host: t3 }), data: e2 }] };
|
|
3723
3723
|
}
|
|
3724
3724
|
return t2;
|
|
3725
3725
|
}
|
|
3726
3726
|
var Z = ((e2) => (e2.OUT_OF_STOCK = `OUT_OF_STOCK`, e2.IN_STOCK = `IN_STOCK`, e2.PREORDER = `PREORDER`, e2))(Z || {});
|
|
3727
3727
|
function Qs() {
|
|
3728
3728
|
let { httpClient: e2, sideEffects: t2 } = arguments[0];
|
|
3729
|
-
return
|
|
3729
|
+
return Po({ func: async (n2) => {
|
|
3730
3730
|
let r2 = Zs(n2);
|
|
3731
3731
|
t2?.onSiteCall?.();
|
|
3732
3732
|
try {
|
|
@@ -3737,26 +3737,26 @@ function Qs() {
|
|
|
3737
3737
|
}
|
|
3738
3738
|
}, requestTransformer: (e3) => {
|
|
3739
3739
|
let t3 = [e3, {}];
|
|
3740
|
-
return
|
|
3740
|
+
return j({ ...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 F(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(j({ 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 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { query: `$[0]` }, singleArgumentUnchanged: false }, [`query`]);
|
|
3756
3756
|
throw n2?.onError?.(e3), t3;
|
|
3757
3757
|
}
|
|
3758
3758
|
}
|
|
3759
|
-
({ ...
|
|
3759
|
+
({ ...zo() }, { ...us() });
|
|
3760
3760
|
function ec(e2) {
|
|
3761
3761
|
return () => Qs({ httpClient: e2 });
|
|
3762
3762
|
}
|
|
@@ -3769,21 +3769,21 @@ var ic = b(`wix.stores.catalog.v3.inventory_item_stock_status_updated`, true, (e
|
|
|
3769
3769
|
var ac = b(`wix.stores.catalog.v3.inventory_item_updated`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `entity.createdDate` }, { path: `entity.updatedDate` }, { path: `metadata.eventTime` }, { path: `modifiedFields.createdDate` }, { path: `modifiedFields.updatedDate` }] }])))();
|
|
3770
3770
|
var oc = b(`wix.stores.catalog.v3.inventory_item_updated_with_reason`, true, (e2) => M(P(e2, [{ transformFn: N, paths: [{ path: `data.currentEntity.createdDate` }, { path: `data.currentEntity.updatedDate` }, { path: `metadata.eventTime` }] }])))();
|
|
3771
3771
|
function sc(e2) {
|
|
3772
|
-
let t2 =
|
|
3772
|
+
let t2 = Yo({ builderQueryFunction: () => ec(e2)(), typedQueryFunction: (t3) => tc(e2)(t3), hasOptionsParameter: false });
|
|
3773
3773
|
function n2(e3) {
|
|
3774
3774
|
return t2(...arguments);
|
|
3775
3775
|
}
|
|
3776
3776
|
return n2;
|
|
3777
3777
|
}
|
|
3778
|
-
var cc =
|
|
3779
|
-
|
|
3778
|
+
var cc = zt(sc);
|
|
3779
|
+
I(nc), I(rc), I(ic), I(ac), I(oc);
|
|
3780
3780
|
function lc(e2) {
|
|
3781
|
-
return
|
|
3781
|
+
return Vt(Object.assign(e2, { domainToMappings: { "api._api_base_domain_": [{ srcPath: `/stores-catalog-orchestrator`, destPath: `` }], "manage._base_domain_": [{ srcPath: `/stores`, destPath: `` }], "www.wixapis.com": [{ srcPath: `/stores/v3/products`, destPath: `/v3/products` }, { srcPath: `/stores/v3/bulk/products`, destPath: `/v3/bulk/products` }, { srcPath: `/stores/v3/products-with-inventory`, destPath: `/v3/products-with-inventory` }, { srcPath: `/stores/v3/bulk/products-with-inventory`, destPath: `/v3/bulk/products-with-inventory` }, { srcPath: `/stores/v3/all-products-category`, destPath: `/v3/all-products-category` }], "www._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "blocks._base_domain_": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "create.editorx": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "editor.wixapps.net": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], "*.dev.wix-code.com": [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }], _: [{ srcPath: `/_api/stores-catalog-orchestrator`, destPath: `` }] } }));
|
|
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: 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` }] }]) };
|
|
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` }] }]) };
|
|
3787
3787
|
}
|
|
3788
3788
|
return t2;
|
|
3789
3789
|
}
|
|
@@ -3792,25 +3792,25 @@ 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(j({ productId: e2, fields: t2?.fields }, []));
|
|
3796
3796
|
r2?.onSiteCall?.();
|
|
3797
3797
|
try {
|
|
3798
3798
|
let e3 = await n2.request(i2);
|
|
3799
|
-
return r2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: X, paths: [{ path: `product.url` }] }, { transformFn:
|
|
3799
|
+
return r2?.onSuccess?.(e3), M(P(e3.data, [{ transformFn: X, paths: [{ path: `product.url` }] }, { transformFn: $o, paths: [{ path: `product.media.main.image` }, { path: `product.media.itemsInfo.items.image` }, { path: `product.options.choicesSettings.choices.image` }, { path: `product.options.choicesSettings.choices.displayImage` }, { path: `product.options.choicesSettings.choices.linkedMedia.image` }, { path: `product.modifiers.choicesSettings.choices.image` }, { path: `product.modifiers.choicesSettings.choices.displayImage` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `product.variantsInfo.variants.media.image` }, { path: `product.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `product.media.main.video` }, { path: `product.media.itemsInfo.items.video` }, { path: `product.options.choicesSettings.choices.linkedMedia.video` }, { path: `product.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `product.variantsInfo.variants.media.video` }, { path: `product.variantSummary.minPriceVariant.media.video` }] }]), [`product.description`, `product.infoSections.description`])?.product;
|
|
3800
3800
|
} catch (e3) {
|
|
3801
|
-
let t3 =
|
|
3801
|
+
let t3 = F(e3, { spreadPathsToArguments: {}, explicitPathsToArguments: { productId: `$[0]`, fields: `$[1].fields` }, singleArgumentUnchanged: false }, [`productId`, `options`]);
|
|
3802
3802
|
throw r2?.onError?.(e3), t3;
|
|
3803
3803
|
}
|
|
3804
3804
|
}
|
|
3805
|
-
({ ...us() }, { ...
|
|
3805
|
+
({ ...us() }, { ...zo() });
|
|
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: 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 =
|
|
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: hn, paths: [{ path: `entity.physicalProperties.pricePerUnit.quantity` }, { path: `entity.physicalProperties.shippingWeightRange.minValue` }, { path: `entity.physicalProperties.shippingWeightRange.maxValue` }, { path: `entity.variantsInfo.variants.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantsInfo.variants.revenueDetails.profitMargin` }, { path: `entity.subscriptionDetails.subscriptions.discount.percentOff` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.pricePerUnit.settings.quantity` }, { path: `entity.variantSummary.minPriceVariant.revenueDetails.profitMargin` }, { path: `entity.minVariantPriceInfo.pricePerUnitData.settings.quantity` }, { path: `entity.minVariantPriceInfo.revenueDetails.profitMargin` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.description.nodes.galleryData.options.item.ratio` }, { path: `entity.description.nodes.imageData.image.duration` }, { path: `entity.description.nodes.imageData.crop.x` }, { path: `entity.description.nodes.imageData.crop.y` }, { path: `entity.description.nodes.imageData.crop.width` }, { path: `entity.description.nodes.imageData.crop.height` }, { path: `entity.description.nodes.mapData.mapSettings.lat` }, { path: `entity.description.nodes.mapData.mapSettings.lng` }, { path: `entity.description.nodes.pollData.poll.image.duration` }, { path: `entity.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.description.nodes.appEmbedData.image.duration` }, { path: `entity.description.nodes.videoData.video.duration` }, { path: `entity.description.nodes.videoData.thumbnail.duration` }, { path: `entity.description.nodes.audioData.audio.duration` }, { path: `entity.description.nodes.audioData.coverImage.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.description.nodes.shapeData.shape.duration` }, { path: `entity.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.description.nodes.tocData.fontSize` }, { path: `entity.description.nodes.tocData.itemSpacing` }, { path: `entity.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerX` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.centerY` }, { path: `entity.infoSections.description.nodes.buttonData.styles.backgroundHover.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.galleryData.items.image.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.media.duration` }, { path: `entity.infoSections.description.nodes.galleryData.items.video.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.galleryData.options.item.ratio` }, { path: `entity.infoSections.description.nodes.imageData.image.duration` }, { path: `entity.infoSections.description.nodes.imageData.crop.x` }, { path: `entity.infoSections.description.nodes.imageData.crop.y` }, { path: `entity.infoSections.description.nodes.imageData.crop.width` }, { path: `entity.infoSections.description.nodes.imageData.crop.height` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lat` }, { path: `entity.infoSections.description.nodes.mapData.mapSettings.lng` }, { path: `entity.infoSections.description.nodes.pollData.poll.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.poll.options.image.duration` }, { path: `entity.infoSections.description.nodes.pollData.design.poll.background.image.duration` }, { path: `entity.infoSections.description.nodes.appEmbedData.image.duration` }, { path: `entity.infoSections.description.nodes.videoData.video.duration` }, { path: `entity.infoSections.description.nodes.videoData.thumbnail.duration` }, { path: `entity.infoSections.description.nodes.audioData.audio.duration` }, { path: `entity.infoSections.description.nodes.audioData.coverImage.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.media.duration` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdropImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerX` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.centerY` }, { path: `entity.infoSections.description.nodes.layoutData.backdrop.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.shapeData.shape.duration` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.background.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.media.duration` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerX` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.centerY` }, { path: `entity.infoSections.description.nodes.cardData.backgroundImage.overlay.gradient.stops.position` }, { path: `entity.infoSections.description.nodes.tocData.fontSize` }, { path: `entity.infoSections.description.nodes.tocData.itemSpacing` }, { path: `entity.infoSections.description.nodes.smartBlockCellData.shape.duration` }, { path: `entity.variantsInfo.variants.physicalProperties.weight` }, { path: `entity.variantSummary.minPriceVariant.physicalProperties.weight` }, { path: `entity.minVariantPriceInfo.weight` }] }, { transformFn: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
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: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
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: $o, paths: [{ path: `entity.media.main.image` }, { path: `entity.media.itemsInfo.items.image` }, { path: `entity.options.choicesSettings.choices.image` }, { path: `entity.options.choicesSettings.choices.displayImage` }, { path: `entity.options.choicesSettings.choices.linkedMedia.image` }, { path: `entity.modifiers.choicesSettings.choices.image` }, { path: `entity.modifiers.choicesSettings.choices.displayImage` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `entity.variantsInfo.variants.media.image` }, { path: `entity.variantSummary.minPriceVariant.media.image` }, { path: `modifiedFields.media.main.image` }, { path: `modifiedFields.media.itemsInfo.items.image` }, { path: `modifiedFields.options.choicesSettings.choices.image` }, { path: `modifiedFields.options.choicesSettings.choices.displayImage` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.image` }, { path: `modifiedFields.modifiers.choicesSettings.choices.displayImage` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.image` }, { path: `modifiedFields.variantsInfo.variants.media.image` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.image` }] }, { transformFn: Js, paths: [{ path: `entity.media.main.video` }, { path: `entity.media.itemsInfo.items.video` }, { path: `entity.options.choicesSettings.choices.linkedMedia.video` }, { path: `entity.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `entity.variantsInfo.variants.media.video` }, { path: `entity.variantSummary.minPriceVariant.media.video` }, { path: `modifiedFields.media.main.video` }, { path: `modifiedFields.media.itemsInfo.items.video` }, { path: `modifiedFields.options.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.modifiers.choicesSettings.choices.linkedMedia.video` }, { path: `modifiedFields.variantsInfo.variants.media.video` }, { path: `modifiedFields.variantSummary.minPriceVariant.media.video` }] }])))();
|
|
3812
|
+
var xc = zt(_c);
|
|
3813
|
+
I(vc), I(yc), I(bc);
|
|
3814
3814
|
function Sc(e2) {
|
|
3815
3815
|
return wc(e2) ?? 99999;
|
|
3816
3816
|
}
|
|
@@ -3890,132 +3890,138 @@ function Vc(e2, t2, r2, i2 = false) {
|
|
|
3890
3890
|
}
|
|
3891
3891
|
var Hc = `one-time`;
|
|
3892
3892
|
var Uc = H(`@wix/site-service-locale`);
|
|
3893
|
-
|
|
3894
|
-
|
|
3895
|
-
|
|
3893
|
+
var Wc = H;
|
|
3894
|
+
var Gc = Wc(`@wix/viewer-service-multilingual`);
|
|
3895
|
+
function Kc() {
|
|
3896
|
+
let e2 = c(), t2 = l(Uc), n2;
|
|
3897
|
+
try {
|
|
3898
|
+
n2 = e2(Gc);
|
|
3899
|
+
} catch {
|
|
3900
|
+
}
|
|
3901
|
+
return n2?.multilingualEnabled && n2.currentLocale?.regionalFormat || t2.locale;
|
|
3896
3902
|
}
|
|
3897
|
-
var
|
|
3903
|
+
var qc = (e2) => {
|
|
3898
3904
|
let t2 = e2?.maximumFractionDigits ?? 2;
|
|
3899
3905
|
return (e3) => e3?.toFixed(t2);
|
|
3900
3906
|
};
|
|
3901
|
-
var
|
|
3907
|
+
var Jc = (e2, t2, n2) => {
|
|
3902
3908
|
let r2 = new Intl.NumberFormat(t2, { style: `currency`, currency: e2, ...n2 });
|
|
3903
3909
|
return (e3) => {
|
|
3904
3910
|
if (e3 != null) return r2.format(e3);
|
|
3905
3911
|
};
|
|
3906
3912
|
};
|
|
3907
|
-
function
|
|
3908
|
-
return e2 ?
|
|
3913
|
+
function Yc(e2, t2, n2) {
|
|
3914
|
+
return e2 ? Jc(e2, t2, n2) : qc(n2);
|
|
3909
3915
|
}
|
|
3910
|
-
function
|
|
3911
|
-
let r2 =
|
|
3912
|
-
return n(() =>
|
|
3916
|
+
function Xc(e2, t2) {
|
|
3917
|
+
let r2 = Kc();
|
|
3918
|
+
return n(() => Yc(e2, r2, t2), [e2, r2, t2]);
|
|
3913
3919
|
}
|
|
3914
3920
|
function Q(e2, t2) {
|
|
3915
3921
|
return e2 === void 0 ? void 0 : { amount: e2, formattedAmount: t2(e2) };
|
|
3916
3922
|
}
|
|
3917
|
-
function
|
|
3923
|
+
function Zc(e2, t2, n2) {
|
|
3918
3924
|
return { id: e2.id, name: e2.name, isOneTimePurchase: false, description: e2.description, currentPrice: Q(t2.currentSellingPrice, n2), originalPrice: Q(t2.priceBeforeDiscount, n2), frequency: e2.frequency, interval: e2.interval, duration: e2.billingCycles };
|
|
3919
3925
|
}
|
|
3920
|
-
function
|
|
3926
|
+
function Qc(e2) {
|
|
3921
3927
|
return e2 === void 0 ? void 0 : { description: e2.description };
|
|
3922
3928
|
}
|
|
3923
|
-
function
|
|
3924
|
-
return { currentSellingPrice: Q(e2.currentSellingPrice, t2), priceBeforeDiscount: Q(e2.priceBeforeDiscount, t2), pricePerUnit:
|
|
3929
|
+
function $c(e2, t2) {
|
|
3930
|
+
return { currentSellingPrice: Q(e2.currentSellingPrice, t2), priceBeforeDiscount: Q(e2.priceBeforeDiscount, t2), pricePerUnit: Qc(e2.pricePerUnit) };
|
|
3925
3931
|
}
|
|
3926
|
-
function
|
|
3927
|
-
return { minCurrentSellingPrice: Q(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: Q(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: Q(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: Q(e2.maxPriceBeforeDiscount, t2), minPricePerUnit:
|
|
3932
|
+
function el(e2, t2) {
|
|
3933
|
+
return { minCurrentSellingPrice: Q(e2.minCurrentSellingPrice, t2), maxCurrentSellingPrice: Q(e2.maxCurrentSellingPrice, t2), minPriceBeforeDiscount: Q(e2.minPriceBeforeDiscount, t2), maxPriceBeforeDiscount: Q(e2.maxPriceBeforeDiscount, t2), minPricePerUnit: Qc(e2.minPricePerUnit), maxPricePerUnit: Qc(e2.maxPricePerUnit) };
|
|
3928
3934
|
}
|
|
3929
|
-
function
|
|
3935
|
+
function tl(e2, t2, n2, r2) {
|
|
3930
3936
|
if (e2.length === 0) return [];
|
|
3931
|
-
let i2 = e2.map(({ subscription: e3, price: t3 }) =>
|
|
3937
|
+
let i2 = e2.map(({ subscription: e3, price: t3 }) => Zc(e3, t3, r2));
|
|
3932
3938
|
return t2 ? [{ id: Hc, name: `One-time purchase`, isOneTimePurchase: true, currentPrice: Q(n2.currentSellingPrice, r2) }, ...i2] : i2;
|
|
3933
3939
|
}
|
|
3934
|
-
function
|
|
3935
|
-
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 =
|
|
3940
|
+
function nl({ product: e2, userInputs: t2, hasLoadedVariants: r2 }) {
|
|
3941
|
+
let { selectedVariant: i2, selectedSubscriptionPlanId: a2 } = t2, o2 = Xc(e2.currency);
|
|
3936
3942
|
return n(() => {
|
|
3937
|
-
let t3 =
|
|
3943
|
+
let t3 = Co(e2, i2, r2), n2 = { ...$c(wo(t3, a2), o2), ...el(t3.productPriceRange, o2) }, s2 = tl(t3.subscriptionPlanPrices, e2.subscriptionDetails.allowOneTimePurchases, t3.productPrice, o2);
|
|
3938
3944
|
return { currency: e2.currency, pricing: n2, subscriptionPlans: s2 };
|
|
3939
3945
|
}, [e2, i2, a2, r2, o2]);
|
|
3940
3946
|
}
|
|
3941
|
-
var
|
|
3947
|
+
var rl = function(e2) {
|
|
3942
3948
|
return e2.PRODUCT_BY_SLUG = `product-by-slug`, e2.PRODUCT_BY_ID = `product-by-id`, e2.PRODUCT_ITEM = `product-item`, e2;
|
|
3943
3949
|
}({});
|
|
3944
|
-
function
|
|
3950
|
+
function il(e2) {
|
|
3945
3951
|
let { isInStock: t2, isPreOrderState: n2 } = Tc(e2);
|
|
3946
3952
|
return n2 ? Z.PREORDER : t2 ? Z.IN_STOCK : Z.OUT_OF_STOCK;
|
|
3947
3953
|
}
|
|
3948
|
-
function
|
|
3954
|
+
function al(e2) {
|
|
3949
3955
|
let { minPriceVariant: t2 } = e2, n2 = e2.options.length === 0;
|
|
3950
|
-
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus:
|
|
3956
|
+
return !t2 || !n2 ? { variants: [], inventoryItems: [] } : { variants: [t2], inventoryItems: [{ variantId: t2.id, availabilityStatus: il(e2.inventory), trackQuantity: false }] };
|
|
3951
3957
|
}
|
|
3952
|
-
var
|
|
3953
|
-
var
|
|
3954
|
-
function
|
|
3955
|
-
return e2.filter((e3) => e3.visible !== false).map(
|
|
3958
|
+
var ol = (e2) => Number.parseFloat(e2?.amount);
|
|
3959
|
+
var sl = (e2) => e2?.amount == null ? void 0 : ol(e2);
|
|
3960
|
+
function cl(e2) {
|
|
3961
|
+
return e2.filter((e3) => e3.visible !== false).map(ll);
|
|
3956
3962
|
}
|
|
3957
|
-
var
|
|
3963
|
+
var ll = (e2) => {
|
|
3958
3964
|
let t2 = Object.fromEntries((e2.choices ?? []).map((e3) => {
|
|
3959
3965
|
let t3 = e3.optionChoiceIds;
|
|
3960
3966
|
return [t3?.optionId, t3?.choiceId];
|
|
3961
3967
|
}));
|
|
3962
|
-
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price:
|
|
3968
|
+
return { id: e2._id, sku: e2.sku ?? void 0, choices: t2, price: dl(e2), subscriptionPrices: fl(e2) };
|
|
3963
3969
|
};
|
|
3964
|
-
function
|
|
3970
|
+
function ul(e2) {
|
|
3965
3971
|
return e2?.description == null ? void 0 : { description: e2.description };
|
|
3966
3972
|
}
|
|
3967
|
-
var
|
|
3973
|
+
var dl = (e2) => {
|
|
3968
3974
|
let t2 = e2.price;
|
|
3969
|
-
return { actualPrice:
|
|
3975
|
+
return { actualPrice: ol(t2?.actualPrice), compareAtPrice: sl(t2?.compareAtPrice), priceAfterDiscount: sl(t2?.priceAfterDiscount), pricePerUnit: ul(e2.physicalProperties?.pricePerUnit) };
|
|
3970
3976
|
};
|
|
3971
|
-
var
|
|
3972
|
-
function
|
|
3977
|
+
var fl = (e2) => (e2.subscriptionPricesInfo?.subscriptionPrices ?? []).map((e3) => ({ subscriptionId: e3.subscriptionId, price: ol(e3.price) }));
|
|
3978
|
+
function pl(e2) {
|
|
3973
3979
|
return e2.map((e3) => ({ variantId: e3.variantId ?? ``, availabilityStatus: e3.availabilityStatus, quantity: e3.quantity ?? void 0, trackQuantity: e3.trackQuantity ?? false, preorderInfo: e3.preorderInfo ? { message: e3.preorderInfo.message ?? void 0, quantity: e3.preorderInfo.quantity ?? void 0 } : void 0 }));
|
|
3974
3980
|
}
|
|
3975
|
-
async function fl(e2, t2) {
|
|
3976
|
-
return dl((await cc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
3977
|
-
}
|
|
3978
|
-
var pl = [hc.SUBSCRIPTION_PRICES_INFO, hc.DISCOUNT_INFO];
|
|
3979
3981
|
async function ml(e2, t2) {
|
|
3980
|
-
|
|
3981
|
-
return { variants: ol(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
3982
|
+
return pl((await cc().eq(`productId`, e2).eq(`locationId`, t2).find()).items ?? []);
|
|
3982
3983
|
}
|
|
3983
|
-
|
|
3984
|
-
|
|
3984
|
+
var hl = [hc.SUBSCRIPTION_PRICES_INFO, hc.DISCOUNT_INFO];
|
|
3985
|
+
async function gl(e2, t2) {
|
|
3986
|
+
let [n2, r2] = await Promise.all([xc(e2, { fields: hl }), ml(e2, t2)]);
|
|
3987
|
+
return { variants: cl(n2.variantsInfo?.variants ?? []), inventoryItems: r2 };
|
|
3988
|
+
}
|
|
3989
|
+
function _l(e2, n2) {
|
|
3990
|
+
let [i2, a2] = r(false), { data: o2, isFetching: s2 } = Zr({ queryKey: [`product-variants`, e2, n2], queryFn: () => gl(e2, n2), enabled: i2, staleTime: 1 / 0, retry: false });
|
|
3985
3991
|
return { variantsData: o2, isLoadingVariants: s2, requestVariants: t(() => {
|
|
3986
3992
|
a2(true);
|
|
3987
3993
|
}, []) };
|
|
3988
3994
|
}
|
|
3989
|
-
function
|
|
3990
|
-
let { variantsData: r2, isLoadingVariants: i2, requestVariants: a2 } =
|
|
3995
|
+
function vl(e2, t2) {
|
|
3996
|
+
let { variantsData: r2, isLoadingVariants: i2, requestVariants: a2 } = _l(e2.id, t2), { variants: o2, inventoryItems: s2 } = n(() => r2 ?? al(e2), [r2, e2]);
|
|
3991
3997
|
return { product: n(() => ({ ...e2, variants: o2 }), [e2, o2]), inventoryItems: s2, hasLoadedVariants: n(() => r2 !== void 0, [r2]), isLoadingVariants: i2, requestVariants: a2 };
|
|
3992
3998
|
}
|
|
3993
|
-
var
|
|
3994
|
-
function
|
|
3999
|
+
var yl = { type: `invalid-purchase`, message: `This item can't be purchased.` };
|
|
4000
|
+
function bl(e2) {
|
|
3995
4001
|
let t2 = e2;
|
|
3996
4002
|
return { type: `cart`, message: t2?.message, details: t2?.details };
|
|
3997
4003
|
}
|
|
3998
|
-
var
|
|
3999
|
-
var
|
|
4000
|
-
var
|
|
4001
|
-
var
|
|
4002
|
-
var
|
|
4004
|
+
var xl = H(`@wix/site-service-lightbox`);
|
|
4005
|
+
var Sl = H(`@wix/site-service-router`);
|
|
4006
|
+
var Cl = H(`@wix/site-service-editor-context`);
|
|
4007
|
+
var wl = H(`@wix/site-service-pages`);
|
|
4008
|
+
var Tl = (e2) => {
|
|
4003
4009
|
if (!e2) return ``;
|
|
4004
4010
|
let t2 = new URLSearchParams(e2).toString();
|
|
4005
4011
|
return t2 ? `?${t2}` : ``;
|
|
4006
4012
|
};
|
|
4007
|
-
var
|
|
4013
|
+
var El = (e2, t2, n2) => {
|
|
4008
4014
|
let r2 = `./${e2.replace(/^\//, ``)}`;
|
|
4009
4015
|
return n2 ? r2 : new URL(r2, `${t2.replace(/\/$/, ``)}/`).href;
|
|
4010
4016
|
};
|
|
4011
|
-
var
|
|
4012
|
-
let { navigateTo: e2 } = l(
|
|
4017
|
+
var Dl = () => {
|
|
4018
|
+
let { navigateTo: e2 } = l(Sl), { open: n2 } = l(xl), r2 = l(Qr), i2 = l(Cl), a2 = l(wl), { getPageRelativeUrl: o2, getPageAbsoluteUrl: s2 } = ti();
|
|
4013
4019
|
return { navigateToPage: t(async (t2, n3) => {
|
|
4014
4020
|
try {
|
|
4015
4021
|
let a3 = r2.appSectionRelativeUrl(ei, t2);
|
|
4016
4022
|
if (!a3) return false;
|
|
4017
|
-
let o3 = `${a3}${
|
|
4018
|
-
return await e2({ href:
|
|
4023
|
+
let o3 = `${a3}${Tl(n3)}`;
|
|
4024
|
+
return await e2({ href: El(o3, r2.siteUrl, i2.previewMode) }), true;
|
|
4019
4025
|
} catch {
|
|
4020
4026
|
return false;
|
|
4021
4027
|
}
|
|
@@ -4036,85 +4042,85 @@ var Tl = () => {
|
|
|
4036
4042
|
}
|
|
4037
4043
|
}, [n2, a2]) };
|
|
4038
4044
|
};
|
|
4039
|
-
async function
|
|
4045
|
+
async function Ol(e2) {
|
|
4040
4046
|
await Ns({ catalogItems: [e2] });
|
|
4041
4047
|
}
|
|
4042
|
-
var
|
|
4043
|
-
var
|
|
4048
|
+
var kl = Wc(`@wix/site-service-public-api-caller`);
|
|
4049
|
+
var Al = () => {
|
|
4044
4050
|
let e2 = c();
|
|
4045
4051
|
return { reloadCart: t(async () => {
|
|
4046
4052
|
if (typeof window < `u`) try {
|
|
4047
|
-
await e2(
|
|
4053
|
+
await e2(kl).callPublicApi(ei, `cart.reloadCart`, []);
|
|
4048
4054
|
} catch {
|
|
4049
4055
|
}
|
|
4050
4056
|
}, [e2]) };
|
|
4051
4057
|
};
|
|
4052
|
-
var
|
|
4058
|
+
var jl = function(e2) {
|
|
4053
4059
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2.SUCCESS = `success`, e2;
|
|
4054
4060
|
}({});
|
|
4055
|
-
var
|
|
4061
|
+
var Ml = function(e2) {
|
|
4056
4062
|
return e2.NONE = `none`, e2.NAVIGATE_TO_CART = `navigate-to-cart`, e2.OPEN_SIDE_CART = `open-side-cart`, e2;
|
|
4057
4063
|
}({});
|
|
4058
|
-
var
|
|
4059
|
-
let [e2, n2] = r(
|
|
4064
|
+
var Nl = () => {
|
|
4065
|
+
let [e2, n2] = r(jl.IDLE), { navigateToPage: i2, openLightbox: a2 } = Dl(), { reloadCart: o2 } = Al(), s2 = t(async (e3) => {
|
|
4060
4066
|
switch (e3) {
|
|
4061
|
-
case
|
|
4067
|
+
case Ml.NAVIGATE_TO_CART:
|
|
4062
4068
|
await i2(U.CART);
|
|
4063
4069
|
return;
|
|
4064
|
-
case
|
|
4070
|
+
case Ml.OPEN_SIDE_CART:
|
|
4065
4071
|
await a2(U.SIDE_CART);
|
|
4066
4072
|
return;
|
|
4067
|
-
case
|
|
4073
|
+
case Ml.NONE:
|
|
4068
4074
|
default:
|
|
4069
4075
|
return;
|
|
4070
4076
|
}
|
|
4071
4077
|
}, [i2, a2]);
|
|
4072
4078
|
return { addToCart: t(async (e3, t2) => {
|
|
4073
|
-
n2(
|
|
4079
|
+
n2(jl.IN_PROGRESS);
|
|
4074
4080
|
try {
|
|
4075
|
-
await
|
|
4081
|
+
await Ol(e3);
|
|
4076
4082
|
} catch (e4) {
|
|
4077
|
-
return n2(
|
|
4083
|
+
return n2(jl.IDLE), { ok: false, error: bl(e4) };
|
|
4078
4084
|
}
|
|
4079
4085
|
try {
|
|
4080
|
-
await o2(), n2(
|
|
4086
|
+
await o2(), n2(jl.SUCCESS), await s2(t2), setTimeout(() => n2(jl.IDLE), 2e3);
|
|
4081
4087
|
} catch {
|
|
4082
|
-
n2(
|
|
4088
|
+
n2(jl.IDLE);
|
|
4083
4089
|
}
|
|
4084
4090
|
return { ok: true };
|
|
4085
4091
|
}, [o2, s2]), addToCartState: e2, reloadCart: o2 };
|
|
4086
4092
|
};
|
|
4087
|
-
async function
|
|
4093
|
+
async function Pl(e2) {
|
|
4088
4094
|
let t2 = await Ds({ cart: { source: { channelType: ws.WEB } }, catalogItems: [e2] });
|
|
4089
4095
|
if (!t2._id) throw Error(`missing checkout id`);
|
|
4090
4096
|
return t2._id;
|
|
4091
4097
|
}
|
|
4092
|
-
var
|
|
4098
|
+
var Fl = function(e2) {
|
|
4093
4099
|
return e2.IDLE = `idle`, e2.IN_PROGRESS = `in-progress`, e2;
|
|
4094
4100
|
}({});
|
|
4095
|
-
var
|
|
4096
|
-
let { navigateToPage: e2 } =
|
|
4101
|
+
var Il = () => {
|
|
4102
|
+
let { navigateToPage: e2 } = Dl(), [n2, i2] = r(Fl.IDLE);
|
|
4097
4103
|
return { buyNowState: n2, buyNow: t(async (t2) => {
|
|
4098
|
-
i2(
|
|
4104
|
+
i2(Fl.IN_PROGRESS);
|
|
4099
4105
|
try {
|
|
4100
|
-
let n3 = await
|
|
4101
|
-
return await e2(U.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error:
|
|
4106
|
+
let n3 = await Pl(t2);
|
|
4107
|
+
return await e2(U.CHECKOUT, { checkoutId: n3 }) ? { ok: true } : { ok: false, error: bl(Error(`Failed to navigate to checkout`)) };
|
|
4102
4108
|
} catch (e3) {
|
|
4103
|
-
return { ok: false, error:
|
|
4109
|
+
return { ok: false, error: bl(e3) };
|
|
4104
4110
|
} finally {
|
|
4105
|
-
i2(
|
|
4111
|
+
i2(Fl.IDLE);
|
|
4106
4112
|
}
|
|
4107
4113
|
}, [e2]) };
|
|
4108
4114
|
};
|
|
4109
|
-
function
|
|
4115
|
+
function Ll(e2) {
|
|
4110
4116
|
let { product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 } = e2;
|
|
4111
|
-
return { catalogReference: { appId: $r, catalogItemId: t2.id, options:
|
|
4117
|
+
return { catalogReference: { appId: $r, catalogItemId: t2.id, options: Rl({ product: t2, selectedVariant: n2, userSelections: r2, isPreOrder: i2 }) }, quantity: r2.quantity };
|
|
4112
4118
|
}
|
|
4113
|
-
var
|
|
4114
|
-
let i2 =
|
|
4115
|
-
return Object.keys(o2).length > 0 && (l2.customTextFields = o2),
|
|
4119
|
+
var Rl = ({ product: e2, selectedVariant: t2, userSelections: n2, isPreOrder: r2 }) => {
|
|
4120
|
+
let i2 = zl(e2, t2.choices), { choiceBasedModifiers: a2, customTextFields: o2 } = Bl(e2, n2.selectedModifiers), s2 = { ...i2, ...a2 }, { selectedSubscriptionPlanId: c2 } = n2, l2 = { variantId: t2.id, options: s2 };
|
|
4121
|
+
return Object.keys(o2).length > 0 && (l2.customTextFields = o2), Vl(c2) && (l2.subscriptionOptionId = c2), r2 && (l2.preOrderRequested = true), l2;
|
|
4116
4122
|
};
|
|
4117
|
-
var
|
|
4123
|
+
var zl = (e2, t2) => {
|
|
4118
4124
|
let n2 = {};
|
|
4119
4125
|
for (let [r2, i2] of Object.entries(t2)) {
|
|
4120
4126
|
let t3 = e2.options.find((e3) => e3.id === r2), a2 = t3?.choices.find((e3) => e3.choiceId === i2);
|
|
@@ -4122,7 +4128,7 @@ var Ll = (e2, t2) => {
|
|
|
4122
4128
|
}
|
|
4123
4129
|
return n2;
|
|
4124
4130
|
};
|
|
4125
|
-
var
|
|
4131
|
+
var Bl = (e2, t2) => {
|
|
4126
4132
|
let n2 = {}, r2 = {};
|
|
4127
4133
|
for (let i2 of Object.values(e2.modifiers)) if (i2.modifierRenderType === fc.FREE_TEXT) {
|
|
4128
4134
|
let e3 = i2.freeTextSettings?.key;
|
|
@@ -4133,48 +4139,48 @@ var Rl = (e2, t2) => {
|
|
|
4133
4139
|
}
|
|
4134
4140
|
return { choiceBasedModifiers: n2, customTextFields: r2 };
|
|
4135
4141
|
};
|
|
4136
|
-
var
|
|
4137
|
-
function
|
|
4138
|
-
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } =
|
|
4142
|
+
var Vl = (e2) => e2 !== void 0 && e2 !== `one-time`;
|
|
4143
|
+
function Hl(e2, r2, i2) {
|
|
4144
|
+
let { selectedVariant: a2, selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2, isSelectionValid: l2, setHasAttemptedSubmit: u2 } = r2, { addToCart: d2, addToCartState: f2 } = Nl(), { buyNow: p2, buyNowState: m2 } = Il(), h2 = i2.isPreOrderState || i2.isInStock, g2 = t(async (t2) => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: yl } : d2(Ll({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState }), t2 ?? Ml.NONE), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, d2]), _2 = t(async () => !h2 || (u2(true), !l2 || !a2) ? { ok: false, error: yl } : p2(Ll({ product: e2, selectedVariant: a2, userSelections: { selectedModifiers: o2, selectedSubscriptionPlanId: s2, quantity: c2 }, isPreOrder: i2.isPreOrderState })), [h2, i2.isPreOrderState, l2, u2, e2, a2, o2, s2, c2, p2]);
|
|
4139
4145
|
return n(() => ({ addToCartState: f2, buyNowState: m2, handleAddToCart: g2, handleBuyNow: _2 }), [f2, m2, g2, _2]);
|
|
4140
4146
|
}
|
|
4141
|
-
var
|
|
4142
|
-
var
|
|
4143
|
-
var
|
|
4147
|
+
var Ul = (e2, t2) => e2.every((e3) => !e3.mandatory || Wl(e3, t2[e3.id]));
|
|
4148
|
+
var Wl = (e2, t2) => e2.modifierRenderType === fc.FREE_TEXT ? !!t2 : e2.choices?.some((e3) => e3.choiceId === t2);
|
|
4149
|
+
var Gl = function(e2) {
|
|
4144
4150
|
return e2.DIRECT_ADD = `direct-add`, e2.NAVIGATE_TO_PRODUCT_PAGE = `navigate-to-product-page`, e2;
|
|
4145
4151
|
}({});
|
|
4146
|
-
function
|
|
4147
|
-
return
|
|
4152
|
+
function Kl(e2, t2) {
|
|
4153
|
+
return ql(e2, t2) ? Gl.NAVIGATE_TO_PRODUCT_PAGE : Gl.DIRECT_ADD;
|
|
4148
4154
|
}
|
|
4149
|
-
var
|
|
4150
|
-
var
|
|
4151
|
-
function
|
|
4152
|
-
let { navigateToProductPage: i2 } =
|
|
4155
|
+
var ql = (e2, t2) => e2.subscriptionDetails.subscriptions.length > 0 || !Jl(e2, t2);
|
|
4156
|
+
var Jl = (e2, t2) => e2.options.length === 0 && Object.keys(e2.modifiers).length === 0 || t2.selectedVariant !== null && Ul(Object.values(t2.modifiers), t2.selectedModifiers);
|
|
4157
|
+
function Yl(e2, r2) {
|
|
4158
|
+
let { navigateToProductPage: i2 } = Dl(), { addToCartState: a2, buyNowState: o2, handleAddToCart: s2, handleBuyNow: c2 } = Hl(e2, r2, Dc(e2, r2.selectedVariant)), l2 = Kl(e2, r2), u2 = t(async () => e2.slug ? (await i2(e2.slug), { ok: true }) : { ok: false, error: yl }, [e2.slug, i2]), d2 = t((e3) => {
|
|
4153
4159
|
switch (l2) {
|
|
4154
|
-
case
|
|
4160
|
+
case Gl.DIRECT_ADD:
|
|
4155
4161
|
return s2(e3);
|
|
4156
|
-
case
|
|
4162
|
+
case Gl.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4157
4163
|
return u2();
|
|
4158
4164
|
}
|
|
4159
4165
|
}, [l2, s2, u2]), f2 = t(() => {
|
|
4160
4166
|
switch (l2) {
|
|
4161
|
-
case
|
|
4167
|
+
case Gl.DIRECT_ADD:
|
|
4162
4168
|
return c2();
|
|
4163
|
-
case
|
|
4169
|
+
case Gl.NAVIGATE_TO_PRODUCT_PAGE:
|
|
4164
4170
|
return u2();
|
|
4165
4171
|
}
|
|
4166
4172
|
}, [l2, c2, u2]);
|
|
4167
4173
|
return n(() => ({ addToCartState: a2, buyNowState: o2, handleAddToCart: d2, handleBuyNow: f2 }), [a2, o2, d2, f2]);
|
|
4168
4174
|
}
|
|
4169
|
-
function
|
|
4175
|
+
function Xl(e2) {
|
|
4170
4176
|
return Object.values(e2).toSorted().join(`_`);
|
|
4171
4177
|
}
|
|
4172
|
-
function
|
|
4178
|
+
function Zl(e2) {
|
|
4173
4179
|
let t2 = /* @__PURE__ */ new Map();
|
|
4174
|
-
for (let n2 of e2) t2.set(
|
|
4180
|
+
for (let n2 of e2) t2.set(Xl(n2.choices), n2);
|
|
4175
4181
|
return t2;
|
|
4176
4182
|
}
|
|
4177
|
-
function
|
|
4183
|
+
function Ql(e2, t2, n2) {
|
|
4178
4184
|
let r2 = Object.keys(n2).length > 0, i2 = {};
|
|
4179
4185
|
for (let a2 of e2) {
|
|
4180
4186
|
i2[a2.id] = {};
|
|
@@ -4187,18 +4193,18 @@ function Xl(e2, t2, n2) {
|
|
|
4187
4193
|
i2[a2.id][e3.choiceId] = { isInStock: false, isVisible: false };
|
|
4188
4194
|
continue;
|
|
4189
4195
|
}
|
|
4190
|
-
let { isInStock: o2, isVisible: s2 } =
|
|
4196
|
+
let { isInStock: o2, isVisible: s2 } = $l({ ...n2, [a2.id]: e3.choiceId }, t2);
|
|
4191
4197
|
i2[a2.id][e3.choiceId] = { isInStock: o2, isVisible: s2 };
|
|
4192
4198
|
}
|
|
4193
4199
|
}
|
|
4194
4200
|
return i2;
|
|
4195
4201
|
}
|
|
4196
|
-
function
|
|
4202
|
+
function $l(e2, t2) {
|
|
4197
4203
|
let n2 = false, r2 = false;
|
|
4198
4204
|
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;
|
|
4199
4205
|
return { isInStock: n2, isVisible: r2 };
|
|
4200
4206
|
}
|
|
4201
|
-
function
|
|
4207
|
+
function eu(e2, t2) {
|
|
4202
4208
|
let n2 = /* @__PURE__ */ new Map();
|
|
4203
4209
|
for (let e3 of t2) n2.set(e3.variantId, e3);
|
|
4204
4210
|
return e2.map((e3) => {
|
|
@@ -4206,34 +4212,34 @@ function Ql(e2, t2) {
|
|
|
4206
4212
|
return { ...e3, availabilityStatus: t3?.availabilityStatus, preorderInfo: t3?.preorderInfo, inventoryQuantity: t3?.quantity, trackQuantity: t3?.trackQuantity };
|
|
4207
4213
|
});
|
|
4208
4214
|
}
|
|
4209
|
-
function
|
|
4210
|
-
let r2 = { options:
|
|
4215
|
+
function tu({ product: e2, selections: t2, selectedVariant: n2 }) {
|
|
4216
|
+
let r2 = { options: nu(e2.options, t2.selectedOptions, n2), modifiers: iu(e2.modifiers, t2.selectedModifiers), quantity: ru(t2.quantity, n2), subscriptionPlanId: au(e2.subscriptionDetails, t2.selectedSubscriptionPlanId) };
|
|
4211
4217
|
return { valid: Object.values(r2.options).length === 0 && Object.values(r2.modifiers).length === 0 && !r2.quantity && !r2.subscriptionPlanId, fields: r2 };
|
|
4212
4218
|
}
|
|
4213
|
-
function
|
|
4219
|
+
function nu(e2, t2, n2) {
|
|
4214
4220
|
if (n2 !== null) return {};
|
|
4215
4221
|
let r2 = {};
|
|
4216
4222
|
for (let n3 of e2) t2[n3.id] || (r2[n3.id] = `missing`);
|
|
4217
4223
|
return r2;
|
|
4218
4224
|
}
|
|
4219
|
-
function
|
|
4225
|
+
function ru(e2, t2) {
|
|
4220
4226
|
if (e2 < 1) return `below-min`;
|
|
4221
4227
|
if (e2 > Sc(t2)) return `above-max`;
|
|
4222
4228
|
}
|
|
4223
|
-
function
|
|
4224
|
-
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !
|
|
4229
|
+
function iu(e2, t2) {
|
|
4230
|
+
let n2 = Object.values(e2).filter((e3) => e3.mandatory && !Wl(e3, t2[e3.id]));
|
|
4225
4231
|
return Object.fromEntries(n2.map((e3) => [e3.id, `missing`]));
|
|
4226
4232
|
}
|
|
4227
|
-
function
|
|
4228
|
-
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` :
|
|
4233
|
+
function au(e2, t2) {
|
|
4234
|
+
if (e2.subscriptions.length !== 0) return t2 ? t2 === `one-time` ? e2.allowOneTimePurchases ? void 0 : `missing` : ou(e2, t2) ? void 0 : `missing` : `missing`;
|
|
4229
4235
|
}
|
|
4230
|
-
function
|
|
4236
|
+
function ou(e2, t2) {
|
|
4231
4237
|
return e2.subscriptions.some((e3) => e3.id === t2);
|
|
4232
4238
|
}
|
|
4233
4239
|
var $ = function(e2) {
|
|
4234
4240
|
return e2.PRODUCT_OPTION = `PRODUCT_OPTION`, e2.MODIFIER = `MODIFIER`, e2;
|
|
4235
4241
|
}({});
|
|
4236
|
-
function
|
|
4242
|
+
function su(e2, t2) {
|
|
4237
4243
|
if (!t2) return;
|
|
4238
4244
|
let n2 = t2.members.find((t3) => t3.productId === e2.id);
|
|
4239
4245
|
if (!n2) return;
|
|
@@ -4241,43 +4247,43 @@ function au(e2, t2) {
|
|
|
4241
4247
|
if (t2.customizationType === $.PRODUCT_OPTION) return e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId) ? { ...r2, customizationType: $.PRODUCT_OPTION } : void 0;
|
|
4242
4248
|
if (e2.modifiers[t2.groupingCustomizationId]) return { ...r2, customizationType: $.MODIFIER };
|
|
4243
4249
|
}
|
|
4244
|
-
function
|
|
4250
|
+
function cu(e2, t2) {
|
|
4245
4251
|
return e2.members.find((e3) => e3.choice.choiceId === t2);
|
|
4246
4252
|
}
|
|
4247
|
-
function
|
|
4253
|
+
function lu(e2, t2, n2) {
|
|
4248
4254
|
return !!e2 && t2 === e2.groupingCustomizationId && n2 !== e2.currentProductChoiceId;
|
|
4249
4255
|
}
|
|
4250
|
-
function
|
|
4256
|
+
function uu(e2, t2) {
|
|
4251
4257
|
if (!t2) return;
|
|
4252
4258
|
if (t2.customizationType === $.PRODUCT_OPTION) {
|
|
4253
4259
|
let n3 = e2.options.find(({ id: e3 }) => e3 === t2.groupingCustomizationId);
|
|
4254
4260
|
if (!n3) return;
|
|
4255
|
-
let r3 =
|
|
4261
|
+
let r3 = du(n3, t2);
|
|
4256
4262
|
return { options: e2.options.map((e3) => e3.id === n3.id ? r3 : e3) };
|
|
4257
4263
|
}
|
|
4258
4264
|
let n2 = e2.modifiers[t2.groupingCustomizationId];
|
|
4259
4265
|
if (!n2) return;
|
|
4260
|
-
let r2 =
|
|
4266
|
+
let r2 = fu(n2, t2);
|
|
4261
4267
|
return { modifiers: { ...e2.modifiers, [t2.groupingCustomizationId]: r2 } };
|
|
4262
4268
|
}
|
|
4263
|
-
function
|
|
4269
|
+
function du(e2, t2) {
|
|
4264
4270
|
return { ...e2, isGroupedOption: true, choices: t2.members.map((e3) => ({ ...e3.choice, inStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK` })) };
|
|
4265
4271
|
}
|
|
4266
|
-
function
|
|
4272
|
+
function fu(e2, t2) {
|
|
4267
4273
|
return { ...e2, choices: t2.members.map(({ choice: e3 }) => e3) };
|
|
4268
4274
|
}
|
|
4269
|
-
function
|
|
4275
|
+
function pu(e2, t2) {
|
|
4270
4276
|
if (!t2 || t2.customizationType !== $.PRODUCT_OPTION) return e2;
|
|
4271
4277
|
let n2 = Object.fromEntries(t2.members.map((e3) => [e3.choice.choiceId, { isInStock: e3.inventoryAvailabilityStatus !== `OUT_OF_STOCK`, isVisible: true }]));
|
|
4272
4278
|
return { ...e2, [t2.groupingCustomizationId]: { ...n2, ...e2[t2.groupingCustomizationId] } };
|
|
4273
4279
|
}
|
|
4274
|
-
function
|
|
4275
|
-
let { navigateToProductPage: i2 } =
|
|
4280
|
+
function mu(e2, r2) {
|
|
4281
|
+
let { navigateToProductPage: i2 } = Dl(), a2 = n(() => su(e2, r2), [e2, r2]);
|
|
4276
4282
|
return { productGrouping: a2, selectGroupSiblingChoice: t((e3) => {
|
|
4277
4283
|
if (!a2) return;
|
|
4278
|
-
let t2 =
|
|
4284
|
+
let t2 = cu(a2, e3);
|
|
4279
4285
|
t2 && i2(t2.slug);
|
|
4280
|
-
}, [a2, i2]), productCustomizations: n(() =>
|
|
4286
|
+
}, [a2, i2]), productCustomizations: n(() => uu(e2, a2), [e2, a2]), addGroupChoicesAvailability: t((e3) => pu(e3, a2), [a2]), initialSelection: n(() => {
|
|
4281
4287
|
if (!a2) return { options: {}, modifiers: {} };
|
|
4282
4288
|
let { customizationType: t2, groupingCustomizationId: n2, currentProductChoiceId: r3 } = a2;
|
|
4283
4289
|
if (t2 === $.MODIFIER && e2.modifiers[n2].mandatory === false) return { options: {}, modifiers: {} };
|
|
@@ -4285,25 +4291,25 @@ function fu(e2, r2) {
|
|
|
4285
4291
|
return t2 === $.PRODUCT_OPTION ? { options: i3, modifiers: {} } : { options: {}, modifiers: i3 };
|
|
4286
4292
|
}, [a2, e2.modifiers]) };
|
|
4287
4293
|
}
|
|
4288
|
-
function
|
|
4289
|
-
let o2 =
|
|
4294
|
+
function hu(e2, i2, a2) {
|
|
4295
|
+
let o2 = mu(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(() => Zl(eu(e2.variants, i2)), [e2.variants, i2]), x2 = n(() => {
|
|
4290
4296
|
let t2 = /* @__PURE__ */ new Map();
|
|
4291
4297
|
return (n2) => {
|
|
4292
|
-
let r2 =
|
|
4298
|
+
let r2 = Xl(n2), i3 = t2.get(r2);
|
|
4293
4299
|
if (i3) return i3;
|
|
4294
|
-
let a3 = l2(
|
|
4300
|
+
let a3 = l2(Ql(e2.options, b2, n2));
|
|
4295
4301
|
return t2.set(r2, a3), a3;
|
|
4296
4302
|
};
|
|
4297
|
-
}, [b2, e2.options, l2]), S2 = n(() => x2(u2), [x2, u2]), C2 = n(() => Object.keys(u2).length === e2.options.length ? b2.get(
|
|
4303
|
+
}, [b2, e2.options, l2]), S2 = n(() => x2(u2), [x2, u2]), C2 = n(() => Object.keys(u2).length === e2.options.length ? b2.get(Xl(u2)) ?? null : null, [b2, u2, e2.options.length]), w2 = t((e3, t2) => {
|
|
4298
4304
|
if (u2[e3] !== t2) {
|
|
4299
|
-
if (
|
|
4305
|
+
if (lu(s2, e3, t2)) {
|
|
4300
4306
|
c2(t2);
|
|
4301
4307
|
return;
|
|
4302
4308
|
}
|
|
4303
4309
|
d2((n2) => ({ ...n2, [e3]: t2 })), _2(1);
|
|
4304
4310
|
}
|
|
4305
4311
|
}, [u2, s2, c2]), T2 = t((e3, t2) => {
|
|
4306
|
-
if (
|
|
4312
|
+
if (lu(s2, e3, t2)) {
|
|
4307
4313
|
c2(t2);
|
|
4308
4314
|
return;
|
|
4309
4315
|
}
|
|
@@ -4318,41 +4324,41 @@ function pu(e2, i2, a2) {
|
|
|
4318
4324
|
h2(e3);
|
|
4319
4325
|
}, []), O2 = n(() => Sc(C2), [C2]), k2 = n(() => Cc(g2, O2), [g2, O2]), ee2 = t((e3) => {
|
|
4320
4326
|
_2(e3);
|
|
4321
|
-
}, []), te2 = n(() =>
|
|
4327
|
+
}, []), te2 = n(() => tu({ product: e2, selections: { selectedOptions: u2, selectedModifiers: f2, selectedSubscriptionPlanId: m2, quantity: k2 }, selectedVariant: C2 }), [e2, u2, f2, m2, k2, C2]), ne2 = o2.productCustomizations?.options ?? e2.options, re2 = o2.productCustomizations?.modifiers ?? e2.modifiers;
|
|
4322
4328
|
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]);
|
|
4323
4329
|
}
|
|
4324
|
-
function
|
|
4325
|
-
let o2 =
|
|
4330
|
+
function gu({ product: e2, inventoryItems: r2, hasLoadedVariants: i2, requestVariants: a2 }) {
|
|
4331
|
+
let o2 = hu(e2, r2), { selectOption: s2, selectModifier: c2, selectSubscriptionPlan: l2, selectQuantity: u2, selectionsAvailability: d2, ...f2 } = o2, p2 = t((e3, t2) => {
|
|
4326
4332
|
a2(), s2(e3, t2);
|
|
4327
4333
|
}, [a2, s2]), m2 = t((e3, t2) => {
|
|
4328
4334
|
a2(), c2(e3, t2);
|
|
4329
4335
|
}, [a2, c2]), h2 = t((e3) => {
|
|
4330
4336
|
a2(), u2(e3);
|
|
4331
|
-
}, [a2, u2]), g2 = n(() => i2 ? d2 :
|
|
4337
|
+
}, [a2, u2]), g2 = n(() => i2 ? d2 : Ql(e2.options, /* @__PURE__ */ new Map(), {}), [i2, d2, e2.options]);
|
|
4332
4338
|
return n(() => ({ ...f2, selectOption: p2, selectModifier: m2, selectSubscriptionPlan: l2, selectQuantity: h2, selectionsAvailability: g2 }), [o2, p2, m2, l2, h2, g2]);
|
|
4333
4339
|
}
|
|
4334
|
-
var
|
|
4335
|
-
function
|
|
4340
|
+
var _u = { subscriptionPlans: null, description: null, infoSections: null };
|
|
4341
|
+
function vu() {
|
|
4336
4342
|
return s();
|
|
4337
4343
|
}
|
|
4338
|
-
function
|
|
4339
|
-
let r2 =
|
|
4340
|
-
return n(() => ({ source:
|
|
4344
|
+
function yu({ product: e2, defaultLocationId: t2 }) {
|
|
4345
|
+
let r2 = vl(e2, t2), i2 = gu(r2), a2 = Yl(r2.product, i2), o2 = nl({ product: r2.product, userInputs: i2, hasLoadedVariants: r2.hasLoadedVariants }), s2 = Vc(r2.product, i2, o2);
|
|
4346
|
+
return n(() => ({ source: rl.PRODUCT_ITEM, ...s2, ...a2, ..._u }), [s2, a2]);
|
|
4341
4347
|
}
|
|
4342
|
-
function
|
|
4343
|
-
let n2 =
|
|
4348
|
+
function bu({ productItem: e2, children: t2 }) {
|
|
4349
|
+
let n2 = yu(e2);
|
|
4344
4350
|
return a(o, { value: n2, children: t2 });
|
|
4345
4351
|
}
|
|
4346
|
-
function
|
|
4352
|
+
function xu({ productItem: e2, children: t2 }) {
|
|
4347
4353
|
let [n2] = r(() => new Pr());
|
|
4348
|
-
return e2 === void 0 ? a(i, { children: t2 }) : a(Lr, { client: n2, children: a(
|
|
4354
|
+
return e2 === void 0 ? a(i, { children: t2 }) : a(Lr, { client: n2, children: a(bu, { productItem: e2, children: t2 }, e2.product.id) });
|
|
4349
4355
|
}
|
|
4350
|
-
var
|
|
4356
|
+
var Su = jn(`890cc5ff-b951-47bc-86ed-4dc139f4ff0d`);
|
|
4351
4357
|
export {
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4358
|
+
xu as ProductItemContextProvider,
|
|
4359
|
+
xu as default,
|
|
4360
|
+
Su as injectAccessTokenGetter,
|
|
4361
|
+
vu as useProductItemContext,
|
|
4362
|
+
yu as useProductItemContextValue
|
|
4357
4363
|
};
|
|
4358
4364
|
//# sourceMappingURL=context-product-item.mjs.map
|